zyphr 0.1.38 → 0.1.40

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 (93) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -14
  3. data/docs/AddWorkflowStep201Response.md +20 -0
  4. data/docs/AddWorkflowStepRequest.md +30 -0
  5. data/docs/AuthRegistrationApi.md +73 -1
  6. data/docs/CreateWorkflow201Response.md +20 -0
  7. data/docs/CreateWorkflowRequest.md +26 -0
  8. data/docs/DeleteWorkflow200Response.md +20 -0
  9. data/docs/{TopicDeleteResponseData.md → DeleteWorkflow200ResponseData.md} +2 -2
  10. data/docs/DeleteWorkflowStep200Response.md +20 -0
  11. data/docs/DeleteWorkflowStep200ResponseData.md +22 -0
  12. data/docs/ListWorkflowExecutions200Response.md +20 -0
  13. data/docs/{SmsListResponseMeta.md → ListWorkflowExecutions200ResponseMeta.md} +2 -2
  14. data/docs/ListWorkflows200Response.md +20 -0
  15. data/docs/ListWorkflows200ResponseMeta.md +32 -0
  16. data/docs/ReorderWorkflowStepsRequest.md +18 -0
  17. data/docs/SignInWithGameCenterRequest.md +1 -1
  18. data/docs/SignInWithGooglePlayGamesRequest.md +18 -0
  19. data/docs/SmsListResponse.md +1 -1
  20. data/docs/TopicDeleteResponse.md +1 -1
  21. data/docs/TriggerWorkflow202Response.md +20 -0
  22. data/docs/TriggerWorkflow202ResponseData.md +22 -0
  23. data/docs/TriggerWorkflowRequest.md +24 -0
  24. data/docs/UpdateWorkflowRequest.md +24 -0
  25. data/docs/UpdateWorkflowStatusRequest.md +18 -0
  26. data/docs/UpdateWorkflowStepRequest.md +20 -0
  27. data/docs/Workflow.md +42 -0
  28. data/docs/WorkflowStatus.md +15 -0
  29. data/docs/WorkflowStep.md +38 -0
  30. data/docs/WorkflowStepType.md +15 -0
  31. data/docs/WorkflowsApi.md +901 -0
  32. data/lib/zyphr/api/auth_registration_api.rb +70 -2
  33. data/lib/zyphr/api/workflows_api.rb +897 -0
  34. data/lib/zyphr/models/add_workflow_step201_response.rb +229 -0
  35. data/lib/zyphr/models/add_workflow_step_request.rb +384 -0
  36. data/lib/zyphr/models/create_workflow201_response.rb +229 -0
  37. data/lib/zyphr/models/create_workflow_request.rb +292 -0
  38. data/lib/zyphr/models/delete_workflow200_response.rb +229 -0
  39. data/lib/zyphr/models/{topic_delete_response_data.rb → delete_workflow200_response_data.rb} +3 -3
  40. data/lib/zyphr/models/delete_workflow_step200_response.rb +229 -0
  41. data/lib/zyphr/models/delete_workflow_step200_response_data.rb +238 -0
  42. data/lib/zyphr/models/list_workflow_executions200_response.rb +231 -0
  43. data/lib/zyphr/models/{sms_list_response_meta.rb → list_workflow_executions200_response_meta.rb} +3 -3
  44. data/lib/zyphr/models/list_workflows200_response.rb +231 -0
  45. data/lib/zyphr/models/list_workflows200_response_meta.rb +284 -0
  46. data/lib/zyphr/models/reorder_workflow_steps_request.rb +249 -0
  47. data/lib/zyphr/models/sign_in_with_game_center_request.rb +1 -1
  48. data/lib/zyphr/models/sign_in_with_google_play_games_request.rb +238 -0
  49. data/lib/zyphr/models/sms_list_response.rb +1 -1
  50. data/lib/zyphr/models/topic_delete_response.rb +1 -1
  51. data/lib/zyphr/models/trigger_workflow202_response.rb +229 -0
  52. data/lib/zyphr/models/trigger_workflow202_response_data.rb +240 -0
  53. data/lib/zyphr/models/trigger_workflow_request.rb +272 -0
  54. data/lib/zyphr/models/update_workflow_request.rb +269 -0
  55. data/lib/zyphr/models/{v1_muse_subjects_suggest_post_request.rb → update_workflow_status_request.rb} +19 -86
  56. data/lib/zyphr/models/update_workflow_step_request.rb +232 -0
  57. data/lib/zyphr/models/workflow.rb +514 -0
  58. data/lib/zyphr/models/workflow_status.rb +42 -0
  59. data/lib/zyphr/models/workflow_step.rb +505 -0
  60. data/lib/zyphr/models/workflow_step_type.rb +47 -0
  61. data/lib/zyphr.rb +25 -4
  62. data/spec/api/auth_registration_api_spec.rb +13 -1
  63. data/spec/api/workflows_api_spec.rb +192 -0
  64. data/spec/models/add_workflow_step201_response_spec.rb +42 -0
  65. data/spec/models/add_workflow_step_request_spec.rb +76 -0
  66. data/spec/models/create_workflow201_response_spec.rb +42 -0
  67. data/spec/models/{v1_muse_subjects_suggest_post_request_spec.rb → create_workflow_request_spec.rb} +16 -14
  68. data/spec/models/{topic_delete_response_data_spec.rb → delete_workflow200_response_data_spec.rb} +6 -6
  69. data/spec/models/delete_workflow200_response_spec.rb +42 -0
  70. data/spec/models/delete_workflow_step200_response_data_spec.rb +48 -0
  71. data/spec/models/delete_workflow_step200_response_spec.rb +42 -0
  72. data/spec/models/{sms_list_response_meta_spec.rb → list_workflow_executions200_response_meta_spec.rb} +6 -6
  73. data/spec/models/list_workflow_executions200_response_spec.rb +42 -0
  74. data/spec/models/list_workflows200_response_meta_spec.rb +78 -0
  75. data/spec/models/list_workflows200_response_spec.rb +42 -0
  76. data/spec/models/reorder_workflow_steps_request_spec.rb +36 -0
  77. data/spec/models/sign_in_with_google_play_games_request_spec.rb +36 -0
  78. data/spec/models/trigger_workflow202_response_data_spec.rb +48 -0
  79. data/spec/models/trigger_workflow202_response_spec.rb +42 -0
  80. data/spec/models/trigger_workflow_request_spec.rb +54 -0
  81. data/spec/models/update_workflow_request_spec.rb +54 -0
  82. data/spec/models/update_workflow_status_request_spec.rb +36 -0
  83. data/spec/models/update_workflow_step_request_spec.rb +42 -0
  84. data/spec/models/workflow_spec.rb +108 -0
  85. data/spec/models/workflow_status_spec.rb +30 -0
  86. data/spec/models/workflow_step_spec.rb +100 -0
  87. data/spec/models/workflow_step_type_spec.rb +30 -0
  88. data/zyphr.gemspec +1 -1
  89. metadata +102 -18
  90. data/docs/MuseApi.md +0 -681
  91. data/docs/V1MuseSubjectsSuggestPostRequest.md +0 -24
  92. data/lib/zyphr/api/muse_api.rb +0 -644
  93. data/spec/api/muse_api_spec.rb +0 -156
@@ -0,0 +1,24 @@
1
+ # Zyphr::TriggerWorkflowRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **to** | **Array<String>** | Recipient(s). An array of subscriber ids. For convenience the API also accepts a single subscriber id string, or a topic fan-out object `{ \"topic\": \"<topic_key>\" }` to deliver to every subscriber of a topic. | |
8
+ | **payload** | **Hash<String, Object>** | Data made available to step templates and branch conditions. | [optional] |
9
+ | **transaction_id** | **String** | Optional idempotency/correlation identifier. | [optional] |
10
+ | **from** | **String** | Optional sender override for email steps (e.g. `noreply@yourdomain.com`). | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'zyphr'
16
+
17
+ instance = Zyphr::TriggerWorkflowRequest.new(
18
+ to: ["user_123","user_456"],
19
+ payload: null,
20
+ transaction_id: null,
21
+ from: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # Zyphr::UpdateWorkflowRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **description** | **String** | | [optional] |
9
+ | **is_critical** | **Boolean** | | [optional] |
10
+ | **tags** | **Array<String>** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'zyphr'
16
+
17
+ instance = Zyphr::UpdateWorkflowRequest.new(
18
+ name: null,
19
+ description: null,
20
+ is_critical: null,
21
+ tags: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # Zyphr::UpdateWorkflowStatusRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | [**WorkflowStatus**](WorkflowStatus.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'zyphr'
13
+
14
+ instance = Zyphr::UpdateWorkflowStatusRequest.new(
15
+ status: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # Zyphr::UpdateWorkflowStepRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **config** | **Hash<String, Object>** | Step configuration whose shape depends on the step's type. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zyphr'
14
+
15
+ instance = Zyphr::UpdateWorkflowStepRequest.new(
16
+ name: null,
17
+ config: null
18
+ )
19
+ ```
20
+
data/docs/Workflow.md ADDED
@@ -0,0 +1,42 @@
1
+ # Zyphr::Workflow
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **account_id** | **String** | | |
9
+ | **key** | **String** | Unique workflow key within the project. | |
10
+ | **name** | **String** | | |
11
+ | **description** | **String** | | [optional] |
12
+ | **status** | [**WorkflowStatus**](WorkflowStatus.md) | | |
13
+ | **is_critical** | **Boolean** | | |
14
+ | **trigger_schema** | **Hash<String, Object>** | | [optional] |
15
+ | **tags** | **Array<String>** | | |
16
+ | **step_count** | **Integer** | Number of steps in the workflow (present in list responses). | [optional] |
17
+ | **steps** | [**Array<WorkflowStep>**](WorkflowStep.md) | Ordered workflow steps (present when fetching a single workflow). | [optional] |
18
+ | **created_at** | **Time** | | |
19
+ | **updated_at** | **Time** | | |
20
+
21
+ ## Example
22
+
23
+ ```ruby
24
+ require 'zyphr'
25
+
26
+ instance = Zyphr::Workflow.new(
27
+ id: null,
28
+ account_id: null,
29
+ key: welcome-series,
30
+ name: Welcome Series,
31
+ description: null,
32
+ status: null,
33
+ is_critical: null,
34
+ trigger_schema: null,
35
+ tags: null,
36
+ step_count: null,
37
+ steps: null,
38
+ created_at: null,
39
+ updated_at: null
40
+ )
41
+ ```
42
+
@@ -0,0 +1,15 @@
1
+ # Zyphr::WorkflowStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'zyphr'
12
+
13
+ instance = Zyphr::WorkflowStatus.new()
14
+ ```
15
+
@@ -0,0 +1,38 @@
1
+ # Zyphr::WorkflowStep
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **workflow_id** | **String** | | |
9
+ | **step_key** | **String** | Unique step identifier within the workflow. | |
10
+ | **name** | **String** | Human-readable step name. | |
11
+ | **type** | [**WorkflowStepType**](WorkflowStepType.md) | | |
12
+ | **position** | **Integer** | Ordering position of the step within the workflow. | |
13
+ | **config** | **Hash<String, Object>** | Step configuration. The shape depends on `type` — channel steps carry message content (subject, body, template_id, etc.), `delay` steps carry `{ amount, unit }`, and `branch` steps carry `{ conditions }`. | |
14
+ | **parent_step_id** | **String** | | [optional] |
15
+ | **branch_path** | **String** | | [optional] |
16
+ | **created_at** | **Time** | | |
17
+ | **updated_at** | **Time** | | |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'zyphr'
23
+
24
+ instance = Zyphr::WorkflowStep.new(
25
+ id: null,
26
+ workflow_id: null,
27
+ step_key: send-welcome-email,
28
+ name: null,
29
+ type: null,
30
+ position: null,
31
+ config: null,
32
+ parent_step_id: null,
33
+ branch_path: null,
34
+ created_at: null,
35
+ updated_at: null
36
+ )
37
+ ```
38
+
@@ -0,0 +1,15 @@
1
+ # Zyphr::WorkflowStepType
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'zyphr'
12
+
13
+ instance = Zyphr::WorkflowStepType.new()
14
+ ```
15
+