python-alfresco-api 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (635) hide show
  1. python_alfresco_api/__init__.py +43 -0
  2. python_alfresco_api/auth_util.py +103 -0
  3. python_alfresco_api/client_factory.py +111 -0
  4. python_alfresco_api/clients/__init__.py +1 -0
  5. python_alfresco_api/clients/auth_client.py +85 -0
  6. python_alfresco_api/clients/core_client.py +85 -0
  7. python_alfresco_api/clients/discovery_client.py +85 -0
  8. python_alfresco_api/clients/model_client.py +85 -0
  9. python_alfresco_api/clients/search_client.py +85 -0
  10. python_alfresco_api/clients/search_sql_client.py +85 -0
  11. python_alfresco_api/clients/workflow_client.py +85 -0
  12. python_alfresco_api/events/__init__.py +15 -0
  13. python_alfresco_api/events/event_client.py +268 -0
  14. python_alfresco_api/events/models.py +35 -0
  15. python_alfresco_api/examples/basic_usage.py +52 -0
  16. python_alfresco_api/examples/llm_integration.py +155 -0
  17. python_alfresco_api/models/__init__.py +45 -0
  18. python_alfresco_api/models/alfresco_auth_models.py +42 -0
  19. python_alfresco_api/models/alfresco_core_models.py +1288 -0
  20. python_alfresco_api/models/alfresco_discovery_models.py +84 -0
  21. python_alfresco_api/models/alfresco_model_models.py +161 -0
  22. python_alfresco_api/models/alfresco_search_models.py +720 -0
  23. python_alfresco_api/models/alfresco_search_sql_models.py +91 -0
  24. python_alfresco_api/models/alfresco_workflow_models.py +357 -0
  25. python_alfresco_api/raw_clients/alfresco_auth_client/.gitignore +23 -0
  26. python_alfresco_api/raw_clients/alfresco_auth_client/README.md +124 -0
  27. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/__init__.py +8 -0
  28. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/__init__.py +1 -0
  29. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/__init__.py +1 -0
  30. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/create_ticket.py +236 -0
  31. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/delete_ticket.py +91 -0
  32. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/validate_ticket.py +171 -0
  33. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/client.py +268 -0
  34. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/errors.py +16 -0
  35. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/__init__.py +19 -0
  36. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/error.py +65 -0
  37. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/error_error.py +104 -0
  38. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/ticket.py +68 -0
  39. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/ticket_body.py +68 -0
  40. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/ticket_entry.py +65 -0
  41. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/valid_ticket.py +59 -0
  42. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/valid_ticket_entry.py +65 -0
  43. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/py.typed +1 -0
  44. python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/types.py +54 -0
  45. python_alfresco_api/raw_clients/alfresco_auth_client/pyproject.toml +27 -0
  46. python_alfresco_api/raw_clients/alfresco_core_client/.gitignore +23 -0
  47. python_alfresco_api/raw_clients/alfresco_core_client/README.md +124 -0
  48. python_alfresco_api/raw_clients/alfresco_core_client/core_client/__init__.py +8 -0
  49. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/__init__.py +1 -0
  50. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/__init__.py +1 -0
  51. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/action_details.py +172 -0
  52. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/action_exec.py +384 -0
  53. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/list_actions.py +261 -0
  54. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/node_actions.py +277 -0
  55. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/activities/__init__.py +1 -0
  56. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/activities/list_activities_for_person.py +263 -0
  57. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/__init__.py +1 -0
  58. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/delete_audit_entries_for_audit_app.py +148 -0
  59. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/delete_audit_entry.py +122 -0
  60. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/get_audit_app.py +245 -0
  61. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/get_audit_entry.py +227 -0
  62. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/list_audit_apps.py +256 -0
  63. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/list_audit_entries_for_audit_app.py +372 -0
  64. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/list_audit_entries_for_node.py +329 -0
  65. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/update_audit_app.py +259 -0
  66. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/__init__.py +1 -0
  67. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/create_comment.py +414 -0
  68. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/delete_comment.py +112 -0
  69. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/list_comments.py +229 -0
  70. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/update_comment.py +232 -0
  71. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/__init__.py +1 -0
  72. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/create_favorite.py +443 -0
  73. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/create_site_favorite.py +407 -0
  74. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/delete_favorite.py +112 -0
  75. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/delete_site_favorite.py +120 -0
  76. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/get_favorite.py +229 -0
  77. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/get_favorite_site.py +137 -0
  78. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/list_favorite_sites_for_person.py +150 -0
  79. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/list_favorites.py +419 -0
  80. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/__init__.py +1 -0
  81. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/create_group.py +285 -0
  82. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/create_group_membership.py +255 -0
  83. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/delete_group.py +138 -0
  84. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/delete_group_membership.py +130 -0
  85. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/get_group.py +227 -0
  86. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/list_group_memberships.py +331 -0
  87. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/list_group_memberships_for_person.py +447 -0
  88. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/list_groups.py +487 -0
  89. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/update_group.py +254 -0
  90. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/__init__.py +1 -0
  91. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/get_network.py +189 -0
  92. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/get_network_for_person.py +210 -0
  93. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/list_networks_for_person.py +230 -0
  94. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/__init__.py +1 -0
  95. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/copy_node.py +285 -0
  96. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/create_association.py +410 -0
  97. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/create_node.py +1327 -0
  98. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/create_secondary_child_association.py +410 -0
  99. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/delete_association.py +149 -0
  100. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/delete_node.py +162 -0
  101. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/delete_secondary_child_association.py +145 -0
  102. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/get_node.py +245 -0
  103. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_node_children.py +440 -0
  104. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_parents.py +290 -0
  105. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_secondary_children.py +286 -0
  106. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_source_associations.py +237 -0
  107. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_target_associations.py +237 -0
  108. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/lock_node.py +374 -0
  109. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/move_node.py +281 -0
  110. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/unlock_node.py +245 -0
  111. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/update_node.py +477 -0
  112. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/update_node_content.py +363 -0
  113. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/__init__.py +1 -0
  114. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/create_person.py +298 -0
  115. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/delete_avatar_image.py +115 -0
  116. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/get_person.py +197 -0
  117. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/list_people.py +292 -0
  118. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/request_password_reset.py +153 -0
  119. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/reset_password.py +139 -0
  120. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/update_avatar_image.py +144 -0
  121. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/update_person.py +327 -0
  122. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/preferences/__init__.py +1 -0
  123. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/preferences/get_preference.py +213 -0
  124. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/preferences/list_preferences.py +245 -0
  125. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/probes/__init__.py +1 -0
  126. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/probes/get_probe.py +196 -0
  127. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/__init__.py +1 -0
  128. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/find_nodes.py +380 -0
  129. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/find_people.py +296 -0
  130. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/find_sites.py +181 -0
  131. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/__init__.py +1 -0
  132. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/create_rating.py +216 -0
  133. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/delete_rating.py +110 -0
  134. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/get_rating.py +205 -0
  135. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/list_ratings.py +222 -0
  136. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/__init__.py +1 -0
  137. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/create_rendition.py +165 -0
  138. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/get_rendition.py +191 -0
  139. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/list_renditions.py +247 -0
  140. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/__init__.py +1 -0
  141. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/create_shared_link.py +440 -0
  142. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/delete_shared_link.py +111 -0
  143. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/email_shared_link.py +187 -0
  144. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/get_shared_link.py +208 -0
  145. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/get_shared_link_rendition.py +208 -0
  146. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/list_shared_link_renditions.py +195 -0
  147. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/list_shared_links.py +271 -0
  148. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/__init__.py +1 -0
  149. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/approve_site_membership_request.py +130 -0
  150. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site.py +202 -0
  151. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site_group_membership.py +415 -0
  152. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site_membership.py +423 -0
  153. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site_membership_request_for_person.py +247 -0
  154. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site.py +122 -0
  155. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_group_membership.py +114 -0
  156. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_membership.py +114 -0
  157. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_membership_for_person.py +112 -0
  158. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_membership_request_for_person.py +112 -0
  159. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site.py +155 -0
  160. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_container.py +202 -0
  161. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_group_membership.py +210 -0
  162. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership.py +210 -0
  163. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership_for_person.py +110 -0
  164. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership_request_for_person.py +129 -0
  165. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership_requests.py +176 -0
  166. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_containers.py +222 -0
  167. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_groups.py +230 -0
  168. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_membership_requests_for_person.py +142 -0
  169. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_memberships.py +237 -0
  170. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_memberships_for_person.py +225 -0
  171. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_sites.py +236 -0
  172. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/reject_site_membership_request.py +130 -0
  173. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site.py +147 -0
  174. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site_group_membership.py +257 -0
  175. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site_membership.py +265 -0
  176. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site_membership_request_for_person.py +146 -0
  177. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/__init__.py +1 -0
  178. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/create_tag_for_node.py +411 -0
  179. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/delete_tag_from_node.py +110 -0
  180. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/get_tag.py +189 -0
  181. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/list_tags.py +233 -0
  182. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/list_tags_for_node.py +225 -0
  183. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/update_tag.py +213 -0
  184. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/__init__.py +1 -0
  185. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/delete_deleted_node.py +109 -0
  186. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/get_archived_node_rendition.py +191 -0
  187. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/get_deleted_node.py +203 -0
  188. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/list_deleted_node_renditions.py +247 -0
  189. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/list_deleted_nodes.py +234 -0
  190. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/restore_deleted_node.py +270 -0
  191. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/__init__.py +1 -0
  192. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/create_version_rendition.py +172 -0
  193. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/delete_version.py +140 -0
  194. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/get_version.py +191 -0
  195. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/get_version_rendition.py +204 -0
  196. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/list_version_history.py +264 -0
  197. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/list_version_renditions.py +260 -0
  198. python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/revert_version.py +252 -0
  199. python_alfresco_api/raw_clients/alfresco_core_client/core_client/client.py +268 -0
  200. python_alfresco_api/raw_clients/alfresco_core_client/core_client/errors.py +16 -0
  201. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/__init__.py +391 -0
  202. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_body_exec.py +92 -0
  203. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_body_exec_params.py +44 -0
  204. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition.py +130 -0
  205. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition_entry.py +65 -0
  206. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition_list.py +72 -0
  207. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition_list_list.py +93 -0
  208. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_exec_result.py +59 -0
  209. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_exec_result_entry.py +65 -0
  210. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_parameter_definition.py +95 -0
  211. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity.py +137 -0
  212. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_activity_summary.py +44 -0
  213. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_entry.py +67 -0
  214. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_paging.py +65 -0
  215. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_paging_list.py +93 -0
  216. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association.py +67 -0
  217. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association_body.py +67 -0
  218. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association_entry.py +65 -0
  219. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association_info.py +59 -0
  220. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app.py +97 -0
  221. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app_entry.py +72 -0
  222. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app_paging.py +72 -0
  223. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app_paging_list.py +93 -0
  224. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_body_update.py +59 -0
  225. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry.py +111 -0
  226. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_entry.py +72 -0
  227. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_paging.py +72 -0
  228. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_paging_list.py +93 -0
  229. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_values.py +44 -0
  230. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/capabilities.py +77 -0
  231. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association.py +67 -0
  232. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association_body.py +67 -0
  233. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association_entry.py +65 -0
  234. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association_info.py +67 -0
  235. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/client_body.py +59 -0
  236. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment.py +139 -0
  237. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_body.py +59 -0
  238. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_entry.py +65 -0
  239. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_paging.py +65 -0
  240. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_paging_list.py +93 -0
  241. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/company.py +122 -0
  242. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/constraint.py +110 -0
  243. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/constraint_parameters.py +57 -0
  244. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/constraint_parameters_additional_property.py +44 -0
  245. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/content_info.py +88 -0
  246. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/definition.py +76 -0
  247. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_node.py +298 -0
  248. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_node_body_restore.py +68 -0
  249. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_node_entry.py +72 -0
  250. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_nodes_paging.py +72 -0
  251. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_nodes_paging_list.py +93 -0
  252. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/direct_access_url_body_create.py +77 -0
  253. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download.py +113 -0
  254. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download_body_create.py +59 -0
  255. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download_entry.py +65 -0
  256. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download_status.py +12 -0
  257. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/error.py +65 -0
  258. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/error_error.py +104 -0
  259. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite.py +114 -0
  260. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_body_create.py +65 -0
  261. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_body_create_target.py +44 -0
  262. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_entry.py +66 -0
  263. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_paging.py +65 -0
  264. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_paging_list.py +93 -0
  265. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_properties.py +47 -0
  266. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_site.py +59 -0
  267. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_site_body_create.py +59 -0
  268. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_site_entry.py +65 -0
  269. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_target.py +44 -0
  270. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group.py +99 -0
  271. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_body_create.py +80 -0
  272. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_body_update.py +59 -0
  273. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_entry.py +65 -0
  274. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member.py +77 -0
  275. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_entry.py +65 -0
  276. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_member_type.py +9 -0
  277. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_paging.py +72 -0
  278. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_paging_list.py +93 -0
  279. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_membership_body_create.py +69 -0
  280. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_membership_body_create_member_type.py +9 -0
  281. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_paging.py +72 -0
  282. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_paging_list.py +93 -0
  283. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/network_quota.py +78 -0
  284. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node.py +282 -0
  285. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association.py +300 -0
  286. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association_entry.py +65 -0
  287. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association_paging.py +72 -0
  288. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association_paging_list.py +111 -0
  289. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_copy.py +72 -0
  290. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_create.py +256 -0
  291. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_create_association.py +59 -0
  292. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_create_properties.py +44 -0
  293. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_lock.py +93 -0
  294. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_lock_lifetime.py +9 -0
  295. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_lock_type.py +9 -0
  296. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_move.py +72 -0
  297. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_update.py +121 -0
  298. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_update_properties.py +44 -0
  299. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association.py +300 -0
  300. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association_entry.py +65 -0
  301. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association_paging.py +72 -0
  302. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association_paging_list.py +111 -0
  303. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_entry.py +65 -0
  304. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_paging.py +72 -0
  305. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_paging_list.py +111 -0
  306. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_properties.py +44 -0
  307. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/pagination.py +103 -0
  308. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/password_reset_body.py +75 -0
  309. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/path_element.py +88 -0
  310. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/path_info.py +93 -0
  311. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permission_element.py +85 -0
  312. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permission_element_access_status.py +9 -0
  313. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permissions_body.py +84 -0
  314. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permissions_info.py +114 -0
  315. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person.py +289 -0
  316. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_create.py +244 -0
  317. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_create_properties.py +44 -0
  318. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_update.py +245 -0
  319. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_update_properties.py +44 -0
  320. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_entry.py +65 -0
  321. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network.py +150 -0
  322. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_entry.py +67 -0
  323. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_paging.py +65 -0
  324. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_paging_list.py +93 -0
  325. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_subscription_level.py +10 -0
  326. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_paging.py +72 -0
  327. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_paging_list.py +93 -0
  328. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_properties.py +44 -0
  329. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference.py +71 -0
  330. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference_entry.py +65 -0
  331. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference_paging.py +65 -0
  332. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference_paging_list.py +93 -0
  333. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/probe_entry.py +65 -0
  334. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/probe_entry_entry.py +59 -0
  335. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/property_.py +158 -0
  336. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating.py +106 -0
  337. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_aggregate.py +68 -0
  338. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_body.py +70 -0
  339. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_body_id.py +9 -0
  340. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_entry.py +67 -0
  341. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_paging.py +65 -0
  342. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_paging_list.py +93 -0
  343. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition.py +98 -0
  344. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_body_create.py +59 -0
  345. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_entry.py +65 -0
  346. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_paging.py +72 -0
  347. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_paging_list.py +93 -0
  348. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_status.py +9 -0
  349. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/revert_body.py +68 -0
  350. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link.py +269 -0
  351. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_body_create.py +79 -0
  352. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_body_email.py +88 -0
  353. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_entry.py +65 -0
  354. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_paging.py +65 -0
  355. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_paging_list.py +93 -0
  356. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_properties.py +47 -0
  357. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_create.py +88 -0
  358. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_create_visibility.py +10 -0
  359. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_update.py +85 -0
  360. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_update_visibility.py +10 -0
  361. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container.py +67 -0
  362. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container_entry.py +65 -0
  363. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container_paging.py +65 -0
  364. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container_paging_list.py +93 -0
  365. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group.py +83 -0
  366. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_entry.py +65 -0
  367. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_paging.py +65 -0
  368. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_paging_list.py +93 -0
  369. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_role.py +11 -0
  370. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member.py +93 -0
  371. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_entry.py +65 -0
  372. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_paging.py +65 -0
  373. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_paging_list.py +93 -0
  374. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_role.py +11 -0
  375. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_approval_body.py +59 -0
  376. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_create.py +69 -0
  377. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_create_role.py +11 -0
  378. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_update.py +61 -0
  379. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_update_role.py +11 -0
  380. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_rejection_body.py +59 -0
  381. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_request_body_create.py +91 -0
  382. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_request_body_update.py +59 -0
  383. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_role_role.py +11 -0
  384. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag.py +78 -0
  385. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_body.py +59 -0
  386. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_entry.py +65 -0
  387. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_paging.py +65 -0
  388. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_paging_list.py +93 -0
  389. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/user_info.py +67 -0
  390. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version.py +174 -0
  391. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_entry.py +72 -0
  392. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_paging.py +72 -0
  393. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_paging_list.py +93 -0
  394. python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_properties.py +44 -0
  395. python_alfresco_api/raw_clients/alfresco_core_client/core_client/py.typed +1 -0
  396. python_alfresco_api/raw_clients/alfresco_core_client/core_client/types.py +54 -0
  397. python_alfresco_api/raw_clients/alfresco_core_client/pyproject.toml +27 -0
  398. python_alfresco_api/raw_clients/alfresco_discovery_client/.gitignore +23 -0
  399. python_alfresco_api/raw_clients/alfresco_discovery_client/README.md +124 -0
  400. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/__init__.py +8 -0
  401. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/api/__init__.py +1 -0
  402. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/api/discovery/__init__.py +1 -0
  403. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/api/discovery/get_repository_information.py +145 -0
  404. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/client.py +268 -0
  405. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/errors.py +16 -0
  406. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/__init__.py +25 -0
  407. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/discovery_entry.py +65 -0
  408. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/entitlements_info.py +86 -0
  409. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/error.py +65 -0
  410. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/error_error.py +104 -0
  411. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/license_info.py +117 -0
  412. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/module_info.py +131 -0
  413. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/repository_entry.py +65 -0
  414. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/repository_info.py +132 -0
  415. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/status_info.py +83 -0
  416. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/version_info.py +107 -0
  417. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/py.typed +1 -0
  418. python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/types.py +54 -0
  419. python_alfresco_api/raw_clients/alfresco_discovery_client/pyproject.toml +27 -0
  420. python_alfresco_api/raw_clients/alfresco_model_client/.gitignore +23 -0
  421. python_alfresco_api/raw_clients/alfresco_model_client/README.md +124 -0
  422. python_alfresco_api/raw_clients/alfresco_model_client/model_client/__init__.py +8 -0
  423. python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/__init__.py +1 -0
  424. python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/aspects/__init__.py +1 -0
  425. python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/aspects/get_aspect.py +103 -0
  426. python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/aspects/list_aspects.py +256 -0
  427. python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/types/__init__.py +1 -0
  428. python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/types/get_type.py +103 -0
  429. python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/types/list_types.py +270 -0
  430. python_alfresco_api/raw_clients/alfresco_model_client/model_client/client.py +268 -0
  431. python_alfresco_api/raw_clients/alfresco_model_client/model_client/errors.py +16 -0
  432. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/__init__.py +27 -0
  433. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/abstract_class.py +189 -0
  434. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/abstract_class_association.py +135 -0
  435. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/abstract_class_association_source.py +95 -0
  436. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/constraint.py +110 -0
  437. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/constraint_parameters.py +57 -0
  438. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/constraint_parameters_additional_property.py +44 -0
  439. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/error.py +65 -0
  440. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/error_error.py +104 -0
  441. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/model.py +97 -0
  442. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/pagination.py +103 -0
  443. python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/property_.py +158 -0
  444. python_alfresco_api/raw_clients/alfresco_model_client/model_client/py.typed +1 -0
  445. python_alfresco_api/raw_clients/alfresco_model_client/model_client/types.py +54 -0
  446. python_alfresco_api/raw_clients/alfresco_model_client/pyproject.toml +27 -0
  447. python_alfresco_api/raw_clients/alfresco_search_client/.gitignore +23 -0
  448. python_alfresco_api/raw_clients/alfresco_search_client/README.md +124 -0
  449. python_alfresco_api/raw_clients/alfresco_search_client/pyproject.toml +27 -0
  450. python_alfresco_api/raw_clients/alfresco_search_client/search_client/__init__.py +8 -0
  451. python_alfresco_api/raw_clients/alfresco_search_client/search_client/api/__init__.py +1 -0
  452. python_alfresco_api/raw_clients/alfresco_search_client/search_client/api/search/__init__.py +1 -0
  453. python_alfresco_api/raw_clients/alfresco_search_client/search_client/api/search/search.py +1451 -0
  454. python_alfresco_api/raw_clients/alfresco_search_client/search_client/client.py +268 -0
  455. python_alfresco_api/raw_clients/alfresco_search_client/search_client/errors.py +16 -0
  456. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/__init__.py +125 -0
  457. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/content_info.py +95 -0
  458. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/error.py +65 -0
  459. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/error_error.py +104 -0
  460. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket.py +151 -0
  461. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket_bucket_info.py +87 -0
  462. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket_display.py +44 -0
  463. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket_facets_item.py +44 -0
  464. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_facet_response.py +93 -0
  465. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_metric.py +82 -0
  466. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_metric_value.py +44 -0
  467. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/node.py +237 -0
  468. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/node_properties.py +44 -0
  469. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/pagination.py +100 -0
  470. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/path_element.py +68 -0
  471. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/path_info.py +93 -0
  472. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_defaults.py +126 -0
  473. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_defaults_default_fts_field_operator.py +9 -0
  474. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_defaults_default_fts_operator.py +9 -0
  475. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_field.py +172 -0
  476. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_field_method.py +9 -0
  477. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_field_sort.py +9 -0
  478. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_fields.py +79 -0
  479. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_intervals.py +97 -0
  480. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_intervals_intervals_item.py +93 -0
  481. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_queries_item.py +68 -0
  482. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_set.py +98 -0
  483. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_filter_queries_item.py +72 -0
  484. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_highlight.py +143 -0
  485. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_highlight_fields_item.py +104 -0
  486. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_include_item.py +13 -0
  487. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_limits.py +71 -0
  488. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_localization.py +73 -0
  489. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_pagination.py +68 -0
  490. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_pivot.py +82 -0
  491. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_query.py +89 -0
  492. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_query_language.py +10 -0
  493. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_range.py +139 -0
  494. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_scope.py +68 -0
  495. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_scope_locations.py +10 -0
  496. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_sort_definition_item.py +87 -0
  497. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_sort_definition_item_type.py +10 -0
  498. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_spellcheck.py +61 -0
  499. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_stats.py +202 -0
  500. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_templates_item.py +68 -0
  501. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/response_consistency.py +60 -0
  502. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_buckets.py +84 -0
  503. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_buckets_buckets_item.py +99 -0
  504. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_buckets_buckets_item_display.py +44 -0
  505. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_node.py +305 -0
  506. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context.py +181 -0
  507. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context_facet_queries_item.py +77 -0
  508. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context_spellcheck_item.py +78 -0
  509. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context_spellcheck_item_type.py +9 -0
  510. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_paging.py +73 -0
  511. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_paging_list.py +111 -0
  512. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_row_entry.py +66 -0
  513. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/search_entry.py +85 -0
  514. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/search_entry_highlight_item.py +71 -0
  515. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/search_request.py +452 -0
  516. python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/user_info.py +67 -0
  517. python_alfresco_api/raw_clients/alfresco_search_client/search_client/py.typed +1 -0
  518. python_alfresco_api/raw_clients/alfresco_search_client/search_client/types.py +54 -0
  519. python_alfresco_api/raw_clients/alfresco_search_sql_client/.gitignore +23 -0
  520. python_alfresco_api/raw_clients/alfresco_search_sql_client/README.md +124 -0
  521. python_alfresco_api/raw_clients/alfresco_search_sql_client/pyproject.toml +27 -0
  522. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/__init__.py +8 -0
  523. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/api/__init__.py +1 -0
  524. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/api/sql/__init__.py +1 -0
  525. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/api/sql/search.py +751 -0
  526. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/client.py +268 -0
  527. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/errors.py +16 -0
  528. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/__init__.py +23 -0
  529. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/docs_item.py +68 -0
  530. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/error.py +65 -0
  531. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/error_error.py +104 -0
  532. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/pagination.py +100 -0
  533. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/solr_result_set.py +77 -0
  534. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_result_set_paging.py +73 -0
  535. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_result_set_paging_list.py +93 -0
  536. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_result_set_row_entry.py +68 -0
  537. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_search_request.py +108 -0
  538. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/py.typed +1 -0
  539. python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/types.py +54 -0
  540. python_alfresco_api/raw_clients/alfresco_workflow_client/.gitignore +23 -0
  541. python_alfresco_api/raw_clients/alfresco_workflow_client/README.md +124 -0
  542. python_alfresco_api/raw_clients/alfresco_workflow_client/pyproject.toml +27 -0
  543. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/__init__.py +8 -0
  544. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/__init__.py +1 -0
  545. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/__init__.py +1 -0
  546. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/delete_deployment.py +105 -0
  547. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/get_deployment.py +213 -0
  548. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/list_deployments.py +230 -0
  549. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/__init__.py +1 -0
  550. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/get_process_definition.py +205 -0
  551. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/get_process_definition_image.py +188 -0
  552. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/get_process_definition_start_form_model.py +201 -0
  553. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/list_process_definitions.py +264 -0
  554. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/__init__.py +1 -0
  555. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process.py +385 -0
  556. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process_item.py +365 -0
  557. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process_variable.py +202 -0
  558. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process_variables.py +381 -0
  559. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/delete_process.py +101 -0
  560. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/delete_process_item.py +108 -0
  561. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/delete_process_variable.py +108 -0
  562. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/get_process.py +229 -0
  563. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/list_process_items.py +262 -0
  564. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/list_process_variables.py +262 -0
  565. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/list_processes.py +284 -0
  566. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/__init__.py +1 -0
  567. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/create_task_item.py +365 -0
  568. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/create_task_variables.py +378 -0
  569. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/delete_task_item.py +108 -0
  570. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/delete_task_variable.py +110 -0
  571. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/get_task.py +229 -0
  572. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/get_task_form_model.py +238 -0
  573. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_task_candidates.py +222 -0
  574. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_task_items.py +262 -0
  575. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_task_variables.py +277 -0
  576. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_tasks.py +276 -0
  577. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_tasks_for_process.py +281 -0
  578. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/update_task.py +830 -0
  579. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/update_task_variable.py +202 -0
  580. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/client.py +268 -0
  581. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/errors.py +16 -0
  582. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/__init__.py +95 -0
  583. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate.py +77 -0
  584. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_candidate_type.py +9 -0
  585. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_entry.py +72 -0
  586. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_paging.py +72 -0
  587. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_paging_list.py +93 -0
  588. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/company.py +122 -0
  589. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment.py +116 -0
  590. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment_entry.py +90 -0
  591. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment_paging.py +72 -0
  592. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment_paging_list.py +93 -0
  593. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/error.py +65 -0
  594. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/error_error.py +104 -0
  595. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item.py +195 -0
  596. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_body.py +60 -0
  597. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_entry.py +72 -0
  598. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_paging.py +72 -0
  599. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_paging_list.py +93 -0
  600. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/pagination.py +102 -0
  601. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/person.py +236 -0
  602. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process.py +171 -0
  603. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_body.py +82 -0
  604. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_body_variable.py +78 -0
  605. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition.py +136 -0
  606. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition_entry.py +74 -0
  607. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition_paging.py +72 -0
  608. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition_paging_list.py +93 -0
  609. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_entry.py +84 -0
  610. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_paging.py +72 -0
  611. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_paging_list.py +93 -0
  612. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task.py +244 -0
  613. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_body.py +147 -0
  614. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_body_state.py +11 -0
  615. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_entry.py +72 -0
  616. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model.py +116 -0
  617. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model_entry.py +72 -0
  618. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model_paging.py +72 -0
  619. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model_paging_list.py +93 -0
  620. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_paging.py +72 -0
  621. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_paging_list.py +93 -0
  622. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_state.py +11 -0
  623. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable.py +87 -0
  624. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_body.py +78 -0
  625. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_entry.py +72 -0
  626. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_paging.py +72 -0
  627. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_paging_list.py +93 -0
  628. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/py.typed +1 -0
  629. python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/types.py +54 -0
  630. python_alfresco_api/tests/__init__.py +1 -0
  631. python_alfresco_api/tests/test_basic.py +115 -0
  632. python_alfresco_api-1.0.0.dist-info/METADATA +795 -0
  633. python_alfresco_api-1.0.0.dist-info/RECORD +635 -0
  634. python_alfresco_api-1.0.0.dist-info/WHEEL +4 -0
  635. python_alfresco_api-1.0.0.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,1451 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.result_set_paging import ResultSetPaging
9
+ from ...models.search_request import SearchRequest
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ body: SearchRequest,
16
+ ) -> dict[str, Any]:
17
+ headers: dict[str, Any] = {}
18
+
19
+ _kwargs: dict[str, Any] = {
20
+ "method": "post",
21
+ "url": "/search",
22
+ }
23
+
24
+ _kwargs["json"] = body.to_dict()
25
+
26
+ headers["Content-Type"] = "application/json"
27
+
28
+ _kwargs["headers"] = headers
29
+ return _kwargs
30
+
31
+
32
+ def _parse_response(
33
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
34
+ ) -> Optional[ResultSetPaging]:
35
+ if response.status_code == 200:
36
+ response_200 = ResultSetPaging.from_dict(response.json())
37
+
38
+ return response_200
39
+ if client.raise_on_unexpected_status:
40
+ raise errors.UnexpectedStatus(response.status_code, response.content)
41
+ else:
42
+ return None
43
+
44
+
45
+ def _build_response(
46
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
47
+ ) -> Response[ResultSetPaging]:
48
+ return Response(
49
+ status_code=HTTPStatus(response.status_code),
50
+ content=response.content,
51
+ headers=response.headers,
52
+ parsed=_parse_response(client=client, response=response),
53
+ )
54
+
55
+
56
+ def sync_detailed(
57
+ *,
58
+ client: Union[AuthenticatedClient, Client],
59
+ body: SearchRequest,
60
+ ) -> Response[ResultSetPaging]:
61
+ r"""Searches Alfresco
62
+
63
+ **Note**: this endpoint is available in Alfresco 5.2 and newer versions.
64
+
65
+ **You specify all the parameters in this API in a JSON body**, URL parameters are not supported.
66
+ A basic query looks like this:
67
+
68
+ ```JSON
69
+ {
70
+ \"query\": {
71
+ \"query\": \"foo\"
72
+ }
73
+ }
74
+ ```
75
+
76
+ **Note:** These are the minimum possible query parameters.
77
+
78
+ The default search language is **afts** ([Alfresco Full Text
79
+ Search](http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-intro.html)), but you can also specify
80
+ **cmis**, and **lucene**.
81
+
82
+ A basic CMIS query looks like this:
83
+
84
+ ```JSON
85
+ {
86
+ \"query\": {
87
+ \"query\": \"select * from cmis:folder\",
88
+ \"language\": \"cmis\"
89
+ }
90
+ }
91
+ ```
92
+
93
+ By default, **results are limited to the first 100.**
94
+ Results can be restricted using \"paging\". For example:
95
+ ```JSON
96
+ \"paging\": {
97
+ \"maxItems\": \"50\",
98
+ \"skipCount\": \"28\"
99
+ }
100
+ ```
101
+ This example would ensure that results are **limited by Final Size**, skipping the first 28 results
102
+ and returning the next 50.
103
+
104
+ Alternatively, you can limit the results by using the **limits JSON body parameter**. For example,
105
+ ```JSON
106
+ \"limits\": {
107
+ \"permissionEvaluationTime\": 20000,
108
+ \"permissionEvaluationCount\": 2000
109
+ }
110
+ ```
111
+
112
+ You can use the **include JSON body parameter** to return additional information.
113
+ This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
114
+ ```JSON
115
+ \"include\": [\"aspectNames\", \"properties\", \"isLink\"]
116
+ ```
117
+
118
+ You can use the **fields JSON body parameter** to restrict the fields returned within a response if,
119
+ for example, you want to save on overall bandwidth.
120
+ This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
121
+ ```JSON
122
+ \"fields\": [\"id\", \"name\", \"search\"]
123
+ ```
124
+
125
+ You can sort the results using the **sort JSON body parameter**, for example:
126
+ ```JSON
127
+ \"sort\": [{\"type\":\"FIELD\", \"field\":\"cm:description\", \"ascending\":\"true\"}]
128
+ ```
129
+ **Note:** the **sort** parameter is not supported for CMIS queries.
130
+
131
+ By default, search uses the **\"nodes\" location**, which is the **content store known as
132
+ workspace://SpacesStore**.
133
+ To change the scope to another location you can use the **locations JSON body parameter**.
134
+ You can specify either **nodes** (the default), **versions** or **deleted-nodes**. For example:
135
+ ```JSON
136
+ \"scope\": {
137
+ \"locations\": [\"deleted-nodes\"]
138
+ }
139
+ ```
140
+ You can specify templates using the **templates JSON body parameter**, for example:
141
+ ```JSON
142
+ \"templates\": [{\"name\": \"_PERSON\",\"template\": \"|%firstName OR |%lastName OR |%userName\"},
143
+ {\"name\": \"mytemplate\",\"template\": \"%cm:content\"}]
144
+ ```
145
+
146
+ **Note: Spell checking only works on Search Services (Solr 6) if you have already enabled
147
+ suggestions.**
148
+
149
+ For **spell checking** you can use a query like this:
150
+ ```JSON
151
+ {
152
+ \"query\": {
153
+ \"query\": \"cm:title:alfrezco\"
154
+ },
155
+ \"spellcheck\": {\"query\": \"alfrezco\"}
156
+ }
157
+ ```
158
+
159
+ If you are already specifying \"userQuery\" then the following may be easier and produces the same
160
+ result :
161
+ ```JSON
162
+ {
163
+ \"query\": {
164
+ \"query\": \"cm:title:alfrezco\",
165
+ \"userQuery\": \"alfrezco\"
166
+ },
167
+ \"spellcheck\": {}
168
+ }
169
+ ```
170
+
171
+ The spellcheck response includes a spellCheck context like this:
172
+ ```JSON
173
+ \"context\": {
174
+ \"spellCheck\": {
175
+ \"type\": \"searchInsteadFor\",
176
+ \"suggestions\": [\"alfresco\"]
177
+ }
178
+ },
179
+ ```
180
+
181
+ To specify defaults, you use a **defaults JSON body parameter**, for example:
182
+ ```JSON
183
+ \"defaults\": {
184
+ \"textAttributes\": [
185
+ \"cm:content\", \"cm:name\"
186
+ ],
187
+ \"defaultFTSOperator\": \"AND\",
188
+ \"defaultFTSFieldOperator\": \"OR\",
189
+ \"namespace\": \"cm\",
190
+ \"defaultFieldName\": \"PATH\"
191
+ }
192
+ ```
193
+
194
+ You can specify several filter queries using the **filterQueries JSON body parameter**, for example:
195
+ ```JSON
196
+ \"filterQueries\": [{\"query\": \"TYPE:'cm:folder'\"},{\"query\": \"cm:creator:mjackson\"}]
197
+ ```
198
+
199
+ You can specify several facet queries using the **facetQueries JSON body parameter**, for example:
200
+ ```JSON
201
+ \"facetQueries\": [{\"query\": \"created:2016\",\"label\": \"CreatedThisYear\"}]
202
+ ```
203
+ The response will contain a matching \"context\" section, the \"label\" will match the facet query.
204
+ ```JSON
205
+ \"context\": {
206
+ \"facetQueries\": [
207
+ {\"label\": \"CreatedThisYear\",\"count\": 3}
208
+ ]
209
+ },
210
+ ```
211
+
212
+ A complete query for facetting via the content.size field looks this:
213
+ ```JSON
214
+ {
215
+ \"query\": {
216
+ \"query\": \"presentation\",
217
+ \"language\": \"afts\"
218
+ },
219
+ \"facetQueries\": [
220
+ {\"query\": \"content.size:[0 TO 10240]\", \"label\": \"xtra small\"},
221
+ {\"query\": \"content.size:[10240 TO 102400]\", \"label\": \"small\"},
222
+ {\"query\": \"content.size:[102400 TO 1048576]\", \"label\": \"medium\"},
223
+ {\"query\": \"content.size:[1048576 TO 16777216]\", \"label\": \"large\"},
224
+ {\"query\": \"content.size:[16777216 TO 134217728]\", \"label\": \"xtra large\"},
225
+ {\"query\": \"content.size:[134217728 TO MAX]\", \"label\": \"XX large\"}
226
+ ],
227
+ \"facetFields\": {\"facets\": [{\"field\": \"'content.size'\"}]}
228
+ }
229
+ ```
230
+
231
+ The response will contain a matching \"context\" section, the \"label\" will match the facet query.
232
+ ```JSON
233
+ \"context\": {
234
+ \"facetQueries\": [
235
+ { \"label\": \"small\",\"count\": 2 },
236
+ { \"label\": \"large\",\"count\": 0 },
237
+ { \"label\": \"xtra small\",\"count\": 5 },
238
+ { \"label\": \"xtra large\",\"count\": 56},
239
+ { \"label\": \"medium\",\"count\": 4 },
240
+ { \"label\": \"XX large\", \"count\": 1 }
241
+ ]
242
+ },
243
+ ```
244
+
245
+ You can specify several facet fields using the **facetFields JSON body parameter**, for example:
246
+ ```JSON
247
+ \"facetFields\": {\"facets\": [{\"field\": \"creator\", \"mincount\": 1}, {\"field\": \"modifier\",
248
+ \"mincount\": 1}]}
249
+ ```
250
+ The response will contain a matching \"context\" section, the \"label\" will match the facet field.
251
+ ```JSON
252
+ \"context\": {
253
+ \"facetsFields\": [
254
+ { \"label\": \"creator\",
255
+ \"buckets\": [
256
+ { \"label\": \"System\", \"count\": 75 },
257
+ { \"label\": \"mjackson\", \"count\": 5 }
258
+ ]},
259
+ { \"label\": \"modifier\",
260
+ \"buckets\": [
261
+ { \"label\": \"System\", \"count\": 72 },
262
+ { \"label\": \"mjackson\", \"count\": 5 },
263
+ { \"label\": \"admin\", \"count\": 3 }
264
+ ]}
265
+ ]
266
+ },
267
+ ```
268
+
269
+ Grouping facet queries that go together can be done by specifying the group label in the fact
270
+ queries as follow:
271
+ ```JSON
272
+ {
273
+ \"query\": {
274
+ \"query\": \"presentation\"
275
+ },
276
+ \"facetQueries\": [
277
+ {\"query\": \"content.size:[0 TO 102400]\", \"label\": \"small\", \"group\":\"foo\"},
278
+ {\"query\": \"content.size:[102400 TO 1048576]\", \"label\":
279
+ \"medium\",\"group\":\"foo\"},
280
+ {\"query\": \"content.size:[1048576 TO 16777216]\", \"label\":
281
+ \"large\",\"group\":\"foo\"}
282
+ ]
283
+ }
284
+ ```
285
+ The above query returns the results a faceted field grouped under the label foo:
286
+ ```JSON
287
+ {
288
+ \"context\": {\"facetsFields\": [{
289
+ \"label\": \"foo\",
290
+ \"buckets\": [
291
+ {
292
+ \"count\": 109,
293
+ \"label\": \"small\",
294
+ \"filterQuery\": \"content.size:[0 TO 102400]\"
295
+ },
296
+ {
297
+ \"count\": 0,
298
+ \"label\": \"large\",
299
+ \"filterQuery\": \"content.size:[1048576 TO 16777216]\"
300
+ },
301
+ {
302
+ \"count\": 0,
303
+ \"label\": \"medium\",
304
+ \"filterQuery\": \"content.size:[102400 TO 1048576]\"
305
+ }
306
+ ]
307
+ }]
308
+ }
309
+ ```
310
+ Range Faceting is supported by the **ranges JSON body parameter**, for example:
311
+ ```JSON
312
+ {
313
+ \"query\": {
314
+ \"query\": \"presentation\"
315
+ },
316
+ \"ranges\": [
317
+ {
318
+ \"field\": \"content.size\",
319
+ \"start\": \"0\",
320
+ \"end\": \"100\",
321
+ \"gap\": \"20\",
322
+ \"hardend\": true
323
+ },
324
+ {
325
+ \"field\": \"created\",
326
+ \"start\": \"2015-09-29T10:45:15.729Z\",
327
+ \"end\": \"2016-09-29T10:45:15.729Z\",
328
+ \"gap\": \"+100DAY\"
329
+ }]
330
+ }
331
+ ```
332
+ An example query for **search highlighting** could look like this:
333
+ ```JSON
334
+ {
335
+ \"query\": {
336
+ \"query\": \"description:workflow\",
337
+ \"userQuery\":\"workflow\"
338
+ },
339
+ \"highlight\": {
340
+ \"prefix\": \"¿\",
341
+ \"postfix\": \"?\",
342
+ \"mergeContiguous\": true,
343
+ \"fields\": [
344
+ {
345
+ \"field\": \"cm:title\"
346
+ },
347
+ {
348
+ \"field\": \"description\",
349
+ \"prefix\": \"(\",
350
+ \"postfix\": \")\"
351
+ }
352
+
353
+ ]
354
+ }
355
+ }
356
+ ```
357
+ The example above changes the highlighting prefix and postfix from the default `<em>` for all fields
358
+ to ¿? and just for the \"description\" field to ().
359
+ The hightlight information is added in each node entry response; here is an example partial
360
+ response:
361
+ ```
362
+ \"entry\": {
363
+ \"createdAt\": \"2016-10-12T15:24:31.202+0000\",
364
+ \"isFolder\": true,
365
+ \"search\": {
366
+ \"score\": 1,
367
+ \"highlight\": [
368
+ {
369
+ \"field\": \"cm:title\",
370
+ \"snippets\": [
371
+ \"Customized ¿Workflow? Process Definitions\"
372
+ ]
373
+ },
374
+ {
375
+ \"field\": \"description\",
376
+ \"snippets\": [
377
+ \"Customized (Workflow) Process Definitions\"
378
+ ]
379
+ }
380
+ ]
381
+ },
382
+ ```
383
+ **Note**: after the migration to Swagger UI 3, this API definition was triggering some warnings,
384
+ more info in [this StackOverflow Q&A](https://stackoverflow.com/q/65584131/1654265).
385
+
386
+ Args:
387
+ body (SearchRequest):
388
+
389
+ Raises:
390
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
391
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
392
+
393
+ Returns:
394
+ Response[ResultSetPaging]
395
+ """
396
+
397
+ kwargs = _get_kwargs(
398
+ body=body,
399
+ )
400
+
401
+ response = client.get_httpx_client().request(
402
+ **kwargs,
403
+ )
404
+
405
+ return _build_response(client=client, response=response)
406
+
407
+
408
+ def sync(
409
+ *,
410
+ client: Union[AuthenticatedClient, Client],
411
+ body: SearchRequest,
412
+ ) -> Optional[ResultSetPaging]:
413
+ r"""Searches Alfresco
414
+
415
+ **Note**: this endpoint is available in Alfresco 5.2 and newer versions.
416
+
417
+ **You specify all the parameters in this API in a JSON body**, URL parameters are not supported.
418
+ A basic query looks like this:
419
+
420
+ ```JSON
421
+ {
422
+ \"query\": {
423
+ \"query\": \"foo\"
424
+ }
425
+ }
426
+ ```
427
+
428
+ **Note:** These are the minimum possible query parameters.
429
+
430
+ The default search language is **afts** ([Alfresco Full Text
431
+ Search](http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-intro.html)), but you can also specify
432
+ **cmis**, and **lucene**.
433
+
434
+ A basic CMIS query looks like this:
435
+
436
+ ```JSON
437
+ {
438
+ \"query\": {
439
+ \"query\": \"select * from cmis:folder\",
440
+ \"language\": \"cmis\"
441
+ }
442
+ }
443
+ ```
444
+
445
+ By default, **results are limited to the first 100.**
446
+ Results can be restricted using \"paging\". For example:
447
+ ```JSON
448
+ \"paging\": {
449
+ \"maxItems\": \"50\",
450
+ \"skipCount\": \"28\"
451
+ }
452
+ ```
453
+ This example would ensure that results are **limited by Final Size**, skipping the first 28 results
454
+ and returning the next 50.
455
+
456
+ Alternatively, you can limit the results by using the **limits JSON body parameter**. For example,
457
+ ```JSON
458
+ \"limits\": {
459
+ \"permissionEvaluationTime\": 20000,
460
+ \"permissionEvaluationCount\": 2000
461
+ }
462
+ ```
463
+
464
+ You can use the **include JSON body parameter** to return additional information.
465
+ This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
466
+ ```JSON
467
+ \"include\": [\"aspectNames\", \"properties\", \"isLink\"]
468
+ ```
469
+
470
+ You can use the **fields JSON body parameter** to restrict the fields returned within a response if,
471
+ for example, you want to save on overall bandwidth.
472
+ This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
473
+ ```JSON
474
+ \"fields\": [\"id\", \"name\", \"search\"]
475
+ ```
476
+
477
+ You can sort the results using the **sort JSON body parameter**, for example:
478
+ ```JSON
479
+ \"sort\": [{\"type\":\"FIELD\", \"field\":\"cm:description\", \"ascending\":\"true\"}]
480
+ ```
481
+ **Note:** the **sort** parameter is not supported for CMIS queries.
482
+
483
+ By default, search uses the **\"nodes\" location**, which is the **content store known as
484
+ workspace://SpacesStore**.
485
+ To change the scope to another location you can use the **locations JSON body parameter**.
486
+ You can specify either **nodes** (the default), **versions** or **deleted-nodes**. For example:
487
+ ```JSON
488
+ \"scope\": {
489
+ \"locations\": [\"deleted-nodes\"]
490
+ }
491
+ ```
492
+ You can specify templates using the **templates JSON body parameter**, for example:
493
+ ```JSON
494
+ \"templates\": [{\"name\": \"_PERSON\",\"template\": \"|%firstName OR |%lastName OR |%userName\"},
495
+ {\"name\": \"mytemplate\",\"template\": \"%cm:content\"}]
496
+ ```
497
+
498
+ **Note: Spell checking only works on Search Services (Solr 6) if you have already enabled
499
+ suggestions.**
500
+
501
+ For **spell checking** you can use a query like this:
502
+ ```JSON
503
+ {
504
+ \"query\": {
505
+ \"query\": \"cm:title:alfrezco\"
506
+ },
507
+ \"spellcheck\": {\"query\": \"alfrezco\"}
508
+ }
509
+ ```
510
+
511
+ If you are already specifying \"userQuery\" then the following may be easier and produces the same
512
+ result :
513
+ ```JSON
514
+ {
515
+ \"query\": {
516
+ \"query\": \"cm:title:alfrezco\",
517
+ \"userQuery\": \"alfrezco\"
518
+ },
519
+ \"spellcheck\": {}
520
+ }
521
+ ```
522
+
523
+ The spellcheck response includes a spellCheck context like this:
524
+ ```JSON
525
+ \"context\": {
526
+ \"spellCheck\": {
527
+ \"type\": \"searchInsteadFor\",
528
+ \"suggestions\": [\"alfresco\"]
529
+ }
530
+ },
531
+ ```
532
+
533
+ To specify defaults, you use a **defaults JSON body parameter**, for example:
534
+ ```JSON
535
+ \"defaults\": {
536
+ \"textAttributes\": [
537
+ \"cm:content\", \"cm:name\"
538
+ ],
539
+ \"defaultFTSOperator\": \"AND\",
540
+ \"defaultFTSFieldOperator\": \"OR\",
541
+ \"namespace\": \"cm\",
542
+ \"defaultFieldName\": \"PATH\"
543
+ }
544
+ ```
545
+
546
+ You can specify several filter queries using the **filterQueries JSON body parameter**, for example:
547
+ ```JSON
548
+ \"filterQueries\": [{\"query\": \"TYPE:'cm:folder'\"},{\"query\": \"cm:creator:mjackson\"}]
549
+ ```
550
+
551
+ You can specify several facet queries using the **facetQueries JSON body parameter**, for example:
552
+ ```JSON
553
+ \"facetQueries\": [{\"query\": \"created:2016\",\"label\": \"CreatedThisYear\"}]
554
+ ```
555
+ The response will contain a matching \"context\" section, the \"label\" will match the facet query.
556
+ ```JSON
557
+ \"context\": {
558
+ \"facetQueries\": [
559
+ {\"label\": \"CreatedThisYear\",\"count\": 3}
560
+ ]
561
+ },
562
+ ```
563
+
564
+ A complete query for facetting via the content.size field looks this:
565
+ ```JSON
566
+ {
567
+ \"query\": {
568
+ \"query\": \"presentation\",
569
+ \"language\": \"afts\"
570
+ },
571
+ \"facetQueries\": [
572
+ {\"query\": \"content.size:[0 TO 10240]\", \"label\": \"xtra small\"},
573
+ {\"query\": \"content.size:[10240 TO 102400]\", \"label\": \"small\"},
574
+ {\"query\": \"content.size:[102400 TO 1048576]\", \"label\": \"medium\"},
575
+ {\"query\": \"content.size:[1048576 TO 16777216]\", \"label\": \"large\"},
576
+ {\"query\": \"content.size:[16777216 TO 134217728]\", \"label\": \"xtra large\"},
577
+ {\"query\": \"content.size:[134217728 TO MAX]\", \"label\": \"XX large\"}
578
+ ],
579
+ \"facetFields\": {\"facets\": [{\"field\": \"'content.size'\"}]}
580
+ }
581
+ ```
582
+
583
+ The response will contain a matching \"context\" section, the \"label\" will match the facet query.
584
+ ```JSON
585
+ \"context\": {
586
+ \"facetQueries\": [
587
+ { \"label\": \"small\",\"count\": 2 },
588
+ { \"label\": \"large\",\"count\": 0 },
589
+ { \"label\": \"xtra small\",\"count\": 5 },
590
+ { \"label\": \"xtra large\",\"count\": 56},
591
+ { \"label\": \"medium\",\"count\": 4 },
592
+ { \"label\": \"XX large\", \"count\": 1 }
593
+ ]
594
+ },
595
+ ```
596
+
597
+ You can specify several facet fields using the **facetFields JSON body parameter**, for example:
598
+ ```JSON
599
+ \"facetFields\": {\"facets\": [{\"field\": \"creator\", \"mincount\": 1}, {\"field\": \"modifier\",
600
+ \"mincount\": 1}]}
601
+ ```
602
+ The response will contain a matching \"context\" section, the \"label\" will match the facet field.
603
+ ```JSON
604
+ \"context\": {
605
+ \"facetsFields\": [
606
+ { \"label\": \"creator\",
607
+ \"buckets\": [
608
+ { \"label\": \"System\", \"count\": 75 },
609
+ { \"label\": \"mjackson\", \"count\": 5 }
610
+ ]},
611
+ { \"label\": \"modifier\",
612
+ \"buckets\": [
613
+ { \"label\": \"System\", \"count\": 72 },
614
+ { \"label\": \"mjackson\", \"count\": 5 },
615
+ { \"label\": \"admin\", \"count\": 3 }
616
+ ]}
617
+ ]
618
+ },
619
+ ```
620
+
621
+ Grouping facet queries that go together can be done by specifying the group label in the fact
622
+ queries as follow:
623
+ ```JSON
624
+ {
625
+ \"query\": {
626
+ \"query\": \"presentation\"
627
+ },
628
+ \"facetQueries\": [
629
+ {\"query\": \"content.size:[0 TO 102400]\", \"label\": \"small\", \"group\":\"foo\"},
630
+ {\"query\": \"content.size:[102400 TO 1048576]\", \"label\":
631
+ \"medium\",\"group\":\"foo\"},
632
+ {\"query\": \"content.size:[1048576 TO 16777216]\", \"label\":
633
+ \"large\",\"group\":\"foo\"}
634
+ ]
635
+ }
636
+ ```
637
+ The above query returns the results a faceted field grouped under the label foo:
638
+ ```JSON
639
+ {
640
+ \"context\": {\"facetsFields\": [{
641
+ \"label\": \"foo\",
642
+ \"buckets\": [
643
+ {
644
+ \"count\": 109,
645
+ \"label\": \"small\",
646
+ \"filterQuery\": \"content.size:[0 TO 102400]\"
647
+ },
648
+ {
649
+ \"count\": 0,
650
+ \"label\": \"large\",
651
+ \"filterQuery\": \"content.size:[1048576 TO 16777216]\"
652
+ },
653
+ {
654
+ \"count\": 0,
655
+ \"label\": \"medium\",
656
+ \"filterQuery\": \"content.size:[102400 TO 1048576]\"
657
+ }
658
+ ]
659
+ }]
660
+ }
661
+ ```
662
+ Range Faceting is supported by the **ranges JSON body parameter**, for example:
663
+ ```JSON
664
+ {
665
+ \"query\": {
666
+ \"query\": \"presentation\"
667
+ },
668
+ \"ranges\": [
669
+ {
670
+ \"field\": \"content.size\",
671
+ \"start\": \"0\",
672
+ \"end\": \"100\",
673
+ \"gap\": \"20\",
674
+ \"hardend\": true
675
+ },
676
+ {
677
+ \"field\": \"created\",
678
+ \"start\": \"2015-09-29T10:45:15.729Z\",
679
+ \"end\": \"2016-09-29T10:45:15.729Z\",
680
+ \"gap\": \"+100DAY\"
681
+ }]
682
+ }
683
+ ```
684
+ An example query for **search highlighting** could look like this:
685
+ ```JSON
686
+ {
687
+ \"query\": {
688
+ \"query\": \"description:workflow\",
689
+ \"userQuery\":\"workflow\"
690
+ },
691
+ \"highlight\": {
692
+ \"prefix\": \"¿\",
693
+ \"postfix\": \"?\",
694
+ \"mergeContiguous\": true,
695
+ \"fields\": [
696
+ {
697
+ \"field\": \"cm:title\"
698
+ },
699
+ {
700
+ \"field\": \"description\",
701
+ \"prefix\": \"(\",
702
+ \"postfix\": \")\"
703
+ }
704
+
705
+ ]
706
+ }
707
+ }
708
+ ```
709
+ The example above changes the highlighting prefix and postfix from the default `<em>` for all fields
710
+ to ¿? and just for the \"description\" field to ().
711
+ The hightlight information is added in each node entry response; here is an example partial
712
+ response:
713
+ ```
714
+ \"entry\": {
715
+ \"createdAt\": \"2016-10-12T15:24:31.202+0000\",
716
+ \"isFolder\": true,
717
+ \"search\": {
718
+ \"score\": 1,
719
+ \"highlight\": [
720
+ {
721
+ \"field\": \"cm:title\",
722
+ \"snippets\": [
723
+ \"Customized ¿Workflow? Process Definitions\"
724
+ ]
725
+ },
726
+ {
727
+ \"field\": \"description\",
728
+ \"snippets\": [
729
+ \"Customized (Workflow) Process Definitions\"
730
+ ]
731
+ }
732
+ ]
733
+ },
734
+ ```
735
+ **Note**: after the migration to Swagger UI 3, this API definition was triggering some warnings,
736
+ more info in [this StackOverflow Q&A](https://stackoverflow.com/q/65584131/1654265).
737
+
738
+ Args:
739
+ body (SearchRequest):
740
+
741
+ Raises:
742
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
743
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
744
+
745
+ Returns:
746
+ ResultSetPaging
747
+ """
748
+
749
+ return sync_detailed(
750
+ client=client,
751
+ body=body,
752
+ ).parsed
753
+
754
+
755
+ async def asyncio_detailed(
756
+ *,
757
+ client: Union[AuthenticatedClient, Client],
758
+ body: SearchRequest,
759
+ ) -> Response[ResultSetPaging]:
760
+ r"""Searches Alfresco
761
+
762
+ **Note**: this endpoint is available in Alfresco 5.2 and newer versions.
763
+
764
+ **You specify all the parameters in this API in a JSON body**, URL parameters are not supported.
765
+ A basic query looks like this:
766
+
767
+ ```JSON
768
+ {
769
+ \"query\": {
770
+ \"query\": \"foo\"
771
+ }
772
+ }
773
+ ```
774
+
775
+ **Note:** These are the minimum possible query parameters.
776
+
777
+ The default search language is **afts** ([Alfresco Full Text
778
+ Search](http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-intro.html)), but you can also specify
779
+ **cmis**, and **lucene**.
780
+
781
+ A basic CMIS query looks like this:
782
+
783
+ ```JSON
784
+ {
785
+ \"query\": {
786
+ \"query\": \"select * from cmis:folder\",
787
+ \"language\": \"cmis\"
788
+ }
789
+ }
790
+ ```
791
+
792
+ By default, **results are limited to the first 100.**
793
+ Results can be restricted using \"paging\". For example:
794
+ ```JSON
795
+ \"paging\": {
796
+ \"maxItems\": \"50\",
797
+ \"skipCount\": \"28\"
798
+ }
799
+ ```
800
+ This example would ensure that results are **limited by Final Size**, skipping the first 28 results
801
+ and returning the next 50.
802
+
803
+ Alternatively, you can limit the results by using the **limits JSON body parameter**. For example,
804
+ ```JSON
805
+ \"limits\": {
806
+ \"permissionEvaluationTime\": 20000,
807
+ \"permissionEvaluationCount\": 2000
808
+ }
809
+ ```
810
+
811
+ You can use the **include JSON body parameter** to return additional information.
812
+ This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
813
+ ```JSON
814
+ \"include\": [\"aspectNames\", \"properties\", \"isLink\"]
815
+ ```
816
+
817
+ You can use the **fields JSON body parameter** to restrict the fields returned within a response if,
818
+ for example, you want to save on overall bandwidth.
819
+ This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
820
+ ```JSON
821
+ \"fields\": [\"id\", \"name\", \"search\"]
822
+ ```
823
+
824
+ You can sort the results using the **sort JSON body parameter**, for example:
825
+ ```JSON
826
+ \"sort\": [{\"type\":\"FIELD\", \"field\":\"cm:description\", \"ascending\":\"true\"}]
827
+ ```
828
+ **Note:** the **sort** parameter is not supported for CMIS queries.
829
+
830
+ By default, search uses the **\"nodes\" location**, which is the **content store known as
831
+ workspace://SpacesStore**.
832
+ To change the scope to another location you can use the **locations JSON body parameter**.
833
+ You can specify either **nodes** (the default), **versions** or **deleted-nodes**. For example:
834
+ ```JSON
835
+ \"scope\": {
836
+ \"locations\": [\"deleted-nodes\"]
837
+ }
838
+ ```
839
+ You can specify templates using the **templates JSON body parameter**, for example:
840
+ ```JSON
841
+ \"templates\": [{\"name\": \"_PERSON\",\"template\": \"|%firstName OR |%lastName OR |%userName\"},
842
+ {\"name\": \"mytemplate\",\"template\": \"%cm:content\"}]
843
+ ```
844
+
845
+ **Note: Spell checking only works on Search Services (Solr 6) if you have already enabled
846
+ suggestions.**
847
+
848
+ For **spell checking** you can use a query like this:
849
+ ```JSON
850
+ {
851
+ \"query\": {
852
+ \"query\": \"cm:title:alfrezco\"
853
+ },
854
+ \"spellcheck\": {\"query\": \"alfrezco\"}
855
+ }
856
+ ```
857
+
858
+ If you are already specifying \"userQuery\" then the following may be easier and produces the same
859
+ result :
860
+ ```JSON
861
+ {
862
+ \"query\": {
863
+ \"query\": \"cm:title:alfrezco\",
864
+ \"userQuery\": \"alfrezco\"
865
+ },
866
+ \"spellcheck\": {}
867
+ }
868
+ ```
869
+
870
+ The spellcheck response includes a spellCheck context like this:
871
+ ```JSON
872
+ \"context\": {
873
+ \"spellCheck\": {
874
+ \"type\": \"searchInsteadFor\",
875
+ \"suggestions\": [\"alfresco\"]
876
+ }
877
+ },
878
+ ```
879
+
880
+ To specify defaults, you use a **defaults JSON body parameter**, for example:
881
+ ```JSON
882
+ \"defaults\": {
883
+ \"textAttributes\": [
884
+ \"cm:content\", \"cm:name\"
885
+ ],
886
+ \"defaultFTSOperator\": \"AND\",
887
+ \"defaultFTSFieldOperator\": \"OR\",
888
+ \"namespace\": \"cm\",
889
+ \"defaultFieldName\": \"PATH\"
890
+ }
891
+ ```
892
+
893
+ You can specify several filter queries using the **filterQueries JSON body parameter**, for example:
894
+ ```JSON
895
+ \"filterQueries\": [{\"query\": \"TYPE:'cm:folder'\"},{\"query\": \"cm:creator:mjackson\"}]
896
+ ```
897
+
898
+ You can specify several facet queries using the **facetQueries JSON body parameter**, for example:
899
+ ```JSON
900
+ \"facetQueries\": [{\"query\": \"created:2016\",\"label\": \"CreatedThisYear\"}]
901
+ ```
902
+ The response will contain a matching \"context\" section, the \"label\" will match the facet query.
903
+ ```JSON
904
+ \"context\": {
905
+ \"facetQueries\": [
906
+ {\"label\": \"CreatedThisYear\",\"count\": 3}
907
+ ]
908
+ },
909
+ ```
910
+
911
+ A complete query for facetting via the content.size field looks this:
912
+ ```JSON
913
+ {
914
+ \"query\": {
915
+ \"query\": \"presentation\",
916
+ \"language\": \"afts\"
917
+ },
918
+ \"facetQueries\": [
919
+ {\"query\": \"content.size:[0 TO 10240]\", \"label\": \"xtra small\"},
920
+ {\"query\": \"content.size:[10240 TO 102400]\", \"label\": \"small\"},
921
+ {\"query\": \"content.size:[102400 TO 1048576]\", \"label\": \"medium\"},
922
+ {\"query\": \"content.size:[1048576 TO 16777216]\", \"label\": \"large\"},
923
+ {\"query\": \"content.size:[16777216 TO 134217728]\", \"label\": \"xtra large\"},
924
+ {\"query\": \"content.size:[134217728 TO MAX]\", \"label\": \"XX large\"}
925
+ ],
926
+ \"facetFields\": {\"facets\": [{\"field\": \"'content.size'\"}]}
927
+ }
928
+ ```
929
+
930
+ The response will contain a matching \"context\" section, the \"label\" will match the facet query.
931
+ ```JSON
932
+ \"context\": {
933
+ \"facetQueries\": [
934
+ { \"label\": \"small\",\"count\": 2 },
935
+ { \"label\": \"large\",\"count\": 0 },
936
+ { \"label\": \"xtra small\",\"count\": 5 },
937
+ { \"label\": \"xtra large\",\"count\": 56},
938
+ { \"label\": \"medium\",\"count\": 4 },
939
+ { \"label\": \"XX large\", \"count\": 1 }
940
+ ]
941
+ },
942
+ ```
943
+
944
+ You can specify several facet fields using the **facetFields JSON body parameter**, for example:
945
+ ```JSON
946
+ \"facetFields\": {\"facets\": [{\"field\": \"creator\", \"mincount\": 1}, {\"field\": \"modifier\",
947
+ \"mincount\": 1}]}
948
+ ```
949
+ The response will contain a matching \"context\" section, the \"label\" will match the facet field.
950
+ ```JSON
951
+ \"context\": {
952
+ \"facetsFields\": [
953
+ { \"label\": \"creator\",
954
+ \"buckets\": [
955
+ { \"label\": \"System\", \"count\": 75 },
956
+ { \"label\": \"mjackson\", \"count\": 5 }
957
+ ]},
958
+ { \"label\": \"modifier\",
959
+ \"buckets\": [
960
+ { \"label\": \"System\", \"count\": 72 },
961
+ { \"label\": \"mjackson\", \"count\": 5 },
962
+ { \"label\": \"admin\", \"count\": 3 }
963
+ ]}
964
+ ]
965
+ },
966
+ ```
967
+
968
+ Grouping facet queries that go together can be done by specifying the group label in the fact
969
+ queries as follow:
970
+ ```JSON
971
+ {
972
+ \"query\": {
973
+ \"query\": \"presentation\"
974
+ },
975
+ \"facetQueries\": [
976
+ {\"query\": \"content.size:[0 TO 102400]\", \"label\": \"small\", \"group\":\"foo\"},
977
+ {\"query\": \"content.size:[102400 TO 1048576]\", \"label\":
978
+ \"medium\",\"group\":\"foo\"},
979
+ {\"query\": \"content.size:[1048576 TO 16777216]\", \"label\":
980
+ \"large\",\"group\":\"foo\"}
981
+ ]
982
+ }
983
+ ```
984
+ The above query returns the results a faceted field grouped under the label foo:
985
+ ```JSON
986
+ {
987
+ \"context\": {\"facetsFields\": [{
988
+ \"label\": \"foo\",
989
+ \"buckets\": [
990
+ {
991
+ \"count\": 109,
992
+ \"label\": \"small\",
993
+ \"filterQuery\": \"content.size:[0 TO 102400]\"
994
+ },
995
+ {
996
+ \"count\": 0,
997
+ \"label\": \"large\",
998
+ \"filterQuery\": \"content.size:[1048576 TO 16777216]\"
999
+ },
1000
+ {
1001
+ \"count\": 0,
1002
+ \"label\": \"medium\",
1003
+ \"filterQuery\": \"content.size:[102400 TO 1048576]\"
1004
+ }
1005
+ ]
1006
+ }]
1007
+ }
1008
+ ```
1009
+ Range Faceting is supported by the **ranges JSON body parameter**, for example:
1010
+ ```JSON
1011
+ {
1012
+ \"query\": {
1013
+ \"query\": \"presentation\"
1014
+ },
1015
+ \"ranges\": [
1016
+ {
1017
+ \"field\": \"content.size\",
1018
+ \"start\": \"0\",
1019
+ \"end\": \"100\",
1020
+ \"gap\": \"20\",
1021
+ \"hardend\": true
1022
+ },
1023
+ {
1024
+ \"field\": \"created\",
1025
+ \"start\": \"2015-09-29T10:45:15.729Z\",
1026
+ \"end\": \"2016-09-29T10:45:15.729Z\",
1027
+ \"gap\": \"+100DAY\"
1028
+ }]
1029
+ }
1030
+ ```
1031
+ An example query for **search highlighting** could look like this:
1032
+ ```JSON
1033
+ {
1034
+ \"query\": {
1035
+ \"query\": \"description:workflow\",
1036
+ \"userQuery\":\"workflow\"
1037
+ },
1038
+ \"highlight\": {
1039
+ \"prefix\": \"¿\",
1040
+ \"postfix\": \"?\",
1041
+ \"mergeContiguous\": true,
1042
+ \"fields\": [
1043
+ {
1044
+ \"field\": \"cm:title\"
1045
+ },
1046
+ {
1047
+ \"field\": \"description\",
1048
+ \"prefix\": \"(\",
1049
+ \"postfix\": \")\"
1050
+ }
1051
+
1052
+ ]
1053
+ }
1054
+ }
1055
+ ```
1056
+ The example above changes the highlighting prefix and postfix from the default `<em>` for all fields
1057
+ to ¿? and just for the \"description\" field to ().
1058
+ The hightlight information is added in each node entry response; here is an example partial
1059
+ response:
1060
+ ```
1061
+ \"entry\": {
1062
+ \"createdAt\": \"2016-10-12T15:24:31.202+0000\",
1063
+ \"isFolder\": true,
1064
+ \"search\": {
1065
+ \"score\": 1,
1066
+ \"highlight\": [
1067
+ {
1068
+ \"field\": \"cm:title\",
1069
+ \"snippets\": [
1070
+ \"Customized ¿Workflow? Process Definitions\"
1071
+ ]
1072
+ },
1073
+ {
1074
+ \"field\": \"description\",
1075
+ \"snippets\": [
1076
+ \"Customized (Workflow) Process Definitions\"
1077
+ ]
1078
+ }
1079
+ ]
1080
+ },
1081
+ ```
1082
+ **Note**: after the migration to Swagger UI 3, this API definition was triggering some warnings,
1083
+ more info in [this StackOverflow Q&A](https://stackoverflow.com/q/65584131/1654265).
1084
+
1085
+ Args:
1086
+ body (SearchRequest):
1087
+
1088
+ Raises:
1089
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
1090
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
1091
+
1092
+ Returns:
1093
+ Response[ResultSetPaging]
1094
+ """
1095
+
1096
+ kwargs = _get_kwargs(
1097
+ body=body,
1098
+ )
1099
+
1100
+ response = await client.get_async_httpx_client().request(**kwargs)
1101
+
1102
+ return _build_response(client=client, response=response)
1103
+
1104
+
1105
+ async def asyncio(
1106
+ *,
1107
+ client: Union[AuthenticatedClient, Client],
1108
+ body: SearchRequest,
1109
+ ) -> Optional[ResultSetPaging]:
1110
+ r"""Searches Alfresco
1111
+
1112
+ **Note**: this endpoint is available in Alfresco 5.2 and newer versions.
1113
+
1114
+ **You specify all the parameters in this API in a JSON body**, URL parameters are not supported.
1115
+ A basic query looks like this:
1116
+
1117
+ ```JSON
1118
+ {
1119
+ \"query\": {
1120
+ \"query\": \"foo\"
1121
+ }
1122
+ }
1123
+ ```
1124
+
1125
+ **Note:** These are the minimum possible query parameters.
1126
+
1127
+ The default search language is **afts** ([Alfresco Full Text
1128
+ Search](http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-intro.html)), but you can also specify
1129
+ **cmis**, and **lucene**.
1130
+
1131
+ A basic CMIS query looks like this:
1132
+
1133
+ ```JSON
1134
+ {
1135
+ \"query\": {
1136
+ \"query\": \"select * from cmis:folder\",
1137
+ \"language\": \"cmis\"
1138
+ }
1139
+ }
1140
+ ```
1141
+
1142
+ By default, **results are limited to the first 100.**
1143
+ Results can be restricted using \"paging\". For example:
1144
+ ```JSON
1145
+ \"paging\": {
1146
+ \"maxItems\": \"50\",
1147
+ \"skipCount\": \"28\"
1148
+ }
1149
+ ```
1150
+ This example would ensure that results are **limited by Final Size**, skipping the first 28 results
1151
+ and returning the next 50.
1152
+
1153
+ Alternatively, you can limit the results by using the **limits JSON body parameter**. For example,
1154
+ ```JSON
1155
+ \"limits\": {
1156
+ \"permissionEvaluationTime\": 20000,
1157
+ \"permissionEvaluationCount\": 2000
1158
+ }
1159
+ ```
1160
+
1161
+ You can use the **include JSON body parameter** to return additional information.
1162
+ This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
1163
+ ```JSON
1164
+ \"include\": [\"aspectNames\", \"properties\", \"isLink\"]
1165
+ ```
1166
+
1167
+ You can use the **fields JSON body parameter** to restrict the fields returned within a response if,
1168
+ for example, you want to save on overall bandwidth.
1169
+ This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
1170
+ ```JSON
1171
+ \"fields\": [\"id\", \"name\", \"search\"]
1172
+ ```
1173
+
1174
+ You can sort the results using the **sort JSON body parameter**, for example:
1175
+ ```JSON
1176
+ \"sort\": [{\"type\":\"FIELD\", \"field\":\"cm:description\", \"ascending\":\"true\"}]
1177
+ ```
1178
+ **Note:** the **sort** parameter is not supported for CMIS queries.
1179
+
1180
+ By default, search uses the **\"nodes\" location**, which is the **content store known as
1181
+ workspace://SpacesStore**.
1182
+ To change the scope to another location you can use the **locations JSON body parameter**.
1183
+ You can specify either **nodes** (the default), **versions** or **deleted-nodes**. For example:
1184
+ ```JSON
1185
+ \"scope\": {
1186
+ \"locations\": [\"deleted-nodes\"]
1187
+ }
1188
+ ```
1189
+ You can specify templates using the **templates JSON body parameter**, for example:
1190
+ ```JSON
1191
+ \"templates\": [{\"name\": \"_PERSON\",\"template\": \"|%firstName OR |%lastName OR |%userName\"},
1192
+ {\"name\": \"mytemplate\",\"template\": \"%cm:content\"}]
1193
+ ```
1194
+
1195
+ **Note: Spell checking only works on Search Services (Solr 6) if you have already enabled
1196
+ suggestions.**
1197
+
1198
+ For **spell checking** you can use a query like this:
1199
+ ```JSON
1200
+ {
1201
+ \"query\": {
1202
+ \"query\": \"cm:title:alfrezco\"
1203
+ },
1204
+ \"spellcheck\": {\"query\": \"alfrezco\"}
1205
+ }
1206
+ ```
1207
+
1208
+ If you are already specifying \"userQuery\" then the following may be easier and produces the same
1209
+ result :
1210
+ ```JSON
1211
+ {
1212
+ \"query\": {
1213
+ \"query\": \"cm:title:alfrezco\",
1214
+ \"userQuery\": \"alfrezco\"
1215
+ },
1216
+ \"spellcheck\": {}
1217
+ }
1218
+ ```
1219
+
1220
+ The spellcheck response includes a spellCheck context like this:
1221
+ ```JSON
1222
+ \"context\": {
1223
+ \"spellCheck\": {
1224
+ \"type\": \"searchInsteadFor\",
1225
+ \"suggestions\": [\"alfresco\"]
1226
+ }
1227
+ },
1228
+ ```
1229
+
1230
+ To specify defaults, you use a **defaults JSON body parameter**, for example:
1231
+ ```JSON
1232
+ \"defaults\": {
1233
+ \"textAttributes\": [
1234
+ \"cm:content\", \"cm:name\"
1235
+ ],
1236
+ \"defaultFTSOperator\": \"AND\",
1237
+ \"defaultFTSFieldOperator\": \"OR\",
1238
+ \"namespace\": \"cm\",
1239
+ \"defaultFieldName\": \"PATH\"
1240
+ }
1241
+ ```
1242
+
1243
+ You can specify several filter queries using the **filterQueries JSON body parameter**, for example:
1244
+ ```JSON
1245
+ \"filterQueries\": [{\"query\": \"TYPE:'cm:folder'\"},{\"query\": \"cm:creator:mjackson\"}]
1246
+ ```
1247
+
1248
+ You can specify several facet queries using the **facetQueries JSON body parameter**, for example:
1249
+ ```JSON
1250
+ \"facetQueries\": [{\"query\": \"created:2016\",\"label\": \"CreatedThisYear\"}]
1251
+ ```
1252
+ The response will contain a matching \"context\" section, the \"label\" will match the facet query.
1253
+ ```JSON
1254
+ \"context\": {
1255
+ \"facetQueries\": [
1256
+ {\"label\": \"CreatedThisYear\",\"count\": 3}
1257
+ ]
1258
+ },
1259
+ ```
1260
+
1261
+ A complete query for facetting via the content.size field looks this:
1262
+ ```JSON
1263
+ {
1264
+ \"query\": {
1265
+ \"query\": \"presentation\",
1266
+ \"language\": \"afts\"
1267
+ },
1268
+ \"facetQueries\": [
1269
+ {\"query\": \"content.size:[0 TO 10240]\", \"label\": \"xtra small\"},
1270
+ {\"query\": \"content.size:[10240 TO 102400]\", \"label\": \"small\"},
1271
+ {\"query\": \"content.size:[102400 TO 1048576]\", \"label\": \"medium\"},
1272
+ {\"query\": \"content.size:[1048576 TO 16777216]\", \"label\": \"large\"},
1273
+ {\"query\": \"content.size:[16777216 TO 134217728]\", \"label\": \"xtra large\"},
1274
+ {\"query\": \"content.size:[134217728 TO MAX]\", \"label\": \"XX large\"}
1275
+ ],
1276
+ \"facetFields\": {\"facets\": [{\"field\": \"'content.size'\"}]}
1277
+ }
1278
+ ```
1279
+
1280
+ The response will contain a matching \"context\" section, the \"label\" will match the facet query.
1281
+ ```JSON
1282
+ \"context\": {
1283
+ \"facetQueries\": [
1284
+ { \"label\": \"small\",\"count\": 2 },
1285
+ { \"label\": \"large\",\"count\": 0 },
1286
+ { \"label\": \"xtra small\",\"count\": 5 },
1287
+ { \"label\": \"xtra large\",\"count\": 56},
1288
+ { \"label\": \"medium\",\"count\": 4 },
1289
+ { \"label\": \"XX large\", \"count\": 1 }
1290
+ ]
1291
+ },
1292
+ ```
1293
+
1294
+ You can specify several facet fields using the **facetFields JSON body parameter**, for example:
1295
+ ```JSON
1296
+ \"facetFields\": {\"facets\": [{\"field\": \"creator\", \"mincount\": 1}, {\"field\": \"modifier\",
1297
+ \"mincount\": 1}]}
1298
+ ```
1299
+ The response will contain a matching \"context\" section, the \"label\" will match the facet field.
1300
+ ```JSON
1301
+ \"context\": {
1302
+ \"facetsFields\": [
1303
+ { \"label\": \"creator\",
1304
+ \"buckets\": [
1305
+ { \"label\": \"System\", \"count\": 75 },
1306
+ { \"label\": \"mjackson\", \"count\": 5 }
1307
+ ]},
1308
+ { \"label\": \"modifier\",
1309
+ \"buckets\": [
1310
+ { \"label\": \"System\", \"count\": 72 },
1311
+ { \"label\": \"mjackson\", \"count\": 5 },
1312
+ { \"label\": \"admin\", \"count\": 3 }
1313
+ ]}
1314
+ ]
1315
+ },
1316
+ ```
1317
+
1318
+ Grouping facet queries that go together can be done by specifying the group label in the fact
1319
+ queries as follow:
1320
+ ```JSON
1321
+ {
1322
+ \"query\": {
1323
+ \"query\": \"presentation\"
1324
+ },
1325
+ \"facetQueries\": [
1326
+ {\"query\": \"content.size:[0 TO 102400]\", \"label\": \"small\", \"group\":\"foo\"},
1327
+ {\"query\": \"content.size:[102400 TO 1048576]\", \"label\":
1328
+ \"medium\",\"group\":\"foo\"},
1329
+ {\"query\": \"content.size:[1048576 TO 16777216]\", \"label\":
1330
+ \"large\",\"group\":\"foo\"}
1331
+ ]
1332
+ }
1333
+ ```
1334
+ The above query returns the results a faceted field grouped under the label foo:
1335
+ ```JSON
1336
+ {
1337
+ \"context\": {\"facetsFields\": [{
1338
+ \"label\": \"foo\",
1339
+ \"buckets\": [
1340
+ {
1341
+ \"count\": 109,
1342
+ \"label\": \"small\",
1343
+ \"filterQuery\": \"content.size:[0 TO 102400]\"
1344
+ },
1345
+ {
1346
+ \"count\": 0,
1347
+ \"label\": \"large\",
1348
+ \"filterQuery\": \"content.size:[1048576 TO 16777216]\"
1349
+ },
1350
+ {
1351
+ \"count\": 0,
1352
+ \"label\": \"medium\",
1353
+ \"filterQuery\": \"content.size:[102400 TO 1048576]\"
1354
+ }
1355
+ ]
1356
+ }]
1357
+ }
1358
+ ```
1359
+ Range Faceting is supported by the **ranges JSON body parameter**, for example:
1360
+ ```JSON
1361
+ {
1362
+ \"query\": {
1363
+ \"query\": \"presentation\"
1364
+ },
1365
+ \"ranges\": [
1366
+ {
1367
+ \"field\": \"content.size\",
1368
+ \"start\": \"0\",
1369
+ \"end\": \"100\",
1370
+ \"gap\": \"20\",
1371
+ \"hardend\": true
1372
+ },
1373
+ {
1374
+ \"field\": \"created\",
1375
+ \"start\": \"2015-09-29T10:45:15.729Z\",
1376
+ \"end\": \"2016-09-29T10:45:15.729Z\",
1377
+ \"gap\": \"+100DAY\"
1378
+ }]
1379
+ }
1380
+ ```
1381
+ An example query for **search highlighting** could look like this:
1382
+ ```JSON
1383
+ {
1384
+ \"query\": {
1385
+ \"query\": \"description:workflow\",
1386
+ \"userQuery\":\"workflow\"
1387
+ },
1388
+ \"highlight\": {
1389
+ \"prefix\": \"¿\",
1390
+ \"postfix\": \"?\",
1391
+ \"mergeContiguous\": true,
1392
+ \"fields\": [
1393
+ {
1394
+ \"field\": \"cm:title\"
1395
+ },
1396
+ {
1397
+ \"field\": \"description\",
1398
+ \"prefix\": \"(\",
1399
+ \"postfix\": \")\"
1400
+ }
1401
+
1402
+ ]
1403
+ }
1404
+ }
1405
+ ```
1406
+ The example above changes the highlighting prefix and postfix from the default `<em>` for all fields
1407
+ to ¿? and just for the \"description\" field to ().
1408
+ The hightlight information is added in each node entry response; here is an example partial
1409
+ response:
1410
+ ```
1411
+ \"entry\": {
1412
+ \"createdAt\": \"2016-10-12T15:24:31.202+0000\",
1413
+ \"isFolder\": true,
1414
+ \"search\": {
1415
+ \"score\": 1,
1416
+ \"highlight\": [
1417
+ {
1418
+ \"field\": \"cm:title\",
1419
+ \"snippets\": [
1420
+ \"Customized ¿Workflow? Process Definitions\"
1421
+ ]
1422
+ },
1423
+ {
1424
+ \"field\": \"description\",
1425
+ \"snippets\": [
1426
+ \"Customized (Workflow) Process Definitions\"
1427
+ ]
1428
+ }
1429
+ ]
1430
+ },
1431
+ ```
1432
+ **Note**: after the migration to Swagger UI 3, this API definition was triggering some warnings,
1433
+ more info in [this StackOverflow Q&A](https://stackoverflow.com/q/65584131/1654265).
1434
+
1435
+ Args:
1436
+ body (SearchRequest):
1437
+
1438
+ Raises:
1439
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
1440
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
1441
+
1442
+ Returns:
1443
+ ResultSetPaging
1444
+ """
1445
+
1446
+ return (
1447
+ await asyncio_detailed(
1448
+ client=client,
1449
+ body=body,
1450
+ )
1451
+ ).parsed