zyphr 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +59 -0
  3. data/docs/BatchPublishWaaSEvents201Response.md +18 -0
  4. data/docs/CreateWaaSApplication201Response.md +18 -0
  5. data/docs/CreateWaaSApplicationRequest.md +22 -0
  6. data/docs/CreateWaaSEndpoint201Response.md +18 -0
  7. data/docs/CreateWaaSEndpointRequest.md +22 -0
  8. data/docs/CreateWaaSEndpointResponse.md +30 -0
  9. data/docs/CreateWaaSEventType201Response.md +18 -0
  10. data/docs/CreateWaaSEventTypeRequest.md +26 -0
  11. data/docs/GenerateWaaSPortalToken201Response.md +18 -0
  12. data/docs/GetWaaSEndpoint200Response.md +18 -0
  13. data/docs/GetWaaSUsage200Response.md +18 -0
  14. data/docs/ListWaaSApplications200Response.md +18 -0
  15. data/docs/ListWaaSEndpointDeliveries200Response.md +18 -0
  16. data/docs/ListWaaSEndpoints200Response.md +18 -0
  17. data/docs/ListWaaSEventTypes200Response.md +18 -0
  18. data/docs/PublishWaaSEvent201Response.md +18 -0
  19. data/docs/UpdateWaaSApplicationRequest.md +22 -0
  20. data/docs/UpdateWaaSEndpointRequest.md +22 -0
  21. data/docs/UpdateWaaSEventTypeRequest.md +24 -0
  22. data/docs/WaaSApplication.md +32 -0
  23. data/docs/WaaSApplicationsApi.md +446 -0
  24. data/docs/WaaSBatchPublishRequest.md +18 -0
  25. data/docs/WaaSBatchPublishResponse.md +22 -0
  26. data/docs/WaaSDeliveriesApi.md +319 -0
  27. data/docs/WaaSDelivery.md +38 -0
  28. data/docs/WaaSEndpoint.md +32 -0
  29. data/docs/WaaSEndpointsApi.md +673 -0
  30. data/docs/WaaSEventType.md +36 -0
  31. data/docs/WaaSEventTypesApi.md +454 -0
  32. data/docs/WaaSEventsApi.md +155 -0
  33. data/docs/WaaSPortalApi.md +81 -0
  34. data/docs/WaaSPortalTokenRequest.md +24 -0
  35. data/docs/WaaSPortalTokenRequestTheme.md +20 -0
  36. data/docs/WaaSPortalTokenResponse.md +20 -0
  37. data/docs/WaaSPublishEventRequest.md +24 -0
  38. data/docs/WaaSPublishEventResponse.md +26 -0
  39. data/docs/WaaSUsageResponse.md +28 -0
  40. data/lib/zyphr/api/waa_s_applications_api.rb +425 -0
  41. data/lib/zyphr/api/waa_s_deliveries_api.rb +316 -0
  42. data/lib/zyphr/api/waa_s_endpoints_api.rb +653 -0
  43. data/lib/zyphr/api/waa_s_event_types_api.rb +452 -0
  44. data/lib/zyphr/api/waa_s_events_api.rb +170 -0
  45. data/lib/zyphr/api/waa_s_portal_api.rb +96 -0
  46. data/lib/zyphr/models/batch_publish_waa_s_events201_response.rb +220 -0
  47. data/lib/zyphr/models/create_waa_s_application201_response.rb +220 -0
  48. data/lib/zyphr/models/create_waa_s_application_request.rb +275 -0
  49. data/lib/zyphr/models/create_waa_s_endpoint201_response.rb +220 -0
  50. data/lib/zyphr/models/create_waa_s_endpoint_request.rb +294 -0
  51. data/lib/zyphr/models/create_waa_s_endpoint_response.rb +277 -0
  52. data/lib/zyphr/models/create_waa_s_event_type201_response.rb +220 -0
  53. data/lib/zyphr/models/create_waa_s_event_type_request.rb +292 -0
  54. data/lib/zyphr/models/generate_waa_s_portal_token201_response.rb +220 -0
  55. data/lib/zyphr/models/get_waa_s_endpoint200_response.rb +220 -0
  56. data/lib/zyphr/models/get_waa_s_usage200_response.rb +220 -0
  57. data/lib/zyphr/models/list_waa_s_applications200_response.rb +222 -0
  58. data/lib/zyphr/models/list_waa_s_endpoint_deliveries200_response.rb +222 -0
  59. data/lib/zyphr/models/list_waa_s_endpoints200_response.rb +222 -0
  60. data/lib/zyphr/models/list_waa_s_event_types200_response.rb +222 -0
  61. data/lib/zyphr/models/publish_waa_s_event201_response.rb +220 -0
  62. data/lib/zyphr/models/update_waa_s_application_request.rb +272 -0
  63. data/lib/zyphr/models/update_waa_s_endpoint_request.rb +274 -0
  64. data/lib/zyphr/models/update_waa_s_event_type_request.rb +247 -0
  65. data/lib/zyphr/models/waa_s_application.rb +317 -0
  66. data/lib/zyphr/models/waa_s_batch_publish_request.rb +248 -0
  67. data/lib/zyphr/models/waa_s_batch_publish_response.rb +240 -0
  68. data/lib/zyphr/models/waa_s_delivery.rb +344 -0
  69. data/lib/zyphr/models/waa_s_endpoint.rb +319 -0
  70. data/lib/zyphr/models/waa_s_event_type.rb +335 -0
  71. data/lib/zyphr/models/waa_s_portal_token_request.rb +267 -0
  72. data/lib/zyphr/models/waa_s_portal_token_request_theme.rb +263 -0
  73. data/lib/zyphr/models/waa_s_portal_token_response.rb +229 -0
  74. data/lib/zyphr/models/waa_s_publish_event_request.rb +302 -0
  75. data/lib/zyphr/models/waa_s_publish_event_response.rb +256 -0
  76. data/lib/zyphr/models/waa_s_usage_response.rb +265 -0
  77. data/lib/zyphr.rb +37 -0
  78. data/spec/api/waa_s_applications_api_spec.rb +110 -0
  79. data/spec/api/waa_s_deliveries_api_spec.rb +94 -0
  80. data/spec/api/waa_s_endpoints_api_spec.rb +154 -0
  81. data/spec/api/waa_s_event_types_api_spec.rb +115 -0
  82. data/spec/api/waa_s_events_api_spec.rb +61 -0
  83. data/spec/api/waa_s_portal_api_spec.rb +48 -0
  84. data/spec/models/batch_publish_waa_s_events201_response_spec.rb +36 -0
  85. data/spec/models/create_waa_s_application201_response_spec.rb +36 -0
  86. data/spec/models/create_waa_s_application_request_spec.rb +48 -0
  87. data/spec/models/create_waa_s_endpoint201_response_spec.rb +36 -0
  88. data/spec/models/create_waa_s_endpoint_request_spec.rb +48 -0
  89. data/spec/models/create_waa_s_endpoint_response_spec.rb +72 -0
  90. data/spec/models/create_waa_s_event_type201_response_spec.rb +36 -0
  91. data/spec/models/create_waa_s_event_type_request_spec.rb +60 -0
  92. data/spec/models/generate_waa_s_portal_token201_response_spec.rb +36 -0
  93. data/spec/models/get_waa_s_endpoint200_response_spec.rb +36 -0
  94. data/spec/models/get_waa_s_usage200_response_spec.rb +36 -0
  95. data/spec/models/list_waa_s_applications200_response_spec.rb +36 -0
  96. data/spec/models/list_waa_s_endpoint_deliveries200_response_spec.rb +36 -0
  97. data/spec/models/list_waa_s_endpoints200_response_spec.rb +36 -0
  98. data/spec/models/list_waa_s_event_types200_response_spec.rb +36 -0
  99. data/spec/models/publish_waa_s_event201_response_spec.rb +36 -0
  100. data/spec/models/update_waa_s_application_request_spec.rb +52 -0
  101. data/spec/models/update_waa_s_endpoint_request_spec.rb +52 -0
  102. data/spec/models/update_waa_s_event_type_request_spec.rb +54 -0
  103. data/spec/models/waa_s_application_spec.rb +82 -0
  104. data/spec/models/waa_s_batch_publish_request_spec.rb +36 -0
  105. data/spec/models/waa_s_batch_publish_response_spec.rb +48 -0
  106. data/spec/models/waa_s_delivery_spec.rb +100 -0
  107. data/spec/models/waa_s_endpoint_spec.rb +82 -0
  108. data/spec/models/waa_s_event_type_spec.rb +94 -0
  109. data/spec/models/waa_s_portal_token_request_spec.rb +54 -0
  110. data/spec/models/waa_s_portal_token_request_theme_spec.rb +46 -0
  111. data/spec/models/waa_s_portal_token_response_spec.rb +42 -0
  112. data/spec/models/waa_s_publish_event_request_spec.rb +54 -0
  113. data/spec/models/waa_s_publish_event_response_spec.rb +60 -0
  114. data/spec/models/waa_s_usage_response_spec.rb +66 -0
  115. data/zyphr.gemspec +1 -1
  116. metadata +150 -2
@@ -0,0 +1,454 @@
1
+ # Zyphr::WaaSEventTypesApi
2
+
3
+ All URIs are relative to *https://api.zyphr.dev/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_waa_s_event_type**](WaaSEventTypesApi.md#create_waa_s_event_type) | **POST** /v1/waas/applications/{appId}/event-types | Register an event type |
8
+ | [**delete_waa_s_event_type**](WaaSEventTypesApi.md#delete_waa_s_event_type) | **DELETE** /v1/waas/applications/{appId}/event-types/{eventTypeId} | Delete an event type |
9
+ | [**deprecate_waa_s_event_type**](WaaSEventTypesApi.md#deprecate_waa_s_event_type) | **POST** /v1/waas/applications/{appId}/event-types/{eventTypeId}/deprecate | Deprecate an event type |
10
+ | [**get_waa_s_event_type**](WaaSEventTypesApi.md#get_waa_s_event_type) | **GET** /v1/waas/applications/{appId}/event-types/{eventTypeId} | Get an event type |
11
+ | [**list_waa_s_event_types**](WaaSEventTypesApi.md#list_waa_s_event_types) | **GET** /v1/waas/applications/{appId}/event-types | List event types |
12
+ | [**update_waa_s_event_type**](WaaSEventTypesApi.md#update_waa_s_event_type) | **PUT** /v1/waas/applications/{appId}/event-types/{eventTypeId} | Update an event type |
13
+
14
+
15
+ ## create_waa_s_event_type
16
+
17
+ > <CreateWaaSEventType201Response> create_waa_s_event_type(app_id, create_waa_s_event_type_request)
18
+
19
+ Register an event type
20
+
21
+ Register a new custom event type for a WaaS application.
22
+
23
+ ### Examples
24
+
25
+ ```ruby
26
+ require 'time'
27
+ require 'zyphr'
28
+ # setup authorization
29
+ Zyphr.configure do |config|
30
+ # Configure API key authorization: ApiKeyAuth
31
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
32
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
34
+ end
35
+
36
+ api_instance = Zyphr::WaaSEventTypesApi.new
37
+ app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
38
+ create_waa_s_event_type_request = Zyphr::CreateWaaSEventTypeRequest.new({event_type: 'order.created', name: 'Order Created'}) # CreateWaaSEventTypeRequest |
39
+
40
+ begin
41
+ # Register an event type
42
+ result = api_instance.create_waa_s_event_type(app_id, create_waa_s_event_type_request)
43
+ p result
44
+ rescue Zyphr::ApiError => e
45
+ puts "Error when calling WaaSEventTypesApi->create_waa_s_event_type: #{e}"
46
+ end
47
+ ```
48
+
49
+ #### Using the create_waa_s_event_type_with_http_info variant
50
+
51
+ This returns an Array which contains the response data, status code and headers.
52
+
53
+ > <Array(<CreateWaaSEventType201Response>, Integer, Hash)> create_waa_s_event_type_with_http_info(app_id, create_waa_s_event_type_request)
54
+
55
+ ```ruby
56
+ begin
57
+ # Register an event type
58
+ data, status_code, headers = api_instance.create_waa_s_event_type_with_http_info(app_id, create_waa_s_event_type_request)
59
+ p status_code # => 2xx
60
+ p headers # => { ... }
61
+ p data # => <CreateWaaSEventType201Response>
62
+ rescue Zyphr::ApiError => e
63
+ puts "Error when calling WaaSEventTypesApi->create_waa_s_event_type_with_http_info: #{e}"
64
+ end
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Name | Type | Description | Notes |
70
+ | ---- | ---- | ----------- | ----- |
71
+ | **app_id** | **String** | | |
72
+ | **create_waa_s_event_type_request** | [**CreateWaaSEventTypeRequest**](CreateWaaSEventTypeRequest.md) | | |
73
+
74
+ ### Return type
75
+
76
+ [**CreateWaaSEventType201Response**](CreateWaaSEventType201Response.md)
77
+
78
+ ### Authorization
79
+
80
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
81
+
82
+ ### HTTP request headers
83
+
84
+ - **Content-Type**: application/json
85
+ - **Accept**: application/json
86
+
87
+
88
+ ## delete_waa_s_event_type
89
+
90
+ > delete_waa_s_event_type(app_id, event_type_id)
91
+
92
+ Delete an event type
93
+
94
+ Permanently delete an event type. Endpoints subscribed to this type will stop receiving deliveries.
95
+
96
+ ### Examples
97
+
98
+ ```ruby
99
+ require 'time'
100
+ require 'zyphr'
101
+ # setup authorization
102
+ Zyphr.configure do |config|
103
+ # Configure API key authorization: ApiKeyAuth
104
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
105
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
106
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
107
+ end
108
+
109
+ api_instance = Zyphr::WaaSEventTypesApi.new
110
+ app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
111
+ event_type_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
112
+
113
+ begin
114
+ # Delete an event type
115
+ api_instance.delete_waa_s_event_type(app_id, event_type_id)
116
+ rescue Zyphr::ApiError => e
117
+ puts "Error when calling WaaSEventTypesApi->delete_waa_s_event_type: #{e}"
118
+ end
119
+ ```
120
+
121
+ #### Using the delete_waa_s_event_type_with_http_info variant
122
+
123
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
124
+
125
+ > <Array(nil, Integer, Hash)> delete_waa_s_event_type_with_http_info(app_id, event_type_id)
126
+
127
+ ```ruby
128
+ begin
129
+ # Delete an event type
130
+ data, status_code, headers = api_instance.delete_waa_s_event_type_with_http_info(app_id, event_type_id)
131
+ p status_code # => 2xx
132
+ p headers # => { ... }
133
+ p data # => nil
134
+ rescue Zyphr::ApiError => e
135
+ puts "Error when calling WaaSEventTypesApi->delete_waa_s_event_type_with_http_info: #{e}"
136
+ end
137
+ ```
138
+
139
+ ### Parameters
140
+
141
+ | Name | Type | Description | Notes |
142
+ | ---- | ---- | ----------- | ----- |
143
+ | **app_id** | **String** | | |
144
+ | **event_type_id** | **String** | | |
145
+
146
+ ### Return type
147
+
148
+ nil (empty response body)
149
+
150
+ ### Authorization
151
+
152
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: Not defined
157
+ - **Accept**: Not defined
158
+
159
+
160
+ ## deprecate_waa_s_event_type
161
+
162
+ > deprecate_waa_s_event_type(app_id, event_type_id)
163
+
164
+ Deprecate an event type
165
+
166
+ Mark an event type as deprecated. Existing subscriptions continue to receive deliveries, but new subscriptions are blocked.
167
+
168
+ ### Examples
169
+
170
+ ```ruby
171
+ require 'time'
172
+ require 'zyphr'
173
+ # setup authorization
174
+ Zyphr.configure do |config|
175
+ # Configure API key authorization: ApiKeyAuth
176
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
177
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
178
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
179
+ end
180
+
181
+ api_instance = Zyphr::WaaSEventTypesApi.new
182
+ app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
183
+ event_type_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
184
+
185
+ begin
186
+ # Deprecate an event type
187
+ api_instance.deprecate_waa_s_event_type(app_id, event_type_id)
188
+ rescue Zyphr::ApiError => e
189
+ puts "Error when calling WaaSEventTypesApi->deprecate_waa_s_event_type: #{e}"
190
+ end
191
+ ```
192
+
193
+ #### Using the deprecate_waa_s_event_type_with_http_info variant
194
+
195
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
196
+
197
+ > <Array(nil, Integer, Hash)> deprecate_waa_s_event_type_with_http_info(app_id, event_type_id)
198
+
199
+ ```ruby
200
+ begin
201
+ # Deprecate an event type
202
+ data, status_code, headers = api_instance.deprecate_waa_s_event_type_with_http_info(app_id, event_type_id)
203
+ p status_code # => 2xx
204
+ p headers # => { ... }
205
+ p data # => nil
206
+ rescue Zyphr::ApiError => e
207
+ puts "Error when calling WaaSEventTypesApi->deprecate_waa_s_event_type_with_http_info: #{e}"
208
+ end
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+ | Name | Type | Description | Notes |
214
+ | ---- | ---- | ----------- | ----- |
215
+ | **app_id** | **String** | | |
216
+ | **event_type_id** | **String** | | |
217
+
218
+ ### Return type
219
+
220
+ nil (empty response body)
221
+
222
+ ### Authorization
223
+
224
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: Not defined
230
+
231
+
232
+ ## get_waa_s_event_type
233
+
234
+ > <CreateWaaSEventType201Response> get_waa_s_event_type(app_id, event_type_id)
235
+
236
+ Get an event type
237
+
238
+ ### Examples
239
+
240
+ ```ruby
241
+ require 'time'
242
+ require 'zyphr'
243
+ # setup authorization
244
+ Zyphr.configure do |config|
245
+ # Configure API key authorization: ApiKeyAuth
246
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
247
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
248
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
249
+ end
250
+
251
+ api_instance = Zyphr::WaaSEventTypesApi.new
252
+ app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
253
+ event_type_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
254
+
255
+ begin
256
+ # Get an event type
257
+ result = api_instance.get_waa_s_event_type(app_id, event_type_id)
258
+ p result
259
+ rescue Zyphr::ApiError => e
260
+ puts "Error when calling WaaSEventTypesApi->get_waa_s_event_type: #{e}"
261
+ end
262
+ ```
263
+
264
+ #### Using the get_waa_s_event_type_with_http_info variant
265
+
266
+ This returns an Array which contains the response data, status code and headers.
267
+
268
+ > <Array(<CreateWaaSEventType201Response>, Integer, Hash)> get_waa_s_event_type_with_http_info(app_id, event_type_id)
269
+
270
+ ```ruby
271
+ begin
272
+ # Get an event type
273
+ data, status_code, headers = api_instance.get_waa_s_event_type_with_http_info(app_id, event_type_id)
274
+ p status_code # => 2xx
275
+ p headers # => { ... }
276
+ p data # => <CreateWaaSEventType201Response>
277
+ rescue Zyphr::ApiError => e
278
+ puts "Error when calling WaaSEventTypesApi->get_waa_s_event_type_with_http_info: #{e}"
279
+ end
280
+ ```
281
+
282
+ ### Parameters
283
+
284
+ | Name | Type | Description | Notes |
285
+ | ---- | ---- | ----------- | ----- |
286
+ | **app_id** | **String** | | |
287
+ | **event_type_id** | **String** | | |
288
+
289
+ ### Return type
290
+
291
+ [**CreateWaaSEventType201Response**](CreateWaaSEventType201Response.md)
292
+
293
+ ### Authorization
294
+
295
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
296
+
297
+ ### HTTP request headers
298
+
299
+ - **Content-Type**: Not defined
300
+ - **Accept**: application/json
301
+
302
+
303
+ ## list_waa_s_event_types
304
+
305
+ > <ListWaaSEventTypes200Response> list_waa_s_event_types(app_id, opts)
306
+
307
+ List event types
308
+
309
+ List all event types registered for a WaaS application.
310
+
311
+ ### Examples
312
+
313
+ ```ruby
314
+ require 'time'
315
+ require 'zyphr'
316
+ # setup authorization
317
+ Zyphr.configure do |config|
318
+ # Configure API key authorization: ApiKeyAuth
319
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
320
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
321
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
322
+ end
323
+
324
+ api_instance = Zyphr::WaaSEventTypesApi.new
325
+ app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
326
+ opts = {
327
+ limit: 56, # Integer |
328
+ offset: 56, # Integer |
329
+ category: 'category_example', # String |
330
+ status: 'active' # String |
331
+ }
332
+
333
+ begin
334
+ # List event types
335
+ result = api_instance.list_waa_s_event_types(app_id, opts)
336
+ p result
337
+ rescue Zyphr::ApiError => e
338
+ puts "Error when calling WaaSEventTypesApi->list_waa_s_event_types: #{e}"
339
+ end
340
+ ```
341
+
342
+ #### Using the list_waa_s_event_types_with_http_info variant
343
+
344
+ This returns an Array which contains the response data, status code and headers.
345
+
346
+ > <Array(<ListWaaSEventTypes200Response>, Integer, Hash)> list_waa_s_event_types_with_http_info(app_id, opts)
347
+
348
+ ```ruby
349
+ begin
350
+ # List event types
351
+ data, status_code, headers = api_instance.list_waa_s_event_types_with_http_info(app_id, opts)
352
+ p status_code # => 2xx
353
+ p headers # => { ... }
354
+ p data # => <ListWaaSEventTypes200Response>
355
+ rescue Zyphr::ApiError => e
356
+ puts "Error when calling WaaSEventTypesApi->list_waa_s_event_types_with_http_info: #{e}"
357
+ end
358
+ ```
359
+
360
+ ### Parameters
361
+
362
+ | Name | Type | Description | Notes |
363
+ | ---- | ---- | ----------- | ----- |
364
+ | **app_id** | **String** | | |
365
+ | **limit** | **Integer** | | [optional][default to 50] |
366
+ | **offset** | **Integer** | | [optional][default to 0] |
367
+ | **category** | **String** | | [optional] |
368
+ | **status** | **String** | | [optional] |
369
+
370
+ ### Return type
371
+
372
+ [**ListWaaSEventTypes200Response**](ListWaaSEventTypes200Response.md)
373
+
374
+ ### Authorization
375
+
376
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
377
+
378
+ ### HTTP request headers
379
+
380
+ - **Content-Type**: Not defined
381
+ - **Accept**: application/json
382
+
383
+
384
+ ## update_waa_s_event_type
385
+
386
+ > update_waa_s_event_type(app_id, event_type_id, update_waa_s_event_type_request)
387
+
388
+ Update an event type
389
+
390
+ ### Examples
391
+
392
+ ```ruby
393
+ require 'time'
394
+ require 'zyphr'
395
+ # setup authorization
396
+ Zyphr.configure do |config|
397
+ # Configure API key authorization: ApiKeyAuth
398
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
399
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
400
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
401
+ end
402
+
403
+ api_instance = Zyphr::WaaSEventTypesApi.new
404
+ app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
405
+ event_type_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
406
+ update_waa_s_event_type_request = Zyphr::UpdateWaaSEventTypeRequest.new # UpdateWaaSEventTypeRequest |
407
+
408
+ begin
409
+ # Update an event type
410
+ api_instance.update_waa_s_event_type(app_id, event_type_id, update_waa_s_event_type_request)
411
+ rescue Zyphr::ApiError => e
412
+ puts "Error when calling WaaSEventTypesApi->update_waa_s_event_type: #{e}"
413
+ end
414
+ ```
415
+
416
+ #### Using the update_waa_s_event_type_with_http_info variant
417
+
418
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
419
+
420
+ > <Array(nil, Integer, Hash)> update_waa_s_event_type_with_http_info(app_id, event_type_id, update_waa_s_event_type_request)
421
+
422
+ ```ruby
423
+ begin
424
+ # Update an event type
425
+ 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
+ p status_code # => 2xx
427
+ p headers # => { ... }
428
+ p data # => nil
429
+ rescue Zyphr::ApiError => e
430
+ puts "Error when calling WaaSEventTypesApi->update_waa_s_event_type_with_http_info: #{e}"
431
+ end
432
+ ```
433
+
434
+ ### Parameters
435
+
436
+ | Name | Type | Description | Notes |
437
+ | ---- | ---- | ----------- | ----- |
438
+ | **app_id** | **String** | | |
439
+ | **event_type_id** | **String** | | |
440
+ | **update_waa_s_event_type_request** | [**UpdateWaaSEventTypeRequest**](UpdateWaaSEventTypeRequest.md) | | |
441
+
442
+ ### Return type
443
+
444
+ nil (empty response body)
445
+
446
+ ### Authorization
447
+
448
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
449
+
450
+ ### HTTP request headers
451
+
452
+ - **Content-Type**: application/json
453
+ - **Accept**: Not defined
454
+
@@ -0,0 +1,155 @@
1
+ # Zyphr::WaaSEventsApi
2
+
3
+ All URIs are relative to *https://api.zyphr.dev/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**batch_publish_waa_s_events**](WaaSEventsApi.md#batch_publish_waa_s_events) | **POST** /v1/waas/applications/{appId}/events/batch | Batch publish events |
8
+ | [**publish_waa_s_event**](WaaSEventsApi.md#publish_waa_s_event) | **POST** /v1/waas/applications/{appId}/events | Publish an event |
9
+
10
+
11
+ ## batch_publish_waa_s_events
12
+
13
+ > <BatchPublishWaaSEvents201Response> batch_publish_waa_s_events(app_id, waa_s_batch_publish_request)
14
+
15
+ Batch publish events
16
+
17
+ Publish up to 100 events in a single request. Requires Starter plan or higher.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'zyphr'
24
+ # setup authorization
25
+ Zyphr.configure do |config|
26
+ # Configure API key authorization: ApiKeyAuth
27
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = Zyphr::WaaSEventsApi.new
33
+ app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
34
+ waa_s_batch_publish_request = Zyphr::WaaSBatchPublishRequest.new({events: [Zyphr::WaaSPublishEventRequest.new({event_type: 'order.created', tenant_id: 'tenant_abc', data: 3.56})]}) # WaaSBatchPublishRequest |
35
+
36
+ begin
37
+ # Batch publish events
38
+ result = api_instance.batch_publish_waa_s_events(app_id, waa_s_batch_publish_request)
39
+ p result
40
+ rescue Zyphr::ApiError => e
41
+ puts "Error when calling WaaSEventsApi->batch_publish_waa_s_events: #{e}"
42
+ end
43
+ ```
44
+
45
+ #### Using the batch_publish_waa_s_events_with_http_info variant
46
+
47
+ This returns an Array which contains the response data, status code and headers.
48
+
49
+ > <Array(<BatchPublishWaaSEvents201Response>, Integer, Hash)> batch_publish_waa_s_events_with_http_info(app_id, waa_s_batch_publish_request)
50
+
51
+ ```ruby
52
+ begin
53
+ # Batch publish events
54
+ data, status_code, headers = api_instance.batch_publish_waa_s_events_with_http_info(app_id, waa_s_batch_publish_request)
55
+ p status_code # => 2xx
56
+ p headers # => { ... }
57
+ p data # => <BatchPublishWaaSEvents201Response>
58
+ rescue Zyphr::ApiError => e
59
+ puts "Error when calling WaaSEventsApi->batch_publish_waa_s_events_with_http_info: #{e}"
60
+ end
61
+ ```
62
+
63
+ ### Parameters
64
+
65
+ | Name | Type | Description | Notes |
66
+ | ---- | ---- | ----------- | ----- |
67
+ | **app_id** | **String** | | |
68
+ | **waa_s_batch_publish_request** | [**WaaSBatchPublishRequest**](WaaSBatchPublishRequest.md) | | |
69
+
70
+ ### Return type
71
+
72
+ [**BatchPublishWaaSEvents201Response**](BatchPublishWaaSEvents201Response.md)
73
+
74
+ ### Authorization
75
+
76
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/json
81
+ - **Accept**: application/json
82
+
83
+
84
+ ## publish_waa_s_event
85
+
86
+ > <PublishWaaSEvent201Response> publish_waa_s_event(app_id, waa_s_publish_event_request)
87
+
88
+ Publish an event
89
+
90
+ Publish an event to all subscribed endpoints for the specified tenant. Zyphr creates delivery records and queues them for delivery.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'zyphr'
97
+ # setup authorization
98
+ Zyphr.configure do |config|
99
+ # Configure API key authorization: ApiKeyAuth
100
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
101
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
102
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
103
+ end
104
+
105
+ api_instance = Zyphr::WaaSEventsApi.new
106
+ app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
107
+ waa_s_publish_event_request = Zyphr::WaaSPublishEventRequest.new({event_type: 'order.created', tenant_id: 'tenant_abc', data: 3.56}) # WaaSPublishEventRequest |
108
+
109
+ begin
110
+ # Publish an event
111
+ result = api_instance.publish_waa_s_event(app_id, waa_s_publish_event_request)
112
+ p result
113
+ rescue Zyphr::ApiError => e
114
+ puts "Error when calling WaaSEventsApi->publish_waa_s_event: #{e}"
115
+ end
116
+ ```
117
+
118
+ #### Using the publish_waa_s_event_with_http_info variant
119
+
120
+ This returns an Array which contains the response data, status code and headers.
121
+
122
+ > <Array(<PublishWaaSEvent201Response>, Integer, Hash)> publish_waa_s_event_with_http_info(app_id, waa_s_publish_event_request)
123
+
124
+ ```ruby
125
+ begin
126
+ # Publish an event
127
+ data, status_code, headers = api_instance.publish_waa_s_event_with_http_info(app_id, waa_s_publish_event_request)
128
+ p status_code # => 2xx
129
+ p headers # => { ... }
130
+ p data # => <PublishWaaSEvent201Response>
131
+ rescue Zyphr::ApiError => e
132
+ puts "Error when calling WaaSEventsApi->publish_waa_s_event_with_http_info: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ | Name | Type | Description | Notes |
139
+ | ---- | ---- | ----------- | ----- |
140
+ | **app_id** | **String** | | |
141
+ | **waa_s_publish_event_request** | [**WaaSPublishEventRequest**](WaaSPublishEventRequest.md) | | |
142
+
143
+ ### Return type
144
+
145
+ [**PublishWaaSEvent201Response**](PublishWaaSEvent201Response.md)
146
+
147
+ ### Authorization
148
+
149
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: application/json
154
+ - **Accept**: application/json
155
+
@@ -0,0 +1,81 @@
1
+ # Zyphr::WaaSPortalApi
2
+
3
+ All URIs are relative to *https://api.zyphr.dev/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**generate_waa_s_portal_token**](WaaSPortalApi.md#generate_waa_s_portal_token) | **POST** /v1/waas/applications/{appId}/portal/token | Generate portal token |
8
+
9
+
10
+ ## generate_waa_s_portal_token
11
+
12
+ > <GenerateWaaSPortalToken201Response> generate_waa_s_portal_token(app_id, waa_s_portal_token_request)
13
+
14
+ Generate portal token
15
+
16
+ Generate a time-limited token for the embeddable webhook management portal. Requires Starter plan or higher.
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'zyphr'
23
+ # setup authorization
24
+ Zyphr.configure do |config|
25
+ # Configure API key authorization: ApiKeyAuth
26
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = Zyphr::WaaSPortalApi.new
32
+ app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
33
+ waa_s_portal_token_request = Zyphr::WaaSPortalTokenRequest.new({tenant_id: 'tenant_abc'}) # WaaSPortalTokenRequest |
34
+
35
+ begin
36
+ # Generate portal token
37
+ result = api_instance.generate_waa_s_portal_token(app_id, waa_s_portal_token_request)
38
+ p result
39
+ rescue Zyphr::ApiError => e
40
+ puts "Error when calling WaaSPortalApi->generate_waa_s_portal_token: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the generate_waa_s_portal_token_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<GenerateWaaSPortalToken201Response>, Integer, Hash)> generate_waa_s_portal_token_with_http_info(app_id, waa_s_portal_token_request)
49
+
50
+ ```ruby
51
+ begin
52
+ # Generate portal token
53
+ data, status_code, headers = api_instance.generate_waa_s_portal_token_with_http_info(app_id, waa_s_portal_token_request)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <GenerateWaaSPortalToken201Response>
57
+ rescue Zyphr::ApiError => e
58
+ puts "Error when calling WaaSPortalApi->generate_waa_s_portal_token_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **app_id** | **String** | | |
67
+ | **waa_s_portal_token_request** | [**WaaSPortalTokenRequest**](WaaSPortalTokenRequest.md) | | |
68
+
69
+ ### Return type
70
+
71
+ [**GenerateWaaSPortalToken201Response**](GenerateWaaSPortalToken201Response.md)
72
+
73
+ ### Authorization
74
+
75
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: application/json
80
+ - **Accept**: application/json
81
+
@@ -0,0 +1,24 @@
1
+ # Zyphr::WaaSPortalTokenRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **tenant_id** | **String** | | |
8
+ | **allowed_event_types** | **Array&lt;String&gt;** | | [optional] |
9
+ | **expires_in** | **Integer** | Token TTL in seconds (default 3600) | [optional] |
10
+ | **theme** | [**WaaSPortalTokenRequestTheme**](WaaSPortalTokenRequestTheme.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'zyphr'
16
+
17
+ instance = Zyphr::WaaSPortalTokenRequest.new(
18
+ tenant_id: tenant_abc,
19
+ allowed_event_types: null,
20
+ expires_in: 3600,
21
+ theme: null
22
+ )
23
+ ```
24
+