temper-rb 0.5.4 → 0.6.1

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 (487) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -0
  3. data/lib/temper/compat.rb +45 -0
  4. data/lib/temper/generated/api/access_api.rb +1 -1
  5. data/lib/temper/generated/api/admin_api.rb +2276 -0
  6. data/lib/temper/generated/api/admin_ledger_api.rb +98 -0
  7. data/lib/temper/generated/api/auditor_api.rb +2 -2
  8. data/lib/temper/generated/api/blobs_api.rb +16 -16
  9. data/lib/temper/generated/api/cognitive_maps_api.rb +20 -20
  10. data/lib/temper/generated/api/connections_api.rb +709 -0
  11. data/lib/temper/generated/api/contexts_api.rb +84 -13
  12. data/lib/temper/generated/api/data_artifact_shapes_api.rb +155 -4
  13. data/lib/temper/generated/api/data_artifacts_api.rb +74 -4
  14. data/lib/temper/generated/api/events_api.rb +3 -3
  15. data/lib/temper/generated/api/facets_api.rb +29 -22
  16. data/lib/temper/generated/api/graph_api.rb +3 -3
  17. data/lib/temper/generated/api/health_api.rb +1 -1
  18. data/lib/temper/generated/api/ingest_api.rb +7 -5
  19. data/lib/temper/generated/api/invitations_api.rb +10 -6
  20. data/lib/temper/generated/api/invocations_api.rb +3 -3
  21. data/lib/temper/generated/api/machine_clients_api.rb +460 -0
  22. data/lib/temper/generated/api/meta_api.rb +3 -3
  23. data/lib/temper/generated/api/profile_api.rb +1 -1
  24. data/lib/temper/generated/api/query_api.rb +1 -1
  25. data/lib/temper/generated/api/reblocking_api.rb +1 -1
  26. data/lib/temper/generated/api/relationships_api.rb +4 -4
  27. data/lib/temper/generated/api/resources_api.rb +27 -27
  28. data/lib/temper/generated/api/schema_api.rb +2 -2
  29. data/lib/temper/generated/api/search_api.rb +1 -1
  30. data/lib/temper/generated/api/slack_link_api.rb +1 -1
  31. data/lib/temper/generated/api/steward_api.rb +3 -3
  32. data/lib/temper/generated/api/subscriptions_api.rb +307 -0
  33. data/lib/temper/generated/api/teams_api.rb +10 -8
  34. data/lib/temper/generated/api_client.rb +4 -1
  35. data/lib/temper/generated/api_error.rb +1 -1
  36. data/lib/temper/generated/api_model_base.rb +1 -1
  37. data/lib/temper/generated/configuration.rb +1 -1
  38. data/lib/temper/generated/models/accept_invitation_response.rb +1 -1
  39. data/lib/temper/generated/models/act_input.rb +5 -5
  40. data/lib/temper/generated/models/act_invocation.rb +21 -2
  41. data/lib/temper/generated/models/act_name.rb +1 -1
  42. data/lib/temper/generated/models/act_quantity.rb +1 -1
  43. data/lib/temper/generated/models/act_refusal.rb +1 -1
  44. data/lib/temper/generated/models/actor_authority.rb +1 -1
  45. data/lib/temper/generated/models/add_member_request.rb +1 -1
  46. data/lib/temper/generated/models/admin_directory_entry.rb +368 -0
  47. data/lib/temper/generated/models/admin_directory_list_response.rb +194 -0
  48. data/lib/temper/generated/models/admin_ledger_entry.rb +319 -0
  49. data/lib/temper/generated/models/admin_ledger_response.rb +177 -0
  50. data/lib/temper/generated/models/admin_open_join_request.rb +201 -0
  51. data/lib/temper/generated/models/admin_open_review_request.rb +191 -0
  52. data/lib/temper/generated/models/admin_profile_auth_link.rb +254 -0
  53. data/lib/temper/generated/models/admin_profile_card.rb +434 -0
  54. data/lib/temper/generated/models/admin_profile_invitation.rb +295 -0
  55. data/lib/temper/generated/models/admin_profile_team_membership.rb +191 -0
  56. data/lib/temper/generated/models/admin_profiles_list_answer.rb +105 -0
  57. data/lib/temper/generated/models/advance_watermark_ack.rb +1 -1
  58. data/lib/temper/generated/models/advance_watermark_request.rb +1 -1
  59. data/lib/temper/generated/models/agent_authorship.rb +1 -1
  60. data/lib/temper/generated/models/anchor_address_resolution.rb +1 -1
  61. data/lib/temper/generated/models/anchor_address_resolution_one_of.rb +1 -1
  62. data/lib/temper/generated/models/anchor_address_resolution_one_of1.rb +1 -1
  63. data/lib/temper/generated/models/anchor_address_resolution_one_of2.rb +1 -1
  64. data/lib/temper/generated/models/anchor_shape.rb +1 -1
  65. data/lib/temper/generated/models/anchor_verdict.rb +1 -1
  66. data/lib/temper/generated/models/append_block_payload.rb +1 -1
  67. data/lib/temper/generated/models/artifact_commit_request.rb +5 -5
  68. data/lib/temper/generated/models/artifact_commit_response.rb +1 -1
  69. data/lib/temper/generated/models/artifact_view.rb +1 -1
  70. data/lib/temper/generated/models/assert_relationship_request.rb +5 -5
  71. data/lib/temper/generated/models/atlas_edge.rb +1 -1
  72. data/lib/temper/generated/models/atlas_entry.rb +1 -1
  73. data/lib/temper/generated/models/atlas_home.rb +1 -1
  74. data/lib/temper/generated/models/atlas_node.rb +1 -1
  75. data/lib/temper/generated/models/atlas_subgraph.rb +1 -1
  76. data/lib/temper/generated/models/attach_credential_response.rb +191 -0
  77. data/lib/temper/generated/models/audit_citation.rb +1 -1
  78. data/lib/temper/generated/models/audit_sweep_row.rb +3 -3
  79. data/lib/temper/generated/models/auditor_dispatch_tick_request.rb +1 -1
  80. data/lib/temper/generated/models/auditor_dispatch_tick_response.rb +1 -1
  81. data/lib/temper/generated/models/auditor_job_complete_ack.rb +1 -1
  82. data/lib/temper/generated/models/auto_join_reconcile_row.rb +191 -0
  83. data/lib/temper/generated/models/bind_team_outcome.rb +1 -1
  84. data/lib/temper/generated/models/bind_team_request.rb +1 -1
  85. data/lib/temper/generated/models/blob_co_links.rb +195 -0
  86. data/lib/temper/generated/models/blob_commit_response.rb +1 -1
  87. data/lib/temper/generated/models/blob_delete_ack.rb +1 -1
  88. data/lib/temper/generated/models/blob_relation_ack.rb +1 -1
  89. data/lib/temper/generated/models/blob_relation_assert_request.rb +5 -5
  90. data/lib/temper/generated/models/blob_relation_direction.rb +1 -1
  91. data/lib/temper/generated/models/blob_relation_edge_direction.rb +1 -1
  92. data/lib/temper/generated/models/blob_relation_row.rb +1 -1
  93. data/lib/temper/generated/models/blob_strike_view.rb +191 -0
  94. data/lib/temper/generated/models/blob_summary.rb +1 -1
  95. data/lib/temper/generated/models/blob_upload_begin_request.rb +1 -1
  96. data/lib/temper/generated/models/blob_upload_begin_response.rb +1 -1
  97. data/lib/temper/generated/models/blob_upload_finalize_request.rb +1 -1
  98. data/lib/temper/generated/models/blob_upload_progress.rb +1 -1
  99. data/lib/temper/generated/models/blob_upload_segment_info.rb +1 -1
  100. data/lib/temper/generated/models/block_chunk_ref.rb +1 -1
  101. data/lib/temper/generated/models/block_citation_audit_request.rb +5 -5
  102. data/lib/temper/generated/models/block_fold_disposition.rb +1 -1
  103. data/lib/temper/generated/models/block_fold_disposition_one_of.rb +1 -1
  104. data/lib/temper/generated/models/block_fold_disposition_one_of1.rb +1 -1
  105. data/lib/temper/generated/models/block_fold_disposition_one_of2.rb +1 -1
  106. data/lib/temper/generated/models/block_history_scrub_execute_response.rb +105 -0
  107. data/lib/temper/generated/models/block_history_scrub_execute_response_one_of.rb +297 -0
  108. data/lib/temper/generated/models/block_history_scrub_execute_response_one_of1.rb +305 -0
  109. data/lib/temper/generated/models/block_history_scrub_plan.rb +195 -0
  110. data/lib/temper/generated/models/block_history_scrub_request_body.rb +193 -0
  111. data/lib/temper/generated/models/block_history_scrub_survey.rb +220 -0
  112. data/lib/temper/generated/models/block_provenance_row.rb +1 -1
  113. data/lib/temper/generated/models/block_read.rb +1 -1
  114. data/lib/temper/generated/models/block_read_one_of.rb +1 -1
  115. data/lib/temper/generated/models/block_read_one_of1.rb +1 -1
  116. data/lib/temper/generated/models/block_read_one_of2.rb +1 -1
  117. data/lib/temper/generated/models/block_scrub_count.rb +254 -0
  118. data/lib/temper/generated/models/block_successor.rb +1 -1
  119. data/lib/temper/generated/models/blocks_response.rb +1 -1
  120. data/lib/temper/generated/models/body_storage.rb +1 -1
  121. data/lib/temper/generated/models/bridge.rb +1 -1
  122. data/lib/temper/generated/models/bulk_reassign_ack.rb +1 -1
  123. data/lib/temper/generated/models/bulk_reassign_request.rb +1 -1
  124. data/lib/temper/generated/models/change_role_request.rb +1 -1
  125. data/lib/temper/generated/models/charter_block.rb +1 -1
  126. data/lib/temper/generated/models/charter_disposition.rb +1 -1
  127. data/lib/temper/generated/models/citation_audit_request.rb +1 -1
  128. data/lib/temper/generated/models/citation_audit_row.rb +1 -1
  129. data/lib/temper/generated/models/claimed_audit_job.rb +1 -1
  130. data/lib/temper/generated/models/claimed_job.rb +1 -1
  131. data/lib/temper/generated/models/close_invocation_request.rb +1 -1
  132. data/lib/temper/generated/models/close_review_body.rb +149 -0
  133. data/lib/temper/generated/models/cogmap_analytics_row.rb +1 -1
  134. data/lib/temper/generated/models/cogmap_detail.rb +1 -1
  135. data/lib/temper/generated/models/cogmap_foundation_row.rb +1 -1
  136. data/lib/temper/generated/models/cogmap_grant_body.rb +1 -1
  137. data/lib/temper/generated/models/cogmap_region_metrics_row.rb +1 -1
  138. data/lib/temper/generated/models/cogmap_region_row.rb +1 -1
  139. data/lib/temper/generated/models/cogmap_regulation_row.rb +1 -1
  140. data/lib/temper/generated/models/cogmap_revoke_body.rb +1 -1
  141. data/lib/temper/generated/models/cogmap_row.rb +1 -1
  142. data/lib/temper/generated/models/cogmap_staleness.rb +1 -1
  143. data/lib/temper/generated/models/combine_node.rb +10 -1
  144. data/lib/temper/generated/models/combine_op.rb +1 -1
  145. data/lib/temper/generated/models/composition.rb +1 -1
  146. data/lib/temper/generated/models/composition_trace.rb +1 -1
  147. data/lib/temper/generated/models/confidence_band.rb +1 -1
  148. data/lib/temper/generated/models/connection_credential.rb +204 -0
  149. data/lib/temper/generated/models/connection_subscription.rb +356 -0
  150. data/lib/temper/generated/models/content_response.rb +1 -1
  151. data/lib/temper/generated/models/context_create_request.rb +1 -1
  152. data/lib/temper/generated/models/context_owner_ref.rb +1 -1
  153. data/lib/temper/generated/models/context_owner_ref_one_of.rb +1 -1
  154. data/lib/temper/generated/models/context_owner_ref_one_of1.rb +1 -1
  155. data/lib/temper/generated/models/context_panorama.rb +1 -1
  156. data/lib/temper/generated/models/context_resolution.rb +166 -0
  157. data/lib/temper/generated/models/context_row.rb +1 -1
  158. data/lib/temper/generated/models/context_row_with_counts.rb +1 -1
  159. data/lib/temper/generated/models/create_cogmap_outcome.rb +1 -1
  160. data/lib/temper/generated/models/create_cogmap_request.rb +1 -1
  161. data/lib/temper/generated/models/create_invitation_request.rb +2 -2
  162. data/lib/temper/generated/models/create_request_body.rb +1 -1
  163. data/lib/temper/generated/models/create_review_body.rb +1 -1
  164. data/lib/temper/generated/models/create_subscription_request.rb +272 -0
  165. data/lib/temper/generated/models/credential_verification.rb +187 -0
  166. data/lib/temper/generated/models/deactivated.rb +1 -1
  167. data/lib/temper/generated/models/delete_response.rb +1 -1
  168. data/lib/temper/generated/models/demote_admin_request.rb +166 -0
  169. data/lib/temper/generated/models/denied.rb +1 -1
  170. data/lib/temper/generated/models/deriver_fingerprint.rb +214 -0
  171. data/lib/temper/generated/models/device_overrides.rb +1 -1
  172. data/lib/temper/generated/models/discouraged_open_meta_key.rb +1 -1
  173. data/lib/temper/generated/models/dispatch_tick_request.rb +1 -1
  174. data/lib/temper/generated/models/dispatch_tick_response.rb +1 -1
  175. data/lib/temper/generated/models/disposition.rb +1 -1
  176. data/lib/temper/generated/models/doc_type_description.rb +1 -1
  177. data/lib/temper/generated/models/doc_type_summary.rb +1 -1
  178. data/lib/temper/generated/models/drift_sweep_row.rb +1 -1
  179. data/lib/temper/generated/models/edge_facet_row.rb +1 -1
  180. data/lib/temper/generated/models/edge_facet_set_request.rb +5 -5
  181. data/lib/temper/generated/models/edge_facets_response.rb +1 -1
  182. data/lib/temper/generated/models/edge_filter.rb +2 -1
  183. data/lib/temper/generated/models/edge_kind.rb +1 -1
  184. data/lib/temper/generated/models/element_event.rb +1 -1
  185. data/lib/temper/generated/models/element_kind.rb +1 -1
  186. data/lib/temper/generated/models/embed_dispatch_summary.rb +1 -1
  187. data/lib/temper/generated/models/embedding_status.rb +1 -1
  188. data/lib/temper/generated/models/enforcement_mode.rb +1 -1
  189. data/lib/temper/generated/models/entitlements.rb +1 -1
  190. data/lib/temper/generated/models/entry_bounds.rb +1 -1
  191. data/lib/temper/generated/models/erasure_execute_request.rb +191 -0
  192. data/lib/temper/generated/models/erasure_execute_response.rb +375 -0
  193. data/lib/temper/generated/models/erasure_survey_request.rb +165 -0
  194. data/lib/temper/generated/models/erasure_survey_response.rb +299 -0
  195. data/lib/temper/generated/models/erasure_target_outcome.rb +193 -0
  196. data/lib/temper/generated/models/error_body.rb +1 -1
  197. data/lib/temper/generated/models/error_detail.rb +1 -1
  198. data/lib/temper/generated/models/error_details.rb +1 -1
  199. data/lib/temper/generated/models/estate_counts.rb +314 -0
  200. data/lib/temper/generated/models/estate_disposition.rb +42 -0
  201. data/lib/temper/generated/models/estate_erasure_kind.rb +40 -0
  202. data/lib/temper/generated/models/estate_resource_erasure.rb +239 -0
  203. data/lib/temper/generated/models/estate_resource_plan.rb +329 -0
  204. data/lib/temper/generated/models/event_cursor_response.rb +1 -1
  205. data/lib/temper/generated/models/event_trail.rb +1 -1
  206. data/lib/temper/generated/models/exact_arm.rb +1 -1
  207. data/lib/temper/generated/models/exact_hit.rb +1 -1
  208. data/lib/temper/generated/models/extent.rb +1 -1
  209. data/lib/temper/generated/models/extent_one_of.rb +1 -1
  210. data/lib/temper/generated/models/extent_one_of1.rb +1 -1
  211. data/lib/temper/generated/models/extent_one_of2.rb +1 -1
  212. data/lib/temper/generated/models/facet_ack.rb +1 -1
  213. data/lib/temper/generated/models/facet_predicate.rb +20 -1
  214. data/lib/temper/generated/models/facet_retract_ack.rb +1 -1
  215. data/lib/temper/generated/models/facet_set_request.rb +5 -5
  216. data/lib/temper/generated/models/field_scrub_clearing_event.rb +192 -0
  217. data/lib/temper/generated/models/field_scrub_execute_response.rb +105 -0
  218. data/lib/temper/generated/models/field_scrub_execute_response_one_of.rb +324 -0
  219. data/lib/temper/generated/models/field_scrub_execute_response_one_of1.rb +303 -0
  220. data/lib/temper/generated/models/field_scrub_families.rb +195 -0
  221. data/lib/temper/generated/models/field_scrub_families_request.rb +165 -0
  222. data/lib/temper/generated/models/field_scrub_family.rb +358 -0
  223. data/lib/temper/generated/models/field_scrub_held_paths.rb +220 -0
  224. data/lib/temper/generated/models/field_scrub_plan.rb +284 -0
  225. data/lib/temper/generated/models/field_scrub_refusal_reason.rb +42 -0
  226. data/lib/temper/generated/models/field_scrub_request_body.rb +234 -0
  227. data/lib/temper/generated/models/field_scrub_survey.rb +232 -0
  228. data/lib/temper/generated/models/finalize_payload.rb +1 -1
  229. data/lib/temper/generated/models/fingerprint_match.rb +42 -0
  230. data/lib/temper/generated/models/fold_relationship_request.rb +5 -5
  231. data/lib/temper/generated/models/grant_connection_reach_request.rb +177 -0
  232. data/lib/temper/generated/models/grant_outcome.rb +1 -1
  233. data/lib/temper/generated/models/grant_spec.rb +191 -0
  234. data/lib/temper/generated/models/graph_edge_row.rb +1 -1
  235. data/lib/temper/generated/models/group_key_meta.rb +1 -1
  236. data/lib/temper/generated/models/health_response.rb +1 -1
  237. data/lib/temper/generated/models/home_cogmap.rb +1 -1
  238. data/lib/temper/generated/models/home_context.rb +1 -1
  239. data/lib/temper/generated/models/id_kind.rb +1 -1
  240. data/lib/temper/generated/models/id_provenance.rb +1 -1
  241. data/lib/temper/generated/models/id_provenance_one_of.rb +1 -1
  242. data/lib/temper/generated/models/id_provenance_one_of1.rb +1 -1
  243. data/lib/temper/generated/models/id_set.rb +1 -1
  244. data/lib/temper/generated/models/idp_revocation.rb +1 -1
  245. data/lib/temper/generated/models/illegal_transition.rb +1 -1
  246. data/lib/temper/generated/models/ingest_create_response.rb +1 -1
  247. data/lib/temper/generated/models/ingest_delta.rb +1 -1
  248. data/lib/temper/generated/models/ingest_ended.rb +40 -0
  249. data/lib/temper/generated/models/ingest_payload.rb +5 -5
  250. data/lib/temper/generated/models/ingest_state.rb +1 -1
  251. data/lib/temper/generated/models/inherited_read_grant.rb +1 -1
  252. data/lib/temper/generated/models/inherited_share.rb +1 -1
  253. data/lib/temper/generated/models/input_source.rb +1 -1
  254. data/lib/temper/generated/models/input_source_one_of.rb +1 -1
  255. data/lib/temper/generated/models/input_source_one_of1.rb +1 -1
  256. data/lib/temper/generated/models/input_source_one_of2.rb +1 -1
  257. data/lib/temper/generated/models/insufficient_authority.rb +1 -1
  258. data/lib/temper/generated/models/intention.rb +1 -1
  259. data/lib/temper/generated/models/invitation_status.rb +1 -1
  260. data/lib/temper/generated/models/invitation_token_request.rb +2 -2
  261. data/lib/temper/generated/models/invitee_invitation.rb +1 -1
  262. data/lib/temper/generated/models/invocation_ack.rb +1 -1
  263. data/lib/temper/generated/models/invocation_act_row.rb +1 -1
  264. data/lib/temper/generated/models/invocation_close_ack.rb +1 -1
  265. data/lib/temper/generated/models/invocation_summary.rb +1 -1
  266. data/lib/temper/generated/models/invocation_view.rb +2 -2
  267. data/lib/temper/generated/models/issue_machine_request.rb +232 -0
  268. data/lib/temper/generated/models/issued_machine_credential.rb +201 -0
  269. data/lib/temper/generated/models/join_request.rb +1 -1
  270. data/lib/temper/generated/models/join_request_status.rb +1 -1
  271. data/lib/temper/generated/models/join_request_with_profile.rb +439 -0
  272. data/lib/temper/generated/models/kind_owner_input.rb +1 -1
  273. data/lib/temper/generated/models/kind_owner_input_one_of.rb +1 -1
  274. data/lib/temper/generated/models/kind_owner_input_one_of1.rb +1 -1
  275. data/lib/temper/generated/models/ledger_ref.rb +213 -0
  276. data/lib/temper/generated/models/ledger_ref_kind.rb +49 -0
  277. data/lib/temper/generated/models/ledger_ref_rel.rb +44 -0
  278. data/lib/temper/generated/models/ledger_ref_target.rb +213 -0
  279. data/lib/temper/generated/models/lineage_node.rb +1 -1
  280. data/lib/temper/generated/models/machine_client.rb +361 -0
  281. data/lib/temper/generated/models/managed_meta.rb +1 -1
  282. data/lib/temper/generated/models/match_location.rb +1 -1
  283. data/lib/temper/generated/models/materialize_ack.rb +1 -1
  284. data/lib/temper/generated/models/materialize_delta.rb +1 -1
  285. data/lib/temper/generated/models/materialize_request.rb +1 -1
  286. data/lib/temper/generated/models/merge_policy.rb +1 -1
  287. data/lib/temper/generated/models/meta_update_payload.rb +5 -5
  288. data/lib/temper/generated/models/narrowed_by.rb +1 -1
  289. data/lib/temper/generated/models/no_prior_standing.rb +1 -1
  290. data/lib/temper/generated/models/no_standing.rb +1 -1
  291. data/lib/temper/generated/models/node_home.rb +1 -1
  292. data/lib/temper/generated/models/open_invocation_request.rb +1 -1
  293. data/lib/temper/generated/models/open_meta_convention.rb +1 -1
  294. data/lib/temper/generated/models/ord_op.rb +1 -1
  295. data/lib/temper/generated/models/orphan_node.rb +1 -1
  296. data/lib/temper/generated/models/other_author_edge.rb +220 -0
  297. data/lib/temper/generated/models/other_author_edge_property.rb +247 -0
  298. data/lib/temper/generated/models/outcome_declaration.rb +10 -1
  299. data/lib/temper/generated/models/pending_invitation_counts.rb +2 -2
  300. data/lib/temper/generated/models/plan_refusal.rb +1 -1
  301. data/lib/temper/generated/models/plan_refusal_details.rb +1 -1
  302. data/lib/temper/generated/models/polarity.rb +1 -1
  303. data/lib/temper/generated/models/profile.rb +1 -1
  304. data/lib/temper/generated/models/profile_auth_link.rb +1 -1
  305. data/lib/temper/generated/models/profile_update_request.rb +1 -1
  306. data/lib/temper/generated/models/profile_with_entitlements.rb +1 -1
  307. data/lib/temper/generated/models/promote_admin_request.rb +177 -0
  308. data/lib/temper/generated/models/property_op.rb +1 -1
  309. data/lib/temper/generated/models/property_op_one_of.rb +1 -1
  310. data/lib/temper/generated/models/property_op_one_of1.rb +2 -2
  311. data/lib/temper/generated/models/property_op_one_of2.rb +2 -2
  312. data/lib/temper/generated/models/property_predicate.rb +10 -1
  313. data/lib/temper/generated/models/provenance_source.rb +1 -1
  314. data/lib/temper/generated/models/provenance_source_one_of.rb +1 -1
  315. data/lib/temper/generated/models/provenance_source_one_of1.rb +1 -1
  316. data/lib/temper/generated/models/provenance_source_one_of2.rb +1 -1
  317. data/lib/temper/generated/models/provision_connection_request.rb +226 -0
  318. data/lib/temper/generated/models/provision_machine_request.rb +258 -0
  319. data/lib/temper/generated/models/public_system_settings.rb +1 -1
  320. data/lib/temper/generated/models/quantity_scale.rb +1 -1
  321. data/lib/temper/generated/models/quantity_scale_one_of.rb +1 -1
  322. data/lib/temper/generated/models/quantity_scale_one_of1.rb +1 -1
  323. data/lib/temper/generated/models/quantity_scale_one_of2.rb +1 -1
  324. data/lib/temper/generated/models/query_response.rb +1 -1
  325. data/lib/temper/generated/models/queue_count.rb +166 -0
  326. data/lib/temper/generated/models/reassign_ack.rb +1 -1
  327. data/lib/temper/generated/models/reassign_context_outcome.rb +1 -1
  328. data/lib/temper/generated/models/reassign_context_request.rb +1 -1
  329. data/lib/temper/generated/models/reassign_resource_request.rb +1 -1
  330. data/lib/temper/generated/models/rebind_machine_request.rb +212 -0
  331. data/lib/temper/generated/models/reblock_candidate.rb +1 -1
  332. data/lib/temper/generated/models/reblock_outcome.rb +1 -1
  333. data/lib/temper/generated/models/reblock_outcome_one_of.rb +1 -1
  334. data/lib/temper/generated/models/reblock_outcome_one_of1.rb +1 -1
  335. data/lib/temper/generated/models/reblock_outcome_one_of1_in_progress.rb +1 -1
  336. data/lib/temper/generated/models/reblock_outcome_one_of2.rb +2 -2
  337. data/lib/temper/generated/models/reblock_outcome_one_of3.rb +1 -1
  338. data/lib/temper/generated/models/reblock_outcome_one_of4.rb +1 -1
  339. data/lib/temper/generated/models/reblock_outcome_one_of4_error.rb +1 -1
  340. data/lib/temper/generated/models/reblock_outcome_one_of_reblocked.rb +1 -1
  341. data/lib/temper/generated/models/reblock_receipt.rb +1 -1
  342. data/lib/temper/generated/models/reblock_request.rb +1 -1
  343. data/lib/temper/generated/models/reblock_scope.rb +1 -1
  344. data/lib/temper/generated/models/reblock_scope_one_of.rb +1 -1
  345. data/lib/temper/generated/models/reblock_scope_one_of1.rb +1 -1
  346. data/lib/temper/generated/models/reblock_summary.rb +1 -1
  347. data/lib/temper/generated/models/reconcile_auto_join_outcome.rb +195 -0
  348. data/lib/temper/generated/models/reconcile_cogmap_request.rb +1 -1
  349. data/lib/temper/generated/models/reconcile_edge.rb +1 -1
  350. data/lib/temper/generated/models/reconcile_edge_tombstone.rb +1 -1
  351. data/lib/temper/generated/models/reconcile_entry.rb +1 -1
  352. data/lib/temper/generated/models/reconcile_outcome.rb +1 -1
  353. data/lib/temper/generated/models/reconcile_telos.rb +1 -1
  354. data/lib/temper/generated/models/reconcile_telos_block.rb +1 -1
  355. data/lib/temper/generated/models/reconcile_tombstone.rb +1 -1
  356. data/lib/temper/generated/models/redacted_event_fields.rb +195 -0
  357. data/lib/temper/generated/models/reembed_request.rb +192 -0
  358. data/lib/temper/generated/models/reembed_summary.rb +240 -0
  359. data/lib/temper/generated/models/refusal.rb +1 -1
  360. data/lib/temper/generated/models/refusal_reason.rb +1 -1
  361. data/lib/temper/generated/models/region_disclosure.rb +1 -1
  362. data/lib/temper/generated/models/region_hit.rb +1 -1
  363. data/lib/temper/generated/models/relationship_ack.rb +1 -1
  364. data/lib/temper/generated/models/relationship_target.rb +1 -1
  365. data/lib/temper/generated/models/remote_connection.rb +522 -0
  366. data/lib/temper/generated/models/remove_member_outcome.rb +1 -1
  367. data/lib/temper/generated/models/rename_context_outcome.rb +1 -1
  368. data/lib/temper/generated/models/rename_context_request.rb +1 -1
  369. data/lib/temper/generated/models/requested.rb +1 -1
  370. data/lib/temper/generated/models/residual_bucket.rb +1 -1
  371. data/lib/temper/generated/models/residual_context.rb +1 -1
  372. data/lib/temper/generated/models/residual_groups.rb +1 -1
  373. data/lib/temper/generated/models/residual_owned_reach.rb +1 -1
  374. data/lib/temper/generated/models/resource_annotate_request.rb +5 -5
  375. data/lib/temper/generated/models/resource_connections.rb +1 -1
  376. data/lib/temper/generated/models/resource_create_request.rb +5 -5
  377. data/lib/temper/generated/models/resource_erasure_execute_request.rb +178 -0
  378. data/lib/temper/generated/models/resource_erasure_execute_response.rb +105 -0
  379. data/lib/temper/generated/models/resource_erasure_execute_response_one_of.rb +393 -0
  380. data/lib/temper/generated/models/resource_erasure_execute_response_one_of1.rb +276 -0
  381. data/lib/temper/generated/models/resource_erasure_plan.rb +555 -0
  382. data/lib/temper/generated/models/resource_erasure_refusal_reason.rb +42 -0
  383. data/lib/temper/generated/models/resource_erasure_survey.rb +226 -0
  384. data/lib/temper/generated/models/resource_erasure_survey_request.rb +165 -0
  385. data/lib/temper/generated/models/resource_facet_row.rb +1 -1
  386. data/lib/temper/generated/models/resource_facets.rb +1 -1
  387. data/lib/temper/generated/models/resource_facets_response.rb +1 -1
  388. data/lib/temper/generated/models/resource_filter.rb +63 -3
  389. data/lib/temper/generated/models/resource_grant_body.rb +1 -1
  390. data/lib/temper/generated/models/resource_hit.rb +1 -1
  391. data/lib/temper/generated/models/resource_lineage.rb +1 -1
  392. data/lib/temper/generated/models/resource_list_response.rb +1 -1
  393. data/lib/temper/generated/models/resource_revoke_body.rb +1 -1
  394. data/lib/temper/generated/models/resource_section.rb +1 -1
  395. data/lib/temper/generated/models/resource_sort_field.rb +1 -1
  396. data/lib/temper/generated/models/resource_update_request.rb +5 -5
  397. data/lib/temper/generated/models/resource_view.rb +13 -2
  398. data/lib/temper/generated/models/restore_context_outcome.rb +1 -1
  399. data/lib/temper/generated/models/retention_category.rb +44 -0
  400. data/lib/temper/generated/models/retention_policies.rb +167 -0
  401. data/lib/temper/generated/models/retention_policy.rb +319 -0
  402. data/lib/temper/generated/models/retention_policy_set.rb +268 -0
  403. data/lib/temper/generated/models/retire_context_outcome.rb +1 -1
  404. data/lib/temper/generated/models/return_spec.rb +1 -1
  405. data/lib/temper/generated/models/retype_relationship_request.rb +5 -5
  406. data/lib/temper/generated/models/review_request_body.rb +196 -0
  407. data/lib/temper/generated/models/review_request_with_profile.rb +289 -0
  408. data/lib/temper/generated/models/revoke_outcome.rb +1 -1
  409. data/lib/temper/generated/models/revoke_principal_body.rb +166 -0
  410. data/lib/temper/generated/models/revoked.rb +1 -1
  411. data/lib/temper/generated/models/reweight_relationship_request.rb +5 -5
  412. data/lib/temper/generated/models/rotate_secret_request.rb +166 -0
  413. data/lib/temper/generated/models/score_kind.rb +1 -1
  414. data/lib/temper/generated/models/scoring.rb +1 -1
  415. data/lib/temper/generated/models/scrub_field_kind.rb +42 -0
  416. data/lib/temper/generated/models/scrubbed_field.rb +198 -0
  417. data/lib/temper/generated/models/search_params.rb +113 -4
  418. data/lib/temper/generated/models/search_reason.rb +1 -1
  419. data/lib/temper/generated/models/search_response.rb +1 -1
  420. data/lib/temper/generated/models/search_result_row.rb +1 -1
  421. data/lib/temper/generated/models/search_scope.rb +1 -1
  422. data/lib/temper/generated/models/search_scope_info.rb +1 -1
  423. data/lib/temper/generated/models/segment_info.rb +1 -1
  424. data/lib/temper/generated/models/segmented_begin.rb +1 -1
  425. data/lib/temper/generated/models/segmented_begin_response.rb +1 -1
  426. data/lib/temper/generated/models/set_tool_manifest_request.rb +167 -0
  427. data/lib/temper/generated/models/set_webhook_events_request.rb +167 -0
  428. data/lib/temper/generated/models/shape_declare_request.rb +5 -5
  429. data/lib/temper/generated/models/shape_emptiness.rb +1 -1
  430. data/lib/temper/generated/models/shape_view.rb +1 -1
  431. data/lib/temper/generated/models/share_context_outcome.rb +1 -1
  432. data/lib/temper/generated/models/share_context_request.rb +1 -1
  433. data/lib/temper/generated/models/slack_disconnect_request.rb +1 -1
  434. data/lib/temper/generated/models/slack_disconnect_response.rb +1 -1
  435. data/lib/temper/generated/models/slack_disconnected_principal.rb +1 -1
  436. data/lib/temper/generated/models/slack_revocation_tally.rb +276 -0
  437. data/lib/temper/generated/models/slice_request.rb +1 -1
  438. data/lib/temper/generated/models/sort_order.rb +1 -1
  439. data/lib/temper/generated/models/stage_disposition.rb +1 -1
  440. data/lib/temper/generated/models/stage_input.rb +1 -1
  441. data/lib/temper/generated/models/stage_input_one_of.rb +1 -1
  442. data/lib/temper/generated/models/stage_input_one_of1.rb +1 -1
  443. data/lib/temper/generated/models/stage_input_trace.rb +1 -1
  444. data/lib/temper/generated/models/stage_node.rb +1 -1
  445. data/lib/temper/generated/models/stage_output.rb +1 -1
  446. data/lib/temper/generated/models/stage_output_one_of.rb +1 -1
  447. data/lib/temper/generated/models/stage_output_one_of1.rb +1 -1
  448. data/lib/temper/generated/models/stage_relation.rb +1 -1
  449. data/lib/temper/generated/models/stage_result.rb +1 -1
  450. data/lib/temper/generated/models/stage_trace.rb +1 -1
  451. data/lib/temper/generated/models/standing.rb +1 -1
  452. data/lib/temper/generated/models/standing_shape.rb +1 -1
  453. data/lib/temper/generated/models/subscription.rb +1 -1
  454. data/lib/temper/generated/models/subscription_override.rb +1 -1
  455. data/lib/temper/generated/models/subscription_selector.rb +106 -0
  456. data/lib/temper/generated/models/subscription_selector_one_of.rb +228 -0
  457. data/lib/temper/generated/models/subscription_selector_one_of1.rb +228 -0
  458. data/lib/temper/generated/models/subscription_selector_one_of2.rb +216 -0
  459. data/lib/temper/generated/models/system_access_details.rb +1 -1
  460. data/lib/temper/generated/models/system_settings.rb +231 -0
  461. data/lib/temper/generated/models/team_create_request.rb +1 -1
  462. data/lib/temper/generated/models/team_detail.rb +1 -1
  463. data/lib/temper/generated/models/team_invitation.rb +2 -2
  464. data/lib/temper/generated/models/team_member_detail.rb +1 -1
  465. data/lib/temper/generated/models/team_member_row.rb +1 -1
  466. data/lib/temper/generated/models/team_member_source.rb +1 -1
  467. data/lib/temper/generated/models/team_role.rb +1 -1
  468. data/lib/temper/generated/models/team_row.rb +1 -1
  469. data/lib/temper/generated/models/team_spec.rb +192 -0
  470. data/lib/temper/generated/models/team_update_request.rb +1 -1
  471. data/lib/temper/generated/models/territory.rb +1 -1
  472. data/lib/temper/generated/models/territory_kind.rb +1 -1
  473. data/lib/temper/generated/models/territory_overview.rb +1 -1
  474. data/lib/temper/generated/models/unbind_team_outcome.rb +1 -1
  475. data/lib/temper/generated/models/unrecognized_standing.rb +1 -1
  476. data/lib/temper/generated/models/unshare_context_outcome.rb +1 -1
  477. data/lib/temper/generated/models/update_settings_request.rb +183 -0
  478. data/lib/temper/generated/models/vault_config.rb +1 -1
  479. data/lib/temper/generated/models/via_entry.rb +1 -1
  480. data/lib/temper/generated/models/wide_arm.rb +1 -1
  481. data/lib/temper/generated/models/wide_hit.rb +1 -1
  482. data/lib/temper/generated/version.rb +2 -2
  483. data/lib/temper/generated.rb +110 -1
  484. data/lib/temper/validate.rb +11 -5
  485. data/lib/temper/version.rb +1 -1
  486. data/lib/temper.rb +1 -0
  487. metadata +111 -1
@@ -0,0 +1,2276 @@
1
+ =begin
2
+ #Temper Cloud API
3
+
4
+ #Knowledge base management API for temper cloud
5
+
6
+ The version of the OpenAPI document: 0.6.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.23.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Temper::Generated
16
+ class AdminApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Approve a principal
23
+ # Admits a principal directly and closes any open reconsideration request they hold. Requires a system admin.
24
+ # @param id [String] Profile ID of the principal
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are `cli` and `sdk`; an absent or unrecognized value attributes the write to `web`. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
27
+ # @return [nil]
28
+ def admin_approve_principal(id, opts = {})
29
+ admin_approve_principal_with_http_info(id, opts)
30
+ nil
31
+ end
32
+
33
+ # Approve a principal
34
+ # Admits a principal directly and closes any open reconsideration request they hold. Requires a system admin.
35
+ # @param id [String] Profile ID of the principal
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are `cli` and `sdk`; an absent or unrecognized value attributes the write to `web`. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
38
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
+ def admin_approve_principal_with_http_info(id, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_approve_principal ...'
42
+ end
43
+ # verify the required parameter 'id' is set
44
+ if @api_client.config.client_side_validation && id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_approve_principal"
46
+ end
47
+ allowable_values = ["cli", "sdk"]
48
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
49
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
50
+ end
51
+ # resource path
52
+ local_var_path = '/api/access/admin/principals/{id}/approve'.sub('{id}', CGI.escape(id.to_s).gsub('.', '%2E'))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
61
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
62
+
63
+ # form parameters
64
+ form_params = opts[:form_params] || {}
65
+
66
+ # http body (model)
67
+ post_body = opts[:debug_body]
68
+
69
+ # return_type
70
+ return_type = opts[:debug_return_type]
71
+
72
+ # auth_names
73
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
74
+
75
+ new_options = opts.merge(
76
+ :operation => :"AdminApi.admin_approve_principal",
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: AdminApi#admin_approve_principal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
92
+ # Close a reconsideration request
93
+ # Records that a reconsideration request was handled. It changes no standing: readmitting a principal is a separate call, `POST /api/access/admin/principals/{id}/approve`. Requires a system admin.
94
+ # @param id [String] Reconsideration request ID
95
+ # @param close_review_body [CloseReviewBody]
96
+ # @param [Hash] opts the optional parameters
97
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
98
+ # @return [nil]
99
+ def admin_close_review(id, close_review_body, opts = {})
100
+ admin_close_review_with_http_info(id, close_review_body, opts)
101
+ nil
102
+ end
103
+
104
+ # Close a reconsideration request
105
+ # Records that a reconsideration request was handled. It changes no standing: readmitting a principal is a separate call, &#x60;POST /api/access/admin/principals/{id}/approve&#x60;. Requires a system admin.
106
+ # @param id [String] Reconsideration request ID
107
+ # @param close_review_body [CloseReviewBody]
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
110
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
111
+ def admin_close_review_with_http_info(id, close_review_body, opts = {})
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_close_review ...'
114
+ end
115
+ # verify the required parameter 'id' is set
116
+ if @api_client.config.client_side_validation && id.nil?
117
+ fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_close_review"
118
+ end
119
+ # verify the required parameter 'close_review_body' is set
120
+ if @api_client.config.client_side_validation && close_review_body.nil?
121
+ fail ArgumentError, "Missing the required parameter 'close_review_body' when calling AdminApi.admin_close_review"
122
+ end
123
+ allowable_values = ["cli", "sdk"]
124
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
125
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
126
+ end
127
+ # resource path
128
+ local_var_path = '/api/access/admin/reviews/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('.', '%2E'))
129
+
130
+ # query parameters
131
+ query_params = opts[:query_params] || {}
132
+
133
+ # header parameters
134
+ header_params = opts[:header_params] || {}
135
+ # HTTP header 'Accept' (if needed)
136
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
137
+ # HTTP header 'Content-Type'
138
+ content_type = @api_client.select_header_content_type(['application/json'])
139
+ if !content_type.nil?
140
+ header_params['Content-Type'] = content_type
141
+ end
142
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
143
+
144
+ # form parameters
145
+ form_params = opts[:form_params] || {}
146
+
147
+ # http body (model)
148
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(close_review_body)
149
+
150
+ # return_type
151
+ return_type = opts[:debug_return_type]
152
+
153
+ # auth_names
154
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
155
+
156
+ new_options = opts.merge(
157
+ :operation => :"AdminApi.admin_close_review",
158
+ :header_params => header_params,
159
+ :query_params => query_params,
160
+ :form_params => form_params,
161
+ :body => post_body,
162
+ :auth_names => auth_names,
163
+ :return_type => return_type
164
+ )
165
+
166
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
167
+ if @api_client.config.debugging
168
+ @api_client.config.logger.debug "API called: AdminApi#admin_close_review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
169
+ end
170
+ return data, status_code, headers
171
+ end
172
+
173
+ # Count pending join requests
174
+ # How many join requests are awaiting a decision, without the rows. A caller who may not read the queue gets 403, never a zero. Requires a system admin.
175
+ # @param [Hash] opts the optional parameters
176
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
177
+ # @return [QueueCount]
178
+ def admin_count_join_requests(opts = {})
179
+ data, _status_code, _headers = admin_count_join_requests_with_http_info(opts)
180
+ data
181
+ end
182
+
183
+ # Count pending join requests
184
+ # How many join requests are awaiting a decision, without the rows. A caller who may not read the queue gets 403, never a zero. Requires a system admin.
185
+ # @param [Hash] opts the optional parameters
186
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
187
+ # @return [Array<(QueueCount, Integer, Hash)>] QueueCount data, response status code and response headers
188
+ def admin_count_join_requests_with_http_info(opts = {})
189
+ if @api_client.config.debugging
190
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_count_join_requests ...'
191
+ end
192
+ allowable_values = ["cli", "sdk"]
193
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
194
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
195
+ end
196
+ # resource path
197
+ local_var_path = '/api/access/admin/requests/count'
198
+
199
+ # query parameters
200
+ query_params = opts[:query_params] || {}
201
+
202
+ # header parameters
203
+ header_params = opts[:header_params] || {}
204
+ # HTTP header 'Accept' (if needed)
205
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
206
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
207
+
208
+ # form parameters
209
+ form_params = opts[:form_params] || {}
210
+
211
+ # http body (model)
212
+ post_body = opts[:debug_body]
213
+
214
+ # return_type
215
+ return_type = opts[:debug_return_type] || 'QueueCount'
216
+
217
+ # auth_names
218
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
219
+
220
+ new_options = opts.merge(
221
+ :operation => :"AdminApi.admin_count_join_requests",
222
+ :header_params => header_params,
223
+ :query_params => query_params,
224
+ :form_params => form_params,
225
+ :body => post_body,
226
+ :auth_names => auth_names,
227
+ :return_type => return_type
228
+ )
229
+
230
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
231
+ if @api_client.config.debugging
232
+ @api_client.config.logger.debug "API called: AdminApi#admin_count_join_requests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
233
+ end
234
+ return data, status_code, headers
235
+ end
236
+
237
+ # Count open reconsideration requests
238
+ # How many reconsideration requests are open, without the rows. A caller who may not read the inbox gets 403, never a zero. Requires a system admin.
239
+ # @param [Hash] opts the optional parameters
240
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
241
+ # @return [QueueCount]
242
+ def admin_count_reviews(opts = {})
243
+ data, _status_code, _headers = admin_count_reviews_with_http_info(opts)
244
+ data
245
+ end
246
+
247
+ # Count open reconsideration requests
248
+ # How many reconsideration requests are open, without the rows. A caller who may not read the inbox gets 403, never a zero. Requires a system admin.
249
+ # @param [Hash] opts the optional parameters
250
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
251
+ # @return [Array<(QueueCount, Integer, Hash)>] QueueCount data, response status code and response headers
252
+ def admin_count_reviews_with_http_info(opts = {})
253
+ if @api_client.config.debugging
254
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_count_reviews ...'
255
+ end
256
+ allowable_values = ["cli", "sdk"]
257
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
258
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
259
+ end
260
+ # resource path
261
+ local_var_path = '/api/access/admin/reviews/count'
262
+
263
+ # query parameters
264
+ query_params = opts[:query_params] || {}
265
+
266
+ # header parameters
267
+ header_params = opts[:header_params] || {}
268
+ # HTTP header 'Accept' (if needed)
269
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
270
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
271
+
272
+ # form parameters
273
+ form_params = opts[:form_params] || {}
274
+
275
+ # http body (model)
276
+ post_body = opts[:debug_body]
277
+
278
+ # return_type
279
+ return_type = opts[:debug_return_type] || 'QueueCount'
280
+
281
+ # auth_names
282
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
283
+
284
+ new_options = opts.merge(
285
+ :operation => :"AdminApi.admin_count_reviews",
286
+ :header_params => header_params,
287
+ :query_params => query_params,
288
+ :form_params => form_params,
289
+ :body => post_body,
290
+ :auth_names => auth_names,
291
+ :return_type => return_type
292
+ )
293
+
294
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
295
+ if @api_client.config.debugging
296
+ @api_client.config.logger.debug "API called: AdminApi#admin_count_reviews\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
297
+ end
298
+ return data, status_code, headers
299
+ end
300
+
301
+ # Deactivate a principal
302
+ # Deactivates a principal. Requires a system admin.
303
+ # @param id [String] Profile ID of the principal
304
+ # @param [Hash] opts the optional parameters
305
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
306
+ # @return [nil]
307
+ def admin_deactivate_principal(id, opts = {})
308
+ admin_deactivate_principal_with_http_info(id, opts)
309
+ nil
310
+ end
311
+
312
+ # Deactivate a principal
313
+ # Deactivates a principal. Requires a system admin.
314
+ # @param id [String] Profile ID of the principal
315
+ # @param [Hash] opts the optional parameters
316
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
317
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
318
+ def admin_deactivate_principal_with_http_info(id, opts = {})
319
+ if @api_client.config.debugging
320
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_deactivate_principal ...'
321
+ end
322
+ # verify the required parameter 'id' is set
323
+ if @api_client.config.client_side_validation && id.nil?
324
+ fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_deactivate_principal"
325
+ end
326
+ allowable_values = ["cli", "sdk"]
327
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
328
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
329
+ end
330
+ # resource path
331
+ local_var_path = '/api/access/admin/principals/{id}/deactivate'.sub('{id}', CGI.escape(id.to_s).gsub('.', '%2E'))
332
+
333
+ # query parameters
334
+ query_params = opts[:query_params] || {}
335
+
336
+ # header parameters
337
+ header_params = opts[:header_params] || {}
338
+ # HTTP header 'Accept' (if needed)
339
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
340
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
341
+
342
+ # form parameters
343
+ form_params = opts[:form_params] || {}
344
+
345
+ # http body (model)
346
+ post_body = opts[:debug_body]
347
+
348
+ # return_type
349
+ return_type = opts[:debug_return_type]
350
+
351
+ # auth_names
352
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
353
+
354
+ new_options = opts.merge(
355
+ :operation => :"AdminApi.admin_deactivate_principal",
356
+ :header_params => header_params,
357
+ :query_params => query_params,
358
+ :form_params => form_params,
359
+ :body => post_body,
360
+ :auth_names => auth_names,
361
+ :return_type => return_type
362
+ )
363
+
364
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
365
+ if @api_client.config.debugging
366
+ @api_client.config.logger.debug "API called: AdminApi#admin_deactivate_principal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
367
+ end
368
+ return data, status_code, headers
369
+ end
370
+
371
+ # Revoke a profile's system-admin grant
372
+ # Removes the system-admin governance grant from a profile. Idempotent. Requires a system admin.
373
+ # @param demote_admin_request [DemoteAdminRequest]
374
+ # @param [Hash] opts the optional parameters
375
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
376
+ # @return [nil]
377
+ def admin_demote(demote_admin_request, opts = {})
378
+ admin_demote_with_http_info(demote_admin_request, opts)
379
+ nil
380
+ end
381
+
382
+ # Revoke a profile&#39;s system-admin grant
383
+ # Removes the system-admin governance grant from a profile. Idempotent. Requires a system admin.
384
+ # @param demote_admin_request [DemoteAdminRequest]
385
+ # @param [Hash] opts the optional parameters
386
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
387
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
388
+ def admin_demote_with_http_info(demote_admin_request, opts = {})
389
+ if @api_client.config.debugging
390
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_demote ...'
391
+ end
392
+ # verify the required parameter 'demote_admin_request' is set
393
+ if @api_client.config.client_side_validation && demote_admin_request.nil?
394
+ fail ArgumentError, "Missing the required parameter 'demote_admin_request' when calling AdminApi.admin_demote"
395
+ end
396
+ allowable_values = ["cli", "sdk"]
397
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
398
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
399
+ end
400
+ # resource path
401
+ local_var_path = '/api/access/admin/demote'
402
+
403
+ # query parameters
404
+ query_params = opts[:query_params] || {}
405
+
406
+ # header parameters
407
+ header_params = opts[:header_params] || {}
408
+ # HTTP header 'Accept' (if needed)
409
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
410
+ # HTTP header 'Content-Type'
411
+ content_type = @api_client.select_header_content_type(['application/json'])
412
+ if !content_type.nil?
413
+ header_params['Content-Type'] = content_type
414
+ end
415
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
416
+
417
+ # form parameters
418
+ form_params = opts[:form_params] || {}
419
+
420
+ # http body (model)
421
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(demote_admin_request)
422
+
423
+ # return_type
424
+ return_type = opts[:debug_return_type]
425
+
426
+ # auth_names
427
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
428
+
429
+ new_options = opts.merge(
430
+ :operation => :"AdminApi.admin_demote",
431
+ :header_params => header_params,
432
+ :query_params => query_params,
433
+ :form_params => form_params,
434
+ :body => post_body,
435
+ :auth_names => auth_names,
436
+ :return_type => return_type
437
+ )
438
+
439
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
440
+ if @api_client.config.debugging
441
+ @api_client.config.logger.debug "API called: AdminApi#admin_demote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
442
+ end
443
+ return data, status_code, headers
444
+ end
445
+
446
+ # Erase a principal
447
+ # Executes the erasure act for a principal, identified by pseudonym and an opaque request reference. Repeating it with the same reference completes as a no-op with `already_erased: true`. Requires a system admin. Any other caller gets 404, decided before any lookup, so a refusal reveals nothing about the subject.
448
+ # @param erasure_execute_request [ErasureExecuteRequest]
449
+ # @param [Hash] opts the optional parameters
450
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
451
+ # @return [ErasureExecuteResponse]
452
+ def admin_erase_principal(erasure_execute_request, opts = {})
453
+ data, _status_code, _headers = admin_erase_principal_with_http_info(erasure_execute_request, opts)
454
+ data
455
+ end
456
+
457
+ # Erase a principal
458
+ # Executes the erasure act for a principal, identified by pseudonym and an opaque request reference. Repeating it with the same reference completes as a no-op with &#x60;already_erased: true&#x60;. Requires a system admin. Any other caller gets 404, decided before any lookup, so a refusal reveals nothing about the subject.
459
+ # @param erasure_execute_request [ErasureExecuteRequest]
460
+ # @param [Hash] opts the optional parameters
461
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
462
+ # @return [Array<(ErasureExecuteResponse, Integer, Hash)>] ErasureExecuteResponse data, response status code and response headers
463
+ def admin_erase_principal_with_http_info(erasure_execute_request, opts = {})
464
+ if @api_client.config.debugging
465
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_erase_principal ...'
466
+ end
467
+ # verify the required parameter 'erasure_execute_request' is set
468
+ if @api_client.config.client_side_validation && erasure_execute_request.nil?
469
+ fail ArgumentError, "Missing the required parameter 'erasure_execute_request' when calling AdminApi.admin_erase_principal"
470
+ end
471
+ allowable_values = ["cli", "sdk"]
472
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
473
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
474
+ end
475
+ # resource path
476
+ local_var_path = '/api/admin/erasure'
477
+
478
+ # query parameters
479
+ query_params = opts[:query_params] || {}
480
+
481
+ # header parameters
482
+ header_params = opts[:header_params] || {}
483
+ # HTTP header 'Accept' (if needed)
484
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
485
+ # HTTP header 'Content-Type'
486
+ content_type = @api_client.select_header_content_type(['application/json'])
487
+ if !content_type.nil?
488
+ header_params['Content-Type'] = content_type
489
+ end
490
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
491
+
492
+ # form parameters
493
+ form_params = opts[:form_params] || {}
494
+
495
+ # http body (model)
496
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(erasure_execute_request)
497
+
498
+ # return_type
499
+ return_type = opts[:debug_return_type] || 'ErasureExecuteResponse'
500
+
501
+ # auth_names
502
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
503
+
504
+ new_options = opts.merge(
505
+ :operation => :"AdminApi.admin_erase_principal",
506
+ :header_params => header_params,
507
+ :query_params => query_params,
508
+ :form_params => form_params,
509
+ :body => post_body,
510
+ :auth_names => auth_names,
511
+ :return_type => return_type
512
+ )
513
+
514
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
515
+ if @api_client.config.debugging
516
+ @api_client.config.logger.debug "API called: AdminApi#admin_erase_principal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
517
+ end
518
+ return data, status_code, headers
519
+ end
520
+
521
+ # Erase a resource
522
+ # Executes the erasure act for a resource, optionally striking related blobs named by the survey. The server mints the request reference. The answer is either a completion or a recorded refusal (`status`). Requires a system admin. Any other caller gets 404, decided before any lookup, so a refusal reveals nothing about the resource.
523
+ # @param resource_erasure_execute_request [ResourceErasureExecuteRequest]
524
+ # @param [Hash] opts the optional parameters
525
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
526
+ # @return [ResourceErasureExecuteResponse]
527
+ def admin_erase_resource(resource_erasure_execute_request, opts = {})
528
+ data, _status_code, _headers = admin_erase_resource_with_http_info(resource_erasure_execute_request, opts)
529
+ data
530
+ end
531
+
532
+ # Erase a resource
533
+ # Executes the erasure act for a resource, optionally striking related blobs named by the survey. The server mints the request reference. The answer is either a completion or a recorded refusal (&#x60;status&#x60;). Requires a system admin. Any other caller gets 404, decided before any lookup, so a refusal reveals nothing about the resource.
534
+ # @param resource_erasure_execute_request [ResourceErasureExecuteRequest]
535
+ # @param [Hash] opts the optional parameters
536
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
537
+ # @return [Array<(ResourceErasureExecuteResponse, Integer, Hash)>] ResourceErasureExecuteResponse data, response status code and response headers
538
+ def admin_erase_resource_with_http_info(resource_erasure_execute_request, opts = {})
539
+ if @api_client.config.debugging
540
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_erase_resource ...'
541
+ end
542
+ # verify the required parameter 'resource_erasure_execute_request' is set
543
+ if @api_client.config.client_side_validation && resource_erasure_execute_request.nil?
544
+ fail ArgumentError, "Missing the required parameter 'resource_erasure_execute_request' when calling AdminApi.admin_erase_resource"
545
+ end
546
+ allowable_values = ["cli", "sdk"]
547
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
548
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
549
+ end
550
+ # resource path
551
+ local_var_path = '/api/admin/resources/erasure'
552
+
553
+ # query parameters
554
+ query_params = opts[:query_params] || {}
555
+
556
+ # header parameters
557
+ header_params = opts[:header_params] || {}
558
+ # HTTP header 'Accept' (if needed)
559
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
560
+ # HTTP header 'Content-Type'
561
+ content_type = @api_client.select_header_content_type(['application/json'])
562
+ if !content_type.nil?
563
+ header_params['Content-Type'] = content_type
564
+ end
565
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
566
+
567
+ # form parameters
568
+ form_params = opts[:form_params] || {}
569
+
570
+ # http body (model)
571
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(resource_erasure_execute_request)
572
+
573
+ # return_type
574
+ return_type = opts[:debug_return_type] || 'ResourceErasureExecuteResponse'
575
+
576
+ # auth_names
577
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
578
+
579
+ new_options = opts.merge(
580
+ :operation => :"AdminApi.admin_erase_resource",
581
+ :header_params => header_params,
582
+ :query_params => query_params,
583
+ :form_params => form_params,
584
+ :body => post_body,
585
+ :auth_names => auth_names,
586
+ :return_type => return_type
587
+ )
588
+
589
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
590
+ if @api_client.config.debugging
591
+ @api_client.config.logger.debug "API called: AdminApi#admin_erase_resource\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
592
+ end
593
+ return data, status_code, headers
594
+ end
595
+
596
+ # Read full system settings
597
+ # The full instance settings, including the gating team slug that the public settings read withholds. Requires a system admin.
598
+ # @param [Hash] opts the optional parameters
599
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
600
+ # @return [SystemSettings]
601
+ def admin_get_settings(opts = {})
602
+ data, _status_code, _headers = admin_get_settings_with_http_info(opts)
603
+ data
604
+ end
605
+
606
+ # Read full system settings
607
+ # The full instance settings, including the gating team slug that the public settings read withholds. Requires a system admin.
608
+ # @param [Hash] opts the optional parameters
609
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
610
+ # @return [Array<(SystemSettings, Integer, Hash)>] SystemSettings data, response status code and response headers
611
+ def admin_get_settings_with_http_info(opts = {})
612
+ if @api_client.config.debugging
613
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_get_settings ...'
614
+ end
615
+ allowable_values = ["cli", "sdk"]
616
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
617
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
618
+ end
619
+ # resource path
620
+ local_var_path = '/api/access/admin/settings'
621
+
622
+ # query parameters
623
+ query_params = opts[:query_params] || {}
624
+
625
+ # header parameters
626
+ header_params = opts[:header_params] || {}
627
+ # HTTP header 'Accept' (if needed)
628
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
629
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
630
+
631
+ # form parameters
632
+ form_params = opts[:form_params] || {}
633
+
634
+ # http body (model)
635
+ post_body = opts[:debug_body]
636
+
637
+ # return_type
638
+ return_type = opts[:debug_return_type] || 'SystemSettings'
639
+
640
+ # auth_names
641
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
642
+
643
+ new_options = opts.merge(
644
+ :operation => :"AdminApi.admin_get_settings",
645
+ :header_params => header_params,
646
+ :query_params => query_params,
647
+ :form_params => form_params,
648
+ :body => post_body,
649
+ :auth_names => auth_names,
650
+ :return_type => return_type
651
+ )
652
+
653
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
654
+ if @api_client.config.debugging
655
+ @api_client.config.logger.debug "API called: AdminApi#admin_get_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
656
+ end
657
+ return data, status_code, headers
658
+ end
659
+
660
+ # List the erasure retention policy
661
+ # Lists the categories a person erasure keeps, each with its policy's name, basis and period. Empty by default: the act then keeps nothing. Requires a system admin. Any other caller gets 404.
662
+ # @param [Hash] opts the optional parameters
663
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
664
+ # @return [RetentionPolicies]
665
+ def admin_list_erasure_retention(opts = {})
666
+ data, _status_code, _headers = admin_list_erasure_retention_with_http_info(opts)
667
+ data
668
+ end
669
+
670
+ # List the erasure retention policy
671
+ # Lists the categories a person erasure keeps, each with its policy&#39;s name, basis and period. Empty by default: the act then keeps nothing. Requires a system admin. Any other caller gets 404.
672
+ # @param [Hash] opts the optional parameters
673
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
674
+ # @return [Array<(RetentionPolicies, Integer, Hash)>] RetentionPolicies data, response status code and response headers
675
+ def admin_list_erasure_retention_with_http_info(opts = {})
676
+ if @api_client.config.debugging
677
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_list_erasure_retention ...'
678
+ end
679
+ allowable_values = ["cli", "sdk"]
680
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
681
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
682
+ end
683
+ # resource path
684
+ local_var_path = '/api/admin/erasure/retention'
685
+
686
+ # query parameters
687
+ query_params = opts[:query_params] || {}
688
+
689
+ # header parameters
690
+ header_params = opts[:header_params] || {}
691
+ # HTTP header 'Accept' (if needed)
692
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
693
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
694
+
695
+ # form parameters
696
+ form_params = opts[:form_params] || {}
697
+
698
+ # http body (model)
699
+ post_body = opts[:debug_body]
700
+
701
+ # return_type
702
+ return_type = opts[:debug_return_type] || 'RetentionPolicies'
703
+
704
+ # auth_names
705
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
706
+
707
+ new_options = opts.merge(
708
+ :operation => :"AdminApi.admin_list_erasure_retention",
709
+ :header_params => header_params,
710
+ :query_params => query_params,
711
+ :form_params => form_params,
712
+ :body => post_body,
713
+ :auth_names => auth_names,
714
+ :return_type => return_type
715
+ )
716
+
717
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
718
+ if @api_client.config.debugging
719
+ @api_client.config.logger.debug "API called: AdminApi#admin_list_erasure_retention\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
720
+ end
721
+ return data, status_code, headers
722
+ end
723
+
724
+ # List pending join requests
725
+ # Every join request still awaiting a decision, with the requesting profile's handle, display name and email. Requires a system admin.
726
+ # @param [Hash] opts the optional parameters
727
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
728
+ # @return [Array<JoinRequestWithProfile>]
729
+ def admin_list_join_requests(opts = {})
730
+ data, _status_code, _headers = admin_list_join_requests_with_http_info(opts)
731
+ data
732
+ end
733
+
734
+ # List pending join requests
735
+ # Every join request still awaiting a decision, with the requesting profile&#39;s handle, display name and email. Requires a system admin.
736
+ # @param [Hash] opts the optional parameters
737
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
738
+ # @return [Array<(Array<JoinRequestWithProfile>, Integer, Hash)>] Array<JoinRequestWithProfile> data, response status code and response headers
739
+ def admin_list_join_requests_with_http_info(opts = {})
740
+ if @api_client.config.debugging
741
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_list_join_requests ...'
742
+ end
743
+ allowable_values = ["cli", "sdk"]
744
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
745
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
746
+ end
747
+ # resource path
748
+ local_var_path = '/api/access/admin/requests'
749
+
750
+ # query parameters
751
+ query_params = opts[:query_params] || {}
752
+
753
+ # header parameters
754
+ header_params = opts[:header_params] || {}
755
+ # HTTP header 'Accept' (if needed)
756
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
757
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
758
+
759
+ # form parameters
760
+ form_params = opts[:form_params] || {}
761
+
762
+ # http body (model)
763
+ post_body = opts[:debug_body]
764
+
765
+ # return_type
766
+ return_type = opts[:debug_return_type] || 'Array<JoinRequestWithProfile>'
767
+
768
+ # auth_names
769
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
770
+
771
+ new_options = opts.merge(
772
+ :operation => :"AdminApi.admin_list_join_requests",
773
+ :header_params => header_params,
774
+ :query_params => query_params,
775
+ :form_params => form_params,
776
+ :body => post_body,
777
+ :auth_names => auth_names,
778
+ :return_type => return_type
779
+ )
780
+
781
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
782
+ if @api_client.config.debugging
783
+ @api_client.config.logger.debug "API called: AdminApi#admin_list_join_requests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
784
+ end
785
+ return data, status_code, headers
786
+ end
787
+
788
+ # List profiles in the operator directory
789
+ # A filtered, paged directory of profiles with admission state, admin status and default verified email. With `email`, resolves exactly one verified address and answers that profile's state card instead of a page. Requires a system admin.
790
+ # @param [Hash] opts the optional parameters
791
+ # @option opts [String] :standing Filter by admission state: &#x60;denied|requested|approved|revoked|deactivated|needs-access|all&#x60;. Default &#x60;needs-access&#x60; — every non-approved state INCLUDING no standing row (the operator&#39;s work queue). Case-insensitive.
792
+ # @option opts [String] :email_contains Case-insensitive LITERAL substring matched over the profile&#39;s verified auth-link emails. &#x60;%&#x60;, &#x60;_&#x60; and &#x60;\\&#x60; have no wildcard meaning here. When set, each row carries &#x60;matched_email&#x60;.
793
+ # @option opts [String] :email EXACT, case-insensitive match over verified auth-link emails. When present the route answers with the single matching profile&#39;s state card (not a page): the one place a human-controlled address becomes a target UUID. Zero matches → 404; more than one profile verified-owns the address → 404 whose body names the collision. Mutually exclusive with &#x60;email_contains&#x60;.
794
+ # @option opts [String] :team Restrict to members of this team, by slug or UUID.
795
+ # @option opts [Integer] :limit Page size. Clamped server-side: default 50, capped at 200.
796
+ # @option opts [Integer] :offset Page offset. Floor 0, capped at 10000 (depth protection).
797
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
798
+ # @return [AdminProfilesListAnswer]
799
+ def admin_list_profiles(opts = {})
800
+ data, _status_code, _headers = admin_list_profiles_with_http_info(opts)
801
+ data
802
+ end
803
+
804
+ # List profiles in the operator directory
805
+ # A filtered, paged directory of profiles with admission state, admin status and default verified email. With &#x60;email&#x60;, resolves exactly one verified address and answers that profile&#39;s state card instead of a page. Requires a system admin.
806
+ # @param [Hash] opts the optional parameters
807
+ # @option opts [String] :standing Filter by admission state: &#x60;denied|requested|approved|revoked|deactivated|needs-access|all&#x60;. Default &#x60;needs-access&#x60; — every non-approved state INCLUDING no standing row (the operator&#39;s work queue). Case-insensitive.
808
+ # @option opts [String] :email_contains Case-insensitive LITERAL substring matched over the profile&#39;s verified auth-link emails. &#x60;%&#x60;, &#x60;_&#x60; and &#x60;\\&#x60; have no wildcard meaning here. When set, each row carries &#x60;matched_email&#x60;.
809
+ # @option opts [String] :email EXACT, case-insensitive match over verified auth-link emails. When present the route answers with the single matching profile&#39;s state card (not a page): the one place a human-controlled address becomes a target UUID. Zero matches → 404; more than one profile verified-owns the address → 404 whose body names the collision. Mutually exclusive with &#x60;email_contains&#x60;.
810
+ # @option opts [String] :team Restrict to members of this team, by slug or UUID.
811
+ # @option opts [Integer] :limit Page size. Clamped server-side: default 50, capped at 200.
812
+ # @option opts [Integer] :offset Page offset. Floor 0, capped at 10000 (depth protection).
813
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
814
+ # @return [Array<(AdminProfilesListAnswer, Integer, Hash)>] AdminProfilesListAnswer data, response status code and response headers
815
+ def admin_list_profiles_with_http_info(opts = {})
816
+ if @api_client.config.debugging
817
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_list_profiles ...'
818
+ end
819
+ allowable_values = ["cli", "sdk"]
820
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
821
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
822
+ end
823
+ # resource path
824
+ local_var_path = '/api/access/admin/profiles'
825
+
826
+ # query parameters
827
+ query_params = opts[:query_params] || {}
828
+ query_params[:'standing'] = opts[:'standing'] if !opts[:'standing'].nil?
829
+ query_params[:'email_contains'] = opts[:'email_contains'] if !opts[:'email_contains'].nil?
830
+ query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
831
+ query_params[:'team'] = opts[:'team'] if !opts[:'team'].nil?
832
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
833
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
834
+
835
+ # header parameters
836
+ header_params = opts[:header_params] || {}
837
+ # HTTP header 'Accept' (if needed)
838
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
839
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
840
+
841
+ # form parameters
842
+ form_params = opts[:form_params] || {}
843
+
844
+ # http body (model)
845
+ post_body = opts[:debug_body]
846
+
847
+ # return_type
848
+ return_type = opts[:debug_return_type] || 'AdminProfilesListAnswer'
849
+
850
+ # auth_names
851
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
852
+
853
+ new_options = opts.merge(
854
+ :operation => :"AdminApi.admin_list_profiles",
855
+ :header_params => header_params,
856
+ :query_params => query_params,
857
+ :form_params => form_params,
858
+ :body => post_body,
859
+ :auth_names => auth_names,
860
+ :return_type => return_type
861
+ )
862
+
863
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
864
+ if @api_client.config.debugging
865
+ @api_client.config.logger.debug "API called: AdminApi#admin_list_profiles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
866
+ end
867
+ return data, status_code, headers
868
+ end
869
+
870
+ # List a resource's scrubbable fields
871
+ # Lists what a field scrub can name on a resource, without recording or changing anything: the title, the origin URI and each resource-owned property family by its handle (the id of the first event still carrying its key text), with its event count, whether it is live or unset, when and by which profile it was first seen, the JSON type of its latest value, and the sensitivity sweep's flags. No key text and no value. An erased resource or a charter, which the act refuses before it reads a family, lists nothing. Requires a system admin. Any other caller gets 404, decided before any lookup.
872
+ # @param field_scrub_families_request [FieldScrubFamiliesRequest]
873
+ # @param [Hash] opts the optional parameters
874
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
875
+ # @return [FieldScrubFamilies]
876
+ def admin_list_resource_field_families(field_scrub_families_request, opts = {})
877
+ data, _status_code, _headers = admin_list_resource_field_families_with_http_info(field_scrub_families_request, opts)
878
+ data
879
+ end
880
+
881
+ # List a resource&#39;s scrubbable fields
882
+ # Lists what a field scrub can name on a resource, without recording or changing anything: the title, the origin URI and each resource-owned property family by its handle (the id of the first event still carrying its key text), with its event count, whether it is live or unset, when and by which profile it was first seen, the JSON type of its latest value, and the sensitivity sweep&#39;s flags. No key text and no value. An erased resource or a charter, which the act refuses before it reads a family, lists nothing. Requires a system admin. Any other caller gets 404, decided before any lookup.
883
+ # @param field_scrub_families_request [FieldScrubFamiliesRequest]
884
+ # @param [Hash] opts the optional parameters
885
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
886
+ # @return [Array<(FieldScrubFamilies, Integer, Hash)>] FieldScrubFamilies data, response status code and response headers
887
+ def admin_list_resource_field_families_with_http_info(field_scrub_families_request, opts = {})
888
+ if @api_client.config.debugging
889
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_list_resource_field_families ...'
890
+ end
891
+ # verify the required parameter 'field_scrub_families_request' is set
892
+ if @api_client.config.client_side_validation && field_scrub_families_request.nil?
893
+ fail ArgumentError, "Missing the required parameter 'field_scrub_families_request' when calling AdminApi.admin_list_resource_field_families"
894
+ end
895
+ allowable_values = ["cli", "sdk"]
896
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
897
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
898
+ end
899
+ # resource path
900
+ local_var_path = '/api/admin/resources/field-scrub/families'
901
+
902
+ # query parameters
903
+ query_params = opts[:query_params] || {}
904
+
905
+ # header parameters
906
+ header_params = opts[:header_params] || {}
907
+ # HTTP header 'Accept' (if needed)
908
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
909
+ # HTTP header 'Content-Type'
910
+ content_type = @api_client.select_header_content_type(['application/json'])
911
+ if !content_type.nil?
912
+ header_params['Content-Type'] = content_type
913
+ end
914
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
915
+
916
+ # form parameters
917
+ form_params = opts[:form_params] || {}
918
+
919
+ # http body (model)
920
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(field_scrub_families_request)
921
+
922
+ # return_type
923
+ return_type = opts[:debug_return_type] || 'FieldScrubFamilies'
924
+
925
+ # auth_names
926
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
927
+
928
+ new_options = opts.merge(
929
+ :operation => :"AdminApi.admin_list_resource_field_families",
930
+ :header_params => header_params,
931
+ :query_params => query_params,
932
+ :form_params => form_params,
933
+ :body => post_body,
934
+ :auth_names => auth_names,
935
+ :return_type => return_type
936
+ )
937
+
938
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
939
+ if @api_client.config.debugging
940
+ @api_client.config.logger.debug "API called: AdminApi#admin_list_resource_field_families\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
941
+ end
942
+ return data, status_code, headers
943
+ end
944
+
945
+ # List open reconsideration requests
946
+ # Reconsideration requests that have not been closed, with the asking principal's identity. Requires a system admin.
947
+ # @param [Hash] opts the optional parameters
948
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
949
+ # @return [Array<ReviewRequestWithProfile>]
950
+ def admin_list_reviews(opts = {})
951
+ data, _status_code, _headers = admin_list_reviews_with_http_info(opts)
952
+ data
953
+ end
954
+
955
+ # List open reconsideration requests
956
+ # Reconsideration requests that have not been closed, with the asking principal&#39;s identity. Requires a system admin.
957
+ # @param [Hash] opts the optional parameters
958
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
959
+ # @return [Array<(Array<ReviewRequestWithProfile>, Integer, Hash)>] Array<ReviewRequestWithProfile> data, response status code and response headers
960
+ def admin_list_reviews_with_http_info(opts = {})
961
+ if @api_client.config.debugging
962
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_list_reviews ...'
963
+ end
964
+ allowable_values = ["cli", "sdk"]
965
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
966
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
967
+ end
968
+ # resource path
969
+ local_var_path = '/api/access/admin/reviews'
970
+
971
+ # query parameters
972
+ query_params = opts[:query_params] || {}
973
+
974
+ # header parameters
975
+ header_params = opts[:header_params] || {}
976
+ # HTTP header 'Accept' (if needed)
977
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
978
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
979
+
980
+ # form parameters
981
+ form_params = opts[:form_params] || {}
982
+
983
+ # http body (model)
984
+ post_body = opts[:debug_body]
985
+
986
+ # return_type
987
+ return_type = opts[:debug_return_type] || 'Array<ReviewRequestWithProfile>'
988
+
989
+ # auth_names
990
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
991
+
992
+ new_options = opts.merge(
993
+ :operation => :"AdminApi.admin_list_reviews",
994
+ :header_params => header_params,
995
+ :query_params => query_params,
996
+ :form_params => form_params,
997
+ :body => post_body,
998
+ :auth_names => auth_names,
999
+ :return_type => return_type
1000
+ )
1001
+
1002
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1003
+ if @api_client.config.debugging
1004
+ @api_client.config.logger.debug "API called: AdminApi#admin_list_reviews\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1005
+ end
1006
+ return data, status_code, headers
1007
+ end
1008
+
1009
+ # Promote a profile to system admin
1010
+ # Grants the system-admin governance grant and approved standing. Also adds an `owner` row on the given team (the configured gating team when omitted); that row confers no authority by itself. Requires a system admin.
1011
+ # @param promote_admin_request [PromoteAdminRequest]
1012
+ # @param [Hash] opts the optional parameters
1013
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1014
+ # @return [TeamMemberRow]
1015
+ def admin_promote(promote_admin_request, opts = {})
1016
+ data, _status_code, _headers = admin_promote_with_http_info(promote_admin_request, opts)
1017
+ data
1018
+ end
1019
+
1020
+ # Promote a profile to system admin
1021
+ # Grants the system-admin governance grant and approved standing. Also adds an &#x60;owner&#x60; row on the given team (the configured gating team when omitted); that row confers no authority by itself. Requires a system admin.
1022
+ # @param promote_admin_request [PromoteAdminRequest]
1023
+ # @param [Hash] opts the optional parameters
1024
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1025
+ # @return [Array<(TeamMemberRow, Integer, Hash)>] TeamMemberRow data, response status code and response headers
1026
+ def admin_promote_with_http_info(promote_admin_request, opts = {})
1027
+ if @api_client.config.debugging
1028
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_promote ...'
1029
+ end
1030
+ # verify the required parameter 'promote_admin_request' is set
1031
+ if @api_client.config.client_side_validation && promote_admin_request.nil?
1032
+ fail ArgumentError, "Missing the required parameter 'promote_admin_request' when calling AdminApi.admin_promote"
1033
+ end
1034
+ allowable_values = ["cli", "sdk"]
1035
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1036
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1037
+ end
1038
+ # resource path
1039
+ local_var_path = '/api/access/admin/promote'
1040
+
1041
+ # query parameters
1042
+ query_params = opts[:query_params] || {}
1043
+
1044
+ # header parameters
1045
+ header_params = opts[:header_params] || {}
1046
+ # HTTP header 'Accept' (if needed)
1047
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1048
+ # HTTP header 'Content-Type'
1049
+ content_type = @api_client.select_header_content_type(['application/json'])
1050
+ if !content_type.nil?
1051
+ header_params['Content-Type'] = content_type
1052
+ end
1053
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1054
+
1055
+ # form parameters
1056
+ form_params = opts[:form_params] || {}
1057
+
1058
+ # http body (model)
1059
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(promote_admin_request)
1060
+
1061
+ # return_type
1062
+ return_type = opts[:debug_return_type] || 'TeamMemberRow'
1063
+
1064
+ # auth_names
1065
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1066
+
1067
+ new_options = opts.merge(
1068
+ :operation => :"AdminApi.admin_promote",
1069
+ :header_params => header_params,
1070
+ :query_params => query_params,
1071
+ :form_params => form_params,
1072
+ :body => post_body,
1073
+ :auth_names => auth_names,
1074
+ :return_type => return_type
1075
+ )
1076
+
1077
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1078
+ if @api_client.config.debugging
1079
+ @api_client.config.logger.debug "API called: AdminApi#admin_promote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1080
+ end
1081
+ return data, status_code, headers
1082
+ end
1083
+
1084
+ # Reactivate a principal
1085
+ # Restores a deactivated principal. Requires a system admin.
1086
+ # @param id [String] Profile ID of the principal
1087
+ # @param [Hash] opts the optional parameters
1088
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1089
+ # @return [nil]
1090
+ def admin_reactivate_principal(id, opts = {})
1091
+ admin_reactivate_principal_with_http_info(id, opts)
1092
+ nil
1093
+ end
1094
+
1095
+ # Reactivate a principal
1096
+ # Restores a deactivated principal. Requires a system admin.
1097
+ # @param id [String] Profile ID of the principal
1098
+ # @param [Hash] opts the optional parameters
1099
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1100
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1101
+ def admin_reactivate_principal_with_http_info(id, opts = {})
1102
+ if @api_client.config.debugging
1103
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_reactivate_principal ...'
1104
+ end
1105
+ # verify the required parameter 'id' is set
1106
+ if @api_client.config.client_side_validation && id.nil?
1107
+ fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_reactivate_principal"
1108
+ end
1109
+ allowable_values = ["cli", "sdk"]
1110
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1111
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1112
+ end
1113
+ # resource path
1114
+ local_var_path = '/api/access/admin/principals/{id}/reactivate'.sub('{id}', CGI.escape(id.to_s).gsub('.', '%2E'))
1115
+
1116
+ # query parameters
1117
+ query_params = opts[:query_params] || {}
1118
+
1119
+ # header parameters
1120
+ header_params = opts[:header_params] || {}
1121
+ # HTTP header 'Accept' (if needed)
1122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1123
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1124
+
1125
+ # form parameters
1126
+ form_params = opts[:form_params] || {}
1127
+
1128
+ # http body (model)
1129
+ post_body = opts[:debug_body]
1130
+
1131
+ # return_type
1132
+ return_type = opts[:debug_return_type]
1133
+
1134
+ # auth_names
1135
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1136
+
1137
+ new_options = opts.merge(
1138
+ :operation => :"AdminApi.admin_reactivate_principal",
1139
+ :header_params => header_params,
1140
+ :query_params => query_params,
1141
+ :form_params => form_params,
1142
+ :body => post_body,
1143
+ :auth_names => auth_names,
1144
+ :return_type => return_type
1145
+ )
1146
+
1147
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1148
+ if @api_client.config.debugging
1149
+ @api_client.config.logger.debug "API called: AdminApi#admin_reactivate_principal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1150
+ end
1151
+ return data, status_code, headers
1152
+ end
1153
+
1154
+ # Rebind a machine client to a new client ID
1155
+ # Points a fresh IdP `client_id` at the agent profile an existing machine client holds; by default the old client is revoked in the same transaction. The path `{id}` names the source client. Requires a system admin. Refused for a temper-issued source client, whose secret is rotated instead, and on an instance that runs temper's own authorization server.
1156
+ # @param id [String] The machine client whose profile the new client id inherits
1157
+ # @param rebind_machine_request [RebindMachineRequest]
1158
+ # @param [Hash] opts the optional parameters
1159
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1160
+ # @return [MachineClient]
1161
+ def admin_rebind_machine_client(id, rebind_machine_request, opts = {})
1162
+ data, _status_code, _headers = admin_rebind_machine_client_with_http_info(id, rebind_machine_request, opts)
1163
+ data
1164
+ end
1165
+
1166
+ # Rebind a machine client to a new client ID
1167
+ # Points a fresh IdP &#x60;client_id&#x60; at the agent profile an existing machine client holds; by default the old client is revoked in the same transaction. The path &#x60;{id}&#x60; names the source client. Requires a system admin. Refused for a temper-issued source client, whose secret is rotated instead, and on an instance that runs temper&#39;s own authorization server.
1168
+ # @param id [String] The machine client whose profile the new client id inherits
1169
+ # @param rebind_machine_request [RebindMachineRequest]
1170
+ # @param [Hash] opts the optional parameters
1171
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1172
+ # @return [Array<(MachineClient, Integer, Hash)>] MachineClient data, response status code and response headers
1173
+ def admin_rebind_machine_client_with_http_info(id, rebind_machine_request, opts = {})
1174
+ if @api_client.config.debugging
1175
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_rebind_machine_client ...'
1176
+ end
1177
+ # verify the required parameter 'id' is set
1178
+ if @api_client.config.client_side_validation && id.nil?
1179
+ fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_rebind_machine_client"
1180
+ end
1181
+ # verify the required parameter 'rebind_machine_request' is set
1182
+ if @api_client.config.client_side_validation && rebind_machine_request.nil?
1183
+ fail ArgumentError, "Missing the required parameter 'rebind_machine_request' when calling AdminApi.admin_rebind_machine_client"
1184
+ end
1185
+ allowable_values = ["cli", "sdk"]
1186
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1187
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1188
+ end
1189
+ # resource path
1190
+ local_var_path = '/api/machine-clients/{id}/rebind'.sub('{id}', CGI.escape(id.to_s).gsub('.', '%2E'))
1191
+
1192
+ # query parameters
1193
+ query_params = opts[:query_params] || {}
1194
+
1195
+ # header parameters
1196
+ header_params = opts[:header_params] || {}
1197
+ # HTTP header 'Accept' (if needed)
1198
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1199
+ # HTTP header 'Content-Type'
1200
+ content_type = @api_client.select_header_content_type(['application/json'])
1201
+ if !content_type.nil?
1202
+ header_params['Content-Type'] = content_type
1203
+ end
1204
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1205
+
1206
+ # form parameters
1207
+ form_params = opts[:form_params] || {}
1208
+
1209
+ # http body (model)
1210
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(rebind_machine_request)
1211
+
1212
+ # return_type
1213
+ return_type = opts[:debug_return_type] || 'MachineClient'
1214
+
1215
+ # auth_names
1216
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1217
+
1218
+ new_options = opts.merge(
1219
+ :operation => :"AdminApi.admin_rebind_machine_client",
1220
+ :header_params => header_params,
1221
+ :query_params => query_params,
1222
+ :form_params => form_params,
1223
+ :body => post_body,
1224
+ :auth_names => auth_names,
1225
+ :return_type => return_type
1226
+ )
1227
+
1228
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1229
+ if @api_client.config.debugging
1230
+ @api_client.config.logger.debug "API called: AdminApi#admin_rebind_machine_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1231
+ end
1232
+ return data, status_code, headers
1233
+ end
1234
+
1235
+ # Reconcile auto-join team rosters
1236
+ # Adds every approved person (never a machine principal) missing from an auto-join team and reports each (team, profile) pair added, plus the touched teams that also carry SAML group mappings (whose new native memberships take precedence over IdP role assertions). An empty `added` means nothing needed adding. Requires a system admin.
1237
+ # @param [Hash] opts the optional parameters
1238
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1239
+ # @return [ReconcileAutoJoinOutcome]
1240
+ def admin_reconcile_auto_join(opts = {})
1241
+ data, _status_code, _headers = admin_reconcile_auto_join_with_http_info(opts)
1242
+ data
1243
+ end
1244
+
1245
+ # Reconcile auto-join team rosters
1246
+ # Adds every approved person (never a machine principal) missing from an auto-join team and reports each (team, profile) pair added, plus the touched teams that also carry SAML group mappings (whose new native memberships take precedence over IdP role assertions). An empty &#x60;added&#x60; means nothing needed adding. Requires a system admin.
1247
+ # @param [Hash] opts the optional parameters
1248
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1249
+ # @return [Array<(ReconcileAutoJoinOutcome, Integer, Hash)>] ReconcileAutoJoinOutcome data, response status code and response headers
1250
+ def admin_reconcile_auto_join_with_http_info(opts = {})
1251
+ if @api_client.config.debugging
1252
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_reconcile_auto_join ...'
1253
+ end
1254
+ allowable_values = ["cli", "sdk"]
1255
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1256
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1257
+ end
1258
+ # resource path
1259
+ local_var_path = '/api/access/admin/auto-join/reconcile'
1260
+
1261
+ # query parameters
1262
+ query_params = opts[:query_params] || {}
1263
+
1264
+ # header parameters
1265
+ header_params = opts[:header_params] || {}
1266
+ # HTTP header 'Accept' (if needed)
1267
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1268
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1269
+
1270
+ # form parameters
1271
+ form_params = opts[:form_params] || {}
1272
+
1273
+ # http body (model)
1274
+ post_body = opts[:debug_body]
1275
+
1276
+ # return_type
1277
+ return_type = opts[:debug_return_type] || 'ReconcileAutoJoinOutcome'
1278
+
1279
+ # auth_names
1280
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1281
+
1282
+ new_options = opts.merge(
1283
+ :operation => :"AdminApi.admin_reconcile_auto_join",
1284
+ :header_params => header_params,
1285
+ :query_params => query_params,
1286
+ :form_params => form_params,
1287
+ :body => post_body,
1288
+ :auth_names => auth_names,
1289
+ :return_type => return_type
1290
+ )
1291
+
1292
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1293
+ if @api_client.config.debugging
1294
+ @api_client.config.logger.debug "API called: AdminApi#admin_reconcile_auto_join\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1295
+ end
1296
+ return data, status_code, headers
1297
+ end
1298
+
1299
+ # Re-embed stale chunks
1300
+ # Enqueues embedding jobs for chunks whose vector is missing or came from a model the server no longer embeds with, scoped to one resource, one context, or everything. `dry_run` reports what is stale without enqueuing. Bounded by `limit` per call and safe to repeat. Requires a system admin.
1301
+ # @param reembed_request [ReembedRequest]
1302
+ # @param [Hash] opts the optional parameters
1303
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1304
+ # @return [ReembedSummary]
1305
+ def admin_reembed(reembed_request, opts = {})
1306
+ data, _status_code, _headers = admin_reembed_with_http_info(reembed_request, opts)
1307
+ data
1308
+ end
1309
+
1310
+ # Re-embed stale chunks
1311
+ # Enqueues embedding jobs for chunks whose vector is missing or came from a model the server no longer embeds with, scoped to one resource, one context, or everything. &#x60;dry_run&#x60; reports what is stale without enqueuing. Bounded by &#x60;limit&#x60; per call and safe to repeat. Requires a system admin.
1312
+ # @param reembed_request [ReembedRequest]
1313
+ # @param [Hash] opts the optional parameters
1314
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1315
+ # @return [Array<(ReembedSummary, Integer, Hash)>] ReembedSummary data, response status code and response headers
1316
+ def admin_reembed_with_http_info(reembed_request, opts = {})
1317
+ if @api_client.config.debugging
1318
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_reembed ...'
1319
+ end
1320
+ # verify the required parameter 'reembed_request' is set
1321
+ if @api_client.config.client_side_validation && reembed_request.nil?
1322
+ fail ArgumentError, "Missing the required parameter 'reembed_request' when calling AdminApi.admin_reembed"
1323
+ end
1324
+ allowable_values = ["cli", "sdk"]
1325
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1326
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1327
+ end
1328
+ # resource path
1329
+ local_var_path = '/api/embed/admin/reembed'
1330
+
1331
+ # query parameters
1332
+ query_params = opts[:query_params] || {}
1333
+
1334
+ # header parameters
1335
+ header_params = opts[:header_params] || {}
1336
+ # HTTP header 'Accept' (if needed)
1337
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1338
+ # HTTP header 'Content-Type'
1339
+ content_type = @api_client.select_header_content_type(['application/json'])
1340
+ if !content_type.nil?
1341
+ header_params['Content-Type'] = content_type
1342
+ end
1343
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1344
+
1345
+ # form parameters
1346
+ form_params = opts[:form_params] || {}
1347
+
1348
+ # http body (model)
1349
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(reembed_request)
1350
+
1351
+ # return_type
1352
+ return_type = opts[:debug_return_type] || 'ReembedSummary'
1353
+
1354
+ # auth_names
1355
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1356
+
1357
+ new_options = opts.merge(
1358
+ :operation => :"AdminApi.admin_reembed",
1359
+ :header_params => header_params,
1360
+ :query_params => query_params,
1361
+ :form_params => form_params,
1362
+ :body => post_body,
1363
+ :auth_names => auth_names,
1364
+ :return_type => return_type
1365
+ )
1366
+
1367
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1368
+ if @api_client.config.debugging
1369
+ @api_client.config.logger.debug "API called: AdminApi#admin_reembed\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1370
+ end
1371
+ return data, status_code, headers
1372
+ end
1373
+
1374
+ # Remove an erasure retention policy
1375
+ # Stops keeping a category: a person erasure run afterwards removes it. Removing a category with no policy is a no-op. Requires a system admin. Any other caller gets 404.
1376
+ # @param category [RetentionCategory] The category to stop keeping
1377
+ # @param [Hash] opts the optional parameters
1378
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1379
+ # @return [RetentionPolicies]
1380
+ def admin_remove_erasure_retention(category, opts = {})
1381
+ data, _status_code, _headers = admin_remove_erasure_retention_with_http_info(category, opts)
1382
+ data
1383
+ end
1384
+
1385
+ # Remove an erasure retention policy
1386
+ # Stops keeping a category: a person erasure run afterwards removes it. Removing a category with no policy is a no-op. Requires a system admin. Any other caller gets 404.
1387
+ # @param category [RetentionCategory] The category to stop keeping
1388
+ # @param [Hash] opts the optional parameters
1389
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1390
+ # @return [Array<(RetentionPolicies, Integer, Hash)>] RetentionPolicies data, response status code and response headers
1391
+ def admin_remove_erasure_retention_with_http_info(category, opts = {})
1392
+ if @api_client.config.debugging
1393
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_remove_erasure_retention ...'
1394
+ end
1395
+ # verify the required parameter 'category' is set
1396
+ if @api_client.config.client_side_validation && category.nil?
1397
+ fail ArgumentError, "Missing the required parameter 'category' when calling AdminApi.admin_remove_erasure_retention"
1398
+ end
1399
+ allowable_values = ["cli", "sdk"]
1400
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1401
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1402
+ end
1403
+ # resource path
1404
+ local_var_path = '/api/admin/erasure/retention/{category}'.sub('{category}', CGI.escape(category.to_s).gsub('.', '%2E'))
1405
+
1406
+ # query parameters
1407
+ query_params = opts[:query_params] || {}
1408
+
1409
+ # header parameters
1410
+ header_params = opts[:header_params] || {}
1411
+ # HTTP header 'Accept' (if needed)
1412
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1413
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1414
+
1415
+ # form parameters
1416
+ form_params = opts[:form_params] || {}
1417
+
1418
+ # http body (model)
1419
+ post_body = opts[:debug_body]
1420
+
1421
+ # return_type
1422
+ return_type = opts[:debug_return_type] || 'RetentionPolicies'
1423
+
1424
+ # auth_names
1425
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1426
+
1427
+ new_options = opts.merge(
1428
+ :operation => :"AdminApi.admin_remove_erasure_retention",
1429
+ :header_params => header_params,
1430
+ :query_params => query_params,
1431
+ :form_params => form_params,
1432
+ :body => post_body,
1433
+ :auth_names => auth_names,
1434
+ :return_type => return_type
1435
+ )
1436
+
1437
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1438
+ if @api_client.config.debugging
1439
+ @api_client.config.logger.debug "API called: AdminApi#admin_remove_erasure_retention\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1440
+ end
1441
+ return data, status_code, headers
1442
+ end
1443
+
1444
+ # Approve or reject a join request
1445
+ # Records the decision on a pending join request, with an optional note. Requires a system admin.
1446
+ # @param id [String] Join request ID
1447
+ # @param review_request_body [ReviewRequestBody]
1448
+ # @param [Hash] opts the optional parameters
1449
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1450
+ # @return [JoinRequest]
1451
+ def admin_review_join_request(id, review_request_body, opts = {})
1452
+ data, _status_code, _headers = admin_review_join_request_with_http_info(id, review_request_body, opts)
1453
+ data
1454
+ end
1455
+
1456
+ # Approve or reject a join request
1457
+ # Records the decision on a pending join request, with an optional note. Requires a system admin.
1458
+ # @param id [String] Join request ID
1459
+ # @param review_request_body [ReviewRequestBody]
1460
+ # @param [Hash] opts the optional parameters
1461
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1462
+ # @return [Array<(JoinRequest, Integer, Hash)>] JoinRequest data, response status code and response headers
1463
+ def admin_review_join_request_with_http_info(id, review_request_body, opts = {})
1464
+ if @api_client.config.debugging
1465
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_review_join_request ...'
1466
+ end
1467
+ # verify the required parameter 'id' is set
1468
+ if @api_client.config.client_side_validation && id.nil?
1469
+ fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_review_join_request"
1470
+ end
1471
+ # verify the required parameter 'review_request_body' is set
1472
+ if @api_client.config.client_side_validation && review_request_body.nil?
1473
+ fail ArgumentError, "Missing the required parameter 'review_request_body' when calling AdminApi.admin_review_join_request"
1474
+ end
1475
+ allowable_values = ["cli", "sdk"]
1476
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1477
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1478
+ end
1479
+ # resource path
1480
+ local_var_path = '/api/access/admin/requests/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('.', '%2E'))
1481
+
1482
+ # query parameters
1483
+ query_params = opts[:query_params] || {}
1484
+
1485
+ # header parameters
1486
+ header_params = opts[:header_params] || {}
1487
+ # HTTP header 'Accept' (if needed)
1488
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1489
+ # HTTP header 'Content-Type'
1490
+ content_type = @api_client.select_header_content_type(['application/json'])
1491
+ if !content_type.nil?
1492
+ header_params['Content-Type'] = content_type
1493
+ end
1494
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1495
+
1496
+ # form parameters
1497
+ form_params = opts[:form_params] || {}
1498
+
1499
+ # http body (model)
1500
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(review_request_body)
1501
+
1502
+ # return_type
1503
+ return_type = opts[:debug_return_type] || 'JoinRequest'
1504
+
1505
+ # auth_names
1506
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1507
+
1508
+ new_options = opts.merge(
1509
+ :operation => :"AdminApi.admin_review_join_request",
1510
+ :header_params => header_params,
1511
+ :query_params => query_params,
1512
+ :form_params => form_params,
1513
+ :body => post_body,
1514
+ :auth_names => auth_names,
1515
+ :return_type => return_type
1516
+ )
1517
+
1518
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1519
+ if @api_client.config.debugging
1520
+ @api_client.config.logger.debug "API called: AdminApi#admin_review_join_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1521
+ end
1522
+ return data, status_code, headers
1523
+ end
1524
+
1525
+ # Revoke a principal's admission
1526
+ # Revokes a principal's admission, with a required reason that is recorded. Requires a system admin.
1527
+ # @param id [String] Profile ID of the principal
1528
+ # @param revoke_principal_body [RevokePrincipalBody]
1529
+ # @param [Hash] opts the optional parameters
1530
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1531
+ # @return [nil]
1532
+ def admin_revoke_principal(id, revoke_principal_body, opts = {})
1533
+ admin_revoke_principal_with_http_info(id, revoke_principal_body, opts)
1534
+ nil
1535
+ end
1536
+
1537
+ # Revoke a principal&#39;s admission
1538
+ # Revokes a principal&#39;s admission, with a required reason that is recorded. Requires a system admin.
1539
+ # @param id [String] Profile ID of the principal
1540
+ # @param revoke_principal_body [RevokePrincipalBody]
1541
+ # @param [Hash] opts the optional parameters
1542
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1543
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1544
+ def admin_revoke_principal_with_http_info(id, revoke_principal_body, opts = {})
1545
+ if @api_client.config.debugging
1546
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_revoke_principal ...'
1547
+ end
1548
+ # verify the required parameter 'id' is set
1549
+ if @api_client.config.client_side_validation && id.nil?
1550
+ fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_revoke_principal"
1551
+ end
1552
+ # verify the required parameter 'revoke_principal_body' is set
1553
+ if @api_client.config.client_side_validation && revoke_principal_body.nil?
1554
+ fail ArgumentError, "Missing the required parameter 'revoke_principal_body' when calling AdminApi.admin_revoke_principal"
1555
+ end
1556
+ allowable_values = ["cli", "sdk"]
1557
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1558
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1559
+ end
1560
+ # resource path
1561
+ local_var_path = '/api/access/admin/principals/{id}/revoke'.sub('{id}', CGI.escape(id.to_s).gsub('.', '%2E'))
1562
+
1563
+ # query parameters
1564
+ query_params = opts[:query_params] || {}
1565
+
1566
+ # header parameters
1567
+ header_params = opts[:header_params] || {}
1568
+ # HTTP header 'Accept' (if needed)
1569
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1570
+ # HTTP header 'Content-Type'
1571
+ content_type = @api_client.select_header_content_type(['application/json'])
1572
+ if !content_type.nil?
1573
+ header_params['Content-Type'] = content_type
1574
+ end
1575
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1576
+
1577
+ # form parameters
1578
+ form_params = opts[:form_params] || {}
1579
+
1580
+ # http body (model)
1581
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(revoke_principal_body)
1582
+
1583
+ # return_type
1584
+ return_type = opts[:debug_return_type]
1585
+
1586
+ # auth_names
1587
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1588
+
1589
+ new_options = opts.merge(
1590
+ :operation => :"AdminApi.admin_revoke_principal",
1591
+ :header_params => header_params,
1592
+ :query_params => query_params,
1593
+ :form_params => form_params,
1594
+ :body => post_body,
1595
+ :auth_names => auth_names,
1596
+ :return_type => return_type
1597
+ )
1598
+
1599
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1600
+ if @api_client.config.debugging
1601
+ @api_client.config.logger.debug "API called: AdminApi#admin_revoke_principal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1602
+ end
1603
+ return data, status_code, headers
1604
+ end
1605
+
1606
+ # Scrub the history of resource blocks
1607
+ # Empties the history of the named blocks of a resource that is not erased: every revision but the current one and every non-current chunk of a live block, and every revision and chunk of a folded block. An in-flight ingest is cancelled and recorded. The server mints the request reference. The answer is either a completion or a recorded refusal (`status`). The list is checked against the resource's blocks first, whatever the resource's state, so a recorded refusal names only real blocks of the resource. Requires a system admin. Any other caller gets 404, decided before any lookup, so a refusal reveals nothing about the resource.
1608
+ # @param block_history_scrub_request_body [BlockHistoryScrubRequestBody]
1609
+ # @param [Hash] opts the optional parameters
1610
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1611
+ # @return [BlockHistoryScrubExecuteResponse]
1612
+ def admin_scrub_block_history(block_history_scrub_request_body, opts = {})
1613
+ data, _status_code, _headers = admin_scrub_block_history_with_http_info(block_history_scrub_request_body, opts)
1614
+ data
1615
+ end
1616
+
1617
+ # Scrub the history of resource blocks
1618
+ # Empties the history of the named blocks of a resource that is not erased: every revision but the current one and every non-current chunk of a live block, and every revision and chunk of a folded block. An in-flight ingest is cancelled and recorded. The server mints the request reference. The answer is either a completion or a recorded refusal (&#x60;status&#x60;). The list is checked against the resource&#39;s blocks first, whatever the resource&#39;s state, so a recorded refusal names only real blocks of the resource. Requires a system admin. Any other caller gets 404, decided before any lookup, so a refusal reveals nothing about the resource.
1619
+ # @param block_history_scrub_request_body [BlockHistoryScrubRequestBody]
1620
+ # @param [Hash] opts the optional parameters
1621
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1622
+ # @return [Array<(BlockHistoryScrubExecuteResponse, Integer, Hash)>] BlockHistoryScrubExecuteResponse data, response status code and response headers
1623
+ def admin_scrub_block_history_with_http_info(block_history_scrub_request_body, opts = {})
1624
+ if @api_client.config.debugging
1625
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_scrub_block_history ...'
1626
+ end
1627
+ # verify the required parameter 'block_history_scrub_request_body' is set
1628
+ if @api_client.config.client_side_validation && block_history_scrub_request_body.nil?
1629
+ fail ArgumentError, "Missing the required parameter 'block_history_scrub_request_body' when calling AdminApi.admin_scrub_block_history"
1630
+ end
1631
+ allowable_values = ["cli", "sdk"]
1632
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1633
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1634
+ end
1635
+ # resource path
1636
+ local_var_path = '/api/admin/resources/block-history-scrub'
1637
+
1638
+ # query parameters
1639
+ query_params = opts[:query_params] || {}
1640
+
1641
+ # header parameters
1642
+ header_params = opts[:header_params] || {}
1643
+ # HTTP header 'Accept' (if needed)
1644
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1645
+ # HTTP header 'Content-Type'
1646
+ content_type = @api_client.select_header_content_type(['application/json'])
1647
+ if !content_type.nil?
1648
+ header_params['Content-Type'] = content_type
1649
+ end
1650
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1651
+
1652
+ # form parameters
1653
+ form_params = opts[:form_params] || {}
1654
+
1655
+ # http body (model)
1656
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(block_history_scrub_request_body)
1657
+
1658
+ # return_type
1659
+ return_type = opts[:debug_return_type] || 'BlockHistoryScrubExecuteResponse'
1660
+
1661
+ # auth_names
1662
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1663
+
1664
+ new_options = opts.merge(
1665
+ :operation => :"AdminApi.admin_scrub_block_history",
1666
+ :header_params => header_params,
1667
+ :query_params => query_params,
1668
+ :form_params => form_params,
1669
+ :body => post_body,
1670
+ :auth_names => auth_names,
1671
+ :return_type => return_type
1672
+ )
1673
+
1674
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1675
+ if @api_client.config.debugging
1676
+ @api_client.config.logger.debug "API called: AdminApi#admin_scrub_block_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1677
+ end
1678
+ return data, status_code, headers
1679
+ end
1680
+
1681
+ # Scrub a resource field's history
1682
+ # Redacts every prior value of a resource's title, origin URI, one property family (named by its handle from the family listing) or every property family, from the ledger and the projection, while the resource survives. By default today's value is kept; with `clear`, the act first clears it (a placeholder title or origin URI, the placeholder type for `doc_type`, or an unset of the family) and then redacts every value the field held. `properties` cannot be cleared. The server mints the request reference. The answer is either a completion or a recorded refusal (`status`). The request and the handle are checked first, whatever the resource's state, so a recorded refusal names only a real family of the resource. No key text or value appears in the request, the answer or the record. Requires a system admin. Any other caller gets 404, decided before any lookup, so a refusal reveals nothing about the resource.
1683
+ # @param field_scrub_request_body [FieldScrubRequestBody]
1684
+ # @param [Hash] opts the optional parameters
1685
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1686
+ # @return [FieldScrubExecuteResponse]
1687
+ def admin_scrub_resource_field(field_scrub_request_body, opts = {})
1688
+ data, _status_code, _headers = admin_scrub_resource_field_with_http_info(field_scrub_request_body, opts)
1689
+ data
1690
+ end
1691
+
1692
+ # Scrub a resource field&#39;s history
1693
+ # Redacts every prior value of a resource&#39;s title, origin URI, one property family (named by its handle from the family listing) or every property family, from the ledger and the projection, while the resource survives. By default today&#39;s value is kept; with &#x60;clear&#x60;, the act first clears it (a placeholder title or origin URI, the placeholder type for &#x60;doc_type&#x60;, or an unset of the family) and then redacts every value the field held. &#x60;properties&#x60; cannot be cleared. The server mints the request reference. The answer is either a completion or a recorded refusal (&#x60;status&#x60;). The request and the handle are checked first, whatever the resource&#39;s state, so a recorded refusal names only a real family of the resource. No key text or value appears in the request, the answer or the record. Requires a system admin. Any other caller gets 404, decided before any lookup, so a refusal reveals nothing about the resource.
1694
+ # @param field_scrub_request_body [FieldScrubRequestBody]
1695
+ # @param [Hash] opts the optional parameters
1696
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1697
+ # @return [Array<(FieldScrubExecuteResponse, Integer, Hash)>] FieldScrubExecuteResponse data, response status code and response headers
1698
+ def admin_scrub_resource_field_with_http_info(field_scrub_request_body, opts = {})
1699
+ if @api_client.config.debugging
1700
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_scrub_resource_field ...'
1701
+ end
1702
+ # verify the required parameter 'field_scrub_request_body' is set
1703
+ if @api_client.config.client_side_validation && field_scrub_request_body.nil?
1704
+ fail ArgumentError, "Missing the required parameter 'field_scrub_request_body' when calling AdminApi.admin_scrub_resource_field"
1705
+ end
1706
+ allowable_values = ["cli", "sdk"]
1707
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1708
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1709
+ end
1710
+ # resource path
1711
+ local_var_path = '/api/admin/resources/field-scrub'
1712
+
1713
+ # query parameters
1714
+ query_params = opts[:query_params] || {}
1715
+
1716
+ # header parameters
1717
+ header_params = opts[:header_params] || {}
1718
+ # HTTP header 'Accept' (if needed)
1719
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1720
+ # HTTP header 'Content-Type'
1721
+ content_type = @api_client.select_header_content_type(['application/json'])
1722
+ if !content_type.nil?
1723
+ header_params['Content-Type'] = content_type
1724
+ end
1725
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1726
+
1727
+ # form parameters
1728
+ form_params = opts[:form_params] || {}
1729
+
1730
+ # http body (model)
1731
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(field_scrub_request_body)
1732
+
1733
+ # return_type
1734
+ return_type = opts[:debug_return_type] || 'FieldScrubExecuteResponse'
1735
+
1736
+ # auth_names
1737
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1738
+
1739
+ new_options = opts.merge(
1740
+ :operation => :"AdminApi.admin_scrub_resource_field",
1741
+ :header_params => header_params,
1742
+ :query_params => query_params,
1743
+ :form_params => form_params,
1744
+ :body => post_body,
1745
+ :auth_names => auth_names,
1746
+ :return_type => return_type
1747
+ )
1748
+
1749
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1750
+ if @api_client.config.debugging
1751
+ @api_client.config.logger.debug "API called: AdminApi#admin_scrub_resource_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1752
+ end
1753
+ return data, status_code, headers
1754
+ end
1755
+
1756
+ # Set an erasure retention policy
1757
+ # Names a category a person erasure keeps, with the basis and the period, replacing the category's existing policy. Only free text and replay evidence can be kept; identifiers and credentials cannot. The act records each kept category and its policy. Nothing deletes kept data when the period ends. Requires a system admin. Any other caller gets 404.
1758
+ # @param retention_policy_set [RetentionPolicySet]
1759
+ # @param [Hash] opts the optional parameters
1760
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1761
+ # @return [RetentionPolicies]
1762
+ def admin_set_erasure_retention(retention_policy_set, opts = {})
1763
+ data, _status_code, _headers = admin_set_erasure_retention_with_http_info(retention_policy_set, opts)
1764
+ data
1765
+ end
1766
+
1767
+ # Set an erasure retention policy
1768
+ # Names a category a person erasure keeps, with the basis and the period, replacing the category&#39;s existing policy. Only free text and replay evidence can be kept; identifiers and credentials cannot. The act records each kept category and its policy. Nothing deletes kept data when the period ends. Requires a system admin. Any other caller gets 404.
1769
+ # @param retention_policy_set [RetentionPolicySet]
1770
+ # @param [Hash] opts the optional parameters
1771
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1772
+ # @return [Array<(RetentionPolicies, Integer, Hash)>] RetentionPolicies data, response status code and response headers
1773
+ def admin_set_erasure_retention_with_http_info(retention_policy_set, opts = {})
1774
+ if @api_client.config.debugging
1775
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_set_erasure_retention ...'
1776
+ end
1777
+ # verify the required parameter 'retention_policy_set' is set
1778
+ if @api_client.config.client_side_validation && retention_policy_set.nil?
1779
+ fail ArgumentError, "Missing the required parameter 'retention_policy_set' when calling AdminApi.admin_set_erasure_retention"
1780
+ end
1781
+ allowable_values = ["cli", "sdk"]
1782
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1783
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1784
+ end
1785
+ # resource path
1786
+ local_var_path = '/api/admin/erasure/retention'
1787
+
1788
+ # query parameters
1789
+ query_params = opts[:query_params] || {}
1790
+
1791
+ # header parameters
1792
+ header_params = opts[:header_params] || {}
1793
+ # HTTP header 'Accept' (if needed)
1794
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1795
+ # HTTP header 'Content-Type'
1796
+ content_type = @api_client.select_header_content_type(['application/json'])
1797
+ if !content_type.nil?
1798
+ header_params['Content-Type'] = content_type
1799
+ end
1800
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1801
+
1802
+ # form parameters
1803
+ form_params = opts[:form_params] || {}
1804
+
1805
+ # http body (model)
1806
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(retention_policy_set)
1807
+
1808
+ # return_type
1809
+ return_type = opts[:debug_return_type] || 'RetentionPolicies'
1810
+
1811
+ # auth_names
1812
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1813
+
1814
+ new_options = opts.merge(
1815
+ :operation => :"AdminApi.admin_set_erasure_retention",
1816
+ :header_params => header_params,
1817
+ :query_params => query_params,
1818
+ :form_params => form_params,
1819
+ :body => post_body,
1820
+ :auth_names => auth_names,
1821
+ :return_type => return_type
1822
+ )
1823
+
1824
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1825
+ if @api_client.config.debugging
1826
+ @api_client.config.logger.debug "API called: AdminApi#admin_set_erasure_retention\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1827
+ end
1828
+ return data, status_code, headers
1829
+ end
1830
+
1831
+ # Show a profile's state card
1832
+ # One profile's admission state, governance, identity links, team memberships, pending invitations and open queue items. Requires a system admin.
1833
+ # @param profile_id [String] Profile ID
1834
+ # @param [Hash] opts the optional parameters
1835
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1836
+ # @return [AdminProfileCard]
1837
+ def admin_show_profile(profile_id, opts = {})
1838
+ data, _status_code, _headers = admin_show_profile_with_http_info(profile_id, opts)
1839
+ data
1840
+ end
1841
+
1842
+ # Show a profile&#39;s state card
1843
+ # One profile&#39;s admission state, governance, identity links, team memberships, pending invitations and open queue items. Requires a system admin.
1844
+ # @param profile_id [String] Profile ID
1845
+ # @param [Hash] opts the optional parameters
1846
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1847
+ # @return [Array<(AdminProfileCard, Integer, Hash)>] AdminProfileCard data, response status code and response headers
1848
+ def admin_show_profile_with_http_info(profile_id, opts = {})
1849
+ if @api_client.config.debugging
1850
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_show_profile ...'
1851
+ end
1852
+ # verify the required parameter 'profile_id' is set
1853
+ if @api_client.config.client_side_validation && profile_id.nil?
1854
+ fail ArgumentError, "Missing the required parameter 'profile_id' when calling AdminApi.admin_show_profile"
1855
+ end
1856
+ allowable_values = ["cli", "sdk"]
1857
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1858
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1859
+ end
1860
+ # resource path
1861
+ local_var_path = '/api/access/admin/profiles/{profile_id}'.sub('{profile_id}', CGI.escape(profile_id.to_s).gsub('.', '%2E'))
1862
+
1863
+ # query parameters
1864
+ query_params = opts[:query_params] || {}
1865
+
1866
+ # header parameters
1867
+ header_params = opts[:header_params] || {}
1868
+ # HTTP header 'Accept' (if needed)
1869
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1870
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1871
+
1872
+ # form parameters
1873
+ form_params = opts[:form_params] || {}
1874
+
1875
+ # http body (model)
1876
+ post_body = opts[:debug_body]
1877
+
1878
+ # return_type
1879
+ return_type = opts[:debug_return_type] || 'AdminProfileCard'
1880
+
1881
+ # auth_names
1882
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1883
+
1884
+ new_options = opts.merge(
1885
+ :operation => :"AdminApi.admin_show_profile",
1886
+ :header_params => header_params,
1887
+ :query_params => query_params,
1888
+ :form_params => form_params,
1889
+ :body => post_body,
1890
+ :auth_names => auth_names,
1891
+ :return_type => return_type
1892
+ )
1893
+
1894
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1895
+ if @api_client.config.debugging
1896
+ @api_client.config.logger.debug "API called: AdminApi#admin_show_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1897
+ end
1898
+ return data, status_code, headers
1899
+ end
1900
+
1901
+ # Survey a block history scrub
1902
+ # Reports what the block history scrub would do for the named blocks of a resource, without recording or changing anything: per block, whether it is folded and how many revisions and chunks it would empty, and whether an in-flight ingest would be cancelled. For a charter or an erased resource it reports the refusal the act would record (`refusal`, `detail`) and no plan, once the list names only blocks of the resource. The warning that a block's current revision still carries a sensitivity finding arrives with the sensitivity sweep (build order 3c); this survey reports counts only. Requires a system admin. Any other caller gets 404, decided before any lookup.
1903
+ # @param block_history_scrub_request_body [BlockHistoryScrubRequestBody]
1904
+ # @param [Hash] opts the optional parameters
1905
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1906
+ # @return [BlockHistoryScrubSurvey]
1907
+ def admin_survey_block_history_scrub(block_history_scrub_request_body, opts = {})
1908
+ data, _status_code, _headers = admin_survey_block_history_scrub_with_http_info(block_history_scrub_request_body, opts)
1909
+ data
1910
+ end
1911
+
1912
+ # Survey a block history scrub
1913
+ # Reports what the block history scrub would do for the named blocks of a resource, without recording or changing anything: per block, whether it is folded and how many revisions and chunks it would empty, and whether an in-flight ingest would be cancelled. For a charter or an erased resource it reports the refusal the act would record (&#x60;refusal&#x60;, &#x60;detail&#x60;) and no plan, once the list names only blocks of the resource. The warning that a block&#39;s current revision still carries a sensitivity finding arrives with the sensitivity sweep (build order 3c); this survey reports counts only. Requires a system admin. Any other caller gets 404, decided before any lookup.
1914
+ # @param block_history_scrub_request_body [BlockHistoryScrubRequestBody]
1915
+ # @param [Hash] opts the optional parameters
1916
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1917
+ # @return [Array<(BlockHistoryScrubSurvey, Integer, Hash)>] BlockHistoryScrubSurvey data, response status code and response headers
1918
+ def admin_survey_block_history_scrub_with_http_info(block_history_scrub_request_body, opts = {})
1919
+ if @api_client.config.debugging
1920
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_survey_block_history_scrub ...'
1921
+ end
1922
+ # verify the required parameter 'block_history_scrub_request_body' is set
1923
+ if @api_client.config.client_side_validation && block_history_scrub_request_body.nil?
1924
+ fail ArgumentError, "Missing the required parameter 'block_history_scrub_request_body' when calling AdminApi.admin_survey_block_history_scrub"
1925
+ end
1926
+ allowable_values = ["cli", "sdk"]
1927
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
1928
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
1929
+ end
1930
+ # resource path
1931
+ local_var_path = '/api/admin/resources/block-history-scrub/survey'
1932
+
1933
+ # query parameters
1934
+ query_params = opts[:query_params] || {}
1935
+
1936
+ # header parameters
1937
+ header_params = opts[:header_params] || {}
1938
+ # HTTP header 'Accept' (if needed)
1939
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1940
+ # HTTP header 'Content-Type'
1941
+ content_type = @api_client.select_header_content_type(['application/json'])
1942
+ if !content_type.nil?
1943
+ header_params['Content-Type'] = content_type
1944
+ end
1945
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
1946
+
1947
+ # form parameters
1948
+ form_params = opts[:form_params] || {}
1949
+
1950
+ # http body (model)
1951
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(block_history_scrub_request_body)
1952
+
1953
+ # return_type
1954
+ return_type = opts[:debug_return_type] || 'BlockHistoryScrubSurvey'
1955
+
1956
+ # auth_names
1957
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
1958
+
1959
+ new_options = opts.merge(
1960
+ :operation => :"AdminApi.admin_survey_block_history_scrub",
1961
+ :header_params => header_params,
1962
+ :query_params => query_params,
1963
+ :form_params => form_params,
1964
+ :body => post_body,
1965
+ :auth_names => auth_names,
1966
+ :return_type => return_type
1967
+ )
1968
+
1969
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1970
+ if @api_client.config.debugging
1971
+ @api_client.config.logger.debug "API called: AdminApi#admin_survey_block_history_scrub\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1972
+ end
1973
+ return data, status_code, headers
1974
+ end
1975
+
1976
+ # Survey a principal erasure
1977
+ # Reports what the erasure act would do for a principal, without recording or changing anything. Requires a system admin. Any other caller gets 404, decided before any lookup.
1978
+ # @param erasure_survey_request [ErasureSurveyRequest]
1979
+ # @param [Hash] opts the optional parameters
1980
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1981
+ # @return [ErasureSurveyResponse]
1982
+ def admin_survey_principal_erasure(erasure_survey_request, opts = {})
1983
+ data, _status_code, _headers = admin_survey_principal_erasure_with_http_info(erasure_survey_request, opts)
1984
+ data
1985
+ end
1986
+
1987
+ # Survey a principal erasure
1988
+ # Reports what the erasure act would do for a principal, without recording or changing anything. Requires a system admin. Any other caller gets 404, decided before any lookup.
1989
+ # @param erasure_survey_request [ErasureSurveyRequest]
1990
+ # @param [Hash] opts the optional parameters
1991
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
1992
+ # @return [Array<(ErasureSurveyResponse, Integer, Hash)>] ErasureSurveyResponse data, response status code and response headers
1993
+ def admin_survey_principal_erasure_with_http_info(erasure_survey_request, opts = {})
1994
+ if @api_client.config.debugging
1995
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_survey_principal_erasure ...'
1996
+ end
1997
+ # verify the required parameter 'erasure_survey_request' is set
1998
+ if @api_client.config.client_side_validation && erasure_survey_request.nil?
1999
+ fail ArgumentError, "Missing the required parameter 'erasure_survey_request' when calling AdminApi.admin_survey_principal_erasure"
2000
+ end
2001
+ allowable_values = ["cli", "sdk"]
2002
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
2003
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
2004
+ end
2005
+ # resource path
2006
+ local_var_path = '/api/admin/erasure/survey'
2007
+
2008
+ # query parameters
2009
+ query_params = opts[:query_params] || {}
2010
+
2011
+ # header parameters
2012
+ header_params = opts[:header_params] || {}
2013
+ # HTTP header 'Accept' (if needed)
2014
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2015
+ # HTTP header 'Content-Type'
2016
+ content_type = @api_client.select_header_content_type(['application/json'])
2017
+ if !content_type.nil?
2018
+ header_params['Content-Type'] = content_type
2019
+ end
2020
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
2021
+
2022
+ # form parameters
2023
+ form_params = opts[:form_params] || {}
2024
+
2025
+ # http body (model)
2026
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(erasure_survey_request)
2027
+
2028
+ # return_type
2029
+ return_type = opts[:debug_return_type] || 'ErasureSurveyResponse'
2030
+
2031
+ # auth_names
2032
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
2033
+
2034
+ new_options = opts.merge(
2035
+ :operation => :"AdminApi.admin_survey_principal_erasure",
2036
+ :header_params => header_params,
2037
+ :query_params => query_params,
2038
+ :form_params => form_params,
2039
+ :body => post_body,
2040
+ :auth_names => auth_names,
2041
+ :return_type => return_type
2042
+ )
2043
+
2044
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2045
+ if @api_client.config.debugging
2046
+ @api_client.config.logger.debug "API called: AdminApi#admin_survey_principal_erasure\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2047
+ end
2048
+ return data, status_code, headers
2049
+ end
2050
+
2051
+ # Survey a resource erasure
2052
+ # Reports what the erasure act would do for a resource, without recording or changing anything. `plan` is absent when the resource was already erased. Requires a system admin. Any other caller gets 404, decided before any lookup.
2053
+ # @param resource_erasure_survey_request [ResourceErasureSurveyRequest]
2054
+ # @param [Hash] opts the optional parameters
2055
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
2056
+ # @return [ResourceErasureSurvey]
2057
+ def admin_survey_resource_erasure(resource_erasure_survey_request, opts = {})
2058
+ data, _status_code, _headers = admin_survey_resource_erasure_with_http_info(resource_erasure_survey_request, opts)
2059
+ data
2060
+ end
2061
+
2062
+ # Survey a resource erasure
2063
+ # Reports what the erasure act would do for a resource, without recording or changing anything. &#x60;plan&#x60; is absent when the resource was already erased. Requires a system admin. Any other caller gets 404, decided before any lookup.
2064
+ # @param resource_erasure_survey_request [ResourceErasureSurveyRequest]
2065
+ # @param [Hash] opts the optional parameters
2066
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
2067
+ # @return [Array<(ResourceErasureSurvey, Integer, Hash)>] ResourceErasureSurvey data, response status code and response headers
2068
+ def admin_survey_resource_erasure_with_http_info(resource_erasure_survey_request, opts = {})
2069
+ if @api_client.config.debugging
2070
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_survey_resource_erasure ...'
2071
+ end
2072
+ # verify the required parameter 'resource_erasure_survey_request' is set
2073
+ if @api_client.config.client_side_validation && resource_erasure_survey_request.nil?
2074
+ fail ArgumentError, "Missing the required parameter 'resource_erasure_survey_request' when calling AdminApi.admin_survey_resource_erasure"
2075
+ end
2076
+ allowable_values = ["cli", "sdk"]
2077
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
2078
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
2079
+ end
2080
+ # resource path
2081
+ local_var_path = '/api/admin/resources/erasure/survey'
2082
+
2083
+ # query parameters
2084
+ query_params = opts[:query_params] || {}
2085
+
2086
+ # header parameters
2087
+ header_params = opts[:header_params] || {}
2088
+ # HTTP header 'Accept' (if needed)
2089
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2090
+ # HTTP header 'Content-Type'
2091
+ content_type = @api_client.select_header_content_type(['application/json'])
2092
+ if !content_type.nil?
2093
+ header_params['Content-Type'] = content_type
2094
+ end
2095
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
2096
+
2097
+ # form parameters
2098
+ form_params = opts[:form_params] || {}
2099
+
2100
+ # http body (model)
2101
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(resource_erasure_survey_request)
2102
+
2103
+ # return_type
2104
+ return_type = opts[:debug_return_type] || 'ResourceErasureSurvey'
2105
+
2106
+ # auth_names
2107
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
2108
+
2109
+ new_options = opts.merge(
2110
+ :operation => :"AdminApi.admin_survey_resource_erasure",
2111
+ :header_params => header_params,
2112
+ :query_params => query_params,
2113
+ :form_params => form_params,
2114
+ :body => post_body,
2115
+ :auth_names => auth_names,
2116
+ :return_type => return_type
2117
+ )
2118
+
2119
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2120
+ if @api_client.config.debugging
2121
+ @api_client.config.logger.debug "API called: AdminApi#admin_survey_resource_erasure\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2122
+ end
2123
+ return data, status_code, headers
2124
+ end
2125
+
2126
+ # Survey a field scrub
2127
+ # Reports what the field scrub would do, without recording or changing anything: the ledger paths it would redact, the paths it keeps (today's value) or cannot reach and why, the folded property rows it would rewrite, and the events `clear` would append, beside the family listing with the sensitivity sweep's flags. For a charter, an erased resource, a sentinel collision or a title or origin URI whose latest event disagrees with the projection it reports the refusal the act would record (`refusal`, `detail`) and no plan, once the request and its handle are well formed. In keep mode a plan with no `redacted_fields` means nothing is prior, which the act answers 400; with `clear`, a field already cleared is answered 400 here as the act answers it. Requires a system admin. Any other caller gets 404, decided before any lookup.
2128
+ # @param field_scrub_request_body [FieldScrubRequestBody]
2129
+ # @param [Hash] opts the optional parameters
2130
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
2131
+ # @return [FieldScrubSurvey]
2132
+ def admin_survey_resource_field_scrub(field_scrub_request_body, opts = {})
2133
+ data, _status_code, _headers = admin_survey_resource_field_scrub_with_http_info(field_scrub_request_body, opts)
2134
+ data
2135
+ end
2136
+
2137
+ # Survey a field scrub
2138
+ # Reports what the field scrub would do, without recording or changing anything: the ledger paths it would redact, the paths it keeps (today&#39;s value) or cannot reach and why, the folded property rows it would rewrite, and the events &#x60;clear&#x60; would append, beside the family listing with the sensitivity sweep&#39;s flags. For a charter, an erased resource, a sentinel collision or a title or origin URI whose latest event disagrees with the projection it reports the refusal the act would record (&#x60;refusal&#x60;, &#x60;detail&#x60;) and no plan, once the request and its handle are well formed. In keep mode a plan with no &#x60;redacted_fields&#x60; means nothing is prior, which the act answers 400; with &#x60;clear&#x60;, a field already cleared is answered 400 here as the act answers it. Requires a system admin. Any other caller gets 404, decided before any lookup.
2139
+ # @param field_scrub_request_body [FieldScrubRequestBody]
2140
+ # @param [Hash] opts the optional parameters
2141
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
2142
+ # @return [Array<(FieldScrubSurvey, Integer, Hash)>] FieldScrubSurvey data, response status code and response headers
2143
+ def admin_survey_resource_field_scrub_with_http_info(field_scrub_request_body, opts = {})
2144
+ if @api_client.config.debugging
2145
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_survey_resource_field_scrub ...'
2146
+ end
2147
+ # verify the required parameter 'field_scrub_request_body' is set
2148
+ if @api_client.config.client_side_validation && field_scrub_request_body.nil?
2149
+ fail ArgumentError, "Missing the required parameter 'field_scrub_request_body' when calling AdminApi.admin_survey_resource_field_scrub"
2150
+ end
2151
+ allowable_values = ["cli", "sdk"]
2152
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
2153
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
2154
+ end
2155
+ # resource path
2156
+ local_var_path = '/api/admin/resources/field-scrub/survey'
2157
+
2158
+ # query parameters
2159
+ query_params = opts[:query_params] || {}
2160
+
2161
+ # header parameters
2162
+ header_params = opts[:header_params] || {}
2163
+ # HTTP header 'Accept' (if needed)
2164
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2165
+ # HTTP header 'Content-Type'
2166
+ content_type = @api_client.select_header_content_type(['application/json'])
2167
+ if !content_type.nil?
2168
+ header_params['Content-Type'] = content_type
2169
+ end
2170
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
2171
+
2172
+ # form parameters
2173
+ form_params = opts[:form_params] || {}
2174
+
2175
+ # http body (model)
2176
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(field_scrub_request_body)
2177
+
2178
+ # return_type
2179
+ return_type = opts[:debug_return_type] || 'FieldScrubSurvey'
2180
+
2181
+ # auth_names
2182
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
2183
+
2184
+ new_options = opts.merge(
2185
+ :operation => :"AdminApi.admin_survey_resource_field_scrub",
2186
+ :header_params => header_params,
2187
+ :query_params => query_params,
2188
+ :form_params => form_params,
2189
+ :body => post_body,
2190
+ :auth_names => auth_names,
2191
+ :return_type => return_type
2192
+ )
2193
+
2194
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2195
+ if @api_client.config.debugging
2196
+ @api_client.config.logger.debug "API called: AdminApi#admin_survey_resource_field_scrub\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2197
+ end
2198
+ return data, status_code, headers
2199
+ end
2200
+
2201
+ # Update system settings
2202
+ # Partial update: each field present overwrites its setting, each field absent is left unchanged. Requires a system admin.
2203
+ # @param update_settings_request [UpdateSettingsRequest]
2204
+ # @param [Hash] opts the optional parameters
2205
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
2206
+ # @return [SystemSettings]
2207
+ def admin_update_settings(update_settings_request, opts = {})
2208
+ data, _status_code, _headers = admin_update_settings_with_http_info(update_settings_request, opts)
2209
+ data
2210
+ end
2211
+
2212
+ # Update system settings
2213
+ # Partial update: each field present overwrites its setting, each field absent is left unchanged. Requires a system admin.
2214
+ # @param update_settings_request [UpdateSettingsRequest]
2215
+ # @param [Hash] opts the optional parameters
2216
+ # @option opts [String] :x_temper_surface The calling surface, for event-ledger attribution. Accepted values are &#x60;cli&#x60; and &#x60;sdk&#x60;; an absent or unrecognized value attributes the write to &#x60;web&#x60;. This is provenance, never authorization — an unrecognized value degrades, it never rejects.
2217
+ # @return [Array<(SystemSettings, Integer, Hash)>] SystemSettings data, response status code and response headers
2218
+ def admin_update_settings_with_http_info(update_settings_request, opts = {})
2219
+ if @api_client.config.debugging
2220
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_update_settings ...'
2221
+ end
2222
+ # verify the required parameter 'update_settings_request' is set
2223
+ if @api_client.config.client_side_validation && update_settings_request.nil?
2224
+ fail ArgumentError, "Missing the required parameter 'update_settings_request' when calling AdminApi.admin_update_settings"
2225
+ end
2226
+ allowable_values = ["cli", "sdk"]
2227
+ if @api_client.config.client_side_validation && opts[:'x_temper_surface'] && !allowable_values.include?(opts[:'x_temper_surface'])
2228
+ fail ArgumentError, "invalid value for \"x_temper_surface\", must be one of #{allowable_values}"
2229
+ end
2230
+ # resource path
2231
+ local_var_path = '/api/access/admin/settings'
2232
+
2233
+ # query parameters
2234
+ query_params = opts[:query_params] || {}
2235
+
2236
+ # header parameters
2237
+ header_params = opts[:header_params] || {}
2238
+ # HTTP header 'Accept' (if needed)
2239
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2240
+ # HTTP header 'Content-Type'
2241
+ content_type = @api_client.select_header_content_type(['application/json'])
2242
+ if !content_type.nil?
2243
+ header_params['Content-Type'] = content_type
2244
+ end
2245
+ header_params[:'X-Temper-Surface'] = opts[:'x_temper_surface'] if !opts[:'x_temper_surface'].nil?
2246
+
2247
+ # form parameters
2248
+ form_params = opts[:form_params] || {}
2249
+
2250
+ # http body (model)
2251
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_settings_request)
2252
+
2253
+ # return_type
2254
+ return_type = opts[:debug_return_type] || 'SystemSettings'
2255
+
2256
+ # auth_names
2257
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
2258
+
2259
+ new_options = opts.merge(
2260
+ :operation => :"AdminApi.admin_update_settings",
2261
+ :header_params => header_params,
2262
+ :query_params => query_params,
2263
+ :form_params => form_params,
2264
+ :body => post_body,
2265
+ :auth_names => auth_names,
2266
+ :return_type => return_type
2267
+ )
2268
+
2269
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2270
+ if @api_client.config.debugging
2271
+ @api_client.config.logger.debug "API called: AdminApi#admin_update_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2272
+ end
2273
+ return data, status_code, headers
2274
+ end
2275
+ end
2276
+ end