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.
- checksums.yaml +4 -4
- data/README.md +207 -381
- data/docs/{GetPartnerCreditTransactions200Response.md → AccountCreditTransactionListResponse.md} +2 -2
- data/docs/{GetUserAdapterConnections200Response.md → AdapterConnectionListResponse.md} +2 -2
- data/docs/{RemoveUserAdapterConnection200Response.md → AdapterConnectionRemovalResponse.md} +2 -2
- data/docs/{SetUserAdapterConnection200Response.md → AdapterConnectionResponse.md} +2 -2
- data/docs/{AddAiAnswersKnowledgeDocument201Response.md → AiAnswersKnowledgeDocumentResponse.md} +2 -2
- data/docs/BrandKitApi.md +74 -74
- data/docs/BrandKitTokens.md +2 -0
- data/docs/BrandKitView.md +1 -1
- data/docs/BrandTextStyle.md +22 -0
- data/docs/CanvasesApi.md +45 -45
- data/docs/{CreateCompositionDatabaseRecord201Response.md → CompositionDatabaseRecordResponse.md} +2 -2
- data/docs/CompositionsApi.md +615 -349
- data/docs/{CreateCompositionContentItem201Response.md → ContentItemWriteResultResponse.md} +2 -2
- data/docs/CreditsApi.md +20 -20
- data/docs/{CreateCompositionFromWidget201Response.md → DeleteUpload200Response.md} +3 -3
- data/docs/{UploadsIdDelete200ResponseData.md → DeleteUpload200ResponseData.md} +2 -2
- data/docs/{GetPartnerDesignDefaults200Response.md → DesignDefaultsResponse.md} +2 -2
- data/docs/EntitlementsApi.md +18 -18
- data/docs/{OperationsIdGetResponse.md → GetOperationResponse.md} +3 -3
- data/docs/{OperationsIdGetResponseData.md → GetOperationResponseData.md} +3 -3
- data/docs/GetOperationResponseDataMetadata.md +24 -0
- data/docs/InvoicesApi.md +9 -9
- data/docs/{UploadsGet200Response.md → ListUploads200Response.md} +2 -2
- data/docs/{GetManagedUserLimits200Response.md → ManagedUserLimitsResponse.md} +2 -2
- data/docs/{DeleteManagedUser200Response.md → ManagedUserRemovalResponse.md} +2 -2
- data/docs/ManagedUsersApi.md +261 -171
- data/docs/OperationsApi.md +11 -11
- data/docs/PartnersApi.md +388 -388
- data/docs/PatchBrandKitRequest.md +2 -0
- data/docs/PublicEmbedApi.md +95 -95
- data/docs/PublicWorkflowEventsRequestEventsInner.md +3 -1
- data/docs/{GetPublicWorkflow200Response.md → PublicWorkflowResponse.md} +2 -2
- data/docs/TokensApi.md +11 -9
- data/docs/Upload.md +1 -1
- data/docs/UploadLimits.md +3 -3
- data/docs/UploadsApi.md +85 -85
- data/docs/UsersApi.md +125 -125
- data/docs/WidgetClarification.md +22 -0
- data/docs/WidgetClarificationOption.md +22 -0
- data/docs/WidgetClarificationQuestion.md +26 -0
- data/docs/WidgetNextStep.md +24 -0
- data/docs/WidgetPlan.md +26 -0
- data/docs/WidgetPlanDecisions.md +32 -0
- data/docs/WidgetPlanDecisionsAdaptersInner.md +20 -0
- data/docs/WidgetPlanDecisionsLibrariesInner.md +22 -0
- data/docs/WidgetPlanDecisionsResponsive.md +22 -0
- data/docs/WidgetPlanTask.md +24 -0
- data/docs/WidgetsApi.md +38 -38
- data/docs/{CreateWorkspaceWorkflowFromPreset201Response.md → WorkflowDetailResponse.md} +2 -2
- data/docs/WorkflowFailureReason.md +15 -0
- data/docs/WorkflowFailureReasonCounter.md +22 -0
- data/docs/{SaveWorkspaceWorkflow200Response.md → WorkflowResponse.md} +2 -2
- data/docs/WorkflowStats.md +4 -2
- data/docs/WorkflowsApi.md +197 -413
- data/lib/api-sdk-rb/api/brand_kit_api.rb +61 -61
- data/lib/api-sdk-rb/api/canvases_api.rb +39 -39
- data/lib/api-sdk-rb/api/compositions_api.rb +770 -441
- data/lib/api-sdk-rb/api/credits_api.rb +20 -20
- data/lib/api-sdk-rb/api/entitlements_api.rb +14 -14
- data/lib/api-sdk-rb/api/invoices_api.rb +10 -10
- data/lib/api-sdk-rb/api/managed_users_api.rb +278 -172
- data/lib/api-sdk-rb/api/operations_api.rb +10 -10
- data/lib/api-sdk-rb/api/partners_api.rb +389 -389
- data/lib/api-sdk-rb/api/public_embed_api.rb +95 -95
- data/lib/api-sdk-rb/api/tokens_api.rb +8 -6
- data/lib/api-sdk-rb/api/uploads_api.rb +96 -96
- data/lib/api-sdk-rb/api/users_api.rb +132 -132
- data/lib/api-sdk-rb/api/widgets_api.rb +40 -40
- data/lib/api-sdk-rb/api/workflows_api.rb +246 -468
- data/lib/api-sdk-rb/configuration.rb +0 -60
- data/lib/api-sdk-rb/models/{get_user_adapter_connections200_response.rb → account_credit_transaction_list_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{get_partner_credit_transactions200_response.rb → adapter_connection_list_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{save_workspace_workflow200_response.rb → adapter_connection_removal_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{set_user_adapter_connection200_response.rb → adapter_connection_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{add_ai_answers_knowledge_document201_response.rb → ai_answers_knowledge_document_response.rb} +3 -3
- data/lib/api-sdk-rb/models/brand_kit_tokens.rb +33 -2
- data/lib/api-sdk-rb/models/brand_kit_view.rb +1 -1
- data/lib/api-sdk-rb/models/brand_text_style.rb +344 -0
- data/lib/api-sdk-rb/models/{create_composition_database_record201_response.rb → composition_database_record_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{create_composition_content_item201_response.rb → content_item_write_result_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{operations_id_get_response.rb → delete_upload200_response.rb} +4 -5
- data/lib/api-sdk-rb/models/{uploads_id_delete200_response_data.rb → delete_upload200_response_data.rb} +3 -3
- data/lib/api-sdk-rb/models/{get_partner_design_defaults200_response.rb → design_defaults_response.rb} +3 -3
- data/lib/api-sdk-rb/models/get_operation_response.rb +247 -0
- data/lib/api-sdk-rb/models/{operations_id_get_response_data.rb → get_operation_response_data.rb} +5 -8
- data/lib/api-sdk-rb/models/get_operation_response_data_metadata.rb +283 -0
- data/lib/api-sdk-rb/models/{uploads_get200_response.rb → list_uploads200_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{get_managed_user_limits200_response.rb → managed_user_limits_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{uploads_id_delete200_response.rb → managed_user_removal_response.rb} +4 -4
- data/lib/api-sdk-rb/models/patch_brand_kit_request.rb +32 -1
- data/lib/api-sdk-rb/models/public_workflow_events_request_events_inner.rb +26 -4
- data/lib/api-sdk-rb/models/{get_public_workflow200_response.rb → public_workflow_response.rb} +3 -3
- data/lib/api-sdk-rb/models/upload.rb +1 -1
- data/lib/api-sdk-rb/models/upload_limits.rb +3 -3
- data/lib/api-sdk-rb/models/widget_clarification.rb +279 -0
- data/lib/api-sdk-rb/models/{create_composition_from_widget201_response.rb → widget_clarification_option.rb} +40 -30
- data/lib/api-sdk-rb/models/widget_clarification_question.rb +329 -0
- data/lib/api-sdk-rb/models/widget_next_step.rb +307 -0
- data/lib/api-sdk-rb/models/widget_plan.rb +306 -0
- data/lib/api-sdk-rb/models/widget_plan_decisions.rb +346 -0
- data/lib/api-sdk-rb/models/widget_plan_decisions_adapters_inner.rb +237 -0
- data/lib/api-sdk-rb/models/{create_workspace_workflow_from_preset201_response.rb → widget_plan_decisions_libraries_inner.rb} +39 -30
- data/lib/api-sdk-rb/models/widget_plan_decisions_responsive.rb +311 -0
- data/lib/api-sdk-rb/models/widget_plan_task.rb +320 -0
- data/lib/api-sdk-rb/models/{delete_managed_user200_response.rb → workflow_detail_response.rb} +4 -4
- data/lib/api-sdk-rb/models/workflow_failure_reason.rb +42 -0
- data/lib/api-sdk-rb/models/workflow_failure_reason_counter.rb +277 -0
- data/lib/api-sdk-rb/models/workflow_response.rb +246 -0
- data/lib/api-sdk-rb/models/workflow_stats.rb +17 -5
- data/lib/api-sdk-rb/version.rb +1 -1
- data/lib/api-sdk-rb.rb +32 -21
- data/spec/api/brand_kit_api_spec.rb +18 -18
- data/spec/api/canvases_api_spec.rb +10 -10
- data/spec/api/compositions_api_spec.rb +144 -83
- data/spec/api/credits_api_spec.rb +5 -5
- data/spec/api/entitlements_api_spec.rb +4 -4
- data/spec/api/invoices_api_spec.rb +2 -2
- data/spec/api/managed_users_api_spec.rb +63 -42
- data/spec/api/operations_api_spec.rb +3 -3
- data/spec/api/partners_api_spec.rb +91 -91
- data/spec/api/public_embed_api_spec.rb +23 -23
- data/spec/api/tokens_api_spec.rb +3 -2
- data/spec/api/uploads_api_spec.rb +24 -24
- data/spec/api/users_api_spec.rb +30 -30
- data/spec/api/widgets_api_spec.rb +9 -9
- data/spec/api/workflows_api_spec.rb +50 -89
- data/spec/models/{get_user_adapter_connections200_response_spec.rb → account_credit_transaction_list_response_spec.rb} +6 -6
- data/spec/models/{get_public_workflow200_response_spec.rb → adapter_connection_list_response_spec.rb} +6 -6
- data/spec/models/{save_workspace_workflow200_response_spec.rb → adapter_connection_removal_response_spec.rb} +6 -6
- data/spec/models/{delete_managed_user200_response_spec.rb → adapter_connection_response_spec.rb} +6 -6
- data/spec/models/ai_answers_knowledge_document_response_spec.rb +48 -0
- data/spec/models/brand_kit_tokens_spec.rb +6 -0
- data/spec/models/{create_composition_from_widget201_response_spec.rb → brand_text_style_spec.rb} +13 -9
- data/spec/models/{get_managed_user_limits200_response_spec.rb → composition_database_record_response_spec.rb} +6 -6
- data/spec/models/content_item_write_result_response_spec.rb +48 -0
- data/spec/models/{uploads_id_delete200_response_data_spec.rb → delete_upload200_response_data_spec.rb} +6 -6
- data/spec/models/{operations_id_get_response_spec.rb → delete_upload200_response_spec.rb} +6 -6
- data/spec/models/design_defaults_response_spec.rb +48 -0
- data/spec/models/get_operation_response_data_metadata_spec.rb +58 -0
- data/spec/models/{operations_id_get_response_data_spec.rb → get_operation_response_data_spec.rb} +6 -6
- data/spec/models/{uploads_get200_response_spec.rb → get_operation_response_spec.rb} +6 -6
- data/spec/models/list_uploads200_response_spec.rb +48 -0
- data/spec/models/managed_user_limits_response_spec.rb +48 -0
- data/spec/models/{uploads_id_delete200_response_spec.rb → managed_user_removal_response_spec.rb} +6 -6
- data/spec/models/patch_brand_kit_request_spec.rb +6 -0
- data/spec/models/public_workflow_events_request_events_inner_spec.rb +10 -0
- data/spec/models/public_workflow_response_spec.rb +48 -0
- data/spec/models/widget_clarification_option_spec.rb +48 -0
- data/spec/models/widget_clarification_question_spec.rb +60 -0
- data/spec/models/widget_clarification_spec.rb +48 -0
- data/spec/models/widget_next_step_spec.rb +58 -0
- data/spec/models/widget_plan_decisions_adapters_inner_spec.rb +42 -0
- data/spec/models/widget_plan_decisions_libraries_inner_spec.rb +48 -0
- data/spec/models/widget_plan_decisions_responsive_spec.rb +48 -0
- data/spec/models/widget_plan_decisions_spec.rb +78 -0
- data/spec/models/{create_composition_database_record201_response_spec.rb → widget_plan_spec.rb} +21 -9
- data/spec/models/widget_plan_task_spec.rb +62 -0
- data/spec/models/workflow_detail_response_spec.rb +48 -0
- data/spec/models/workflow_failure_reason_counter_spec.rb +48 -0
- data/spec/models/workflow_failure_reason_spec.rb +30 -0
- data/spec/models/workflow_response_spec.rb +48 -0
- data/spec/models/workflow_stats_spec.rb +6 -0
- metadata +130 -86
- data/docs/PartnerApi.md +0 -12714
- data/docs/UploadsIdDelete200Response.md +0 -22
- data/docs/WorkspacesApi.md +0 -1527
- data/lib/api-sdk-rb/api/partner_api.rb +0 -13791
- data/lib/api-sdk-rb/api/workspaces_api.rb +0 -1775
- data/lib/api-sdk-rb/models/remove_user_adapter_connection200_response.rb +0 -246
- data/spec/api/partner_api_spec.rb +0 -2437
- data/spec/api/workspaces_api_spec.rb +0 -339
- data/spec/models/add_ai_answers_knowledge_document201_response_spec.rb +0 -48
- data/spec/models/create_composition_content_item201_response_spec.rb +0 -48
- data/spec/models/create_workspace_workflow_from_preset201_response_spec.rb +0 -48
- data/spec/models/get_partner_credit_transactions200_response_spec.rb +0 -48
- data/spec/models/get_partner_design_defaults200_response_spec.rb +0 -48
- data/spec/models/remove_user_adapter_connection200_response_spec.rb +0 -48
- 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
|
|
31
|
-
data, _status_code, _headers =
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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#
|
|
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 `400`. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
128
128
|
# @param create_composition_from_preset_request [CreateCompositionFromPresetRequest]
|
|
129
129
|
# @param [Hash] opts the optional parameters
|
|
130
|
-
# @return [
|
|
131
|
-
def
|
|
132
|
-
data, _status_code, _headers =
|
|
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 `400`. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
141
141
|
# @param create_composition_from_preset_request [CreateCompositionFromPresetRequest]
|
|
142
142
|
# @param [Hash] opts the optional parameters
|
|
143
|
-
# @return [Array<(
|
|
144
|
-
def
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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] || '
|
|
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.
|
|
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#
|
|
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
|
|
230
|
-
data, _status_code, _headers =
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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#
|
|
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 (`
|
|
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'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
|
|
318
|
-
data, _status_code, _headers =
|
|
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'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`.
|
|
323
|
+
# 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`.
|
|
324
324
|
# @param id [String] The managed user the session is for (Widgetic'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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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#
|
|
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 [
|
|
390
|
-
def
|
|
391
|
-
data, _status_code, _headers =
|
|
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<(
|
|
400
|
-
def
|
|
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.
|
|
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.
|
|
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] || '
|
|
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.
|
|
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#
|
|
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, `<field>:<asc|desc>`. The field is `createdAt`, `updatedAt` or `externalId` (the snake_case spellings `created_at`, `updated_at` and `external_id` work too); `asc` or `desc` alone sorts by `createdAt`. Any other field is a 400. (default to 'createdAt:desc')
|
|
454
454
|
# @return [GetAllManagedUsers200Response]
|
|
455
|
-
def
|
|
456
|
-
data, _status_code, _headers =
|
|
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, `<field>:<asc|desc>`. The field is `createdAt`, `updatedAt` or `externalId` (the snake_case spellings `created_at`, `updated_at` and `external_id` work too); `asc` or `desc` alone sorts by `createdAt`. 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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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#
|
|
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
|
|
532
|
-
data, _status_code, _headers =
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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#
|
|
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 [
|
|
593
|
-
def
|
|
594
|
-
data, _status_code, _headers =
|
|
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<(
|
|
602
|
-
def
|
|
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.
|
|
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.
|
|
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] || '
|
|
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.
|
|
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#
|
|
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 [
|
|
654
|
-
def
|
|
655
|
-
data, _status_code, _headers =
|
|
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<(
|
|
663
|
-
def
|
|
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.
|
|
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.
|
|
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] || '
|
|
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.
|
|
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#
|
|
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
|
|
716
|
-
data, _status_code, _headers =
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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#
|
|
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 (`2026-10-01`) or date-time with its offset (`2026-10-01T08:00:00Z`). Default: 30 days before `endDate`.
|
|
777
777
|
# @option opts [String] :end_date End of the period, not included, in the same forms. Default: now. It must be after `startDate`, by at most 366 days.
|
|
778
778
|
# @return [ManagedUserUsageResponse]
|
|
779
|
-
def
|
|
780
|
-
data, _status_code, _headers =
|
|
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 (`2026-10-01`) or date-time with its offset (`2026-10-01T08:00:00Z`). Default: 30 days before `endDate`.
|
|
789
789
|
# @option opts [String] :end_date End of the period, not included, in the same forms. Default: now. It must be after `startDate`, by at most 366 days.
|
|
790
790
|
# @return [Array<(ManagedUserUsageResponse, Integer, Hash)>] ManagedUserUsageResponse data, response status code and response headers
|
|
791
|
-
def
|
|
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.
|
|
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.
|
|
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.
|
|
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#
|
|
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, `<field>:<asc|desc>`. The field is `createdAt`, `updatedAt` or `externalId` (the snake_case spellings `created_at`, `updated_at` and `external_id` work too); `asc` or `desc` alone sorts by `createdAt`. Any other field is a 400. (default to 'createdAt:desc')
|
|
848
848
|
# @return [GetManagedUsersByManagerIdResponse]
|
|
849
|
-
def
|
|
850
|
-
data, _status_code, _headers =
|
|
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, `<field>:<asc|desc>`. The field is `createdAt`, `updatedAt` or `externalId` (the snake_case spellings `created_at`, `updated_at` and `external_id` work too); `asc` or `desc` alone sorts by `createdAt`. 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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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#
|
|
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 `desc` (the default) lists the newest entry first, `asc` 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: `since` is INCLUSIVE (an entry made at exactly `since` is returned). A date and time with an offset, such as `2026-10-01T00:00:00Z`; anything else answers 400 `INVALID_SINCE`. An entry with no time never matches, and a table with no time column answers 400 `ENTRY_TABLE_HAS_NO_TIME`.
|
|
934
|
+
# @option opts [Time] :_until Only entries made before this time: `until` is EXCLUSIVE (an entry made at exactly `until` is NOT returned), so `since=A&until=B` followed by `since=B&until=C` counts every entry once. Same form and same refusals as `since` (400 `INVALID_UNTIL`).
|
|
935
|
+
# @option opts [String] :cursor
|
|
936
|
+
# @option opts [Hash<String, String>] :context Host context filters as `context[key]=value` (max 5 keys, counting dotted `context.key` too). Use `column.<name>=value` for columns whose names collide with reserved parameters.
|
|
937
|
+
# @option opts [Hash<String, String>] :filter Column filters as `filter[columnName]=value` (same meaning as bare `columnName=value` or `column.columnName=value`; max 10 column filters counting all spellings). A plain `filter=value` still filters a column named `filter`.
|
|
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's compositions
|
|
945
|
+
# 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.
|
|
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 `desc` (the default) lists the newest entry first, `asc` 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: `since` is INCLUSIVE (an entry made at exactly `since` is returned). A date and time with an offset, such as `2026-10-01T00:00:00Z`; anything else answers 400 `INVALID_SINCE`. An entry with no time never matches, and a table with no time column answers 400 `ENTRY_TABLE_HAS_NO_TIME`.
|
|
953
|
+
# @option opts [Time] :_until Only entries made before this time: `until` is EXCLUSIVE (an entry made at exactly `until` is NOT returned), so `since=A&until=B` followed by `since=B&until=C` counts every entry once. Same form and same refusals as `since` (400 `INVALID_UNTIL`).
|
|
954
|
+
# @option opts [String] :cursor
|
|
955
|
+
# @option opts [Hash<String, String>] :context Host context filters as `context[key]=value` (max 5 keys, counting dotted `context.key` too). Use `column.<name>=value` for columns whose names collide with reserved parameters.
|
|
956
|
+
# @option opts [Hash<String, String>] :filter Column filters as `filter[columnName]=value` (same meaning as bare `columnName=value` or `column.columnName=value`; max 10 column filters counting all spellings). A plain `filter=value` still filters a column named `filter`.
|
|
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 `sessionId` of the session, from `createManagedUserEditorSession`
|
|
929
1035
|
# @param [Hash] opts the optional parameters
|
|
930
|
-
# @return [
|
|
931
|
-
def
|
|
932
|
-
data, _status_code, _headers =
|
|
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 `sessionId` of the session, from `createManagedUserEditorSession`
|
|
940
1046
|
# @param [Hash] opts the optional parameters
|
|
941
|
-
# @return [Array<(
|
|
942
|
-
def
|
|
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.
|
|
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.
|
|
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.
|
|
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] || '
|
|
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.
|
|
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#
|
|
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
|
|
1000
|
-
data, _status_code, _headers =
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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#
|
|
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 [
|
|
1063
|
-
def
|
|
1064
|
-
data, _status_code, _headers =
|
|
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<(
|
|
1074
|
-
def
|
|
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.
|
|
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.
|
|
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.
|
|
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] || '
|
|
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.
|
|
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#
|
|
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 [
|
|
1137
|
-
def
|
|
1138
|
-
data, _status_code, _headers =
|
|
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<(
|
|
1148
|
-
def
|
|
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.
|
|
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.
|
|
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.
|
|
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] || '
|
|
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.
|
|
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#
|
|
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
|
|
1213
|
-
data, _status_code, _headers =
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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#
|
|
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
|