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/WaaSEventTypesApi.md
CHANGED
|
@@ -159,7 +159,7 @@ nil (empty response body)
|
|
|
159
159
|
|
|
160
160
|
## deprecate_waa_s_event_type
|
|
161
161
|
|
|
162
|
-
> deprecate_waa_s_event_type(app_id, event_type_id)
|
|
162
|
+
> <UpdateWaaSEventType200Response> deprecate_waa_s_event_type(app_id, event_type_id)
|
|
163
163
|
|
|
164
164
|
Deprecate an event type
|
|
165
165
|
|
|
@@ -184,7 +184,8 @@ event_type_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
|
184
184
|
|
|
185
185
|
begin
|
|
186
186
|
# Deprecate an event type
|
|
187
|
-
api_instance.deprecate_waa_s_event_type(app_id, event_type_id)
|
|
187
|
+
result = api_instance.deprecate_waa_s_event_type(app_id, event_type_id)
|
|
188
|
+
p result
|
|
188
189
|
rescue Zyphr::ApiError => e
|
|
189
190
|
puts "Error when calling WaaSEventTypesApi->deprecate_waa_s_event_type: #{e}"
|
|
190
191
|
end
|
|
@@ -192,9 +193,9 @@ end
|
|
|
192
193
|
|
|
193
194
|
#### Using the deprecate_waa_s_event_type_with_http_info variant
|
|
194
195
|
|
|
195
|
-
This returns an Array which contains the response data
|
|
196
|
+
This returns an Array which contains the response data, status code and headers.
|
|
196
197
|
|
|
197
|
-
> <Array(
|
|
198
|
+
> <Array(<UpdateWaaSEventType200Response>, Integer, Hash)> deprecate_waa_s_event_type_with_http_info(app_id, event_type_id)
|
|
198
199
|
|
|
199
200
|
```ruby
|
|
200
201
|
begin
|
|
@@ -202,7 +203,7 @@ begin
|
|
|
202
203
|
data, status_code, headers = api_instance.deprecate_waa_s_event_type_with_http_info(app_id, event_type_id)
|
|
203
204
|
p status_code # => 2xx
|
|
204
205
|
p headers # => { ... }
|
|
205
|
-
p data # =>
|
|
206
|
+
p data # => <UpdateWaaSEventType200Response>
|
|
206
207
|
rescue Zyphr::ApiError => e
|
|
207
208
|
puts "Error when calling WaaSEventTypesApi->deprecate_waa_s_event_type_with_http_info: #{e}"
|
|
208
209
|
end
|
|
@@ -217,7 +218,7 @@ end
|
|
|
217
218
|
|
|
218
219
|
### Return type
|
|
219
220
|
|
|
220
|
-
|
|
221
|
+
[**UpdateWaaSEventType200Response**](UpdateWaaSEventType200Response.md)
|
|
221
222
|
|
|
222
223
|
### Authorization
|
|
223
224
|
|
|
@@ -226,7 +227,7 @@ nil (empty response body)
|
|
|
226
227
|
### HTTP request headers
|
|
227
228
|
|
|
228
229
|
- **Content-Type**: Not defined
|
|
229
|
-
- **Accept**:
|
|
230
|
+
- **Accept**: application/json
|
|
230
231
|
|
|
231
232
|
|
|
232
233
|
## get_waa_s_event_type
|
|
@@ -383,7 +384,7 @@ end
|
|
|
383
384
|
|
|
384
385
|
## update_waa_s_event_type
|
|
385
386
|
|
|
386
|
-
> update_waa_s_event_type(app_id, event_type_id, update_waa_s_event_type_request)
|
|
387
|
+
> <UpdateWaaSEventType200Response> update_waa_s_event_type(app_id, event_type_id, update_waa_s_event_type_request)
|
|
387
388
|
|
|
388
389
|
Update an event type
|
|
389
390
|
|
|
@@ -407,7 +408,8 @@ update_waa_s_event_type_request = Zyphr::UpdateWaaSEventTypeRequest.new # Update
|
|
|
407
408
|
|
|
408
409
|
begin
|
|
409
410
|
# Update an event type
|
|
410
|
-
api_instance.update_waa_s_event_type(app_id, event_type_id, update_waa_s_event_type_request)
|
|
411
|
+
result = api_instance.update_waa_s_event_type(app_id, event_type_id, update_waa_s_event_type_request)
|
|
412
|
+
p result
|
|
411
413
|
rescue Zyphr::ApiError => e
|
|
412
414
|
puts "Error when calling WaaSEventTypesApi->update_waa_s_event_type: #{e}"
|
|
413
415
|
end
|
|
@@ -415,9 +417,9 @@ end
|
|
|
415
417
|
|
|
416
418
|
#### Using the update_waa_s_event_type_with_http_info variant
|
|
417
419
|
|
|
418
|
-
This returns an Array which contains the response data
|
|
420
|
+
This returns an Array which contains the response data, status code and headers.
|
|
419
421
|
|
|
420
|
-
> <Array(
|
|
422
|
+
> <Array(<UpdateWaaSEventType200Response>, Integer, Hash)> update_waa_s_event_type_with_http_info(app_id, event_type_id, update_waa_s_event_type_request)
|
|
421
423
|
|
|
422
424
|
```ruby
|
|
423
425
|
begin
|
|
@@ -425,7 +427,7 @@ begin
|
|
|
425
427
|
data, status_code, headers = api_instance.update_waa_s_event_type_with_http_info(app_id, event_type_id, update_waa_s_event_type_request)
|
|
426
428
|
p status_code # => 2xx
|
|
427
429
|
p headers # => { ... }
|
|
428
|
-
p data # =>
|
|
430
|
+
p data # => <UpdateWaaSEventType200Response>
|
|
429
431
|
rescue Zyphr::ApiError => e
|
|
430
432
|
puts "Error when calling WaaSEventTypesApi->update_waa_s_event_type_with_http_info: #{e}"
|
|
431
433
|
end
|
|
@@ -441,7 +443,7 @@ end
|
|
|
441
443
|
|
|
442
444
|
### Return type
|
|
443
445
|
|
|
444
|
-
|
|
446
|
+
[**UpdateWaaSEventType200Response**](UpdateWaaSEventType200Response.md)
|
|
445
447
|
|
|
446
448
|
### Authorization
|
|
447
449
|
|
|
@@ -450,5 +452,5 @@ nil (empty response body)
|
|
|
450
452
|
### HTTP request headers
|
|
451
453
|
|
|
452
454
|
- **Content-Type**: application/json
|
|
453
|
-
- **Accept**:
|
|
455
|
+
- **Accept**: application/json
|
|
454
456
|
|
|
@@ -84,17 +84,17 @@ module Zyphr
|
|
|
84
84
|
# Secret-key-scoped lookup of a single end user by email address within the authenticating application. Scoped to the application — never resolves a user from another application. Does not return the password hash.
|
|
85
85
|
# @param email [String]
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
|
-
# @return [
|
|
87
|
+
# @return [GetEndUserById200Response]
|
|
88
88
|
def get_end_user_by_email(email, opts = {})
|
|
89
|
-
get_end_user_by_email_with_http_info(email, opts)
|
|
90
|
-
|
|
89
|
+
data, _status_code, _headers = get_end_user_by_email_with_http_info(email, opts)
|
|
90
|
+
data
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# Look up an end user by email (server-side admin)
|
|
94
94
|
# Secret-key-scoped lookup of a single end user by email address within the authenticating application. Scoped to the application — never resolves a user from another application. Does not return the password hash.
|
|
95
95
|
# @param email [String]
|
|
96
96
|
# @param [Hash] opts the optional parameters
|
|
97
|
-
# @return [Array<(
|
|
97
|
+
# @return [Array<(GetEndUserById200Response, Integer, Hash)>] GetEndUserById200Response data, response status code and response headers
|
|
98
98
|
def get_end_user_by_email_with_http_info(email, opts = {})
|
|
99
99
|
if @api_client.config.debugging
|
|
100
100
|
@api_client.config.logger.debug 'Calling API: AuthUserDirectoryApi.get_end_user_by_email ...'
|
|
@@ -112,6 +112,8 @@ module Zyphr
|
|
|
112
112
|
|
|
113
113
|
# header parameters
|
|
114
114
|
header_params = opts[:header_params] || {}
|
|
115
|
+
# HTTP header 'Accept' (if needed)
|
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
115
117
|
|
|
116
118
|
# form parameters
|
|
117
119
|
form_params = opts[:form_params] || {}
|
|
@@ -120,7 +122,7 @@ module Zyphr
|
|
|
120
122
|
post_body = opts[:debug_body]
|
|
121
123
|
|
|
122
124
|
# return_type
|
|
123
|
-
return_type = opts[:debug_return_type]
|
|
125
|
+
return_type = opts[:debug_return_type] || 'GetEndUserById200Response'
|
|
124
126
|
|
|
125
127
|
# auth_names
|
|
126
128
|
auth_names = opts[:debug_auth_names] || ['ApplicationSecret', 'ApplicationPublicKey']
|
|
@@ -146,17 +148,17 @@ module Zyphr
|
|
|
146
148
|
# Secret-key-scoped fetch of a single end user by id within the authenticating application. Scoped to the application — a caller can never read a user belonging to another application.
|
|
147
149
|
# @param user_id [String]
|
|
148
150
|
# @param [Hash] opts the optional parameters
|
|
149
|
-
# @return [
|
|
151
|
+
# @return [GetEndUserById200Response]
|
|
150
152
|
def get_end_user_by_id(user_id, opts = {})
|
|
151
|
-
get_end_user_by_id_with_http_info(user_id, opts)
|
|
152
|
-
|
|
153
|
+
data, _status_code, _headers = get_end_user_by_id_with_http_info(user_id, opts)
|
|
154
|
+
data
|
|
153
155
|
end
|
|
154
156
|
|
|
155
157
|
# Get an end user by id (server-side admin)
|
|
156
158
|
# Secret-key-scoped fetch of a single end user by id within the authenticating application. Scoped to the application — a caller can never read a user belonging to another application.
|
|
157
159
|
# @param user_id [String]
|
|
158
160
|
# @param [Hash] opts the optional parameters
|
|
159
|
-
# @return [Array<(
|
|
161
|
+
# @return [Array<(GetEndUserById200Response, Integer, Hash)>] GetEndUserById200Response data, response status code and response headers
|
|
160
162
|
def get_end_user_by_id_with_http_info(user_id, opts = {})
|
|
161
163
|
if @api_client.config.debugging
|
|
162
164
|
@api_client.config.logger.debug 'Calling API: AuthUserDirectoryApi.get_end_user_by_id ...'
|
|
@@ -173,6 +175,8 @@ module Zyphr
|
|
|
173
175
|
|
|
174
176
|
# header parameters
|
|
175
177
|
header_params = opts[:header_params] || {}
|
|
178
|
+
# HTTP header 'Accept' (if needed)
|
|
179
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
176
180
|
|
|
177
181
|
# form parameters
|
|
178
182
|
form_params = opts[:form_params] || {}
|
|
@@ -181,7 +185,7 @@ module Zyphr
|
|
|
181
185
|
post_body = opts[:debug_body]
|
|
182
186
|
|
|
183
187
|
# return_type
|
|
184
|
-
return_type = opts[:debug_return_type]
|
|
188
|
+
return_type = opts[:debug_return_type] || 'GetEndUserById200Response'
|
|
185
189
|
|
|
186
190
|
# auth_names
|
|
187
191
|
auth_names = opts[:debug_auth_names] || ['ApplicationSecret', 'ApplicationPublicKey']
|
|
@@ -207,17 +211,17 @@ module Zyphr
|
|
|
207
211
|
# Secret-key-scoped read of the authoritative custom_claims stored for an end user. These are the TRUSTED claims embedded into the user's JWTs on login/refresh — use them (not the client-writable `metadata` field) for authorization decisions. Returns an empty object when none are set.
|
|
208
212
|
# @param user_id [String]
|
|
209
213
|
# @param [Hash] opts the optional parameters
|
|
210
|
-
# @return [
|
|
214
|
+
# @return [GetEndUserClaims200Response]
|
|
211
215
|
def get_end_user_claims(user_id, opts = {})
|
|
212
|
-
get_end_user_claims_with_http_info(user_id, opts)
|
|
213
|
-
|
|
216
|
+
data, _status_code, _headers = get_end_user_claims_with_http_info(user_id, opts)
|
|
217
|
+
data
|
|
214
218
|
end
|
|
215
219
|
|
|
216
220
|
# Get an end user's stored custom claims (server-side admin)
|
|
217
221
|
# Secret-key-scoped read of the authoritative custom_claims stored for an end user. These are the TRUSTED claims embedded into the user's JWTs on login/refresh — use them (not the client-writable `metadata` field) for authorization decisions. Returns an empty object when none are set.
|
|
218
222
|
# @param user_id [String]
|
|
219
223
|
# @param [Hash] opts the optional parameters
|
|
220
|
-
# @return [Array<(
|
|
224
|
+
# @return [Array<(GetEndUserClaims200Response, Integer, Hash)>] GetEndUserClaims200Response data, response status code and response headers
|
|
221
225
|
def get_end_user_claims_with_http_info(user_id, opts = {})
|
|
222
226
|
if @api_client.config.debugging
|
|
223
227
|
@api_client.config.logger.debug 'Calling API: AuthUserDirectoryApi.get_end_user_claims ...'
|
|
@@ -234,6 +238,8 @@ module Zyphr
|
|
|
234
238
|
|
|
235
239
|
# header parameters
|
|
236
240
|
header_params = opts[:header_params] || {}
|
|
241
|
+
# HTTP header 'Accept' (if needed)
|
|
242
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
237
243
|
|
|
238
244
|
# form parameters
|
|
239
245
|
form_params = opts[:form_params] || {}
|
|
@@ -242,7 +248,7 @@ module Zyphr
|
|
|
242
248
|
post_body = opts[:debug_body]
|
|
243
249
|
|
|
244
250
|
# return_type
|
|
245
|
-
return_type = opts[:debug_return_type]
|
|
251
|
+
return_type = opts[:debug_return_type] || 'GetEndUserClaims200Response'
|
|
246
252
|
|
|
247
253
|
# auth_names
|
|
248
254
|
auth_names = opts[:debug_auth_names] || ['ApplicationSecret', 'ApplicationPublicKey']
|
|
@@ -268,17 +274,17 @@ module Zyphr
|
|
|
268
274
|
# Secret-key-scoped pre-provisioning for an end user. Creates a passwordless user in the authenticating application (idempotent on email — an existing, non-deleted user is reused, not duplicated) and, when `send_link` is set, sends a first-login link so the user can set up their account without self-registration. - `send_link: \"magic\"` sends a magic-link sign-in email. - `send_link: \"password_reset\"` sends a set-password email. - `send_link: \"none\"` (default) creates the user with no email. A `redirect_url` is required when `send_link` is \"magic\" or \"password_reset\"; it must match the application's redirect_uris allowlist (custom schemes such as yourapp://path are permitted).
|
|
269
275
|
# @param invite_end_user_request [InviteEndUserRequest]
|
|
270
276
|
# @param [Hash] opts the optional parameters
|
|
271
|
-
# @return [
|
|
277
|
+
# @return [InviteEndUser200Response]
|
|
272
278
|
def invite_end_user(invite_end_user_request, opts = {})
|
|
273
|
-
invite_end_user_with_http_info(invite_end_user_request, opts)
|
|
274
|
-
|
|
279
|
+
data, _status_code, _headers = invite_end_user_with_http_info(invite_end_user_request, opts)
|
|
280
|
+
data
|
|
275
281
|
end
|
|
276
282
|
|
|
277
283
|
# Pre-provision (invite) an end user (server-side admin)
|
|
278
284
|
# Secret-key-scoped pre-provisioning for an end user. Creates a passwordless user in the authenticating application (idempotent on email — an existing, non-deleted user is reused, not duplicated) and, when `send_link` is set, sends a first-login link so the user can set up their account without self-registration. - `send_link: \"magic\"` sends a magic-link sign-in email. - `send_link: \"password_reset\"` sends a set-password email. - `send_link: \"none\"` (default) creates the user with no email. A `redirect_url` is required when `send_link` is \"magic\" or \"password_reset\"; it must match the application's redirect_uris allowlist (custom schemes such as yourapp://path are permitted).
|
|
279
285
|
# @param invite_end_user_request [InviteEndUserRequest]
|
|
280
286
|
# @param [Hash] opts the optional parameters
|
|
281
|
-
# @return [Array<(
|
|
287
|
+
# @return [Array<(InviteEndUser200Response, Integer, Hash)>] InviteEndUser200Response data, response status code and response headers
|
|
282
288
|
def invite_end_user_with_http_info(invite_end_user_request, opts = {})
|
|
283
289
|
if @api_client.config.debugging
|
|
284
290
|
@api_client.config.logger.debug 'Calling API: AuthUserDirectoryApi.invite_end_user ...'
|
|
@@ -295,6 +301,8 @@ module Zyphr
|
|
|
295
301
|
|
|
296
302
|
# header parameters
|
|
297
303
|
header_params = opts[:header_params] || {}
|
|
304
|
+
# HTTP header 'Accept' (if needed)
|
|
305
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
298
306
|
# HTTP header 'Content-Type'
|
|
299
307
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
300
308
|
if !content_type.nil?
|
|
@@ -308,7 +316,7 @@ module Zyphr
|
|
|
308
316
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(invite_end_user_request)
|
|
309
317
|
|
|
310
318
|
# return_type
|
|
311
|
-
return_type = opts[:debug_return_type]
|
|
319
|
+
return_type = opts[:debug_return_type] || 'InviteEndUser200Response'
|
|
312
320
|
|
|
313
321
|
# auth_names
|
|
314
322
|
auth_names = opts[:debug_auth_names] || ['ApplicationSecret', 'ApplicationPublicKey']
|
|
@@ -337,10 +345,10 @@ module Zyphr
|
|
|
337
345
|
# @option opts [Integer] :per_page (default to 20)
|
|
338
346
|
# @option opts [String] :search Substring match against email, name, or phone number.
|
|
339
347
|
# @option opts [String] :environment
|
|
340
|
-
# @return [
|
|
348
|
+
# @return [ListEndUsers200Response]
|
|
341
349
|
def list_end_users(opts = {})
|
|
342
|
-
list_end_users_with_http_info(opts)
|
|
343
|
-
|
|
350
|
+
data, _status_code, _headers = list_end_users_with_http_info(opts)
|
|
351
|
+
data
|
|
344
352
|
end
|
|
345
353
|
|
|
346
354
|
# List / search end users (server-side admin)
|
|
@@ -350,7 +358,7 @@ module Zyphr
|
|
|
350
358
|
# @option opts [Integer] :per_page (default to 20)
|
|
351
359
|
# @option opts [String] :search Substring match against email, name, or phone number.
|
|
352
360
|
# @option opts [String] :environment
|
|
353
|
-
# @return [Array<(
|
|
361
|
+
# @return [Array<(ListEndUsers200Response, Integer, Hash)>] ListEndUsers200Response data, response status code and response headers
|
|
354
362
|
def list_end_users_with_http_info(opts = {})
|
|
355
363
|
if @api_client.config.debugging
|
|
356
364
|
@api_client.config.logger.debug 'Calling API: AuthUserDirectoryApi.list_end_users ...'
|
|
@@ -383,6 +391,8 @@ module Zyphr
|
|
|
383
391
|
|
|
384
392
|
# header parameters
|
|
385
393
|
header_params = opts[:header_params] || {}
|
|
394
|
+
# HTTP header 'Accept' (if needed)
|
|
395
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
386
396
|
|
|
387
397
|
# form parameters
|
|
388
398
|
form_params = opts[:form_params] || {}
|
|
@@ -391,7 +401,7 @@ module Zyphr
|
|
|
391
401
|
post_body = opts[:debug_body]
|
|
392
402
|
|
|
393
403
|
# return_type
|
|
394
|
-
return_type = opts[:debug_return_type]
|
|
404
|
+
return_type = opts[:debug_return_type] || 'ListEndUsers200Response'
|
|
395
405
|
|
|
396
406
|
# auth_names
|
|
397
407
|
auth_names = opts[:debug_auth_names] || ['ApplicationSecret', 'ApplicationPublicKey']
|
|
@@ -414,22 +424,22 @@ module Zyphr
|
|
|
414
424
|
end
|
|
415
425
|
|
|
416
426
|
# Set an end user's stored custom claims (server-side admin)
|
|
417
|
-
# Secret-key-scoped upsert of the authoritative custom_claims for an end user. Set server-side only — clients cannot write these, which is what makes them safe for authorization (e.g. an account-type/admin flag). Claims are embedded into the user's JWTs on the next login/refresh. Max 4KB; reserved JWT/Zyphr claim names are rejected.
|
|
427
|
+
# Secret-key-scoped upsert of the authoritative custom_claims for an end user. Set server-side only — clients cannot write these, which is what makes them safe for authorization (e.g. an account-type/admin flag). Claims are embedded into the user's JWTs on the next login/refresh. Max 4KB; reserved JWT/Zyphr claim names are rejected. Each write bumps a monotonic `claims_version` (returned in the response). The change applies seamlessly on the user's next login or token refresh — a token carrying an older `claims_version` is rejected on verification and the client silently re-mints with the new claims, without a forced logout. For a hard cut-off (log the user out of all sessions immediately), call POST /auth/sessions/revoke-all after updating claims.
|
|
418
428
|
# @param user_id [String]
|
|
419
429
|
# @param set_end_user_claims_request [SetEndUserClaimsRequest]
|
|
420
430
|
# @param [Hash] opts the optional parameters
|
|
421
|
-
# @return [
|
|
431
|
+
# @return [SetEndUserClaims200Response]
|
|
422
432
|
def set_end_user_claims(user_id, set_end_user_claims_request, opts = {})
|
|
423
|
-
set_end_user_claims_with_http_info(user_id, set_end_user_claims_request, opts)
|
|
424
|
-
|
|
433
|
+
data, _status_code, _headers = set_end_user_claims_with_http_info(user_id, set_end_user_claims_request, opts)
|
|
434
|
+
data
|
|
425
435
|
end
|
|
426
436
|
|
|
427
437
|
# Set an end user's stored custom claims (server-side admin)
|
|
428
|
-
# Secret-key-scoped upsert of the authoritative custom_claims for an end user. Set server-side only — clients cannot write these, which is what makes them safe for authorization (e.g. an account-type/admin flag). Claims are embedded into the user's JWTs on the next login/refresh. Max 4KB; reserved JWT/Zyphr claim names are rejected.
|
|
438
|
+
# Secret-key-scoped upsert of the authoritative custom_claims for an end user. Set server-side only — clients cannot write these, which is what makes them safe for authorization (e.g. an account-type/admin flag). Claims are embedded into the user's JWTs on the next login/refresh. Max 4KB; reserved JWT/Zyphr claim names are rejected. Each write bumps a monotonic `claims_version` (returned in the response). The change applies seamlessly on the user's next login or token refresh — a token carrying an older `claims_version` is rejected on verification and the client silently re-mints with the new claims, without a forced logout. For a hard cut-off (log the user out of all sessions immediately), call POST /auth/sessions/revoke-all after updating claims.
|
|
429
439
|
# @param user_id [String]
|
|
430
440
|
# @param set_end_user_claims_request [SetEndUserClaimsRequest]
|
|
431
441
|
# @param [Hash] opts the optional parameters
|
|
432
|
-
# @return [Array<(
|
|
442
|
+
# @return [Array<(SetEndUserClaims200Response, Integer, Hash)>] SetEndUserClaims200Response data, response status code and response headers
|
|
433
443
|
def set_end_user_claims_with_http_info(user_id, set_end_user_claims_request, opts = {})
|
|
434
444
|
if @api_client.config.debugging
|
|
435
445
|
@api_client.config.logger.debug 'Calling API: AuthUserDirectoryApi.set_end_user_claims ...'
|
|
@@ -450,6 +460,8 @@ module Zyphr
|
|
|
450
460
|
|
|
451
461
|
# header parameters
|
|
452
462
|
header_params = opts[:header_params] || {}
|
|
463
|
+
# HTTP header 'Accept' (if needed)
|
|
464
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
453
465
|
# HTTP header 'Content-Type'
|
|
454
466
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
455
467
|
if !content_type.nil?
|
|
@@ -463,7 +475,7 @@ module Zyphr
|
|
|
463
475
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_end_user_claims_request)
|
|
464
476
|
|
|
465
477
|
# return_type
|
|
466
|
-
return_type = opts[:debug_return_type]
|
|
478
|
+
return_type = opts[:debug_return_type] || 'SetEndUserClaims200Response'
|
|
467
479
|
|
|
468
480
|
# auth_names
|
|
469
481
|
auth_names = opts[:debug_auth_names] || ['ApplicationSecret', 'ApplicationPublicKey']
|
|
@@ -490,10 +502,10 @@ module Zyphr
|
|
|
490
502
|
# @param user_id [String]
|
|
491
503
|
# @param update_end_user_by_application_request [UpdateEndUserByApplicationRequest]
|
|
492
504
|
# @param [Hash] opts the optional parameters
|
|
493
|
-
# @return [
|
|
505
|
+
# @return [GetEndUserById200Response]
|
|
494
506
|
def update_end_user_by_application(user_id, update_end_user_by_application_request, opts = {})
|
|
495
|
-
update_end_user_by_application_with_http_info(user_id, update_end_user_by_application_request, opts)
|
|
496
|
-
|
|
507
|
+
data, _status_code, _headers = update_end_user_by_application_with_http_info(user_id, update_end_user_by_application_request, opts)
|
|
508
|
+
data
|
|
497
509
|
end
|
|
498
510
|
|
|
499
511
|
# Update an end user (server-side admin)
|
|
@@ -501,7 +513,7 @@ module Zyphr
|
|
|
501
513
|
# @param user_id [String]
|
|
502
514
|
# @param update_end_user_by_application_request [UpdateEndUserByApplicationRequest]
|
|
503
515
|
# @param [Hash] opts the optional parameters
|
|
504
|
-
# @return [Array<(
|
|
516
|
+
# @return [Array<(GetEndUserById200Response, Integer, Hash)>] GetEndUserById200Response data, response status code and response headers
|
|
505
517
|
def update_end_user_by_application_with_http_info(user_id, update_end_user_by_application_request, opts = {})
|
|
506
518
|
if @api_client.config.debugging
|
|
507
519
|
@api_client.config.logger.debug 'Calling API: AuthUserDirectoryApi.update_end_user_by_application ...'
|
|
@@ -522,6 +534,8 @@ module Zyphr
|
|
|
522
534
|
|
|
523
535
|
# header parameters
|
|
524
536
|
header_params = opts[:header_params] || {}
|
|
537
|
+
# HTTP header 'Accept' (if needed)
|
|
538
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
525
539
|
# HTTP header 'Content-Type'
|
|
526
540
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
527
541
|
if !content_type.nil?
|
|
@@ -535,7 +549,7 @@ module Zyphr
|
|
|
535
549
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_end_user_by_application_request)
|
|
536
550
|
|
|
537
551
|
# return_type
|
|
538
|
-
return_type = opts[:debug_return_type]
|
|
552
|
+
return_type = opts[:debug_return_type] || 'GetEndUserById200Response'
|
|
539
553
|
|
|
540
554
|
# auth_names
|
|
541
555
|
auth_names = opts[:debug_auth_names] || ['ApplicationSecret', 'ApplicationPublicKey']
|
|
@@ -338,10 +338,10 @@ module Zyphr
|
|
|
338
338
|
# @param id [String]
|
|
339
339
|
# @param set_domain_inbound_request [SetDomainInboundRequest]
|
|
340
340
|
# @param [Hash] opts the optional parameters
|
|
341
|
-
# @return [
|
|
341
|
+
# @return [GetDomain200Response]
|
|
342
342
|
def set_domain_inbound(id, set_domain_inbound_request, opts = {})
|
|
343
|
-
set_domain_inbound_with_http_info(id, set_domain_inbound_request, opts)
|
|
344
|
-
|
|
343
|
+
data, _status_code, _headers = set_domain_inbound_with_http_info(id, set_domain_inbound_request, opts)
|
|
344
|
+
data
|
|
345
345
|
end
|
|
346
346
|
|
|
347
347
|
# Enable or disable inbound email for a domain
|
|
@@ -349,7 +349,7 @@ module Zyphr
|
|
|
349
349
|
# @param id [String]
|
|
350
350
|
# @param set_domain_inbound_request [SetDomainInboundRequest]
|
|
351
351
|
# @param [Hash] opts the optional parameters
|
|
352
|
-
# @return [Array<(
|
|
352
|
+
# @return [Array<(GetDomain200Response, Integer, Hash)>] GetDomain200Response data, response status code and response headers
|
|
353
353
|
def set_domain_inbound_with_http_info(id, set_domain_inbound_request, opts = {})
|
|
354
354
|
if @api_client.config.debugging
|
|
355
355
|
@api_client.config.logger.debug 'Calling API: DomainsApi.set_domain_inbound ...'
|
|
@@ -370,6 +370,8 @@ module Zyphr
|
|
|
370
370
|
|
|
371
371
|
# header parameters
|
|
372
372
|
header_params = opts[:header_params] || {}
|
|
373
|
+
# HTTP header 'Accept' (if needed)
|
|
374
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
373
375
|
# HTTP header 'Content-Type'
|
|
374
376
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
375
377
|
if !content_type.nil?
|
|
@@ -383,7 +385,7 @@ module Zyphr
|
|
|
383
385
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_domain_inbound_request)
|
|
384
386
|
|
|
385
387
|
# return_type
|
|
386
|
-
return_type = opts[:debug_return_type]
|
|
388
|
+
return_type = opts[:debug_return_type] || 'GetDomain200Response'
|
|
387
389
|
|
|
388
390
|
# auth_names
|
|
389
391
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|