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
@@ -27,8 +27,8 @@ module ApiSdkRb
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @option opts [CopyPartnerPresetRequest] :copy_partner_preset_request
29
29
  # @return [PartnerPresetCopyResponse]
30
- def copy_preset_for_managed_user_0(id, key, idempotency_key, opts = {})
31
- data, _status_code, _headers = copy_preset_for_managed_user_0_with_http_info(id, key, idempotency_key, opts)
30
+ def copy_preset_for_managed_user(id, key, idempotency_key, opts = {})
31
+ data, _status_code, _headers = copy_preset_for_managed_user_with_http_info(id, key, idempotency_key, opts)
32
32
  data
33
33
  end
34
34
 
@@ -40,38 +40,38 @@ module ApiSdkRb
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @option opts [CopyPartnerPresetRequest] :copy_partner_preset_request
42
42
  # @return [Array<(PartnerPresetCopyResponse, Integer, Hash)>] PartnerPresetCopyResponse data, response status code and response headers
43
- def copy_preset_for_managed_user_0_with_http_info(id, key, idempotency_key, opts = {})
43
+ def copy_preset_for_managed_user_with_http_info(id, key, idempotency_key, opts = {})
44
44
  if @api_client.config.debugging
45
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.copy_preset_for_managed_user_0 ...'
45
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.copy_preset_for_managed_user ...'
46
46
  end
47
47
  # verify the required parameter 'id' is set
48
48
  if @api_client.config.client_side_validation && id.nil?
49
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.copy_preset_for_managed_user_0"
49
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.copy_preset_for_managed_user"
50
50
  end
51
51
  # verify the required parameter 'key' is set
52
52
  if @api_client.config.client_side_validation && key.nil?
53
- fail ArgumentError, "Missing the required parameter 'key' when calling ManagedUsersApi.copy_preset_for_managed_user_0"
53
+ fail ArgumentError, "Missing the required parameter 'key' when calling ManagedUsersApi.copy_preset_for_managed_user"
54
54
  end
55
55
  pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
56
56
  if @api_client.config.client_side_validation && key !~ pattern
57
- fail ArgumentError, "invalid value for 'key' when calling ManagedUsersApi.copy_preset_for_managed_user_0, must conform to the pattern #{pattern}."
57
+ fail ArgumentError, "invalid value for 'key' when calling ManagedUsersApi.copy_preset_for_managed_user, must conform to the pattern #{pattern}."
58
58
  end
59
59
 
60
60
  # verify the required parameter 'idempotency_key' is set
61
61
  if @api_client.config.client_side_validation && idempotency_key.nil?
62
- fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling ManagedUsersApi.copy_preset_for_managed_user_0"
62
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling ManagedUsersApi.copy_preset_for_managed_user"
63
63
  end
64
64
  if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
65
- fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.copy_preset_for_managed_user_0, the character length must be smaller than or equal to 50.'
65
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.copy_preset_for_managed_user, the character length must be smaller than or equal to 50.'
66
66
  end
67
67
 
68
68
  if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
69
- fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.copy_preset_for_managed_user_0, the character length must be great than or equal to 8.'
69
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.copy_preset_for_managed_user, the character length must be great than or equal to 8.'
70
70
  end
71
71
 
72
72
  pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
73
73
  if @api_client.config.client_side_validation && idempotency_key !~ pattern
74
- fail ArgumentError, "invalid value for 'idempotency_key' when calling ManagedUsersApi.copy_preset_for_managed_user_0, must conform to the pattern #{pattern}."
74
+ fail ArgumentError, "invalid value for 'idempotency_key' when calling ManagedUsersApi.copy_preset_for_managed_user, must conform to the pattern #{pattern}."
75
75
  end
76
76
 
77
77
  # resource path
@@ -104,7 +104,7 @@ module ApiSdkRb
104
104
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
105
105
 
106
106
  new_options = opts.merge(
107
- :operation => :"ManagedUsersApi.copy_preset_for_managed_user_0",
107
+ :operation => :"ManagedUsersApi.copy_preset_for_managed_user",
108
108
  :header_params => header_params,
109
109
  :query_params => query_params,
110
110
  :form_params => form_params,
@@ -115,7 +115,7 @@ module ApiSdkRb
115
115
 
116
116
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
117
117
  if @api_client.config.debugging
118
- @api_client.config.logger.debug "API called: ManagedUsersApi#copy_preset_for_managed_user_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
118
+ @api_client.config.logger.debug "API called: ManagedUsersApi#copy_preset_for_managed_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
119
119
  end
120
120
  return data, status_code, headers
121
121
  end
@@ -127,9 +127,9 @@ module ApiSdkRb
127
127
  # @param idempotency_key [String] Required: a call without it is refused with &#x60;400&#x60;. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
128
128
  # @param create_composition_from_preset_request [CreateCompositionFromPresetRequest]
129
129
  # @param [Hash] opts the optional parameters
130
- # @return [CreateCompositionFromWidget201Response]
131
- def create_composition_from_preset_0(id, key, idempotency_key, create_composition_from_preset_request, opts = {})
132
- data, _status_code, _headers = create_composition_from_preset_0_with_http_info(id, key, idempotency_key, create_composition_from_preset_request, opts)
130
+ # @return [CompositionResponse]
131
+ def create_composition_from_preset(id, key, idempotency_key, create_composition_from_preset_request, opts = {})
132
+ data, _status_code, _headers = create_composition_from_preset_with_http_info(id, key, idempotency_key, create_composition_from_preset_request, opts)
133
133
  data
134
134
  end
135
135
 
@@ -140,39 +140,39 @@ module ApiSdkRb
140
140
  # @param idempotency_key [String] Required: a call without it is refused with &#x60;400&#x60;. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
141
141
  # @param create_composition_from_preset_request [CreateCompositionFromPresetRequest]
142
142
  # @param [Hash] opts the optional parameters
143
- # @return [Array<(CreateCompositionFromWidget201Response, Integer, Hash)>] CreateCompositionFromWidget201Response data, response status code and response headers
144
- def create_composition_from_preset_0_with_http_info(id, key, idempotency_key, create_composition_from_preset_request, opts = {})
143
+ # @return [Array<(CompositionResponse, Integer, Hash)>] CompositionResponse data, response status code and response headers
144
+ def create_composition_from_preset_with_http_info(id, key, idempotency_key, create_composition_from_preset_request, opts = {})
145
145
  if @api_client.config.debugging
146
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.create_composition_from_preset_0 ...'
146
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.create_composition_from_preset ...'
147
147
  end
148
148
  # verify the required parameter 'id' is set
149
149
  if @api_client.config.client_side_validation && id.nil?
150
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.create_composition_from_preset_0"
150
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.create_composition_from_preset"
151
151
  end
152
152
  # verify the required parameter 'key' is set
153
153
  if @api_client.config.client_side_validation && key.nil?
154
- fail ArgumentError, "Missing the required parameter 'key' when calling ManagedUsersApi.create_composition_from_preset_0"
154
+ fail ArgumentError, "Missing the required parameter 'key' when calling ManagedUsersApi.create_composition_from_preset"
155
155
  end
156
156
  # verify the required parameter 'idempotency_key' is set
157
157
  if @api_client.config.client_side_validation && idempotency_key.nil?
158
- fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling ManagedUsersApi.create_composition_from_preset_0"
158
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling ManagedUsersApi.create_composition_from_preset"
159
159
  end
160
160
  if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
161
- fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.create_composition_from_preset_0, the character length must be smaller than or equal to 50.'
161
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.create_composition_from_preset, the character length must be smaller than or equal to 50.'
162
162
  end
163
163
 
164
164
  if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
165
- fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.create_composition_from_preset_0, the character length must be great than or equal to 8.'
165
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.create_composition_from_preset, the character length must be great than or equal to 8.'
166
166
  end
167
167
 
168
168
  pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
169
169
  if @api_client.config.client_side_validation && idempotency_key !~ pattern
170
- fail ArgumentError, "invalid value for 'idempotency_key' when calling ManagedUsersApi.create_composition_from_preset_0, must conform to the pattern #{pattern}."
170
+ fail ArgumentError, "invalid value for 'idempotency_key' when calling ManagedUsersApi.create_composition_from_preset, must conform to the pattern #{pattern}."
171
171
  end
172
172
 
173
173
  # verify the required parameter 'create_composition_from_preset_request' is set
174
174
  if @api_client.config.client_side_validation && create_composition_from_preset_request.nil?
175
- fail ArgumentError, "Missing the required parameter 'create_composition_from_preset_request' when calling ManagedUsersApi.create_composition_from_preset_0"
175
+ fail ArgumentError, "Missing the required parameter 'create_composition_from_preset_request' when calling ManagedUsersApi.create_composition_from_preset"
176
176
  end
177
177
  # resource path
178
178
  local_var_path = '/managed-users/{id}/presets/{key}/composition'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
@@ -198,13 +198,13 @@ module ApiSdkRb
198
198
  post_body = opts[:debug_body] || @api_client.object_to_http_body(create_composition_from_preset_request)
199
199
 
200
200
  # return_type
201
- return_type = opts[:debug_return_type] || 'CreateCompositionFromWidget201Response'
201
+ return_type = opts[:debug_return_type] || 'CompositionResponse'
202
202
 
203
203
  # auth_names
204
204
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
205
205
 
206
206
  new_options = opts.merge(
207
- :operation => :"ManagedUsersApi.create_composition_from_preset_0",
207
+ :operation => :"ManagedUsersApi.create_composition_from_preset",
208
208
  :header_params => header_params,
209
209
  :query_params => query_params,
210
210
  :form_params => form_params,
@@ -215,7 +215,7 @@ module ApiSdkRb
215
215
 
216
216
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
217
217
  if @api_client.config.debugging
218
- @api_client.config.logger.debug "API called: ManagedUsersApi#create_composition_from_preset_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
218
+ @api_client.config.logger.debug "API called: ManagedUsersApi#create_composition_from_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
219
219
  end
220
220
  return data, status_code, headers
221
221
  end
@@ -226,8 +226,8 @@ module ApiSdkRb
226
226
  # @param new_managed_user [NewManagedUser]
227
227
  # @param [Hash] opts the optional parameters
228
228
  # @return [ManagedUserResponse]
229
- def create_managed_user_0(idempotency_key, new_managed_user, opts = {})
230
- data, _status_code, _headers = create_managed_user_0_with_http_info(idempotency_key, new_managed_user, opts)
229
+ def create_managed_user(idempotency_key, new_managed_user, opts = {})
230
+ data, _status_code, _headers = create_managed_user_with_http_info(idempotency_key, new_managed_user, opts)
231
231
  data
232
232
  end
233
233
 
@@ -237,30 +237,30 @@ module ApiSdkRb
237
237
  # @param new_managed_user [NewManagedUser]
238
238
  # @param [Hash] opts the optional parameters
239
239
  # @return [Array<(ManagedUserResponse, Integer, Hash)>] ManagedUserResponse data, response status code and response headers
240
- def create_managed_user_0_with_http_info(idempotency_key, new_managed_user, opts = {})
240
+ def create_managed_user_with_http_info(idempotency_key, new_managed_user, opts = {})
241
241
  if @api_client.config.debugging
242
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.create_managed_user_0 ...'
242
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.create_managed_user ...'
243
243
  end
244
244
  # verify the required parameter 'idempotency_key' is set
245
245
  if @api_client.config.client_side_validation && idempotency_key.nil?
246
- fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling ManagedUsersApi.create_managed_user_0"
246
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling ManagedUsersApi.create_managed_user"
247
247
  end
248
248
  if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
249
- fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.create_managed_user_0, the character length must be smaller than or equal to 50.'
249
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.create_managed_user, the character length must be smaller than or equal to 50.'
250
250
  end
251
251
 
252
252
  if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
253
- fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.create_managed_user_0, the character length must be great than or equal to 8.'
253
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.create_managed_user, the character length must be great than or equal to 8.'
254
254
  end
255
255
 
256
256
  pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
257
257
  if @api_client.config.client_side_validation && idempotency_key !~ pattern
258
- fail ArgumentError, "invalid value for 'idempotency_key' when calling ManagedUsersApi.create_managed_user_0, must conform to the pattern #{pattern}."
258
+ fail ArgumentError, "invalid value for 'idempotency_key' when calling ManagedUsersApi.create_managed_user, must conform to the pattern #{pattern}."
259
259
  end
260
260
 
261
261
  # verify the required parameter 'new_managed_user' is set
262
262
  if @api_client.config.client_side_validation && new_managed_user.nil?
263
- fail ArgumentError, "Missing the required parameter 'new_managed_user' when calling ManagedUsersApi.create_managed_user_0"
263
+ fail ArgumentError, "Missing the required parameter 'new_managed_user' when calling ManagedUsersApi.create_managed_user"
264
264
  end
265
265
  # resource path
266
266
  local_var_path = '/managed-users'
@@ -292,7 +292,7 @@ module ApiSdkRb
292
292
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
293
293
 
294
294
  new_options = opts.merge(
295
- :operation => :"ManagedUsersApi.create_managed_user_0",
295
+ :operation => :"ManagedUsersApi.create_managed_user",
296
296
  :header_params => header_params,
297
297
  :query_params => query_params,
298
298
  :form_params => form_params,
@@ -303,39 +303,39 @@ module ApiSdkRb
303
303
 
304
304
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
305
305
  if @api_client.config.debugging
306
- @api_client.config.logger.debug "API called: ManagedUsersApi#create_managed_user_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
306
+ @api_client.config.logger.debug "API called: ManagedUsersApi#create_managed_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
307
307
  end
308
308
  return data, status_code, headers
309
309
  end
310
310
 
311
311
  # Create an editor session for a managed user
312
- # Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic's editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic's: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user's compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). For a widget that answers visitors' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users', answers 404. - `creator`: use Widgetic's widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget's schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget's repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user's canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. - `workflows`: use Widgetic's Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is `personal`: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user's workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer's session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
312
+ # Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic's editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadFile`) and list the files uploaded for this user (`listUploads`). Every file is filed for this user and stored in your own storage destination, never in Widgetic's: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user's compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). For a widget that answers visitors' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users', answers 404. - `creator`: use Widgetic's widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget's schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`listLlmModels`), open the widget's repository (`createRepository`, `getRepository`), start a generation and follow or cancel it (`generateCode`, `streamOperationUpdates`, `getOperation`, `cancelOperation`), build and preview the result (`getWidgetRepositoryHead`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`publishBuiltWidget`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`recognizeShape`, `resolveDesignProperty`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user's canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadFile`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. - `workflows`: use Widgetic's Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is `personal`: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user's workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer's session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
313
313
  # @param id [String] The managed user the session is for (Widgetic&#39;s id for the user)
314
314
  # @param new_editor_session [NewEditorSession]
315
315
  # @param [Hash] opts the optional parameters
316
316
  # @return [EditorSessionResponse]
317
- def create_managed_user_editor_session_0(id, new_editor_session, opts = {})
318
- data, _status_code, _headers = create_managed_user_editor_session_0_with_http_info(id, new_editor_session, opts)
317
+ def create_managed_user_editor_session(id, new_editor_session, opts = {})
318
+ data, _status_code, _headers = create_managed_user_editor_session_with_http_info(id, new_editor_session, opts)
319
319
  data
320
320
  end
321
321
 
322
322
  # Create an editor session for a managed user
323
- # Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic&#39;s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the &#x60;token&#x60; in the answer to that page. The token is shown once. It starts with &#x60;wgt_ses_&#x60; and the browser sends it as &#x60;Authorization: Bearer &lt;token&gt;&#x60;. It can do only what the &#x60;surfaces&#x60; you name allow, and only for this managed user: - &#x60;files&#x60;: upload a file (&#x60;uploadsPost&#x60;) and list the files uploaded for this user (&#x60;uploadsGet&#x60;). Every file is filed for this user and stored in your own storage destination, never in Widgetic&#39;s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (&#x60;setPartnerStorageDestination&#x60;); until then it is refused with 409 and &#x60;PARTNER_STORAGE_REQUIRED&#x60;, and when the destination cannot be used with 503 and &#x60;STORAGE_DESTINATION_UNAVAILABLE&#x60;. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave &#x60;files&#x60; out of the session and hand the editors your own media library instead (&#x60;mediaLibrary&#x60;). - &#x60;editor&#x60;: edit one of this user&#39;s compositions: read it (&#x60;getCompositionById&#x60;, its content, design, embed settings and schemas), check a content change (&#x60;validateCompositionContent&#x60;), and change its name, content, design and embed settings (&#x60;updateComposition&#x60;, &#x60;setDynamicContent&#x60;). For a widget that answers visitors&#39; questions from documents (the &#x60;ai-answers&#x60; adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (&#x60;getAiAnswersKnowledge&#x60;, &#x60;addAiAnswersKnowledgeDocument&#x60;, &#x60;addAiAnswersKnowledgeFile&#x60;, &#x60;removeAiAnswersKnowledgeDocument&#x60;); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with &#x60;managedUserId&#x60; when you create them); any other composition, including another of your users&#39;, answers 404. - &#x60;creator&#x60;: use Widgetic&#39;s widget creator for this user, including its AI. Draw on canvases and save them (&#x60;getAllCanvases&#x60;, &#x60;getCanvas&#x60;, &#x60;createCanvas&#x60;, &#x60;updateCanvas&#x60;, &#x60;previewDeleteCanvas&#x60;, &#x60;deleteCanvas&#x60;); make, change, copy and delete the widgets on them (&#x60;createWidget&#x60;, &#x60;getWidgets&#x60;, &#x60;getWidgetsBatch&#x60;, &#x60;updateWidget&#x60;, &#x60;uploadWidgetThumbnail&#x60;, &#x60;duplicateWidget&#x60;, &#x60;deleteWidget&#x60;); list and make the compositions of a widget it built (&#x60;getAllCompositions&#x60;, &#x60;createComposition&#x60;), which is how it shows the widget with sample values; keep the conversation of each widget (&#x60;getConversationsByWidgetId&#x60;, &#x60;createConversationForWidget&#x60;, &#x60;updateConversation&#x60;, &#x60;getMessages&#x60;, &#x60;createMessage&#x60;, &#x60;updateMessage&#x60;, &#x60;restoreCheckpoint&#x60;); and read a widget&#39;s schemas and give it its repository (&#x60;getWidgetContentSchema&#x60;, &#x60;getWidgetDesignSchema&#x60;, &#x60;updateWidgetRepository&#x60;). The AI that builds a widget is part of it: list the models (&#x60;agentModelsGet&#x60;), open the widget&#39;s repository (&#x60;agentRepositoriesPost&#x60;, &#x60;agentRepositoriesRepoIdGet&#x60;), start a generation and follow or cancel it (&#x60;agentCodeGeneratePost&#x60;, &#x60;operationsStreamGet&#x60;, &#x60;operationsIdGet&#x60;, &#x60;operationsIdCancelPost&#x60;), build and preview the result (&#x60;agentWidgetBuilderRepoHeadWidgetIdGet&#x60;, &#x60;buildWidgetFromRepo&#x60;, &#x60;previewWidgetVersion&#x60;), publish a version of the widget and move between its versions (&#x60;agentWidgetBuilderPublishWidgetIdPost&#x60;, &#x60;getWidgetPublishHistory&#x60;, &#x60;setWidgetPublishHistoryLive&#x60;, &#x60;renameWidgetPublishHistoryTitle&#x60;), and turn a stroke or a sentence into a decision (&#x60;agentShapeRecognizePost&#x60;, &#x60;agentDesignResolvePost&#x60;). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (&#x60;listMyPresets&#x60;, &#x60;copyMyPreset&#x60;; you choose the presets with &#x60;setPartnerPreset&#x60;). What the session makes is filed for this managed user, and the lists it reads hold only this user&#39;s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with &#x60;managedUserId&#x60;); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users&#39;, answers 404. The creator also saves the composition it is editing (&#x60;updateComposition&#x60;, from the &#x60;editor&#x60; surface) and attaches pictures to its chat (&#x60;uploadsPost&#x60;, from the &#x60;files&#x60; surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for &#x60;creator&#x60;, &#x60;editor&#x60; and &#x60;files&#x60; together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and &#x60;EDITOR_SESSION_FIELD_NOT_ALLOWED&#x60;. - &#x60;workflows&#x60;: use Widgetic&#39;s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (&#x60;listWorkspaceWorkflows&#x60;, &#x60;listWorkspaceWorkflowCompositionOptions&#x60;); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (&#x60;listWorkspaceWorkflowPresets&#x60;, &#x60;createWorkspaceWorkflowFromPreset&#x60;; you offer them with &#x60;setPartnerWorkflowPreset&#x60;); make, open, change and delete one (&#x60;createWorkspaceWorkflow&#x60;, &#x60;getWorkspaceWorkflow&#x60;, &#x60;saveWorkspaceWorkflow&#x60;, &#x60;deleteWorkspaceWorkflow&#x60;) and copy it (&#x60;duplicateWorkspaceWorkflow&#x60;); publish it or discard the changes of its draft (&#x60;publishWorkspaceWorkflow&#x60;, &#x60;discardWorkspaceWorkflowChanges&#x60;); read and restore its versions (&#x60;listWorkspaceWorkflowVersions&#x60;, &#x60;getWorkspaceWorkflowVersion&#x60;, &#x60;restoreWorkspaceWorkflowVersion&#x60;); pause, resume, archive and unarchive it (&#x60;pauseWorkspaceWorkflow&#x60;, &#x60;resumeWorkspaceWorkflow&#x60;, &#x60;archiveWorkspaceWorkflow&#x60;, &#x60;unarchiveWorkspaceWorkflow&#x60;); and read its counts (&#x60;getWorkspaceWorkflowStats&#x60;). The workspace in each path is &#x60;personal&#x60;: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (&#x60;managedUserId&#x60;), the lists hold only this user&#39;s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with &#x60;managedUserId&#x60;): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer&#39;s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and &#x60;EDITOR_SESSION_FIELD_NOT_ALLOWED&#x60;. Everything else is refused with 403 and &#x60;EDITOR_SESSION_ROUTE_NOT_ALLOWED&#x60;: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the &#x60;creator&#x60; surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at &#x60;expiresAt&#x60; (at most four hours), when you end it (&#x60;revokeManagedUserEditorSession&#x60;), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (&#x60;429 EDITOR_SESSION_LIMIT_REACHED&#x60;). A session that is bound to a web page (&#x60;allowedOrigin&#x60;) is refused from any other origin. The AI the session runs is paid for with your credits. Set &#x60;maxCredits&#x60; to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and &#x60;EDITOR_SESSION_CREDIT_LIMIT_REACHED&#x60;, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and &#x60;maxCredits: null&#x60; asks for none), and otherwise the credits of your account are the only ceiling. What each of your users&#39; sessions has spent is in &#x60;getManagedUserUsage&#x60;. Each call makes a new session. It does not take an &#x60;Idempotency-Key&#x60;: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with &#x60;Cache-Control: no-store&#x60;.
323
+ # Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic&#39;s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the &#x60;token&#x60; in the answer to that page. The token is shown once. It starts with &#x60;wgt_ses_&#x60; and the browser sends it as &#x60;Authorization: Bearer &lt;token&gt;&#x60;. It can do only what the &#x60;surfaces&#x60; you name allow, and only for this managed user: - &#x60;files&#x60;: upload a file (&#x60;uploadFile&#x60;) and list the files uploaded for this user (&#x60;listUploads&#x60;). Every file is filed for this user and stored in your own storage destination, never in Widgetic&#39;s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (&#x60;setPartnerStorageDestination&#x60;); until then it is refused with 409 and &#x60;PARTNER_STORAGE_REQUIRED&#x60;, and when the destination cannot be used with 503 and &#x60;STORAGE_DESTINATION_UNAVAILABLE&#x60;. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave &#x60;files&#x60; out of the session and hand the editors your own media library instead (&#x60;mediaLibrary&#x60;). - &#x60;editor&#x60;: edit one of this user&#39;s compositions: read it (&#x60;getCompositionById&#x60;, its content, design, embed settings and schemas), check a content change (&#x60;validateCompositionContent&#x60;), and change its name, content, design and embed settings (&#x60;updateComposition&#x60;, &#x60;setDynamicContent&#x60;). For a widget that answers visitors&#39; questions from documents (the &#x60;ai-answers&#x60; adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (&#x60;getAiAnswersKnowledge&#x60;, &#x60;addAiAnswersKnowledgeDocument&#x60;, &#x60;addAiAnswersKnowledgeFile&#x60;, &#x60;removeAiAnswersKnowledgeDocument&#x60;); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with &#x60;managedUserId&#x60; when you create them); any other composition, including another of your users&#39;, answers 404. - &#x60;creator&#x60;: use Widgetic&#39;s widget creator for this user, including its AI. Draw on canvases and save them (&#x60;getAllCanvases&#x60;, &#x60;getCanvas&#x60;, &#x60;createCanvas&#x60;, &#x60;updateCanvas&#x60;, &#x60;previewDeleteCanvas&#x60;, &#x60;deleteCanvas&#x60;); make, change, copy and delete the widgets on them (&#x60;createWidget&#x60;, &#x60;getWidgets&#x60;, &#x60;getWidgetsBatch&#x60;, &#x60;updateWidget&#x60;, &#x60;uploadWidgetThumbnail&#x60;, &#x60;duplicateWidget&#x60;, &#x60;deleteWidget&#x60;); list and make the compositions of a widget it built (&#x60;getAllCompositions&#x60;, &#x60;createComposition&#x60;), which is how it shows the widget with sample values; keep the conversation of each widget (&#x60;getConversationsByWidgetId&#x60;, &#x60;createConversationForWidget&#x60;, &#x60;updateConversation&#x60;, &#x60;getMessages&#x60;, &#x60;createMessage&#x60;, &#x60;updateMessage&#x60;, &#x60;restoreCheckpoint&#x60;); and read a widget&#39;s schemas and give it its repository (&#x60;getWidgetContentSchema&#x60;, &#x60;getWidgetDesignSchema&#x60;, &#x60;updateWidgetRepository&#x60;). The AI that builds a widget is part of it: list the models (&#x60;listLlmModels&#x60;), open the widget&#39;s repository (&#x60;createRepository&#x60;, &#x60;getRepository&#x60;), start a generation and follow or cancel it (&#x60;generateCode&#x60;, &#x60;streamOperationUpdates&#x60;, &#x60;getOperation&#x60;, &#x60;cancelOperation&#x60;), build and preview the result (&#x60;getWidgetRepositoryHead&#x60;, &#x60;buildWidgetFromRepo&#x60;, &#x60;previewWidgetVersion&#x60;), publish a version of the widget and move between its versions (&#x60;publishBuiltWidget&#x60;, &#x60;getWidgetPublishHistory&#x60;, &#x60;setWidgetPublishHistoryLive&#x60;, &#x60;renameWidgetPublishHistoryTitle&#x60;), and turn a stroke or a sentence into a decision (&#x60;recognizeShape&#x60;, &#x60;resolveDesignProperty&#x60;). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (&#x60;listMyPresets&#x60;, &#x60;copyMyPreset&#x60;; you choose the presets with &#x60;setPartnerPreset&#x60;). What the session makes is filed for this managed user, and the lists it reads hold only this user&#39;s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with &#x60;managedUserId&#x60;); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users&#39;, answers 404. The creator also saves the composition it is editing (&#x60;updateComposition&#x60;, from the &#x60;editor&#x60; surface) and attaches pictures to its chat (&#x60;uploadFile&#x60;, from the &#x60;files&#x60; surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for &#x60;creator&#x60;, &#x60;editor&#x60; and &#x60;files&#x60; together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and &#x60;EDITOR_SESSION_FIELD_NOT_ALLOWED&#x60;. - &#x60;workflows&#x60;: use Widgetic&#39;s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (&#x60;listWorkspaceWorkflows&#x60;, &#x60;listWorkspaceWorkflowCompositionOptions&#x60;); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (&#x60;listWorkspaceWorkflowPresets&#x60;, &#x60;createWorkspaceWorkflowFromPreset&#x60;; you offer them with &#x60;setPartnerWorkflowPreset&#x60;); make, open, change and delete one (&#x60;createWorkspaceWorkflow&#x60;, &#x60;getWorkspaceWorkflow&#x60;, &#x60;saveWorkspaceWorkflow&#x60;, &#x60;deleteWorkspaceWorkflow&#x60;) and copy it (&#x60;duplicateWorkspaceWorkflow&#x60;); publish it or discard the changes of its draft (&#x60;publishWorkspaceWorkflow&#x60;, &#x60;discardWorkspaceWorkflowChanges&#x60;); read and restore its versions (&#x60;listWorkspaceWorkflowVersions&#x60;, &#x60;getWorkspaceWorkflowVersion&#x60;, &#x60;restoreWorkspaceWorkflowVersion&#x60;); pause, resume, archive and unarchive it (&#x60;pauseWorkspaceWorkflow&#x60;, &#x60;resumeWorkspaceWorkflow&#x60;, &#x60;archiveWorkspaceWorkflow&#x60;, &#x60;unarchiveWorkspaceWorkflow&#x60;); and read its counts (&#x60;getWorkspaceWorkflowStats&#x60;). The workspace in each path is &#x60;personal&#x60;: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (&#x60;managedUserId&#x60;), the lists hold only this user&#39;s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with &#x60;managedUserId&#x60;): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer&#39;s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and &#x60;EDITOR_SESSION_FIELD_NOT_ALLOWED&#x60;. Everything else is refused with 403 and &#x60;EDITOR_SESSION_ROUTE_NOT_ALLOWED&#x60;: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the &#x60;creator&#x60; surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at &#x60;expiresAt&#x60; (at most four hours), when you end it (&#x60;revokeManagedUserEditorSession&#x60;), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (&#x60;429 EDITOR_SESSION_LIMIT_REACHED&#x60;). A session that is bound to a web page (&#x60;allowedOrigin&#x60;) is refused from any other origin. The AI the session runs is paid for with your credits. Set &#x60;maxCredits&#x60; to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and &#x60;EDITOR_SESSION_CREDIT_LIMIT_REACHED&#x60;, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and &#x60;maxCredits: null&#x60; asks for none), and otherwise the credits of your account are the only ceiling. What each of your users&#39; sessions has spent is in &#x60;getManagedUserUsage&#x60;. Each call makes a new session. It does not take an &#x60;Idempotency-Key&#x60;: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with &#x60;Cache-Control: no-store&#x60;.
324
324
  # @param id [String] The managed user the session is for (Widgetic&#39;s id for the user)
325
325
  # @param new_editor_session [NewEditorSession]
326
326
  # @param [Hash] opts the optional parameters
327
327
  # @return [Array<(EditorSessionResponse, Integer, Hash)>] EditorSessionResponse data, response status code and response headers
328
- def create_managed_user_editor_session_0_with_http_info(id, new_editor_session, opts = {})
328
+ def create_managed_user_editor_session_with_http_info(id, new_editor_session, opts = {})
329
329
  if @api_client.config.debugging
330
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.create_managed_user_editor_session_0 ...'
330
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.create_managed_user_editor_session ...'
331
331
  end
332
332
  # verify the required parameter 'id' is set
333
333
  if @api_client.config.client_side_validation && id.nil?
334
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.create_managed_user_editor_session_0"
334
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.create_managed_user_editor_session"
335
335
  end
336
336
  # verify the required parameter 'new_editor_session' is set
337
337
  if @api_client.config.client_side_validation && new_editor_session.nil?
338
- fail ArgumentError, "Missing the required parameter 'new_editor_session' when calling ManagedUsersApi.create_managed_user_editor_session_0"
338
+ fail ArgumentError, "Missing the required parameter 'new_editor_session' when calling ManagedUsersApi.create_managed_user_editor_session"
339
339
  end
340
340
  # resource path
341
341
  local_var_path = '/managed-users/{id}/editor-sessions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -366,7 +366,7 @@ module ApiSdkRb
366
366
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
367
367
 
368
368
  new_options = opts.merge(
369
- :operation => :"ManagedUsersApi.create_managed_user_editor_session_0",
369
+ :operation => :"ManagedUsersApi.create_managed_user_editor_session",
370
370
  :header_params => header_params,
371
371
  :query_params => query_params,
372
372
  :form_params => form_params,
@@ -377,7 +377,7 @@ module ApiSdkRb
377
377
 
378
378
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
379
379
  if @api_client.config.debugging
380
- @api_client.config.logger.debug "API called: ManagedUsersApi#create_managed_user_editor_session_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
380
+ @api_client.config.logger.debug "API called: ManagedUsersApi#create_managed_user_editor_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
381
381
  end
382
382
  return data, status_code, headers
383
383
  end
@@ -386,9 +386,9 @@ module ApiSdkRb
386
386
  # Deletes a managed user by ID. Its editor sessions end with it. What was filed under it (compositions, widgets, uploads) stays in your account, untagged.
387
387
  # @param id [String] ID of the managed user to delete
388
388
  # @param [Hash] opts the optional parameters
389
- # @return [DeleteManagedUser200Response]
390
- def delete_managed_user_0(id, opts = {})
391
- data, _status_code, _headers = delete_managed_user_0_with_http_info(id, opts)
389
+ # @return [ManagedUserRemovalResponse]
390
+ def delete_managed_user(id, opts = {})
391
+ data, _status_code, _headers = delete_managed_user_with_http_info(id, opts)
392
392
  data
393
393
  end
394
394
 
@@ -396,14 +396,14 @@ module ApiSdkRb
396
396
  # Deletes a managed user by ID. Its editor sessions end with it. What was filed under it (compositions, widgets, uploads) stays in your account, untagged.
397
397
  # @param id [String] ID of the managed user to delete
398
398
  # @param [Hash] opts the optional parameters
399
- # @return [Array<(DeleteManagedUser200Response, Integer, Hash)>] DeleteManagedUser200Response data, response status code and response headers
400
- def delete_managed_user_0_with_http_info(id, opts = {})
399
+ # @return [Array<(ManagedUserRemovalResponse, Integer, Hash)>] ManagedUserRemovalResponse data, response status code and response headers
400
+ def delete_managed_user_with_http_info(id, opts = {})
401
401
  if @api_client.config.debugging
402
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.delete_managed_user_0 ...'
402
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.delete_managed_user ...'
403
403
  end
404
404
  # verify the required parameter 'id' is set
405
405
  if @api_client.config.client_side_validation && id.nil?
406
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.delete_managed_user_0"
406
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.delete_managed_user"
407
407
  end
408
408
  # resource path
409
409
  local_var_path = '/managed-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -423,13 +423,13 @@ module ApiSdkRb
423
423
  post_body = opts[:debug_body]
424
424
 
425
425
  # return_type
426
- return_type = opts[:debug_return_type] || 'DeleteManagedUser200Response'
426
+ return_type = opts[:debug_return_type] || 'ManagedUserRemovalResponse'
427
427
 
428
428
  # auth_names
429
429
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
430
430
 
431
431
  new_options = opts.merge(
432
- :operation => :"ManagedUsersApi.delete_managed_user_0",
432
+ :operation => :"ManagedUsersApi.delete_managed_user",
433
433
  :header_params => header_params,
434
434
  :query_params => query_params,
435
435
  :form_params => form_params,
@@ -440,7 +440,7 @@ module ApiSdkRb
440
440
 
441
441
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
442
442
  if @api_client.config.debugging
443
- @api_client.config.logger.debug "API called: ManagedUsersApi#delete_managed_user_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
443
+ @api_client.config.logger.debug "API called: ManagedUsersApi#delete_managed_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
444
444
  end
445
445
  return data, status_code, headers
446
446
  end
@@ -452,8 +452,8 @@ module ApiSdkRb
452
452
  # @option opts [Integer] :size Number of items per page (default to 10)
453
453
  # @option opts [String] :sort Sort field and direction, &#x60;&lt;field&gt;:&lt;asc|desc&gt;&#x60;. The field is &#x60;createdAt&#x60;, &#x60;updatedAt&#x60; or &#x60;externalId&#x60; (the snake_case spellings &#x60;created_at&#x60;, &#x60;updated_at&#x60; and &#x60;external_id&#x60; work too); &#x60;asc&#x60; or &#x60;desc&#x60; alone sorts by &#x60;createdAt&#x60;. Any other field is a 400. (default to 'createdAt:desc')
454
454
  # @return [GetAllManagedUsers200Response]
455
- def get_all_managed_users_0(opts = {})
456
- data, _status_code, _headers = get_all_managed_users_0_with_http_info(opts)
455
+ def get_all_managed_users(opts = {})
456
+ data, _status_code, _headers = get_all_managed_users_with_http_info(opts)
457
457
  data
458
458
  end
459
459
 
@@ -464,20 +464,20 @@ module ApiSdkRb
464
464
  # @option opts [Integer] :size Number of items per page (default to 10)
465
465
  # @option opts [String] :sort Sort field and direction, &#x60;&lt;field&gt;:&lt;asc|desc&gt;&#x60;. The field is &#x60;createdAt&#x60;, &#x60;updatedAt&#x60; or &#x60;externalId&#x60; (the snake_case spellings &#x60;created_at&#x60;, &#x60;updated_at&#x60; and &#x60;external_id&#x60; work too); &#x60;asc&#x60; or &#x60;desc&#x60; alone sorts by &#x60;createdAt&#x60;. Any other field is a 400. (default to 'createdAt:desc')
466
466
  # @return [Array<(GetAllManagedUsers200Response, Integer, Hash)>] GetAllManagedUsers200Response data, response status code and response headers
467
- def get_all_managed_users_0_with_http_info(opts = {})
467
+ def get_all_managed_users_with_http_info(opts = {})
468
468
  if @api_client.config.debugging
469
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_all_managed_users_0 ...'
469
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_all_managed_users ...'
470
470
  end
471
471
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
472
- fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ManagedUsersApi.get_all_managed_users_0, must be greater than or equal to 1.'
472
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ManagedUsersApi.get_all_managed_users, must be greater than or equal to 1.'
473
473
  end
474
474
 
475
475
  if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
476
- fail ArgumentError, 'invalid value for "opts[:"size"]" when calling ManagedUsersApi.get_all_managed_users_0, must be smaller than or equal to 100.'
476
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling ManagedUsersApi.get_all_managed_users, must be smaller than or equal to 100.'
477
477
  end
478
478
 
479
479
  if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] < 1
480
- fail ArgumentError, 'invalid value for "opts[:"size"]" when calling ManagedUsersApi.get_all_managed_users_0, must be greater than or equal to 1.'
480
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling ManagedUsersApi.get_all_managed_users, must be greater than or equal to 1.'
481
481
  end
482
482
 
483
483
  # resource path
@@ -507,7 +507,7 @@ module ApiSdkRb
507
507
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
508
508
 
509
509
  new_options = opts.merge(
510
- :operation => :"ManagedUsersApi.get_all_managed_users_0",
510
+ :operation => :"ManagedUsersApi.get_all_managed_users",
511
511
  :header_params => header_params,
512
512
  :query_params => query_params,
513
513
  :form_params => form_params,
@@ -518,7 +518,7 @@ module ApiSdkRb
518
518
 
519
519
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
520
520
  if @api_client.config.debugging
521
- @api_client.config.logger.debug "API called: ManagedUsersApi#get_all_managed_users_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
521
+ @api_client.config.logger.debug "API called: ManagedUsersApi#get_all_managed_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
522
522
  end
523
523
  return data, status_code, headers
524
524
  end
@@ -528,8 +528,8 @@ module ApiSdkRb
528
528
  # @param id [String] ID of the managed user to retrieve
529
529
  # @param [Hash] opts the optional parameters
530
530
  # @return [ManagedUserResponse]
531
- def get_managed_user_by_id_0(id, opts = {})
532
- data, _status_code, _headers = get_managed_user_by_id_0_with_http_info(id, opts)
531
+ def get_managed_user_by_id(id, opts = {})
532
+ data, _status_code, _headers = get_managed_user_by_id_with_http_info(id, opts)
533
533
  data
534
534
  end
535
535
 
@@ -538,13 +538,13 @@ module ApiSdkRb
538
538
  # @param id [String] ID of the managed user to retrieve
539
539
  # @param [Hash] opts the optional parameters
540
540
  # @return [Array<(ManagedUserResponse, Integer, Hash)>] ManagedUserResponse data, response status code and response headers
541
- def get_managed_user_by_id_0_with_http_info(id, opts = {})
541
+ def get_managed_user_by_id_with_http_info(id, opts = {})
542
542
  if @api_client.config.debugging
543
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_user_by_id_0 ...'
543
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_user_by_id ...'
544
544
  end
545
545
  # verify the required parameter 'id' is set
546
546
  if @api_client.config.client_side_validation && id.nil?
547
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.get_managed_user_by_id_0"
547
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.get_managed_user_by_id"
548
548
  end
549
549
  # resource path
550
550
  local_var_path = '/managed-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -570,7 +570,7 @@ module ApiSdkRb
570
570
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
571
571
 
572
572
  new_options = opts.merge(
573
- :operation => :"ManagedUsersApi.get_managed_user_by_id_0",
573
+ :operation => :"ManagedUsersApi.get_managed_user_by_id",
574
574
  :header_params => header_params,
575
575
  :query_params => query_params,
576
576
  :form_params => form_params,
@@ -581,7 +581,7 @@ module ApiSdkRb
581
581
 
582
582
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
583
583
  if @api_client.config.debugging
584
- @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_user_by_id_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
584
+ @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_user_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
585
585
  end
586
586
  return data, status_code, headers
587
587
  end
@@ -589,23 +589,23 @@ module ApiSdkRb
589
589
  # Read design defaults for one managed user
590
590
  # @param id [String]
591
591
  # @param [Hash] opts the optional parameters
592
- # @return [GetPartnerDesignDefaults200Response]
593
- def get_managed_user_design_defaults_0(id, opts = {})
594
- data, _status_code, _headers = get_managed_user_design_defaults_0_with_http_info(id, opts)
592
+ # @return [DesignDefaultsResponse]
593
+ def get_managed_user_design_defaults(id, opts = {})
594
+ data, _status_code, _headers = get_managed_user_design_defaults_with_http_info(id, opts)
595
595
  data
596
596
  end
597
597
 
598
598
  # Read design defaults for one managed user
599
599
  # @param id [String]
600
600
  # @param [Hash] opts the optional parameters
601
- # @return [Array<(GetPartnerDesignDefaults200Response, Integer, Hash)>] GetPartnerDesignDefaults200Response data, response status code and response headers
602
- def get_managed_user_design_defaults_0_with_http_info(id, opts = {})
601
+ # @return [Array<(DesignDefaultsResponse, Integer, Hash)>] DesignDefaultsResponse data, response status code and response headers
602
+ def get_managed_user_design_defaults_with_http_info(id, opts = {})
603
603
  if @api_client.config.debugging
604
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_user_design_defaults_0 ...'
604
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_user_design_defaults ...'
605
605
  end
606
606
  # verify the required parameter 'id' is set
607
607
  if @api_client.config.client_side_validation && id.nil?
608
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.get_managed_user_design_defaults_0"
608
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.get_managed_user_design_defaults"
609
609
  end
610
610
  # resource path
611
611
  local_var_path = '/managed-users/{id}/design-defaults'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -625,13 +625,13 @@ module ApiSdkRb
625
625
  post_body = opts[:debug_body]
626
626
 
627
627
  # return_type
628
- return_type = opts[:debug_return_type] || 'GetPartnerDesignDefaults200Response'
628
+ return_type = opts[:debug_return_type] || 'DesignDefaultsResponse'
629
629
 
630
630
  # auth_names
631
631
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
632
632
 
633
633
  new_options = opts.merge(
634
- :operation => :"ManagedUsersApi.get_managed_user_design_defaults_0",
634
+ :operation => :"ManagedUsersApi.get_managed_user_design_defaults",
635
635
  :header_params => header_params,
636
636
  :query_params => query_params,
637
637
  :form_params => form_params,
@@ -642,7 +642,7 @@ module ApiSdkRb
642
642
 
643
643
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
644
644
  if @api_client.config.debugging
645
- @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_user_design_defaults_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
645
+ @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_user_design_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
646
646
  end
647
647
  return data, status_code, headers
648
648
  end
@@ -650,23 +650,23 @@ module ApiSdkRb
650
650
  # Read monthly credit cap and usage for one managed user
651
651
  # @param id [String]
652
652
  # @param [Hash] opts the optional parameters
653
- # @return [GetManagedUserLimits200Response]
654
- def get_managed_user_limits_0(id, opts = {})
655
- data, _status_code, _headers = get_managed_user_limits_0_with_http_info(id, opts)
653
+ # @return [ManagedUserLimitsResponse]
654
+ def get_managed_user_limits(id, opts = {})
655
+ data, _status_code, _headers = get_managed_user_limits_with_http_info(id, opts)
656
656
  data
657
657
  end
658
658
 
659
659
  # Read monthly credit cap and usage for one managed user
660
660
  # @param id [String]
661
661
  # @param [Hash] opts the optional parameters
662
- # @return [Array<(GetManagedUserLimits200Response, Integer, Hash)>] GetManagedUserLimits200Response data, response status code and response headers
663
- def get_managed_user_limits_0_with_http_info(id, opts = {})
662
+ # @return [Array<(ManagedUserLimitsResponse, Integer, Hash)>] ManagedUserLimitsResponse data, response status code and response headers
663
+ def get_managed_user_limits_with_http_info(id, opts = {})
664
664
  if @api_client.config.debugging
665
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_user_limits_0 ...'
665
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_user_limits ...'
666
666
  end
667
667
  # verify the required parameter 'id' is set
668
668
  if @api_client.config.client_side_validation && id.nil?
669
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.get_managed_user_limits_0"
669
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.get_managed_user_limits"
670
670
  end
671
671
  # resource path
672
672
  local_var_path = '/managed-users/{id}/limits'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -686,13 +686,13 @@ module ApiSdkRb
686
686
  post_body = opts[:debug_body]
687
687
 
688
688
  # return_type
689
- return_type = opts[:debug_return_type] || 'GetManagedUserLimits200Response'
689
+ return_type = opts[:debug_return_type] || 'ManagedUserLimitsResponse'
690
690
 
691
691
  # auth_names
692
692
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
693
693
 
694
694
  new_options = opts.merge(
695
- :operation => :"ManagedUsersApi.get_managed_user_limits_0",
695
+ :operation => :"ManagedUsersApi.get_managed_user_limits",
696
696
  :header_params => header_params,
697
697
  :query_params => query_params,
698
698
  :form_params => form_params,
@@ -703,7 +703,7 @@ module ApiSdkRb
703
703
 
704
704
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
705
705
  if @api_client.config.debugging
706
- @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_user_limits_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
706
+ @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_user_limits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
707
707
  end
708
708
  return data, status_code, headers
709
709
  end
@@ -712,8 +712,8 @@ module ApiSdkRb
712
712
  # @param id [String]
713
713
  # @param [Hash] opts the optional parameters
714
714
  # @return [GetManagedUserStorageUsage200Response]
715
- def get_managed_user_storage_usage_0(id, opts = {})
716
- data, _status_code, _headers = get_managed_user_storage_usage_0_with_http_info(id, opts)
715
+ def get_managed_user_storage_usage(id, opts = {})
716
+ data, _status_code, _headers = get_managed_user_storage_usage_with_http_info(id, opts)
717
717
  data
718
718
  end
719
719
 
@@ -721,13 +721,13 @@ module ApiSdkRb
721
721
  # @param id [String]
722
722
  # @param [Hash] opts the optional parameters
723
723
  # @return [Array<(GetManagedUserStorageUsage200Response, Integer, Hash)>] GetManagedUserStorageUsage200Response data, response status code and response headers
724
- def get_managed_user_storage_usage_0_with_http_info(id, opts = {})
724
+ def get_managed_user_storage_usage_with_http_info(id, opts = {})
725
725
  if @api_client.config.debugging
726
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_user_storage_usage_0 ...'
726
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_user_storage_usage ...'
727
727
  end
728
728
  # verify the required parameter 'id' is set
729
729
  if @api_client.config.client_side_validation && id.nil?
730
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.get_managed_user_storage_usage_0"
730
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.get_managed_user_storage_usage"
731
731
  end
732
732
  # resource path
733
733
  local_var_path = '/managed-users/{id}/storage-usage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -753,7 +753,7 @@ module ApiSdkRb
753
753
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
754
754
 
755
755
  new_options = opts.merge(
756
- :operation => :"ManagedUsersApi.get_managed_user_storage_usage_0",
756
+ :operation => :"ManagedUsersApi.get_managed_user_storage_usage",
757
757
  :header_params => header_params,
758
758
  :query_params => query_params,
759
759
  :form_params => form_params,
@@ -764,7 +764,7 @@ module ApiSdkRb
764
764
 
765
765
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
766
766
  if @api_client.config.debugging
767
- @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_user_storage_usage_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
767
+ @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_user_storage_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
768
768
  end
769
769
  return data, status_code, headers
770
770
  end
@@ -776,8 +776,8 @@ module ApiSdkRb
776
776
  # @option opts [String] :start_date Start of the period, included: an ISO 8601 date (&#x60;2026-10-01&#x60;) or date-time with its offset (&#x60;2026-10-01T08:00:00Z&#x60;). Default: 30 days before &#x60;endDate&#x60;.
777
777
  # @option opts [String] :end_date End of the period, not included, in the same forms. Default: now. It must be after &#x60;startDate&#x60;, by at most 366 days.
778
778
  # @return [ManagedUserUsageResponse]
779
- def get_managed_user_usage_0(id, opts = {})
780
- data, _status_code, _headers = get_managed_user_usage_0_with_http_info(id, opts)
779
+ def get_managed_user_usage(id, opts = {})
780
+ data, _status_code, _headers = get_managed_user_usage_with_http_info(id, opts)
781
781
  data
782
782
  end
783
783
 
@@ -788,13 +788,13 @@ module ApiSdkRb
788
788
  # @option opts [String] :start_date Start of the period, included: an ISO 8601 date (&#x60;2026-10-01&#x60;) or date-time with its offset (&#x60;2026-10-01T08:00:00Z&#x60;). Default: 30 days before &#x60;endDate&#x60;.
789
789
  # @option opts [String] :end_date End of the period, not included, in the same forms. Default: now. It must be after &#x60;startDate&#x60;, by at most 366 days.
790
790
  # @return [Array<(ManagedUserUsageResponse, Integer, Hash)>] ManagedUserUsageResponse data, response status code and response headers
791
- def get_managed_user_usage_0_with_http_info(id, opts = {})
791
+ def get_managed_user_usage_with_http_info(id, opts = {})
792
792
  if @api_client.config.debugging
793
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_user_usage_0 ...'
793
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_user_usage ...'
794
794
  end
795
795
  # verify the required parameter 'id' is set
796
796
  if @api_client.config.client_side_validation && id.nil?
797
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.get_managed_user_usage_0"
797
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.get_managed_user_usage"
798
798
  end
799
799
  # resource path
800
800
  local_var_path = '/managed-users/{id}/usage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -822,7 +822,7 @@ module ApiSdkRb
822
822
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
823
823
 
824
824
  new_options = opts.merge(
825
- :operation => :"ManagedUsersApi.get_managed_user_usage_0",
825
+ :operation => :"ManagedUsersApi.get_managed_user_usage",
826
826
  :header_params => header_params,
827
827
  :query_params => query_params,
828
828
  :form_params => form_params,
@@ -833,7 +833,7 @@ module ApiSdkRb
833
833
 
834
834
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
835
835
  if @api_client.config.debugging
836
- @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_user_usage_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
836
+ @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_user_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
837
837
  end
838
838
  return data, status_code, headers
839
839
  end
@@ -846,8 +846,8 @@ module ApiSdkRb
846
846
  # @option opts [Integer] :size Number of items per page (default to 10)
847
847
  # @option opts [String] :sort Sort field and direction, &#x60;&lt;field&gt;:&lt;asc|desc&gt;&#x60;. The field is &#x60;createdAt&#x60;, &#x60;updatedAt&#x60; or &#x60;externalId&#x60; (the snake_case spellings &#x60;created_at&#x60;, &#x60;updated_at&#x60; and &#x60;external_id&#x60; work too); &#x60;asc&#x60; or &#x60;desc&#x60; alone sorts by &#x60;createdAt&#x60;. Any other field is a 400. (default to 'createdAt:desc')
848
848
  # @return [GetManagedUsersByManagerIdResponse]
849
- def get_managed_users_by_manager_id_0(manager_id, opts = {})
850
- data, _status_code, _headers = get_managed_users_by_manager_id_0_with_http_info(manager_id, opts)
849
+ def get_managed_users_by_manager_id(manager_id, opts = {})
850
+ data, _status_code, _headers = get_managed_users_by_manager_id_with_http_info(manager_id, opts)
851
851
  data
852
852
  end
853
853
 
@@ -859,24 +859,24 @@ module ApiSdkRb
859
859
  # @option opts [Integer] :size Number of items per page (default to 10)
860
860
  # @option opts [String] :sort Sort field and direction, &#x60;&lt;field&gt;:&lt;asc|desc&gt;&#x60;. The field is &#x60;createdAt&#x60;, &#x60;updatedAt&#x60; or &#x60;externalId&#x60; (the snake_case spellings &#x60;created_at&#x60;, &#x60;updated_at&#x60; and &#x60;external_id&#x60; work too); &#x60;asc&#x60; or &#x60;desc&#x60; alone sorts by &#x60;createdAt&#x60;. Any other field is a 400. (default to 'createdAt:desc')
861
861
  # @return [Array<(GetManagedUsersByManagerIdResponse, Integer, Hash)>] GetManagedUsersByManagerIdResponse data, response status code and response headers
862
- def get_managed_users_by_manager_id_0_with_http_info(manager_id, opts = {})
862
+ def get_managed_users_by_manager_id_with_http_info(manager_id, opts = {})
863
863
  if @api_client.config.debugging
864
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_users_by_manager_id_0 ...'
864
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.get_managed_users_by_manager_id ...'
865
865
  end
866
866
  # verify the required parameter 'manager_id' is set
867
867
  if @api_client.config.client_side_validation && manager_id.nil?
868
- fail ArgumentError, "Missing the required parameter 'manager_id' when calling ManagedUsersApi.get_managed_users_by_manager_id_0"
868
+ fail ArgumentError, "Missing the required parameter 'manager_id' when calling ManagedUsersApi.get_managed_users_by_manager_id"
869
869
  end
870
870
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
871
- fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ManagedUsersApi.get_managed_users_by_manager_id_0, must be greater than or equal to 1.'
871
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ManagedUsersApi.get_managed_users_by_manager_id, must be greater than or equal to 1.'
872
872
  end
873
873
 
874
874
  if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
875
- fail ArgumentError, 'invalid value for "opts[:"size"]" when calling ManagedUsersApi.get_managed_users_by_manager_id_0, must be smaller than or equal to 100.'
875
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling ManagedUsersApi.get_managed_users_by_manager_id, must be smaller than or equal to 100.'
876
876
  end
877
877
 
878
878
  if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] < 1
879
- fail ArgumentError, 'invalid value for "opts[:"size"]" when calling ManagedUsersApi.get_managed_users_by_manager_id_0, must be greater than or equal to 1.'
879
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling ManagedUsersApi.get_managed_users_by_manager_id, must be greater than or equal to 1.'
880
880
  end
881
881
 
882
882
  # resource path
@@ -906,7 +906,7 @@ module ApiSdkRb
906
906
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
907
907
 
908
908
  new_options = opts.merge(
909
- :operation => :"ManagedUsersApi.get_managed_users_by_manager_id_0",
909
+ :operation => :"ManagedUsersApi.get_managed_users_by_manager_id",
910
910
  :header_params => header_params,
911
911
  :query_params => query_params,
912
912
  :form_params => form_params,
@@ -917,7 +917,113 @@ module ApiSdkRb
917
917
 
918
918
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
919
919
  if @api_client.config.debugging
920
- @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_users_by_manager_id_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
920
+ @api_client.config.logger.debug "API called: ManagedUsersApi#get_managed_users_by_manager_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
921
+ end
922
+ return data, status_code, headers
923
+ end
924
+
925
+ # List entries across a managed user's compositions
926
+ # Merges eligible tables (time and id columns) across the managed user's compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 30 requests per minute.
927
+ # @param id [String]
928
+ # @param [Hash] opts the optional parameters
929
+ # @option opts [String] :composition_id
930
+ # @option opts [String] :table
931
+ # @option opts [Integer] :limit (default to 25)
932
+ # @option opts [String] :order &#x60;desc&#x60; (the default) lists the newest entry first, &#x60;asc&#x60; the oldest. Entries are sorted by their time, then by their id (compared as text, byte by byte) in the same direction, so the order of two entries made at the same instant is always the same; an entry with no time counts as the oldest. A table with no time column is sorted by its id. The managed-user feed sorts by time, then by composition id, table and id. (default to 'desc')
933
+ # @option opts [Time] :since Only entries made at this time or later: &#x60;since&#x60; is INCLUSIVE (an entry made at exactly &#x60;since&#x60; is returned). A date and time with an offset, such as &#x60;2026-10-01T00:00:00Z&#x60;; anything else answers 400 &#x60;INVALID_SINCE&#x60;. An entry with no time never matches, and a table with no time column answers 400 &#x60;ENTRY_TABLE_HAS_NO_TIME&#x60;.
934
+ # @option opts [Time] :_until Only entries made before this time: &#x60;until&#x60; is EXCLUSIVE (an entry made at exactly &#x60;until&#x60; is NOT returned), so &#x60;since&#x3D;A&amp;until&#x3D;B&#x60; followed by &#x60;since&#x3D;B&amp;until&#x3D;C&#x60; counts every entry once. Same form and same refusals as &#x60;since&#x60; (400 &#x60;INVALID_UNTIL&#x60;).
935
+ # @option opts [String] :cursor
936
+ # @option opts [Hash<String, String>] :context Host context filters as &#x60;context[key]&#x3D;value&#x60; (max 5 keys, counting dotted &#x60;context.key&#x60; too). Use &#x60;column.&lt;name&gt;&#x3D;value&#x60; for columns whose names collide with reserved parameters.
937
+ # @option opts [Hash<String, String>] :filter Column filters as &#x60;filter[columnName]&#x3D;value&#x60; (same meaning as bare &#x60;columnName&#x3D;value&#x60; or &#x60;column.columnName&#x3D;value&#x60;; max 10 column filters counting all spellings). A plain &#x60;filter&#x3D;value&#x60; still filters a column named &#x60;filter&#x60;.
938
+ # @return [ManagedUserEntriesPageSuccess]
939
+ def list_managed_user_entries(id, opts = {})
940
+ data, _status_code, _headers = list_managed_user_entries_with_http_info(id, opts)
941
+ data
942
+ end
943
+
944
+ # List entries across a managed user&#39;s compositions
945
+ # Merges eligible tables (time and id columns) across the managed user&#39;s compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 30 requests per minute.
946
+ # @param id [String]
947
+ # @param [Hash] opts the optional parameters
948
+ # @option opts [String] :composition_id
949
+ # @option opts [String] :table
950
+ # @option opts [Integer] :limit (default to 25)
951
+ # @option opts [String] :order &#x60;desc&#x60; (the default) lists the newest entry first, &#x60;asc&#x60; the oldest. Entries are sorted by their time, then by their id (compared as text, byte by byte) in the same direction, so the order of two entries made at the same instant is always the same; an entry with no time counts as the oldest. A table with no time column is sorted by its id. The managed-user feed sorts by time, then by composition id, table and id. (default to 'desc')
952
+ # @option opts [Time] :since Only entries made at this time or later: &#x60;since&#x60; is INCLUSIVE (an entry made at exactly &#x60;since&#x60; is returned). A date and time with an offset, such as &#x60;2026-10-01T00:00:00Z&#x60;; anything else answers 400 &#x60;INVALID_SINCE&#x60;. An entry with no time never matches, and a table with no time column answers 400 &#x60;ENTRY_TABLE_HAS_NO_TIME&#x60;.
953
+ # @option opts [Time] :_until Only entries made before this time: &#x60;until&#x60; is EXCLUSIVE (an entry made at exactly &#x60;until&#x60; is NOT returned), so &#x60;since&#x3D;A&amp;until&#x3D;B&#x60; followed by &#x60;since&#x3D;B&amp;until&#x3D;C&#x60; counts every entry once. Same form and same refusals as &#x60;since&#x60; (400 &#x60;INVALID_UNTIL&#x60;).
954
+ # @option opts [String] :cursor
955
+ # @option opts [Hash<String, String>] :context Host context filters as &#x60;context[key]&#x3D;value&#x60; (max 5 keys, counting dotted &#x60;context.key&#x60; too). Use &#x60;column.&lt;name&gt;&#x3D;value&#x60; for columns whose names collide with reserved parameters.
956
+ # @option opts [Hash<String, String>] :filter Column filters as &#x60;filter[columnName]&#x3D;value&#x60; (same meaning as bare &#x60;columnName&#x3D;value&#x60; or &#x60;column.columnName&#x3D;value&#x60;; max 10 column filters counting all spellings). A plain &#x60;filter&#x3D;value&#x60; still filters a column named &#x60;filter&#x60;.
957
+ # @return [Array<(ManagedUserEntriesPageSuccess, Integer, Hash)>] ManagedUserEntriesPageSuccess data, response status code and response headers
958
+ def list_managed_user_entries_with_http_info(id, opts = {})
959
+ if @api_client.config.debugging
960
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.list_managed_user_entries ...'
961
+ end
962
+ # verify the required parameter 'id' is set
963
+ if @api_client.config.client_side_validation && id.nil?
964
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.list_managed_user_entries"
965
+ end
966
+ if @api_client.config.client_side_validation && !opts[:'table'].nil? && opts[:'table'].to_s.length > 63
967
+ fail ArgumentError, 'invalid value for "opts[:"table"]" when calling ManagedUsersApi.list_managed_user_entries, the character length must be smaller than or equal to 63.'
968
+ end
969
+
970
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
971
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ManagedUsersApi.list_managed_user_entries, must be smaller than or equal to 100.'
972
+ end
973
+
974
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
975
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ManagedUsersApi.list_managed_user_entries, must be greater than or equal to 1.'
976
+ end
977
+
978
+ allowable_values = ["asc", "desc"]
979
+ if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order'])
980
+ fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
981
+ end
982
+ # resource path
983
+ local_var_path = '/managed-users/{id}/entries'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
984
+
985
+ # query parameters
986
+ query_params = opts[:query_params] || {}
987
+ query_params[:'compositionId'] = opts[:'composition_id'] if !opts[:'composition_id'].nil?
988
+ query_params[:'table'] = opts[:'table'] if !opts[:'table'].nil?
989
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
990
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
991
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
992
+ query_params[:'until'] = opts[:'_until'] if !opts[:'_until'].nil?
993
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
994
+ query_params[:'context'] = opts[:'context'] if !opts[:'context'].nil?
995
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
996
+
997
+ # header parameters
998
+ header_params = opts[:header_params] || {}
999
+ # HTTP header 'Accept' (if needed)
1000
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1001
+
1002
+ # form parameters
1003
+ form_params = opts[:form_params] || {}
1004
+
1005
+ # http body (model)
1006
+ post_body = opts[:debug_body]
1007
+
1008
+ # return_type
1009
+ return_type = opts[:debug_return_type] || 'ManagedUserEntriesPageSuccess'
1010
+
1011
+ # auth_names
1012
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1013
+
1014
+ new_options = opts.merge(
1015
+ :operation => :"ManagedUsersApi.list_managed_user_entries",
1016
+ :header_params => header_params,
1017
+ :query_params => query_params,
1018
+ :form_params => form_params,
1019
+ :body => post_body,
1020
+ :auth_names => auth_names,
1021
+ :return_type => return_type
1022
+ )
1023
+
1024
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1025
+ if @api_client.config.debugging
1026
+ @api_client.config.logger.debug "API called: ManagedUsersApi#list_managed_user_entries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
921
1027
  end
922
1028
  return data, status_code, headers
923
1029
  end
@@ -927,9 +1033,9 @@ module ApiSdkRb
927
1033
  # @param id [String] The managed user the session is for
928
1034
  # @param session_id [String] The &#x60;sessionId&#x60; of the session, from &#x60;createManagedUserEditorSession&#x60;
929
1035
  # @param [Hash] opts the optional parameters
930
- # @return [DeleteManagedUser200Response]
931
- def revoke_managed_user_editor_session_0(id, session_id, opts = {})
932
- data, _status_code, _headers = revoke_managed_user_editor_session_0_with_http_info(id, session_id, opts)
1036
+ # @return [ManagedUserRemovalResponse]
1037
+ def revoke_managed_user_editor_session(id, session_id, opts = {})
1038
+ data, _status_code, _headers = revoke_managed_user_editor_session_with_http_info(id, session_id, opts)
933
1039
  data
934
1040
  end
935
1041
 
@@ -938,18 +1044,18 @@ module ApiSdkRb
938
1044
  # @param id [String] The managed user the session is for
939
1045
  # @param session_id [String] The &#x60;sessionId&#x60; of the session, from &#x60;createManagedUserEditorSession&#x60;
940
1046
  # @param [Hash] opts the optional parameters
941
- # @return [Array<(DeleteManagedUser200Response, Integer, Hash)>] DeleteManagedUser200Response data, response status code and response headers
942
- def revoke_managed_user_editor_session_0_with_http_info(id, session_id, opts = {})
1047
+ # @return [Array<(ManagedUserRemovalResponse, Integer, Hash)>] ManagedUserRemovalResponse data, response status code and response headers
1048
+ def revoke_managed_user_editor_session_with_http_info(id, session_id, opts = {})
943
1049
  if @api_client.config.debugging
944
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.revoke_managed_user_editor_session_0 ...'
1050
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.revoke_managed_user_editor_session ...'
945
1051
  end
946
1052
  # verify the required parameter 'id' is set
947
1053
  if @api_client.config.client_side_validation && id.nil?
948
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.revoke_managed_user_editor_session_0"
1054
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.revoke_managed_user_editor_session"
949
1055
  end
950
1056
  # verify the required parameter 'session_id' is set
951
1057
  if @api_client.config.client_side_validation && session_id.nil?
952
- fail ArgumentError, "Missing the required parameter 'session_id' when calling ManagedUsersApi.revoke_managed_user_editor_session_0"
1058
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling ManagedUsersApi.revoke_managed_user_editor_session"
953
1059
  end
954
1060
  # resource path
955
1061
  local_var_path = '/managed-users/{id}/editor-sessions/{sessionId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
@@ -969,13 +1075,13 @@ module ApiSdkRb
969
1075
  post_body = opts[:debug_body]
970
1076
 
971
1077
  # return_type
972
- return_type = opts[:debug_return_type] || 'DeleteManagedUser200Response'
1078
+ return_type = opts[:debug_return_type] || 'ManagedUserRemovalResponse'
973
1079
 
974
1080
  # auth_names
975
1081
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
976
1082
 
977
1083
  new_options = opts.merge(
978
- :operation => :"ManagedUsersApi.revoke_managed_user_editor_session_0",
1084
+ :operation => :"ManagedUsersApi.revoke_managed_user_editor_session",
979
1085
  :header_params => header_params,
980
1086
  :query_params => query_params,
981
1087
  :form_params => form_params,
@@ -986,7 +1092,7 @@ module ApiSdkRb
986
1092
 
987
1093
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
988
1094
  if @api_client.config.debugging
989
- @api_client.config.logger.debug "API called: ManagedUsersApi#revoke_managed_user_editor_session_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1095
+ @api_client.config.logger.debug "API called: ManagedUsersApi#revoke_managed_user_editor_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
990
1096
  end
991
1097
  return data, status_code, headers
992
1098
  end
@@ -996,8 +1102,8 @@ module ApiSdkRb
996
1102
  # @param id [String] The managed user whose sessions end
997
1103
  # @param [Hash] opts the optional parameters
998
1104
  # @return [RevokeManagedUserEditorSessionsResponse]
999
- def revoke_managed_user_editor_sessions_0(id, opts = {})
1000
- data, _status_code, _headers = revoke_managed_user_editor_sessions_0_with_http_info(id, opts)
1105
+ def revoke_managed_user_editor_sessions(id, opts = {})
1106
+ data, _status_code, _headers = revoke_managed_user_editor_sessions_with_http_info(id, opts)
1001
1107
  data
1002
1108
  end
1003
1109
 
@@ -1006,13 +1112,13 @@ module ApiSdkRb
1006
1112
  # @param id [String] The managed user whose sessions end
1007
1113
  # @param [Hash] opts the optional parameters
1008
1114
  # @return [Array<(RevokeManagedUserEditorSessionsResponse, Integer, Hash)>] RevokeManagedUserEditorSessionsResponse data, response status code and response headers
1009
- def revoke_managed_user_editor_sessions_0_with_http_info(id, opts = {})
1115
+ def revoke_managed_user_editor_sessions_with_http_info(id, opts = {})
1010
1116
  if @api_client.config.debugging
1011
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.revoke_managed_user_editor_sessions_0 ...'
1117
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.revoke_managed_user_editor_sessions ...'
1012
1118
  end
1013
1119
  # verify the required parameter 'id' is set
1014
1120
  if @api_client.config.client_side_validation && id.nil?
1015
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.revoke_managed_user_editor_sessions_0"
1121
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.revoke_managed_user_editor_sessions"
1016
1122
  end
1017
1123
  # resource path
1018
1124
  local_var_path = '/managed-users/{id}/editor-sessions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -1038,7 +1144,7 @@ module ApiSdkRb
1038
1144
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1039
1145
 
1040
1146
  new_options = opts.merge(
1041
- :operation => :"ManagedUsersApi.revoke_managed_user_editor_sessions_0",
1147
+ :operation => :"ManagedUsersApi.revoke_managed_user_editor_sessions",
1042
1148
  :header_params => header_params,
1043
1149
  :query_params => query_params,
1044
1150
  :form_params => form_params,
@@ -1049,7 +1155,7 @@ module ApiSdkRb
1049
1155
 
1050
1156
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1051
1157
  if @api_client.config.debugging
1052
- @api_client.config.logger.debug "API called: ManagedUsersApi#revoke_managed_user_editor_sessions_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1158
+ @api_client.config.logger.debug "API called: ManagedUsersApi#revoke_managed_user_editor_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1053
1159
  end
1054
1160
  return data, status_code, headers
1055
1161
  end
@@ -1059,9 +1165,9 @@ module ApiSdkRb
1059
1165
  # @param id [String]
1060
1166
  # @param set_partner_design_defaults_request [SetPartnerDesignDefaultsRequest]
1061
1167
  # @param [Hash] opts the optional parameters
1062
- # @return [GetPartnerDesignDefaults200Response]
1063
- def set_managed_user_design_defaults_0(id, set_partner_design_defaults_request, opts = {})
1064
- data, _status_code, _headers = set_managed_user_design_defaults_0_with_http_info(id, set_partner_design_defaults_request, opts)
1168
+ # @return [DesignDefaultsResponse]
1169
+ def set_managed_user_design_defaults(id, set_partner_design_defaults_request, opts = {})
1170
+ data, _status_code, _headers = set_managed_user_design_defaults_with_http_info(id, set_partner_design_defaults_request, opts)
1065
1171
  data
1066
1172
  end
1067
1173
 
@@ -1070,18 +1176,18 @@ module ApiSdkRb
1070
1176
  # @param id [String]
1071
1177
  # @param set_partner_design_defaults_request [SetPartnerDesignDefaultsRequest]
1072
1178
  # @param [Hash] opts the optional parameters
1073
- # @return [Array<(GetPartnerDesignDefaults200Response, Integer, Hash)>] GetPartnerDesignDefaults200Response data, response status code and response headers
1074
- def set_managed_user_design_defaults_0_with_http_info(id, set_partner_design_defaults_request, opts = {})
1179
+ # @return [Array<(DesignDefaultsResponse, Integer, Hash)>] DesignDefaultsResponse data, response status code and response headers
1180
+ def set_managed_user_design_defaults_with_http_info(id, set_partner_design_defaults_request, opts = {})
1075
1181
  if @api_client.config.debugging
1076
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.set_managed_user_design_defaults_0 ...'
1182
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.set_managed_user_design_defaults ...'
1077
1183
  end
1078
1184
  # verify the required parameter 'id' is set
1079
1185
  if @api_client.config.client_side_validation && id.nil?
1080
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.set_managed_user_design_defaults_0"
1186
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.set_managed_user_design_defaults"
1081
1187
  end
1082
1188
  # verify the required parameter 'set_partner_design_defaults_request' is set
1083
1189
  if @api_client.config.client_side_validation && set_partner_design_defaults_request.nil?
1084
- fail ArgumentError, "Missing the required parameter 'set_partner_design_defaults_request' when calling ManagedUsersApi.set_managed_user_design_defaults_0"
1190
+ fail ArgumentError, "Missing the required parameter 'set_partner_design_defaults_request' when calling ManagedUsersApi.set_managed_user_design_defaults"
1085
1191
  end
1086
1192
  # resource path
1087
1193
  local_var_path = '/managed-users/{id}/design-defaults'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -1106,13 +1212,13 @@ module ApiSdkRb
1106
1212
  post_body = opts[:debug_body] || @api_client.object_to_http_body(set_partner_design_defaults_request)
1107
1213
 
1108
1214
  # return_type
1109
- return_type = opts[:debug_return_type] || 'GetPartnerDesignDefaults200Response'
1215
+ return_type = opts[:debug_return_type] || 'DesignDefaultsResponse'
1110
1216
 
1111
1217
  # auth_names
1112
1218
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1113
1219
 
1114
1220
  new_options = opts.merge(
1115
- :operation => :"ManagedUsersApi.set_managed_user_design_defaults_0",
1221
+ :operation => :"ManagedUsersApi.set_managed_user_design_defaults",
1116
1222
  :header_params => header_params,
1117
1223
  :query_params => query_params,
1118
1224
  :form_params => form_params,
@@ -1123,7 +1229,7 @@ module ApiSdkRb
1123
1229
 
1124
1230
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1125
1231
  if @api_client.config.debugging
1126
- @api_client.config.logger.debug "API called: ManagedUsersApi#set_managed_user_design_defaults_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1232
+ @api_client.config.logger.debug "API called: ManagedUsersApi#set_managed_user_design_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1127
1233
  end
1128
1234
  return data, status_code, headers
1129
1235
  end
@@ -1133,9 +1239,9 @@ module ApiSdkRb
1133
1239
  # @param id [String]
1134
1240
  # @param set_managed_user_limits_request [SetManagedUserLimitsRequest]
1135
1241
  # @param [Hash] opts the optional parameters
1136
- # @return [GetManagedUserLimits200Response]
1137
- def set_managed_user_limits_0(id, set_managed_user_limits_request, opts = {})
1138
- data, _status_code, _headers = set_managed_user_limits_0_with_http_info(id, set_managed_user_limits_request, opts)
1242
+ # @return [ManagedUserLimitsResponse]
1243
+ def set_managed_user_limits(id, set_managed_user_limits_request, opts = {})
1244
+ data, _status_code, _headers = set_managed_user_limits_with_http_info(id, set_managed_user_limits_request, opts)
1139
1245
  data
1140
1246
  end
1141
1247
 
@@ -1144,18 +1250,18 @@ module ApiSdkRb
1144
1250
  # @param id [String]
1145
1251
  # @param set_managed_user_limits_request [SetManagedUserLimitsRequest]
1146
1252
  # @param [Hash] opts the optional parameters
1147
- # @return [Array<(GetManagedUserLimits200Response, Integer, Hash)>] GetManagedUserLimits200Response data, response status code and response headers
1148
- def set_managed_user_limits_0_with_http_info(id, set_managed_user_limits_request, opts = {})
1253
+ # @return [Array<(ManagedUserLimitsResponse, Integer, Hash)>] ManagedUserLimitsResponse data, response status code and response headers
1254
+ def set_managed_user_limits_with_http_info(id, set_managed_user_limits_request, opts = {})
1149
1255
  if @api_client.config.debugging
1150
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.set_managed_user_limits_0 ...'
1256
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.set_managed_user_limits ...'
1151
1257
  end
1152
1258
  # verify the required parameter 'id' is set
1153
1259
  if @api_client.config.client_side_validation && id.nil?
1154
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.set_managed_user_limits_0"
1260
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.set_managed_user_limits"
1155
1261
  end
1156
1262
  # verify the required parameter 'set_managed_user_limits_request' is set
1157
1263
  if @api_client.config.client_side_validation && set_managed_user_limits_request.nil?
1158
- fail ArgumentError, "Missing the required parameter 'set_managed_user_limits_request' when calling ManagedUsersApi.set_managed_user_limits_0"
1264
+ fail ArgumentError, "Missing the required parameter 'set_managed_user_limits_request' when calling ManagedUsersApi.set_managed_user_limits"
1159
1265
  end
1160
1266
  # resource path
1161
1267
  local_var_path = '/managed-users/{id}/limits'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -1180,13 +1286,13 @@ module ApiSdkRb
1180
1286
  post_body = opts[:debug_body] || @api_client.object_to_http_body(set_managed_user_limits_request)
1181
1287
 
1182
1288
  # return_type
1183
- return_type = opts[:debug_return_type] || 'GetManagedUserLimits200Response'
1289
+ return_type = opts[:debug_return_type] || 'ManagedUserLimitsResponse'
1184
1290
 
1185
1291
  # auth_names
1186
1292
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1187
1293
 
1188
1294
  new_options = opts.merge(
1189
- :operation => :"ManagedUsersApi.set_managed_user_limits_0",
1295
+ :operation => :"ManagedUsersApi.set_managed_user_limits",
1190
1296
  :header_params => header_params,
1191
1297
  :query_params => query_params,
1192
1298
  :form_params => form_params,
@@ -1197,7 +1303,7 @@ module ApiSdkRb
1197
1303
 
1198
1304
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1199
1305
  if @api_client.config.debugging
1200
- @api_client.config.logger.debug "API called: ManagedUsersApi#set_managed_user_limits_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1306
+ @api_client.config.logger.debug "API called: ManagedUsersApi#set_managed_user_limits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1201
1307
  end
1202
1308
  return data, status_code, headers
1203
1309
  end
@@ -1209,8 +1315,8 @@ module ApiSdkRb
1209
1315
  # @param update_managed_user [UpdateManagedUser]
1210
1316
  # @param [Hash] opts the optional parameters
1211
1317
  # @return [ManagedUserResponse]
1212
- def update_managed_user_0(id, idempotency_key, update_managed_user, opts = {})
1213
- data, _status_code, _headers = update_managed_user_0_with_http_info(id, idempotency_key, update_managed_user, opts)
1318
+ def update_managed_user(id, idempotency_key, update_managed_user, opts = {})
1319
+ data, _status_code, _headers = update_managed_user_with_http_info(id, idempotency_key, update_managed_user, opts)
1214
1320
  data
1215
1321
  end
1216
1322
 
@@ -1221,34 +1327,34 @@ module ApiSdkRb
1221
1327
  # @param update_managed_user [UpdateManagedUser]
1222
1328
  # @param [Hash] opts the optional parameters
1223
1329
  # @return [Array<(ManagedUserResponse, Integer, Hash)>] ManagedUserResponse data, response status code and response headers
1224
- def update_managed_user_0_with_http_info(id, idempotency_key, update_managed_user, opts = {})
1330
+ def update_managed_user_with_http_info(id, idempotency_key, update_managed_user, opts = {})
1225
1331
  if @api_client.config.debugging
1226
- @api_client.config.logger.debug 'Calling API: ManagedUsersApi.update_managed_user_0 ...'
1332
+ @api_client.config.logger.debug 'Calling API: ManagedUsersApi.update_managed_user ...'
1227
1333
  end
1228
1334
  # verify the required parameter 'id' is set
1229
1335
  if @api_client.config.client_side_validation && id.nil?
1230
- fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.update_managed_user_0"
1336
+ fail ArgumentError, "Missing the required parameter 'id' when calling ManagedUsersApi.update_managed_user"
1231
1337
  end
1232
1338
  # verify the required parameter 'idempotency_key' is set
1233
1339
  if @api_client.config.client_side_validation && idempotency_key.nil?
1234
- fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling ManagedUsersApi.update_managed_user_0"
1340
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling ManagedUsersApi.update_managed_user"
1235
1341
  end
1236
1342
  if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
1237
- fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.update_managed_user_0, the character length must be smaller than or equal to 50.'
1343
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.update_managed_user, the character length must be smaller than or equal to 50.'
1238
1344
  end
1239
1345
 
1240
1346
  if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
1241
- fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.update_managed_user_0, the character length must be great than or equal to 8.'
1347
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling ManagedUsersApi.update_managed_user, the character length must be great than or equal to 8.'
1242
1348
  end
1243
1349
 
1244
1350
  pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
1245
1351
  if @api_client.config.client_side_validation && idempotency_key !~ pattern
1246
- fail ArgumentError, "invalid value for 'idempotency_key' when calling ManagedUsersApi.update_managed_user_0, must conform to the pattern #{pattern}."
1352
+ fail ArgumentError, "invalid value for 'idempotency_key' when calling ManagedUsersApi.update_managed_user, must conform to the pattern #{pattern}."
1247
1353
  end
1248
1354
 
1249
1355
  # verify the required parameter 'update_managed_user' is set
1250
1356
  if @api_client.config.client_side_validation && update_managed_user.nil?
1251
- fail ArgumentError, "Missing the required parameter 'update_managed_user' when calling ManagedUsersApi.update_managed_user_0"
1357
+ fail ArgumentError, "Missing the required parameter 'update_managed_user' when calling ManagedUsersApi.update_managed_user"
1252
1358
  end
1253
1359
  # resource path
1254
1360
  local_var_path = '/managed-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -1280,7 +1386,7 @@ module ApiSdkRb
1280
1386
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1281
1387
 
1282
1388
  new_options = opts.merge(
1283
- :operation => :"ManagedUsersApi.update_managed_user_0",
1389
+ :operation => :"ManagedUsersApi.update_managed_user",
1284
1390
  :header_params => header_params,
1285
1391
  :query_params => query_params,
1286
1392
  :form_params => form_params,
@@ -1291,7 +1397,7 @@ module ApiSdkRb
1291
1397
 
1292
1398
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1293
1399
  if @api_client.config.debugging
1294
- @api_client.config.logger.debug "API called: ManagedUsersApi#update_managed_user_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1400
+ @api_client.config.logger.debug "API called: ManagedUsersApi#update_managed_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1295
1401
  end
1296
1402
  return data, status_code, headers
1297
1403
  end