zyphr 0.1.19 → 0.1.21

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 (102) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +47 -6
  3. data/docs/AuthEmailTemplate.md +42 -0
  4. data/docs/AuthEmailTemplateDefault.md +26 -0
  5. data/docs/AuthEmailTemplateDefaultResponse.md +20 -0
  6. data/docs/AuthEmailTemplateDeleteResponse.md +20 -0
  7. data/docs/{SuccessResultData.md → AuthEmailTemplateDeleteResponseData.md} +2 -2
  8. data/docs/AuthEmailTemplateListResponse.md +20 -0
  9. data/docs/AuthEmailTemplatePreviewDraft.md +28 -0
  10. data/docs/AuthEmailTemplatePreviewRequest.md +20 -0
  11. data/docs/AuthEmailTemplatePreviewResponse.md +20 -0
  12. data/docs/AuthEmailTemplatePreviewResult.md +26 -0
  13. data/docs/AuthEmailTemplateResponse.md +20 -0
  14. data/docs/AuthEmailTemplateTestRequest.md +20 -0
  15. data/docs/AuthEmailTemplateTestResponse.md +20 -0
  16. data/docs/AuthEmailTemplateTestResult.md +20 -0
  17. data/docs/AuthEmailTemplateVersion.md +38 -0
  18. data/docs/AuthEmailTemplateVersionsResponse.md +20 -0
  19. data/docs/AuthEmailTemplatesApi.md +782 -0
  20. data/docs/AuthEmailType.md +15 -0
  21. data/docs/BulkUpsertAuthEmailTemplatesRequest.md +22 -0
  22. data/docs/BulkUpsertAuthEmailTemplatesResponse.md +20 -0
  23. data/docs/ResubscribeResponse.md +1 -1
  24. data/docs/SendSlackMessageRequest.md +40 -0
  25. data/docs/SendSlackMessageResponse.md +20 -0
  26. data/docs/SendSlackMessageResult.md +28 -0
  27. data/docs/SlackApi.md +233 -0
  28. data/docs/SlackMessage.md +50 -0
  29. data/docs/SlackMessageListResponse.md +20 -0
  30. data/docs/SlackMessageListResponseMeta.md +24 -0
  31. data/docs/SlackMessageResponse.md +20 -0
  32. data/docs/SlackMessageStatus.md +15 -0
  33. data/docs/SlackMessageSummary.md +38 -0
  34. data/docs/SuccessResult.md +1 -1
  35. data/docs/UpsertAuthEmailTemplateRequest.md +34 -0
  36. data/lib/zyphr/api/auth_email_templates_api.rb +688 -0
  37. data/lib/zyphr/api/slack_api.rb +233 -0
  38. data/lib/zyphr/models/auth_email_template.rb +372 -0
  39. data/lib/zyphr/models/auth_email_template_default.rb +281 -0
  40. data/lib/zyphr/models/auth_email_template_default_response.rb +229 -0
  41. data/lib/zyphr/models/auth_email_template_delete_response.rb +229 -0
  42. data/lib/zyphr/models/{success_result_data.rb → auth_email_template_delete_response_data.rb} +3 -3
  43. data/lib/zyphr/models/auth_email_template_list_response.rb +231 -0
  44. data/lib/zyphr/models/auth_email_template_preview_draft.rb +272 -0
  45. data/lib/zyphr/models/auth_email_template_preview_request.rb +232 -0
  46. data/lib/zyphr/models/auth_email_template_preview_response.rb +229 -0
  47. data/lib/zyphr/models/auth_email_template_preview_result.rb +258 -0
  48. data/lib/zyphr/models/auth_email_template_response.rb +229 -0
  49. data/lib/zyphr/models/auth_email_template_test_request.rb +249 -0
  50. data/lib/zyphr/models/auth_email_template_test_response.rb +229 -0
  51. data/lib/zyphr/models/auth_email_template_test_result.rb +229 -0
  52. data/lib/zyphr/models/auth_email_template_version.rb +352 -0
  53. data/lib/zyphr/models/auth_email_template_versions_response.rb +231 -0
  54. data/lib/zyphr/models/auth_email_type.rb +41 -0
  55. data/lib/zyphr/models/bulk_upsert_auth_email_templates_request.rb +239 -0
  56. data/lib/zyphr/models/bulk_upsert_auth_email_templates_response.rb +231 -0
  57. data/lib/zyphr/models/resubscribe_response.rb +1 -1
  58. data/lib/zyphr/models/send_slack_message_request.rb +340 -0
  59. data/lib/zyphr/models/send_slack_message_response.rb +229 -0
  60. data/lib/zyphr/models/send_slack_message_result.rb +289 -0
  61. data/lib/zyphr/models/slack_message.rb +406 -0
  62. data/lib/zyphr/models/slack_message_list_response.rb +231 -0
  63. data/lib/zyphr/models/slack_message_list_response_meta.rb +254 -0
  64. data/lib/zyphr/models/slack_message_response.rb +229 -0
  65. data/lib/zyphr/models/slack_message_status.rb +43 -0
  66. data/lib/zyphr/models/slack_message_summary.rb +340 -0
  67. data/lib/zyphr/models/success_result.rb +1 -1
  68. data/lib/zyphr/models/upsert_auth_email_template_request.rb +335 -0
  69. data/lib/zyphr.rb +31 -1
  70. data/spec/api/auth_email_templates_api_spec.rb +157 -0
  71. data/spec/api/slack_api_spec.rb +75 -0
  72. data/spec/models/auth_email_template_default_response_spec.rb +42 -0
  73. data/spec/models/auth_email_template_default_spec.rb +60 -0
  74. data/spec/models/{success_result_data_spec.rb → auth_email_template_delete_response_data_spec.rb} +6 -6
  75. data/spec/models/auth_email_template_delete_response_spec.rb +42 -0
  76. data/spec/models/auth_email_template_list_response_spec.rb +42 -0
  77. data/spec/models/auth_email_template_preview_draft_spec.rb +66 -0
  78. data/spec/models/auth_email_template_preview_request_spec.rb +42 -0
  79. data/spec/models/auth_email_template_preview_response_spec.rb +42 -0
  80. data/spec/models/auth_email_template_preview_result_spec.rb +60 -0
  81. data/spec/models/auth_email_template_response_spec.rb +42 -0
  82. data/spec/models/auth_email_template_spec.rb +112 -0
  83. data/spec/models/auth_email_template_test_request_spec.rb +42 -0
  84. data/spec/models/auth_email_template_test_response_spec.rb +42 -0
  85. data/spec/models/auth_email_template_test_result_spec.rb +42 -0
  86. data/spec/models/auth_email_template_version_spec.rb +100 -0
  87. data/spec/models/auth_email_template_versions_response_spec.rb +42 -0
  88. data/spec/models/auth_email_type_spec.rb +30 -0
  89. data/spec/models/bulk_upsert_auth_email_templates_request_spec.rb +48 -0
  90. data/spec/models/bulk_upsert_auth_email_templates_response_spec.rb +42 -0
  91. data/spec/models/send_slack_message_request_spec.rb +102 -0
  92. data/spec/models/send_slack_message_response_spec.rb +42 -0
  93. data/spec/models/send_slack_message_result_spec.rb +66 -0
  94. data/spec/models/slack_message_list_response_meta_spec.rb +54 -0
  95. data/spec/models/slack_message_list_response_spec.rb +42 -0
  96. data/spec/models/slack_message_response_spec.rb +42 -0
  97. data/spec/models/slack_message_spec.rb +132 -0
  98. data/spec/models/slack_message_status_spec.rb +30 -0
  99. data/spec/models/slack_message_summary_spec.rb +96 -0
  100. data/spec/models/upsert_auth_email_template_request_spec.rb +88 -0
  101. data/zyphr.gemspec +1 -1
  102. metadata +126 -6
data/lib/zyphr.rb CHANGED
@@ -21,6 +21,23 @@ require 'zyphr/models/add_topic_subscribers_request'
21
21
  require 'zyphr/models/api_error'
22
22
  require 'zyphr/models/api_error_error'
23
23
  require 'zyphr/models/api_error_meta'
24
+ require 'zyphr/models/auth_email_template'
25
+ require 'zyphr/models/auth_email_template_default'
26
+ require 'zyphr/models/auth_email_template_default_response'
27
+ require 'zyphr/models/auth_email_template_delete_response'
28
+ require 'zyphr/models/auth_email_template_delete_response_data'
29
+ require 'zyphr/models/auth_email_template_list_response'
30
+ require 'zyphr/models/auth_email_template_preview_draft'
31
+ require 'zyphr/models/auth_email_template_preview_request'
32
+ require 'zyphr/models/auth_email_template_preview_response'
33
+ require 'zyphr/models/auth_email_template_preview_result'
34
+ require 'zyphr/models/auth_email_template_response'
35
+ require 'zyphr/models/auth_email_template_test_request'
36
+ require 'zyphr/models/auth_email_template_test_response'
37
+ require 'zyphr/models/auth_email_template_test_result'
38
+ require 'zyphr/models/auth_email_template_version'
39
+ require 'zyphr/models/auth_email_template_versions_response'
40
+ require 'zyphr/models/auth_email_type'
24
41
  require 'zyphr/models/auth_login_response'
25
42
  require 'zyphr/models/auth_login_result'
26
43
  require 'zyphr/models/auth_login_result_mfa_challenge'
@@ -33,6 +50,8 @@ require 'zyphr/models/auth_user_response'
33
50
  require 'zyphr/models/auth_user_response_data'
34
51
  require 'zyphr/models/batch_publish_waa_s_events201_response'
35
52
  require 'zyphr/models/bulk_retry_webhook_deliveries_request'
53
+ require 'zyphr/models/bulk_upsert_auth_email_templates_request'
54
+ require 'zyphr/models/bulk_upsert_auth_email_templates_response'
36
55
  require 'zyphr/models/category'
37
56
  require 'zyphr/models/category_list_response'
38
57
  require 'zyphr/models/category_response'
@@ -218,6 +237,9 @@ require 'zyphr/models/send_push_response_data'
218
237
  require 'zyphr/models/send_push_to_topic_data'
219
238
  require 'zyphr/models/send_push_to_topic_request'
220
239
  require 'zyphr/models/send_push_to_topic_response'
240
+ require 'zyphr/models/send_slack_message_request'
241
+ require 'zyphr/models/send_slack_message_response'
242
+ require 'zyphr/models/send_slack_message_result'
221
243
  require 'zyphr/models/send_sms_data'
222
244
  require 'zyphr/models/send_sms_request'
223
245
  require 'zyphr/models/send_sms_response'
@@ -230,6 +252,12 @@ require 'zyphr/models/session_list_response_data'
230
252
  require 'zyphr/models/session_list_response_data_session_info'
231
253
  require 'zyphr/models/set_preferences_request'
232
254
  require 'zyphr/models/set_preferences_request_preferences_inner'
255
+ require 'zyphr/models/slack_message'
256
+ require 'zyphr/models/slack_message_list_response'
257
+ require 'zyphr/models/slack_message_list_response_meta'
258
+ require 'zyphr/models/slack_message_response'
259
+ require 'zyphr/models/slack_message_status'
260
+ require 'zyphr/models/slack_message_summary'
233
261
  require 'zyphr/models/sms_batch_result_message'
234
262
  require 'zyphr/models/sms_batch_result_summary'
235
263
  require 'zyphr/models/sms_config'
@@ -247,7 +275,6 @@ require 'zyphr/models/subscriber_list_response'
247
275
  require 'zyphr/models/subscriber_preference'
248
276
  require 'zyphr/models/subscriber_response'
249
277
  require 'zyphr/models/success_result'
250
- require 'zyphr/models/success_result_data'
251
278
  require 'zyphr/models/template'
252
279
  require 'zyphr/models/template_list_response'
253
280
  require 'zyphr/models/template_render_response'
@@ -285,6 +312,7 @@ require 'zyphr/models/update_waa_s_application_request'
285
312
  require 'zyphr/models/update_waa_s_endpoint_request'
286
313
  require 'zyphr/models/update_waa_s_event_type_request'
287
314
  require 'zyphr/models/update_webhook_request'
315
+ require 'zyphr/models/upsert_auth_email_template_request'
288
316
  require 'zyphr/models/upsert_sms_config_request'
289
317
  require 'zyphr/models/user_devices_delete_response'
290
318
  require 'zyphr/models/user_devices_delete_response_data'
@@ -363,6 +391,7 @@ require 'zyphr/models/workflow_step_execution'
363
391
  require 'zyphr/models/workflow_step_execution_status'
364
392
 
365
393
  # APIs
394
+ require 'zyphr/api/auth_email_templates_api'
366
395
  require 'zyphr/api/auth_email_verification_api'
367
396
  require 'zyphr/api/auth_login_api'
368
397
  require 'zyphr/api/auth_mfa_api'
@@ -380,6 +409,7 @@ require 'zyphr/api/executions_api'
380
409
  require 'zyphr/api/inbox_api'
381
410
  require 'zyphr/api/push_api'
382
411
  require 'zyphr/api/sms_api'
412
+ require 'zyphr/api/slack_api'
383
413
  require 'zyphr/api/subscribers_api'
384
414
  require 'zyphr/api/templates_api'
385
415
  require 'zyphr/api/topics_api'
@@ -0,0 +1,157 @@
1
+ =begin
2
+ #Zyphr API
3
+
4
+ #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@zyphr.dev
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.12.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Zyphr::AuthEmailTemplatesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'AuthEmailTemplatesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Zyphr::AuthEmailTemplatesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of AuthEmailTemplatesApi' do
30
+ it 'should create an instance of AuthEmailTemplatesApi' do
31
+ expect(@api_instance).to be_instance_of(Zyphr::AuthEmailTemplatesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for bulk_upsert_auth_email_templates
36
+ # Bulk-upsert auth email templates
37
+ # Atomic upsert of any subset of magic_link, password_reset, email_verification. Validates all inputs before any write; if any one fails validation or MJML compile, none are saved. Designed for one-shot migration imports from Auth0/Firebase/Clerk/Cognito.
38
+ # @param bulk_upsert_auth_email_templates_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [BulkUpsertAuthEmailTemplatesResponse]
41
+ describe 'bulk_upsert_auth_email_templates test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for delete_auth_email_template
48
+ # Remove a tenant override
49
+ # Reverts the application to the system default for this type
50
+ # @param type
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [AuthEmailTemplateDeleteResponse]
53
+ describe 'delete_auth_email_template test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
+ end
57
+ end
58
+
59
+ # unit tests for get_auth_email_template
60
+ # Get an auth email template
61
+ # Returns the override row for the given `type` if one exists, otherwise the system default. Use `is_default` to distinguish.
62
+ # @param type
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [AuthEmailTemplateResponse]
65
+ describe 'get_auth_email_template test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
+ end
69
+ end
70
+
71
+ # unit tests for get_auth_email_template_default
72
+ # Get the system default template
73
+ # Returns the system default for the given type with Handlebars variables un-rendered. Useful for migration tooling fetch, modify, then PUT.
74
+ # @param type
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [AuthEmailTemplateDefaultResponse]
77
+ describe 'get_auth_email_template_default test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
80
+ end
81
+ end
82
+
83
+ # unit tests for list_auth_email_template_versions
84
+ # List version history for a template
85
+ # @param type
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [AuthEmailTemplateVersionsResponse]
88
+ describe 'list_auth_email_template_versions test' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
91
+ end
92
+ end
93
+
94
+ # unit tests for list_auth_email_templates
95
+ # List auth email templates
96
+ # List the application's auth email templates. Returns one entry per email type; when no override exists for a type, the system default is returned with `is_default: true`.
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [AuthEmailTemplateListResponse]
99
+ describe 'list_auth_email_templates test' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
102
+ end
103
+ end
104
+
105
+ # unit tests for preview_auth_email_template
106
+ # Render a template with sample variables
107
+ # Returns subject/html/text rendered using sample variables (or caller-provided variables). No email is sent. Useful for dashboard previews and migration import validation.
108
+ # @param type
109
+ # @param [Hash] opts the optional parameters
110
+ # @option opts [AuthEmailTemplatePreviewRequest] :auth_email_template_preview_request
111
+ # @return [AuthEmailTemplatePreviewResponse]
112
+ describe 'preview_auth_email_template test' do
113
+ it 'should work' do
114
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
115
+ end
116
+ end
117
+
118
+ # unit tests for restore_auth_email_template_version
119
+ # Restore a previous version
120
+ # Snapshots current state, then overwrites with the contents of the specified historical version.
121
+ # @param type
122
+ # @param version
123
+ # @param [Hash] opts the optional parameters
124
+ # @return [AuthEmailTemplateResponse]
125
+ describe 'restore_auth_email_template_version test' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
128
+ end
129
+ end
130
+
131
+ # unit tests for send_auth_email_template_test
132
+ # Send a test render of a template
133
+ # Renders the template (override or default) using sample/provided variables and sends to the recipient. The recipient must be in the application `test_recipients` allowlist. Rate-limited.
134
+ # @param type
135
+ # @param auth_email_template_test_request
136
+ # @param [Hash] opts the optional parameters
137
+ # @return [AuthEmailTemplateTestResponse]
138
+ describe 'send_auth_email_template_test test' do
139
+ it 'should work' do
140
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
141
+ end
142
+ end
143
+
144
+ # unit tests for upsert_auth_email_template
145
+ # Create or update an auth email template
146
+ # Idempotent upsert keyed by application + type. MJML sources are compiled to HTML on save; compile errors return 400 with `details`.
147
+ # @param type
148
+ # @param upsert_auth_email_template_request
149
+ # @param [Hash] opts the optional parameters
150
+ # @return [AuthEmailTemplateResponse]
151
+ describe 'upsert_auth_email_template test' do
152
+ it 'should work' do
153
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
154
+ end
155
+ end
156
+
157
+ end
@@ -0,0 +1,75 @@
1
+ =begin
2
+ #Zyphr API
3
+
4
+ #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@zyphr.dev
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.12.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Zyphr::SlackApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'SlackApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Zyphr::SlackApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SlackApi' do
30
+ it 'should create an instance of SlackApi' do
31
+ expect(@api_instance).to be_instance_of(Zyphr::SlackApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_slack_message
36
+ # Get a Slack message
37
+ # Retrieve a single Slack message by ID, including its full block/attachment payload and status timestamps.
38
+ # @param id
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [SlackMessageResponse]
41
+ describe 'get_slack_message test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for list_slack_messages
48
+ # List Slack messages
49
+ # List Slack messages sent through the project, with optional filtering by connection, channel, and status.
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :connection_id Filter by Slack connection ID.
52
+ # @option opts [String] :channel_id Filter by Slack channel ID.
53
+ # @option opts [String] :status Filter by message status.
54
+ # @option opts [Integer] :limit
55
+ # @option opts [Integer] :offset
56
+ # @return [SlackMessageListResponse]
57
+ describe 'list_slack_messages test' do
58
+ it 'should work' do
59
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
60
+ end
61
+ end
62
+
63
+ # unit tests for send_slack_message
64
+ # Send a Slack message
65
+ # Send a message to a Slack channel through a connected Slack workspace. Either `text` or `blocks` must be provided. If `connection_id` is omitted, the project's active Slack connection is used. If `channel` is omitted, the connection's default channel is used.
66
+ # @param send_slack_message_request
67
+ # @param [Hash] opts the optional parameters
68
+ # @return [SendSlackMessageResponse]
69
+ describe 'send_slack_message test' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
72
+ end
73
+ end
74
+
75
+ end
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Zyphr API
3
+
4
+ #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@zyphr.dev
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.12.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Zyphr::AuthEmailTemplateDefaultResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zyphr::AuthEmailTemplateDefaultResponse do
21
+ let(:instance) { Zyphr::AuthEmailTemplateDefaultResponse.new }
22
+
23
+ describe 'test an instance of AuthEmailTemplateDefaultResponse' do
24
+ it 'should create an instance of AuthEmailTemplateDefaultResponse' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zyphr::AuthEmailTemplateDefaultResponse)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "data"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "meta"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
@@ -0,0 +1,60 @@
1
+ =begin
2
+ #Zyphr API
3
+
4
+ #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@zyphr.dev
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.12.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Zyphr::AuthEmailTemplateDefault
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zyphr::AuthEmailTemplateDefault do
21
+ let(:instance) { Zyphr::AuthEmailTemplateDefault.new }
22
+
23
+ describe 'test an instance of AuthEmailTemplateDefault' do
24
+ it 'should create an instance of AuthEmailTemplateDefault' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zyphr::AuthEmailTemplateDefault)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "email_type"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "subject"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "html"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "text"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "variables"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ end
@@ -14,16 +14,16 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for Zyphr::SuccessResultData
17
+ # Unit tests for Zyphr::AuthEmailTemplateDeleteResponseData
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe Zyphr::SuccessResultData do
21
- let(:instance) { Zyphr::SuccessResultData.new }
20
+ describe Zyphr::AuthEmailTemplateDeleteResponseData do
21
+ let(:instance) { Zyphr::AuthEmailTemplateDeleteResponseData.new }
22
22
 
23
- describe 'test an instance of SuccessResultData' do
24
- it 'should create an instance of SuccessResultData' do
23
+ describe 'test an instance of AuthEmailTemplateDeleteResponseData' do
24
+ it 'should create an instance of AuthEmailTemplateDeleteResponseData' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(Zyphr::SuccessResultData)
26
+ #expect(instance).to be_instance_of(Zyphr::AuthEmailTemplateDeleteResponseData)
27
27
  end
28
28
  end
29
29
 
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Zyphr API
3
+
4
+ #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@zyphr.dev
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.12.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Zyphr::AuthEmailTemplateDeleteResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zyphr::AuthEmailTemplateDeleteResponse do
21
+ let(:instance) { Zyphr::AuthEmailTemplateDeleteResponse.new }
22
+
23
+ describe 'test an instance of AuthEmailTemplateDeleteResponse' do
24
+ it 'should create an instance of AuthEmailTemplateDeleteResponse' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zyphr::AuthEmailTemplateDeleteResponse)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "data"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "meta"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Zyphr API
3
+
4
+ #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@zyphr.dev
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.12.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Zyphr::AuthEmailTemplateListResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zyphr::AuthEmailTemplateListResponse do
21
+ let(:instance) { Zyphr::AuthEmailTemplateListResponse.new }
22
+
23
+ describe 'test an instance of AuthEmailTemplateListResponse' do
24
+ it 'should create an instance of AuthEmailTemplateListResponse' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zyphr::AuthEmailTemplateListResponse)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "data"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "meta"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
@@ -0,0 +1,66 @@
1
+ =begin
2
+ #Zyphr API
3
+
4
+ #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@zyphr.dev
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.12.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Zyphr::AuthEmailTemplatePreviewDraft
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zyphr::AuthEmailTemplatePreviewDraft do
21
+ let(:instance) { Zyphr::AuthEmailTemplatePreviewDraft.new }
22
+
23
+ describe 'test an instance of AuthEmailTemplatePreviewDraft' do
24
+ it 'should create an instance of AuthEmailTemplatePreviewDraft' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zyphr::AuthEmailTemplatePreviewDraft)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "subject"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "html"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "text"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "mjml_source"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "from_name"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "reply_to"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ end
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Zyphr API
3
+
4
+ #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@zyphr.dev
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.12.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Zyphr::AuthEmailTemplatePreviewRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zyphr::AuthEmailTemplatePreviewRequest do
21
+ let(:instance) { Zyphr::AuthEmailTemplatePreviewRequest.new }
22
+
23
+ describe 'test an instance of AuthEmailTemplatePreviewRequest' do
24
+ it 'should create an instance of AuthEmailTemplatePreviewRequest' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zyphr::AuthEmailTemplatePreviewRequest)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "variables"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "draft"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end