api-sdk-rb 1.11.111 → 1.11.133

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 (180) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +207 -381
  3. data/docs/{GetPartnerCreditTransactions200Response.md → AccountCreditTransactionListResponse.md} +2 -2
  4. data/docs/{GetUserAdapterConnections200Response.md → AdapterConnectionListResponse.md} +2 -2
  5. data/docs/{RemoveUserAdapterConnection200Response.md → AdapterConnectionRemovalResponse.md} +2 -2
  6. data/docs/{SetUserAdapterConnection200Response.md → AdapterConnectionResponse.md} +2 -2
  7. data/docs/{AddAiAnswersKnowledgeDocument201Response.md → AiAnswersKnowledgeDocumentResponse.md} +2 -2
  8. data/docs/BrandKitApi.md +74 -74
  9. data/docs/BrandKitTokens.md +2 -0
  10. data/docs/BrandKitView.md +1 -1
  11. data/docs/BrandTextStyle.md +22 -0
  12. data/docs/CanvasesApi.md +45 -45
  13. data/docs/{CreateCompositionDatabaseRecord201Response.md → CompositionDatabaseRecordResponse.md} +2 -2
  14. data/docs/CompositionsApi.md +615 -349
  15. data/docs/{CreateCompositionContentItem201Response.md → ContentItemWriteResultResponse.md} +2 -2
  16. data/docs/CreditsApi.md +20 -20
  17. data/docs/{CreateCompositionFromWidget201Response.md → DeleteUpload200Response.md} +3 -3
  18. data/docs/{UploadsIdDelete200ResponseData.md → DeleteUpload200ResponseData.md} +2 -2
  19. data/docs/{GetPartnerDesignDefaults200Response.md → DesignDefaultsResponse.md} +2 -2
  20. data/docs/EntitlementsApi.md +18 -18
  21. data/docs/{OperationsIdGetResponse.md → GetOperationResponse.md} +3 -3
  22. data/docs/{OperationsIdGetResponseData.md → GetOperationResponseData.md} +3 -3
  23. data/docs/GetOperationResponseDataMetadata.md +24 -0
  24. data/docs/InvoicesApi.md +9 -9
  25. data/docs/{UploadsGet200Response.md → ListUploads200Response.md} +2 -2
  26. data/docs/{GetManagedUserLimits200Response.md → ManagedUserLimitsResponse.md} +2 -2
  27. data/docs/{DeleteManagedUser200Response.md → ManagedUserRemovalResponse.md} +2 -2
  28. data/docs/ManagedUsersApi.md +261 -171
  29. data/docs/OperationsApi.md +11 -11
  30. data/docs/PartnersApi.md +388 -388
  31. data/docs/PatchBrandKitRequest.md +2 -0
  32. data/docs/PublicEmbedApi.md +95 -95
  33. data/docs/PublicWorkflowEventsRequestEventsInner.md +3 -1
  34. data/docs/{GetPublicWorkflow200Response.md → PublicWorkflowResponse.md} +2 -2
  35. data/docs/TokensApi.md +11 -9
  36. data/docs/Upload.md +1 -1
  37. data/docs/UploadLimits.md +3 -3
  38. data/docs/UploadsApi.md +85 -85
  39. data/docs/UsersApi.md +125 -125
  40. data/docs/WidgetClarification.md +22 -0
  41. data/docs/WidgetClarificationOption.md +22 -0
  42. data/docs/WidgetClarificationQuestion.md +26 -0
  43. data/docs/WidgetNextStep.md +24 -0
  44. data/docs/WidgetPlan.md +26 -0
  45. data/docs/WidgetPlanDecisions.md +32 -0
  46. data/docs/WidgetPlanDecisionsAdaptersInner.md +20 -0
  47. data/docs/WidgetPlanDecisionsLibrariesInner.md +22 -0
  48. data/docs/WidgetPlanDecisionsResponsive.md +22 -0
  49. data/docs/WidgetPlanTask.md +24 -0
  50. data/docs/WidgetsApi.md +38 -38
  51. data/docs/{CreateWorkspaceWorkflowFromPreset201Response.md → WorkflowDetailResponse.md} +2 -2
  52. data/docs/WorkflowFailureReason.md +15 -0
  53. data/docs/WorkflowFailureReasonCounter.md +22 -0
  54. data/docs/{SaveWorkspaceWorkflow200Response.md → WorkflowResponse.md} +2 -2
  55. data/docs/WorkflowStats.md +4 -2
  56. data/docs/WorkflowsApi.md +197 -413
  57. data/lib/api-sdk-rb/api/brand_kit_api.rb +61 -61
  58. data/lib/api-sdk-rb/api/canvases_api.rb +39 -39
  59. data/lib/api-sdk-rb/api/compositions_api.rb +770 -441
  60. data/lib/api-sdk-rb/api/credits_api.rb +20 -20
  61. data/lib/api-sdk-rb/api/entitlements_api.rb +14 -14
  62. data/lib/api-sdk-rb/api/invoices_api.rb +10 -10
  63. data/lib/api-sdk-rb/api/managed_users_api.rb +278 -172
  64. data/lib/api-sdk-rb/api/operations_api.rb +10 -10
  65. data/lib/api-sdk-rb/api/partners_api.rb +389 -389
  66. data/lib/api-sdk-rb/api/public_embed_api.rb +95 -95
  67. data/lib/api-sdk-rb/api/tokens_api.rb +8 -6
  68. data/lib/api-sdk-rb/api/uploads_api.rb +96 -96
  69. data/lib/api-sdk-rb/api/users_api.rb +132 -132
  70. data/lib/api-sdk-rb/api/widgets_api.rb +40 -40
  71. data/lib/api-sdk-rb/api/workflows_api.rb +246 -468
  72. data/lib/api-sdk-rb/configuration.rb +0 -60
  73. data/lib/api-sdk-rb/models/{get_user_adapter_connections200_response.rb → account_credit_transaction_list_response.rb} +4 -4
  74. data/lib/api-sdk-rb/models/{get_partner_credit_transactions200_response.rb → adapter_connection_list_response.rb} +4 -4
  75. data/lib/api-sdk-rb/models/{save_workspace_workflow200_response.rb → adapter_connection_removal_response.rb} +4 -4
  76. data/lib/api-sdk-rb/models/{set_user_adapter_connection200_response.rb → adapter_connection_response.rb} +3 -3
  77. data/lib/api-sdk-rb/models/{add_ai_answers_knowledge_document201_response.rb → ai_answers_knowledge_document_response.rb} +3 -3
  78. data/lib/api-sdk-rb/models/brand_kit_tokens.rb +33 -2
  79. data/lib/api-sdk-rb/models/brand_kit_view.rb +1 -1
  80. data/lib/api-sdk-rb/models/brand_text_style.rb +344 -0
  81. data/lib/api-sdk-rb/models/{create_composition_database_record201_response.rb → composition_database_record_response.rb} +3 -3
  82. data/lib/api-sdk-rb/models/{create_composition_content_item201_response.rb → content_item_write_result_response.rb} +3 -3
  83. data/lib/api-sdk-rb/models/{operations_id_get_response.rb → delete_upload200_response.rb} +4 -5
  84. data/lib/api-sdk-rb/models/{uploads_id_delete200_response_data.rb → delete_upload200_response_data.rb} +3 -3
  85. data/lib/api-sdk-rb/models/{get_partner_design_defaults200_response.rb → design_defaults_response.rb} +3 -3
  86. data/lib/api-sdk-rb/models/get_operation_response.rb +247 -0
  87. data/lib/api-sdk-rb/models/{operations_id_get_response_data.rb → get_operation_response_data.rb} +5 -8
  88. data/lib/api-sdk-rb/models/get_operation_response_data_metadata.rb +283 -0
  89. data/lib/api-sdk-rb/models/{uploads_get200_response.rb → list_uploads200_response.rb} +3 -3
  90. data/lib/api-sdk-rb/models/{get_managed_user_limits200_response.rb → managed_user_limits_response.rb} +3 -3
  91. data/lib/api-sdk-rb/models/{uploads_id_delete200_response.rb → managed_user_removal_response.rb} +4 -4
  92. data/lib/api-sdk-rb/models/patch_brand_kit_request.rb +32 -1
  93. data/lib/api-sdk-rb/models/public_workflow_events_request_events_inner.rb +26 -4
  94. data/lib/api-sdk-rb/models/{get_public_workflow200_response.rb → public_workflow_response.rb} +3 -3
  95. data/lib/api-sdk-rb/models/upload.rb +1 -1
  96. data/lib/api-sdk-rb/models/upload_limits.rb +3 -3
  97. data/lib/api-sdk-rb/models/widget_clarification.rb +279 -0
  98. data/lib/api-sdk-rb/models/{create_composition_from_widget201_response.rb → widget_clarification_option.rb} +40 -30
  99. data/lib/api-sdk-rb/models/widget_clarification_question.rb +329 -0
  100. data/lib/api-sdk-rb/models/widget_next_step.rb +307 -0
  101. data/lib/api-sdk-rb/models/widget_plan.rb +306 -0
  102. data/lib/api-sdk-rb/models/widget_plan_decisions.rb +346 -0
  103. data/lib/api-sdk-rb/models/widget_plan_decisions_adapters_inner.rb +237 -0
  104. data/lib/api-sdk-rb/models/{create_workspace_workflow_from_preset201_response.rb → widget_plan_decisions_libraries_inner.rb} +39 -30
  105. data/lib/api-sdk-rb/models/widget_plan_decisions_responsive.rb +311 -0
  106. data/lib/api-sdk-rb/models/widget_plan_task.rb +320 -0
  107. data/lib/api-sdk-rb/models/{delete_managed_user200_response.rb → workflow_detail_response.rb} +4 -4
  108. data/lib/api-sdk-rb/models/workflow_failure_reason.rb +42 -0
  109. data/lib/api-sdk-rb/models/workflow_failure_reason_counter.rb +277 -0
  110. data/lib/api-sdk-rb/models/workflow_response.rb +246 -0
  111. data/lib/api-sdk-rb/models/workflow_stats.rb +17 -5
  112. data/lib/api-sdk-rb/version.rb +1 -1
  113. data/lib/api-sdk-rb.rb +32 -21
  114. data/spec/api/brand_kit_api_spec.rb +18 -18
  115. data/spec/api/canvases_api_spec.rb +10 -10
  116. data/spec/api/compositions_api_spec.rb +144 -83
  117. data/spec/api/credits_api_spec.rb +5 -5
  118. data/spec/api/entitlements_api_spec.rb +4 -4
  119. data/spec/api/invoices_api_spec.rb +2 -2
  120. data/spec/api/managed_users_api_spec.rb +63 -42
  121. data/spec/api/operations_api_spec.rb +3 -3
  122. data/spec/api/partners_api_spec.rb +91 -91
  123. data/spec/api/public_embed_api_spec.rb +23 -23
  124. data/spec/api/tokens_api_spec.rb +3 -2
  125. data/spec/api/uploads_api_spec.rb +24 -24
  126. data/spec/api/users_api_spec.rb +30 -30
  127. data/spec/api/widgets_api_spec.rb +9 -9
  128. data/spec/api/workflows_api_spec.rb +50 -89
  129. data/spec/models/{get_user_adapter_connections200_response_spec.rb → account_credit_transaction_list_response_spec.rb} +6 -6
  130. data/spec/models/{get_public_workflow200_response_spec.rb → adapter_connection_list_response_spec.rb} +6 -6
  131. data/spec/models/{save_workspace_workflow200_response_spec.rb → adapter_connection_removal_response_spec.rb} +6 -6
  132. data/spec/models/{delete_managed_user200_response_spec.rb → adapter_connection_response_spec.rb} +6 -6
  133. data/spec/models/ai_answers_knowledge_document_response_spec.rb +48 -0
  134. data/spec/models/brand_kit_tokens_spec.rb +6 -0
  135. data/spec/models/{create_composition_from_widget201_response_spec.rb → brand_text_style_spec.rb} +13 -9
  136. data/spec/models/{get_managed_user_limits200_response_spec.rb → composition_database_record_response_spec.rb} +6 -6
  137. data/spec/models/content_item_write_result_response_spec.rb +48 -0
  138. data/spec/models/{uploads_id_delete200_response_data_spec.rb → delete_upload200_response_data_spec.rb} +6 -6
  139. data/spec/models/{operations_id_get_response_spec.rb → delete_upload200_response_spec.rb} +6 -6
  140. data/spec/models/design_defaults_response_spec.rb +48 -0
  141. data/spec/models/get_operation_response_data_metadata_spec.rb +58 -0
  142. data/spec/models/{operations_id_get_response_data_spec.rb → get_operation_response_data_spec.rb} +6 -6
  143. data/spec/models/{uploads_get200_response_spec.rb → get_operation_response_spec.rb} +6 -6
  144. data/spec/models/list_uploads200_response_spec.rb +48 -0
  145. data/spec/models/managed_user_limits_response_spec.rb +48 -0
  146. data/spec/models/{uploads_id_delete200_response_spec.rb → managed_user_removal_response_spec.rb} +6 -6
  147. data/spec/models/patch_brand_kit_request_spec.rb +6 -0
  148. data/spec/models/public_workflow_events_request_events_inner_spec.rb +10 -0
  149. data/spec/models/public_workflow_response_spec.rb +48 -0
  150. data/spec/models/widget_clarification_option_spec.rb +48 -0
  151. data/spec/models/widget_clarification_question_spec.rb +60 -0
  152. data/spec/models/widget_clarification_spec.rb +48 -0
  153. data/spec/models/widget_next_step_spec.rb +58 -0
  154. data/spec/models/widget_plan_decisions_adapters_inner_spec.rb +42 -0
  155. data/spec/models/widget_plan_decisions_libraries_inner_spec.rb +48 -0
  156. data/spec/models/widget_plan_decisions_responsive_spec.rb +48 -0
  157. data/spec/models/widget_plan_decisions_spec.rb +78 -0
  158. data/spec/models/{create_composition_database_record201_response_spec.rb → widget_plan_spec.rb} +21 -9
  159. data/spec/models/widget_plan_task_spec.rb +62 -0
  160. data/spec/models/workflow_detail_response_spec.rb +48 -0
  161. data/spec/models/workflow_failure_reason_counter_spec.rb +48 -0
  162. data/spec/models/workflow_failure_reason_spec.rb +30 -0
  163. data/spec/models/workflow_response_spec.rb +48 -0
  164. data/spec/models/workflow_stats_spec.rb +6 -0
  165. metadata +130 -86
  166. data/docs/PartnerApi.md +0 -12714
  167. data/docs/UploadsIdDelete200Response.md +0 -22
  168. data/docs/WorkspacesApi.md +0 -1527
  169. data/lib/api-sdk-rb/api/partner_api.rb +0 -13791
  170. data/lib/api-sdk-rb/api/workspaces_api.rb +0 -1775
  171. data/lib/api-sdk-rb/models/remove_user_adapter_connection200_response.rb +0 -246
  172. data/spec/api/partner_api_spec.rb +0 -2437
  173. data/spec/api/workspaces_api_spec.rb +0 -339
  174. data/spec/models/add_ai_answers_knowledge_document201_response_spec.rb +0 -48
  175. data/spec/models/create_composition_content_item201_response_spec.rb +0 -48
  176. data/spec/models/create_workspace_workflow_from_preset201_response_spec.rb +0 -48
  177. data/spec/models/get_partner_credit_transactions200_response_spec.rb +0 -48
  178. data/spec/models/get_partner_design_defaults200_response_spec.rb +0 -48
  179. data/spec/models/remove_user_adapter_connection200_response_spec.rb +0 -48
  180. data/spec/models/set_user_adapter_connection200_response_spec.rb +0 -48
@@ -0,0 +1,22 @@
1
+ # ApiSdkRb::WidgetClarification
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | The sentence that introduces the card. | |
8
+ | **questions** | [**Array<WidgetClarificationQuestion>**](WidgetClarificationQuestion.md) | | |
9
+ | **files_read** | **Array<String>** | The paths of the widget's files the questions were judged against, for a \"Read N files\" row. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'api-sdk-rb'
15
+
16
+ instance = ApiSdkRb::WidgetClarification.new(
17
+ message: null,
18
+ questions: null,
19
+ files_read: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # ApiSdkRb::WidgetClarificationOption
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | `q1o1`, `q1o2`, ... Stable within the card. | |
8
+ | **label** | **String** | The option text, at most 60 characters, including the parenthesised recommendation word on the recommended option (for example `Three plans (Recommended)`). | |
9
+ | **recommended** | **Boolean** | True for the one option the assistant recommends. It is always the first option when set. The server composes the recommendation word into `label`; clients may still draw a badge. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'api-sdk-rb'
15
+
16
+ instance = ApiSdkRb::WidgetClarificationOption.new(
17
+ id: null,
18
+ label: null,
19
+ recommended: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,26 @@
1
+ # ApiSdkRb::WidgetClarificationQuestion
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | `q1`, `q2`, ... | |
8
+ | **question** | **String** | | |
9
+ | **recommended_word** | **String** | The localized word placed in parentheses on the recommended option's label (default `Recommended`). | |
10
+ | **options** | [**Array<WidgetClarificationOption>**](WidgetClarificationOption.md) | Two to five options with the recommended one first; empty for a question answered in words only. | |
11
+ | **allow_other** | **Boolean** | Whether the person may answer in their own words (the \"Other...\" row). Always true when there are no options. | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'api-sdk-rb'
17
+
18
+ instance = ApiSdkRb::WidgetClarificationQuestion.new(
19
+ id: null,
20
+ question: null,
21
+ recommended_word: null,
22
+ options: null,
23
+ allow_other: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,24 @@
1
+ # ApiSdkRb::WidgetNextStep
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | `n1`, `n2`, ... | |
8
+ | **label** | **String** | The request, at most 80 characters. | |
9
+ | **kind** | **String** | | |
10
+ | **recommended** | **Boolean** | True for the first suggestion and false for the others. | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'api-sdk-rb'
16
+
17
+ instance = ApiSdkRb::WidgetNextStep.new(
18
+ id: null,
19
+ label: null,
20
+ kind: null,
21
+ recommended: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,26 @@
1
+ # ApiSdkRb::WidgetPlan
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **title** | **String** | One line for the whole plan (\"Building a countdown with confetti\"). | |
8
+ | **tasks** | [**Array<WidgetPlanTask>**](WidgetPlanTask.md) | | |
9
+ | **decisions** | [**WidgetPlanDecisions**](WidgetPlanDecisions.md) | | |
10
+ | **completed** | **Integer** | How many steps are `done`. | |
11
+ | **active_index** | **Integer** | The index in `tasks` of the step in progress, or null when none is. | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'api-sdk-rb'
17
+
18
+ instance = ApiSdkRb::WidgetPlan.new(
19
+ title: null,
20
+ tasks: null,
21
+ decisions: null,
22
+ completed: null,
23
+ active_index: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,32 @@
1
+ # ApiSdkRb::WidgetPlanDecisions
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **libraries** | [**Array<WidgetPlanDecisionsLibrariesInner>**](WidgetPlanDecisionsLibrariesInner.md) | | |
8
+ | **adapters** | [**Array<WidgetPlanDecisionsAdaptersInner>**](WidgetPlanDecisionsAdaptersInner.md) | The adapters the adapter stage attached on this turn. Empty while that stage is not applied. | |
9
+ | **look** | **String** | What the widget should look like, from what the person provided (words, pictures, a copied page, a Figma frame). May be empty. | |
10
+ | **motion** | **Array<String>** | The animations to apply. At most 3. | |
11
+ | **improvements** | **Array<String>** | Improvements that do not change what was asked. At most 3. | |
12
+ | **notes** | **Array<String>** | Anything else particular to this widget. At most 3. | |
13
+ | **responsive** | [**WidgetPlanDecisionsResponsive**](WidgetPlanDecisionsResponsive.md) | | [optional] |
14
+ | **elements** | **Array<String>** | What a Convert-to-Widget sketch shows: one short phrase per drawn element, in layout order. Empty when the request has no sketch. At most 12. | |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'api-sdk-rb'
20
+
21
+ instance = ApiSdkRb::WidgetPlanDecisions.new(
22
+ libraries: null,
23
+ adapters: null,
24
+ look: null,
25
+ motion: null,
26
+ improvements: null,
27
+ notes: null,
28
+ responsive: null,
29
+ elements: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,20 @@
1
+ # ApiSdkRb::WidgetPlanDecisionsAdaptersInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **label** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'api-sdk-rb'
14
+
15
+ instance = ApiSdkRb::WidgetPlanDecisionsAdaptersInner.new(
16
+ id: null,
17
+ label: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # ApiSdkRb::WidgetPlanDecisionsLibrariesInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | A stable id of the library (`gsap`, `three`, `chart`, ...). | |
8
+ | **label** | **String** | | |
9
+ | **reason** | **String** | Why the widget needs it, or an empty string. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'api-sdk-rb'
15
+
16
+ instance = ApiSdkRb::WidgetPlanDecisionsLibrariesInner.new(
17
+ id: null,
18
+ label: null,
19
+ reason: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # ApiSdkRb::WidgetPlanDecisionsResponsive
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **mobile** | **String** | | |
8
+ | **tablet** | **String** | | |
9
+ | **desktop** | **String** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'api-sdk-rb'
15
+
16
+ instance = ApiSdkRb::WidgetPlanDecisionsResponsive.new(
17
+ mobile: null,
18
+ tablet: null,
19
+ desktop: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,24 @@
1
+ # ApiSdkRb::WidgetPlanTask
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | `t1`, `t2`, ... Stable for the life of the plan. | |
8
+ | **label** | **String** | The step, in the language the person wrote in. At most 90 characters. | |
9
+ | **kind** | **String** | What the step is about, so a client can pick an icon. | |
10
+ | **status** | **String** | Where the step stands. At most one step is `in_progress`. | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'api-sdk-rb'
16
+
17
+ instance = ApiSdkRb::WidgetPlanTask.new(
18
+ id: null,
19
+ label: null,
20
+ kind: null,
21
+ status: null
22
+ )
23
+ ```
24
+
data/docs/WidgetsApi.md CHANGED
@@ -4,15 +4,15 @@ All URIs are relative to *https://api.widgetic.com/v1*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**create_composition_from_widget_0**](WidgetsApi.md#create_composition_from_widget_0) | **POST** /widgets/{id}/composition | Create a composition for a widget in one call |
8
- | [**create_widget_0**](WidgetsApi.md#create_widget_0) | **POST** /widgets | Create Widget |
9
- | [**get_widgets_0**](WidgetsApi.md#get_widgets_0) | **GET** /widgets | List Widgets |
10
- | [**get_widgets_batch_0**](WidgetsApi.md#get_widgets_batch_0) | **POST** /widgets/batch | Get Widgets Batch |
7
+ | [**create_composition_from_widget**](WidgetsApi.md#create_composition_from_widget) | **POST** /widgets/{id}/composition | Create a composition for a widget in one call |
8
+ | [**create_widget**](WidgetsApi.md#create_widget) | **POST** /widgets | Create Widget |
9
+ | [**get_widgets**](WidgetsApi.md#get_widgets) | **GET** /widgets | List Widgets |
10
+ | [**get_widgets_batch**](WidgetsApi.md#get_widgets_batch) | **POST** /widgets/batch | Get Widgets Batch |
11
11
 
12
12
 
13
- ## create_composition_from_widget_0
13
+ ## create_composition_from_widget
14
14
 
15
- > <CreateCompositionFromWidget201Response> create_composition_from_widget_0(id, idempotency_key, create_composition_from_widget_request)
15
+ > <CompositionResponse> create_composition_from_widget(id, idempotency_key, create_composition_from_widget_request)
16
16
 
17
17
  Create a composition for a widget in one call
18
18
 
@@ -36,28 +36,28 @@ create_composition_from_widget_request = ApiSdkRb::CreateCompositionFromWidgetRe
36
36
 
37
37
  begin
38
38
  # Create a composition for a widget in one call
39
- result = api_instance.create_composition_from_widget_0(id, idempotency_key, create_composition_from_widget_request)
39
+ result = api_instance.create_composition_from_widget(id, idempotency_key, create_composition_from_widget_request)
40
40
  p result
41
41
  rescue ApiSdkRb::ApiError => e
42
- puts "Error when calling WidgetsApi->create_composition_from_widget_0: #{e}"
42
+ puts "Error when calling WidgetsApi->create_composition_from_widget: #{e}"
43
43
  end
44
44
  ```
45
45
 
46
- #### Using the create_composition_from_widget_0_with_http_info variant
46
+ #### Using the create_composition_from_widget_with_http_info variant
47
47
 
48
48
  This returns an Array which contains the response data, status code and headers.
49
49
 
50
- > <Array(<CreateCompositionFromWidget201Response>, Integer, Hash)> create_composition_from_widget_0_with_http_info(id, idempotency_key, create_composition_from_widget_request)
50
+ > <Array(<CompositionResponse>, Integer, Hash)> create_composition_from_widget_with_http_info(id, idempotency_key, create_composition_from_widget_request)
51
51
 
52
52
  ```ruby
53
53
  begin
54
54
  # Create a composition for a widget in one call
55
- data, status_code, headers = api_instance.create_composition_from_widget_0_with_http_info(id, idempotency_key, create_composition_from_widget_request)
55
+ data, status_code, headers = api_instance.create_composition_from_widget_with_http_info(id, idempotency_key, create_composition_from_widget_request)
56
56
  p status_code # => 2xx
57
57
  p headers # => { ... }
58
- p data # => <CreateCompositionFromWidget201Response>
58
+ p data # => <CompositionResponse>
59
59
  rescue ApiSdkRb::ApiError => e
60
- puts "Error when calling WidgetsApi->create_composition_from_widget_0_with_http_info: #{e}"
60
+ puts "Error when calling WidgetsApi->create_composition_from_widget_with_http_info: #{e}"
61
61
  end
62
62
  ```
63
63
 
@@ -71,7 +71,7 @@ end
71
71
 
72
72
  ### Return type
73
73
 
74
- [**CreateCompositionFromWidget201Response**](CreateCompositionFromWidget201Response.md)
74
+ [**CompositionResponse**](CompositionResponse.md)
75
75
 
76
76
  ### Authorization
77
77
 
@@ -83,9 +83,9 @@ end
83
83
  - **Accept**: application/json
84
84
 
85
85
 
86
- ## create_widget_0
86
+ ## create_widget
87
87
 
88
- > <CreateWidget201Response> create_widget_0(idempotency_key, new_widget)
88
+ > <CreateWidget201Response> create_widget(idempotency_key, new_widget)
89
89
 
90
90
  Create Widget
91
91
 
@@ -108,28 +108,28 @@ new_widget = ApiSdkRb::NewWidget.new({name: 'New Chart Widget', type: 'chart', c
108
108
 
109
109
  begin
110
110
  # Create Widget
111
- result = api_instance.create_widget_0(idempotency_key, new_widget)
111
+ result = api_instance.create_widget(idempotency_key, new_widget)
112
112
  p result
113
113
  rescue ApiSdkRb::ApiError => e
114
- puts "Error when calling WidgetsApi->create_widget_0: #{e}"
114
+ puts "Error when calling WidgetsApi->create_widget: #{e}"
115
115
  end
116
116
  ```
117
117
 
118
- #### Using the create_widget_0_with_http_info variant
118
+ #### Using the create_widget_with_http_info variant
119
119
 
120
120
  This returns an Array which contains the response data, status code and headers.
121
121
 
122
- > <Array(<CreateWidget201Response>, Integer, Hash)> create_widget_0_with_http_info(idempotency_key, new_widget)
122
+ > <Array(<CreateWidget201Response>, Integer, Hash)> create_widget_with_http_info(idempotency_key, new_widget)
123
123
 
124
124
  ```ruby
125
125
  begin
126
126
  # Create Widget
127
- data, status_code, headers = api_instance.create_widget_0_with_http_info(idempotency_key, new_widget)
127
+ data, status_code, headers = api_instance.create_widget_with_http_info(idempotency_key, new_widget)
128
128
  p status_code # => 2xx
129
129
  p headers # => { ... }
130
130
  p data # => <CreateWidget201Response>
131
131
  rescue ApiSdkRb::ApiError => e
132
- puts "Error when calling WidgetsApi->create_widget_0_with_http_info: #{e}"
132
+ puts "Error when calling WidgetsApi->create_widget_with_http_info: #{e}"
133
133
  end
134
134
  ```
135
135
 
@@ -154,9 +154,9 @@ end
154
154
  - **Accept**: application/json
155
155
 
156
156
 
157
- ## get_widgets_0
157
+ ## get_widgets
158
158
 
159
- > <GetWidgets200Response> get_widgets_0(opts)
159
+ > <GetWidgets200Response> get_widgets(opts)
160
160
 
161
161
  List Widgets
162
162
 
@@ -184,28 +184,28 @@ opts = {
184
184
 
185
185
  begin
186
186
  # List Widgets
187
- result = api_instance.get_widgets_0(opts)
187
+ result = api_instance.get_widgets(opts)
188
188
  p result
189
189
  rescue ApiSdkRb::ApiError => e
190
- puts "Error when calling WidgetsApi->get_widgets_0: #{e}"
190
+ puts "Error when calling WidgetsApi->get_widgets: #{e}"
191
191
  end
192
192
  ```
193
193
 
194
- #### Using the get_widgets_0_with_http_info variant
194
+ #### Using the get_widgets_with_http_info variant
195
195
 
196
196
  This returns an Array which contains the response data, status code and headers.
197
197
 
198
- > <Array(<GetWidgets200Response>, Integer, Hash)> get_widgets_0_with_http_info(opts)
198
+ > <Array(<GetWidgets200Response>, Integer, Hash)> get_widgets_with_http_info(opts)
199
199
 
200
200
  ```ruby
201
201
  begin
202
202
  # List Widgets
203
- data, status_code, headers = api_instance.get_widgets_0_with_http_info(opts)
203
+ data, status_code, headers = api_instance.get_widgets_with_http_info(opts)
204
204
  p status_code # => 2xx
205
205
  p headers # => { ... }
206
206
  p data # => <GetWidgets200Response>
207
207
  rescue ApiSdkRb::ApiError => e
208
- puts "Error when calling WidgetsApi->get_widgets_0_with_http_info: #{e}"
208
+ puts "Error when calling WidgetsApi->get_widgets_with_http_info: #{e}"
209
209
  end
210
210
  ```
211
211
 
@@ -233,9 +233,9 @@ end
233
233
  - **Accept**: application/json
234
234
 
235
235
 
236
- ## get_widgets_batch_0
236
+ ## get_widgets_batch
237
237
 
238
- > <GetWidgetsBatchResponse> get_widgets_batch_0(get_widgets_batch_request)
238
+ > <GetWidgetsBatchResponse> get_widgets_batch(get_widgets_batch_request)
239
239
 
240
240
  Get Widgets Batch
241
241
 
@@ -257,28 +257,28 @@ get_widgets_batch_request = ApiSdkRb::GetWidgetsBatchRequest.new({widget_ids: ['
257
257
 
258
258
  begin
259
259
  # Get Widgets Batch
260
- result = api_instance.get_widgets_batch_0(get_widgets_batch_request)
260
+ result = api_instance.get_widgets_batch(get_widgets_batch_request)
261
261
  p result
262
262
  rescue ApiSdkRb::ApiError => e
263
- puts "Error when calling WidgetsApi->get_widgets_batch_0: #{e}"
263
+ puts "Error when calling WidgetsApi->get_widgets_batch: #{e}"
264
264
  end
265
265
  ```
266
266
 
267
- #### Using the get_widgets_batch_0_with_http_info variant
267
+ #### Using the get_widgets_batch_with_http_info variant
268
268
 
269
269
  This returns an Array which contains the response data, status code and headers.
270
270
 
271
- > <Array(<GetWidgetsBatchResponse>, Integer, Hash)> get_widgets_batch_0_with_http_info(get_widgets_batch_request)
271
+ > <Array(<GetWidgetsBatchResponse>, Integer, Hash)> get_widgets_batch_with_http_info(get_widgets_batch_request)
272
272
 
273
273
  ```ruby
274
274
  begin
275
275
  # Get Widgets Batch
276
- data, status_code, headers = api_instance.get_widgets_batch_0_with_http_info(get_widgets_batch_request)
276
+ data, status_code, headers = api_instance.get_widgets_batch_with_http_info(get_widgets_batch_request)
277
277
  p status_code # => 2xx
278
278
  p headers # => { ... }
279
279
  p data # => <GetWidgetsBatchResponse>
280
280
  rescue ApiSdkRb::ApiError => e
281
- puts "Error when calling WidgetsApi->get_widgets_batch_0_with_http_info: #{e}"
281
+ puts "Error when calling WidgetsApi->get_widgets_batch_with_http_info: #{e}"
282
282
  end
283
283
  ```
284
284
 
@@ -1,4 +1,4 @@
1
- # ApiSdkRb::CreateWorkspaceWorkflowFromPreset201Response
1
+ # ApiSdkRb::WorkflowDetailResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@
13
13
  ```ruby
14
14
  require 'api-sdk-rb'
15
15
 
16
- instance = ApiSdkRb::CreateWorkspaceWorkflowFromPreset201Response.new(
16
+ instance = ApiSdkRb::WorkflowDetailResponse.new(
17
17
  success: true,
18
18
  data: null,
19
19
  meta: null
@@ -0,0 +1,15 @@
1
+ # ApiSdkRb::WorkflowFailureReason
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'api-sdk-rb'
12
+
13
+ instance = ApiSdkRb::WorkflowFailureReason.new()
14
+ ```
15
+
@@ -0,0 +1,22 @@
1
+ # ApiSdkRb::WorkflowFailureReasonCounter
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The block (a composition) that could not be shown. | |
8
+ | **reason** | [**WorkflowFailureReason**](WorkflowFailureReason.md) | | |
9
+ | **total** | **Integer** | How many tries failed for this reason. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'api-sdk-rb'
15
+
16
+ instance = ApiSdkRb::WorkflowFailureReasonCounter.new(
17
+ id: null,
18
+ reason: null,
19
+ total: null
20
+ )
21
+ ```
22
+
@@ -1,4 +1,4 @@
1
- # ApiSdkRb::SaveWorkspaceWorkflow200Response
1
+ # ApiSdkRb::WorkflowResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@
13
13
  ```ruby
14
14
  require 'api-sdk-rb'
15
15
 
16
- instance = ApiSdkRb::SaveWorkspaceWorkflow200Response.new(
16
+ instance = ApiSdkRb::WorkflowResponse.new(
17
17
  success: true,
18
18
  data: null,
19
19
  meta: null
@@ -11,7 +11,8 @@
11
11
  | **started** | **Integer** | Visitors who started the workflow in the range; null when all versions are counted. | [optional] |
12
12
  | **nodes** | [**Array&lt;WorkflowCounter&gt;**](WorkflowCounter.md) | Visitors who reached each block. | |
13
13
  | **edges** | [**Array&lt;WorkflowCounter&gt;**](WorkflowCounter.md) | Visitors who took each connection. | |
14
- | **failed** | [**Array&lt;WorkflowCounter&gt;**](WorkflowCounter.md) | Times moving on to a block failed (it did not load in time) and the visitor stayed. | |
14
+ | **failed** | [**Array&lt;WorkflowCounter&gt;**](WorkflowCounter.md) | Times moving on to a block failed and the visitor stayed, whatever the reason: every failure is counted here, including the ones whose browser did not say why. A try is counted, not a visitor: a step is tried once more after 30 seconds, so one visitor can count twice. | |
15
+ | **failed_reasons** | [**Array&lt;WorkflowFailureReasonCounter&gt;**](WorkflowFailureReasonCounter.md) | Why those failed, where the visitor&#39;s browser said why: one entry for each block and reason that has a count. The reasons of a block add up to at most its &#x60;failed&#x60; total, never more: a failure reported by an embed that does not say why (an older one) is in &#x60;failed&#x60; and in none of these, so a block whose reasons add up to less has some of unknown reason. Empty when no failure in the range had a reason. Sent by gateways that keep reasons; a client that reads a gateway without them treats a missing list as empty. | [optional] |
15
16
 
16
17
  ## Example
17
18
 
@@ -26,7 +27,8 @@ instance = ApiSdkRb::WorkflowStats.new(
26
27
  started: null,
27
28
  nodes: null,
28
29
  edges: null,
29
- failed: null
30
+ failed: null,
31
+ failed_reasons: null
30
32
  )
31
33
  ```
32
34