zyphr 0.1.32 → 0.1.34

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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +54 -0
  3. data/docs/AddOrganizationMemberRequest.md +20 -0
  4. data/docs/AuthOrganizationsApi.md +864 -0
  5. data/docs/AuthUserProfileApi.md +76 -0
  6. data/docs/CreateOrganizationRequest.md +22 -0
  7. data/docs/DomainsApi.md +73 -0
  8. data/docs/InboundAttachmentUrlResponse.md +20 -0
  9. data/docs/InboundAttachmentUrlResponseData.md +22 -0
  10. data/docs/InboundEmail.md +48 -0
  11. data/docs/InboundEmailApi.md +235 -0
  12. data/docs/InboundEmailAttachment.md +24 -0
  13. data/docs/InboundEmailFrom.md +20 -0
  14. data/docs/InboundEmailListResponse.md +20 -0
  15. data/docs/InboundEmailListResponseMeta.md +24 -0
  16. data/docs/InboundEmailResponse.md +20 -0
  17. data/docs/LoginRequest.md +3 -1
  18. data/docs/MuseApi.md +681 -0
  19. data/docs/Organization.md +34 -0
  20. data/docs/OrganizationListResponse.md +20 -0
  21. data/docs/OrganizationListResponseMeta.md +20 -0
  22. data/docs/OrganizationMembersListResponse.md +20 -0
  23. data/docs/OrganizationMembership.md +30 -0
  24. data/docs/OrganizationMembershipResponse.md +20 -0
  25. data/docs/OrganizationMembershipWithUser.md +34 -0
  26. data/docs/OrganizationResponse.md +20 -0
  27. data/docs/RegisterRequest.md +5 -1
  28. data/docs/SetDomainInboundRequest.md +18 -0
  29. data/docs/SwitchOrganizationRequest.md +20 -0
  30. data/docs/SwitchOrganizationResponse.md +20 -0
  31. data/docs/SwitchOrganizationResponseData.md +22 -0
  32. data/docs/SwitchOrganizationResponseDataTokens.md +24 -0
  33. data/docs/SwitchOrganizationResponseDataUser.md +20 -0
  34. data/docs/UpdateOrganizationMemberRoleRequest.md +18 -0
  35. data/docs/UpdateOrganizationRequest.md +22 -0
  36. data/docs/V1MuseSubjectsSuggestPostRequest.md +24 -0
  37. data/lib/zyphr/api/auth_organizations_api.rb +773 -0
  38. data/lib/zyphr/api/auth_user_profile_api.rb +61 -0
  39. data/lib/zyphr/api/domains_api.rb +72 -0
  40. data/lib/zyphr/api/inbound_email_api.rb +234 -0
  41. data/lib/zyphr/api/muse_api.rb +644 -0
  42. data/lib/zyphr/models/add_organization_member_request.rb +248 -0
  43. data/lib/zyphr/models/create_organization_request.rb +258 -0
  44. data/lib/zyphr/models/inbound_attachment_url_response.rb +229 -0
  45. data/lib/zyphr/models/inbound_attachment_url_response_data.rb +240 -0
  46. data/lib/zyphr/models/inbound_email.rb +441 -0
  47. data/lib/zyphr/models/inbound_email_attachment.rb +250 -0
  48. data/lib/zyphr/models/inbound_email_from.rb +230 -0
  49. data/lib/zyphr/models/inbound_email_list_response.rb +231 -0
  50. data/lib/zyphr/models/inbound_email_list_response_meta.rb +247 -0
  51. data/lib/zyphr/models/inbound_email_response.rb +229 -0
  52. data/lib/zyphr/models/login_request.rb +14 -4
  53. data/lib/zyphr/models/organization.rb +434 -0
  54. data/lib/zyphr/models/organization_list_response.rb +265 -0
  55. data/lib/zyphr/models/organization_list_response_meta.rb +230 -0
  56. data/lib/zyphr/models/organization_members_list_response.rb +265 -0
  57. data/lib/zyphr/models/organization_membership.rb +379 -0
  58. data/lib/zyphr/models/organization_membership_response.rb +263 -0
  59. data/lib/zyphr/models/organization_membership_with_user.rb +405 -0
  60. data/lib/zyphr/models/organization_response.rb +263 -0
  61. data/lib/zyphr/models/register_request.rb +43 -4
  62. data/lib/zyphr/models/set_domain_inbound_request.rb +220 -0
  63. data/lib/zyphr/models/switch_organization_request.rb +263 -0
  64. data/lib/zyphr/models/switch_organization_response.rb +263 -0
  65. data/lib/zyphr/models/switch_organization_response_data.rb +289 -0
  66. data/lib/zyphr/models/switch_organization_response_data_tokens.rb +339 -0
  67. data/lib/zyphr/models/switch_organization_response_data_user.rb +230 -0
  68. data/lib/zyphr/models/update_organization_member_role_request.rb +223 -0
  69. data/lib/zyphr/models/update_organization_request.rb +239 -0
  70. data/lib/zyphr/models/v1_muse_subjects_suggest_post_request.rb +326 -0
  71. data/lib/zyphr.rb +30 -0
  72. data/spec/api/auth_organizations_api_spec.rb +171 -0
  73. data/spec/api/auth_user_profile_api_spec.rb +12 -0
  74. data/spec/api/domains_api_spec.rb +13 -0
  75. data/spec/api/inbound_email_api_spec.rb +76 -0
  76. data/spec/api/muse_api_spec.rb +156 -0
  77. data/spec/models/add_organization_member_request_spec.rb +42 -0
  78. data/spec/models/create_organization_request_spec.rb +48 -0
  79. data/spec/models/inbound_attachment_url_response_data_spec.rb +48 -0
  80. data/spec/models/inbound_attachment_url_response_spec.rb +42 -0
  81. data/spec/models/inbound_email_attachment_spec.rb +54 -0
  82. data/spec/models/inbound_email_from_spec.rb +42 -0
  83. data/spec/models/inbound_email_list_response_meta_spec.rb +54 -0
  84. data/spec/models/inbound_email_list_response_spec.rb +42 -0
  85. data/spec/models/inbound_email_response_spec.rb +42 -0
  86. data/spec/models/inbound_email_spec.rb +142 -0
  87. data/spec/models/login_request_spec.rb +6 -0
  88. data/spec/models/organization_list_response_meta_spec.rb +42 -0
  89. data/spec/models/organization_list_response_spec.rb +42 -0
  90. data/spec/models/organization_members_list_response_spec.rb +42 -0
  91. data/spec/models/organization_membership_response_spec.rb +42 -0
  92. data/spec/models/organization_membership_spec.rb +72 -0
  93. data/spec/models/organization_membership_with_user_spec.rb +84 -0
  94. data/spec/models/organization_response_spec.rb +42 -0
  95. data/spec/models/organization_spec.rb +84 -0
  96. data/spec/models/register_request_spec.rb +12 -0
  97. data/spec/models/set_domain_inbound_request_spec.rb +36 -0
  98. data/spec/models/switch_organization_request_spec.rb +42 -0
  99. data/spec/models/switch_organization_response_data_spec.rb +48 -0
  100. data/spec/models/switch_organization_response_data_tokens_spec.rb +58 -0
  101. data/spec/models/switch_organization_response_data_user_spec.rb +42 -0
  102. data/spec/models/switch_organization_response_spec.rb +42 -0
  103. data/spec/models/update_organization_member_role_request_spec.rb +36 -0
  104. data/spec/models/update_organization_request_spec.rb +48 -0
  105. data/spec/models/v1_muse_subjects_suggest_post_request_spec.rb +58 -0
  106. data/zyphr.gemspec +1 -1
  107. metadata +122 -2
data/docs/MuseApi.md ADDED
@@ -0,0 +1,681 @@
1
+ # Zyphr::MuseApi
2
+
3
+ All URIs are relative to *https://api.zyphr.dev/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**v1_muse_audit_log_get**](MuseApi.md#v1_muse_audit_log_get) | **GET** /v1/muse/audit-log | Paginated per-call audit log for Muse |
8
+ | [**v1_muse_broadcasts_analyze_post**](MuseApi.md#v1_muse_broadcasts_analyze_post) | **POST** /v1/muse/broadcasts/analyze | Stream a pre-send advisory for a draft broadcast |
9
+ | [**v1_muse_entitlement_get**](MuseApi.md#v1_muse_entitlement_get) | **GET** /v1/muse/entitlement | Return the current account's Zyphr Muse entitlement |
10
+ | [**v1_muse_eval_baselines_get**](MuseApi.md#v1_muse_eval_baselines_get) | **GET** /v1/muse/eval-baselines | Per-prompt eval baseline snapshots |
11
+ | [**v1_muse_settings_project_id_get**](MuseApi.md#v1_muse_settings_project_id_get) | **GET** /v1/muse/settings/{project_id} | Read Muse settings for a project |
12
+ | [**v1_muse_settings_project_id_patch**](MuseApi.md#v1_muse_settings_project_id_patch) | **PATCH** /v1/muse/settings/{project_id} | Update Muse settings for a project (admin or developer only) |
13
+ | [**v1_muse_subjects_suggest_post**](MuseApi.md#v1_muse_subjects_suggest_post) | **POST** /v1/muse/subjects/suggest | Suggest 5 ranked subject-line candidates for a template |
14
+ | [**v1_muse_templates_draft_post**](MuseApi.md#v1_muse_templates_draft_post) | **POST** /v1/muse/templates/draft | Stream a draft template from a natural-language brief |
15
+ | [**v1_muse_templates_rewrite_post**](MuseApi.md#v1_muse_templates_rewrite_post) | **POST** /v1/muse/templates/rewrite | Stream a rewritten block per the user's instruction |
16
+ | [**v1_muse_usage_get**](MuseApi.md#v1_muse_usage_get) | **GET** /v1/muse/usage | Per-account Zyphr Muse usage + budget tier |
17
+ | [**v1_muse_workflows_generate_post**](MuseApi.md#v1_muse_workflows_generate_post) | **POST** /v1/muse/workflows/generate | Stream a generated workflow from a natural-language description |
18
+
19
+
20
+ ## v1_muse_audit_log_get
21
+
22
+ > v1_muse_audit_log_get
23
+
24
+ Paginated per-call audit log for Muse
25
+
26
+ Returns Muse invocations for the caller's account, ordered by most recent first. The request_payload is the PII-scrubbed payload we record at call time; the response payload is NOT returned by this endpoint for size reasons (use the per-row detail endpoint when built).
27
+
28
+ ### Examples
29
+
30
+ ```ruby
31
+ require 'time'
32
+ require 'zyphr'
33
+
34
+ api_instance = Zyphr::MuseApi.new
35
+
36
+ begin
37
+ # Paginated per-call audit log for Muse
38
+ api_instance.v1_muse_audit_log_get
39
+ rescue Zyphr::ApiError => e
40
+ puts "Error when calling MuseApi->v1_muse_audit_log_get: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the v1_muse_audit_log_get_with_http_info variant
45
+
46
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
47
+
48
+ > <Array(nil, Integer, Hash)> v1_muse_audit_log_get_with_http_info
49
+
50
+ ```ruby
51
+ begin
52
+ # Paginated per-call audit log for Muse
53
+ data, status_code, headers = api_instance.v1_muse_audit_log_get_with_http_info
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => nil
57
+ rescue Zyphr::ApiError => e
58
+ puts "Error when calling MuseApi->v1_muse_audit_log_get_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ This endpoint does not need any parameter.
65
+
66
+ ### Return type
67
+
68
+ nil (empty response body)
69
+
70
+ ### Authorization
71
+
72
+ No authorization required
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: Not defined
77
+ - **Accept**: Not defined
78
+
79
+
80
+ ## v1_muse_broadcasts_analyze_post
81
+
82
+ > v1_muse_broadcasts_analyze_post
83
+
84
+ Stream a pre-send advisory for a draft broadcast
85
+
86
+ Streams Opus tokens then emits a structured advisory covering deliverability risks, frequency conflicts, audience warnings, send-time suggestions, and content notes — plus a single recommended_action so the dashboard can render a CTA without interpreting prose. Advisory is purely advisory — the platform does not block sends on AI output.
87
+
88
+ ### Examples
89
+
90
+ ```ruby
91
+ require 'time'
92
+ require 'zyphr'
93
+
94
+ api_instance = Zyphr::MuseApi.new
95
+
96
+ begin
97
+ # Stream a pre-send advisory for a draft broadcast
98
+ api_instance.v1_muse_broadcasts_analyze_post
99
+ rescue Zyphr::ApiError => e
100
+ puts "Error when calling MuseApi->v1_muse_broadcasts_analyze_post: #{e}"
101
+ end
102
+ ```
103
+
104
+ #### Using the v1_muse_broadcasts_analyze_post_with_http_info variant
105
+
106
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
107
+
108
+ > <Array(nil, Integer, Hash)> v1_muse_broadcasts_analyze_post_with_http_info
109
+
110
+ ```ruby
111
+ begin
112
+ # Stream a pre-send advisory for a draft broadcast
113
+ data, status_code, headers = api_instance.v1_muse_broadcasts_analyze_post_with_http_info
114
+ p status_code # => 2xx
115
+ p headers # => { ... }
116
+ p data # => nil
117
+ rescue Zyphr::ApiError => e
118
+ puts "Error when calling MuseApi->v1_muse_broadcasts_analyze_post_with_http_info: #{e}"
119
+ end
120
+ ```
121
+
122
+ ### Parameters
123
+
124
+ This endpoint does not need any parameter.
125
+
126
+ ### Return type
127
+
128
+ nil (empty response body)
129
+
130
+ ### Authorization
131
+
132
+ No authorization required
133
+
134
+ ### HTTP request headers
135
+
136
+ - **Content-Type**: Not defined
137
+ - **Accept**: Not defined
138
+
139
+
140
+ ## v1_muse_entitlement_get
141
+
142
+ > v1_muse_entitlement_get
143
+
144
+ Return the current account's Zyphr Muse entitlement
145
+
146
+ Returns whether the caller's account plan unlocks Zyphr Muse, the cheapest plan that would unlock it, and the monthly Bedrock spend cap for the current plan. Available to every authenticated caller (including free accounts).
147
+
148
+ ### Examples
149
+
150
+ ```ruby
151
+ require 'time'
152
+ require 'zyphr'
153
+
154
+ api_instance = Zyphr::MuseApi.new
155
+
156
+ begin
157
+ # Return the current account's Zyphr Muse entitlement
158
+ api_instance.v1_muse_entitlement_get
159
+ rescue Zyphr::ApiError => e
160
+ puts "Error when calling MuseApi->v1_muse_entitlement_get: #{e}"
161
+ end
162
+ ```
163
+
164
+ #### Using the v1_muse_entitlement_get_with_http_info variant
165
+
166
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
167
+
168
+ > <Array(nil, Integer, Hash)> v1_muse_entitlement_get_with_http_info
169
+
170
+ ```ruby
171
+ begin
172
+ # Return the current account's Zyphr Muse entitlement
173
+ data, status_code, headers = api_instance.v1_muse_entitlement_get_with_http_info
174
+ p status_code # => 2xx
175
+ p headers # => { ... }
176
+ p data # => nil
177
+ rescue Zyphr::ApiError => e
178
+ puts "Error when calling MuseApi->v1_muse_entitlement_get_with_http_info: #{e}"
179
+ end
180
+ ```
181
+
182
+ ### Parameters
183
+
184
+ This endpoint does not need any parameter.
185
+
186
+ ### Return type
187
+
188
+ nil (empty response body)
189
+
190
+ ### Authorization
191
+
192
+ No authorization required
193
+
194
+ ### HTTP request headers
195
+
196
+ - **Content-Type**: Not defined
197
+ - **Accept**: Not defined
198
+
199
+
200
+ ## v1_muse_eval_baselines_get
201
+
202
+ > v1_muse_eval_baselines_get
203
+
204
+ Per-prompt eval baseline snapshots
205
+
206
+ Reads the committed baseline JSON files from src/services/muse/evals/baselines/ and returns them keyed by prompt name. Customers don't see this — it's for the internal Muse settings page / admin portal.
207
+
208
+ ### Examples
209
+
210
+ ```ruby
211
+ require 'time'
212
+ require 'zyphr'
213
+
214
+ api_instance = Zyphr::MuseApi.new
215
+
216
+ begin
217
+ # Per-prompt eval baseline snapshots
218
+ api_instance.v1_muse_eval_baselines_get
219
+ rescue Zyphr::ApiError => e
220
+ puts "Error when calling MuseApi->v1_muse_eval_baselines_get: #{e}"
221
+ end
222
+ ```
223
+
224
+ #### Using the v1_muse_eval_baselines_get_with_http_info variant
225
+
226
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
227
+
228
+ > <Array(nil, Integer, Hash)> v1_muse_eval_baselines_get_with_http_info
229
+
230
+ ```ruby
231
+ begin
232
+ # Per-prompt eval baseline snapshots
233
+ data, status_code, headers = api_instance.v1_muse_eval_baselines_get_with_http_info
234
+ p status_code # => 2xx
235
+ p headers # => { ... }
236
+ p data # => nil
237
+ rescue Zyphr::ApiError => e
238
+ puts "Error when calling MuseApi->v1_muse_eval_baselines_get_with_http_info: #{e}"
239
+ end
240
+ ```
241
+
242
+ ### Parameters
243
+
244
+ This endpoint does not need any parameter.
245
+
246
+ ### Return type
247
+
248
+ nil (empty response body)
249
+
250
+ ### Authorization
251
+
252
+ No authorization required
253
+
254
+ ### HTTP request headers
255
+
256
+ - **Content-Type**: Not defined
257
+ - **Accept**: Not defined
258
+
259
+
260
+ ## v1_muse_settings_project_id_get
261
+
262
+ > v1_muse_settings_project_id_get(project_id)
263
+
264
+ Read Muse settings for a project
265
+
266
+ Returns the project's Muse settings (cap override, allowed roles, blocked tiers). If no row exists yet, returns synthesized defaults so the caller never sees a 404.
267
+
268
+ ### Examples
269
+
270
+ ```ruby
271
+ require 'time'
272
+ require 'zyphr'
273
+
274
+ api_instance = Zyphr::MuseApi.new
275
+ project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
276
+
277
+ begin
278
+ # Read Muse settings for a project
279
+ api_instance.v1_muse_settings_project_id_get(project_id)
280
+ rescue Zyphr::ApiError => e
281
+ puts "Error when calling MuseApi->v1_muse_settings_project_id_get: #{e}"
282
+ end
283
+ ```
284
+
285
+ #### Using the v1_muse_settings_project_id_get_with_http_info variant
286
+
287
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
288
+
289
+ > <Array(nil, Integer, Hash)> v1_muse_settings_project_id_get_with_http_info(project_id)
290
+
291
+ ```ruby
292
+ begin
293
+ # Read Muse settings for a project
294
+ data, status_code, headers = api_instance.v1_muse_settings_project_id_get_with_http_info(project_id)
295
+ p status_code # => 2xx
296
+ p headers # => { ... }
297
+ p data # => nil
298
+ rescue Zyphr::ApiError => e
299
+ puts "Error when calling MuseApi->v1_muse_settings_project_id_get_with_http_info: #{e}"
300
+ end
301
+ ```
302
+
303
+ ### Parameters
304
+
305
+ | Name | Type | Description | Notes |
306
+ | ---- | ---- | ----------- | ----- |
307
+ | **project_id** | **String** | | |
308
+
309
+ ### Return type
310
+
311
+ nil (empty response body)
312
+
313
+ ### Authorization
314
+
315
+ No authorization required
316
+
317
+ ### HTTP request headers
318
+
319
+ - **Content-Type**: Not defined
320
+ - **Accept**: Not defined
321
+
322
+
323
+ ## v1_muse_settings_project_id_patch
324
+
325
+ > v1_muse_settings_project_id_patch(project_id)
326
+
327
+ Update Muse settings for a project (admin or developer only)
328
+
329
+ Partial update — any omitted field keeps its existing value. Pass `monthly_cap_usd_override: null` to clear an override. Requires project-level role admin or developer. Account owner/admin cascades.
330
+
331
+ ### Examples
332
+
333
+ ```ruby
334
+ require 'time'
335
+ require 'zyphr'
336
+
337
+ api_instance = Zyphr::MuseApi.new
338
+ project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
339
+
340
+ begin
341
+ # Update Muse settings for a project (admin or developer only)
342
+ api_instance.v1_muse_settings_project_id_patch(project_id)
343
+ rescue Zyphr::ApiError => e
344
+ puts "Error when calling MuseApi->v1_muse_settings_project_id_patch: #{e}"
345
+ end
346
+ ```
347
+
348
+ #### Using the v1_muse_settings_project_id_patch_with_http_info variant
349
+
350
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
351
+
352
+ > <Array(nil, Integer, Hash)> v1_muse_settings_project_id_patch_with_http_info(project_id)
353
+
354
+ ```ruby
355
+ begin
356
+ # Update Muse settings for a project (admin or developer only)
357
+ data, status_code, headers = api_instance.v1_muse_settings_project_id_patch_with_http_info(project_id)
358
+ p status_code # => 2xx
359
+ p headers # => { ... }
360
+ p data # => nil
361
+ rescue Zyphr::ApiError => e
362
+ puts "Error when calling MuseApi->v1_muse_settings_project_id_patch_with_http_info: #{e}"
363
+ end
364
+ ```
365
+
366
+ ### Parameters
367
+
368
+ | Name | Type | Description | Notes |
369
+ | ---- | ---- | ----------- | ----- |
370
+ | **project_id** | **String** | | |
371
+
372
+ ### Return type
373
+
374
+ nil (empty response body)
375
+
376
+ ### Authorization
377
+
378
+ No authorization required
379
+
380
+ ### HTTP request headers
381
+
382
+ - **Content-Type**: Not defined
383
+ - **Accept**: Not defined
384
+
385
+
386
+ ## v1_muse_subjects_suggest_post
387
+
388
+ > v1_muse_subjects_suggest_post(v1_muse_subjects_suggest_post_request)
389
+
390
+ Suggest 5 ranked subject-line candidates for a template
391
+
392
+ ### Examples
393
+
394
+ ```ruby
395
+ require 'time'
396
+ require 'zyphr'
397
+
398
+ api_instance = Zyphr::MuseApi.new
399
+ v1_muse_subjects_suggest_post_request = Zyphr::V1MuseSubjectsSuggestPostRequest.new({channel: 'email', project_id: 'project_id_example'}) # V1MuseSubjectsSuggestPostRequest |
400
+
401
+ begin
402
+ # Suggest 5 ranked subject-line candidates for a template
403
+ api_instance.v1_muse_subjects_suggest_post(v1_muse_subjects_suggest_post_request)
404
+ rescue Zyphr::ApiError => e
405
+ puts "Error when calling MuseApi->v1_muse_subjects_suggest_post: #{e}"
406
+ end
407
+ ```
408
+
409
+ #### Using the v1_muse_subjects_suggest_post_with_http_info variant
410
+
411
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
412
+
413
+ > <Array(nil, Integer, Hash)> v1_muse_subjects_suggest_post_with_http_info(v1_muse_subjects_suggest_post_request)
414
+
415
+ ```ruby
416
+ begin
417
+ # Suggest 5 ranked subject-line candidates for a template
418
+ data, status_code, headers = api_instance.v1_muse_subjects_suggest_post_with_http_info(v1_muse_subjects_suggest_post_request)
419
+ p status_code # => 2xx
420
+ p headers # => { ... }
421
+ p data # => nil
422
+ rescue Zyphr::ApiError => e
423
+ puts "Error when calling MuseApi->v1_muse_subjects_suggest_post_with_http_info: #{e}"
424
+ end
425
+ ```
426
+
427
+ ### Parameters
428
+
429
+ | Name | Type | Description | Notes |
430
+ | ---- | ---- | ----------- | ----- |
431
+ | **v1_muse_subjects_suggest_post_request** | [**V1MuseSubjectsSuggestPostRequest**](V1MuseSubjectsSuggestPostRequest.md) | | |
432
+
433
+ ### Return type
434
+
435
+ nil (empty response body)
436
+
437
+ ### Authorization
438
+
439
+ No authorization required
440
+
441
+ ### HTTP request headers
442
+
443
+ - **Content-Type**: application/json
444
+ - **Accept**: Not defined
445
+
446
+
447
+ ## v1_muse_templates_draft_post
448
+
449
+ > v1_muse_templates_draft_post
450
+
451
+ Stream a draft template from a natural-language brief
452
+
453
+ ### Examples
454
+
455
+ ```ruby
456
+ require 'time'
457
+ require 'zyphr'
458
+
459
+ api_instance = Zyphr::MuseApi.new
460
+
461
+ begin
462
+ # Stream a draft template from a natural-language brief
463
+ api_instance.v1_muse_templates_draft_post
464
+ rescue Zyphr::ApiError => e
465
+ puts "Error when calling MuseApi->v1_muse_templates_draft_post: #{e}"
466
+ end
467
+ ```
468
+
469
+ #### Using the v1_muse_templates_draft_post_with_http_info variant
470
+
471
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
472
+
473
+ > <Array(nil, Integer, Hash)> v1_muse_templates_draft_post_with_http_info
474
+
475
+ ```ruby
476
+ begin
477
+ # Stream a draft template from a natural-language brief
478
+ data, status_code, headers = api_instance.v1_muse_templates_draft_post_with_http_info
479
+ p status_code # => 2xx
480
+ p headers # => { ... }
481
+ p data # => nil
482
+ rescue Zyphr::ApiError => e
483
+ puts "Error when calling MuseApi->v1_muse_templates_draft_post_with_http_info: #{e}"
484
+ end
485
+ ```
486
+
487
+ ### Parameters
488
+
489
+ This endpoint does not need any parameter.
490
+
491
+ ### Return type
492
+
493
+ nil (empty response body)
494
+
495
+ ### Authorization
496
+
497
+ No authorization required
498
+
499
+ ### HTTP request headers
500
+
501
+ - **Content-Type**: Not defined
502
+ - **Accept**: Not defined
503
+
504
+
505
+ ## v1_muse_templates_rewrite_post
506
+
507
+ > v1_muse_templates_rewrite_post
508
+
509
+ Stream a rewritten block per the user's instruction
510
+
511
+ ### Examples
512
+
513
+ ```ruby
514
+ require 'time'
515
+ require 'zyphr'
516
+
517
+ api_instance = Zyphr::MuseApi.new
518
+
519
+ begin
520
+ # Stream a rewritten block per the user's instruction
521
+ api_instance.v1_muse_templates_rewrite_post
522
+ rescue Zyphr::ApiError => e
523
+ puts "Error when calling MuseApi->v1_muse_templates_rewrite_post: #{e}"
524
+ end
525
+ ```
526
+
527
+ #### Using the v1_muse_templates_rewrite_post_with_http_info variant
528
+
529
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
530
+
531
+ > <Array(nil, Integer, Hash)> v1_muse_templates_rewrite_post_with_http_info
532
+
533
+ ```ruby
534
+ begin
535
+ # Stream a rewritten block per the user's instruction
536
+ data, status_code, headers = api_instance.v1_muse_templates_rewrite_post_with_http_info
537
+ p status_code # => 2xx
538
+ p headers # => { ... }
539
+ p data # => nil
540
+ rescue Zyphr::ApiError => e
541
+ puts "Error when calling MuseApi->v1_muse_templates_rewrite_post_with_http_info: #{e}"
542
+ end
543
+ ```
544
+
545
+ ### Parameters
546
+
547
+ This endpoint does not need any parameter.
548
+
549
+ ### Return type
550
+
551
+ nil (empty response body)
552
+
553
+ ### Authorization
554
+
555
+ No authorization required
556
+
557
+ ### HTTP request headers
558
+
559
+ - **Content-Type**: Not defined
560
+ - **Accept**: Not defined
561
+
562
+
563
+ ## v1_muse_usage_get
564
+
565
+ > v1_muse_usage_get
566
+
567
+ Per-account Zyphr Muse usage + budget tier
568
+
569
+ Current calendar-month spend, plan cap, soft warning tier, and breakdowns by action and model tier. Dashboard polls this for the budget meter; 60s edge-cached via Redis is reasonable but not enforced server-side (lightweight aggregate).
570
+
571
+ ### Examples
572
+
573
+ ```ruby
574
+ require 'time'
575
+ require 'zyphr'
576
+
577
+ api_instance = Zyphr::MuseApi.new
578
+
579
+ begin
580
+ # Per-account Zyphr Muse usage + budget tier
581
+ api_instance.v1_muse_usage_get
582
+ rescue Zyphr::ApiError => e
583
+ puts "Error when calling MuseApi->v1_muse_usage_get: #{e}"
584
+ end
585
+ ```
586
+
587
+ #### Using the v1_muse_usage_get_with_http_info variant
588
+
589
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
590
+
591
+ > <Array(nil, Integer, Hash)> v1_muse_usage_get_with_http_info
592
+
593
+ ```ruby
594
+ begin
595
+ # Per-account Zyphr Muse usage + budget tier
596
+ data, status_code, headers = api_instance.v1_muse_usage_get_with_http_info
597
+ p status_code # => 2xx
598
+ p headers # => { ... }
599
+ p data # => nil
600
+ rescue Zyphr::ApiError => e
601
+ puts "Error when calling MuseApi->v1_muse_usage_get_with_http_info: #{e}"
602
+ end
603
+ ```
604
+
605
+ ### Parameters
606
+
607
+ This endpoint does not need any parameter.
608
+
609
+ ### Return type
610
+
611
+ nil (empty response body)
612
+
613
+ ### Authorization
614
+
615
+ No authorization required
616
+
617
+ ### HTTP request headers
618
+
619
+ - **Content-Type**: Not defined
620
+ - **Accept**: Not defined
621
+
622
+
623
+ ## v1_muse_workflows_generate_post
624
+
625
+ > v1_muse_workflows_generate_post
626
+
627
+ Stream a generated workflow from a natural-language description
628
+
629
+ Streams Opus tokens then emits a fully-validated workflow JSON object (single root, no cycles, branch_path coherent, all step types valid). Channels referenced by the workflow must appear in the project's available_channels grounding; unsupported channels fall back to email via the prompt's hard rules.
630
+
631
+ ### Examples
632
+
633
+ ```ruby
634
+ require 'time'
635
+ require 'zyphr'
636
+
637
+ api_instance = Zyphr::MuseApi.new
638
+
639
+ begin
640
+ # Stream a generated workflow from a natural-language description
641
+ api_instance.v1_muse_workflows_generate_post
642
+ rescue Zyphr::ApiError => e
643
+ puts "Error when calling MuseApi->v1_muse_workflows_generate_post: #{e}"
644
+ end
645
+ ```
646
+
647
+ #### Using the v1_muse_workflows_generate_post_with_http_info variant
648
+
649
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
650
+
651
+ > <Array(nil, Integer, Hash)> v1_muse_workflows_generate_post_with_http_info
652
+
653
+ ```ruby
654
+ begin
655
+ # Stream a generated workflow from a natural-language description
656
+ data, status_code, headers = api_instance.v1_muse_workflows_generate_post_with_http_info
657
+ p status_code # => 2xx
658
+ p headers # => { ... }
659
+ p data # => nil
660
+ rescue Zyphr::ApiError => e
661
+ puts "Error when calling MuseApi->v1_muse_workflows_generate_post_with_http_info: #{e}"
662
+ end
663
+ ```
664
+
665
+ ### Parameters
666
+
667
+ This endpoint does not need any parameter.
668
+
669
+ ### Return type
670
+
671
+ nil (empty response body)
672
+
673
+ ### Authorization
674
+
675
+ No authorization required
676
+
677
+ ### HTTP request headers
678
+
679
+ - **Content-Type**: Not defined
680
+ - **Accept**: Not defined
681
+
@@ -0,0 +1,34 @@
1
+ # Zyphr::Organization
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **application_id** | **String** | | |
9
+ | **environment_id** | **String** | | |
10
+ | **name** | **String** | | |
11
+ | **slug** | **String** | Optional human-friendly identifier, unique per environment when present. | [optional] |
12
+ | **metadata** | **Hash&lt;String, Object&gt;** | | |
13
+ | **is_default** | **Boolean** | True for the auto-created Default org per environment. Cannot be renamed or deleted via API. | |
14
+ | **created_at** | **Time** | | |
15
+ | **updated_at** | **Time** | | |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'zyphr'
21
+
22
+ instance = Zyphr::Organization.new(
23
+ id: null,
24
+ application_id: null,
25
+ environment_id: null,
26
+ name: null,
27
+ slug: null,
28
+ metadata: null,
29
+ is_default: null,
30
+ created_at: null,
31
+ updated_at: null
32
+ )
33
+ ```
34
+