zyphr 0.1.80 → 0.1.81

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/docs/AuthEmailTemplate.md +0 -2
  4. data/docs/AuthEmailTemplatePreviewDraft.md +0 -2
  5. data/docs/AuthEmailTemplateVersion.md +0 -2
  6. data/docs/AuthEmailTemplatesApi.md +2 -2
  7. data/docs/CreateTemplateRequest.md +12 -4
  8. data/docs/Template.md +8 -0
  9. data/docs/TemplateClassification.md +15 -0
  10. data/docs/TemplateEditorType.md +15 -0
  11. data/docs/TemplatesApi.md +1 -1
  12. data/docs/UpdateTemplateRequest.md +9 -3
  13. data/docs/UpsertAuthEmailTemplateRequest.md +0 -2
  14. data/lib/zyphr/api/auth_email_templates_api.rb +4 -4
  15. data/lib/zyphr/api/templates_api.rb +2 -2
  16. data/lib/zyphr/models/auth_email_template.rb +3 -13
  17. data/lib/zyphr/models/auth_email_template_preview_draft.rb +1 -11
  18. data/lib/zyphr/models/auth_email_template_version.rb +3 -13
  19. data/lib/zyphr/models/create_template_request.rb +87 -7
  20. data/lib/zyphr/models/template.rb +78 -1
  21. data/lib/zyphr/models/template_classification.rb +40 -0
  22. data/lib/zyphr/models/template_editor_type.rb +40 -0
  23. data/lib/zyphr/models/update_template_request.rb +62 -6
  24. data/lib/zyphr/models/upsert_auth_email_template_request.rb +4 -14
  25. data/lib/zyphr.rb +2 -0
  26. data/spec/api/auth_email_templates_api_spec.rb +2 -2
  27. data/spec/api/templates_api_spec.rb +1 -1
  28. data/spec/models/auth_email_template_preview_draft_spec.rb +0 -6
  29. data/spec/models/auth_email_template_spec.rb +1 -7
  30. data/spec/models/auth_email_template_version_spec.rb +1 -7
  31. data/spec/models/create_template_request_spec.rb +28 -0
  32. data/spec/models/template_classification_spec.rb +30 -0
  33. data/spec/models/template_editor_type_spec.rb +30 -0
  34. data/spec/models/template_spec.rb +28 -0
  35. data/spec/models/update_template_request_spec.rb +18 -0
  36. data/spec/models/upsert_auth_email_template_request_spec.rb +1 -7
  37. data/zyphr.gemspec +1 -1
  38. metadata +10 -2
@@ -45,12 +45,6 @@ describe Zyphr::AuthEmailTemplatePreviewDraft do
45
45
  end
46
46
  end
47
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
48
  describe 'test attribute "from_name"' do
55
49
  it 'should work' do
56
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -51,12 +51,6 @@ describe Zyphr::AuthEmailTemplate do
51
51
  end
52
52
  end
53
53
 
54
- describe 'test attribute "mjml_source"' 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
54
  describe 'test attribute "design_json"' do
61
55
  it 'should work' do
62
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -66,7 +60,7 @@ describe Zyphr::AuthEmailTemplate do
66
60
  describe 'test attribute "editor_type"' do
67
61
  it 'should work' do
68
62
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["code", "mjml", "design"])
63
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["code", "visual"])
70
64
  # validator.allowable_values.each do |value|
71
65
  # expect { instance.editor_type = value }.not_to raise_error
72
66
  # end
@@ -51,12 +51,6 @@ describe Zyphr::AuthEmailTemplateVersion do
51
51
  end
52
52
  end
53
53
 
54
- describe 'test attribute "mjml_source"' 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
54
  describe 'test attribute "design_json"' do
61
55
  it 'should work' do
62
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -66,7 +60,7 @@ describe Zyphr::AuthEmailTemplateVersion do
66
60
  describe 'test attribute "editor_type"' do
67
61
  it 'should work' do
68
62
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["code", "mjml", "design"])
63
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["code", "visual"])
70
64
  # validator.allowable_values.each do |value|
71
65
  # expect { instance.editor_type = value }.not_to raise_error
72
66
  # end
@@ -39,6 +39,16 @@ describe Zyphr::CreateTemplateRequest do
39
39
  end
40
40
  end
41
41
 
42
+ describe 'test attribute "channel"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["email", "sms", "push"])
46
+ # validator.allowable_values.each do |value|
47
+ # expect { instance.channel = value }.not_to raise_error
48
+ # end
49
+ end
50
+ end
51
+
42
52
  describe 'test attribute "subject"' do
43
53
  it 'should work' do
44
54
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -57,4 +67,22 @@ describe Zyphr::CreateTemplateRequest do
57
67
  end
58
68
  end
59
69
 
70
+ describe 'test attribute "design_json"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
73
+ end
74
+ end
75
+
76
+ describe 'test attribute "editor_type"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
79
+ end
80
+ end
81
+
82
+ describe 'test attribute "classification"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
85
+ end
86
+ end
87
+
60
88
  end
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #Zyphr API
3
+
4
+ #Zyphr is a developer platform for user authentication and transactional messaging. One API covers auth (passkeys, social sign-in, passwordless, MFA, sessions, organizations) plus email, push notifications, SMS, in-app messages, and webhooks. ## 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. > **Test keys are being retired.** `zy_test_*` keys are no longer issued, and existing ones stop working on **21 October 2026**. They never delivered mail — sends were mocked and marked sent without reaching a provider, so they could not verify domain authentication, rendering, or deliverability. To test your integration, use a `zy_live_*` key against a verified domain and send to an address you control. ## 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 ## Account Sending Status Every authenticated response carries the account's current sending state so you can surface it in your own tooling without a separate call: - `X-Account-Sending-Status`: `active`, `throttled`, or `frozen` - `X-Account-Sending-Status-Reason`: human-readable reason (present only when the status is `throttled` or `frozen`) This header is informational and non-blocking on non-send endpoints (reads, billing, and deliverability stay available). Send-capable endpoints additionally enforce the state: a frozen account receives `403 account_frozen` and a throttled account receives `429 account_throttled`, both with the reason in the error message. ## 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::TemplateClassification
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zyphr::TemplateClassification do
21
+ let(:instance) { Zyphr::TemplateClassification.new }
22
+
23
+ describe 'test an instance of TemplateClassification' do
24
+ it 'should create an instance of TemplateClassification' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zyphr::TemplateClassification)
27
+ end
28
+ end
29
+
30
+ end
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #Zyphr API
3
+
4
+ #Zyphr is a developer platform for user authentication and transactional messaging. One API covers auth (passkeys, social sign-in, passwordless, MFA, sessions, organizations) plus email, push notifications, SMS, in-app messages, and webhooks. ## 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. > **Test keys are being retired.** `zy_test_*` keys are no longer issued, and existing ones stop working on **21 October 2026**. They never delivered mail — sends were mocked and marked sent without reaching a provider, so they could not verify domain authentication, rendering, or deliverability. To test your integration, use a `zy_live_*` key against a verified domain and send to an address you control. ## 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 ## Account Sending Status Every authenticated response carries the account's current sending state so you can surface it in your own tooling without a separate call: - `X-Account-Sending-Status`: `active`, `throttled`, or `frozen` - `X-Account-Sending-Status-Reason`: human-readable reason (present only when the status is `throttled` or `frozen`) This header is informational and non-blocking on non-send endpoints (reads, billing, and deliverability stay available). Send-capable endpoints additionally enforce the state: a frozen account receives `403 account_frozen` and a throttled account receives `429 account_throttled`, both with the reason in the error message. ## 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::TemplateEditorType
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zyphr::TemplateEditorType do
21
+ let(:instance) { Zyphr::TemplateEditorType.new }
22
+
23
+ describe 'test an instance of TemplateEditorType' do
24
+ it 'should create an instance of TemplateEditorType' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zyphr::TemplateEditorType)
27
+ end
28
+ end
29
+
30
+ end
@@ -39,6 +39,16 @@ describe Zyphr::Template do
39
39
  end
40
40
  end
41
41
 
42
+ describe 'test attribute "channel"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["email", "sms", "push"])
46
+ # validator.allowable_values.each do |value|
47
+ # expect { instance.channel = value }.not_to raise_error
48
+ # end
49
+ end
50
+ end
51
+
42
52
  describe 'test attribute "description"' do
43
53
  it 'should work' do
44
54
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -75,6 +85,24 @@ describe Zyphr::Template do
75
85
  end
76
86
  end
77
87
 
88
+ describe 'test attribute "design_json"' 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
+ describe 'test attribute "editor_type"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
+ end
98
+ end
99
+
100
+ describe 'test attribute "classification"' do
101
+ it 'should work' do
102
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
103
+ end
104
+ end
105
+
78
106
  describe 'test attribute "created_at"' do
79
107
  it 'should work' do
80
108
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -57,4 +57,22 @@ describe Zyphr::UpdateTemplateRequest do
57
57
  end
58
58
  end
59
59
 
60
+ describe 'test attribute "design_json"' 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
+ describe 'test attribute "editor_type"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ describe 'test attribute "classification"' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
+ end
76
+ end
77
+
60
78
  end
@@ -45,12 +45,6 @@ describe Zyphr::UpsertAuthEmailTemplateRequest do
45
45
  end
46
46
  end
47
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
48
  describe 'test attribute "design_json"' do
55
49
  it 'should work' do
56
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -60,7 +54,7 @@ describe Zyphr::UpsertAuthEmailTemplateRequest do
60
54
  describe 'test attribute "editor_type"' do
61
55
  it 'should work' do
62
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["code", "mjml", "design"])
57
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["code", "visual"])
64
58
  # validator.allowable_values.each do |value|
65
59
  # expect { instance.editor_type = value }.not_to raise_error
66
60
  # end
data/zyphr.gemspec CHANGED
@@ -17,7 +17,7 @@ require "zyphr/version"
17
17
 
18
18
  Gem::Specification.new do |s|
19
19
  s.name = "zyphr"
20
- s.version = '0.1.80'
20
+ s.version = '0.1.81'
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["Zyphr"]
23
23
  s.email = ["support@zyphr.dev"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zyphr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.80
4
+ version: 0.1.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zyphr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-14 00:00:00.000000000 Z
11
+ date: 2026-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -503,6 +503,8 @@ files:
503
503
  - docs/SwitchOrganizationResponseDataTokens.md
504
504
  - docs/SwitchOrganizationResponseDataUser.md
505
505
  - docs/Template.md
506
+ - docs/TemplateClassification.md
507
+ - docs/TemplateEditorType.md
506
508
  - docs/TemplateListResponse.md
507
509
  - docs/TemplateRenderResponse.md
508
510
  - docs/TemplateRenderedContent.md
@@ -1094,6 +1096,8 @@ files:
1094
1096
  - lib/zyphr/models/switch_organization_response_data_tokens.rb
1095
1097
  - lib/zyphr/models/switch_organization_response_data_user.rb
1096
1098
  - lib/zyphr/models/template.rb
1099
+ - lib/zyphr/models/template_classification.rb
1100
+ - lib/zyphr/models/template_editor_type.rb
1097
1101
  - lib/zyphr/models/template_list_response.rb
1098
1102
  - lib/zyphr/models/template_render_response.rb
1099
1103
  - lib/zyphr/models/template_rendered_content.rb
@@ -1669,6 +1673,8 @@ files:
1669
1673
  - spec/models/switch_organization_response_data_tokens_spec.rb
1670
1674
  - spec/models/switch_organization_response_data_user_spec.rb
1671
1675
  - spec/models/switch_organization_response_spec.rb
1676
+ - spec/models/template_classification_spec.rb
1677
+ - spec/models/template_editor_type_spec.rb
1672
1678
  - spec/models/template_list_response_spec.rb
1673
1679
  - spec/models/template_render_response_spec.rb
1674
1680
  - spec/models/template_rendered_content_spec.rb
@@ -2115,6 +2121,7 @@ test_files:
2115
2121
  - spec/models/waa_s_publish_event_request_spec.rb
2116
2122
  - spec/models/end_user_delete_response_data_spec.rb
2117
2123
  - spec/models/magic_link_verify_request_spec.rb
2124
+ - spec/models/template_editor_type_spec.rb
2118
2125
  - spec/models/sms_batch_result_message_spec.rb
2119
2126
  - spec/models/sms_batch_result_summary_spec.rb
2120
2127
  - spec/models/auth_login_result_spec.rb
@@ -2200,6 +2207,7 @@ test_files:
2200
2207
  - spec/models/mfa_verify_enrollment_request_spec.rb
2201
2208
  - spec/models/switch_organization_response_spec.rb
2202
2209
  - spec/models/webhook_replay_response_spec.rb
2210
+ - spec/models/template_classification_spec.rb
2203
2211
  - spec/models/add_topic_subscribers_request_spec.rb
2204
2212
  - spec/models/phone_register_verify_request_spec.rb
2205
2213
  - spec/models/batch_recipient_spec.rb