



  

<!DOCTYPE html>
<html
  lang="en"
  
  data-color-mode="auto" data-light-theme="light" data-dark-theme="dark"
  data-a11y-animated-images="system" data-a11y-link-underlines="true"
  
  >




  <head>
    <meta charset="utf-8">
  <link rel="dns-prefetch" href="https://github.githubassets.com">
  <link rel="dns-prefetch" href="https://avatars.githubusercontent.com">
  <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
  <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
  <link rel="preconnect" href="https://github.githubassets.com" crossorigin>
  <link rel="preconnect" href="https://avatars.githubusercontent.com">

<script type="importmap">{"imports":{"react":"https://github.githubassets.com/assets/react-e27d1b3e03961e68.js","react-dom":"https://github.githubassets.com/assets/react-dom-e5fd46a22d5c4058.js","react-dom/client":"https://github.githubassets.com/assets/react-dom-client-1b4a3ee065998cea.js","react-is":"https://github.githubassets.com/assets/react-is-e0b593954b4706d8.js","react-reconciler":"https://github.githubassets.com/assets/react-reconciler-8e99e505c4429605.js","react/compiler-runtime":"https://github.githubassets.com/assets/react-compiler-runtime-4610bd6d3de9c049.js","react/jsx-dev-runtime":"https://github.githubassets.com/assets/react-jsx-dev-runtime-ea55d68667d559e5.js","react/jsx-runtime":"https://github.githubassets.com/assets/react-jsx-runtime-4915cb0f5b3aff04.js","scheduler":"https://github.githubassets.com/assets/scheduler-58b860b049ca307c.js"}}</script>
<meta name="react-profiling" content="0" data-turbo-transient="true" />
<meta name="react-import-map" content="react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@777f63f87cd0" data-turbo-track="reload" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-e27d1b3e03961e68.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-compiler-runtime-4610bd6d3de9c049.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/scheduler-58b860b049ca307c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-dom-e5fd46a22d5c4058.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-dom-client-1b4a3ee065998cea.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-is-e0b593954b4706d8.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-jsx-runtime-4915cb0f5b3aff04.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-reconciler-8e99e505c4429605.js" />

  


  <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light-99f877e9ddfc0e51.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light_high_contrast-48fdd0811afbab3c.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark-79ad2ace604703b3.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark_high_contrast-24484a076f02295f.css" /><link data-color-theme="light" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light-99f877e9ddfc0e51.css" /><link data-color-theme="light_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_high_contrast-48fdd0811afbab3c.css" /><link data-color-theme="light_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_colorblind-f4bf1142976e4bbf.css" /><link data-color-theme="light_colorblind_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_colorblind_high_contrast-f661b49995ba0bd8.css" /><link data-color-theme="light_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_tritanopia-0b38d22346321c92.css" /><link data-color-theme="light_tritanopia_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_tritanopia_high_contrast-f1c62c9e70259b9f.css" /><link data-color-theme="dark" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark-79ad2ace604703b3.css" /><link data-color-theme="dark_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_high_contrast-24484a076f02295f.css" /><link data-color-theme="dark_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_colorblind-f50cacf0a86b9929.css" /><link data-color-theme="dark_colorblind_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_colorblind_high_contrast-e61d4f4ca17852c2.css" /><link data-color-theme="dark_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_tritanopia-39c10993d5603fac.css" /><link data-color-theme="dark_tritanopia_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_tritanopia_high_contrast-73236c840c0c7d90.css" /><link data-color-theme="dark_dimmed" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_dimmed-0de76f07cc035b10.css" /><link data-color-theme="dark_dimmed_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_dimmed_high_contrast-fd1500c8744e40d6.css" />

  <style type="text/css">
    :root {
      --tab-size-preference: 4;
    }

    pre, code {
      tab-size: var(--tab-size-preference);
    }
  </style>

    <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-primitives-ed9ca172356fd545.css" />
    <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-1d2c7f7b52a6068b.css" />
    <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-54ba76e934a49d7c.css" />
    <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/github-456bd5deb85c7ecd.css" />
  <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/repository-11ee8a031c040c1a.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-2d56bdb0166c0238.css" />

  

  <script type="application/json" id="client-env">{"locale":"en","featureFlags":["actions_enable_background_steps","actions_new_hosted_runner_image_select_sizes_and_versions","activity_diff_file_tree","activity_repos_file_tree","activity_repos_overview_header","activity_repos_overview_sidebar","agent_author_search_expansion","agent_author_search_expansion_ui_pulls","alternate_user_config_repo","async_conversion_coverage_enabled","billing_billable_licenses_cost_center_bucket_fix","billing_budget_expiration","billing_cost_center_list_assigned_resources","billing_discount_threshold_notification","code_quality_enablement_banner_targeting","code_quality_remove_preview","code_view_raf_sticky_lines","codespaces_prebuild_region_target_update","coding_agent_third_party_model_ui","copilot_agent_snippy","copilot_api_agentic_issue_marshal_yaml","copilot_automation_repo_mcp_servers","copilot_automations_pagination","copilot_chat_auto_mode_v2","copilot_chat_clear_model_selection_for_default_change","copilot_chat_header_reorder","copilot_chat_max_upsell","copilot_chat_models_browser_cache","copilot_chat_vision_dotcom_chat_ga_gate","copilot_css_textarea_autosize","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_duplicate_thread","copilot_extensions_removal_on_marketplace","copilot_fix_failed_workflows_all_skus","copilot_hide_hovercard","copilot_immersive_embedded_header_button","copilot_immersive_file_preview_keep_mounted","copilot_immersive_task_hyperlinking","copilot_mc_cli_resume_any_users_task","copilot_mission_control_agent_merge_fix_ci","copilot_mission_control_agent_merge_resolve_conflicts","copilot_mission_control_early_stop","copilot_mission_control_environment_list_icons","copilot_mission_control_managed_sandbox_environments","copilot_mission_control_needs_attention","copilot_mission_control_reasoning_effort","copilot_mission_control_sandbox_client_side_clone","copilot_mission_control_sandbox_remote_bypass","copilot_mission_control_session_filters","copilot_mission_control_task_alive_updates","copilot_mission_control_task_sharing","copilot_org_policy_page_focus_mode","copilot_share_active_subthread","copilot_spaces_ga","copilot_spaces_individual_policies_ga","copilot_spark_handle_nil_friendly_name","copilot_swe_agent_authorization_status_ui","copilot_swe_agent_automation_resource_scoped_writes","copilot_swe_agent_hide_model_picker_if_only_auto","copilot_swe_agent_issue_comment_trigger","copilot_swe_agent_pr_comment_model_picker","copilot_swe_agent_pull_request_comment_trigger","copilot_swe_agent_pull_request_merged_trigger","copilot_swe_agent_pull_request_opened_trigger","copilot_swe_agent_pull_request_synchronize_trigger","copilot_swe_agent_use_subagents","copilot_task_api_github_rest_style","copilot_task_scoped_alive_channel","copilot_token_based_billing","copilot_unconfigured_is_inherited","copilot_user_can_upgrade_plan_field","copilot_workbench_sunset","copilot_workbench_sunset_redirect","copilot_workbench_ubb","dashboard_indexeddb_caching","dashboard_lists_max_age_filter","dashboard_universe_2025_feedback_dialog","glc_code_quality_repo_settings_workflow_config","hide_github_models_ui","hyperspace_2025_logged_out_batch_1","hyperspace_2025_logged_out_batch_2","hyperspace_2025_logged_out_batch_3","in_product_messaging_datadog_monitoring","ipm_global_transactional_message_copilot","ipm_global_transactional_message_issues","ipm_global_transactional_message_prs","ipm_global_transactional_message_repos","ipm_global_transactional_message_spaces","ipm_ubb_individual_budget_banner","issue_fields_multi_select","issue_inline_avatars","issue_pinned_views","issue_pinned_views_optimistic_updates","issue_relative_time_micro","issues_dashboard_sso_structured_errors","issues_expanded_file_types","issues_hide_closed_sub_issues","issues_lazy_load_comment_box_suggestions","issues_optimistic_linked_branch_create","issues_react_chrome_container_query_fix","labels_archiving","labels_archiving_info","landing_pages_ninetailed","lifecycle_label_name_updates","marketing_cookie_consent_banner","marketing_pages_search_explore_provider","memex_client_env_github_domain","memex_default_issue_create_repository","memex_lazy_hydrate_agent_tasks","memex_live_update_hovercard","memex_mwl_filter_field_delimiter","memex_remove_deprecated_type_issue","merge_queue_restricted_pushers_warning","merge_status_checks_refetch_dedupe","merge_status_header_feedback","oauth_authorize_clickjacking_protection","octocaptcha_origin_optimization","primer_react_css_anchor_positioning","primer_react_merged_forwarded_refs","prs_copilot_app_open_action","prs_css_anchor_positioning","pull_request_commit_checks_dialog","pull_request_copilot_attribution_header","pull_request_overview_panel_edit_description","pull_request_persister","pull_request_stacks_feedback_dialog","pull_request_virtualization_image_estimate","pull_request_virtualization_scroll_compensation","pull_request_virtualization_scroll_intent","quick_search_lazy_suggestions","react_blob_isolate_code_lines","react_blob_ssr_content_visibility","react_data_router_tanstack_allowed","react_query_props_with_key","react_sandbox_future_tanstack","repo_app_turbo","repo_issues_sidebar_layout","repo_pulls_dashboard_persistence","repo_pulls_dashboard_sidebar_links","repos_contributors_limited_default_range","review_involves_filter","rule_ignored_file_paths","rulesets_actor_list_editor","sample_network_conn_type","security_center_artifact_filters_popover","see_who_reacted","semantic_similarity_duplicate_issue_detection","session_logs_ungroup_reasoning_text","set_sha256_on_repo_creation_form","site_banner_desktop_copilot_app","site_ghca_pixel_mona","site_github_app_ga_page","site_github_app_ga_page_highlight","site_github_app_mobile_native_share","site_global_banner_dev_days_attendee","site_global_banner_learn_copilot_sdk","site_global_nav_spark_models_removed","spark_prompt_secret_scanning","spark_server_connection_status","suggest_custom_property_values_copilot","suppress_automated_browser_vitals","swp_forms_disable_octocaptcha","thread_resolution_reason","ui_service_compute_proxy_control","ui_service_referrer_metrics","ui_service_staleness_detection","update_issue_suggestions","user_code_paste_ux","viewscreen_sandbox","warn_inaccessible_attachments","webp_support","workbench_store_readonly","workstream_plugin_bootstrap"],"githubDomain":"https://github.com","copilotApiOverrideUrl":"https://api.githubcopilot.com","cmcApiUrl":"https://api.github.com/cmc_internal/api"}</script>
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/high-contrast-cookie-e3d808ee18eb9784.js"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/wp-runtime-87f87519f2bbba0e.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-foundation-74e9766bd696d26a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/app-runtime-ecf766ea8a2c7fd6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fetch-utilities-8e3d9c5d57d50312.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ser-cd1b421ad0ad7ed5.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/environment-324a60c8becccc53.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/app-runtime.b6099d51b9e67b57.module.css" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/catalyst-86a8f5de995615f8.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/selector-observer-e88088f989b27670.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/relative-time-element-7cdf4e0db98b997c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/by-6b3c07383371bf58.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ja9-36f036c13c2e3a4c.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/kw-866fd9513ae95106.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/r1-b075aab3204f32f9.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/jz5-7c5d1669717041f8.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/hj-5126390ff433704d.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/j05-dce4d588268f0f7e.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/github-elements-549d25d0f366a901.js" defer="defer"></script>
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/element-registry-19d067aae228a2c9.js" defer="defer"></script>
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/runtime-helpers-f3f5d71440009c48.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/aria-live-76b18916d0c8ec4d.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/hotkey-5109c77d7ac61078.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/react-core-fbb00aaa3ab9abdf.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/04n-51c49ba758739f13.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ur-024971cb63acad59.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/4t-364e19c63d726e9a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/6ny-c969fbae697a356f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/yhq-3a209035a30b1a09.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z1v-da5b33b877bfa358.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/wo-09f85d22a6c8931b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/9y-81cfe57dc9040f3e.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/j0-41a4cf04cbd99503.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0p-81491ed0d9d666e2.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/behaviors-87fda981566a000c.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/react-core.5858534b1c27f133.module.css" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/code-menu-0470abdd78fff242.js" defer="defer"></script>
  
  <link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/primer-react-12ebdc24dcff1ecc.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ncx-9a860680a5f230b9.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/j6-363f0ebf4f62f310.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/t7l-bf6f21d7e7a43c35.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fe-7576d9b281e2106a.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/wsr-5fd3071e5a9061ab.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0n-ecadb2ffe6b01ba2.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/xv-51cb34754bda73a9.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/n4u-6317ce1c31aed1db.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/j8s-d90ce3a169b741ed.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/la-de176c4ee471f2b3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/eag-d9eea130fa716df9.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/y2-87df441f1bc5a264.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/kcz-607e36c8a3751cf0.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/x4-65dba777efd828f3.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/gzu-1a09248f686325f6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/bi0-e2f78de823e39ca9.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/on-95be29ba1ef725d9.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/b1-1dbc371cef78c3c1.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0l5-c4edb8ab48c5846d.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/c2z-c92998400310b94b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/f9-038758dcbfe08dab.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/0k-b7df0a74912a42bf.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/sp-915c6643cc0d7d44.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/og-93ae8b358505d372.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/b9-69d9b60a1b1fcd59.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ec-8ea7978d3fcd114e.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/du-a401e69a37d95bcc.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ql0-1c18210f6b9e2263.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/20-0a2e46387735f1f4.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/dsj-cb1e4ddbce4f007b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/wp-9f5235d335ab624b.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/ko6-9e80f7ac359e3c43.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/uw-8c275f7ac25b7cf6.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/bsb-4f4ac8c20da73fac.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/w5-13e3a7548bb20af9.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fm-c00a7677663ba326.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/z-45022d3da7b8817e.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/h0-010921512138e12f.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/5p-ae5db0820116fb43.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/8vq-b2af216e992e11ef.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/g5-88f2a4514daa19ca.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/xc-f5d51b571cd317cb.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/arw-51e8918a1b75a80f.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/code-view-5780cead61d34dfa.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.9d59d1018a52a53c.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/ql0.de7a55ca73db5693.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/z.812a998e1961b84d.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/xc.13e027137438fd9f.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-view.3e1889ce559ebbdc.module.css" />

  <link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/hu-1fc0b2a167afc025.js" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fb-ef2c91536abed646.js" />
<script crossorigin="anonymous" type="module" src="https://github.githubassets.com/assets/notifications-subscriptions-menu-1275ca430426c116.js" defer="defer"></script>
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.9d59d1018a52a53c.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/notifications-subscriptions-menu.a2d74169820112df.module.css" />


  <title>java-sdk/README.md at main · openfga/java-sdk · GitHub</title>



  <meta name="route-pattern" content="/:user_id/:repository/blob/*name(/*path)" data-turbo-transient>
  <meta name="route-controller" content="blob" data-turbo-transient>
  <meta name="route-action" content="show" data-turbo-transient>
  <meta name="fetch-nonce" content="v2:9b89a0eb-c041-2955-1178-d8d2534ebe58">

    
  <meta name="current-catalog-service-hash" content="f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb">


  <meta name="request-id" content="8ED8:EE336:11A11B9C:1072F702:6AAC9791" data-pjax-transient="true"/><meta name="html-safe-nonce" content="39db0a1e56c0aca697e8565ab7c9196e1983f111f9f5ade322b54e62bc3f333a" data-pjax-transient="true"/><meta name="visitor-payload" content="eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUQ4OkVFMzM2OjExQTExQjlDOjEwNzJGNzAyOjZBQUM5NzkxIiwidmlzaXRvcl9pZCI6IjI1MTIwMzU2MjQ4NTYwOTg3MDUiLCJyZWdpb25fZWRnZSI6ImZyYSIsInJlZ2lvbl9yZW5kZXIiOiJmcmEifQ==" data-pjax-transient="true"/><meta name="visitor-hmac" content="71922611d4d8f59ef0139f535533d96f4cedde20b7f657a7f4e70b6ceb205b1d" data-pjax-transient="true"/>


    <meta name="hovercard-subject-tag" content="repository:670224534" data-turbo-transient>


  <meta name="github-keyboard-shortcuts" content="repository,source-code,file-tree,copilot" data-turbo-transient="true" />
  

  <meta name="selected-link" value="repo_source" data-turbo-transient>
  <link rel="assets" href="https://github.githubassets.com/">

    <meta name="google-site-verification" content="Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I">

<meta name="octolytics-url" content="https://collector.github.com/github/collect" />





  <meta name="analytics-location" content="/&lt;user-name&gt;/&lt;repo-name&gt;/blob/show" data-turbo-transient="true" />

  




    <meta name="user-login" content="">

  

    <meta name="viewport" content="width=device-width">

    

      <meta name="description" content="OpenFGA SDK for Java - https://central.sonatype.com/artifact/dev.openfga/openfga-sdk - java-sdk/README.md at main · openfga/java-sdk">

      <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">

    <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
    <meta property="fb:app_id" content="1401488693436528">
    <meta name="apple-itunes-app" content="app-id=1477376905, app-argument=https://github.com/openfga/java-sdk/blob/main/README.md" />

      <meta name="twitter:image" content="https://opengraph.githubassets.com/bf6dda4e4cb3270e627102fb76a19bc386532524779713936a825481d968862d/openfga/java-sdk" /><meta name="twitter:site" content="@github" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content="java-sdk/README.md at main · openfga/java-sdk" /><meta name="twitter:description" content="OpenFGA SDK for Java - https://central.sonatype.com/artifact/dev.openfga/openfga-sdk - openfga/java-sdk" />
  <meta property="og:image" content="https://opengraph.githubassets.com/bf6dda4e4cb3270e627102fb76a19bc386532524779713936a825481d968862d/openfga/java-sdk" /><meta property="og:image:alt" content="OpenFGA SDK for Java - https://central.sonatype.com/artifact/dev.openfga/openfga-sdk - openfga/java-sdk" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="600" /><meta property="og:site_name" content="GitHub" /><meta property="og:type" content="object" /><meta property="og:title" content="java-sdk/README.md at main · openfga/java-sdk" /><meta property="og:url" content="https://github.com/openfga/java-sdk/blob/main/README.md" /><meta property="og:description" content="OpenFGA SDK for Java - https://central.sonatype.com/artifact/dev.openfga/openfga-sdk - openfga/java-sdk" />
  




      <meta name="hostname" content="github.com">



        <meta name="expected-hostname" content="github.com">


  <meta http-equiv="x-pjax-version" content="87b02277f1a88f71022c708b22655ead06f335ffb2f288301950607be673d70f" data-turbo-track="reload">
  <meta http-equiv="x-pjax-csp-version" content="0c5c6e5334a905d8f9521e09eadcffba484d422e0d262e07ff922e6bc18b2ac6" data-turbo-track="reload">
  <meta http-equiv="x-pjax-css-version" content="ec4c7b86d7b57240253150b827ea48b04e08d8760dc6553d2a04f62000f3fe0c" data-turbo-track="reload">
  <meta http-equiv="x-pjax-js-version" content="b485a9e5d5fef3a0529256dd6518ebc1f40bea8817ed2111389eeb587e6b5499" data-turbo-track="reload">

  <meta name="turbo-cache-control" content="no-preview" data-turbo-transient="">

      <meta name="turbo-cache-control" content="no-cache" data-turbo-transient>

    <meta data-hydrostats="publish">

  <meta name="go-import" content="github.com/openfga/java-sdk git https://github.com/openfga/java-sdk.git">

  <meta name="octolytics-dimension-user_id" content="103602580" /><meta name="octolytics-dimension-user_login" content="openfga" /><meta name="octolytics-dimension-repository_id" content="670224534" /><meta name="octolytics-dimension-repository_nwo" content="openfga/java-sdk" /><meta name="octolytics-dimension-repository_public" content="true" /><meta name="octolytics-dimension-repository_is_fork" content="false" /><meta name="octolytics-dimension-repository_network_root_id" content="670224534" /><meta name="octolytics-dimension-repository_network_root_nwo" content="openfga/java-sdk" />
  



    

    <meta name="turbo-body-classes" content="logged-out env-production page-responsive">
  <meta name="disable-turbo" content="false">


  <meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">


  <meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">

  <meta name="release" content="150f67e4e80cef756826b1ec1ae31f40579d6bf6" data-turbo-track="reload">
  <meta name="ui-target" content="full">

  <link rel="mask-icon" href="https://github.githubassets.com/assets/pinned-octocat-093da3e6fa40.svg" color="#000000">
  <link rel="alternate icon" class="js-site-favicon" type="image/png" href="https://github.githubassets.com/favicons/favicon.png">
  <link rel="icon" class="js-site-favicon" type="image/svg+xml" href="https://github.githubassets.com/favicons/favicon.svg" data-base-href="https://github.githubassets.com/favicons/favicon">

<meta name="theme-color" content="#1e2327">
<meta name="color-scheme" content="light dark" />


  <link rel="manifest" href="/manifest.json" crossOrigin="use-credentials">

  </head>

  <body class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
    <div data-turbo-body class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
      <div id="__primerPortalRoot__" style="z-index: 1000; position: absolute; width: 100%;" data-turbo-permanent></div>
      

    <div class="position-relative header-wrapper js-header-wrapper ">
      <a href="#start-of-content" data-skip-target-assigned="false" class="px-2 tmp-py-4 color-bg-accent-emphasis color-fg-on-emphasis show-on-focus js-skip-to-content">Skip to content</a>

      <span data-view-component="true" class="progress-pjax-loader Progress position-fixed width-full">
    <span style="width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar left-0 top-0 color-bg-accent-emphasis"></span>
</span>      
      <link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/l7j-2ddd8b435dadae28.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog-3f2ae39a88fc8542.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.9d59d1018a52a53c.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog.8ab0724db4d1b620.module.css" />

<react-partial
  partial-name="keyboard-shortcuts-dialog"
  data-ssr="false"
  data-attempted-ssr="false"
  data-react-profiling="false"
>
  
  <script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}</script>
  <div data-target="react-partial.reactRoot"></div>
</react-partial>





      

          
          

                <link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/2l-8671acba87bc0dcb.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/i26-f2ae65b837c90ae7.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/fz5-23f28c0f388769c9.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/lht-26506ea833dda5be.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/p1-76a75a6081059b19.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/3d-82c347d20a13fb90.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/tua-c4ca62c5e0e0318e.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/4s-c22d880230690e1f.js" fetchpriority="low" />
<link crossorigin="anonymous" rel="modulepreload" href="https://github.githubassets.com/assets/marketing-header-5911ef094658e0d1.js" fetchpriority="low" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-css.9d59d1018a52a53c.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react-brand-css.6a01c236ff527e7e.module.css" />
<link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/4s.e3d02f110161be52.module.css" />

<react-partial
  partial-name="marketing-header"
  data-ssr="true"
  data-attempted-ssr="true"
  data-react-profiling="false"
>
  
  <script type="application/json" data-target="react-partial.embeddedData">{"props":{"color_mode":"dark","logged_in":false,"marketing_page":false,"home_path":"/","login_path":"/login?return_to=https%3A%2F%2Fgithub.com%2Fopenfga%2Fjava-sdk%2Fblob%2Fmain%2FREADME.md","signup_path":"/signup?ref_cta=Sign+up\u0026ref_loc=header+logged+out\u0026ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow\u0026source=header-repo\u0026source_repo=openfga%2Fjava-sdk","signup_enabled":true,"is_signup_controller":false,"show_search_and_nav":true,"hide_search":false,"private_mode_enabled":false,"should_use_dotcom_links":true,"auth_hydro_click":"{\"event_type\":\"authentication.click\",\"payload\":{\"location_in_page\":\"site header menu\",\"repository_id\":null,\"auth_type\":\"SIGN_UP\",\"originating_url\":\"https://github.com/openfga/java-sdk/blob/main/README.md\",\"user_id\":null}}","auth_hydro_click_hmac":"76cb3a8ec7469e78b293cb1b2f1cf9c7e4a8bb50d9424d971faedcf36346bf11","overlay":false,"fixed":false}}</script>
  <div data-target="react-partial.reactRoot"><div data-color-mode="dark" data-light-theme="light" data-dark-theme="dark"><header class="MarketingHeader-module__root__Tk7n3 HeaderMktg header-logged-out" role="banner" data-marketing-header="true" data-color-mode="dark" data-light-theme="light" data-dark-theme="dark" data-is-top="true"><h2 class="MarketingHeader-module__visuallyHidden__sqKsl">Navigation Menu</h2><button type="button" class="MarketingHeader-module__backdrop__sw4RU" aria-label="Close navigation menu"></button><div class="MarketingHeader-module__bar__mBSyE"><div class="MarketingHeader-module__topRow__yeury"><div class="MarketingHeader-module__toggleSlot__hDxbh"><button type="button" class="HeaderMenuToggle-module__toggle__i8EiC" aria-label="Toggle navigation" aria-expanded="false"><span class="HeaderMenuToggle-module__toggleBar__jVN0H"></span><span class="HeaderMenuToggle-module__toggleBar__jVN0H"></span><span class="HeaderMenuToggle-module__toggleBar__jVN0H"></span></button></div><a href="/" aria-label="Homepage" class="HeaderLogo-module__logo__UFyHI" data-analytics-event="{&quot;action&quot;:&quot;homepage&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;logo&quot;,&quot;location&quot;:&quot;header&quot;,&quot;label&quot;:&quot;homepage_link_logo_header&quot;}"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-mark-github" viewBox="0 0 24 24" width="32" height="32" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943"></path></svg></a><div class="AuthCTAs-module__mobileActions__NNzeV"><a class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw AuthCTAs-module__cta__WpwQq" href="/login?return_to=https%3A%2F%2Fgithub.com%2Fopenfga%2Fjava-sdk%2Fblob%2Fmain%2FREADME.md" data-analytics-event="{&quot;action&quot;:&quot;sign_in&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;auth_cta&quot;,&quot;location&quot;:&quot;header&quot;,&quot;label&quot;:&quot;sign_in_link_auth_cta_header&quot;}" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;site header menu&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;SIGN_UP&quot;,&quot;originating_url&quot;:&quot;https://github.com/openfga/java-sdk/blob/main/README.md&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="76cb3a8ec7469e78b293cb1b2f1cf9c7e4a8bb50d9424d971faedcf36346bf11"><span class="Primer_Brand__Button-module__Button__text___ED0bX"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ Primer_Brand__Button-module__Button--label___qrkyz Primer_Brand__Button-module__Button--label-subtle___8ndWH">Sign in</span></span></a><button class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw HeaderAppearanceSettings-module__trigger__hUheK" type="button" aria-haspopup="dialog" aria-labelledby="_R_3dd_"><span class="Primer_Brand__Button-module__Button__leading-visual___jjtTe" data-testid="Button-leading-visual"><svg data-component="Octicon" focusable="false" aria-hidden="true" class="octicon octicon-sliders Primer_Brand__Button-module__Button__icon-visual____qybb" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M15 2.75a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75Zm-8.5.75v1.25a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-1.5 0V2H1.75a.75.75 0 0 0 0 1.5H6.5Zm1.25 5.25a.75.75 0 0 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6ZM15 8a.75.75 0 0 1-.75.75H11.5V10a.75.75 0 1 1-1.5 0V6a.75.75 0 0 1 1.5 0v1.25h2.75A.75.75 0 0 1 15 8Zm-9 5.25v-2a.75.75 0 0 0-1.5 0v1.25H1.75a.75.75 0 0 0 0 1.5H4.5v1.25a.75.75 0 0 0 1.5 0v-2Zm9 0a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Z"></path></svg></span><span class="Primer_Brand__Button-module__Button__text___ED0bX"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ Primer_Brand__Button-module__Button--label___qrkyz Primer_Brand__Button-module__Button--label-subtle___8ndWH"></span></span></button><div class="Primer_Brand__Tooltip-module__Tooltip___0Eipx" data-direction="s" aria-hidden="true" id="_R_3dd_">Appearance settings</div></div></div><div class="MarketingHeader-module__menu__GIy3y"><div class="MarketingHeader-module__menuWrapper__owstH"><nav class="MarketingNavigation-module__nav__W0KYY" aria-label="Global"><ul class="MarketingNavigation-module__list__tFbMb"><li><div class="NavDropdown-module__container__l2YeI"><button type="button" class="NavDropdown-module__button__PEHWX" aria-expanded="false" aria-controls="_R_nd_">Platform<svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-triangle-right NavDropdown-module__buttonIcon__Tkl8_" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m6.427 4.427 3.396 3.396a.25.25 0 0 1 0 .354l-3.396 3.396A.25.25 0 0 1 6 11.396V4.604a.25.25 0 0 1 .427-.177Z"></path></svg></button><div id="_R_nd_" class="NavDropdown-module__dropdown__xm1jd"><ul class="NavDropdown-module__list__zuCgG"><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_5knd_">AI CODE CREATION</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_5knd_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/features/copilot" data-analytics-event="{&quot;action&quot;:&quot;github_copilot&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;github_copilot_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-copilot NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg>GitHub Copilot</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Write better code with AI</span></span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/features/ai/github-app" data-analytics-event="{&quot;action&quot;:&quot;github_copilot_app&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;github_copilot_app_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-mark-github NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M6.766 11.328c-2.063-.25-3.516-1.734-3.516-3.656 0-.781.281-1.625.75-2.188-.203-.515-.172-1.609.063-2.062.625-.078 1.468.25 1.968.703.594-.187 1.219-.281 1.985-.281.765 0 1.39.094 1.953.265.484-.437 1.344-.765 1.969-.687.218.422.25 1.515.046 2.047.5.593.766 1.39.766 2.203 0 1.922-1.453 3.375-3.547 3.64.531.344.89 1.094.89 1.954v1.625c0 .468.391.734.86.547C13.781 14.359 16 11.53 16 8.03 16 3.61 12.406 0 7.984 0 3.563 0 0 3.61 0 8.031a7.88 7.88 0 0 0 5.172 7.422c.422.156.828-.125.828-.547v-1.25c-.219.094-.5.156-.75.156-1.031 0-1.64-.562-2.078-1.609-.172-.422-.36-.672-.719-.719-.187-.015-.25-.093-.25-.187 0-.188.313-.328.625-.328.453 0 .844.281 1.25.86.313.452.64.655 1.031.655s.641-.14 1-.5c.266-.265.47-.5.657-.656"></path></svg>GitHub Copilot app</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Direct agents from issue to merge</span></span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/mcp" data-analytics-event="{&quot;action&quot;:&quot;mcp_registry&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;mcp_registry_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-mcp NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M5.52 1.12a3.578 3.578 0 0 1 6.078 2.98 3.578 3.578 0 0 1 2.982 6.08l-3.292 3.293a.252.252 0 0 0 0 .354l.843.843a.749.749 0 1 1-1.06 1.06l-.844-.843a1.75 1.75 0 0 1 0-2.474L13.52 9.12a2.08 2.08 0 0 0 0-2.94 2.08 2.08 0 0 0-2.94 0L7.731 9.03A.75.75 0 0 1 6.67 7.97l2.85-2.85a2.08 2.08 0 0 0 0-2.94 2.08 2.08 0 0 0-2.94 0l-4.799 4.8A.75.75 0 0 1 .72 5.92Z"></path><path d="M7.52 3.12a.749.749 0 1 1 1.06 1.06L5.731 7.03A2.079 2.079 0 0 0 8.67 9.97l2.85-2.85a.749.749 0 1 1 1.06 1.06l-2.849 2.85A3.578 3.578 0 0 1 4.67 5.97Z"></path></svg>MCP Registry</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Integrate external tools</span></span></a></li></ul></div></li><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_9knd_">DEVELOPER WORKFLOWS</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_9knd_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/features/actions" data-analytics-event="{&quot;action&quot;:&quot;actions&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;actions_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-workflow NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 1.75C0 .784.784 0 1.75 0h3.5C6.216 0 7 .784 7 1.75v3.5A1.75 1.75 0 0 1 5.25 7H4v4a1 1 0 0 0 1 1h4v-1.25C9 9.784 9.784 9 10.75 9h3.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 14.25 16h-3.5A1.75 1.75 0 0 1 9 14.25v-.75H5A2.5 2.5 0 0 1 2.5 11V7h-.75A1.75 1.75 0 0 1 0 5.25Zm1.75-.25a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Zm9 9a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Z"></path></svg>Actions</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Automate any workflow</span></span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/features/codespaces" data-analytics-event="{&quot;action&quot;:&quot;codespaces&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;codespaces_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-codespaces NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 11.25c0-.966.784-1.75 1.75-1.75h12.5c.966 0 1.75.784 1.75 1.75v3A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm2-9.5C2 .784 2.784 0 3.75 0h8.5C13.216 0 14 .784 14 1.75v5a1.75 1.75 0 0 1-1.75 1.75h-8.5A1.75 1.75 0 0 1 2 6.75Zm1.75-.25a.25.25 0 0 0-.25.25v5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-5a.25.25 0 0 0-.25-.25Zm-2 9.5a.25.25 0 0 0-.25.25v3c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-3a.25.25 0 0 0-.25-.25Z"></path><path d="M7 12.75a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm-4 0a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Z"></path></svg>Codespaces</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Instant dev environments</span></span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/features/issues" data-analytics-event="{&quot;action&quot;:&quot;issues&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;issues_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-issue-opened NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path></svg>Issues</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Plan and track work</span></span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/features/code-review" data-analytics-event="{&quot;action&quot;:&quot;code_review&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;code_review_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-code NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path></svg>Code Review</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Manage code changes</span></span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/features/code-quality" data-analytics-event="{&quot;action&quot;:&quot;code_quality&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;code_quality_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-codescan-checkmark NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.28 6.28a.75.75 0 1 0-1.06-1.06L6.25 8.19l-.97-.97a.75.75 0 0 0-1.06 1.06l1.5 1.5a.75.75 0 0 0 1.06 0l3.5-3.5Z"></path><path d="M7.5 15a7.5 7.5 0 1 1 5.807-2.754l2.473 2.474a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2.474-2.473A7.472 7.472 0 0 1 7.5 15Zm0-13.5a6 6 0 1 0 4.094 10.386.748.748 0 0 1 .293-.292 6.002 6.002 0 0 0 1.117-6.486A6.002 6.002 0 0 0 7.5 1.5Z"></path></svg>Code Quality</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Enforce quality at merge</span></span></a></li></ul></div></li><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_dknd_">APPLICATION SECURITY</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_dknd_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/security/advanced-security" data-analytics-event="{&quot;action&quot;:&quot;github_advanced_security&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;github_advanced_security_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-shield-check NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM11.28 6.28l-3.5 3.5a.75.75 0 0 1-1.06 0l-1.5-1.5a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l.97.97 2.97-2.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path></svg>GitHub Advanced Security</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Find and fix vulnerabilities</span></span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/security/advanced-security/code-security" data-analytics-event="{&quot;action&quot;:&quot;code_security&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;code_security_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-code-square NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Zm7.47 3.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L10.69 8 9.22 6.53a.75.75 0 0 1 0-1.06ZM6.78 6.53 5.31 8l1.47 1.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path></svg>Code security</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Secure your code as you build</span></span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/security/advanced-security/secret-protection" data-analytics-event="{&quot;action&quot;:&quot;secret_protection&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;secret_protection_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-lock NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M4 4a4 4 0 0 1 8 0v2h.25c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 12.25 15h-8.5A1.75 1.75 0 0 1 2 13.25v-5.5C2 6.784 2.784 6 3.75 6H4Zm8.25 3.5h-8.5a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25ZM10.5 6V4a2.5 2.5 0 1 0-5 0v2Z"></path></svg>Secret protection</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Stop leaks before they start</span></span></a></li></ul></div></li><li><div class="NavGroup-module__group__W8SqJ NavGroup-module__hasSeparator__FnMrN"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_hknd_">EXPLORE</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_hknd_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/why-github" data-analytics-event="{&quot;action&quot;:&quot;why_github&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;why_github_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Why GitHub</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--is-external___xsncV" href="https://docs.github.com" data-analytics-event="{&quot;action&quot;:&quot;documentation&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;documentation_link_platform_navbar&quot;}" target="_blank" rel="noreferrer"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Documentation</span><svg data-component="Octicon" focusable="false" aria-label="External link" class="octicon octicon-link-external" role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path></svg></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--is-external___xsncV" href="https://github.blog" data-analytics-event="{&quot;action&quot;:&quot;blog&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;blog_link_platform_navbar&quot;}" target="_blank" rel="noreferrer"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Blog</span><svg data-component="Octicon" focusable="false" aria-label="External link" class="octicon octicon-link-external" role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path></svg></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--is-external___xsncV" href="https://github.blog/changelog" data-analytics-event="{&quot;action&quot;:&quot;changelog&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;changelog_link_platform_navbar&quot;}" target="_blank" rel="noreferrer"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Changelog</span><svg data-component="Octicon" focusable="false" aria-label="External link" class="octicon octicon-link-external" role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path></svg></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/marketplace" data-analytics-event="{&quot;action&quot;:&quot;marketplace&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;marketplace_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Marketplace</span></a></li></ul></div></li></ul><div class="NavDropdown-module__trailingLinkContainer__VgJGL"><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--arrow-end___esdN8" href="https://github.com/features" data-analytics-event="{&quot;action&quot;:&quot;view_all_features&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;platform&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;view_all_features_link_platform_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">View all features</span><svg class="Primer_Brand__ExpandableArrow-module__ExpandableArrow___aaZs9 Primer_Brand__Link-module__Link-arrow___yd78i" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><path fill="currentColor" d="M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z"></path><path class="Primer_Brand__ExpandableArrow-module__ExpandableArrow-stem___0K8Hz" stroke="currentColor" d="M1.75 8H11" stroke-width="1.5" stroke-linecap="round"></path></svg></a></div></div></div></li><li><div class="NavDropdown-module__container__l2YeI"><button type="button" class="NavDropdown-module__button__PEHWX" aria-expanded="false" aria-controls="_R_17d_">Solutions<svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-triangle-right NavDropdown-module__buttonIcon__Tkl8_" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m6.427 4.427 3.396 3.396a.25.25 0 0 1 0 .354l-3.396 3.396A.25.25 0 0 1 6 11.396V4.604a.25.25 0 0 1 .427-.177Z"></path></svg></button><div id="_R_17d_" class="NavDropdown-module__dropdown__xm1jd"><ul class="NavDropdown-module__list__zuCgG"><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_5l7d_">BY COMPANY SIZE</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_5l7d_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/enterprise" data-analytics-event="{&quot;action&quot;:&quot;enterprises&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;enterprises_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Enterprises</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/team" data-analytics-event="{&quot;action&quot;:&quot;small_and_medium_teams&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;small_and_medium_teams_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Small and medium teams</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/enterprise/startups" data-analytics-event="{&quot;action&quot;:&quot;startups&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;startups_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Startups</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/solutions/industry/nonprofits" data-analytics-event="{&quot;action&quot;:&quot;nonprofits&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;nonprofits_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Nonprofits</span></a></li></ul></div></li><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_9l7d_">BY USE CASE</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_9l7d_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/solutions/use-case/app-modernization" data-analytics-event="{&quot;action&quot;:&quot;app_modernization&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;app_modernization_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">App Modernization</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/solutions/use-case/devsecops" data-analytics-event="{&quot;action&quot;:&quot;devsecops&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;devsecops_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">DevSecOps</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/solutions/use-case/devops" data-analytics-event="{&quot;action&quot;:&quot;devops&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;devops_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">DevOps</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/solutions/use-case/ci-cd" data-analytics-event="{&quot;action&quot;:&quot;ci/cd&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;ci/cd_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">CI/CD</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--arrow-end___esdN8" href="https://github.com/solutions/use-case" data-analytics-event="{&quot;action&quot;:&quot;view_all_use_cases&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;view_all_use_cases_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">View all use cases</span><svg class="Primer_Brand__ExpandableArrow-module__ExpandableArrow___aaZs9 Primer_Brand__Link-module__Link-arrow___yd78i" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><path fill="currentColor" d="M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z"></path><path class="Primer_Brand__ExpandableArrow-module__ExpandableArrow-stem___0K8Hz" stroke="currentColor" d="M1.75 8H11" stroke-width="1.5" stroke-linecap="round"></path></svg></a></li></ul></div></li><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_dl7d_">BY INDUSTRY</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_dl7d_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/solutions/industry/healthcare" data-analytics-event="{&quot;action&quot;:&quot;healthcare&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;healthcare_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Healthcare</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/solutions/industry/financial-services" data-analytics-event="{&quot;action&quot;:&quot;financial_services&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;financial_services_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Financial services</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/solutions/industry/manufacturing" data-analytics-event="{&quot;action&quot;:&quot;manufacturing&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;manufacturing_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Manufacturing</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/solutions/industry/government" data-analytics-event="{&quot;action&quot;:&quot;government&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;government_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Government</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--arrow-end___esdN8" href="https://github.com/solutions/industry" data-analytics-event="{&quot;action&quot;:&quot;view_all_industries&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;view_all_industries_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">View all industries</span><svg class="Primer_Brand__ExpandableArrow-module__ExpandableArrow___aaZs9 Primer_Brand__Link-module__Link-arrow___yd78i" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><path fill="currentColor" d="M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z"></path><path class="Primer_Brand__ExpandableArrow-module__ExpandableArrow-stem___0K8Hz" stroke="currentColor" d="M1.75 8H11" stroke-width="1.5" stroke-linecap="round"></path></svg></a></li></ul></div></li></ul><div class="NavDropdown-module__trailingLinkContainer__VgJGL"><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--arrow-end___esdN8" href="https://github.com/solutions" data-analytics-event="{&quot;action&quot;:&quot;view_all_solutions&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;solutions&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;view_all_solutions_link_solutions_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">View all solutions</span><svg class="Primer_Brand__ExpandableArrow-module__ExpandableArrow___aaZs9 Primer_Brand__Link-module__Link-arrow___yd78i" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><path fill="currentColor" d="M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z"></path><path class="Primer_Brand__ExpandableArrow-module__ExpandableArrow-stem___0K8Hz" stroke="currentColor" d="M1.75 8H11" stroke-width="1.5" stroke-linecap="round"></path></svg></a></div></div></div></li><li><div class="NavDropdown-module__container__l2YeI"><button type="button" class="NavDropdown-module__button__PEHWX" aria-expanded="false" aria-controls="_R_1nd_">Resources<svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-triangle-right NavDropdown-module__buttonIcon__Tkl8_" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m6.427 4.427 3.396 3.396a.25.25 0 0 1 0 .354l-3.396 3.396A.25.25 0 0 1 6 11.396V4.604a.25.25 0 0 1 .427-.177Z"></path></svg></button><div id="_R_1nd_" class="NavDropdown-module__dropdown__xm1jd"><ul class="NavDropdown-module__list__zuCgG"><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_5lnd_">EXPLORE BY TOPIC</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_5lnd_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/resources/articles?topic=ai" data-analytics-event="{&quot;action&quot;:&quot;ai&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;ai_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">AI</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/resources/articles?topic=software-development" data-analytics-event="{&quot;action&quot;:&quot;software_development&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;software_development_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Software Development</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/resources/articles?topic=devops" data-analytics-event="{&quot;action&quot;:&quot;devops&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;devops_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">DevOps</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/resources/articles?topic=security" data-analytics-event="{&quot;action&quot;:&quot;security&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;security_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Security</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--arrow-end___esdN8" href="https://github.com/resources/articles" data-analytics-event="{&quot;action&quot;:&quot;view_all_topics&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;view_all_topics_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">View all topics</span><svg class="Primer_Brand__ExpandableArrow-module__ExpandableArrow___aaZs9 Primer_Brand__Link-module__Link-arrow___yd78i" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><path fill="currentColor" d="M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z"></path><path class="Primer_Brand__ExpandableArrow-module__ExpandableArrow-stem___0K8Hz" stroke="currentColor" d="M1.75 8H11" stroke-width="1.5" stroke-linecap="round"></path></svg></a></li></ul></div></li><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_9lnd_">EXPLORE BY TYPE</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_9lnd_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/customer-stories" data-analytics-event="{&quot;action&quot;:&quot;customer_stories&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;customer_stories_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Customer stories</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/resources/events" data-analytics-event="{&quot;action&quot;:&quot;events__webinars&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;events__webinars_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Events &amp; webinars</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/resources/whitepapers" data-analytics-event="{&quot;action&quot;:&quot;ebooks__reports&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;ebooks__reports_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Ebooks &amp; reports</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/solutions/executive-insights" data-analytics-event="{&quot;action&quot;:&quot;business_insights&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;business_insights_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Business insights</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--is-external___xsncV" href="https://skills.github.com" data-analytics-event="{&quot;action&quot;:&quot;github_skills&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;github_skills_link_resources_navbar&quot;}" target="_blank" rel="noreferrer"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">GitHub Skills</span><svg data-component="Octicon" focusable="false" aria-label="External link" class="octicon octicon-link-external" role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path></svg></a></li></ul></div></li><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_dlnd_">SUPPORT &amp; SERVICES</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_dlnd_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--is-external___xsncV" href="https://docs.github.com" data-analytics-event="{&quot;action&quot;:&quot;documentation&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;documentation_link_resources_navbar&quot;}" target="_blank" rel="noreferrer"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Documentation</span><svg data-component="Octicon" focusable="false" aria-label="External link" class="octicon octicon-link-external" role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path></svg></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--is-external___xsncV" href="https://support.github.com" data-analytics-event="{&quot;action&quot;:&quot;customer_support&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;customer_support_link_resources_navbar&quot;}" target="_blank" rel="noreferrer"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Customer support</span><svg data-component="Octicon" focusable="false" aria-label="External link" class="octicon octicon-link-external" role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path></svg></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/orgs/community/discussions" data-analytics-event="{&quot;action&quot;:&quot;community_forum&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;community_forum_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Community forum</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/trust-center" data-analytics-event="{&quot;action&quot;:&quot;trust_center&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;trust_center_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Trust center</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/partners" data-analytics-event="{&quot;action&quot;:&quot;partners&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;partners_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Partners</span></a></li></ul></div></li></ul><div class="NavDropdown-module__trailingLinkContainer__VgJGL"><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--arrow-end___esdN8" href="https://github.com/resources" data-analytics-event="{&quot;action&quot;:&quot;view_all_resources&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;resources&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;view_all_resources_link_resources_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">View all resources</span><svg class="Primer_Brand__ExpandableArrow-module__ExpandableArrow___aaZs9 Primer_Brand__Link-module__Link-arrow___yd78i" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><path fill="currentColor" d="M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z"></path><path class="Primer_Brand__ExpandableArrow-module__ExpandableArrow-stem___0K8Hz" stroke="currentColor" d="M1.75 8H11" stroke-width="1.5" stroke-linecap="round"></path></svg></a></div></div></div></li><li><div class="NavDropdown-module__container__l2YeI"><button type="button" class="NavDropdown-module__button__PEHWX" aria-expanded="false" aria-controls="_R_27d_">Open Source<svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-triangle-right NavDropdown-module__buttonIcon__Tkl8_" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m6.427 4.427 3.396 3.396a.25.25 0 0 1 0 .354l-3.396 3.396A.25.25 0 0 1 6 11.396V4.604a.25.25 0 0 1 .427-.177Z"></path></svg></button><div id="_R_27d_" class="NavDropdown-module__dropdown__xm1jd"><ul class="NavDropdown-module__list__zuCgG"><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_5m7d_">COMMUNITY</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_5m7d_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/open-source/sponsors" data-analytics-event="{&quot;action&quot;:&quot;github_sponsors&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;open_source&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;github_sponsors_link_open_source_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-sponsor-tiers NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.586 1C12.268 1 13.5 2.37 13.5 4.25c0 1.745-.996 3.359-2.622 4.831-.166.15-.336.297-.509.438l1.116 5.584a.75.75 0 0 1-.991.852l-2.409-.876a.25.25 0 0 0-.17 0l-2.409.876a.75.75 0 0 1-.991-.852L5.63 9.519a13.78 13.78 0 0 1-.51-.438C3.497 7.609 2.5 5.995 2.5 4.25 2.5 2.37 3.732 1 5.414 1c.963 0 1.843.403 2.474 1.073L8 2.198l.112-.125a3.385 3.385 0 0 1 2.283-1.068L10.586 1Zm-3.621 9.495-.718 3.594 1.155-.42a1.75 1.75 0 0 1 1.028-.051l.168.051 1.154.42-.718-3.592c-.199.13-.37.235-.505.314l-.169.097a.75.75 0 0 1-.72 0 9.54 9.54 0 0 1-.515-.308l-.16-.105ZM10.586 2.5c-.863 0-1.611.58-1.866 1.459-.209.721-1.231.721-1.44 0C7.025 3.08 6.277 2.5 5.414 2.5 4.598 2.5 4 3.165 4 4.25c0 1.23.786 2.504 2.128 3.719.49.443 1.018.846 1.546 1.198l.325.21.076-.047.251-.163a13.341 13.341 0 0 0 1.546-1.198C11.214 6.754 12 5.479 12 4.25c0-1.085-.598-1.75-1.414-1.75Z"></path></svg>GitHub Sponsors</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Fund open source developers</span></span></a></li></ul></div></li><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_9m7d_">PROGRAMS</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_9m7d_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--is-external___xsncV" href="https://securitylab.github.com" data-analytics-event="{&quot;action&quot;:&quot;security_lab&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;open_source&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;security_lab_link_open_source_navbar&quot;}" target="_blank" rel="noreferrer"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Security Lab</span><svg data-component="Octicon" focusable="false" aria-label="External link" class="octicon octicon-link-external" role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path></svg></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--is-external___xsncV" href="https://maintainers.github.com" data-analytics-event="{&quot;action&quot;:&quot;maintainer_community&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;open_source&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;maintainer_community_link_open_source_navbar&quot;}" target="_blank" rel="noreferrer"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Maintainer Community</span><svg data-component="Octicon" focusable="false" aria-label="External link" class="octicon octicon-link-external" role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path></svg></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--is-external___xsncV" href="https://stars.github.com" data-analytics-event="{&quot;action&quot;:&quot;github_stars&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;open_source&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;github_stars_link_open_source_navbar&quot;}" target="_blank" rel="noreferrer"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">GitHub Stars</span><svg data-component="Octicon" focusable="false" aria-label="External link" class="octicon octicon-link-external" role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path></svg></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 Primer_Brand__Link-module__Link--is-external___xsncV" href="https://archiveprogram.github.com" data-analytics-event="{&quot;action&quot;:&quot;archive_program&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;open_source&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;archive_program_link_open_source_navbar&quot;}" target="_blank" rel="noreferrer"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Archive Program</span><svg data-component="Octicon" focusable="false" aria-label="External link" class="octicon octicon-link-external" role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path></svg></a></li></ul></div></li><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_dm7d_">REPOSITORIES</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_dm7d_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/topics" data-analytics-event="{&quot;action&quot;:&quot;topics&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;open_source&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;topics_link_open_source_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Topics</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/trending" data-analytics-event="{&quot;action&quot;:&quot;trending&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;open_source&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;trending_link_open_source_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Trending</span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0" href="https://github.com/collections" data-analytics-event="{&quot;action&quot;:&quot;collections&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;open_source&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;collections_link_open_source_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty">Collections</span></a></li></ul></div></li></ul></div></div></li><li><div class="NavDropdown-module__container__l2YeI"><button type="button" class="NavDropdown-module__button__PEHWX" aria-expanded="false" aria-controls="_R_2nd_">Enterprise<svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-triangle-right NavDropdown-module__buttonIcon__Tkl8_" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m6.427 4.427 3.396 3.396a.25.25 0 0 1 0 .354l-3.396 3.396A.25.25 0 0 1 6 11.396V4.604a.25.25 0 0 1 .427-.177Z"></path></svg></button><div id="_R_2nd_" class="NavDropdown-module__dropdown__xm1jd"><ul class="NavDropdown-module__list__zuCgG"><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_5mnd_">ENTERPRISE SOLUTIONS</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_5mnd_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/enterprise" data-analytics-event="{&quot;action&quot;:&quot;enterprise_platform&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;enterprise&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;enterprise_platform_link_enterprise_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-stack NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M7.122.392a1.75 1.75 0 0 1 1.756 0l5.003 2.902c.83.481.83 1.68 0 2.162L8.878 8.358a1.75 1.75 0 0 1-1.756 0L2.119 5.456a1.251 1.251 0 0 1 0-2.162ZM8.125 1.69a.248.248 0 0 0-.25 0l-4.63 2.685 4.63 2.685a.248.248 0 0 0 .25 0l4.63-2.685ZM1.601 7.789a.75.75 0 0 1 1.025-.273l5.249 3.044a.248.248 0 0 0 .25 0l5.249-3.044a.75.75 0 0 1 .752 1.298l-5.248 3.044a1.75 1.75 0 0 1-1.756 0L1.874 8.814A.75.75 0 0 1 1.6 7.789Zm0 3.5a.75.75 0 0 1 1.025-.273l5.249 3.044a.248.248 0 0 0 .25 0l5.249-3.044a.75.75 0 0 1 .752 1.298l-5.248 3.044a1.75 1.75 0 0 1-1.756 0l-5.248-3.044a.75.75 0 0 1-.273-1.025Z"></path></svg>Enterprise platform</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">AI-powered developer platform</span></span></a></li></ul></div></li><li><div class="NavGroup-module__group__W8SqJ"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--monospace___QXHDQ Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavGroup-module__title__Wzxz2" id="_R_9mnd_">AVAILABLE ADD-ONS</span><ul class="NavGroup-module__list__UCOFy" aria-labelledby="_R_9mnd_"><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/security/advanced-security" data-analytics-event="{&quot;action&quot;:&quot;github_advanced_security&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;enterprise&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;github_advanced_security_link_enterprise_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-shield-check NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM11.28 6.28l-3.5 3.5a.75.75 0 0 1-1.06 0l-1.5-1.5a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l.97.97 2.97-2.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path></svg>GitHub Advanced Security</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Enterprise-grade security features</span></span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/features/copilot/copilot-business" data-analytics-event="{&quot;action&quot;:&quot;copilot_for_business&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;enterprise&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;copilot_for_business_link_enterprise_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-copilot NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg>Copilot for Business</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Enterprise-grade AI features</span></span></a></li><li><a class="Primer_Brand__Link-module__Link___lF11y Primer_Brand__Link-module__Link--default___VRVW0 NavLink-module__link__EG3d4" href="https://github.com/enterprise/premium-support" data-analytics-event="{&quot;action&quot;:&quot;premium_support&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;enterprise&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;premium_support_link_enterprise_navbar&quot;}"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Link-module__Link--label___jM8Ty"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS Primer_Brand__Text-module__Text--weight-medium___qJKf_ NavLink-module__title__Q7t0p"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-comment-discussion NavLink-module__icon__ltGNM" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1h8.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.458 1.458 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25v-5.5C0 1.784.784 1 1.75 1ZM1.5 2.75v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13 2a.25.25 0 0 0-.25-.25h-.5a.75.75 0 0 1 0-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.458 1.458 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.22 2.22v-2.19a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25Z"></path></svg>Premium Support</span><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--muted___rE6mh Primer_Brand__Text-module__Text--200____P1wy Primer_Brand__Text-module__Text--antialiased___TYoXS NavLink-module__subtitle__X4gkW">Enterprise-grade 24/7 support</span></span></a></li></ul></div></li></ul></div></div></li><li><a href="https://github.com/pricing" data-analytics-event="{&quot;action&quot;:&quot;pricing&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;pricing&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;pricing_link_pricing_navbar&quot;}" class="MarketingNavigation-module__navLink__hUomM">Pricing</a></li></ul></nav><div class="MarketingHeader-module__ctaContainer__tBmPz"><div class="HeaderSearch-module__searchSlot__oVOUS"><button class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw HeaderSearch-module__trigger__zsF9q" type="button" aria-haspopup="dialog" aria-expanded="false" aria-label="Search or jump to, type / to search" data-analytics-event="{&quot;action&quot;:&quot;searchbar&quot;,&quot;tag&quot;:&quot;input&quot;,&quot;context&quot;:&quot;global&quot;,&quot;location&quot;:&quot;navbar&quot;,&quot;label&quot;:&quot;searchbar_input_global_navbar&quot;}"><span class="Primer_Brand__Button-module__Button__text___ED0bX"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ Primer_Brand__Button-module__Button--label___qrkyz Primer_Brand__Button-module__Button--label-subtle___8ndWH"><span class="HeaderSearch-module__content__kMpxU"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-search HeaderSearch-module__icon__wcrHX" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path></svg><span class="HeaderSearch-module__label__d1iWG">Search</span><kbd class="HeaderSearch-module__kbd__HNG0o" aria-hidden="true">/</kbd></span></span></span></button><div class="d-none"></div></div><div class="AuthCTAs-module__signInWrap__q2P60"><a class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw AuthCTAs-module__cta__WpwQq AuthCTAs-module__desktopActionGap__UZuXT AuthCTAs-module__hiddenBelowLg__BfKBw" href="/login?return_to=https%3A%2F%2Fgithub.com%2Fopenfga%2Fjava-sdk%2Fblob%2Fmain%2FREADME.md" data-analytics-event="{&quot;action&quot;:&quot;sign_in&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;auth_cta&quot;,&quot;location&quot;:&quot;header&quot;,&quot;label&quot;:&quot;sign_in_link_auth_cta_header&quot;}" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;site header menu&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;SIGN_UP&quot;,&quot;originating_url&quot;:&quot;https://github.com/openfga/java-sdk/blob/main/README.md&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="76cb3a8ec7469e78b293cb1b2f1cf9c7e4a8bb50d9424d971faedcf36346bf11"><span class="Primer_Brand__Button-module__Button__text___ED0bX"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ Primer_Brand__Button-module__Button--label___qrkyz Primer_Brand__Button-module__Button--label-subtle___8ndWH">Sign in</span></span></a></div><a class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--secondary___gHnw_ Primer_Brand__Button-module__Button--size-small___zQrEw AuthCTAs-module__cta__WpwQq" href="/signup?ref_cta=Sign+up&amp;ref_loc=header+logged+out&amp;ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&amp;source=header-repo&amp;source_repo=openfga%2Fjava-sdk" data-analytics-event="{&quot;action&quot;:&quot;sign_up&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;context&quot;:&quot;auth_cta&quot;,&quot;location&quot;:&quot;header&quot;,&quot;label&quot;:&quot;sign_up_link_auth_cta_header&quot;}" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;site header menu&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;SIGN_UP&quot;,&quot;originating_url&quot;:&quot;https://github.com/openfga/java-sdk/blob/main/README.md&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="76cb3a8ec7469e78b293cb1b2f1cf9c7e4a8bb50d9424d971faedcf36346bf11"><span class="Primer_Brand__Button-module__Button__text___ED0bX"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ Primer_Brand__Button-module__Button--label___qrkyz Primer_Brand__Button-module__Button--label-secondary___eJ0_a">Sign up</span></span></a><button class="Primer_Brand__Button-module__Button___scH9Z Primer_Brand__Button-module__Button--subtle___F7pEE Primer_Brand__Button-module__Button--size-small___zQrEw HeaderAppearanceSettings-module__trigger__hUheK" type="button" aria-haspopup="dialog" aria-labelledby="_R_fbd_"><span class="Primer_Brand__Button-module__Button__leading-visual___jjtTe" data-testid="Button-leading-visual"><svg data-component="Octicon" focusable="false" aria-hidden="true" class="octicon octicon-sliders Primer_Brand__Button-module__Button__icon-visual____qybb" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M15 2.75a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75Zm-8.5.75v1.25a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-1.5 0V2H1.75a.75.75 0 0 0 0 1.5H6.5Zm1.25 5.25a.75.75 0 0 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6ZM15 8a.75.75 0 0 1-.75.75H11.5V10a.75.75 0 1 1-1.5 0V6a.75.75 0 0 1 1.5 0v1.25h2.75A.75.75 0 0 1 15 8Zm-9 5.25v-2a.75.75 0 0 0-1.5 0v1.25H1.75a.75.75 0 0 0 0 1.5H4.5v1.25a.75.75 0 0 0 1.5 0v-2Zm9 0a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Z"></path></svg></span><span class="Primer_Brand__Button-module__Button__text___ED0bX"><span class="Primer_Brand__Text-module__Text___XeGJJ Primer_Brand__Text-module__Text-font--mona-sans___a8XJD Primer_Brand__Text-module__Text--default___GhPh_ Primer_Brand__Text-module__Text--100___B2ueX Primer_Brand__Text-module__Text--weight-medium___qJKf_ Primer_Brand__Button-module__Button--label___qrkyz Primer_Brand__Button-module__Button--label-subtle___8ndWH"></span></span></button><div class="Primer_Brand__Tooltip-module__Tooltip___0Eipx" data-direction="s" aria-hidden="true" id="_R_fbd_">Appearance settings</div></div></div></div></div><div class="MarketingHeader-module__bottomBorder__uZT38" aria-hidden="true"></div></header></div></div>
</react-partial>



      <div hidden="hidden" data-view-component="true" class="js-stale-session-flash stale-session-flash flash flash-warn flash-full">
  
        <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
        <span class="js-stale-session-flash-signed-in" hidden>You signed in with another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
        <span class="js-stale-session-flash-signed-out" hidden>You signed out in another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>
        <span class="js-stale-session-flash-switched" hidden>You switched accounts on another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span>

    <button id="icon-button-9fe4e578-1ad1-4733-9b82-0674d4134847" aria-labelledby="tooltip-1f1aa801-50e6-4181-b5d7-a6b6eeac0b78" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium flash-close js-flash-close">  <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x Button-visual">
    <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button><tool-tip id="tooltip-1f1aa801-50e6-4181-b5d7-a6b6eeac0b78" for="icon-button-9fe4e578-1ad1-4733-9b82-0674d4134847" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Dismiss alert</tool-tip>


  
</div>
    </div>

  <div id="start-of-content" class="show-on-focus"></div>








    <div id="js-flash-container" class="flash-container" data-turbo-replace>





  <template class="js-flash-template">
    
<div class="flash flash-full   {{ className }}">
  <div >
    <button autofocus class="flash-close js-flash-close" type="button" aria-label="Dismiss this message">
      <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
    <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
    </button>
    <div aria-atomic="true" role="alert" class="js-flash-alert">
      
      <div>{{ message }}</div>

    </div>
  </div>
</div>
  </template>
</div>


    






  <div
    class="application-main "
    data-commit-hovercards-enabled
    data-discussion-hovercards-enabled
    data-issue-and-pr-hovercards-enabled
    data-project-hovercards-enabled
  >
        <div itemscope itemtype="http://schema.org/SoftwareSourceCode" class="">
    <main id="js-repo-pjax-container" >
      
      
    


    








  

    <div id="repository-container-header"  class="tmp-pt-3 hide-full-screen" style="background-color: var(--page-header-bgColor, var(--color-page-header-bg));" data-turbo-replace>

        <div class="d-flex flex-nowrap flex-justify-end tmp-mb-3  tmp-px-3 tmp-px-lg-5" style="gap: 1rem;">

          <div class="flex-auto min-width-0 width-fit">
              
  <div class=" d-flex flex-wrap flex-items-center wb-break-word f3 text-normal">
      <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo color-fg-muted mr-2 tmp-mr-2">
    <path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"></path>
</svg>
    
    <span class="author flex-self-stretch" itemprop="author">
      <a class="url fn" rel="author" data-hovercard-type="organization" data-hovercard-url="/orgs/openfga/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="/openfga">
        openfga
</a>    </span>
    <span class="mx-1 flex-self-stretch color-fg-muted">/</span>
    <strong itemprop="name" class="mr-2 flex-self-stretch">
      <a data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" href="/openfga/java-sdk">java-sdk</a>
    </strong>

    <span></span><span class="Label Label--secondary v-align-middle mr-1">Public</span>
  </div>


          </div>

          <div id="repository-details-container" class="flex-shrink-0" data-turbo-replace style="max-width: 70%;">
              <ul class="pagehead-actions flex-shrink-0 d-none d-md-inline" style="padding: 2px 0;">
    
      

  <li>
            <a href="/login?return_to=%2Fopenfga%2Fjava-sdk" rel="nofollow" id="repository-details-watch-button" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;notification subscription menu watch&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;LOG_IN&quot;,&quot;originating_url&quot;:&quot;https://github.com/openfga/java-sdk/blob/main/README.md&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="e7eb93d1f46f324d118ae24306a2ce21393b4b627db1ad8ee7a8a91cd7b1650b" aria-label="You must be signed in to change notification settings" data-view-component="true" class="btn-sm btn">    <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-bell mr-2 tmp-mr-2">
    <path d="M8 16a2 2 0 0 0 1.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 0 0 8 16ZM3 5a5 5 0 0 1 10 0v2.947c0 .05.015.098.042.139l1.703 2.555A1.519 1.519 0 0 1 13.482 13H2.518a1.516 1.516 0 0 1-1.263-2.36l1.703-2.554A.255.255 0 0 0 3 7.947Zm5-3.5A3.5 3.5 0 0 0 4.5 5v2.947c0 .346-.102.683-.294.97l-1.703 2.556a.017.017 0 0 0-.003.01l.001.006c0 .002.002.004.004.006l.006.004.007.001h10.964l.007-.001.006-.004.004-.006.001-.007a.017.017 0 0 0-.003-.01l-1.703-2.554a1.745 1.745 0 0 1-.294-.97V5A3.5 3.5 0 0 0 8 1.5Z"></path>
</svg>Notifications
</a>    <tool-tip id="tooltip-11191eae-b7aa-41b2-8379-380a9630c3ed" for="repository-details-watch-button" popover="manual" data-direction="s" data-type="description" data-view-component="true" class="sr-only position-absolute">You must be signed in to change notification settings</tool-tip>

  </li>

  <li>
          <a icon="repo-forked" id="fork-button" href="/login?return_to=%2Fopenfga%2Fjava-sdk" rel="nofollow" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;repo details fork button&quot;,&quot;repository_id&quot;:670224534,&quot;auth_type&quot;:&quot;LOG_IN&quot;,&quot;originating_url&quot;:&quot;https://github.com/openfga/java-sdk/blob/main/README.md&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="4dabeef1d7207f8940abbdb0960a12ed0b2957cbdb7061a990fd28267d7a7b1a" data-view-component="true" class="btn-sm btn">    <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo-forked mr-2 tmp-mr-2">
    <path d="M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"></path>
</svg>Fork
    <span id="repo-network-counter" data-pjax-replace="true" data-turbo-replace="true" title="26" data-view-component="true" class="Counter">26</span>
</a>
  </li>

  <li>
        <div data-view-component="true" class="BtnGroup d-flex">
        <a href="/login?return_to=%2Fopenfga%2Fjava-sdk" rel="nofollow" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;star button&quot;,&quot;repository_id&quot;:670224534,&quot;auth_type&quot;:&quot;LOG_IN&quot;,&quot;originating_url&quot;:&quot;https://github.com/openfga/java-sdk/blob/main/README.md&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="b2f315eb300f50a43571f4227f99072256f8e522e6978927827b7b6b85257f1b" aria-label="You must be signed in to star a repository" data-view-component="true" class="tooltipped tooltipped-sw btn-sm btn">    <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-star v-align-text-bottom d-inline-block mr-2 tmp-mr-2">
    <path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"></path>
</svg><span data-view-component="true" class="d-inline">
          Star
</span>          <span id="repo-stars-counter-star" aria-label="54 users starred this repository" data-singular-suffix="user starred this repository" data-plural-suffix="users starred this repository" data-turbo-replace="true" title="54" data-view-component="true" class="Counter js-social-count">54</span>
</a></div>
  </li>

</ul>

          </div>
        </div>

          <div id="responsive-meta-container" data-turbo-replace>
</div>


            <nav data-pjax="#js-repo-pjax-container" aria-label="Repository" data-view-component="true" class="js-repo-nav js-sidenav-container-pjax js-responsive-underlinenav overflow-hidden UnderlineNav px-3 tmp-px-3 px-md-4 tmp-px-md-4 px-lg-5 tmp-px-lg-5">

  <ul data-view-component="true" class="UnderlineNav-body list-style-none">
      <li data-view-component="true" class="d-inline-flex">
  <a id="code-tab" href="/openfga/java-sdk" data-tab-item="i0code-tab" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches repo_packages repo_deployments repo_attestations /openfga/java-sdk" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g c" data-command-id="repositories:go-to-code" data-react-nav="code-view" data-react-nav-anchor="code-view-repo-link" data-analytics-event="{&quot;category&quot;:&quot;Underline navbar&quot;,&quot;action&quot;:&quot;Click tab&quot;,&quot;label&quot;:&quot;Code&quot;,&quot;target&quot;:&quot;UNDERLINE_NAV.TAB&quot;}" aria-current="page" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item selected">
    
              <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code UnderlineNav-octicon d-none d-sm-inline">
    <path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path>
</svg>
        <span data-content="Code">Code</span>
          <span id="code-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span>


    
</a></li>
      <li data-view-component="true" class="d-inline-flex">
  <a id="issues-tab" href="/openfga/java-sdk/issues" data-tab-item="i1issues-tab" data-selected-links="repo_issues repo_labels repo_milestones /openfga/java-sdk/issues" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g i" data-command-id="repositories:go-to-issues" data-react-nav="issues-react" data-analytics-event="{&quot;category&quot;:&quot;Underline navbar&quot;,&quot;action&quot;:&quot;Click tab&quot;,&quot;label&quot;:&quot;Issues&quot;,&quot;target&quot;:&quot;UNDERLINE_NAV.TAB&quot;}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
              <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened UnderlineNav-octicon d-none d-sm-inline">
    <path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path>
</svg>
        <span data-content="Issues">Issues</span>
          <span id="issues-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="18" data-view-component="true" class="Counter">18</span>


    
</a></li>
      <li data-view-component="true" class="d-inline-flex">
  <a id="pull-requests-tab" href="/openfga/java-sdk/pulls" data-tab-item="i2pull-requests-tab" data-selected-links="repo_pulls checks /openfga/java-sdk/pulls" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g p" data-command-id="repositories:go-to-pull-requests" data-analytics-event="{&quot;category&quot;:&quot;Underline navbar&quot;,&quot;action&quot;:&quot;Click tab&quot;,&quot;label&quot;:&quot;Pull requests&quot;,&quot;target&quot;:&quot;UNDERLINE_NAV.TAB&quot;}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
              <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-git-pull-request UnderlineNav-octicon d-none d-sm-inline">
    <path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"></path>
</svg>
        <span data-content="Pull requests">Pull requests</span>
          <span id="pull-requests-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="2" data-view-component="true" class="Counter">2</span>


    
</a></li>
      <li data-view-component="true" class="d-inline-flex">
  <a id="actions-tab" href="/openfga/java-sdk/actions" data-tab-item="i3actions-tab" data-selected-links="repo_actions /openfga/java-sdk/actions" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g a" data-command-id="repositories:go-to-actions" data-react-nav="actions-workflows" data-analytics-event="{&quot;category&quot;:&quot;Underline navbar&quot;,&quot;action&quot;:&quot;Click tab&quot;,&quot;label&quot;:&quot;Actions&quot;,&quot;target&quot;:&quot;UNDERLINE_NAV.TAB&quot;}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
              <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-play UnderlineNav-octicon d-none d-sm-inline">
    <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"></path>
</svg>
        <span data-content="Actions">Actions</span>
          <span id="actions-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span>


    
</a></li>
      <li data-view-component="true" class="d-inline-flex">
  <a id="projects-tab" href="/openfga/java-sdk/projects" data-tab-item="i4projects-tab" data-selected-links="repo_projects new_repo_project repo_project /openfga/java-sdk/projects" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g b" data-command-id="repositories:go-to-projects" data-react-nav="repo" data-analytics-event="{&quot;category&quot;:&quot;Underline navbar&quot;,&quot;action&quot;:&quot;Click tab&quot;,&quot;label&quot;:&quot;Projects&quot;,&quot;target&quot;:&quot;UNDERLINE_NAV.TAB&quot;}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
              <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-table UnderlineNav-octicon d-none d-sm-inline">
    <path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25ZM6.5 6.5v8h7.75a.25.25 0 0 0 .25-.25V6.5Zm8-1.5V1.75a.25.25 0 0 0-.25-.25H6.5V5Zm-13 1.5v7.75c0 .138.112.25.25.25H5v-8ZM5 5V1.5H1.75a.25.25 0 0 0-.25.25V5Z"></path>
</svg>
        <span data-content="Projects">Projects</span>
          <span id="projects-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span>


    
</a></li>
      <li data-view-component="true" class="d-inline-flex">
  <a id="security-and-quality-tab" href="/openfga/java-sdk/security" data-tab-item="i5security-and-quality-tab" data-selected-links="security overview alerts policy token_scanning code_scanning /openfga/java-sdk/security" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g s" data-command-id="repositories:go-to-security" data-analytics-event="{&quot;category&quot;:&quot;Underline navbar&quot;,&quot;action&quot;:&quot;Click tab&quot;,&quot;label&quot;:&quot;Security and quality&quot;,&quot;target&quot;:&quot;UNDERLINE_NAV.TAB&quot;}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
              <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-shield UnderlineNav-octicon d-none d-sm-inline">
    <path d="M7.467.133a1.748 1.748 0 0 1 1.066 0l5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667Zm.61 1.429a.25.25 0 0 0-.153 0l-5.25 1.68a.25.25 0 0 0-.174.238V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297a.196.196 0 0 0 .154 0c2.245-.956 3.582-2.104 4.366-3.298C13.225 9.666 13.5 8.36 13.5 7V3.48a.251.251 0 0 0-.174-.237l-5.25-1.68ZM8.75 4.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 1.5 0ZM9 10.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
        <span data-content="Security and quality">Security and quality</span>
          <span id="security-and-quality-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="0" hidden="hidden" data-view-component="true" class="Counter">0</span>


    
</a></li>
      <li data-view-component="true" class="d-inline-flex">
  <a id="insights-tab" href="/openfga/java-sdk/pulse" data-tab-item="i6insights-tab" data-selected-links="repo_graphs repo_contributors dependency_graph dependabot_updates pulse people community /openfga/java-sdk/pulse" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-command-id="repositories:go-to-insights" data-analytics-event="{&quot;category&quot;:&quot;Underline navbar&quot;,&quot;action&quot;:&quot;Click tab&quot;,&quot;label&quot;:&quot;Insights&quot;,&quot;target&quot;:&quot;UNDERLINE_NAV.TAB&quot;}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
              <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-graph UnderlineNav-octicon d-none d-sm-inline">
    <path d="M1.5 1.75V13.5h13.75a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75V1.75a.75.75 0 0 1 1.5 0Zm14.28 2.53-5.25 5.25a.75.75 0 0 1-1.06 0L7 7.06 4.28 9.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0L10 7.94l4.72-4.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path>
</svg>
        <span data-content="Insights">Insights</span>
          <span id="insights-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span>


    
</a></li>
</ul>
    <div style="visibility:hidden;" data-view-component="true" class="UnderlineNav-actions js-responsive-underlinenav-overflow position-absolute pr-3 tmp-pr-3 pr-md-4 tmp-pr-md-4 pr-lg-5 tmp-pr-lg-5 right-0">      <action-menu data-select-variant="none" data-view-component="true">
  <focus-group direction="vertical" mnemonics retain>
    <button id="action-menu-25a2b214-1bb8-468a-a3d2-9897778c03ea-button" popovertarget="action-menu-25a2b214-1bb8-468a-a3d2-9897778c03ea-overlay" aria-controls="action-menu-25a2b214-1bb8-468a-a3d2-9897778c03ea-list" aria-haspopup="true" aria-labelledby="tooltip-9d46b261-b8da-4664-8357-f0b8a4794466" type="button" data-view-component="true" class="Button Button--iconOnly Button--secondary Button--medium UnderlineNav-item">  <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
    <path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path>
</svg>
</button><tool-tip id="tooltip-9d46b261-b8da-4664-8357-f0b8a4794466" for="action-menu-25a2b214-1bb8-468a-a3d2-9897778c03ea-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Additional navigation options</tool-tip>


<anchored-position data-target="action-menu.overlay" id="action-menu-25a2b214-1bb8-468a-a3d2-9897778c03ea-overlay" anchor="action-menu-25a2b214-1bb8-468a-a3d2-9897778c03ea-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" data-view-component="true">
  <div data-view-component="true" class="Overlay Overlay--size-auto">
    
      <div data-view-component="true" class="Overlay-body Overlay-body--paddingNone">          <action-list>
  <div data-view-component="true">
    <ul aria-labelledby="action-menu-25a2b214-1bb8-468a-a3d2-9897778c03ea-button" id="action-menu-25a2b214-1bb8-468a-a3d2-9897778c03ea-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
        <li hidden="hidden" data-menu-item="i0code-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
    
    
    <a tabindex="-1" id="item-ddbeb912-f499-4711-b267-0613e2902363" href="/openfga/java-sdk" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16">
        <span class="ActionListItem-visual ActionListItem-visual--leading">
          <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code">
    <path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path>
</svg>
        </span>
      
        <span data-view-component="true" class="ActionListItem-label">
          Code
</span>      
</a>
  
</li>
        <li hidden="hidden" data-menu-item="i1issues-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
    
    
    <a tabindex="-1" id="item-b7296398-5cad-4bf0-ac36-4263a94af7b7" href="/openfga/java-sdk/issues" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16">
        <span class="ActionListItem-visual ActionListItem-visual--leading">
          <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened">
    <path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path>
</svg>
        </span>
      
        <span data-view-component="true" class="ActionListItem-label">
          Issues
</span>      
</a>
  
</li>
        <li hidden="hidden" data-menu-item="i2pull-requests-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
    
    
    <a tabindex="-1" id="item-b083f1e4-27d8-47ef-a1e0-907751650746" href="/openfga/java-sdk/pulls" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16">
        <span class="ActionListItem-visual ActionListItem-visual--leading">
          <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-git-pull-request">
    <path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"></path>
</svg>
        </span>
      
        <span data-view-component="true" class="ActionListItem-label">
          Pull requests
</span>      
</a>
  
</li>
        <li hidden="hidden" data-menu-item="i3actions-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
    
    
    <a tabindex="-1" id="item-04d2f617-06fb-4636-bb8d-39c2d3f86354" href="/openfga/java-sdk/actions" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16">
        <span class="ActionListItem-visual ActionListItem-visual--leading">
          <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-play">
    <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"></path>
</svg>
        </span>
      
        <span data-view-component="true" class="ActionListItem-label">
          Actions
</span>      
</a>
  
</li>
        <li hidden="hidden" data-menu-item="i4projects-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
    
    
    <a tabindex="-1" id="item-8fe2c33e-c22c-4e07-b02b-dbc153ebed43" href="/openfga/java-sdk/projects" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16">
        <span class="ActionListItem-visual ActionListItem-visual--leading">
          <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-table">
    <path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25ZM6.5 6.5v8h7.75a.25.25 0 0 0 .25-.25V6.5Zm8-1.5V1.75a.25.25 0 0 0-.25-.25H6.5V5Zm-13 1.5v7.75c0 .138.112.25.25.25H5v-8ZM5 5V1.5H1.75a.25.25 0 0 0-.25.25V5Z"></path>
</svg>
        </span>
      
        <span data-view-component="true" class="ActionListItem-label">
          Projects
</span>      
</a>
  
</li>
        <li hidden="hidden" data-menu-item="i5security-and-quality-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
    
    
    <a tabindex="-1" id="item-5397c6b1-bb2e-4271-b3f9-dc1f72569876" href="/openfga/java-sdk/security" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16">
        <span class="ActionListItem-visual ActionListItem-visual--leading">
          <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-shield">
    <path d="M7.467.133a1.748 1.748 0 0 1 1.066 0l5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667Zm.61 1.429a.25.25 0 0 0-.153 0l-5.25 1.68a.25.25 0 0 0-.174.238V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297a.196.196 0 0 0 .154 0c2.245-.956 3.582-2.104 4.366-3.298C13.225 9.666 13.5 8.36 13.5 7V3.48a.251.251 0 0 0-.174-.237l-5.25-1.68ZM8.75 4.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 1.5 0ZM9 10.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
        </span>
      
        <span data-view-component="true" class="ActionListItem-label">
          Security and quality
</span>      
</a>
  
</li>
        <li hidden="hidden" data-menu-item="i6insights-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
    
    
    <a tabindex="-1" id="item-16e96a4f-582b-4e74-b790-9fa7b5c02726" href="/openfga/java-sdk/pulse" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16">
        <span class="ActionListItem-visual ActionListItem-visual--leading">
          <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-graph">
    <path d="M1.5 1.75V13.5h13.75a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75V1.75a.75.75 0 0 1 1.5 0Zm14.28 2.53-5.25 5.25a.75.75 0 0 1-1.06 0L7 7.06 4.28 9.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0L10 7.94l4.72-4.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path>
</svg>
        </span>
      
        <span data-view-component="true" class="ActionListItem-label">
          Insights
</span>      
</a>
  
</li>
</ul>    
</div></action-list>


</div>
      
</div></anchored-position>  </focus-group>
</action-menu></div>
</nav>

    </div>
  



<turbo-frame id="repo-content-turbo-frame" target="_top" data-turbo-action="advance" class="">
    <div id="repo-content-pjax-container" class="repository-content " >
    



    
      
    








<react-app
  app-name="code-view"
  initial-path="/openfga/java-sdk/blob/main/README.md"
  style="display: block; min-height: calc(100vh - 64px);"
  data-attempted-ssr="true"
  data-ssr="true"
  data-lazy="false"
  data-alternate="false"
  data-data-router-enabled="true"
  data-react-profiling="false"
>
  
  <script type="application/json" data-target="react-app.embeddedData">{"payload":{"codeViewBlobRoute":{"csv":null,"csvError":null,"headerInfo":{"toc":[{"level":1,"text":"Java SDK for OpenFGA","anchor":"java-sdk-for-openfga","htmlText":"Java SDK for OpenFGA"},{"level":2,"text":"Table of Contents","anchor":"table-of-contents","htmlText":"Table of Contents"},{"level":2,"text":"About","anchor":"about","htmlText":"About"},{"level":2,"text":"Resources","anchor":"resources","htmlText":"Resources"},{"level":2,"text":"Installation","anchor":"installation","htmlText":"Installation"},{"level":2,"text":"Getting Started","anchor":"getting-started","htmlText":"Getting Started"},{"level":3,"text":"Initializing the API Client","anchor":"initializing-the-api-client","htmlText":"Initializing the API Client"},{"level":4,"text":"No Credentials","anchor":"no-credentials","htmlText":"No Credentials"},{"level":4,"text":"API Token","anchor":"api-token","htmlText":"API Token"},{"level":4,"text":"Client Credentials","anchor":"client-credentials","htmlText":"Client Credentials"},{"level":4,"text":"OAuth2 Client Credentials","anchor":"oauth2-client-credentials","htmlText":"OAuth2 Client Credentials"},{"level":3,"text":"Custom Headers","anchor":"custom-headers","htmlText":"Custom Headers"},{"level":4,"text":"Default Headers","anchor":"default-headers","htmlText":"Default Headers"},{"level":4,"text":"Per-request Headers","anchor":"per-request-headers","htmlText":"Per-request Headers"},{"level":3,"text":"Get your Store ID","anchor":"get-your-store-id","htmlText":"Get your Store ID"},{"level":3,"text":"Calling the API","anchor":"calling-the-api","htmlText":"Calling the API"},{"level":4,"text":"Stores","anchor":"stores","htmlText":"Stores"},{"level":5,"text":"List Stores","anchor":"list-stores","htmlText":"List Stores"},{"level":5,"text":"Create Store","anchor":"create-store","htmlText":"Create Store"},{"level":5,"text":"Get Store","anchor":"get-store","htmlText":"Get Store"},{"level":5,"text":"Delete Store","anchor":"delete-store","htmlText":"Delete Store"},{"level":4,"text":"Authorization Models","anchor":"authorization-models","htmlText":"Authorization Models"},{"level":5,"text":"Read Authorization Models","anchor":"read-authorization-models","htmlText":"Read Authorization Models"},{"level":5,"text":"Write Authorization Model","anchor":"write-authorization-model","htmlText":"Write Authorization Model"},{"level":4,"text":"Read a Single Authorization Model","anchor":"read-a-single-authorization-model","htmlText":"Read a Single Authorization Model"},{"level":5,"text":"Read the Latest Authorization Model","anchor":"read-the-latest-authorization-model","htmlText":"Read the Latest Authorization Model"},{"level":4,"text":"Relationship Tuples","anchor":"relationship-tuples","htmlText":"Relationship Tuples"},{"level":5,"text":"Read Relationship Tuple Changes (Watch)","anchor":"read-relationship-tuple-changes-watch","htmlText":"Read Relationship Tuple Changes (Watch)"},{"level":5,"text":"Read Relationship Tuples","anchor":"read-relationship-tuples","htmlText":"Read Relationship Tuples"},{"level":5,"text":"Write (Create and Delete) Relationship Tuples","anchor":"write-create-and-delete-relationship-tuples","htmlText":"Write (Create and Delete) Relationship Tuples"},{"level":6,"text":"Transaction mode (default)","anchor":"transaction-mode-default","htmlText":"Transaction mode (default)"},{"level":6,"text":"Non-transaction mode","anchor":"non-transaction-mode","htmlText":"Non-transaction mode"},{"level":6,"text":"Conflict options for write operations","anchor":"conflict-options-for-write-operations","htmlText":"Conflict options for write operations"},{"level":4,"text":"Relationship Queries","anchor":"relationship-queries","htmlText":"Relationship Queries"},{"level":5,"text":"Check","anchor":"check","htmlText":"Check"},{"level":5,"text":"Batch Check","anchor":"batch-check","htmlText":"Batch Check"},{"level":5,"text":"Expand","anchor":"expand","htmlText":"Expand"},{"level":5,"text":"List Objects","anchor":"list-objects","htmlText":"List Objects"},{"level":5,"text":"List Relations","anchor":"list-relations","htmlText":"List Relations"},{"level":5,"text":"List Users","anchor":"list-users","htmlText":"List Users"},{"level":4,"text":"Assertions","anchor":"assertions","htmlText":"Assertions"},{"level":5,"text":"Read Assertions","anchor":"read-assertions","htmlText":"Read Assertions"},{"level":5,"text":"Write Assertions","anchor":"write-assertions","htmlText":"Write Assertions"},{"level":3,"text":"Calling Other Endpoints","anchor":"calling-other-endpoints","htmlText":"Calling Other Endpoints"},{"level":4,"text":"Example: Calling a new \"Custom Endpoint\" endpoint and handling raw response","anchor":"example-calling-a-new-custom-endpoint-endpoint-and-handling-raw-response","htmlText":"Example: Calling a new \"Custom Endpoint\" endpoint and handling raw response"},{"level":4,"text":"Example: Calling a new \"Custom Endpoint\" endpoint and decoding response into a struct","anchor":"example-calling-a-new-custom-endpoint-endpoint-and-decoding-response-into-a-struct","htmlText":"Example: Calling a new \"Custom Endpoint\" endpoint and decoding response into a struct"},{"level":4,"text":"Calling a streaming endpoint","anchor":"calling-a-streaming-endpoint","htmlText":"Calling a streaming endpoint"},{"level":4,"text":"Documentation","anchor":"documentation","htmlText":"Documentation"},{"level":3,"text":"Retries","anchor":"retries","htmlText":"Retries"},{"level":4,"text":"Retry Behavior","anchor":"retry-behavior","htmlText":"Retry Behavior"},{"level":4,"text":"Delay Calculation","anchor":"delay-calculation","htmlText":"Delay Calculation"},{"level":4,"text":"Configuration","anchor":"configuration","htmlText":"Configuration"},{"level":4,"text":"Error Handling with Retry Information","anchor":"error-handling-with-retry-information","htmlText":"Error Handling with Retry Information"},{"level":3,"text":"API Endpoints","anchor":"api-endpoints","htmlText":"API Endpoints"},{"level":3,"text":"Models","anchor":"models","htmlText":"Models"},{"level":3,"text":"OpenTelemetry","anchor":"opentelemetry","htmlText":"OpenTelemetry"},{"level":2,"text":"Contributing","anchor":"contributing","htmlText":"Contributing"},{"level":2,"text":"Author","anchor":"author","htmlText":"Author"},{"level":2,"text":"License","anchor":"license","htmlText":"License"}]},"issueTemplate":null,"discussionTemplate":null,"richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eJava SDK for OpenFGA\u003c/h1\u003e\u003ca id=\"user-content-java-sdk-for-openfga\" class=\"anchor\" aria-label=\"Permalink: Java SDK for OpenFGA\" href=\"#java-sdk-for-openfga\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://central.sonatype.com/artifact/dev.openfga/openfga-sdk\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/4d23e36927f7c77ecdf5f7c824ebf6180b5b471c1fd81cea2384efd3e36f15fb/68747470733a2f2f696d672e736869656c64732e696f2f6d6176656e2d63656e7472616c2f762f6465762e6f70656e6667612f6f70656e6667612d73646b2e7376673f6c6162656c3d4d6176656e25323043656e7472616c\" alt=\"Maven Central\" data-canonical-src=\"https://img.shields.io/maven-central/v/dev.openfga/openfga-sdk.svg?label=Maven%20Central\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://javadoc.io/doc/dev.openfga/openfga-sdk\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/a6530977ef08b1f2190273d74d279fb9cbe1c7c42eb6148d5d24b8842b7fe7c0/68747470733a2f2f6a617661646f632e696f2f6261646765322f6465762e6f70656e6667612f6f70656e6667612d73646b2f6a617661646f632e737667\" alt=\"Javadoc\" data-canonical-src=\"https://javadoc.io/badge2/dev.openfga/openfga-sdk/javadoc.svg\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://socket.dev/maven/package/dev.openfga:openfga-sdk\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/3a4c2cb11ec599456871639f8dddaa6000d84f9fe7df4c4279fffb2b5725d840/68747470733a2f2f62616467652e736f636b65742e6465762f6d6176656e2f7061636b6167652f6465762e6f70656e6667613a6f70656e6667612d73646b2f302e31302e30\" alt=\"Socket Badge\" data-canonical-src=\"https://badge.socket.dev/maven/package/dev.openfga:openfga-sdk/0.10.0\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e \n\u003ca href=\"https://deepwiki.com/openfga/java-sdk\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/26a65bdc382b0075ab15adc70644dc5d9ad0fbadc7e2a2189cc18a4d0877c0ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4465657057696b692d6f70656e6667612532466a6176612d2d73646b2d626c75652e7376673f6c6f676f3d646174613a696d6167652f706e673b6261736536342c6956424f5277304b47676f414141414e53556845556741414143774141414179434159414141416e57446e714141414141584e535230494172733463365141414130354a52454655614550746d557479457a4551687457545179514c484e616b324142375a6e79585a4d456a584d47654b2f4149692b517548724d6e6243685959374d496838673031664a6f6f70466230756868457171636257547030362f7576317361454476344f336e33645636305266503934374d6d392f5351633049434651677a66633443595a6f545041737767534a4343554a556e41416f52484f41554f63415477626d564c5764476f482f2f5042386d6e4b71536341687344306b5950336a2f5974354c505165324b7663586d4776524863446e7078664c327a4f594a316d467772727957547a306164767631557434434a67663575684475446a3565556341556f61687264592f353665625257657261546a4d742f30305368335544746a674874514e48776352474f433938424a454145796d79636d596357774f70725467634236565a354a4b3554414a2b6658474c426d334644416d6e366f50506a5234724b43416f4a43616c326541695170327830767854504233414c4f3243526b776d447935576f687a4244775345464b527750626b6e4567674350422f696d77727963677858324e7a6f4d434868506b447771594d72397452635035714e724d5a486b566e4f6a524d57774c436372386f68425662314f4d6a784c774743766a54696b7273424f694136664e7943726d38563172503933695650707761452b674f305373576d506958422b6a696b64663653697a725435714b617378356a3841426248704654782b7646587039456e59516d4c7830326831515454726c36654471784c6e476a706f72786c334e4c336167457658645430576d456f737436343873514f5941654a53395137626655566f4d476e6a6f34415a64554d516b7535304d6344634d57634250767230537a625441464466764a71774c7a67787741546e43676e703477446c3641612b41783238336767686d6a2b766a37666545324b4242524d5733467a4f704c4f41446c3049736235353837682f55346747766b74357636305a31564c47384268596a627a527779515a656d77416436634352352f5846574c595a52494d70583339415230746a61474769477a4c5679687365354339524b433661693432707057504b694261674f7661596b386c4f3744616a657261624f5a5034364c627935774b6a77314843527837703973564d4f57477a622f7641316877695763366a6d334d765144546f67516b697149684a56306e42514254552b336f6b4b434644793957776665726b486a74786962377433784955517448786e49777478346d706732362f486677564e564462346f493952486d78355747656c52566c7274697734337a626f434c6178763436415a654233496c546b776f75656254723179324e6a5370487a3638574e466a487675707933713854466e33486f733249416b344a753564436f3842337750375650722f4647614b69472b542b762b54517149724f714d544c31566457563144646d63624f384b58427a3665736d5957594b5077444c35623546413161306877617048696f6d30722f634b616f71722b32372f58637253355577534d625141414141424a52553545726b4a6767673d3d\" alt=\"DeepWiki\" data-canonical-src=\"https://img.shields.io/badge/DeepWiki-openfga%2Fjava--sdk-blue.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAyCAYAAAAnWDnqAAAAAXNSR0IArs4c6QAAA05JREFUaEPtmUtyEzEQhtWTQyQLHNak2AB7ZnyXZMEjXMGeK/AIi+QuHrMnbChYY7MIh8g01fJoopFb0uhhEqqcbWTp06/uv1saEDv4O3n3dV60RfP947Mm9/SQc0ICFQgzfc4CYZoTPAswgSJCCUJUnAAoRHOAUOcATwbmVLWdGoH//PB8mnKqScAhsD0kYP3j/Yt5LPQe2KvcXmGvRHcDnpxfL2zOYJ1mFwrryWTz0advv1Ut4CJgf5uhDuDj5eUcAUoahrdY/56ebRWeraTjMt/00Sh3UDtjgHtQNHwcRGOC98BJEAEymycmYcWwOprTgcB6VZ5JK5TAJ+fXGLBm3FDAmn6oPPjR4rKCAoJCal2eAiQp2x0vxTPB3ALO2CRkwmDy5WohzBDwSEFKRwPbknEggCPB/imwrycgxX2NzoMCHhPkDwqYMr9tRcP5qNrMZHkVnOjRMWwLCcr8ohBVb1OMjxLwGCvjTikrsBOiA6fNyCrm8V1rP93iVPpwaE+gO0SsWmPiXB+jikdf6SizrT5qKasx5j8ABbHpFTx+vFXp9EnYQmLx02h1QTTrl6eDqxLnGjporxl3NL3agEvXdT0WmEost648sQOYAeJS9Q7bfUVoMGnjo4AZdUMQku50McDcMWcBPvr0SzbTAFDfvJqwLzgxwATnCgnp4wDl6Aa+Ax283gghmj+vj7feE2KBBRMW3FzOpLOADl0Isb5587h/U4gGvkt5v60Z1VLG8BhYjbzRwyQZemwAd6cCR5/XFWLYZRIMpX39AR0tjaGGiGzLVyhse5C9RKC6ai42ppWPKiBagOvaYk8lO7DajerabOZP46Lby5wKjw1HCRx7p9sVMOWGzb/vA1hwiWc6jm3MvQDTogQkiqIhJV0nBQBTU+3okKCFDy9WwferkHjtxib7t3xIUQtHxnIwtx4mpg26/HfwVNVDb4oI9RHmx5WGelRVlrtiw43zboCLaxv46AZeB3IlTkwouebTr1y2NjSpHz68WNFjHvupy3q8TFn3Hos2IAk4Ju5dCo8B3wP7VPr/FGaKiG+T+v+TQqIrOqMTL1VdWV1DdmcbO8KXBz6esmYWYKPwDL5b5FA1a0hwapHiom0r/cKaoqr+27/XcrS5UwSMbQAAAABJRU5ErkJggg==\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/openfga/java-sdk/releases\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/940f9ef629314843de3f66569c4de2579ad19b1dc1f5615918c67aed0e765442/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6f70656e6667612f6a6176612d73646b3f736f72743d73656d76657226636f6c6f723d677265656e\" alt=\"Release\" data-canonical-src=\"https://img.shields.io/github/v/release/openfga/java-sdk?sort=semver\u0026amp;color=green\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://app.fossa.com/projects/git%2Bgithub.com%2Fopenfga%2Fjava-sdk?ref=badge_shield\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/b0c2137ce1d791c6541e81c6e8aa3064a56640927060e49c15d2f8fb746d86ed/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532466f70656e6667612532466a6176612d73646b2e7376673f747970653d736869656c64\" alt=\"FOSSA Status\" data-canonical-src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenfga%2Fjava-sdk.svg?type=shield\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://securityscorecards.dev/viewer/?uri=github.com/openfga/java-sdk\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/28465fdf25353de1a37738657cd2c754d872144c13574f31ddde9e11816f066d/68747470733a2f2f6170692e736563757269747973636f726563617264732e6465762f70726f6a656374732f6769746875622e636f6d2f6f70656e6667612f6a6176612d73646b2f6261646765\" alt=\"OpenSSF Scorecard\" data-canonical-src=\"https://api.securityscorecards.dev/projects/github.com/openfga/java-sdk/badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://openfga.dev/community\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/1af28927cb33d2f059334afe01927fc1085e1b381c44f63c02fe35dc07d7ef41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736c61636b2d636e63665f2532336f70656e6667612d3430616262382e7376673f6c6f676f3d736c61636b\" alt=\"Join our community\" data-canonical-src=\"https://img.shields.io/badge/slack-cncf_%23openfga-40abb8.svg?logo=slack\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://x.com/openfga\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/a9d5708b766da823da87b88acf9d140387b651f36f98225610bca8bca3d2fd68/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6f70656e6667613f636f6c6f723d253233313739434630266c6f676f3d78267374796c653d666c61742d737175617265\" alt=\"X\" title=\"@openfga on X\" data-canonical-src=\"https://img.shields.io/twitter/follow/openfga?color=%23179CF0\u0026amp;logo=x\u0026amp;style=flat-square\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThis is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the \u003ca href=\"https://openfga.dev/api\" rel=\"nofollow\"\u003eOpenFGA API definition\u003c/a\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eTable of Contents\u003c/h2\u003e\u003ca id=\"user-content-table-of-contents\" class=\"anchor\" aria-label=\"Permalink: Table of Contents\" href=\"#table-of-contents\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#about\"\u003eAbout OpenFGA\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#resources\"\u003eResources\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#initializing-the-api-client\"\u003eInitializing the API Client\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#custom-headers\"\u003eCustom Headers\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#get-your-store-id\"\u003eGet your Store ID\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#calling-the-api\"\u003eCalling the API\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#stores\"\u003eStores\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#list-stores\"\u003eList All Stores\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#create-store\"\u003eCreate a Store\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#get-store\"\u003eGet a Store\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#delete-store\"\u003eDelete a Store\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#authorization-models\"\u003eAuthorization Models\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#read-authorization-models\"\u003eRead Authorization Models\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#write-authorization-model\"\u003eWrite Authorization Model\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#read-a-single-authorization-model\"\u003eRead a Single Authorization Model\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#read-the-latest-authorization-model\"\u003eRead the Latest Authorization Model\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#relationship-tuples\"\u003eRelationship Tuples\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#read-relationship-tuple-changes-watch\"\u003eRead Relationship Tuple Changes (Watch)\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#read-relationship-tuples\"\u003eRead Relationship Tuples\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#write-create-and-delete-relationship-tuples\"\u003eWrite (Create and Delete) Relationship Tuples\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#relationship-queries\"\u003eRelationship Queries\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#check\"\u003eCheck\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#batch-check\"\u003eBatch Check\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#expand\"\u003eExpand\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#list-objects\"\u003eList Objects\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#list-relations\"\u003eList Relations\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#list-users\"\u003eList Users\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#assertions\"\u003eAssertions\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#read-assertions\"\u003eRead Assertions\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#write-assertions\"\u003eWrite Assertions\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#calling-other-endpoints\"\u003eCalling Other Endpoints\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#retries\"\u003eRetries\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#api-endpoints\"\u003eAPI Endpoints\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#models\"\u003eModels\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#opentelemetry\"\u003eOpenTelemetry\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#issues\"\u003eIssues\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#pull-requests\"\u003ePull Requests\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAbout\u003c/h2\u003e\u003ca id=\"user-content-about\" class=\"anchor\" aria-label=\"Permalink: About\" href=\"#about\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev\" rel=\"nofollow\"\u003eOpenFGA\u003c/a\u003e is an open source Fine-Grained Authorization solution inspired by \u003ca href=\"https://research.google/pubs/pub48190/\" rel=\"nofollow\"\u003eGoogle's Zanzibar paper\u003c/a\u003e. It was created by the FGA team at \u003ca href=\"https://auth0.com\" rel=\"nofollow\"\u003eAuth0\u003c/a\u003e based on \u003ca href=\"https://fga.dev\" rel=\"nofollow\"\u003eAuth0 Fine-Grained Authorization (FGA)\u003c/a\u003e, available under \u003ca href=\"https://github.com/openfga/rfcs/blob/main/LICENSE\"\u003ea permissive license (Apache-2)\u003c/a\u003e and welcomes community contributions.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eOpenFGA is designed to make it easy for application builders to model their permission layer, and to add and integrate fine-grained authorization into their applications. OpenFGA’s design is optimized for reliability and low latency at a high scale.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eResources\u003c/h2\u003e\u003ca id=\"user-content-resources\" class=\"anchor\" aria-label=\"Permalink: Resources\" href=\"#resources\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://openfga.dev/docs\" rel=\"nofollow\"\u003eOpenFGA Documentation\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openfga.dev/api/service\" rel=\"nofollow\"\u003eOpenFGA API Documentation\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://x.com/openfga\" rel=\"nofollow\"\u003eX\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openfga.dev/community\" rel=\"nofollow\"\u003eOpenFGA Community\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://zanzibar.academy\" rel=\"nofollow\"\u003eZanzibar Academy\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://research.google/pubs/pub48190/\" rel=\"nofollow\"\u003eGoogle's Zanzibar Paper (2019)\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eInstallation\u003c/h2\u003e\u003ca id=\"user-content-installation\" class=\"anchor\" aria-label=\"Permalink: Installation\" href=\"#installation\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe OpenFGA Java SDK is available on \u003ca href=\"https://central.sonatype.com/\" rel=\"nofollow\"\u003eMaven Central\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe OpenFGA Java SDK currently supports \u003cstrong\u003eJava 17\u003c/strong\u003e as the minimum JDK version.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIt can be used with the following:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eGradle (Groovy)\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cdiv class=\"highlight highlight-source-groovy notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"implementation 'dev.openfga:openfga-sdk:0.10.0'\"\u003e\u003cpre\u003eimplementation \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e'\u003c/span\u003edev.openfga:openfga-sdk:0.10.0\u003cspan class=\"pl-pds\"\u003e'\u003c/span\u003e\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eGradle (Kotlin)\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cdiv class=\"highlight highlight-source-kotlin notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"implementation(\u0026quot;dev.openfga:openfga-sdk:0.10.0\u0026quot;)\"\u003e\u003cpre\u003eimplementation(\u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003edev.openfga:openfga-sdk:0.10.0\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e)\u003c/pre\u003e\u003c/div\u003e\n\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eApache Maven\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cdiv class=\"highlight highlight-text-xml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"\u0026lt;dependency\u0026gt;\n    \u0026lt;groupId\u0026gt;dev.openfga\u0026lt;/groupId\u0026gt;\n    \u0026lt;artifactId\u0026gt;openfga-sdk\u0026lt;/artifactId\u0026gt;\n    \u0026lt;version\u0026gt;0.10.0\u0026lt;/version\u0026gt;\n\u0026lt;/dependency\u0026gt;\"\u003e\u003cpre\u003e\u0026lt;\u003cspan class=\"pl-ent\"\u003edependency\u003c/span\u003e\u0026gt;\n    \u0026lt;\u003cspan class=\"pl-ent\"\u003egroupId\u003c/span\u003e\u0026gt;dev.openfga\u0026lt;/\u003cspan class=\"pl-ent\"\u003egroupId\u003c/span\u003e\u0026gt;\n    \u0026lt;\u003cspan class=\"pl-ent\"\u003eartifactId\u003c/span\u003e\u0026gt;openfga-sdk\u0026lt;/\u003cspan class=\"pl-ent\"\u003eartifactId\u003c/span\u003e\u0026gt;\n    \u0026lt;\u003cspan class=\"pl-ent\"\u003eversion\u003c/span\u003e\u0026gt;0.10.0\u0026lt;/\u003cspan class=\"pl-ent\"\u003eversion\u003c/span\u003e\u0026gt;\n\u0026lt;/\u003cspan class=\"pl-ent\"\u003edependency\u003c/span\u003e\u0026gt;\u003c/pre\u003e\u003c/div\u003e\n\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eIvy\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cdiv class=\"highlight highlight-text-xml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"\u0026lt;dependency org=\u0026quot;dev.openfga\u0026quot; name=\u0026quot;openfga-sdk\u0026quot; rev=\u0026quot;0.10.0\u0026quot;/\u0026gt;\"\u003e\u003cpre\u003e\u0026lt;\u003cspan class=\"pl-ent\"\u003edependency\u003c/span\u003e \u003cspan class=\"pl-e\"\u003eorg\u003c/span\u003e=\u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003edev.openfga\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-e\"\u003ename\u003c/span\u003e=\u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eopenfga-sdk\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-e\"\u003erev\u003c/span\u003e=\u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e0.10.0\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e/\u0026gt;\u003c/pre\u003e\u003c/div\u003e\n\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eSBT\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cdiv class=\"highlight highlight-source-scala notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"libraryDependencies += \u0026quot;dev.openfga\u0026quot; % \u0026quot;openfga-sdk\u0026quot; % \u0026quot;0.10.0\u0026quot;\"\u003e\u003cpre\u003elibraryDependencies \u003cspan class=\"pl-k\"\u003e+=\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003edev.openfga\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-k\"\u003e%\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eopenfga-sdk\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-k\"\u003e%\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e0.10.0\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eLeiningen\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cdiv class=\"highlight highlight-source-clojure notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"[dev.openfga/openfga-sdk \u0026quot;0.10.0\u0026quot;]\"\u003e\u003cpre\u003e[dev.openfga/openfga-sdk \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e0.10.0\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e]\u003c/pre\u003e\u003c/div\u003e\n\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGetting Started\u003c/h2\u003e\u003ca id=\"user-content-getting-started\" class=\"anchor\" aria-label=\"Permalink: Getting Started\" href=\"#getting-started\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eInitializing the API Client\u003c/h3\u003e\u003ca id=\"user-content-initializing-the-api-client\" class=\"anchor\" aria-label=\"Permalink: Initializing the API Client\" href=\"#initializing-the-api-client\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/docs/getting-started/setup-sdk-client\" rel=\"nofollow\"\u003eLearn how to initialize your SDK\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eWe strongly recommend you initialize the \u003ccode\u003eOpenFgaClient\u003c/code\u003e only once and then re-use it throughout your app, otherwise you will incur the cost of having to re-initialize multiple times or at every request, the cost of reduced connection pooling and re-use, and would be particularly costly in the client credentials flow, as that flow will be preformed on every request.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eThe \u003ccode\u003eClient\u003c/code\u003e will by default retry API requests up to 3 times. Rate limiting (429) errors are always retried. Server errors (5xx) are retried for all operations, with delay calculation using \u003ccode\u003eRetry-After\u003c/code\u003e headers when provided or exponential backoff as fallback.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eNo Credentials\u003c/h4\u003e\u003ca id=\"user-content-no-credentials\" class=\"anchor\" aria-label=\"Permalink: No Credentials\" href=\"#no-credentials\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import com.fasterxml.jackson.databind.ObjectMapper;\nimport dev.openfga.sdk.api.client.OpenFgaClient;\nimport dev.openfga.sdk.api.configuration.ClientConfiguration;\nimport java.net.http.HttpClient;\n\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        var config = new ClientConfiguration()\n                .apiUrl(System.getenv(\u0026quot;FGA_API_URL\u0026quot;)) // If not specified, will default to \u0026quot;http://localhost:8080\u0026quot;\n                .storeId(System.getenv(\u0026quot;FGA_STORE_ID\u0026quot;)) // Not required when calling createStore() or listStores()\n                .authorizationModelId(System.getenv(\u0026quot;FGA_MODEL_ID\u0026quot;)); // Optional, can be overridden per request\n\n        var fgaClient = new OpenFgaClient(config);\n        var response = fgaClient.readAuthorizationModels().get();\n    }\n}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ecom\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003efasterxml\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ejackson\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003edatabind\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eObjectMapper\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eclient\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOpenFgaClient\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eClientConfiguration\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ejava\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003enet\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ehttp\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eHttpClient\u003c/span\u003e;\n\n\u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eExample\u003c/span\u003e {\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003estatic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003evoid\u003c/span\u003e \u003cspan class=\"pl-en\"\u003emain\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e[] \u003cspan class=\"pl-s1\"\u003eargs\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003ethrows\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eException\u003c/span\u003e {\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientConfiguration\u003c/span\u003e()\n                .\u003cspan class=\"pl-en\"\u003eapiUrl\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_URL\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// If not specified, will default to \"http://localhost:8080\"\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003estoreId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_STORE_ID\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Not required when calling createStore() or listStores()\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_MODEL_ID\"\u003c/span\u003e)); \u003cspan class=\"pl-c\"\u003e// Optional, can be overridden per request\u003c/span\u003e\n\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eOpenFgaClient\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e);\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ereadAuthorizationModels\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n    }\n}\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAPI Token\u003c/h4\u003e\u003ca id=\"user-content-api-token\" class=\"anchor\" aria-label=\"Permalink: API Token\" href=\"#api-token\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import com.fasterxml.jackson.databind.ObjectMapper;\nimport dev.openfga.sdk.api.client.OpenFgaClient;\nimport dev.openfga.sdk.api.configuration.ApiToken;\nimport dev.openfga.sdk.api.configuration.ClientConfiguration;\nimport dev.openfga.sdk.api.configuration.Credentials;\nimport java.net.http.HttpClient;\n\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        var config = new ClientConfiguration()\n                .apiUrl(System.getenv(\u0026quot;FGA_API_URL\u0026quot;)) // If not specified, will default to \u0026quot;http://localhost:8080\u0026quot;\n                .storeId(System.getenv(\u0026quot;FGA_STORE_ID\u0026quot;)) // Not required when calling createStore() or listStores()\n                .authorizationModelId(System.getenv(\u0026quot;FGA_MODEL_ID\u0026quot;)) // Optional, can be overridden per request\n                .credentials(new Credentials(\n                    new ApiToken(System.getenv(\u0026quot;FGA_API_TOKEN\u0026quot;)) // will be passed as the \u0026quot;Authorization: Bearer ${ApiToken}\u0026quot; request header\n                ));\n\n        var fgaClient = new OpenFgaClient(config);\n        var response = fgaClient.readAuthorizationModels().get();\n    }\n}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ecom\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003efasterxml\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ejackson\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003edatabind\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eObjectMapper\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eclient\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOpenFgaClient\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eApiToken\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eClientConfiguration\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eCredentials\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ejava\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003enet\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ehttp\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eHttpClient\u003c/span\u003e;\n\n\u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eExample\u003c/span\u003e {\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003estatic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003evoid\u003c/span\u003e \u003cspan class=\"pl-en\"\u003emain\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e[] \u003cspan class=\"pl-s1\"\u003eargs\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003ethrows\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eException\u003c/span\u003e {\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientConfiguration\u003c/span\u003e()\n                .\u003cspan class=\"pl-en\"\u003eapiUrl\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_URL\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// If not specified, will default to \"http://localhost:8080\"\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003estoreId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_STORE_ID\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Not required when calling createStore() or listStores()\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_MODEL_ID\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Optional, can be overridden per request\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003ecredentials\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eCredentials\u003c/span\u003e(\n                    \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eApiToken\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_TOKEN\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// will be passed as the \"Authorization: Bearer ${ApiToken}\" request header\u003c/span\u003e\n                ));\n\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eOpenFgaClient\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e);\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ereadAuthorizationModels\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n    }\n}\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eClient Credentials\u003c/h4\u003e\u003ca id=\"user-content-client-credentials\" class=\"anchor\" aria-label=\"Permalink: Client Credentials\" href=\"#client-credentials\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import com.fasterxml.jackson.databind.ObjectMapper;\nimport dev.openfga.sdk.api.client.OpenFgaClient;\nimport dev.openfga.sdk.api.configuration.ClientConfiguration;\nimport dev.openfga.sdk.api.configuration.ClientCredentials;\nimport dev.openfga.sdk.api.configuration.Credentials;\nimport java.net.http.HttpClient;\n\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        var config = new ClientConfiguration()\n                .apiUrl(System.getenv(\u0026quot;FGA_API_URL\u0026quot;)) // If not specified, will default to \u0026quot;http://localhost:8080\u0026quot;\n                .storeId(System.getenv(\u0026quot;FGA_STORE_ID\u0026quot;)) // Not required when calling createStore() or listStores()\n                .authorizationModelId(System.getenv(\u0026quot;FGA_MODEL_ID\u0026quot;)) // Optional, can be overridden per request\n                .credentials(new Credentials(\n                    new ClientCredentials()\n                            .apiTokenIssuer(System.getenv(\u0026quot;FGA_API_TOKEN_ISSUER\u0026quot;)) // Full token endpoint URL, e.g. \u0026quot;https://issuer.fga.example/oauth/token\u0026quot;\n                            .apiAudience(System.getenv(\u0026quot;FGA_API_AUDIENCE\u0026quot;))\n                            .clientId(System.getenv(\u0026quot;FGA_CLIENT_ID\u0026quot;))\n                            .clientSecret(System.getenv(\u0026quot;FGA_CLIENT_SECRET\u0026quot;))\n                ));\n\n        var fgaClient = new OpenFgaClient(config);\n        var response = fgaClient.readAuthorizationModels().get();\n    }\n}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ecom\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003efasterxml\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ejackson\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003edatabind\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eObjectMapper\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eclient\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOpenFgaClient\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eClientConfiguration\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eClientCredentials\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eCredentials\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ejava\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003enet\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ehttp\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eHttpClient\u003c/span\u003e;\n\n\u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eExample\u003c/span\u003e {\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003estatic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003evoid\u003c/span\u003e \u003cspan class=\"pl-en\"\u003emain\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e[] \u003cspan class=\"pl-s1\"\u003eargs\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003ethrows\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eException\u003c/span\u003e {\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientConfiguration\u003c/span\u003e()\n                .\u003cspan class=\"pl-en\"\u003eapiUrl\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_URL\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// If not specified, will default to \"http://localhost:8080\"\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003estoreId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_STORE_ID\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Not required when calling createStore() or listStores()\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_MODEL_ID\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Optional, can be overridden per request\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003ecredentials\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eCredentials\u003c/span\u003e(\n                    \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientCredentials\u003c/span\u003e()\n                            .\u003cspan class=\"pl-en\"\u003eapiTokenIssuer\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_TOKEN_ISSUER\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Full token endpoint URL, e.g. \"https://issuer.fga.example/oauth/token\"\u003c/span\u003e\n                            .\u003cspan class=\"pl-en\"\u003eapiAudience\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_AUDIENCE\"\u003c/span\u003e))\n                            .\u003cspan class=\"pl-en\"\u003eclientId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_CLIENT_ID\"\u003c/span\u003e))\n                            .\u003cspan class=\"pl-en\"\u003eclientSecret\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_CLIENT_SECRET\"\u003c/span\u003e))\n                ));\n\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eOpenFgaClient\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e);\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ereadAuthorizationModels\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n    }\n}\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eOAuth2 Client Credentials\u003c/h4\u003e\u003ca id=\"user-content-oauth2-client-credentials\" class=\"anchor\" aria-label=\"Permalink: OAuth2 Client Credentials\" href=\"#oauth2-client-credentials\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe SDK supports standard OAuth2 client credentials flow for any OAuth2-compliant provider (e.g. Keycloak, Okta). The \u003ccode\u003eapiAudience\u003c/code\u003e parameter is optional, and an optional \u003ccode\u003escopes\u003c/code\u003e parameter can be provided as a space-separated string. The \u003ccode\u003eapiTokenIssuer\u003c/code\u003e can be set to either a hostname (e.g. \u003ccode\u003eissuer.example.com\u003c/code\u003e, which defaults to \u003ccode\u003ehttps\u003c/code\u003e and appends \u003ccode\u003e/oauth/token\u003c/code\u003e) or a full token endpoint URL (e.g. \u003ccode\u003ehttps://mykeycloak.fga.example/realms/myrealm/protocol/openid-connect/token\u003c/code\u003e).\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import com.fasterxml.jackson.databind.ObjectMapper;\nimport dev.openfga.sdk.api.client.OpenFgaClient;\nimport dev.openfga.sdk.api.configuration.ClientConfiguration;\nimport dev.openfga.sdk.api.configuration.ClientCredentials;\nimport dev.openfga.sdk.api.configuration.Credentials;\nimport java.net.http.HttpClient;\n\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        var config = new ClientConfiguration()\n                .apiUrl(System.getenv(\u0026quot;FGA_API_URL\u0026quot;)) // If not specified, will default to \u0026quot;http://localhost:8080\u0026quot;\n                .storeId(System.getenv(\u0026quot;FGA_STORE_ID\u0026quot;)) // Not required when calling createStore() or listStores()\n                .authorizationModelId(System.getenv(\u0026quot;FGA_MODEL_ID\u0026quot;)) // Optional, can be overridden per request\n                .credentials(new Credentials(\n                    new ClientCredentials()\n                            .apiTokenIssuer(System.getenv(\u0026quot;FGA_API_TOKEN_ISSUER\u0026quot;)) // Full token endpoint URL, e.g. \u0026quot;https://mykeycloak.fga.example/realms/myrealm/protocol/openid-connect/token\u0026quot;\n                            .scopes(System.getenv(\u0026quot;FGA_API_SCOPES\u0026quot;)) // Optional, space-separated scopes\n                            .clientId(System.getenv(\u0026quot;FGA_CLIENT_ID\u0026quot;))\n                            .clientSecret(System.getenv(\u0026quot;FGA_CLIENT_SECRET\u0026quot;))\n                ));\n\n        var fgaClient = new OpenFgaClient(config);\n        var response = fgaClient.readAuthorizationModels().get();\n    }\n}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ecom\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003efasterxml\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ejackson\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003edatabind\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eObjectMapper\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eclient\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOpenFgaClient\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eClientConfiguration\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eClientCredentials\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eCredentials\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ejava\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003enet\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ehttp\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eHttpClient\u003c/span\u003e;\n\n\u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eExample\u003c/span\u003e {\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003estatic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003evoid\u003c/span\u003e \u003cspan class=\"pl-en\"\u003emain\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e[] \u003cspan class=\"pl-s1\"\u003eargs\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003ethrows\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eException\u003c/span\u003e {\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientConfiguration\u003c/span\u003e()\n                .\u003cspan class=\"pl-en\"\u003eapiUrl\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_URL\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// If not specified, will default to \"http://localhost:8080\"\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003estoreId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_STORE_ID\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Not required when calling createStore() or listStores()\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_MODEL_ID\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Optional, can be overridden per request\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003ecredentials\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eCredentials\u003c/span\u003e(\n                    \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientCredentials\u003c/span\u003e()\n                            .\u003cspan class=\"pl-en\"\u003eapiTokenIssuer\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_TOKEN_ISSUER\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Full token endpoint URL, e.g. \"https://mykeycloak.fga.example/realms/myrealm/protocol/openid-connect/token\"\u003c/span\u003e\n                            .\u003cspan class=\"pl-en\"\u003escopes\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_SCOPES\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Optional, space-separated scopes\u003c/span\u003e\n                            .\u003cspan class=\"pl-en\"\u003eclientId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_CLIENT_ID\"\u003c/span\u003e))\n                            .\u003cspan class=\"pl-en\"\u003eclientSecret\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_CLIENT_SECRET\"\u003c/span\u003e))\n                ));\n\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eOpenFgaClient\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e);\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ereadAuthorizationModels\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n    }\n}\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCustom Headers\u003c/h3\u003e\u003ca id=\"user-content-custom-headers\" class=\"anchor\" aria-label=\"Permalink: Custom Headers\" href=\"#custom-headers\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDefault Headers\u003c/h4\u003e\u003ca id=\"user-content-default-headers\" class=\"anchor\" aria-label=\"Permalink: Default Headers\" href=\"#default-headers\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou can set default headers to be sent with every request by using the \u003ccode\u003edefaultHeaders\u003c/code\u003e property of the \u003ccode\u003eClientConfiguration\u003c/code\u003e class.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import com.fasterxml.jackson.databind.ObjectMapper;\nimport dev.openfga.sdk.api.client.OpenFgaClient;\nimport dev.openfga.sdk.api.configuration.ClientConfiguration;\n\nimport java.net.http.HttpClient;\nimport java.util.Map;\n\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        var config = new ClientConfiguration()\n                .apiUrl(System.getenv(\u0026quot;FGA_API_URL\u0026quot;))\n                .storeId(System.getenv(\u0026quot;FGA_STORE_ID\u0026quot;))\n                .authorizationModelId(System.getenv(\u0026quot;FGA_MODEL_ID\u0026quot;))\n                .defaultHeaders(Map.of(\n                        \u0026quot;X-Custom-Header\u0026quot;, \u0026quot;default-value\u0026quot;,\n                        \u0026quot;X-Request-Source\u0026quot;, \u0026quot;my-app\u0026quot;\n                ));\n\n        var fgaClient = new OpenFgaClient(config);\n    }\n}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ecom\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003efasterxml\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ejackson\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003edatabind\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eObjectMapper\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eclient\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOpenFgaClient\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eClientConfiguration\u003c/span\u003e;\n\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ejava\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003enet\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ehttp\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eHttpClient\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ejava\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eutil\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eMap\u003c/span\u003e;\n\n\u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eExample\u003c/span\u003e {\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003estatic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003evoid\u003c/span\u003e \u003cspan class=\"pl-en\"\u003emain\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e[] \u003cspan class=\"pl-s1\"\u003eargs\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003ethrows\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eException\u003c/span\u003e {\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientConfiguration\u003c/span\u003e()\n                .\u003cspan class=\"pl-en\"\u003eapiUrl\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_URL\"\u003c/span\u003e))\n                .\u003cspan class=\"pl-en\"\u003estoreId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_STORE_ID\"\u003c/span\u003e))\n                .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_MODEL_ID\"\u003c/span\u003e))\n                .\u003cspan class=\"pl-en\"\u003edefaultHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n                        \u003cspan class=\"pl-s\"\u003e\"X-Custom-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"default-value\"\u003c/span\u003e,\n                        \u003cspan class=\"pl-s\"\u003e\"X-Request-Source\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"my-app\"\u003c/span\u003e\n                ));\n\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eOpenFgaClient\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e);\n    }\n}\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ePer-request Headers\u003c/h4\u003e\u003ca id=\"user-content-per-request-headers\" class=\"anchor\" aria-label=\"Permalink: Per-request Headers\" href=\"#per-request-headers\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou can set custom headers to be sent with a specific request by using the \u003ccode\u003eadditionalHeaders\u003c/code\u003e property of the options classes (e.g. \u003ccode\u003eClientReadOptions\u003c/code\u003e, \u003ccode\u003eClientWriteOptions\u003c/code\u003e, etc.).\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import com.fasterxml.jackson.databind.ObjectMapper;\nimport dev.openfga.sdk.api.client.OpenFgaClient;\nimport dev.openfga.sdk.api.configuration.ClientConfiguration;\nimport java.net.http.HttpClient;\n\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        var config = new ClientConfiguration()\n                .apiUrl(System.getenv(\u0026quot;FGA_API_URL\u0026quot;))\n                .storeId(System.getenv(\u0026quot;FGA_STORE_ID\u0026quot;))\n                .authorizationModelId(System.getenv(\u0026quot;FGA_MODEL_ID\u0026quot;))\n                .defaultHeaders(Map.of(\n                        \u0026quot;X-Custom-Header\u0026quot;, \u0026quot;default-value\u0026quot;,\n                        \u0026quot;X-Request-Source\u0026quot;, \u0026quot;my-app\u0026quot;\n                ));\n\n        var fgaClient = new OpenFgaClient(config);\n        var options = new ClientReadOptions()\n                    .additionalHeaders(Map.of(\n                            \u0026quot;X-Request-Id\u0026quot;, \u0026quot;123e4567-e89b-12d3-a456-426614174000\u0026quot;,\n                            \u0026quot;X-Custom-Header\u0026quot;, \u0026quot;overridden-value\u0026quot; // this will override the default value for this request only\n                    )\n                );\n        var response = fgaClient.read(request, options).get();\n    }\n}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ecom\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003efasterxml\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ejackson\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003edatabind\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eObjectMapper\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eclient\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOpenFgaClient\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eClientConfiguration\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ejava\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003enet\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ehttp\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eHttpClient\u003c/span\u003e;\n\n\u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eExample\u003c/span\u003e {\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003estatic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003evoid\u003c/span\u003e \u003cspan class=\"pl-en\"\u003emain\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e[] \u003cspan class=\"pl-s1\"\u003eargs\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003ethrows\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eException\u003c/span\u003e {\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientConfiguration\u003c/span\u003e()\n                .\u003cspan class=\"pl-en\"\u003eapiUrl\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_URL\"\u003c/span\u003e))\n                .\u003cspan class=\"pl-en\"\u003estoreId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_STORE_ID\"\u003c/span\u003e))\n                .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_MODEL_ID\"\u003c/span\u003e))\n                .\u003cspan class=\"pl-en\"\u003edefaultHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n                        \u003cspan class=\"pl-s\"\u003e\"X-Custom-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"default-value\"\u003c/span\u003e,\n                        \u003cspan class=\"pl-s\"\u003e\"X-Request-Source\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"my-app\"\u003c/span\u003e\n                ));\n\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eOpenFgaClient\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e);\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadOptions\u003c/span\u003e()\n                    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n                            \u003cspan class=\"pl-s\"\u003e\"X-Request-Id\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"123e4567-e89b-12d3-a456-426614174000\"\u003c/span\u003e,\n                            \u003cspan class=\"pl-s\"\u003e\"X-Custom-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"overridden-value\"\u003c/span\u003e \u003cspan class=\"pl-c\"\u003e// this will override the default value for this request only\u003c/span\u003e\n                    )\n                );\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eread\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n    }\n}\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGet your Store ID\u003c/h3\u003e\u003ca id=\"user-content-get-your-store-id\" class=\"anchor\" aria-label=\"Permalink: Get your Store ID\" href=\"#get-your-store-id\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou need your store id to call the OpenFGA API (unless it is to call the \u003ca href=\"#create-store\"\u003eCreateStore\u003c/a\u003e or \u003ca href=\"#list-stores\"\u003eListStores\u003c/a\u003e methods).\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf your server is configured with \u003ca href=\"https://openfga.dev/docs/getting-started/setup-openfga#configuring-authentication\" rel=\"nofollow\"\u003eauthentication enabled\u003c/a\u003e, you also need to have your credentials ready.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCalling the API\u003c/h3\u003e\u003ca id=\"user-content-calling-the-api\" class=\"anchor\" aria-label=\"Permalink: Calling the API\" href=\"#calling-the-api\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eStores\u003c/h4\u003e\u003ca id=\"user-content-stores\" class=\"anchor\" aria-label=\"Permalink: Stores\" href=\"#stores\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eList Stores\u003c/h5\u003e\u003ca id=\"user-content-list-stores\" class=\"anchor\" aria-label=\"Permalink: List Stores\" href=\"#list-stores\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eGet a paginated list of stores.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Stores/ListStores\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientListStoresOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientListStoresOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var options = new ClientListStoresOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    .pageSize(10)\n    .continuationToken(\u0026quot;...\u0026quot;);\nvar stores = fgaClient.listStores(options);\n\n// stores = [{ \u0026quot;id\u0026quot;: \u0026quot;01FQH7V8BEG3GPQW93KTRFR8JB\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;FGA Demo Store\u0026quot;, \u0026quot;created_at\u0026quot;: \u0026quot;2022-01-01T00:00:00.000Z\u0026quot;, \u0026quot;updated_at\u0026quot;: \u0026quot;2022-01-01T00:00:00.000Z\u0026quot; }]\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientListStoresOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    .\u003cspan class=\"pl-en\"\u003epageSize\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003e10\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003econtinuationToken\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"...\"\u003c/span\u003e);\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003estores\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003elistStores\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e);\n\n\u003cspan class=\"pl-c\"\u003e// stores = [{ \"id\": \"01FQH7V8BEG3GPQW93KTRFR8JB\", \"name\": \"FGA Demo Store\", \"created_at\": \"2022-01-01T00:00:00.000Z\", \"updated_at\": \"2022-01-01T00:00:00.000Z\" }]\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCreate Store\u003c/h5\u003e\u003ca id=\"user-content-create-store\" class=\"anchor\" aria-label=\"Permalink: Create Store\" href=\"#create-store\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eInitialize a store.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Stores/CreateStore\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientCreateStoreOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientCreateStoreOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var request = new CreateStoreRequest().name(\u0026quot;FGA Demo\u0026quot;);\nvar options = new ClientCreateStoreOptions().additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;));\nvar store = fgaClient.createStore(request, options).get();\n\n// store.getId() = \u0026quot;01FQH7V8BEG3GPQW93KTRFR8JB\u0026quot;\n\n// store the store.getId() in database\n\n// update the storeId of the client instance\nfgaClient.setStoreId(store.getId());\n\n// continue calling the API normally\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eCreateStoreRequest\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003ename\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA Demo\"\u003c/span\u003e);\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientCreateStoreOptions\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e));\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003estore\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ecreateStore\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// store.getId() = \"01FQH7V8BEG3GPQW93KTRFR8JB\"\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e// store the store.getId() in database\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e// update the storeId of the client instance\u003c/span\u003e\n\u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003esetStoreId\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003estore\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetId\u003c/span\u003e());\n\n\u003cspan class=\"pl-c\"\u003e// continue calling the API normally\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGet Store\u003c/h5\u003e\u003ca id=\"user-content-get-store\" class=\"anchor\" aria-label=\"Permalink: Get Store\" href=\"#get-store\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eGet information about the current store.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Stores/GetStore\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eRequires a client initialized with a storeId\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientGetStoreOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientGetStoreOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var options = new ClientGetStoreOptions().additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;));\nvar store = fgaClient.getStore(options).get();\n\n// store = { \u0026quot;id\u0026quot;: \u0026quot;01FQH7V8BEG3GPQW93KTRFR8JB\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;FGA Demo Store\u0026quot;, \u0026quot;created_at\u0026quot;: \u0026quot;2022-01-01T00:00:00.000Z\u0026quot;, \u0026quot;updated_at\u0026quot;: \u0026quot;2022-01-01T00:00:00.000Z\u0026quot; }\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientGetStoreOptions\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e));\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003estore\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetStore\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// store = { \"id\": \"01FQH7V8BEG3GPQW93KTRFR8JB\", \"name\": \"FGA Demo Store\", \"created_at\": \"2022-01-01T00:00:00.000Z\", \"updated_at\": \"2022-01-01T00:00:00.000Z\" }\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDelete Store\u003c/h5\u003e\u003ca id=\"user-content-delete-store\" class=\"anchor\" aria-label=\"Permalink: Delete Store\" href=\"#delete-store\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eDelete a store.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Stores/DeleteStore\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eRequires a client initialized with a storeId\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientDeleteStoreOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientDeleteStoreOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var options = new ClientDeleteStoreOptions().additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;));\nvar store = fgaClient.deleteStore(options).get();\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientDeleteStoreOptions\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e));\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003estore\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003edeleteStore\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAuthorization Models\u003c/h4\u003e\u003ca id=\"user-content-authorization-models\" class=\"anchor\" aria-label=\"Permalink: Authorization Models\" href=\"#authorization-models\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRead Authorization Models\u003c/h5\u003e\u003ca id=\"user-content-read-authorization-models\" class=\"anchor\" aria-label=\"Permalink: Read Authorization Models\" href=\"#read-authorization-models\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eRead all authorization models in the store.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModels\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientReadAuthorizationModelsOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientReadAuthorizationModelsOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var options = new ClientReadAuthorizationModelsOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    .pageSize(10)\n    .continuationToken(\u0026quot;...\u0026quot;);\nvar response = fgaClient.readAuthorizationModels(options).get();\n\n// response.getAuthorizationModels() = [\n// { id: \u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;, schemaVersion: \u0026quot;1.1\u0026quot;, typeDefinitions: [...] },\n// { id: \u0026quot;01GXSBM5PVYHCJNRNKXMB4QZTW\u0026quot;, schemaVersion: \u0026quot;1.1\u0026quot;, typeDefinitions: [...] }];\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadAuthorizationModelsOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    .\u003cspan class=\"pl-en\"\u003epageSize\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003e10\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003econtinuationToken\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"...\"\u003c/span\u003e);\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ereadAuthorizationModels\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// response.getAuthorizationModels() = [\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e// { id: \"01GXSA8YR785C4FYS3C0RTG7B1\", schemaVersion: \"1.1\", typeDefinitions: [...] },\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e// { id: \"01GXSBM5PVYHCJNRNKXMB4QZTW\", schemaVersion: \"1.1\", typeDefinitions: [...] }];\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eWrite Authorization Model\u003c/h5\u003e\u003ca id=\"user-content-write-authorization-model\" class=\"anchor\" aria-label=\"Permalink: Write Authorization Model\" href=\"#write-authorization-model\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCreate a new authorization model.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Authorization%20Models/WriteAuthorizationModel\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eNote: To learn how to build your authorization model, check the Docs at \u003ca href=\"https://openfga.dev/docs\" rel=\"nofollow\"\u003ehttps://openfga.dev/docs\u003c/a\u003e.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eLearn more about \u003ca href=\"https://openfga.dev/docs/configuration-language\" rel=\"nofollow\"\u003ethe OpenFGA configuration language\u003c/a\u003e.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eYou can use the OpenFGA \u003ca href=\"https://github.com/openfga/cli\"\u003eCLI\u003c/a\u003e or \u003ca href=\"https://github.com/openfga/syntax-transformer\"\u003eSyntax Transformer\u003c/a\u003e to convert between the OpenFGA DSL and the JSON authorization model.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientWriteAuthorizationModelOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientWriteAuthorizationModelOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"\nvar request = new WriteAuthorizationModelRequest()\n    .schemaVersion(\u0026quot;1.1\u0026quot;)\n    .typeDefinitions(List.of(\n        new TypeDefinition().type(\u0026quot;user\u0026quot;).relations(Map.of()),\n        new TypeDefinition()\n            .type(\u0026quot;document\u0026quot;)\n            .relations(Map.of(\n                \u0026quot;writer\u0026quot;, new Userset(),\n                \u0026quot;viewer\u0026quot;, new Userset().union(new Usersets()\n                    .child(List.of(\n                        new Userset(),\n                        new Userset().computedUserset(new ObjectRelation().relation(\u0026quot;writer\u0026quot;))\n                    ))\n                )\n            ))\n            .metadata(new Metadata()\n                .relations(Map.of(\n                    \u0026quot;writer\u0026quot;, new RelationMetadata().directlyRelatedUserTypes(\n                        List.of(new RelationReference().type(\u0026quot;user\u0026quot;))\n                    ),\n                    \u0026quot;viewer\u0026quot;, new RelationMetadata().directlyRelatedUserTypes(\n                        List.of(new RelationReference().type(\u0026quot;user\u0026quot;))\n                    )\n                ))\n            )\n    ));\nvar options = new ClientWriteAuthorizationModelOptions().additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;));\n\nvar response = fgaClient.writeAuthorizationModel(request, options).get();\n\n// response.getAuthorizationModelId() = \u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eWriteAuthorizationModelRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eschemaVersion\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"1.1\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003etypeDefinitions\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eTypeDefinition\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003etype\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user\"\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003erelations\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e()),\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eTypeDefinition\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003etype\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelations\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n                \u003cspan class=\"pl-s\"\u003e\"writer\"\u003c/span\u003e, \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eUserset\u003c/span\u003e(),\n                \u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e, \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eUserset\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eunion\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eUsersets\u003c/span\u003e()\n                    .\u003cspan class=\"pl-en\"\u003echild\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n                        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eUserset\u003c/span\u003e(),\n                        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eUserset\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003ecomputedUserset\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eObjectRelation\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"writer\"\u003c/span\u003e))\n                    ))\n                )\n            ))\n            .\u003cspan class=\"pl-en\"\u003emetadata\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eMetadata\u003c/span\u003e()\n                .\u003cspan class=\"pl-en\"\u003erelations\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n                    \u003cspan class=\"pl-s\"\u003e\"writer\"\u003c/span\u003e, \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eRelationMetadata\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003edirectlyRelatedUserTypes\u003c/span\u003e(\n                        \u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eRelationReference\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003etype\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user\"\u003c/span\u003e))\n                    ),\n                    \u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e, \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eRelationMetadata\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003edirectlyRelatedUserTypes\u003c/span\u003e(\n                        \u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eRelationReference\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003etype\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user\"\u003c/span\u003e))\n                    )\n                ))\n            )\n    ));\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientWriteAuthorizationModelOptions\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e));\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ewriteAuthorizationModel\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// response.getAuthorizationModelId() = \"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRead a Single Authorization Model\u003c/h4\u003e\u003ca id=\"user-content-read-a-single-authorization-model\" class=\"anchor\" aria-label=\"Permalink: Read a Single Authorization Model\" href=\"#read-a-single-authorization-model\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eRead a particular authorization model.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModel\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientReadAuthorizationModelOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientReadAuthorizationModelOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var options = new ClientReadAuthorizationModelOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;);\n\nvar response = fgaClient.readAuthorizationModel(options).get();\n\n// response.getAuthorizationModel().getId() = \u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;\n// response.getAuthorizationModel().getSchemaVersion() = \u0026quot;1.1\u0026quot;\n// response.getAuthorizationModel().getTypeDefinitions() = [{ \u0026quot;type\u0026quot;: \u0026quot;document\u0026quot;, \u0026quot;relations\u0026quot;: { ... } }, { \u0026quot;type\u0026quot;: \u0026quot;user\u0026quot;, \u0026quot;relations\u0026quot;: { ... }}]\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadAuthorizationModelOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    \u003cspan class=\"pl-c\"\u003e// You can rely on the model id set in the configuration or override it for this specific request\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ereadAuthorizationModel\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// response.getAuthorizationModel().getId() = \"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e// response.getAuthorizationModel().getSchemaVersion() = \"1.1\"\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e// response.getAuthorizationModel().getTypeDefinitions() = [{ \"type\": \"document\", \"relations\": { ... } }, { \"type\": \"user\", \"relations\": { ... }}]\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRead the Latest Authorization Model\u003c/h5\u003e\u003ca id=\"user-content-read-the-latest-authorization-model\" class=\"anchor\" aria-label=\"Permalink: Read the Latest Authorization Model\" href=\"#read-the-latest-authorization-model\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eReads the latest authorization model (note: this ignores the model id in configuration).\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModel\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientReadLatestAuthorizationModelOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientReadLatestAuthorizationModelOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var options = new ClientReadLatestAuthorizationModelOptions().additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;));\nvar response = fgaClient.readLatestAuthorizationModel(options).get();\n\n// response.getAuthorizationModel().getId() = \u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;\n// response.getAuthorizationModel().SchemaVersion() = \u0026quot;1.1\u0026quot;\n// response.getAuthorizationModel().TypeDefinitions() = [{ \u0026quot;type\u0026quot;: \u0026quot;document\u0026quot;, \u0026quot;relations\u0026quot;: { ... } }, { \u0026quot;type\u0026quot;: \u0026quot;user\u0026quot;, \u0026quot;relations\u0026quot;: { ... }}]\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadLatestAuthorizationModelOptions\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e));\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ereadLatestAuthorizationModel\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// response.getAuthorizationModel().getId() = \"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e// response.getAuthorizationModel().SchemaVersion() = \"1.1\"\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e// response.getAuthorizationModel().TypeDefinitions() = [{ \"type\": \"document\", \"relations\": { ... } }, { \"type\": \"user\", \"relations\": { ... }}]\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRelationship Tuples\u003c/h4\u003e\u003ca id=\"user-content-relationship-tuples\" class=\"anchor\" aria-label=\"Permalink: Relationship Tuples\" href=\"#relationship-tuples\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRead Relationship Tuple Changes (Watch)\u003c/h5\u003e\u003ca id=\"user-content-read-relationship-tuple-changes-watch\" class=\"anchor\" aria-label=\"Permalink: Read Relationship Tuple Changes (Watch)\" href=\"#read-relationship-tuple-changes-watch\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eReads the list of historical relationship tuple writes and deletes.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Relationship%20Tuples/ReadChanges\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientReadChangesOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientReadChangesOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var startTime = OffsetDateTime.parse(\u0026quot;2022-01-01T00:00:00+00:00\u0026quot;);\nvar request = new ClientReadChangesRequest().type(\u0026quot;document\u0026quot;).startTime(startTime);\nvar options = new ClientReadChangesOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    .pageSize(10)\n    .continuationToken(\u0026quot;...\u0026quot;);\n\nvar response = fgaClient.readChanges(request, options).get();\n\n// response.getContinuationToken() = ...\n// response.getChanges() = [\n//   { tupleKey: { user, relation, object }, operation: TupleOperation.WRITE, timestamp: ... },\n//   { tupleKey: { user, relation, object }, operation: TupleOperation.DELETE, timestamp: ... }\n// ]\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003estartTime\u003c/span\u003e = \u003cspan class=\"pl-smi\"\u003eOffsetDateTime\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eparse\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"2022-01-01T00:00:00+00:00\"\u003c/span\u003e);\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadChangesRequest\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003etype\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document\"\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003estartTime\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003estartTime\u003c/span\u003e);\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadChangesOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    .\u003cspan class=\"pl-en\"\u003epageSize\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003e10\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003econtinuationToken\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"...\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ereadChanges\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// response.getContinuationToken() = ...\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e// response.getChanges() = [\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e//   { tupleKey: { user, relation, object }, operation: TupleOperation.WRITE, timestamp: ... },\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e//   { tupleKey: { user, relation, object }, operation: TupleOperation.DELETE, timestamp: ... }\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e// ]\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRead Relationship Tuples\u003c/h5\u003e\u003ca id=\"user-content-read-relationship-tuples\" class=\"anchor\" aria-label=\"Permalink: Read Relationship Tuples\" href=\"#read-relationship-tuples\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eReads the relationship tuples stored in the database. It does not evaluate nor exclude invalid tuples according to the authorization model.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Relationship%20Tuples/Read\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientReadOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientReadOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"// Find if a relationship tuple stating that a certain user is a viewer of a certain document\nvar request = new ClientReadRequest()\n    .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n    .relation(\u0026quot;viewer\u0026quot;)\n    ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;);\n\n// Find all relationship tuples where a certain user has a relationship as any relation to a certain document\nvar request = new ClientReadRequest()\n    .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n    ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;);\n\n// Find all relationship tuples where a certain user is a viewer of any document\nvar request = new ClientReadRequest()\n    .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n    .relation(\u0026quot;viewer\u0026quot;)\n    ._object(\u0026quot;document:\u0026quot;);\n\n// Find all relationship tuples where any user has a relationship as any relation with a particular document\nvar request = new ClientReadRequest()\n    ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;);\n\n// Read all stored relationship tuples\nvar request = new ClientReadRequest();\n\nvar options = new ClientReadOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    .pageSize(10)\n    .continuationToken(\u0026quot;...\u0026quot;);\n\nvar response = fgaClient.read(request, options).get();\n\n// In all the above situations, the response will be of the form:\n// response = { tuples: [{ key: { user, relation, object }, timestamp }, ...]}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c\"\u003e// Find if a relationship tuple stating that a certain user is a viewer of a certain document\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-c\"\u003e// Find all relationship tuples where a certain user has a relationship as any relation to a certain document\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-c\"\u003e// Find all relationship tuples where a certain user is a viewer of any document\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-c\"\u003e// Find all relationship tuples where any user has a relationship as any relation with a particular document\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-c\"\u003e// Read all stored relationship tuples\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadRequest\u003c/span\u003e();\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    .\u003cspan class=\"pl-en\"\u003epageSize\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003e10\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003econtinuationToken\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"...\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eread\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// In all the above situations, the response will be of the form:\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e// response = { tuples: [{ key: { user, relation, object }, timestamp }, ...]}\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eWrite (Create and Delete) Relationship Tuples\u003c/h5\u003e\u003ca id=\"user-content-write-create-and-delete-relationship-tuples\" class=\"anchor\" aria-label=\"Permalink: Write (Create and Delete) Relationship Tuples\" href=\"#write-create-and-delete-relationship-tuples\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCreate and/or delete relationship tuples to update the system state.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Relationship%20Tuples/Write\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientWriteOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientWriteOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch6 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eTransaction mode (default)\u003c/h6\u003e\u003ca id=\"user-content-transaction-mode-default\" class=\"anchor\" aria-label=\"Permalink: Transaction mode (default)\" href=\"#transaction-mode-default\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eBy default, write runs in a transaction mode where any invalid operation (deleting a non-existing tuple, creating an existing tuple, one of the tuples was invalid) or a server error will fail the entire operation.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var request = new ClientWriteRequest()\n    .writes(List.of(\n        new TupleKey()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;viewer\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;),\n        new TupleKey()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;viewer\u0026quot;)\n            ._object(\u0026quot;document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\u0026quot;)\n    ))\n    .deletes(List.of(\n        new TupleKey()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;writer\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n    ));\n\nvar options = new ClientWriteOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;)\n    .transactions(true);\n\nvar response = fgaClient.write(request, options).get();\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientWriteRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003ewrites\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eTupleKey\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e),\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eTupleKey\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\"\u003c/span\u003e)\n    ))\n    .\u003cspan class=\"pl-en\"\u003edeletes\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eTupleKey\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"writer\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n    ));\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientWriteOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    \u003cspan class=\"pl-c\"\u003e// You can rely on the model id set in the configuration or override it for this specific request\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003etransactions\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003etrue\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ewrite\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eConvenience \u003ccode\u003eWriteTuples\u003c/code\u003e and \u003ccode\u003eDeleteTuples\u003c/code\u003e methods are also available.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch6 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eNon-transaction mode\u003c/h6\u003e\u003ca id=\"user-content-non-transaction-mode\" class=\"anchor\" aria-label=\"Permalink: Non-transaction mode\" href=\"#non-transaction-mode\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe SDK will split the writes into separate chunks and send them in parallel. Each chunk is sent as its own transaction.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientWriteOptions\u003c/code\u003e with \u003ccode\u003e.transactions(false)\u003c/code\u003e is required to use non-transaction mode.\nAll other fields of \u003ccode\u003eClientWriteOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var request = new ClientWriteRequest()\n    .writes(List.of(\n        new ClientTupleKey()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;viewer\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;),\n        new ClientTupleKey()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;viewer\u0026quot;)\n            ._object(\u0026quot;document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\u0026quot;)\n    ))\n    .deletes(List.of(\n        new ClientTupleKeyWithoutCondition()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;writer\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n    ));\nvar options = new ClientWriteOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;)\n    .transactions(false)\n    .transactionChunkSize(5); // Max tuples per chunk; each chunk is sent as its own transaction\n\nvar response = fgaClient.write(request, options).get();\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientWriteRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003ewrites\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKey\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e),\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKey\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\"\u003c/span\u003e)\n    ))\n    .\u003cspan class=\"pl-en\"\u003edeletes\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKeyWithoutCondition\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"writer\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n    ));\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientWriteOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    \u003cspan class=\"pl-c\"\u003e// You can rely on the model id set in the configuration or override it for this specific request\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003etransactions\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003efalse\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003etransactionChunkSize\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003e5\u003c/span\u003e); \u003cspan class=\"pl-c\"\u003e// Max tuples per chunk; each chunk is sent as its own transaction\u003c/span\u003e\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ewrite\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch6 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eConflict options for write operations\u003c/h6\u003e\u003ca id=\"user-content-conflict-options-for-write-operations\" class=\"anchor\" aria-label=\"Permalink: Conflict options for write operations\" href=\"#conflict-options-for-write-operations\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eWrite conflict handling can be controlled using the \u003ccode\u003eonDuplicate\u003c/code\u003e option for writes and the \u003ccode\u003eonMissing\u003c/code\u003e option for deletes.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eNote: this requires OpenFGA \u003ca href=\"https://github.com/openfga/openfga/releases/tag/v1.10.0\"\u003ev1.10.0\u003c/a\u003e or later.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode\u003eonDuplicate\u003c/code\u003e: Controls behavior when attempting to create a tuple that already exists\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eWriteRequestWrites.OnDuplicateEnum.ERROR\u003c/code\u003e (default): Return an error\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eWriteRequestWrites.OnDuplicateEnum.IGNORE\u003c/code\u003e: Skip the duplicate tuple and continue\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode\u003eonMissing\u003c/code\u003e: Controls behavior when attempting to delete a tuple that doesn't exist\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eWriteRequestDeletes.OnMissingEnum.ERROR\u003c/code\u003e (default): Return an error\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eWriteRequestDeletes.OnMissingEnum.IGNORE\u003c/code\u003e: Skip the missing tuple and continue\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eUsing conflict options with the \u003ccode\u003ewrite()\u003c/code\u003e method:\u003c/strong\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var request = new ClientWriteRequest()\n    .writes(List.of(\n        new ClientTupleKey()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;viewer\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n    ))\n    .deletes(List.of(\n        new ClientTupleKeyWithoutCondition()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;writer\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n    ));\n\nvar options = new ClientWriteOptions()\n    .onDuplicate(WriteRequestWrites.OnDuplicateEnum.IGNORE)\n    .onMissing(WriteRequestDeletes.OnMissingEnum.IGNORE);\n\nvar response = fgaClient.write(request, options).get();\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientWriteRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003ewrites\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKey\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n    ))\n    .\u003cspan class=\"pl-en\"\u003edeletes\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKeyWithoutCondition\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"writer\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n    ));\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientWriteOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eonDuplicate\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eWriteRequestWrites\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOnDuplicateEnum\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eIGNORE\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003eonMissing\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eWriteRequestDeletes\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOnMissingEnum\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eIGNORE\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ewrite\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eUsing conflict options with the \u003ccode\u003ewriteTuples()\u003c/code\u003e convenience method:\u003c/strong\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var tuples = List.of(\n    new ClientTupleKey()\n        .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n        .relation(\u0026quot;viewer\u0026quot;)\n        ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n);\n\nvar options = new ClientWriteTuplesOptions()\n    .onDuplicate(WriteRequestWrites.OnDuplicateEnum.IGNORE);\n\nvar response = fgaClient.writeTuples(tuples, options).get();\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003etuples\u003c/span\u003e = \u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n    \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKey\u003c/span\u003e()\n        .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n        .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n        .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientWriteTuplesOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eonDuplicate\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eWriteRequestWrites\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOnDuplicateEnum\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eIGNORE\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ewriteTuples\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003etuples\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eUsing conflict options with the \u003ccode\u003edeleteTuples()\u003c/code\u003e convenience method:\u003c/strong\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var tuples = List.of(\n    new ClientTupleKeyWithoutCondition()\n        .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n        .relation(\u0026quot;writer\u0026quot;)\n        ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n);\n\nvar options = new ClientDeleteTuplesOptions()\n    .onMissing(WriteRequestDeletes.OnMissingEnum.IGNORE);\n\nvar response = fgaClient.deleteTuples(tuples, options).get();\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003etuples\u003c/span\u003e = \u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n    \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKeyWithoutCondition\u003c/span\u003e()\n        .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n        .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"writer\"\u003c/span\u003e)\n        .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientDeleteTuplesOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eonMissing\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eWriteRequestDeletes\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOnMissingEnum\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eIGNORE\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003edeleteTuples\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003etuples\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRelationship Queries\u003c/h4\u003e\u003ca id=\"user-content-relationship-queries\" class=\"anchor\" aria-label=\"Permalink: Relationship Queries\" href=\"#relationship-queries\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCheck\u003c/h5\u003e\u003ca id=\"user-content-check\" class=\"anchor\" aria-label=\"Permalink: Check\" href=\"#check\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCheck if a user has a particular relation with an object.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Relationship%20Queries/Check\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientCheckOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientCheckOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var request = new ClientCheckRequest()\n    .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n    .relation(\u0026quot;writer\u0026quot;)\n    ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;);\nvar options = new ClientCheckOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;);\n\nvar response = fgaClient.check(request, options).get();\n// response.getAllowed() = true\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientCheckRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"writer\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e);\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientCheckOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    \u003cspan class=\"pl-c\"\u003e// You can rely on the model id set in the configuration or override it for this specific request\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003echeck\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\u003cspan class=\"pl-c\"\u003e// response.getAllowed() = true\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eBatch Check\u003c/h5\u003e\u003ca id=\"user-content-batch-check\" class=\"anchor\" aria-label=\"Permalink: Batch Check\" href=\"#batch-check\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSimilar to \u003ca href=\"#check\"\u003echeck\u003c/a\u003e, but instead of checking a single user-object relationship, accepts a list of relationships to check. Requires OpenFGA version 1.8.0 or greater.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Relationship%20Queries/BatchCheck\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: The order of \u003ccode\u003ebatchCheck\u003c/code\u003e results is not guaranteed to match the order of the checks provided. Use \u003ccode\u003ecorrelationId\u003c/code\u003e to pair responses with requests.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientBatchCheckOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientBatchCheckOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var request = new ClientBatchCheckRequest().checks(\n    List.of(\n        new ClientBatchCheckItem()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;viewer\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n            .correlationId(\u0026quot;cor-1\u0026quot;) // optional, one will be generated for you if not provided\n            .contextualTuples(List.of(\n                new ClientTupleKey()\n                    .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n                    .relation(\u0026quot;editor\u0026quot;)\n                    ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n            )),\n        new ClientCheckRequest()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;admin\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;),\n            .correlationId(\u0026quot;cor-2\u0026quot;) // optional, one will be generated for you if not provided\n            .contextualTuples(List.of(\n                new ClientTupleKey()\n                    .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n                    .relation(\u0026quot;editor\u0026quot;)\n                    ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n            )),\n        new ClientCheckRequest()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;creator\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n            .correlationId(\u0026quot;cor-3\u0026quot;), // optional, one will be generated for you if not provided\n        new ClientCheckRequest()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;deleter\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n            .correlationId(\u0026quot;cor-4\u0026quot;) // optional, one will be generated for you if not provided\n        )\n);\n\nvar options = new ClientBatchCheckOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;)\n    .maxParallelRequests(5); // Max number of requests to issue in parallel, defaults to 10 \n    .maxBatchSize(20); // Max number of batches to split the list of checks into, defaults to 50\n\nvar response = fgaClient.batchCheck(request, options).get();\n\n/*\nresponse.getResult() = [{\n    allowed: false,\n    correlationId: \u0026quot;cor-1\u0026quot;,\n    request: {\n      user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n      relation: \u0026quot;viewer\u0026quot;,\n      _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;,\n      correlationId: \u0026quot;cor-1\u0026quot;,\n      contextualTuples: [{\n        user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n        relation: \u0026quot;editor\u0026quot;,\n        _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;\n      }]\n    },\n  },\n  {\n    allowed: false,\n    correlationId: \u0026quot;cor-2\u0026quot;,\n    request: {\n      user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n      relation: \u0026quot;admin\u0026quot;,\n      _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;,\n      correlationId: \u0026quot;cor-2\u0026quot;,\n      contextualTuples: [{\n        user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n        relation: \u0026quot;editor\u0026quot;,\n        _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;\n      }]\n    }\n  },\n  {\n    allowed: false,\n    correlationId: \u0026quot;cor-3\u0026quot;,\n    request: {\n      user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n      relation: \u0026quot;creator\u0026quot;,\n      _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;,\n      correlationId: \u0026quot;cor-3\u0026quot;,\n    },\n    error: \u0026lt;FgaError ...\u0026gt;\n  },\n  {\n    allowed: true,\n    correlationId: \u0026quot;cor-4\u0026quot;,\n    request: {\n      user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n      relation: \u0026quot;deleter\u0026quot;,\n      _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;,\n      correlationId: \u0026quot;cor-4\u0026quot;,\n    }\n  },\n]\n*/\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientBatchCheckRequest\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003echecks\u003c/span\u003e(\n    \u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientBatchCheckItem\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003ecorrelationId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"cor-1\"\u003c/span\u003e) \u003cspan class=\"pl-c\"\u003e// optional, one will be generated for you if not provided\u003c/span\u003e\n            .\u003cspan class=\"pl-en\"\u003econtextualTuples\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n                \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKey\u003c/span\u003e()\n                    .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n                    .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"editor\"\u003c/span\u003e)\n                    .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n            )),\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientCheckRequest\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"admin\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e),\n            .\u003cspan class=\"pl-en\"\u003ecorrelationId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"cor-2\"\u003c/span\u003e) \u003cspan class=\"pl-c\"\u003e// optional, one will be generated for you if not provided\u003c/span\u003e\n            .\u003cspan class=\"pl-en\"\u003econtextualTuples\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n                \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKey\u003c/span\u003e()\n                    .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n                    .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"editor\"\u003c/span\u003e)\n                    .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n            )),\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientCheckRequest\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"creator\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003ecorrelationId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"cor-3\"\u003c/span\u003e), \u003cspan class=\"pl-c\"\u003e// optional, one will be generated for you if not provided\u003c/span\u003e\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientCheckRequest\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"deleter\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003ecorrelationId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"cor-4\"\u003c/span\u003e) \u003cspan class=\"pl-c\"\u003e// optional, one will be generated for you if not provided\u003c/span\u003e\n        )\n);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientBatchCheckOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    \u003cspan class=\"pl-c\"\u003e// You can rely on the model id set in the configuration or override it for this specific request\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003emaxParallelRequests\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003e5\u003c/span\u003e); \u003cspan class=\"pl-c\"\u003e// Max number of requests to issue in parallel, defaults to 10 \u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003emaxBatchSize\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003e20\u003c/span\u003e); \u003cspan class=\"pl-c\"\u003e// Max number of batches to split the list of checks into, defaults to 50\u003c/span\u003e\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ebatchCheck\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e/*\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003eresponse.getResult() = [{\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    allowed: false,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    correlationId: \"cor-1\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    request: {\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      relation: \"viewer\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      correlationId: \"cor-1\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      contextualTuples: [{\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e        user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e        relation: \"editor\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e        _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      }]\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    },\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e  },\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e  {\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    allowed: false,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    correlationId: \"cor-2\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    request: {\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      relation: \"admin\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      correlationId: \"cor-2\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      contextualTuples: [{\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e        user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e        relation: \"editor\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e        _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      }]\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    }\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e  },\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e  {\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    allowed: false,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    correlationId: \"cor-3\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    request: {\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      relation: \"creator\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      correlationId: \"cor-3\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    },\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    error: \u0026lt;FgaError ...\u0026gt;\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e  },\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e  {\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    allowed: true,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    correlationId: \"cor-4\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    request: {\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      relation: \"deleter\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e      correlationId: \"cor-4\",\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e    }\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e  },\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e]\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e*/\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIf you are using an OpenFGA version less than 1.8.0, you can use \u003ccode\u003eclientBatchCheck\u003c/code\u003e,\nwhich calls \u003ccode\u003echeck\u003c/code\u003e in parallel. It will return \u003ccode\u003eallowed: false\u003c/code\u003e if it encounters an error, and will return the error in the body.\nIf 429s are encountered, the underlying check will retry up to 3 times. For 5xx errors, all requests will retry with delay calculation using \u003ccode\u003eRetry-After\u003c/code\u003e headers when provided or exponential backoff as fallback.\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"var request = List.of(\n    new ClientBatchCheckItem()\n        .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n        .relation(\u0026quot;viewer\u0026quot;)\n        ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n        .contextualTuples(List.of(\n            new ClientTupleKey()\n                .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n                .relation(\u0026quot;editor\u0026quot;)\n                ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n        )),\n    new ClientCheckRequest()\n        .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n        .relation(\u0026quot;admin\u0026quot;)\n        ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;),\n        .contextualTuples(List.of(\n            new ClientTupleKey()\n                .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n                .relation(\u0026quot;editor\u0026quot;)\n                ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n        )),\n    new ClientCheckRequest()\n        .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n        .relation(\u0026quot;creator\u0026quot;)\n        ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;),\n    new ClientCheckRequest()\n        .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n        .relation(\u0026quot;deleter\u0026quot;)\n        ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n);\nvar options = new ClientBatchCheckClientOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;)\n    .maxParallelRequests(5); // Max number of requests to issue in parallel, defaults to 10\n\nvar response = fgaClient.batchCheck(request, options).get();\n\n/*\nresponse.getResponses() = [{\n  allowed: false,\n  request: {\n    user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n    relation: \u0026quot;viewer\u0026quot;,\n    _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;,\n    contextualTuples: [{\n      user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n      relation: \u0026quot;editor\u0026quot;,\n      _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;\n    }]\n  }\n}, {\n  allowed: false,\n  request: {\n    user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n    relation: \u0026quot;admin\u0026quot;,\n    _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;,\n    contextualTuples: [{\n      user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n      relation: \u0026quot;editor\u0026quot;,\n      _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;\n    }]\n  }\n}, {\n  allowed: false,\n  request: {\n    user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n    relation: \u0026quot;creator\u0026quot;,\n    _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;,\n  },\n  error: \u0026lt;FgaError ...\u0026gt;\n}, {\n  allowed: true,\n  request: {\n    user: \u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\n    relation: \u0026quot;deleter\u0026quot;,\n    _object: \u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;,\n  }},\n]\n*/\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003evar request = List.of(\n    new ClientBatchCheckItem()\n        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")\n        .relation(\"viewer\")\n        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")\n        .contextualTuples(List.of(\n            new ClientTupleKey()\n                .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")\n                .relation(\"editor\")\n                ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")\n        )),\n    new ClientCheckRequest()\n        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")\n        .relation(\"admin\")\n        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"),\n        .contextualTuples(List.of(\n            new ClientTupleKey()\n                .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")\n                .relation(\"editor\")\n                ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")\n        )),\n    new ClientCheckRequest()\n        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")\n        .relation(\"creator\")\n        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"),\n    new ClientCheckRequest()\n        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")\n        .relation(\"deleter\")\n        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")\n);\nvar options = new ClientBatchCheckClientOptions()\n    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\")\n    .maxParallelRequests(5); // Max number of requests to issue in parallel, defaults to 10\n\nvar response = fgaClient.batchCheck(request, options).get();\n\n/*\nresponse.getResponses() = [{\n  allowed: false,\n  request: {\n    user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n    relation: \"viewer\",\n    _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    contextualTuples: [{\n      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n      relation: \"editor\",\n      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\n    }]\n  }\n}, {\n  allowed: false,\n  request: {\n    user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n    relation: \"admin\",\n    _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    contextualTuples: [{\n      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n      relation: \"editor\",\n      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\n    }]\n  }\n}, {\n  allowed: false,\n  request: {\n    user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n    relation: \"creator\",\n    _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n  },\n  error: \u0026lt;FgaError ...\u0026gt;\n}, {\n  allowed: true,\n  request: {\n    user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n    relation: \"deleter\",\n    _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n  }},\n]\n*/\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eExpand\u003c/h5\u003e\u003ca id=\"user-content-expand\" class=\"anchor\" aria-label=\"Permalink: Expand\" href=\"#expand\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eExpands the relationships in userset tree format.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Relationship%20Queries/Expand\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientExpandOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientExpandOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var request = new ClientExpandRequest()\n    .relation(\u0026quot;viewer\u0026quot;)\n    ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;);\nvar options = new ClientExpandOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;);\n\nvar response = fgaClient.expand(request, options).get();\n\n// response.getTree().getRoot() = {\u0026quot;name\u0026quot;:\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a#viewer\u0026quot;,\u0026quot;leaf\u0026quot;:{\u0026quot;users\u0026quot;:{\u0026quot;users\u0026quot;:[\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;,\u0026quot;user:f52a4f7a-054d-47ff-bb6e-3ac81269988f\u0026quot;]}}}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientExpandRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e);\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientExpandOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    \u003cspan class=\"pl-c\"\u003e// You can rely on the model id set in the configuration or override it for this specific request\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eexpand\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// response.getTree().getRoot() = {\"name\":\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a#viewer\",\"leaf\":{\"users\":{\"users\":[\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\"user:f52a4f7a-054d-47ff-bb6e-3ac81269988f\"]}}}\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eList Objects\u003c/h5\u003e\u003ca id=\"user-content-list-objects\" class=\"anchor\" aria-label=\"Permalink: List Objects\" href=\"#list-objects\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eList the objects of a particular type a user has access to.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Relationship%20Queries/ListObjects\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientListObjectsOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientListObjectsOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var request = new ClientListObjectsRequest()\n    .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n    .relation(\u0026quot;viewer\u0026quot;)\n    .type(\u0026quot;document\u0026quot;)\n    .contextualTuples(List.of(\n        new ClientTupleKey()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;writer\u0026quot;)\n            ._object(\u0026quot;document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\u0026quot;)\n    ));\nvar options = new ClientListObjectsOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;);\n\nvar response = fgaClient.listObjects(request, options).get();\n\n// response.getObjects() = [\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;]\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientListObjectsRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003etype\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003econtextualTuples\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKey\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"writer\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\"\u003c/span\u003e)\n    ));\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientListObjectsOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    \u003cspan class=\"pl-c\"\u003e// You can rely on the model id set in the configuration or override it for this specific request\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003elistObjects\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// response.getObjects() = [\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"]\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eList Relations\u003c/h5\u003e\u003ca id=\"user-content-list-relations\" class=\"anchor\" aria-label=\"Permalink: List Relations\" href=\"#list-relations\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eList the relations a user has on an object.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientListRelationsOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientListRelationsOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var request = new ClientListRelationsRequest()\n    .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n    ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n    .relations(List.of(\u0026quot;can_view\u0026quot;, \u0026quot;can_edit\u0026quot;, \u0026quot;can_delete\u0026quot;, \u0026quot;can_rename\u0026quot;))\n    .contextualTuples(List.of(\n        new ClientTupleKey()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;editor\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n        )\n    );\nvar options = new ClientListRelationsOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // When unspecified, defaults to 10\n    .maxParallelRequests()\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(DEFAULT_AUTH_MODEL_ID);\n\nvar response = fgaClient.listRelations(request, options).get();\n\n// response.getRelations() = [\u0026quot;can_view\u0026quot;, \u0026quot;can_edit\u0026quot;]\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientListRelationsRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003erelations\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"can_view\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"can_edit\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"can_delete\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"can_rename\"\u003c/span\u003e))\n    .\u003cspan class=\"pl-en\"\u003econtextualTuples\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKey\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"editor\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n        )\n    );\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientListRelationsOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    \u003cspan class=\"pl-c\"\u003e// When unspecified, defaults to 10\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003emaxParallelRequests\u003c/span\u003e()\n    \u003cspan class=\"pl-c\"\u003e// You can rely on the model id set in the configuration or override it for this specific request\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003eDEFAULT_AUTH_MODEL_ID\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003elistRelations\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// response.getRelations() = [\"can_view\", \"can_edit\"]\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eList Users\u003c/h5\u003e\u003ca id=\"user-content-list-users\" class=\"anchor\" aria-label=\"Permalink: List Users\" href=\"#list-users\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eList the users who have a certain relation to a particular type.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Relationship%20Queries/ListUsers\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"// Only a single filter is allowed for the time being\nvar userFilters = new ArrayList\u0026lt;UserTypeFilter\u0026gt;() {\n    {\n        add(new UserTypeFilter().type(\u0026quot;user\u0026quot;));\n        // user filters can also be of the form\n        // add(new UserTypeFilter().type(\u0026quot;team\u0026quot;).relation(\u0026quot;member\u0026quot;));\n    }\n};\n\nvar request = new ClientListUsersRequest()\n    ._object(new FgaObject().type(\u0026quot;document\u0026quot;).id(\u0026quot;roadmap\u0026quot;))\n    .relation(\u0026quot;can_read\u0026quot;)\n    .userFilters(userFilters)\n    .context(Map.of(\u0026quot;view_count\u0026quot;, 100))\n    .contextualTupleKeys(List.of(\n        new ClientTupleKey()\n            .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n            .relation(\u0026quot;editor\u0026quot;)\n            ._object(\u0026quot;folder:product\u0026quot;),\n        new ClientTupleKey()\n            .user(\u0026quot;folder:product\u0026quot;)\n            .relation(\u0026quot;parent\u0026quot;)\n            ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n));\n\nvar options = new ClientListUsersOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;);\n\nvar response = fgaClient.listUsers(request, options).get();\n\n// response.getUsers() = [{object: {type: \u0026quot;user\u0026quot;, id: \u0026quot;81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;}}, {userset: { type: \u0026quot;user\u0026quot; }}, ...]\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c\"\u003e// Only a single filter is allowed for the time being\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003euserFilters\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eArrayList\u003c/span\u003e\u0026lt;\u003cspan class=\"pl-smi\"\u003eUserTypeFilter\u003c/span\u003e\u0026gt;() {\n    {\n        \u003cspan class=\"pl-en\"\u003eadd\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eUserTypeFilter\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003etype\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user\"\u003c/span\u003e));\n        \u003cspan class=\"pl-c\"\u003e// user filters can also be of the form\u003c/span\u003e\n        \u003cspan class=\"pl-c\"\u003e// add(new UserTypeFilter().type(\"team\").relation(\"member\"));\u003c/span\u003e\n    }\n};\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientListUsersRequest\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eFgaObject\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003etype\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document\"\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eid\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"roadmap\"\u003c/span\u003e))\n    .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"can_read\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003euserFilters\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003euserFilters\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003econtext\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"view_count\"\u003c/span\u003e, \u003cspan class=\"pl-c1\"\u003e100\u003c/span\u003e))\n    .\u003cspan class=\"pl-en\"\u003econtextualTupleKeys\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKey\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"editor\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"folder:product\"\u003c/span\u003e),\n        \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientTupleKey\u003c/span\u003e()\n            .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"folder:product\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"parent\"\u003c/span\u003e)\n            .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n));\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientListUsersOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    \u003cspan class=\"pl-c\"\u003e// You can rely on the model id set in the configuration or override it for this specific request\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e);\n\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003elistUsers\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-c\"\u003e// response.getUsers() = [{object: {type: \"user\", id: \"81684243-9356-4421-8fbf-a4f8d36aa31b\"}}, {userset: { type: \"user\" }}, ...]\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAssertions\u003c/h4\u003e\u003ca id=\"user-content-assertions\" class=\"anchor\" aria-label=\"Permalink: Assertions\" href=\"#assertions\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRead Assertions\u003c/h5\u003e\u003ca id=\"user-content-read-assertions\" class=\"anchor\" aria-label=\"Permalink: Read Assertions\" href=\"#read-assertions\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eRead assertions for a particular authorization model.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Assertions/Read%20Assertions\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientReadAssertionsOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientReadAssertionsOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var options = new ClientReadAssertionsOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    // You can rely on the model id set in the configuration or override it for this specific request\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;);\nvar response = fgaClient.readAssertions(options).get();\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientReadAssertionsOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    \u003cspan class=\"pl-c\"\u003e// You can rely on the model id set in the configuration or override it for this specific request\u003c/span\u003e\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e);\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ereadAssertions\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eWrite Assertions\u003c/h5\u003e\u003ca id=\"user-content-write-assertions\" class=\"anchor\" aria-label=\"Permalink: Write Assertions\" href=\"#write-assertions\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eUpdate the assertions for a particular authorization model.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://openfga.dev/api/service#/Assertions/Write%20Assertions\" rel=\"nofollow\"\u003eAPI Documentation\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003ePassing \u003ccode\u003eClientWriteAssertionsOptions\u003c/code\u003e is optional. All fields of \u003ccode\u003eClientWriteAssertionsOptions\u003c/code\u003e are optional.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var options = new ClientWriteAssertionsOptions()\n    .additionalHeaders(Map.of(\u0026quot;Some-Http-Header\u0026quot;, \u0026quot;Some value\u0026quot;))\n    .authorizationModelId(\u0026quot;01GXSA8YR785C4FYS3C0RTG7B1\u0026quot;);\nvar assertions = List.of(\n    new ClientAssertion()\n        .user(\u0026quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b\u0026quot;)\n        .relation(\u0026quot;viewer\u0026quot;)\n        ._object(\u0026quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\u0026quot;)\n        .expectation(true)\n);\nfgaClient.writeAssertions(assertions, options).get();\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientWriteAssertionsOptions\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eadditionalHeaders\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Some-Http-Header\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"Some value\"\u003c/span\u003e))\n    .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01GXSA8YR785C4FYS3C0RTG7B1\"\u003c/span\u003e);\n\u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eassertions\u003c/span\u003e = \u003cspan class=\"pl-smi\"\u003eList\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n    \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientAssertion\u003c/span\u003e()\n        .\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"\u003c/span\u003e)\n        .\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e)\n        .\u003cspan class=\"pl-en\"\u003e_object\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"\u003c/span\u003e)\n        .\u003cspan class=\"pl-en\"\u003eexpectation\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003etrue\u003c/span\u003e)\n);\n\u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ewriteAssertions\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eassertions\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eoptions\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCalling Other Endpoints\u003c/h3\u003e\u003ca id=\"user-content-calling-other-endpoints\" class=\"anchor\" aria-label=\"Permalink: Calling Other Endpoints\" href=\"#calling-other-endpoints\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe API Executor provides direct HTTP access to OpenFGA endpoints not yet wrapped by the SDK. It maintains the SDK's client configuration including authentication, telemetry, retries, and error handling.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eUse cases:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eCalling endpoints not yet supported by the SDK\u003c/li\u003e\n\u003cli\u003eUsing an SDK version that lacks support for a particular endpoint\u003c/li\u003e\n\u003cli\u003eAccessing custom endpoints that extend the OpenFGA API\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eInitialize the SDK normally and access the API Executor via the \u003ccode\u003efgaClient\u003c/code\u003e instance:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"// Initialize the client, same as above\nClientConfiguration config = new ClientConfiguration()\n    .apiUrl(\u0026quot;http://localhost:8080\u0026quot;)\n    .storeId(\u0026quot;01YCP46JKYM8FJCQ37NMBYHE5X\u0026quot;);\nOpenFgaClient fgaClient = new OpenFgaClient(config);\n\n// Custom new endpoint that doesn't exist in the SDK yet\nMap\u0026lt;String, Object\u0026gt; requestBody = Map.of(\n    \u0026quot;user\u0026quot;, \u0026quot;user:bob\u0026quot;,\n    \u0026quot;action\u0026quot;, \u0026quot;custom_action\u0026quot;,\n    \u0026quot;resource\u0026quot;, \u0026quot;resource:123\u0026quot;\n);\n\n// Build the request\nApiExecutorRequestBuilder request = ApiExecutorRequestBuilder.builder(\u0026quot;POST\u0026quot;, \u0026quot;/stores/{store_id}/custom-endpoint\u0026quot;)\n    .pathParam(\u0026quot;store_id\u0026quot;, storeId)\n    .queryParam(\u0026quot;page_size\u0026quot;, \u0026quot;20\u0026quot;)\n    .queryParam(\u0026quot;continuation_token\u0026quot;, \u0026quot;eyJwayI6...\u0026quot;)\n    .body(requestBody)\n    .header(\u0026quot;X-Experimental-Feature\u0026quot;, \u0026quot;enabled\u0026quot;)\n    .build();\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c\"\u003e// Initialize the client, same as above\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003eClientConfiguration\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientConfiguration\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003eapiUrl\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"http://localhost:8080\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003estoreId\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"01YCP46JKYM8FJCQ37NMBYHE5X\"\u003c/span\u003e);\n\u003cspan class=\"pl-smi\"\u003eOpenFgaClient\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eOpenFgaClient\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e);\n\n\u003cspan class=\"pl-c\"\u003e// Custom new endpoint that doesn't exist in the SDK yet\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e\u0026lt;\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e, \u003cspan class=\"pl-smi\"\u003eObject\u003c/span\u003e\u0026gt; \u003cspan class=\"pl-s1\"\u003erequestBody\u003c/span\u003e = \u003cspan class=\"pl-smi\"\u003eMap\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eof\u003c/span\u003e(\n    \u003cspan class=\"pl-s\"\u003e\"user\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"user:bob\"\u003c/span\u003e,\n    \u003cspan class=\"pl-s\"\u003e\"action\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"custom_action\"\u003c/span\u003e,\n    \u003cspan class=\"pl-s\"\u003e\"resource\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"resource:123\"\u003c/span\u003e\n);\n\n\u003cspan class=\"pl-c\"\u003e// Build the request\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003eApiExecutorRequestBuilder\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-smi\"\u003eApiExecutorRequestBuilder\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ebuilder\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"POST\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"/stores/{store_id}/custom-endpoint\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003epathParam\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"store_id\"\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003estoreId\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003equeryParam\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"page_size\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"20\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003equeryParam\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"continuation_token\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"eyJwayI6...\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003ebody\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequestBody\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003eheader\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"X-Experimental-Feature\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"enabled\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003ebuild\u003c/span\u003e();\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eExample: Calling a new \"Custom Endpoint\" endpoint and handling raw response\u003c/h4\u003e\u003ca id=\"user-content-example-calling-a-new-custom-endpoint-endpoint-and-handling-raw-response\" class=\"anchor\" aria-label=\"Permalink: Example: Calling a new \u0026quot;Custom Endpoint\u0026quot; endpoint and handling raw response\" href=\"#example-calling-a-new-custom-endpoint-endpoint-and-handling-raw-response\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"// Get raw response without automatic decoding\nApiResponse\u0026lt;String\u0026gt; rawResponse = fgaClient.apiExecutor().send(request).get();\n\nString rawJson = rawResponse.getData();\nSystem.out.println(\u0026quot;Response: \u0026quot; + rawJson);\n\n// You can access fields like headers, status code, etc. from rawResponse:\nSystem.out.println(\u0026quot;Status Code: \u0026quot; + rawResponse.getStatusCode());\nSystem.out.println(\u0026quot;Headers: \u0026quot; + rawResponse.getHeaders());\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c\"\u003e// Get raw response without automatic decoding\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003eApiResponse\u003c/span\u003e\u0026lt;\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e\u0026gt; \u003cspan class=\"pl-s1\"\u003erawResponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eapiExecutor\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003esend\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erawJson\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003erawResponse\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetData\u003c/span\u003e();\n\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Response: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003erawJson\u003c/span\u003e);\n\n\u003cspan class=\"pl-c\"\u003e// You can access fields like headers, status code, etc. from rawResponse:\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Status Code: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003erawResponse\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetStatusCode\u003c/span\u003e());\n\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Headers: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003erawResponse\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetHeaders\u003c/span\u003e());\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eExample: Calling a new \"Custom Endpoint\" endpoint and decoding response into a struct\u003c/h4\u003e\u003ca id=\"user-content-example-calling-a-new-custom-endpoint-endpoint-and-decoding-response-into-a-struct\" class=\"anchor\" aria-label=\"Permalink: Example: Calling a new \u0026quot;Custom Endpoint\u0026quot; endpoint and decoding response into a struct\" href=\"#example-calling-a-new-custom-endpoint-endpoint-and-decoding-response-into-a-struct\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"// Define a class to hold the response\nclass CustomEndpointResponse {\n    private boolean allowed;\n    private String reason;\n\n    public boolean isAllowed() { return allowed; }\n    public void setAllowed(boolean allowed) { this.allowed = allowed; }\n    public String getReason() { return reason; }\n    public void setReason(String reason) { this.reason = reason; }\n}\n\n// Get response decoded into CustomEndpointResponse class\nApiResponse\u0026lt;CustomEndpointResponse\u0026gt; response = fgaClient.apiExecutor()\n    .send(request, CustomEndpointResponse.class)\n    .get();\n\nCustomEndpointResponse customEndpointResponse = response.getData();\nSystem.out.println(\u0026quot;Allowed: \u0026quot; + customEndpointResponse.isAllowed());\nSystem.out.println(\u0026quot;Reason: \u0026quot; + customEndpointResponse.getReason());\n\n// You can access fields like headers, status code, etc. from response:\nSystem.out.println(\u0026quot;Status Code: \u0026quot; + response.getStatusCode());\nSystem.out.println(\u0026quot;Headers: \u0026quot; + response.getHeaders());\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c\"\u003e// Define a class to hold the response\u003c/span\u003e\n\u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eCustomEndpointResponse\u003c/span\u003e {\n    \u003cspan class=\"pl-k\"\u003eprivate\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eboolean\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eallowed\u003c/span\u003e;\n    \u003cspan class=\"pl-k\"\u003eprivate\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ereason\u003c/span\u003e;\n\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eboolean\u003c/span\u003e \u003cspan class=\"pl-en\"\u003eisAllowed\u003c/span\u003e() { \u003cspan class=\"pl-k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eallowed\u003c/span\u003e; }\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003evoid\u003c/span\u003e \u003cspan class=\"pl-en\"\u003esetAllowed\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eboolean\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eallowed\u003c/span\u003e) { \u003cspan class=\"pl-smi\"\u003ethis\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eallowed\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003eallowed\u003c/span\u003e; }\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e \u003cspan class=\"pl-en\"\u003egetReason\u003c/span\u003e() { \u003cspan class=\"pl-k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ereason\u003c/span\u003e; }\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003evoid\u003c/span\u003e \u003cspan class=\"pl-en\"\u003esetReason\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ereason\u003c/span\u003e) { \u003cspan class=\"pl-smi\"\u003ethis\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ereason\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003ereason\u003c/span\u003e; }\n}\n\n\u003cspan class=\"pl-c\"\u003e// Get response decoded into CustomEndpointResponse class\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003eApiResponse\u003c/span\u003e\u0026lt;\u003cspan class=\"pl-smi\"\u003eCustomEndpointResponse\u003c/span\u003e\u0026gt; \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eapiExecutor\u003c/span\u003e()\n    .\u003cspan class=\"pl-en\"\u003esend\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e, \u003cspan class=\"pl-smi\"\u003eCustomEndpointResponse\u003c/span\u003e.\u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n\n\u003cspan class=\"pl-smi\"\u003eCustomEndpointResponse\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ecustomEndpointResponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetData\u003c/span\u003e();\n\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Allowed: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003ecustomEndpointResponse\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eisAllowed\u003c/span\u003e());\n\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Reason: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003ecustomEndpointResponse\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetReason\u003c/span\u003e());\n\n\u003cspan class=\"pl-c\"\u003e// You can access fields like headers, status code, etc. from response:\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Status Code: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetStatusCode\u003c/span\u003e());\n\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Headers: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetHeaders\u003c/span\u003e());\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCalling a streaming endpoint\u003c/h4\u003e\u003ca id=\"user-content-calling-a-streaming-endpoint\" class=\"anchor\" aria-label=\"Permalink: Calling a streaming endpoint\" href=\"#calling-a-streaming-endpoint\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eFor streaming endpoints, use \u003ccode\u003estreamingApiExecutor\u003c/code\u003e instead. Pass the response class directly — the SDK handles the rest. It delivers each response object to a consumer callback as it arrives, and returns a \u003ccode\u003eCompletableFuture\u0026lt;Void\u0026gt;\u003c/code\u003e that completes when the stream is exhausted.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"ApiExecutorRequestBuilder request = ApiExecutorRequestBuilder.builder(HttpMethod.POST, \u0026quot;/stores/{store_id}/streamed-list-objects\u0026quot;)\n    .body(new ListObjectsRequest().user(\u0026quot;user:anne\u0026quot;).relation(\u0026quot;viewer\u0026quot;).type(\u0026quot;document\u0026quot;))\n    .build();\n\nfgaClient.streamingApiExecutor(StreamedListObjectsResponse.class)\n    .stream(\n        request,\n        response -\u0026gt; System.out.println(\u0026quot;Object: \u0026quot; + response.getObject()),  // called per object\n        error    -\u0026gt; System.err.println(\u0026quot;Stream error: \u0026quot; + error.getMessage()) // optional\n    )\n    .thenRun(() -\u0026gt; System.out.println(\u0026quot;Streaming complete\u0026quot;))\n    .exceptionally(err -\u0026gt; {\n        System.err.println(\u0026quot;Fatal error: \u0026quot; + err.getMessage());\n        return null;\n    });\"\u003e\u003cpre\u003e\u003cspan class=\"pl-smi\"\u003eApiExecutorRequestBuilder\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e = \u003cspan class=\"pl-smi\"\u003eApiExecutorRequestBuilder\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ebuilder\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eHttpMethod\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ePOST\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"/stores/{store_id}/streamed-list-objects\"\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003ebody\u003c/span\u003e(\u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eListObjectsRequest\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003euser\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"user:anne\"\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003erelation\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"viewer\"\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003etype\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"document\"\u003c/span\u003e))\n    .\u003cspan class=\"pl-en\"\u003ebuild\u003c/span\u003e();\n\n\u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003estreamingApiExecutor\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eStreamedListObjectsResponse\u003c/span\u003e.\u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e)\n    .\u003cspan class=\"pl-en\"\u003estream\u003c/span\u003e(\n        \u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e,\n        \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e -\u0026gt; \u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Object: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetObject\u003c/span\u003e()),  \u003cspan class=\"pl-c\"\u003e// called per object\u003c/span\u003e\n        \u003cspan class=\"pl-s1\"\u003eerror\u003c/span\u003e    -\u0026gt; \u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eerr\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Stream error: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003eerror\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetMessage\u003c/span\u003e()) \u003cspan class=\"pl-c\"\u003e// optional\u003c/span\u003e\n    )\n    .\u003cspan class=\"pl-en\"\u003ethenRun\u003c/span\u003e(() -\u0026gt; \u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Streaming complete\"\u003c/span\u003e))\n    .\u003cspan class=\"pl-en\"\u003eexceptionally\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eerr\u003c/span\u003e -\u0026gt; {\n        \u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eerr\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Fatal error: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003eerr\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetMessage\u003c/span\u003e());\n        \u003cspan class=\"pl-k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003enull\u003c/span\u003e;\n    });\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eFor a complete working example, see \u003ca href=\"/openfga/java-sdk/blob/main/examples/api-executor\"\u003eexamples/api-executor\u003c/a\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDocumentation\u003c/h4\u003e\u003ca id=\"user-content-documentation\" class=\"anchor\" aria-label=\"Permalink: Documentation\" href=\"#documentation\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSee \u003ca href=\"/openfga/java-sdk/blob/main/docs/ApiExecutor.md\"\u003edocs/ApiExecutor.md\u003c/a\u003e for complete API reference and examples for both \u003ccode\u003eApiExecutor\u003c/code\u003e and \u003ccode\u003eStreamingApiExecutor\u003c/code\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRetries\u003c/h3\u003e\u003ca id=\"user-content-retries\" class=\"anchor\" aria-label=\"Permalink: Retries\" href=\"#retries\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe SDK implements RFC 9110 compliant retry behavior with support for the \u003ccode\u003eRetry-After\u003c/code\u003e header. By default, the SDK will automatically retry failed requests up to \u003cstrong\u003e3 times\u003c/strong\u003e with delay calculation (maximum allowable: 15 retries).\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRetry Behavior\u003c/h4\u003e\u003ca id=\"user-content-retry-behavior\" class=\"anchor\" aria-label=\"Permalink: Retry Behavior\" href=\"#retry-behavior\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eRate Limiting (429 errors):\u003c/strong\u003e Always retried regardless of HTTP method.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eServer Errors (5xx):\u003c/strong\u003e All requests are retried on 5xx errors (except 501 Not Implemented) regardless of HTTP method:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003cstrong\u003eAll operations\u003c/strong\u003e (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS): Always retried on 5xx errors with delay calculation\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDelay Calculation\u003c/h4\u003e\u003ca id=\"user-content-delay-calculation\" class=\"anchor\" aria-label=\"Permalink: Delay Calculation\" href=\"#delay-calculation\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\u003cstrong\u003eRetry-After header present\u003c/strong\u003e: Uses the server-specified delay (supports both integer seconds and HTTP-date formats)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eNo Retry-After header\u003c/strong\u003e: Uses exponential backoff with jitter (base delay: 2^retryCount * 100ms, capped at 120 seconds)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eMinimum delay\u003c/strong\u003e: Respects the configured \u003ccode\u003eminimumRetryDelay\u003c/code\u003e as a floor value\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eConfiguration\u003c/h4\u003e\u003ca id=\"user-content-configuration\" class=\"anchor\" aria-label=\"Permalink: Configuration\" href=\"#configuration\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCustomize retry behavior using the \u003ccode\u003eClientConfiguration\u003c/code\u003e builder. The SDK enforces a maximum of 15 retries to prevent accidental server overload:\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003e\u003cg-emoji class=\"g-emoji\" alias=\"warning\"\u003e⚠️\u003c/g-emoji\u003e Breaking Changes:\u003c/strong\u003e\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eConfiguration validation now prevents setting \u003ccode\u003emaxRetries\u003c/code\u003e above 15\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eFgaError\u003c/code\u003e now exposes the \u003ccode\u003eRetry-After\u003c/code\u003e header value via \u003ccode\u003egetRetryAfterHeader()\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import com.fasterxml.jackson.databind.ObjectMapper;\nimport dev.openfga.sdk.api.client.OpenFgaClient;\nimport dev.openfga.sdk.api.configuration.ClientConfiguration;\nimport java.net.http.HttpClient;\n\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        var config = new ClientConfiguration()\n                .apiUrl(System.getenv(\u0026quot;FGA_API_URL\u0026quot;)) // If not specified, will default to \u0026quot;http://localhost:8080\u0026quot;\n                .storeId(System.getenv(\u0026quot;FGA_STORE_ID\u0026quot;)) // Not required when calling createStore() or listStores()\n                .authorizationModelId(System.getenv(\u0026quot;FGA_MODEL_ID\u0026quot;)) // Optional, can be overridden per request\n                .maxRetries(3) // retry up to 3 times on API requests (default: 3, maximum: 15)\n                .minimumRetryDelay(Duration.ofMillis(100)); // minimum wait time between retries in milliseconds (default: 100ms)\n\n        var fgaClient = new OpenFgaClient(config);\n        var response = fgaClient.readAuthorizationModels().get();\n    }\n}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ecom\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003efasterxml\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ejackson\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003edatabind\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eObjectMapper\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eclient\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eOpenFgaClient\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003edev\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eopenfga\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003esdk\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eapi\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003econfiguration\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eClientConfiguration\u003c/span\u003e;\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ejava\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003enet\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003ehttp\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eHttpClient\u003c/span\u003e;\n\n\u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eExample\u003c/span\u003e {\n    \u003cspan class=\"pl-k\"\u003epublic\u003c/span\u003e \u003cspan class=\"pl-k\"\u003estatic\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003evoid\u003c/span\u003e \u003cspan class=\"pl-en\"\u003emain\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e[] \u003cspan class=\"pl-s1\"\u003eargs\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003ethrows\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eException\u003c/span\u003e {\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eClientConfiguration\u003c/span\u003e()\n                .\u003cspan class=\"pl-en\"\u003eapiUrl\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_API_URL\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// If not specified, will default to \"http://localhost:8080\"\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003estoreId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_STORE_ID\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Not required when calling createStore() or listStores()\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003eauthorizationModelId\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetenv\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"FGA_MODEL_ID\"\u003c/span\u003e)) \u003cspan class=\"pl-c\"\u003e// Optional, can be overridden per request\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003emaxRetries\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003e3\u003c/span\u003e) \u003cspan class=\"pl-c\"\u003e// retry up to 3 times on API requests (default: 3, maximum: 15)\u003c/span\u003e\n                .\u003cspan class=\"pl-en\"\u003eminimumRetryDelay\u003c/span\u003e(\u003cspan class=\"pl-smi\"\u003eDuration\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eofMillis\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003e100\u003c/span\u003e)); \u003cspan class=\"pl-c\"\u003e// minimum wait time between retries in milliseconds (default: 100ms)\u003c/span\u003e\n\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e = \u003cspan class=\"pl-k\"\u003enew\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eOpenFgaClient\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003econfig\u003c/span\u003e);\n        \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003ereadAuthorizationModels\u003c/span\u003e().\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n    }\n}\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eError Handling with Retry Information\u003c/h4\u003e\u003ca id=\"user-content-error-handling-with-retry-information\" class=\"anchor\" aria-label=\"Permalink: Error Handling with Retry Information\" href=\"#error-handling-with-retry-information\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eWhen handling errors, you can access the \u003ccode\u003eRetry-After\u003c/code\u003e header value for debugging or custom retry logic:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-java notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"try {\n    var response = fgaClient.check(request).get();\n} catch (ExecutionException e) {\n    if (e.getCause() instanceof FgaError) {\n        FgaError error = (FgaError) e.getCause();\n        \n        // Access Retry-After header if present\n        String retryAfter = error.getRetryAfterHeader();\n        if (retryAfter != null) {\n            System.out.println(\u0026quot;Server requested retry after: \u0026quot; + retryAfter + \u0026quot; seconds\u0026quot;);\n        }\n        \n        System.out.println(\u0026quot;Error: \u0026quot; + error.getMessage());\n    }\n}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003etry\u003c/span\u003e {\n    \u003cspan class=\"pl-smi\"\u003evar\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eresponse\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003efgaClient\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003echeck\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erequest\u003c/span\u003e).\u003cspan class=\"pl-en\"\u003eget\u003c/span\u003e();\n} \u003cspan class=\"pl-k\"\u003ecatch\u003c/span\u003e (\u003cspan class=\"pl-smi\"\u003eExecutionException\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ee\u003c/span\u003e) {\n    \u003cspan class=\"pl-k\"\u003eif\u003c/span\u003e (\u003cspan class=\"pl-s1\"\u003ee\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetCause\u003c/span\u003e() \u003cspan class=\"pl-k\"\u003einstanceof\u003c/span\u003e \u003cspan class=\"pl-smi\"\u003eFgaError\u003c/span\u003e) {\n        \u003cspan class=\"pl-smi\"\u003eFgaError\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eerror\u003c/span\u003e = (\u003cspan class=\"pl-smi\"\u003eFgaError\u003c/span\u003e) \u003cspan class=\"pl-s1\"\u003ee\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetCause\u003c/span\u003e();\n        \n        \u003cspan class=\"pl-c\"\u003e// Access Retry-After header if present\u003c/span\u003e\n        \u003cspan class=\"pl-smi\"\u003eString\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eretryAfter\u003c/span\u003e = \u003cspan class=\"pl-s1\"\u003eerror\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetRetryAfterHeader\u003c/span\u003e();\n        \u003cspan class=\"pl-k\"\u003eif\u003c/span\u003e (\u003cspan class=\"pl-s1\"\u003eretryAfter\u003c/span\u003e != \u003cspan class=\"pl-c1\"\u003enull\u003c/span\u003e) {\n            \u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Server requested retry after: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003eretryAfter\u003c/span\u003e + \u003cspan class=\"pl-s\"\u003e\" seconds\"\u003c/span\u003e);\n        }\n        \n        \u003cspan class=\"pl-smi\"\u003eSystem\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003eout\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003eprintln\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"Error: \"\u003c/span\u003e + \u003cspan class=\"pl-s1\"\u003eerror\u003c/span\u003e.\u003cspan class=\"pl-en\"\u003egetMessage\u003c/span\u003e());\n    }\n}\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAPI Endpoints\u003c/h3\u003e\u003ca id=\"user-content-api-endpoints\" class=\"anchor\" aria-label=\"Permalink: API Endpoints\" href=\"#api-endpoints\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cmarkdown-accessiblity-table\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eMethod\u003c/th\u003e\n\u003cth\u003eHTTP request\u003c/th\u003e\n\u003cth\u003eDescription\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#batchcheck\"\u003e\u003cstrong\u003ebatchCheck\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePOST\u003c/strong\u003e /stores/{store_id}/batch-check\u003c/td\u003e\n\u003ctd\u003eSend a list of `check` operations in a single request\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#check\"\u003e\u003cstrong\u003echeck\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePOST\u003c/strong\u003e /stores/{store_id}/check\u003c/td\u003e\n\u003ctd\u003eCheck whether a user is authorized to access an object\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#createstore\"\u003e\u003cstrong\u003ecreateStore\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePOST\u003c/strong\u003e /stores\u003c/td\u003e\n\u003ctd\u003eCreate a store\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#deletestore\"\u003e\u003cstrong\u003edeleteStore\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eDELETE\u003c/strong\u003e /stores/{store_id}\u003c/td\u003e\n\u003ctd\u003eDelete a store\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#expand\"\u003e\u003cstrong\u003eexpand\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePOST\u003c/strong\u003e /stores/{store_id}/expand\u003c/td\u003e\n\u003ctd\u003eExpand all relationships in userset tree format, and following userset rewrite rules.  Useful to reason about and debug a certain relationship\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#getstore\"\u003e\u003cstrong\u003egetStore\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGET\u003c/strong\u003e /stores/{store_id}\u003c/td\u003e\n\u003ctd\u003eGet a store\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#listobjects\"\u003e\u003cstrong\u003elistObjects\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePOST\u003c/strong\u003e /stores/{store_id}/list-objects\u003c/td\u003e\n\u003ctd\u003eList all objects of the given type that the user has a relation with\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#liststores\"\u003e\u003cstrong\u003elistStores\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGET\u003c/strong\u003e /stores\u003c/td\u003e\n\u003ctd\u003eList all stores\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#listusers\"\u003e\u003cstrong\u003elistUsers\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePOST\u003c/strong\u003e /stores/{store_id}/list-users\u003c/td\u003e\n\u003ctd\u003eList the users matching the provided filter who have a certain relation to a particular type.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#read\"\u003e\u003cstrong\u003eread\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePOST\u003c/strong\u003e /stores/{store_id}/read\u003c/td\u003e\n\u003ctd\u003eGet tuples from the store that matches a query, without following userset rewrite rules\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#readassertions\"\u003e\u003cstrong\u003ereadAssertions\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGET\u003c/strong\u003e /stores/{store_id}/assertions/{authorization_model_id}\u003c/td\u003e\n\u003ctd\u003eRead assertions for an authorization model ID\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#readauthorizationmodel\"\u003e\u003cstrong\u003ereadAuthorizationModel\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGET\u003c/strong\u003e /stores/{store_id}/authorization-models/{id}\u003c/td\u003e\n\u003ctd\u003eReturn a particular version of an authorization model\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#readauthorizationmodels\"\u003e\u003cstrong\u003ereadAuthorizationModels\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGET\u003c/strong\u003e /stores/{store_id}/authorization-models\u003c/td\u003e\n\u003ctd\u003eReturn all the authorization models for a particular store\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#readchanges\"\u003e\u003cstrong\u003ereadChanges\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGET\u003c/strong\u003e /stores/{store_id}/changes\u003c/td\u003e\n\u003ctd\u003eReturn a list of all the tuple changes\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#streamedlistobjects\"\u003e\u003cstrong\u003estreamedListObjects\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePOST\u003c/strong\u003e /stores/{store_id}/streamed-list-objects\u003c/td\u003e\n\u003ctd\u003eStream all objects of the given type that the user has a relation with\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#write\"\u003e\u003cstrong\u003ewrite\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePOST\u003c/strong\u003e /stores/{store_id}/write\u003c/td\u003e\n\u003ctd\u003eAdd or delete tuples from the store\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#writeassertions\"\u003e\u003cstrong\u003ewriteAssertions\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePUT\u003c/strong\u003e /stores/{store_id}/assertions/{authorization_model_id}\u003c/td\u003e\n\u003ctd\u003eUpsert assertions for an authorization model ID\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#writeauthorizationmodel\"\u003e\u003cstrong\u003ewriteAuthorizationModel\u003c/strong\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003ePOST\u003c/strong\u003e /stores/{store_id}/authorization-models\u003c/td\u003e\n\u003ctd\u003eCreate a new authorization model\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/markdown-accessiblity-table\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eModels\u003c/h3\u003e\u003ca id=\"user-content-models\" class=\"anchor\" aria-label=\"Permalink: Models\" href=\"#models\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/AbortedMessageResponse.md\"\u003eAbortedMessageResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Any.md\"\u003eAny\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Assertion.md\"\u003eAssertion\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/AssertionTupleKey.md\"\u003eAssertionTupleKey\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/AuthErrorCode.md\"\u003eAuthErrorCode\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/AuthorizationModel.md\"\u003eAuthorizationModel\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckItem.md\"\u003eBatchCheckItem\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckRequest.md\"\u003eBatchCheckRequest\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckResponse.md\"\u003eBatchCheckResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckSingleResult.md\"\u003eBatchCheckSingleResult\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/CheckError.md\"\u003eCheckError\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/CheckRequest.md\"\u003eCheckRequest\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/CheckRequestTupleKey.md\"\u003eCheckRequestTupleKey\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/CheckResponse.md\"\u003eCheckResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Computed.md\"\u003eComputed\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Condition.md\"\u003eCondition\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ConditionMetadata.md\"\u003eConditionMetadata\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ConditionParamTypeRef.md\"\u003eConditionParamTypeRef\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ConsistencyPreference.md\"\u003eConsistencyPreference\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ContextualTupleKeys.md\"\u003eContextualTupleKeys\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/CreateStoreRequest.md\"\u003eCreateStoreRequest\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/CreateStoreResponse.md\"\u003eCreateStoreResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Difference.md\"\u003eDifference\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ErrorCode.md\"\u003eErrorCode\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ExpandRequest.md\"\u003eExpandRequest\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ExpandRequestTupleKey.md\"\u003eExpandRequestTupleKey\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ExpandResponse.md\"\u003eExpandResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/FgaObject.md\"\u003eFgaObject\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ForbiddenResponse.md\"\u003eForbiddenResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/GetStoreResponse.md\"\u003eGetStoreResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/InternalErrorCode.md\"\u003eInternalErrorCode\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/InternalErrorMessageResponse.md\"\u003eInternalErrorMessageResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Leaf.md\"\u003eLeaf\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ListObjectsRequest.md\"\u003eListObjectsRequest\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ListObjectsResponse.md\"\u003eListObjectsResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ListStoresResponse.md\"\u003eListStoresResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ListUsersRequest.md\"\u003eListUsersRequest\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ListUsersResponse.md\"\u003eListUsersResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Metadata.md\"\u003eMetadata\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Node.md\"\u003eNode\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Nodes.md\"\u003eNodes\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/NotFoundErrorCode.md\"\u003eNotFoundErrorCode\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/NullValue.md\"\u003eNullValue\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ObjectRelation.md\"\u003eObjectRelation\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/PathUnknownErrorMessageResponse.md\"\u003ePathUnknownErrorMessageResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ReadAssertionsResponse.md\"\u003eReadAssertionsResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ReadAuthorizationModelResponse.md\"\u003eReadAuthorizationModelResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ReadAuthorizationModelsResponse.md\"\u003eReadAuthorizationModelsResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ReadChangesResponse.md\"\u003eReadChangesResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ReadRequest.md\"\u003eReadRequest\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ReadRequestTupleKey.md\"\u003eReadRequestTupleKey\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ReadResponse.md\"\u003eReadResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/RelationMetadata.md\"\u003eRelationMetadata\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/RelationReference.md\"\u003eRelationReference\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/RelationshipCondition.md\"\u003eRelationshipCondition\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/SourceInfo.md\"\u003eSourceInfo\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Status.md\"\u003eStatus\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Store.md\"\u003eStore\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/StreamResultOfStreamedListObjectsResponse.md\"\u003eStreamResultOfStreamedListObjectsResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/StreamedListObjectsResponse.md\"\u003eStreamedListObjectsResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Tuple.md\"\u003eTuple\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/TupleChange.md\"\u003eTupleChange\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/TupleKey.md\"\u003eTupleKey\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/TupleKeyWithoutCondition.md\"\u003eTupleKeyWithoutCondition\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/TupleOperation.md\"\u003eTupleOperation\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/TupleToUserset.md\"\u003eTupleToUserset\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/TypeDefinition.md\"\u003eTypeDefinition\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/TypeName.md\"\u003eTypeName\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/TypedWildcard.md\"\u003eTypedWildcard\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/UnauthenticatedResponse.md\"\u003eUnauthenticatedResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/UnprocessableContentErrorCode.md\"\u003eUnprocessableContentErrorCode\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/UnprocessableContentMessageResponse.md\"\u003eUnprocessableContentMessageResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/User.md\"\u003eUser\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/UserTypeFilter.md\"\u003eUserTypeFilter\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Users.md\"\u003eUsers\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Userset.md\"\u003eUserset\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/UsersetTree.md\"\u003eUsersetTree\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/UsersetTreeDifference.md\"\u003eUsersetTreeDifference\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/UsersetTreeTupleToUserset.md\"\u003eUsersetTreeTupleToUserset\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/UsersetUser.md\"\u003eUsersetUser\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/Usersets.md\"\u003eUsersets\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/ValidationErrorMessageResponse.md\"\u003eValidationErrorMessageResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/WriteAssertionsRequest.md\"\u003eWriteAssertionsRequest\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/WriteAuthorizationModelRequest.md\"\u003eWriteAuthorizationModelRequest\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/WriteAuthorizationModelResponse.md\"\u003eWriteAuthorizationModelResponse\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/WriteRequest.md\"\u003eWriteRequest\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/WriteRequestDeletes.md\"\u003eWriteRequestDeletes\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/WriteRequestWrites.md\"\u003eWriteRequestWrites\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eOpenTelemetry\u003c/h3\u003e\u003ca id=\"user-content-opentelemetry\" class=\"anchor\" aria-label=\"Permalink: OpenTelemetry\" href=\"#opentelemetry\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThis SDK supports producing metrics that can be consumed as part of an \u003ca href=\"https://opentelemetry.io/\" rel=\"nofollow\"\u003eOpenTelemetry\u003c/a\u003e setup. For more information, please see \u003ca href=\"https://github.com/openfga/java-sdk/blob/main/docs/OpenTelemetry.md\"\u003ethe documentation\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eContributing\u003c/h2\u003e\u003ca id=\"user-content-contributing\" class=\"anchor\" aria-label=\"Permalink: Contributing\" href=\"#contributing\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSee \u003ca href=\"/openfga/java-sdk/blob/main/CONTRIBUTING.md\"\u003eCONTRIBUTING\u003c/a\u003e for details.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAuthor\u003c/h2\u003e\u003ca id=\"user-content-author\" class=\"anchor\" aria-label=\"Permalink: Author\" href=\"#author\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/openfga\"\u003eOpenFGA\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eLicense\u003c/h2\u003e\u003ca id=\"user-content-license\" class=\"anchor\" aria-label=\"Permalink: License\" href=\"#license\"\u003e\u003csvg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThis project is licensed under the Apache-2.0 license. See the \u003ca href=\"https://github.com/openfga/java-sdk/blob/main/LICENSE\"\u003eLICENSE\u003c/a\u003e file for more info.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe code in this repo was auto generated by \u003ca href=\"https://github.com/OpenAPITools/openapi-generator\"\u003eOpenAPI Generator\u003c/a\u003e from a template based on the \u003ca href=\"https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/Java\"\u003eJava template\u003c/a\u003e, licensed under the \u003ca href=\"https://github.com/OpenAPITools/openapi-generator/blob/master/LICENSE\"\u003eApache License 2.0\u003c/a\u003e.\u003c/p\u003e\n\u003c/article\u003e","richTextTruncated":false,"renderedFileInfo":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"Java SDK for OpenFGA","fully_qualified_name":"Java SDK for OpenFGA","kind":"section_1","ident_start":2,"ident_end":22,"extent_start":0,"extent_end":64779,"ident_utf16":{"start":{"line_number":0,"utf16_col":2},"end":{"line_number":0,"utf16_col":22}},"extent_utf16":{"start":{"line_number":0,"utf16_col":0},"end":{"line_number":1517,"utf16_col":0}}},{"name":"Table of Contents","fully_qualified_name":"Table of Contents","kind":"section_2","ident_start":2783,"ident_end":2800,"extent_start":2780,"extent_end":4597,"ident_utf16":{"start":{"line_number":14,"utf16_col":3},"end":{"line_number":14,"utf16_col":20}},"extent_utf16":{"start":{"line_number":14,"utf16_col":0},"end":{"line_number":58,"utf16_col":0}}},{"name":"About","fully_qualified_name":"About","kind":"section_2","ident_start":4600,"ident_end":4605,"extent_start":4597,"extent_end":5294,"ident_utf16":{"start":{"line_number":58,"utf16_col":3},"end":{"line_number":58,"utf16_col":8}},"extent_utf16":{"start":{"line_number":58,"utf16_col":0},"end":{"line_number":65,"utf16_col":0}}},{"name":"Resources","fully_qualified_name":"Resources","kind":"section_2","ident_start":5297,"ident_end":5306,"extent_start":5294,"extent_end":5628,"ident_utf16":{"start":{"line_number":65,"utf16_col":3},"end":{"line_number":65,"utf16_col":12}},"extent_utf16":{"start":{"line_number":65,"utf16_col":0},"end":{"line_number":74,"utf16_col":0}}},{"name":"Installation","fully_qualified_name":"Installation","kind":"section_2","ident_start":5631,"ident_end":5643,"extent_start":5628,"extent_end":6823,"ident_utf16":{"start":{"line_number":74,"utf16_col":3},"end":{"line_number":74,"utf16_col":15}},"extent_utf16":{"start":{"line_number":74,"utf16_col":0},"end":{"line_number":135,"utf16_col":0}}},{"name":"Getting Started","fully_qualified_name":"Getting Started","kind":"section_2","ident_start":6826,"ident_end":6841,"extent_start":6823,"extent_end":64112,"ident_utf16":{"start":{"line_number":135,"utf16_col":3},"end":{"line_number":135,"utf16_col":18}},"extent_utf16":{"start":{"line_number":135,"utf16_col":0},"end":{"line_number":1503,"utf16_col":0}}},{"name":"Initializing the API Client","fully_qualified_name":"Initializing the API Client","kind":"section_3","ident_start":6847,"ident_end":6874,"extent_start":6843,"extent_end":13016,"ident_utf16":{"start":{"line_number":137,"utf16_col":4},"end":{"line_number":137,"utf16_col":31}},"extent_utf16":{"start":{"line_number":137,"utf16_col":0},"end":{"line_number":254,"utf16_col":0}}},{"name":"No Credentials","fully_qualified_name":"No Credentials","kind":"section_4","ident_start":7612,"ident_end":7626,"extent_start":7607,"extent_end":8439,"ident_utf16":{"start":{"line_number":145,"utf16_col":5},"end":{"line_number":145,"utf16_col":19}},"extent_utf16":{"start":{"line_number":145,"utf16_col":0},"end":{"line_number":166,"utf16_col":0}}},{"name":"API Token","fully_qualified_name":"API Token","kind":"section_4","ident_start":8444,"ident_end":8453,"extent_start":8439,"extent_end":9577,"ident_utf16":{"start":{"line_number":166,"utf16_col":5},"end":{"line_number":166,"utf16_col":14}},"extent_utf16":{"start":{"line_number":166,"utf16_col":0},"end":{"line_number":192,"utf16_col":0}}},{"name":"Client Credentials","fully_qualified_name":"Client Credentials","kind":"section_4","ident_start":9582,"ident_end":9600,"extent_start":9577,"extent_end":11017,"ident_utf16":{"start":{"line_number":192,"utf16_col":5},"end":{"line_number":192,"utf16_col":23}},"extent_utf16":{"start":{"line_number":192,"utf16_col":0},"end":{"line_number":222,"utf16_col":0}}},{"name":"OAuth2 Client Credentials","fully_qualified_name":"OAuth2 Client Credentials","kind":"section_4","ident_start":11022,"ident_end":11047,"extent_start":11017,"extent_end":13016,"ident_utf16":{"start":{"line_number":222,"utf16_col":5},"end":{"line_number":222,"utf16_col":30}},"extent_utf16":{"start":{"line_number":222,"utf16_col":0},"end":{"line_number":254,"utf16_col":0}}},{"name":"Custom Headers","fully_qualified_name":"Custom Headers","kind":"section_3","ident_start":13020,"ident_end":13034,"extent_start":13016,"extent_end":15343,"ident_utf16":{"start":{"line_number":254,"utf16_col":4},"end":{"line_number":254,"utf16_col":18}},"extent_utf16":{"start":{"line_number":254,"utf16_col":0},"end":{"line_number":318,"utf16_col":0}}},{"name":"Default Headers","fully_qualified_name":"Default Headers","kind":"section_4","ident_start":13041,"ident_end":13056,"extent_start":13036,"extent_end":13969,"ident_utf16":{"start":{"line_number":256,"utf16_col":5},"end":{"line_number":256,"utf16_col":20}},"extent_utf16":{"start":{"line_number":256,"utf16_col":0},"end":{"line_number":284,"utf16_col":0}}},{"name":"Per-request Headers","fully_qualified_name":"Per-request Headers","kind":"section_4","ident_start":13974,"ident_end":13993,"extent_start":13969,"extent_end":15343,"ident_utf16":{"start":{"line_number":284,"utf16_col":5},"end":{"line_number":284,"utf16_col":24}},"extent_utf16":{"start":{"line_number":284,"utf16_col":0},"end":{"line_number":318,"utf16_col":0}}},{"name":"Get your Store ID","fully_qualified_name":"Get your Store ID","kind":"section_3","ident_start":15347,"ident_end":15364,"extent_start":15343,"extent_end":15699,"ident_utf16":{"start":{"line_number":318,"utf16_col":4},"end":{"line_number":318,"utf16_col":21}},"extent_utf16":{"start":{"line_number":318,"utf16_col":0},"end":{"line_number":324,"utf16_col":0}}},{"name":"Calling the API","fully_qualified_name":"Calling the API","kind":"section_3","ident_start":15703,"ident_end":15718,"extent_start":15699,"extent_end":45523,"ident_utf16":{"start":{"line_number":324,"utf16_col":4},"end":{"line_number":324,"utf16_col":19}},"extent_utf16":{"start":{"line_number":324,"utf16_col":0},"end":{"line_number":1116,"utf16_col":0}}},{"name":"Stores","fully_qualified_name":"Stores","kind":"section_4","ident_start":15725,"ident_end":15731,"extent_start":15720,"extent_end":18043,"ident_utf16":{"start":{"line_number":326,"utf16_col":5},"end":{"line_number":326,"utf16_col":11}},"extent_utf16":{"start":{"line_number":326,"utf16_col":0},"end":{"line_number":401,"utf16_col":0}}},{"name":"List Stores","fully_qualified_name":"List Stores","kind":"section_5","ident_start":15739,"ident_end":15750,"extent_start":15733,"extent_end":16341,"ident_utf16":{"start":{"line_number":328,"utf16_col":6},"end":{"line_number":328,"utf16_col":17}},"extent_utf16":{"start":{"line_number":328,"utf16_col":0},"end":{"line_number":346,"utf16_col":0}}},{"name":"Create Store","fully_qualified_name":"Create Store","kind":"section_5","ident_start":16347,"ident_end":16359,"extent_start":16341,"extent_end":17007,"ident_utf16":{"start":{"line_number":346,"utf16_col":6},"end":{"line_number":346,"utf16_col":18}},"extent_utf16":{"start":{"line_number":346,"utf16_col":0},"end":{"line_number":369,"utf16_col":0}}},{"name":"Get Store","fully_qualified_name":"Get Store","kind":"section_5","ident_start":17013,"ident_end":17022,"extent_start":17007,"extent_end":17609,"ident_utf16":{"start":{"line_number":369,"utf16_col":6},"end":{"line_number":369,"utf16_col":15}},"extent_utf16":{"start":{"line_number":369,"utf16_col":0},"end":{"line_number":386,"utf16_col":0}}},{"name":"Delete Store","fully_qualified_name":"Delete Store","kind":"section_5","ident_start":17615,"ident_end":17627,"extent_start":17609,"extent_end":18043,"ident_utf16":{"start":{"line_number":386,"utf16_col":6},"end":{"line_number":386,"utf16_col":18}},"extent_utf16":{"start":{"line_number":386,"utf16_col":0},"end":{"line_number":401,"utf16_col":0}}},{"name":"Authorization Models","fully_qualified_name":"Authorization Models","kind":"section_4","ident_start":18048,"ident_end":18068,"extent_start":18043,"extent_end":20880,"ident_utf16":{"start":{"line_number":401,"utf16_col":5},"end":{"line_number":401,"utf16_col":25}},"extent_utf16":{"start":{"line_number":401,"utf16_col":0},"end":{"line_number":472,"utf16_col":0}}},{"name":"Read Authorization Models","fully_qualified_name":"Read Authorization Models","kind":"section_5","ident_start":18076,"ident_end":18101,"extent_start":18070,"extent_end":18846,"ident_utf16":{"start":{"line_number":403,"utf16_col":6},"end":{"line_number":403,"utf16_col":31}},"extent_utf16":{"start":{"line_number":403,"utf16_col":0},"end":{"line_number":423,"utf16_col":0}}},{"name":"Write Authorization Model","fully_qualified_name":"Write Authorization Model","kind":"section_5","ident_start":18852,"ident_end":18877,"extent_start":18846,"extent_end":20880,"ident_utf16":{"start":{"line_number":423,"utf16_col":6},"end":{"line_number":423,"utf16_col":31}},"extent_utf16":{"start":{"line_number":423,"utf16_col":0},"end":{"line_number":472,"utf16_col":0}}},{"name":"Read a Single Authorization Model","fully_qualified_name":"Read a Single Authorization Model","kind":"section_4","ident_start":20885,"ident_end":20918,"extent_start":20880,"extent_end":22693,"ident_utf16":{"start":{"line_number":472,"utf16_col":5},"end":{"line_number":472,"utf16_col":38}},"extent_utf16":{"start":{"line_number":472,"utf16_col":0},"end":{"line_number":510,"utf16_col":0}}},{"name":"Read the Latest Authorization Model","fully_qualified_name":"Read the Latest Authorization Model","kind":"section_5","ident_start":21839,"ident_end":21874,"extent_start":21833,"extent_end":22693,"ident_utf16":{"start":{"line_number":493,"utf16_col":6},"end":{"line_number":493,"utf16_col":41}},"extent_utf16":{"start":{"line_number":493,"utf16_col":0},"end":{"line_number":510,"utf16_col":0}}},{"name":"Relationship Tuples","fully_qualified_name":"Relationship Tuples","kind":"section_4","ident_start":22698,"ident_end":22717,"extent_start":22693,"extent_end":31051,"ident_utf16":{"start":{"line_number":510,"utf16_col":5},"end":{"line_number":510,"utf16_col":24}},"extent_utf16":{"start":{"line_number":510,"utf16_col":0},"end":{"line_number":728,"utf16_col":0}}},{"name":"Read Relationship Tuple Changes (Watch)","fully_qualified_name":"Read Relationship Tuple Changes (Watch)","kind":"section_5","ident_start":22725,"ident_end":22764,"extent_start":22719,"extent_end":23684,"ident_utf16":{"start":{"line_number":512,"utf16_col":6},"end":{"line_number":512,"utf16_col":45}},"extent_utf16":{"start":{"line_number":512,"utf16_col":0},"end":{"line_number":537,"utf16_col":0}}},{"name":"Read Relationship Tuples","fully_qualified_name":"Read Relationship Tuples","kind":"section_5","ident_start":23690,"ident_end":23714,"extent_start":23684,"extent_end":25456,"ident_utf16":{"start":{"line_number":537,"utf16_col":6},"end":{"line_number":537,"utf16_col":30}},"extent_utf16":{"start":{"line_number":537,"utf16_col":0},"end":{"line_number":581,"utf16_col":0}}},{"name":"Write (Create and Delete) Relationship Tuples","fully_qualified_name":"Write (Create and Delete) Relationship Tuples","kind":"section_5","ident_start":25462,"ident_end":25507,"extent_start":25456,"extent_end":31051,"ident_utf16":{"start":{"line_number":581,"utf16_col":6},"end":{"line_number":581,"utf16_col":51}},"extent_utf16":{"start":{"line_number":581,"utf16_col":0},"end":{"line_number":728,"utf16_col":0}}},{"name":"Transaction mode (default)","fully_qualified_name":"Transaction mode (default)","kind":"section_6","ident_start":25763,"ident_end":25789,"extent_start":25756,"extent_end":27100,"ident_utf16":{"start":{"line_number":589,"utf16_col":7},"end":{"line_number":589,"utf16_col":33}},"extent_utf16":{"start":{"line_number":589,"utf16_col":0},"end":{"line_number":623,"utf16_col":0}}},{"name":"Non-transaction mode","fully_qualified_name":"Non-transaction mode","kind":"section_6","ident_start":27107,"ident_end":27127,"extent_start":27100,"extent_end":28559,"ident_utf16":{"start":{"line_number":623,"utf16_col":7},"end":{"line_number":623,"utf16_col":27}},"extent_utf16":{"start":{"line_number":623,"utf16_col":0},"end":{"line_number":658,"utf16_col":0}}},{"name":"Conflict options for write operations","fully_qualified_name":"Conflict options for write operations","kind":"section_6","ident_start":28566,"ident_end":28603,"extent_start":28559,"extent_end":31051,"ident_utf16":{"start":{"line_number":658,"utf16_col":7},"end":{"line_number":658,"utf16_col":44}},"extent_utf16":{"start":{"line_number":658,"utf16_col":0},"end":{"line_number":728,"utf16_col":0}}},{"name":"Relationship Queries","fully_qualified_name":"Relationship Queries","kind":"section_4","ident_start":31056,"ident_end":31076,"extent_start":31051,"extent_end":44133,"ident_utf16":{"start":{"line_number":728,"utf16_col":5},"end":{"line_number":728,"utf16_col":25}},"extent_utf16":{"start":{"line_number":728,"utf16_col":0},"end":{"line_number":1075,"utf16_col":0}}},{"name":"Check","fully_qualified_name":"Check","kind":"section_5","ident_start":31084,"ident_end":31089,"extent_start":31078,"extent_end":31874,"ident_utf16":{"start":{"line_number":730,"utf16_col":6},"end":{"line_number":730,"utf16_col":11}},"extent_utf16":{"start":{"line_number":730,"utf16_col":0},"end":{"line_number":752,"utf16_col":0}}},{"name":"Batch Check","fully_qualified_name":"Batch Check","kind":"section_5","ident_start":31880,"ident_end":31891,"extent_start":31874,"extent_end":39505,"ident_utf16":{"start":{"line_number":752,"utf16_col":6},"end":{"line_number":752,"utf16_col":17}},"extent_utf16":{"start":{"line_number":752,"utf16_col":0},"end":{"line_number":952,"utf16_col":0}}},{"name":"Expand","fully_qualified_name":"Expand","kind":"section_5","ident_start":39511,"ident_end":39517,"extent_start":39505,"extent_end":40429,"ident_utf16":{"start":{"line_number":952,"utf16_col":6},"end":{"line_number":952,"utf16_col":12}},"extent_utf16":{"start":{"line_number":952,"utf16_col":0},"end":{"line_number":974,"utf16_col":0}}},{"name":"List Objects","fully_qualified_name":"List Objects","kind":"section_5","ident_start":40435,"ident_end":40447,"extent_start":40429,"extent_end":41508,"ident_utf16":{"start":{"line_number":974,"utf16_col":6},"end":{"line_number":974,"utf16_col":18}},"extent_utf16":{"start":{"line_number":974,"utf16_col":0},"end":{"line_number":1003,"utf16_col":0}}},{"name":"List Relations","fully_qualified_name":"List Relations","kind":"section_5","ident_start":41514,"ident_end":41528,"extent_start":41508,"extent_end":42631,"ident_utf16":{"start":{"line_number":1003,"utf16_col":6},"end":{"line_number":1003,"utf16_col":20}},"extent_utf16":{"start":{"line_number":1003,"utf16_col":0},"end":{"line_number":1033,"utf16_col":0}}},{"name":"List Users","fully_qualified_name":"List Users","kind":"section_5","ident_start":42637,"ident_end":42647,"extent_start":42631,"extent_end":44133,"ident_utf16":{"start":{"line_number":1033,"utf16_col":6},"end":{"line_number":1033,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1033,"utf16_col":0},"end":{"line_number":1075,"utf16_col":0}}},{"name":"Assertions","fully_qualified_name":"Assertions","kind":"section_4","ident_start":44138,"ident_end":44148,"extent_start":44133,"extent_end":45523,"ident_utf16":{"start":{"line_number":1075,"utf16_col":5},"end":{"line_number":1075,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1075,"utf16_col":0},"end":{"line_number":1116,"utf16_col":0}}},{"name":"Read Assertions","fully_qualified_name":"Read Assertions","kind":"section_5","ident_start":44156,"ident_end":44171,"extent_start":44150,"extent_end":44765,"ident_utf16":{"start":{"line_number":1077,"utf16_col":6},"end":{"line_number":1077,"utf16_col":21}},"extent_utf16":{"start":{"line_number":1077,"utf16_col":0},"end":{"line_number":1093,"utf16_col":0}}},{"name":"Write Assertions","fully_qualified_name":"Write Assertions","kind":"section_5","ident_start":44771,"ident_end":44787,"extent_start":44765,"extent_end":45523,"ident_utf16":{"start":{"line_number":1093,"utf16_col":6},"end":{"line_number":1093,"utf16_col":22}},"extent_utf16":{"start":{"line_number":1093,"utf16_col":0},"end":{"line_number":1116,"utf16_col":0}}},{"name":"Calling Other Endpoints","fully_qualified_name":"Calling Other Endpoints","kind":"section_3","ident_start":45527,"ident_end":45550,"extent_start":45523,"extent_end":49666,"ident_utf16":{"start":{"line_number":1116,"utf16_col":4},"end":{"line_number":1116,"utf16_col":27}},"extent_utf16":{"start":{"line_number":1116,"utf16_col":0},"end":{"line_number":1223,"utf16_col":0}}},{"name":"Example: Calling a new \"Custom Endpoint\" endpoint and handling raw response","fully_qualified_name":"Example: Calling a new \"Custom Endpoint\" endpoint and handling raw response","kind":"section_4","ident_start":46814,"ident_end":46889,"extent_start":46809,"extent_end":47318,"ident_utf16":{"start":{"line_number":1151,"utf16_col":5},"end":{"line_number":1151,"utf16_col":80}},"extent_utf16":{"start":{"line_number":1151,"utf16_col":0},"end":{"line_number":1165,"utf16_col":0}}},{"name":"Example: Calling a new \"Custom Endpoint\" endpoint and decoding response into a struct","fully_qualified_name":"Example: Calling a new \"Custom Endpoint\" endpoint and decoding response into a struct","kind":"section_4","ident_start":47323,"ident_end":47408,"extent_start":47318,"extent_end":48384,"ident_utf16":{"start":{"line_number":1165,"utf16_col":5},"end":{"line_number":1165,"utf16_col":90}},"extent_utf16":{"start":{"line_number":1165,"utf16_col":0},"end":{"line_number":1193,"utf16_col":0}}},{"name":"Calling a streaming endpoint","fully_qualified_name":"Calling a streaming endpoint","kind":"section_4","ident_start":48389,"ident_end":48417,"extent_start":48384,"extent_end":49505,"ident_utf16":{"start":{"line_number":1193,"utf16_col":5},"end":{"line_number":1193,"utf16_col":33}},"extent_utf16":{"start":{"line_number":1193,"utf16_col":0},"end":{"line_number":1217,"utf16_col":0}}},{"name":"Documentation","fully_qualified_name":"Documentation","kind":"section_4","ident_start":49510,"ident_end":49523,"extent_start":49505,"extent_end":49666,"ident_utf16":{"start":{"line_number":1217,"utf16_col":5},"end":{"line_number":1217,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1217,"utf16_col":0},"end":{"line_number":1223,"utf16_col":0}}},{"name":"Retries","fully_qualified_name":"Retries","kind":"section_3","ident_start":49670,"ident_end":49677,"extent_start":49666,"extent_end":52666,"ident_utf16":{"start":{"line_number":1223,"utf16_col":4},"end":{"line_number":1223,"utf16_col":11}},"extent_utf16":{"start":{"line_number":1223,"utf16_col":0},"end":{"line_number":1293,"utf16_col":0}}},{"name":"Retry Behavior","fully_qualified_name":"Retry Behavior","kind":"section_4","ident_start":49916,"ident_end":49930,"extent_start":49911,"extent_end":50249,"ident_utf16":{"start":{"line_number":1227,"utf16_col":5},"end":{"line_number":1227,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1227,"utf16_col":0},"end":{"line_number":1234,"utf16_col":0}}},{"name":"Delay Calculation","fully_qualified_name":"Delay Calculation","kind":"section_4","ident_start":50254,"ident_end":50271,"extent_start":50249,"extent_end":50603,"ident_utf16":{"start":{"line_number":1234,"utf16_col":5},"end":{"line_number":1234,"utf16_col":22}},"extent_utf16":{"start":{"line_number":1234,"utf16_col":0},"end":{"line_number":1240,"utf16_col":0}}},{"name":"Configuration","fully_qualified_name":"Configuration","kind":"section_4","ident_start":50608,"ident_end":50621,"extent_start":50603,"extent_end":51990,"ident_utf16":{"start":{"line_number":1240,"utf16_col":5},"end":{"line_number":1240,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1240,"utf16_col":0},"end":{"line_number":1269,"utf16_col":0}}},{"name":"Error Handling with Retry Information","fully_qualified_name":"Error Handling with Retry Information","kind":"section_4","ident_start":51995,"ident_end":52032,"extent_start":51990,"extent_end":52666,"ident_utf16":{"start":{"line_number":1269,"utf16_col":5},"end":{"line_number":1269,"utf16_col":42}},"extent_utf16":{"start":{"line_number":1269,"utf16_col":0},"end":{"line_number":1293,"utf16_col":0}}},{"name":"API Endpoints","fully_qualified_name":"API Endpoints","kind":"section_3","ident_start":52670,"ident_end":52683,"extent_start":52666,"extent_end":55524,"ident_utf16":{"start":{"line_number":1293,"utf16_col":4},"end":{"line_number":1293,"utf16_col":17}},"extent_utf16":{"start":{"line_number":1293,"utf16_col":0},"end":{"line_number":1318,"utf16_col":0}}},{"name":"Models","fully_qualified_name":"Models","kind":"section_3","ident_start":55528,"ident_end":55534,"extent_start":55524,"extent_end":63849,"ident_utf16":{"start":{"line_number":1318,"utf16_col":4},"end":{"line_number":1318,"utf16_col":10}},"extent_utf16":{"start":{"line_number":1318,"utf16_col":0},"end":{"line_number":1499,"utf16_col":0}}},{"name":"OpenTelemetry","fully_qualified_name":"OpenTelemetry","kind":"section_3","ident_start":63853,"ident_end":63866,"extent_start":63849,"extent_end":64112,"ident_utf16":{"start":{"line_number":1499,"utf16_col":4},"end":{"line_number":1499,"utf16_col":17}},"extent_utf16":{"start":{"line_number":1499,"utf16_col":0},"end":{"line_number":1503,"utf16_col":0}}},{"name":"Contributing","fully_qualified_name":"Contributing","kind":"section_2","ident_start":64115,"ident_end":64127,"extent_start":64112,"extent_end":64181,"ident_utf16":{"start":{"line_number":1503,"utf16_col":3},"end":{"line_number":1503,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1503,"utf16_col":0},"end":{"line_number":1507,"utf16_col":0}}},{"name":"Author","fully_qualified_name":"Author","kind":"section_2","ident_start":64184,"ident_end":64190,"extent_start":64181,"extent_end":64231,"ident_utf16":{"start":{"line_number":1507,"utf16_col":3},"end":{"line_number":1507,"utf16_col":9}},"extent_utf16":{"start":{"line_number":1507,"utf16_col":0},"end":{"line_number":1511,"utf16_col":0}}},{"name":"License","fully_qualified_name":"License","kind":"section_2","ident_start":64234,"ident_end":64241,"extent_start":64231,"extent_end":64779,"ident_utf16":{"start":{"line_number":1511,"utf16_col":3},"end":{"line_number":1511,"utf16_col":10}},"extent_utf16":{"start":{"line_number":1511,"utf16_col":0},"end":{"line_number":1517,"utf16_col":0}}}]}},"codeViewLayoutRoute":{"repo":{"id":670224534,"defaultBranch":"main","name":"java-sdk","ownerLogin":"openfga","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2023-07-24T15:05:21.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/103602580?v=4","public":true,"private":false,"isOrgOwned":true,"isArchived":false},"currentUser":null,"uploadToken":"53apQ92XWWnMkiqnnuZ2Cqdyvv6kDXmwJ1XA14sKzTLPACUFcn5REOcaR9CW9nllUR2zsc8T9V3pa-ZsyVqr4A","allShortcutsEnabled":false,"treeExpanded":true,"path":"README.md","symbolsExpanded":false,"refInfo":{"name":"main","listCacheKey":"v0:1789608748.0","canEdit":false,"currentOid":"209bd3d3ddc25b9f82e242b3cd8e0533acd4cc8b"},"helpUrl":"https://docs.github.com","githubDevUrl":null},"codeViewFileTreeLayoutRoute":{"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".openapi-generator","path":".openapi-generator","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"gradle","path":"gradle","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":".codecov.yml","path":".codecov.yml","contentType":"file"},{"name":".fossa.yml","path":".fossa.yml","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".openapi-generator-ignore","path":".openapi-generator-ignore","contentType":"file"},{"name":".release-please-manifest.json","path":".release-please-manifest.json","contentType":"file"},{"name":"CHANGELOG.md","path":"CHANGELOG.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"NOTICE.txt","path":"NOTICE.txt","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"RELEASE.md","path":"RELEASE.md","contentType":"file"},{"name":"build.gradle","path":"build.gradle","contentType":"file"},{"name":"gradle.properties","path":"gradle.properties","contentType":"file"},{"name":"gradlew","path":"gradlew","contentType":"file"},{"name":"gradlew.bat","path":"gradlew.bat","contentType":"file"},{"name":"publish.gradle","path":"publish.gradle","contentType":"file"},{"name":"release-please-config.json","path":"release-please-config.json","contentType":"file"},{"name":"settings.gradle","path":"settings.gradle","contentType":"file"}],"totalCount":25}},"fileTreeProcessingTime":38.323837,"foldersToFetch":[]},"codeViewBlobLayoutRoute":{"codeLineWrapEnabled":false,"refInfo":{"name":"main","listCacheKey":"v0:1789608748.0","canEdit":false,"refType":"branch","currentOid":"209bd3d3ddc25b9f82e242b3cd8e0533acd4cc8b","canEditOnDefaultBranch":false,"fileExistsOnDefault":true},"path":"README.md","blob":{"copilotSWEAgentEnabled":false,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/openfga/java-sdk/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"README.md","displayUrl":"https://github.com/openfga/java-sdk/blob/main/README.md?raw=true","headerInfo":{"blobSize":"63.3 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"5aa1902","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fopenfga%2Fjava-sdk%2Fblob%2Fmain%2FREADME.md","isCSV":false,"isRichtext":true,"lineInfo":{"truncatedLoc":"1517","truncatedSloc":"1127"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"isIssueTemplate":false,"isDiscussionTemplate":false,"language":"Markdown","languageID":222,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/openfga/java-sdk/blob/main/README.md","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/openfga/java-sdk/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/openfga/java-sdk/raw/refs/heads/main/README.md","renderImageOrRaw":false,"shortPath":null,"symbolsEnabled":true,"tabSize":4,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null},"copilotInfo":null,"copilotAccessAllowed":false,"copilotSpacesEnabled":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"isMarketplaceEnabled":true},"codeViewBlobLayoutRoute.StyledBlob":{"rawLines":["# Java SDK for OpenFGA","","[![Maven Central](https://img.shields.io/maven-central/v/dev.openfga/openfga-sdk.svg?label=Maven%20Central)](https://central.sonatype.com/artifact/dev.openfga/openfga-sdk)","[![Javadoc](https://javadoc.io/badge2/dev.openfga/openfga-sdk/javadoc.svg)](https://javadoc.io/doc/dev.openfga/openfga-sdk)","[![Socket Badge](https://badge.socket.dev/maven/package/dev.openfga:openfga-sdk/0.10.0)](https://socket.dev/maven/package/dev.openfga:openfga-sdk) \u003c!-- x-release-please-version --\u003e","[![DeepWiki](https://img.shields.io/badge/DeepWiki-openfga%2Fjava--sdk-blue.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAyCAYAAAAnWDnqAAAAAXNSR0IArs4c6QAAA05JREFUaEPtmUtyEzEQhtWTQyQLHNak2AB7ZnyXZMEjXMGeK/AIi+QuHrMnbChYY7MIh8g01fJoopFb0uhhEqqcbWTp06/uv1saEDv4O3n3dV60RfP947Mm9/SQc0ICFQgzfc4CYZoTPAswgSJCCUJUnAAoRHOAUOcATwbmVLWdGoH//PB8mnKqScAhsD0kYP3j/Yt5LPQe2KvcXmGvRHcDnpxfL2zOYJ1mFwrryWTz0advv1Ut4CJgf5uhDuDj5eUcAUoahrdY/56ebRWeraTjMt/00Sh3UDtjgHtQNHwcRGOC98BJEAEymycmYcWwOprTgcB6VZ5JK5TAJ+fXGLBm3FDAmn6oPPjR4rKCAoJCal2eAiQp2x0vxTPB3ALO2CRkwmDy5WohzBDwSEFKRwPbknEggCPB/imwrycgxX2NzoMCHhPkDwqYMr9tRcP5qNrMZHkVnOjRMWwLCcr8ohBVb1OMjxLwGCvjTikrsBOiA6fNyCrm8V1rP93iVPpwaE+gO0SsWmPiXB+jikdf6SizrT5qKasx5j8ABbHpFTx+vFXp9EnYQmLx02h1QTTrl6eDqxLnGjporxl3NL3agEvXdT0WmEost648sQOYAeJS9Q7bfUVoMGnjo4AZdUMQku50McDcMWcBPvr0SzbTAFDfvJqwLzgxwATnCgnp4wDl6Aa+Ax283gghmj+vj7feE2KBBRMW3FzOpLOADl0Isb5587h/U4gGvkt5v60Z1VLG8BhYjbzRwyQZemwAd6cCR5/XFWLYZRIMpX39AR0tjaGGiGzLVyhse5C9RKC6ai42ppWPKiBagOvaYk8lO7DajerabOZP46Lby5wKjw1HCRx7p9sVMOWGzb/vA1hwiWc6jm3MvQDTogQkiqIhJV0nBQBTU+3okKCFDy9WwferkHjtxib7t3xIUQtHxnIwtx4mpg26/HfwVNVDb4oI9RHmx5WGelRVlrtiw43zboCLaxv46AZeB3IlTkwouebTr1y2NjSpHz68WNFjHvupy3q8TFn3Hos2IAk4Ju5dCo8B3wP7VPr/FGaKiG+T+v+TQqIrOqMTL1VdWV1DdmcbO8KXBz6esmYWYKPwDL5b5FA1a0hwapHiom0r/cKaoqr+27/XcrS5UwSMbQAAAABJRU5ErkJggg==)](https://deepwiki.com/openfga/java-sdk)","[![Release](https://img.shields.io/github/v/release/openfga/java-sdk?sort=semver\u0026color=green)](https://github.com/openfga/java-sdk/releases)","[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenfga%2Fjava-sdk.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenfga%2Fjava-sdk?ref=badge_shield)","[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/openfga/java-sdk/badge)](https://securityscorecards.dev/viewer/?uri=github.com/openfga/java-sdk)","[![Join our community](https://img.shields.io/badge/slack-cncf_%23openfga-40abb8.svg?logo=slack)](https://openfga.dev/community)","[![X](https://img.shields.io/twitter/follow/openfga?color=%23179CF0\u0026logo=x\u0026style=flat-square \"@openfga on X\")](https://x.com/openfga)","","This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).","","## Table of Contents","","- [About OpenFGA](#about)","- [Resources](#resources)","- [Installation](#installation)","- [Getting Started](#getting-started)","  - [Initializing the API Client](#initializing-the-api-client)","  - [Custom Headers](#custom-headers)","  - [Get your Store ID](#get-your-store-id)","  - [Calling the API](#calling-the-api)","    - [Stores](#stores)","      - [List All Stores](#list-stores)","      - [Create a Store](#create-store)","      - [Get a Store](#get-store)","      - [Delete a Store](#delete-store)","    - [Authorization Models](#authorization-models)","      - [Read Authorization Models](#read-authorization-models)","      - [Write Authorization Model](#write-authorization-model)","      - [Read a Single Authorization Model](#read-a-single-authorization-model)","      - [Read the Latest Authorization Model](#read-the-latest-authorization-model)","    - [Relationship Tuples](#relationship-tuples)","      - [Read Relationship Tuple Changes (Watch)](#read-relationship-tuple-changes-watch)","      - [Read Relationship Tuples](#read-relationship-tuples)","      - [Write (Create and Delete) Relationship Tuples](#write-create-and-delete-relationship-tuples)","    - [Relationship Queries](#relationship-queries)","      - [Check](#check)","      - [Batch Check](#batch-check)","      - [Expand](#expand)","      - [List Objects](#list-objects)","      - [List Relations](#list-relations)","      - [List Users](#list-users)","    - [Assertions](#assertions)","      - [Read Assertions](#read-assertions)","      - [Write Assertions](#write-assertions)","  - [Calling Other Endpoints](#calling-other-endpoints)","  - [Retries](#retries)","  - [API Endpoints](#api-endpoints)","  - [Models](#models)","  - [OpenTelemetry](#opentelemetry)","- [Contributing](#contributing)","  - [Issues](#issues)","  - [Pull Requests](#pull-requests)","- [License](#license)","","## About","","[OpenFGA](https://openfga.dev) is an open source Fine-Grained Authorization solution inspired by [Google's Zanzibar paper](https://research.google/pubs/pub48190/). It was created by the FGA team at [Auth0](https://auth0.com) based on [Auth0 Fine-Grained Authorization (FGA)](https://fga.dev), available under [a permissive license (Apache-2)](https://github.com/openfga/rfcs/blob/main/LICENSE) and welcomes community contributions.","","OpenFGA is designed to make it easy for application builders to model their permission layer, and to add and integrate fine-grained authorization into their applications. OpenFGA’s design is optimized for reliability and low latency at a high scale.","","","## Resources","","- [OpenFGA Documentation](https://openfga.dev/docs)","- [OpenFGA API Documentation](https://openfga.dev/api/service)","- [X](https://x.com/openfga)","- [OpenFGA Community](https://openfga.dev/community)","- [Zanzibar Academy](https://zanzibar.academy)","- [Google's Zanzibar Paper (2019)](https://research.google/pubs/pub48190/)","","## Installation","","The OpenFGA Java SDK is available on [Maven Central](https://central.sonatype.com/).","","The OpenFGA Java SDK currently supports **Java 17** as the minimum JDK version.","","It can be used with the following:","","* Gradle (Groovy)","","\u003c!-- x-release-please-start-version --\u003e","```groovy","implementation 'dev.openfga:openfga-sdk:0.10.0'","```","\u003c!-- x-release-please-end --\u003e","","* Gradle (Kotlin)","","\u003c!-- x-release-please-start-version --\u003e","```kotlin","implementation(\"dev.openfga:openfga-sdk:0.10.0\")","```","\u003c!-- x-release-please-end --\u003e","","* Apache Maven","","\u003c!-- x-release-please-start-version --\u003e","```xml","\u003cdependency\u003e","    \u003cgroupId\u003edev.openfga\u003c/groupId\u003e","    \u003cartifactId\u003eopenfga-sdk\u003c/artifactId\u003e","    \u003cversion\u003e0.10.0\u003c/version\u003e","\u003c/dependency\u003e","```","\u003c!-- x-release-please-end --\u003e","","* Ivy","","\u003c!-- x-release-please-start-version --\u003e","```xml","\u003cdependency org=\"dev.openfga\" name=\"openfga-sdk\" rev=\"0.10.0\"/\u003e","```","\u003c!-- x-release-please-end --\u003e","","* SBT","","\u003c!-- x-release-please-start-version --\u003e","```scala","libraryDependencies += \"dev.openfga\" % \"openfga-sdk\" % \"0.10.0\"","```","\u003c!-- x-release-please-end --\u003e","","* Leiningen","","\u003c!-- x-release-please-start-version --\u003e","```edn","[dev.openfga/openfga-sdk \"0.10.0\"]","```","\u003c!-- x-release-please-end --\u003e","","","## Getting Started","","### Initializing the API Client","","[Learn how to initialize your SDK](https://openfga.dev/docs/getting-started/setup-sdk-client)","","We strongly recommend you initialize the `OpenFgaClient` only once and then re-use it throughout your app, otherwise you will incur the cost of having to re-initialize multiple times or at every request, the cost of reduced connection pooling and re-use, and would be particularly costly in the client credentials flow, as that flow will be preformed on every request.","","\u003e The `Client` will by default retry API requests up to 3 times. Rate limiting (429) errors are always retried. Server errors (5xx) are retried for all operations, with delay calculation using `Retry-After` headers when provided or exponential backoff as fallback.","","#### No Credentials","","```java","import com.fasterxml.jackson.databind.ObjectMapper;","import dev.openfga.sdk.api.client.OpenFgaClient;","import dev.openfga.sdk.api.configuration.ClientConfiguration;","import java.net.http.HttpClient;","","public class Example {","    public static void main(String[] args) throws Exception {","        var config = new ClientConfiguration()","                .apiUrl(System.getenv(\"FGA_API_URL\")) // If not specified, will default to \"http://localhost:8080\"","                .storeId(System.getenv(\"FGA_STORE_ID\")) // Not required when calling createStore() or listStores()","                .authorizationModelId(System.getenv(\"FGA_MODEL_ID\")); // Optional, can be overridden per request","","        var fgaClient = new OpenFgaClient(config);","        var response = fgaClient.readAuthorizationModels().get();","    }","}","```","","#### API Token","","```java","import com.fasterxml.jackson.databind.ObjectMapper;","import dev.openfga.sdk.api.client.OpenFgaClient;","import dev.openfga.sdk.api.configuration.ApiToken;","import dev.openfga.sdk.api.configuration.ClientConfiguration;","import dev.openfga.sdk.api.configuration.Credentials;","import java.net.http.HttpClient;","","public class Example {","    public static void main(String[] args) throws Exception {","        var config = new ClientConfiguration()","                .apiUrl(System.getenv(\"FGA_API_URL\")) // If not specified, will default to \"http://localhost:8080\"","                .storeId(System.getenv(\"FGA_STORE_ID\")) // Not required when calling createStore() or listStores()","                .authorizationModelId(System.getenv(\"FGA_MODEL_ID\")) // Optional, can be overridden per request","                .credentials(new Credentials(","                    new ApiToken(System.getenv(\"FGA_API_TOKEN\")) // will be passed as the \"Authorization: Bearer ${ApiToken}\" request header","                ));","","        var fgaClient = new OpenFgaClient(config);","        var response = fgaClient.readAuthorizationModels().get();","    }","}","```","","#### Client Credentials","","```java","import com.fasterxml.jackson.databind.ObjectMapper;","import dev.openfga.sdk.api.client.OpenFgaClient;","import dev.openfga.sdk.api.configuration.ClientConfiguration;","import dev.openfga.sdk.api.configuration.ClientCredentials;","import dev.openfga.sdk.api.configuration.Credentials;","import java.net.http.HttpClient;","","public class Example {","    public static void main(String[] args) throws Exception {","        var config = new ClientConfiguration()","                .apiUrl(System.getenv(\"FGA_API_URL\")) // If not specified, will default to \"http://localhost:8080\"","                .storeId(System.getenv(\"FGA_STORE_ID\")) // Not required when calling createStore() or listStores()","                .authorizationModelId(System.getenv(\"FGA_MODEL_ID\")) // Optional, can be overridden per request","                .credentials(new Credentials(","                    new ClientCredentials()","                            .apiTokenIssuer(System.getenv(\"FGA_API_TOKEN_ISSUER\")) // Full token endpoint URL, e.g. \"https://issuer.fga.example/oauth/token\"","                            .apiAudience(System.getenv(\"FGA_API_AUDIENCE\"))","                            .clientId(System.getenv(\"FGA_CLIENT_ID\"))","                            .clientSecret(System.getenv(\"FGA_CLIENT_SECRET\"))","                ));","","        var fgaClient = new OpenFgaClient(config);","        var response = fgaClient.readAuthorizationModels().get();","    }","}","```","","#### OAuth2 Client Credentials","","The SDK supports standard OAuth2 client credentials flow for any OAuth2-compliant provider (e.g. Keycloak, Okta). The `apiAudience` parameter is optional, and an optional `scopes` parameter can be provided as a space-separated string. The `apiTokenIssuer` can be set to either a hostname (e.g. `issuer.example.com`, which defaults to `https` and appends `/oauth/token`) or a full token endpoint URL (e.g. `https://mykeycloak.fga.example/realms/myrealm/protocol/openid-connect/token`).","","```java","import com.fasterxml.jackson.databind.ObjectMapper;","import dev.openfga.sdk.api.client.OpenFgaClient;","import dev.openfga.sdk.api.configuration.ClientConfiguration;","import dev.openfga.sdk.api.configuration.ClientCredentials;","import dev.openfga.sdk.api.configuration.Credentials;","import java.net.http.HttpClient;","","public class Example {","    public static void main(String[] args) throws Exception {","        var config = new ClientConfiguration()","                .apiUrl(System.getenv(\"FGA_API_URL\")) // If not specified, will default to \"http://localhost:8080\"","                .storeId(System.getenv(\"FGA_STORE_ID\")) // Not required when calling createStore() or listStores()","                .authorizationModelId(System.getenv(\"FGA_MODEL_ID\")) // Optional, can be overridden per request","                .credentials(new Credentials(","                    new ClientCredentials()","                            .apiTokenIssuer(System.getenv(\"FGA_API_TOKEN_ISSUER\")) // Full token endpoint URL, e.g. \"https://mykeycloak.fga.example/realms/myrealm/protocol/openid-connect/token\"","                            .scopes(System.getenv(\"FGA_API_SCOPES\")) // Optional, space-separated scopes","                            .clientId(System.getenv(\"FGA_CLIENT_ID\"))","                            .clientSecret(System.getenv(\"FGA_CLIENT_SECRET\"))","                ));","","        var fgaClient = new OpenFgaClient(config);","        var response = fgaClient.readAuthorizationModels().get();","    }","}","```","","### Custom Headers","","#### Default Headers","","You can set default headers to be sent with every request by using the `defaultHeaders` property of the `ClientConfiguration` class.","","```java","import com.fasterxml.jackson.databind.ObjectMapper;","import dev.openfga.sdk.api.client.OpenFgaClient;","import dev.openfga.sdk.api.configuration.ClientConfiguration;","","import java.net.http.HttpClient;","import java.util.Map;","","public class Example {","    public static void main(String[] args) throws Exception {","        var config = new ClientConfiguration()","                .apiUrl(System.getenv(\"FGA_API_URL\"))","                .storeId(System.getenv(\"FGA_STORE_ID\"))","                .authorizationModelId(System.getenv(\"FGA_MODEL_ID\"))","                .defaultHeaders(Map.of(","                        \"X-Custom-Header\", \"default-value\",","                        \"X-Request-Source\", \"my-app\"","                ));","","        var fgaClient = new OpenFgaClient(config);","    }","}","```","","#### Per-request Headers","","You can set custom headers to be sent with a specific request by using the `additionalHeaders` property of the options classes (e.g. `ClientReadOptions`, `ClientWriteOptions`, etc.).","","```java","import com.fasterxml.jackson.databind.ObjectMapper;","import dev.openfga.sdk.api.client.OpenFgaClient;","import dev.openfga.sdk.api.configuration.ClientConfiguration;","import java.net.http.HttpClient;","","public class Example {","    public static void main(String[] args) throws Exception {","        var config = new ClientConfiguration()","                .apiUrl(System.getenv(\"FGA_API_URL\"))","                .storeId(System.getenv(\"FGA_STORE_ID\"))","                .authorizationModelId(System.getenv(\"FGA_MODEL_ID\"))","                .defaultHeaders(Map.of(","                        \"X-Custom-Header\", \"default-value\",","                        \"X-Request-Source\", \"my-app\"","                ));","","        var fgaClient = new OpenFgaClient(config);","        var options = new ClientReadOptions()","                    .additionalHeaders(Map.of(","                            \"X-Request-Id\", \"123e4567-e89b-12d3-a456-426614174000\",","                            \"X-Custom-Header\", \"overridden-value\" // this will override the default value for this request only","                    )","                );","        var response = fgaClient.read(request, options).get();","    }","}","```","","","### Get your Store ID","","You need your store id to call the OpenFGA API (unless it is to call the [CreateStore](#create-store) or [ListStores](#list-stores) methods).","","If your server is configured with [authentication enabled](https://openfga.dev/docs/getting-started/setup-openfga#configuring-authentication), you also need to have your credentials ready.","","### Calling the API","","#### Stores","","##### List Stores","","Get a paginated list of stores.","","[API Documentation](https://openfga.dev/api/service#/Stores/ListStores)","","\u003e Passing `ClientListStoresOptions` is optional. All fields of `ClientListStoresOptions` are optional.","","```java","var options = new ClientListStoresOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    .pageSize(10)","    .continuationToken(\"...\");","var stores = fgaClient.listStores(options);","","// stores = [{ \"id\": \"01FQH7V8BEG3GPQW93KTRFR8JB\", \"name\": \"FGA Demo Store\", \"created_at\": \"2022-01-01T00:00:00.000Z\", \"updated_at\": \"2022-01-01T00:00:00.000Z\" }]","```","","##### Create Store","","Initialize a store.","","[API Documentation](https://openfga.dev/api/service#/Stores/CreateStore)","","\u003e Passing `ClientCreateStoreOptions` is optional. All fields of `ClientCreateStoreOptions` are optional.","","```java","var request = new CreateStoreRequest().name(\"FGA Demo\");","var options = new ClientCreateStoreOptions().additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"));","var store = fgaClient.createStore(request, options).get();","","// store.getId() = \"01FQH7V8BEG3GPQW93KTRFR8JB\"","","// store the store.getId() in database","","// update the storeId of the client instance","fgaClient.setStoreId(store.getId());","","// continue calling the API normally","```","","##### Get Store","","Get information about the current store.","","[API Documentation](https://openfga.dev/api/service#/Stores/GetStore)","","\u003e Requires a client initialized with a storeId","","\u003e Passing `ClientGetStoreOptions` is optional. All fields of `ClientGetStoreOptions` are optional.","","```java","var options = new ClientGetStoreOptions().additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"));","var store = fgaClient.getStore(options).get();","","// store = { \"id\": \"01FQH7V8BEG3GPQW93KTRFR8JB\", \"name\": \"FGA Demo Store\", \"created_at\": \"2022-01-01T00:00:00.000Z\", \"updated_at\": \"2022-01-01T00:00:00.000Z\" }","```","","##### Delete Store","","Delete a store.","","[API Documentation](https://openfga.dev/api/service#/Stores/DeleteStore)","","\u003e Requires a client initialized with a storeId","","\u003e Passing `ClientDeleteStoreOptions` is optional. All fields of `ClientDeleteStoreOptions` are optional.","","```java","var options = new ClientDeleteStoreOptions().additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"));","var store = fgaClient.deleteStore(options).get();","```","","#### Authorization Models","","##### Read Authorization Models","","Read all authorization models in the store.","","[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModels)","","\u003e Passing `ClientReadAuthorizationModelsOptions` is optional. All fields of `ClientReadAuthorizationModelsOptions` are optional.","","```java","var options = new ClientReadAuthorizationModelsOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    .pageSize(10)","    .continuationToken(\"...\");","var response = fgaClient.readAuthorizationModels(options).get();","","// response.getAuthorizationModels() = [","// { id: \"01GXSA8YR785C4FYS3C0RTG7B1\", schemaVersion: \"1.1\", typeDefinitions: [...] },","// { id: \"01GXSBM5PVYHCJNRNKXMB4QZTW\", schemaVersion: \"1.1\", typeDefinitions: [...] }];","```","","##### Write Authorization Model","","Create a new authorization model.","","[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/WriteAuthorizationModel)","","\u003e Note: To learn how to build your authorization model, check the Docs at https://openfga.dev/docs.","","\u003e Learn more about [the OpenFGA configuration language](https://openfga.dev/docs/configuration-language).","","\u003e You can use the OpenFGA [CLI](https://github.com/openfga/cli) or [Syntax Transformer](https://github.com/openfga/syntax-transformer) to convert between the OpenFGA DSL and the JSON authorization model.","","\u003e Passing `ClientWriteAuthorizationModelOptions` is optional. All fields of `ClientWriteAuthorizationModelOptions` are optional.","","```java","","var request = new WriteAuthorizationModelRequest()","    .schemaVersion(\"1.1\")","    .typeDefinitions(List.of(","        new TypeDefinition().type(\"user\").relations(Map.of()),","        new TypeDefinition()","            .type(\"document\")","            .relations(Map.of(","                \"writer\", new Userset(),","                \"viewer\", new Userset().union(new Usersets()","                    .child(List.of(","                        new Userset(),","                        new Userset().computedUserset(new ObjectRelation().relation(\"writer\"))","                    ))","                )","            ))","            .metadata(new Metadata()","                .relations(Map.of(","                    \"writer\", new RelationMetadata().directlyRelatedUserTypes(","                        List.of(new RelationReference().type(\"user\"))","                    ),","                    \"viewer\", new RelationMetadata().directlyRelatedUserTypes(","                        List.of(new RelationReference().type(\"user\"))","                    )","                ))","            )","    ));","var options = new ClientWriteAuthorizationModelOptions().additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"));","","var response = fgaClient.writeAuthorizationModel(request, options).get();","","// response.getAuthorizationModelId() = \"01GXSA8YR785C4FYS3C0RTG7B1\"","```","","#### Read a Single Authorization Model","","Read a particular authorization model.","","[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModel)","","\u003e Passing `ClientReadAuthorizationModelOptions` is optional. All fields of `ClientReadAuthorizationModelOptions` are optional.","","```java","var options = new ClientReadAuthorizationModelOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\");","","var response = fgaClient.readAuthorizationModel(options).get();","","// response.getAuthorizationModel().getId() = \"01GXSA8YR785C4FYS3C0RTG7B1\"","// response.getAuthorizationModel().getSchemaVersion() = \"1.1\"","// response.getAuthorizationModel().getTypeDefinitions() = [{ \"type\": \"document\", \"relations\": { ... } }, { \"type\": \"user\", \"relations\": { ... }}]","```","","##### Read the Latest Authorization Model","","Reads the latest authorization model (note: this ignores the model id in configuration).","","[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModel)","","\u003e Passing `ClientReadLatestAuthorizationModelOptions` is optional. All fields of `ClientReadLatestAuthorizationModelOptions` are optional.","","```java","var options = new ClientReadLatestAuthorizationModelOptions().additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"));","var response = fgaClient.readLatestAuthorizationModel(options).get();","","// response.getAuthorizationModel().getId() = \"01GXSA8YR785C4FYS3C0RTG7B1\"","// response.getAuthorizationModel().SchemaVersion() = \"1.1\"","// response.getAuthorizationModel().TypeDefinitions() = [{ \"type\": \"document\", \"relations\": { ... } }, { \"type\": \"user\", \"relations\": { ... }}]","```","","#### Relationship Tuples","","##### Read Relationship Tuple Changes (Watch)","","Reads the list of historical relationship tuple writes and deletes.","","[API Documentation](https://openfga.dev/api/service#/Relationship%20Tuples/ReadChanges)","","\u003e Passing `ClientReadChangesOptions` is optional. All fields of `ClientReadChangesOptions` are optional.","","```java","var startTime = OffsetDateTime.parse(\"2022-01-01T00:00:00+00:00\");","var request = new ClientReadChangesRequest().type(\"document\").startTime(startTime);","var options = new ClientReadChangesOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    .pageSize(10)","    .continuationToken(\"...\");","","var response = fgaClient.readChanges(request, options).get();","","// response.getContinuationToken() = ...","// response.getChanges() = [","//   { tupleKey: { user, relation, object }, operation: TupleOperation.WRITE, timestamp: ... },","//   { tupleKey: { user, relation, object }, operation: TupleOperation.DELETE, timestamp: ... }","// ]","```","","##### Read Relationship Tuples","","Reads the relationship tuples stored in the database. It does not evaluate nor exclude invalid tuples according to the authorization model.","","[API Documentation](https://openfga.dev/api/service#/Relationship%20Tuples/Read)","","\u003e Passing `ClientReadOptions` is optional. All fields of `ClientReadOptions` are optional.","","```java","// Find if a relationship tuple stating that a certain user is a viewer of a certain document","var request = new ClientReadRequest()","    .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","    .relation(\"viewer\")","    ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\");","","// Find all relationship tuples where a certain user has a relationship as any relation to a certain document","var request = new ClientReadRequest()","    .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","    ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\");","","// Find all relationship tuples where a certain user is a viewer of any document","var request = new ClientReadRequest()","    .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","    .relation(\"viewer\")","    ._object(\"document:\");","","// Find all relationship tuples where any user has a relationship as any relation with a particular document","var request = new ClientReadRequest()","    ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\");","","// Read all stored relationship tuples","var request = new ClientReadRequest();","","var options = new ClientReadOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    .pageSize(10)","    .continuationToken(\"...\");","","var response = fgaClient.read(request, options).get();","","// In all the above situations, the response will be of the form:","// response = { tuples: [{ key: { user, relation, object }, timestamp }, ...]}","```","","##### Write (Create and Delete) Relationship Tuples","","Create and/or delete relationship tuples to update the system state.","","[API Documentation](https://openfga.dev/api/service#/Relationship%20Tuples/Write)","","\u003e Passing `ClientWriteOptions` is optional. All fields of `ClientWriteOptions` are optional.","","###### Transaction mode (default)","","By default, write runs in a transaction mode where any invalid operation (deleting a non-existing tuple, creating an existing tuple, one of the tuples was invalid) or a server error will fail the entire operation.","","```java","var request = new ClientWriteRequest()","    .writes(List.of(","        new TupleKey()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"viewer\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"),","        new TupleKey()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"viewer\")","            ._object(\"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\")","    ))","    .deletes(List.of(","        new TupleKey()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"writer\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","    ));","","var options = new ClientWriteOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\")","    .transactions(true);","","var response = fgaClient.write(request, options).get();","```","","Convenience `WriteTuples` and `DeleteTuples` methods are also available.","","###### Non-transaction mode","","The SDK will split the writes into separate chunks and send them in parallel. Each chunk is sent as its own transaction.","","\u003e Passing `ClientWriteOptions` with `.transactions(false)` is required to use non-transaction mode.","\u003e All other fields of `ClientWriteOptions` are optional.","","```java","var request = new ClientWriteRequest()","    .writes(List.of(","        new ClientTupleKey()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"viewer\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"),","        new ClientTupleKey()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"viewer\")","            ._object(\"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\")","    ))","    .deletes(List.of(","        new ClientTupleKeyWithoutCondition()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"writer\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","    ));","var options = new ClientWriteOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\")","    .transactions(false)","    .transactionChunkSize(5); // Max tuples per chunk; each chunk is sent as its own transaction","","var response = fgaClient.write(request, options).get();","```","","###### Conflict options for write operations","","Write conflict handling can be controlled using the `onDuplicate` option for writes and the `onMissing` option for deletes.","","\u003e Note: this requires OpenFGA [v1.10.0](https://github.com/openfga/openfga/releases/tag/v1.10.0) or later.","","- `onDuplicate`: Controls behavior when attempting to create a tuple that already exists","  - `WriteRequestWrites.OnDuplicateEnum.ERROR` (default): Return an error","  - `WriteRequestWrites.OnDuplicateEnum.IGNORE`: Skip the duplicate tuple and continue","  ","- `onMissing`: Controls behavior when attempting to delete a tuple that doesn't exist","  - `WriteRequestDeletes.OnMissingEnum.ERROR` (default): Return an error","  - `WriteRequestDeletes.OnMissingEnum.IGNORE`: Skip the missing tuple and continue","","**Using conflict options with the `write()` method:**","","```java","var request = new ClientWriteRequest()","    .writes(List.of(","        new ClientTupleKey()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"viewer\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","    ))","    .deletes(List.of(","        new ClientTupleKeyWithoutCondition()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"writer\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","    ));","","var options = new ClientWriteOptions()","    .onDuplicate(WriteRequestWrites.OnDuplicateEnum.IGNORE)","    .onMissing(WriteRequestDeletes.OnMissingEnum.IGNORE);","","var response = fgaClient.write(request, options).get();","```","","**Using conflict options with the `writeTuples()` convenience method:**","","```java","var tuples = List.of(","    new ClientTupleKey()","        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","        .relation(\"viewer\")","        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")",");","","var options = new ClientWriteTuplesOptions()","    .onDuplicate(WriteRequestWrites.OnDuplicateEnum.IGNORE);","","var response = fgaClient.writeTuples(tuples, options).get();","```","","**Using conflict options with the `deleteTuples()` convenience method:**","","```java","var tuples = List.of(","    new ClientTupleKeyWithoutCondition()","        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","        .relation(\"writer\")","        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")",");","","var options = new ClientDeleteTuplesOptions()","    .onMissing(WriteRequestDeletes.OnMissingEnum.IGNORE);","","var response = fgaClient.deleteTuples(tuples, options).get();","```","","#### Relationship Queries","","##### Check","","Check if a user has a particular relation with an object.","","[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/Check)","","\u003e Passing `ClientCheckOptions` is optional. All fields of `ClientCheckOptions` are optional.","","```java","var request = new ClientCheckRequest()","    .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","    .relation(\"writer\")","    ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\");","var options = new ClientCheckOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\");","","var response = fgaClient.check(request, options).get();","// response.getAllowed() = true","```","","##### Batch Check","","Similar to [check](#check), but instead of checking a single user-object relationship, accepts a list of relationships to check. Requires OpenFGA version 1.8.0 or greater.","","[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/BatchCheck)","","\u003e **Note**: The order of `batchCheck` results is not guaranteed to match the order of the checks provided. Use `correlationId` to pair responses with requests.","","\u003e Passing `ClientBatchCheckOptions` is optional. All fields of `ClientBatchCheckOptions` are optional.","","```java","var request = new ClientBatchCheckRequest().checks(","    List.of(","        new ClientBatchCheckItem()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"viewer\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","            .correlationId(\"cor-1\") // optional, one will be generated for you if not provided","            .contextualTuples(List.of(","                new ClientTupleKey()","                    .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","                    .relation(\"editor\")","                    ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","            )),","        new ClientCheckRequest()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"admin\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"),","            .correlationId(\"cor-2\") // optional, one will be generated for you if not provided","            .contextualTuples(List.of(","                new ClientTupleKey()","                    .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","                    .relation(\"editor\")","                    ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","            )),","        new ClientCheckRequest()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"creator\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","            .correlationId(\"cor-3\"), // optional, one will be generated for you if not provided","        new ClientCheckRequest()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"deleter\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","            .correlationId(\"cor-4\") // optional, one will be generated for you if not provided","        )",");","","var options = new ClientBatchCheckOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\")","    .maxParallelRequests(5); // Max number of requests to issue in parallel, defaults to 10 ","    .maxBatchSize(20); // Max number of batches to split the list of checks into, defaults to 50","","var response = fgaClient.batchCheck(request, options).get();","","/*","response.getResult() = [{","    allowed: false,","    correlationId: \"cor-1\",","    request: {","      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","      relation: \"viewer\",","      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",","      correlationId: \"cor-1\",","      contextualTuples: [{","        user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","        relation: \"editor\",","        _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"","      }]","    },","  },","  {","    allowed: false,","    correlationId: \"cor-2\",","    request: {","      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","      relation: \"admin\",","      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",","      correlationId: \"cor-2\",","      contextualTuples: [{","        user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","        relation: \"editor\",","        _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"","      }]","    }","  },","  {","    allowed: false,","    correlationId: \"cor-3\",","    request: {","      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","      relation: \"creator\",","      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",","      correlationId: \"cor-3\",","    },","    error: \u003cFgaError ...\u003e","  },","  {","    allowed: true,","    correlationId: \"cor-4\",","    request: {","      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","      relation: \"deleter\",","      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",","      correlationId: \"cor-4\",","    }","  },","]","*/","```","","If you are using an OpenFGA version less than 1.8.0, you can use `clientBatchCheck`, ","which calls `check` in parallel. It will return `allowed: false` if it encounters an error, and will return the error in the body.","If 429s are encountered, the underlying check will retry up to 3 times. For 5xx errors, all requests will retry with delay calculation using `Retry-After` headers when provided or exponential backoff as fallback.","","```","var request = List.of(","    new ClientBatchCheckItem()","        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","        .relation(\"viewer\")","        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","        .contextualTuples(List.of(","            new ClientTupleKey()","                .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","                .relation(\"editor\")","                ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","        )),","    new ClientCheckRequest()","        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","        .relation(\"admin\")","        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"),","        .contextualTuples(List.of(","            new ClientTupleKey()","                .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","                .relation(\"editor\")","                ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","        )),","    new ClientCheckRequest()","        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","        .relation(\"creator\")","        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"),","    new ClientCheckRequest()","        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","        .relation(\"deleter\")","        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")",");","var options = new ClientBatchCheckClientOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\")","    .maxParallelRequests(5); // Max number of requests to issue in parallel, defaults to 10","","var response = fgaClient.batchCheck(request, options).get();","","/*","response.getResponses() = [{","  allowed: false,","  request: {","    user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","    relation: \"viewer\",","    _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",","    contextualTuples: [{","      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","      relation: \"editor\",","      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"","    }]","  }","}, {","  allowed: false,","  request: {","    user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","    relation: \"admin\",","    _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",","    contextualTuples: [{","      user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","      relation: \"editor\",","      _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"","    }]","  }","}, {","  allowed: false,","  request: {","    user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","    relation: \"creator\",","    _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",","  },","  error: \u003cFgaError ...\u003e","}, {","  allowed: true,","  request: {","    user: \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",","    relation: \"deleter\",","    _object: \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",","  }},","]","*/","```","","##### Expand","","Expands the relationships in userset tree format.","","[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/Expand)","","\u003e Passing `ClientExpandOptions` is optional. All fields of `ClientExpandOptions` are optional.","","```java","var request = new ClientExpandRequest()","    .relation(\"viewer\")","    ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\");","var options = new ClientExpandOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\");","","var response = fgaClient.expand(request, options).get();","","// response.getTree().getRoot() = {\"name\":\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a#viewer\",\"leaf\":{\"users\":{\"users\":[\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\"user:f52a4f7a-054d-47ff-bb6e-3ac81269988f\"]}}}","```","","##### List Objects","","List the objects of a particular type a user has access to.","","[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/ListObjects)","","\u003e Passing `ClientListObjectsOptions` is optional. All fields of `ClientListObjectsOptions` are optional.","","```java","var request = new ClientListObjectsRequest()","    .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","    .relation(\"viewer\")","    .type(\"document\")","    .contextualTuples(List.of(","        new ClientTupleKey()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"writer\")","            ._object(\"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\")","    ));","var options = new ClientListObjectsOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\");","","var response = fgaClient.listObjects(request, options).get();","","// response.getObjects() = [\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"]","```","","##### List Relations","","List the relations a user has on an object.","","\u003e Passing `ClientListRelationsOptions` is optional. All fields of `ClientListRelationsOptions` are optional.","","```java","var request = new ClientListRelationsRequest()","    .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","    ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","    .relations(List.of(\"can_view\", \"can_edit\", \"can_delete\", \"can_rename\"))","    .contextualTuples(List.of(","        new ClientTupleKey()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"editor\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","        )","    );","var options = new ClientListRelationsOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // When unspecified, defaults to 10","    .maxParallelRequests()","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(DEFAULT_AUTH_MODEL_ID);","","var response = fgaClient.listRelations(request, options).get();","","// response.getRelations() = [\"can_view\", \"can_edit\"]","```","","##### List Users","","List the users who have a certain relation to a particular type.","","[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/ListUsers)","","```java","// Only a single filter is allowed for the time being","var userFilters = new ArrayList\u003cUserTypeFilter\u003e() {","    {","        add(new UserTypeFilter().type(\"user\"));","        // user filters can also be of the form","        // add(new UserTypeFilter().type(\"team\").relation(\"member\"));","    }","};","","var request = new ClientListUsersRequest()","    ._object(new FgaObject().type(\"document\").id(\"roadmap\"))","    .relation(\"can_read\")","    .userFilters(userFilters)","    .context(Map.of(\"view_count\", 100))","    .contextualTupleKeys(List.of(","        new ClientTupleKey()","            .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","            .relation(\"editor\")","            ._object(\"folder:product\"),","        new ClientTupleKey()","            .user(\"folder:product\")","            .relation(\"parent\")","            ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","));","","var options = new ClientListUsersOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\");","","var response = fgaClient.listUsers(request, options).get();","","// response.getUsers() = [{object: {type: \"user\", id: \"81684243-9356-4421-8fbf-a4f8d36aa31b\"}}, {userset: { type: \"user\" }}, ...]","```","","#### Assertions","","##### Read Assertions","","Read assertions for a particular authorization model.","","[API Documentation](https://openfga.dev/api/service#/Assertions/Read%20Assertions)","","\u003e Passing `ClientReadAssertionsOptions` is optional. All fields of `ClientReadAssertionsOptions` are optional.","","```java","var options = new ClientReadAssertionsOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    // You can rely on the model id set in the configuration or override it for this specific request","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\");","var response = fgaClient.readAssertions(options).get();","```","","##### Write Assertions","","Update the assertions for a particular authorization model.","","[API Documentation](https://openfga.dev/api/service#/Assertions/Write%20Assertions)","","\u003e Passing `ClientWriteAssertionsOptions` is optional. All fields of `ClientWriteAssertionsOptions` are optional.","","```java","var options = new ClientWriteAssertionsOptions()","    .additionalHeaders(Map.of(\"Some-Http-Header\", \"Some value\"))","    .authorizationModelId(\"01GXSA8YR785C4FYS3C0RTG7B1\");","var assertions = List.of(","    new ClientAssertion()","        .user(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\")","        .relation(\"viewer\")","        ._object(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\")","        .expectation(true)",");","fgaClient.writeAssertions(assertions, options).get();","```","","","### Calling Other Endpoints","","The API Executor provides direct HTTP access to OpenFGA endpoints not yet wrapped by the SDK. It maintains the SDK's client configuration including authentication, telemetry, retries, and error handling.","","Use cases:","- Calling endpoints not yet supported by the SDK","- Using an SDK version that lacks support for a particular endpoint","- Accessing custom endpoints that extend the OpenFGA API","","Initialize the SDK normally and access the API Executor via the `fgaClient` instance:","","```java","// Initialize the client, same as above","ClientConfiguration config = new ClientConfiguration()","    .apiUrl(\"http://localhost:8080\")","    .storeId(\"01YCP46JKYM8FJCQ37NMBYHE5X\");","OpenFgaClient fgaClient = new OpenFgaClient(config);","","// Custom new endpoint that doesn't exist in the SDK yet","Map\u003cString, Object\u003e requestBody = Map.of(","    \"user\", \"user:bob\",","    \"action\", \"custom_action\",","    \"resource\", \"resource:123\"",");","","// Build the request","ApiExecutorRequestBuilder request = ApiExecutorRequestBuilder.builder(\"POST\", \"/stores/{store_id}/custom-endpoint\")","    .pathParam(\"store_id\", storeId)","    .queryParam(\"page_size\", \"20\")","    .queryParam(\"continuation_token\", \"eyJwayI6...\")","    .body(requestBody)","    .header(\"X-Experimental-Feature\", \"enabled\")","    .build();","```","","#### Example: Calling a new \"Custom Endpoint\" endpoint and handling raw response","","```java","// Get raw response without automatic decoding","ApiResponse\u003cString\u003e rawResponse = fgaClient.apiExecutor().send(request).get();","","String rawJson = rawResponse.getData();","System.out.println(\"Response: \" + rawJson);","","// You can access fields like headers, status code, etc. from rawResponse:","System.out.println(\"Status Code: \" + rawResponse.getStatusCode());","System.out.println(\"Headers: \" + rawResponse.getHeaders());","```","","#### Example: Calling a new \"Custom Endpoint\" endpoint and decoding response into a struct","","```java","// Define a class to hold the response","class CustomEndpointResponse {","    private boolean allowed;","    private String reason;","","    public boolean isAllowed() { return allowed; }","    public void setAllowed(boolean allowed) { this.allowed = allowed; }","    public String getReason() { return reason; }","    public void setReason(String reason) { this.reason = reason; }","}","","// Get response decoded into CustomEndpointResponse class","ApiResponse\u003cCustomEndpointResponse\u003e response = fgaClient.apiExecutor()","    .send(request, CustomEndpointResponse.class)","    .get();","","CustomEndpointResponse customEndpointResponse = response.getData();","System.out.println(\"Allowed: \" + customEndpointResponse.isAllowed());","System.out.println(\"Reason: \" + customEndpointResponse.getReason());","","// You can access fields like headers, status code, etc. from response:","System.out.println(\"Status Code: \" + response.getStatusCode());","System.out.println(\"Headers: \" + response.getHeaders());","```","","#### Calling a streaming endpoint","","For streaming endpoints, use `streamingApiExecutor` instead. Pass the response class directly — the SDK handles the rest. It delivers each response object to a consumer callback as it arrives, and returns a `CompletableFuture\u003cVoid\u003e` that completes when the stream is exhausted.","","```java","ApiExecutorRequestBuilder request = ApiExecutorRequestBuilder.builder(HttpMethod.POST, \"/stores/{store_id}/streamed-list-objects\")","    .body(new ListObjectsRequest().user(\"user:anne\").relation(\"viewer\").type(\"document\"))","    .build();","","fgaClient.streamingApiExecutor(StreamedListObjectsResponse.class)","    .stream(","        request,","        response -\u003e System.out.println(\"Object: \" + response.getObject()),  // called per object","        error    -\u003e System.err.println(\"Stream error: \" + error.getMessage()) // optional","    )","    .thenRun(() -\u003e System.out.println(\"Streaming complete\"))","    .exceptionally(err -\u003e {","        System.err.println(\"Fatal error: \" + err.getMessage());","        return null;","    });","```","","For a complete working example, see [examples/api-executor](examples/api-executor).","","#### Documentation","","See [docs/ApiExecutor.md](docs/ApiExecutor.md) for complete API reference and examples for both `ApiExecutor` and `StreamingApiExecutor`.","","","","### Retries","","The SDK implements RFC 9110 compliant retry behavior with support for the `Retry-After` header. By default, the SDK will automatically retry failed requests up to **3 times** with delay calculation (maximum allowable: 15 retries).","","#### Retry Behavior","","**Rate Limiting (429 errors):** Always retried regardless of HTTP method.","","**Server Errors (5xx):** All requests are retried on 5xx errors (except 501 Not Implemented) regardless of HTTP method:","- **All operations** (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS): Always retried on 5xx errors with delay calculation","","#### Delay Calculation","","1. **Retry-After header present**: Uses the server-specified delay (supports both integer seconds and HTTP-date formats)","2. **No Retry-After header**: Uses exponential backoff with jitter (base delay: 2^retryCount * 100ms, capped at 120 seconds)","3. **Minimum delay**: Respects the configured `minimumRetryDelay` as a floor value","","#### Configuration","","Customize retry behavior using the `ClientConfiguration` builder. The SDK enforces a maximum of 15 retries to prevent accidental server overload:","","**⚠️ Breaking Changes:**","- Configuration validation now prevents setting `maxRetries` above 15","- `FgaError` now exposes the `Retry-After` header value via `getRetryAfterHeader()`","","```java","import com.fasterxml.jackson.databind.ObjectMapper;","import dev.openfga.sdk.api.client.OpenFgaClient;","import dev.openfga.sdk.api.configuration.ClientConfiguration;","import java.net.http.HttpClient;","","public class Example {","    public static void main(String[] args) throws Exception {","        var config = new ClientConfiguration()","                .apiUrl(System.getenv(\"FGA_API_URL\")) // If not specified, will default to \"http://localhost:8080\"","                .storeId(System.getenv(\"FGA_STORE_ID\")) // Not required when calling createStore() or listStores()","                .authorizationModelId(System.getenv(\"FGA_MODEL_ID\")) // Optional, can be overridden per request","                .maxRetries(3) // retry up to 3 times on API requests (default: 3, maximum: 15)","                .minimumRetryDelay(Duration.ofMillis(100)); // minimum wait time between retries in milliseconds (default: 100ms)","","        var fgaClient = new OpenFgaClient(config);","        var response = fgaClient.readAuthorizationModels().get();","    }","}","```","","#### Error Handling with Retry Information","","When handling errors, you can access the `Retry-After` header value for debugging or custom retry logic:","","```java","try {","    var response = fgaClient.check(request).get();","} catch (ExecutionException e) {","    if (e.getCause() instanceof FgaError) {","        FgaError error = (FgaError) e.getCause();","        ","        // Access Retry-After header if present","        String retryAfter = error.getRetryAfterHeader();","        if (retryAfter != null) {","            System.out.println(\"Server requested retry after: \" + retryAfter + \" seconds\");","        }","        ","        System.out.println(\"Error: \" + error.getMessage());","    }","}","```","","","","### API Endpoints","","| Method | HTTP request | Description |","| ------------- | ------------- | ------------- |","| [**batchCheck**](docs/OpenFgaApi.md#batchcheck) | **POST** /stores/{store_id}/batch-check | Send a list of \u0026#x60;check\u0026#x60; operations in a single request |","| [**check**](docs/OpenFgaApi.md#check) | **POST** /stores/{store_id}/check | Check whether a user is authorized to access an object |","| [**createStore**](docs/OpenFgaApi.md#createstore) | **POST** /stores | Create a store |","| [**deleteStore**](docs/OpenFgaApi.md#deletestore) | **DELETE** /stores/{store_id} | Delete a store |","| [**expand**](docs/OpenFgaApi.md#expand) | **POST** /stores/{store_id}/expand | Expand all relationships in userset tree format, and following userset rewrite rules.  Useful to reason about and debug a certain relationship |","| [**getStore**](docs/OpenFgaApi.md#getstore) | **GET** /stores/{store_id} | Get a store |","| [**listObjects**](docs/OpenFgaApi.md#listobjects) | **POST** /stores/{store_id}/list-objects | List all objects of the given type that the user has a relation with |","| [**listStores**](docs/OpenFgaApi.md#liststores) | **GET** /stores | List all stores |","| [**listUsers**](docs/OpenFgaApi.md#listusers) | **POST** /stores/{store_id}/list-users | List the users matching the provided filter who have a certain relation to a particular type. |","| [**read**](docs/OpenFgaApi.md#read) | **POST** /stores/{store_id}/read | Get tuples from the store that matches a query, without following userset rewrite rules |","| [**readAssertions**](docs/OpenFgaApi.md#readassertions) | **GET** /stores/{store_id}/assertions/{authorization_model_id} | Read assertions for an authorization model ID |","| [**readAuthorizationModel**](docs/OpenFgaApi.md#readauthorizationmodel) | **GET** /stores/{store_id}/authorization-models/{id} | Return a particular version of an authorization model |","| [**readAuthorizationModels**](docs/OpenFgaApi.md#readauthorizationmodels) | **GET** /stores/{store_id}/authorization-models | Return all the authorization models for a particular store |","| [**readChanges**](docs/OpenFgaApi.md#readchanges) | **GET** /stores/{store_id}/changes | Return a list of all the tuple changes |","| [**streamedListObjects**](docs/OpenFgaApi.md#streamedlistobjects) | **POST** /stores/{store_id}/streamed-list-objects | Stream all objects of the given type that the user has a relation with |","| [**write**](docs/OpenFgaApi.md#write) | **POST** /stores/{store_id}/write | Add or delete tuples from the store |","| [**writeAssertions**](docs/OpenFgaApi.md#writeassertions) | **PUT** /stores/{store_id}/assertions/{authorization_model_id} | Upsert assertions for an authorization model ID |","| [**writeAuthorizationModel**](docs/OpenFgaApi.md#writeauthorizationmodel) | **POST** /stores/{store_id}/authorization-models | Create a new authorization model |","","","","### Models","","","- [AbortedMessageResponse](https://github.com/openfga/java-sdk/blob/main/docs/AbortedMessageResponse.md)","","- [Any](https://github.com/openfga/java-sdk/blob/main/docs/Any.md)","","- [Assertion](https://github.com/openfga/java-sdk/blob/main/docs/Assertion.md)","","- [AssertionTupleKey](https://github.com/openfga/java-sdk/blob/main/docs/AssertionTupleKey.md)","","- [AuthErrorCode](https://github.com/openfga/java-sdk/blob/main/docs/AuthErrorCode.md)","","- [AuthorizationModel](https://github.com/openfga/java-sdk/blob/main/docs/AuthorizationModel.md)","","- [BatchCheckItem](https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckItem.md)","","- [BatchCheckRequest](https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckRequest.md)","","- [BatchCheckResponse](https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckResponse.md)","","- [BatchCheckSingleResult](https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckSingleResult.md)","","- [CheckError](https://github.com/openfga/java-sdk/blob/main/docs/CheckError.md)","","- [CheckRequest](https://github.com/openfga/java-sdk/blob/main/docs/CheckRequest.md)","","- [CheckRequestTupleKey](https://github.com/openfga/java-sdk/blob/main/docs/CheckRequestTupleKey.md)","","- [CheckResponse](https://github.com/openfga/java-sdk/blob/main/docs/CheckResponse.md)","","- [Computed](https://github.com/openfga/java-sdk/blob/main/docs/Computed.md)","","- [Condition](https://github.com/openfga/java-sdk/blob/main/docs/Condition.md)","","- [ConditionMetadata](https://github.com/openfga/java-sdk/blob/main/docs/ConditionMetadata.md)","","- [ConditionParamTypeRef](https://github.com/openfga/java-sdk/blob/main/docs/ConditionParamTypeRef.md)","","- [ConsistencyPreference](https://github.com/openfga/java-sdk/blob/main/docs/ConsistencyPreference.md)","","- [ContextualTupleKeys](https://github.com/openfga/java-sdk/blob/main/docs/ContextualTupleKeys.md)","","- [CreateStoreRequest](https://github.com/openfga/java-sdk/blob/main/docs/CreateStoreRequest.md)","","- [CreateStoreResponse](https://github.com/openfga/java-sdk/blob/main/docs/CreateStoreResponse.md)","","- [Difference](https://github.com/openfga/java-sdk/blob/main/docs/Difference.md)","","- [ErrorCode](https://github.com/openfga/java-sdk/blob/main/docs/ErrorCode.md)","","- [ExpandRequest](https://github.com/openfga/java-sdk/blob/main/docs/ExpandRequest.md)","","- [ExpandRequestTupleKey](https://github.com/openfga/java-sdk/blob/main/docs/ExpandRequestTupleKey.md)","","- [ExpandResponse](https://github.com/openfga/java-sdk/blob/main/docs/ExpandResponse.md)","","- [FgaObject](https://github.com/openfga/java-sdk/blob/main/docs/FgaObject.md)","","- [ForbiddenResponse](https://github.com/openfga/java-sdk/blob/main/docs/ForbiddenResponse.md)","","- [GetStoreResponse](https://github.com/openfga/java-sdk/blob/main/docs/GetStoreResponse.md)","","- [InternalErrorCode](https://github.com/openfga/java-sdk/blob/main/docs/InternalErrorCode.md)","","- [InternalErrorMessageResponse](https://github.com/openfga/java-sdk/blob/main/docs/InternalErrorMessageResponse.md)","","- [Leaf](https://github.com/openfga/java-sdk/blob/main/docs/Leaf.md)","","- [ListObjectsRequest](https://github.com/openfga/java-sdk/blob/main/docs/ListObjectsRequest.md)","","- [ListObjectsResponse](https://github.com/openfga/java-sdk/blob/main/docs/ListObjectsResponse.md)","","- [ListStoresResponse](https://github.com/openfga/java-sdk/blob/main/docs/ListStoresResponse.md)","","- [ListUsersRequest](https://github.com/openfga/java-sdk/blob/main/docs/ListUsersRequest.md)","","- [ListUsersResponse](https://github.com/openfga/java-sdk/blob/main/docs/ListUsersResponse.md)","","- [Metadata](https://github.com/openfga/java-sdk/blob/main/docs/Metadata.md)","","- [Node](https://github.com/openfga/java-sdk/blob/main/docs/Node.md)","","- [Nodes](https://github.com/openfga/java-sdk/blob/main/docs/Nodes.md)","","- [NotFoundErrorCode](https://github.com/openfga/java-sdk/blob/main/docs/NotFoundErrorCode.md)","","- [NullValue](https://github.com/openfga/java-sdk/blob/main/docs/NullValue.md)","","- [ObjectRelation](https://github.com/openfga/java-sdk/blob/main/docs/ObjectRelation.md)","","- [PathUnknownErrorMessageResponse](https://github.com/openfga/java-sdk/blob/main/docs/PathUnknownErrorMessageResponse.md)","","- [ReadAssertionsResponse](https://github.com/openfga/java-sdk/blob/main/docs/ReadAssertionsResponse.md)","","- [ReadAuthorizationModelResponse](https://github.com/openfga/java-sdk/blob/main/docs/ReadAuthorizationModelResponse.md)","","- [ReadAuthorizationModelsResponse](https://github.com/openfga/java-sdk/blob/main/docs/ReadAuthorizationModelsResponse.md)","","- [ReadChangesResponse](https://github.com/openfga/java-sdk/blob/main/docs/ReadChangesResponse.md)","","- [ReadRequest](https://github.com/openfga/java-sdk/blob/main/docs/ReadRequest.md)","","- [ReadRequestTupleKey](https://github.com/openfga/java-sdk/blob/main/docs/ReadRequestTupleKey.md)","","- [ReadResponse](https://github.com/openfga/java-sdk/blob/main/docs/ReadResponse.md)","","- [RelationMetadata](https://github.com/openfga/java-sdk/blob/main/docs/RelationMetadata.md)","","- [RelationReference](https://github.com/openfga/java-sdk/blob/main/docs/RelationReference.md)","","- [RelationshipCondition](https://github.com/openfga/java-sdk/blob/main/docs/RelationshipCondition.md)","","- [SourceInfo](https://github.com/openfga/java-sdk/blob/main/docs/SourceInfo.md)","","- [Status](https://github.com/openfga/java-sdk/blob/main/docs/Status.md)","","- [Store](https://github.com/openfga/java-sdk/blob/main/docs/Store.md)","","- [StreamResultOfStreamedListObjectsResponse](https://github.com/openfga/java-sdk/blob/main/docs/StreamResultOfStreamedListObjectsResponse.md)","","- [StreamedListObjectsResponse](https://github.com/openfga/java-sdk/blob/main/docs/StreamedListObjectsResponse.md)","","- [Tuple](https://github.com/openfga/java-sdk/blob/main/docs/Tuple.md)","","- [TupleChange](https://github.com/openfga/java-sdk/blob/main/docs/TupleChange.md)","","- [TupleKey](https://github.com/openfga/java-sdk/blob/main/docs/TupleKey.md)","","- [TupleKeyWithoutCondition](https://github.com/openfga/java-sdk/blob/main/docs/TupleKeyWithoutCondition.md)","","- [TupleOperation](https://github.com/openfga/java-sdk/blob/main/docs/TupleOperation.md)","","- [TupleToUserset](https://github.com/openfga/java-sdk/blob/main/docs/TupleToUserset.md)","","- [TypeDefinition](https://github.com/openfga/java-sdk/blob/main/docs/TypeDefinition.md)","","- [TypeName](https://github.com/openfga/java-sdk/blob/main/docs/TypeName.md)","","- [TypedWildcard](https://github.com/openfga/java-sdk/blob/main/docs/TypedWildcard.md)","","- [UnauthenticatedResponse](https://github.com/openfga/java-sdk/blob/main/docs/UnauthenticatedResponse.md)","","- [UnprocessableContentErrorCode](https://github.com/openfga/java-sdk/blob/main/docs/UnprocessableContentErrorCode.md)","","- [UnprocessableContentMessageResponse](https://github.com/openfga/java-sdk/blob/main/docs/UnprocessableContentMessageResponse.md)","","- [User](https://github.com/openfga/java-sdk/blob/main/docs/User.md)","","- [UserTypeFilter](https://github.com/openfga/java-sdk/blob/main/docs/UserTypeFilter.md)","","- [Users](https://github.com/openfga/java-sdk/blob/main/docs/Users.md)","","- [Userset](https://github.com/openfga/java-sdk/blob/main/docs/Userset.md)","","- [UsersetTree](https://github.com/openfga/java-sdk/blob/main/docs/UsersetTree.md)","","- [UsersetTreeDifference](https://github.com/openfga/java-sdk/blob/main/docs/UsersetTreeDifference.md)","","- [UsersetTreeTupleToUserset](https://github.com/openfga/java-sdk/blob/main/docs/UsersetTreeTupleToUserset.md)","","- [UsersetUser](https://github.com/openfga/java-sdk/blob/main/docs/UsersetUser.md)","","- [Usersets](https://github.com/openfga/java-sdk/blob/main/docs/Usersets.md)","","- [ValidationErrorMessageResponse](https://github.com/openfga/java-sdk/blob/main/docs/ValidationErrorMessageResponse.md)","","- [WriteAssertionsRequest](https://github.com/openfga/java-sdk/blob/main/docs/WriteAssertionsRequest.md)","","- [WriteAuthorizationModelRequest](https://github.com/openfga/java-sdk/blob/main/docs/WriteAuthorizationModelRequest.md)","","- [WriteAuthorizationModelResponse](https://github.com/openfga/java-sdk/blob/main/docs/WriteAuthorizationModelResponse.md)","","- [WriteRequest](https://github.com/openfga/java-sdk/blob/main/docs/WriteRequest.md)","","- [WriteRequestDeletes](https://github.com/openfga/java-sdk/blob/main/docs/WriteRequestDeletes.md)","","- [WriteRequestWrites](https://github.com/openfga/java-sdk/blob/main/docs/WriteRequestWrites.md)","","","","### OpenTelemetry","","This SDK supports producing metrics that can be consumed as part of an [OpenTelemetry](https://opentelemetry.io/) setup. For more information, please see [the documentation](https://github.com/openfga/java-sdk/blob/main/docs/OpenTelemetry.md)","","## Contributing","","See [CONTRIBUTING](./CONTRIBUTING.md) for details.","","## Author","","[OpenFGA](https://github.com/openfga)","","## License","","This project is licensed under the Apache-2.0 license. See the [LICENSE](https://github.com/openfga/java-sdk/blob/main/LICENSE) file for more info.","","The code in this repo was auto generated by [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) from a template based on the [Java template](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/Java), licensed under the [Apache License 2.0](https://github.com/OpenAPITools/openapi-generator/blob/master/LICENSE)."],"stylingDirectives":[[[0,22,"pl-mh"],[2,22,"pl-en"]],[],[[0,1,"pl-s"],[1,3,"pl-s"],[16,17,"pl-s"],[17,18,"pl-s"],[18,106,"pl-corl"],[106,108,"pl-s"],[108,109,"pl-s"],[109,170,"pl-corl"],[170,171,"pl-s"]],[[0,1,"pl-s"],[1,3,"pl-s"],[10,11,"pl-s"],[11,12,"pl-s"],[12,73,"pl-corl"],[73,75,"pl-s"],[75,76,"pl-s"],[76,122,"pl-corl"],[122,123,"pl-s"]],[[0,1,"pl-s"],[1,3,"pl-s"],[15,16,"pl-s"],[16,17,"pl-s"],[17,86,"pl-corl"],[86,88,"pl-s"],[88,89,"pl-s"],[89,145,"pl-corl"],[145,146,"pl-s"],[147,180,"pl-c"],[147,151,"pl-c"],[177,180,"pl-c"]],[],[[0,1,"pl-s"],[1,3,"pl-s"],[10,11,"pl-s"],[11,12,"pl-s"],[12,92,"pl-corl"],[92,94,"pl-s"],[94,95,"pl-s"],[95,139,"pl-corl"],[139,140,"pl-s"]],[[0,1,"pl-s"],[1,3,"pl-s"],[15,16,"pl-s"],[16,17,"pl-s"],[17,105,"pl-corl"],[105,107,"pl-s"],[107,108,"pl-s"],[108,193,"pl-corl"],[193,194,"pl-s"]],[[0,1,"pl-s"],[1,3,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,99,"pl-corl"],[99,101,"pl-s"],[101,102,"pl-s"],[102,172,"pl-corl"],[172,173,"pl-s"]],[[0,1,"pl-s"],[1,3,"pl-s"],[21,22,"pl-s"],[22,23,"pl-s"],[23,95,"pl-corl"],[95,97,"pl-s"],[97,98,"pl-s"],[98,127,"pl-corl"],[127,128,"pl-s"]],[[0,1,"pl-s"],[1,3,"pl-s"],[4,5,"pl-s"],[5,6,"pl-s"],[6,92,"pl-corl"],[93,94,"pl-s"],[94,107,"pl-s"],[107,110,"pl-s"],[110,111,"pl-s"],[111,132,"pl-corl"],[132,133,"pl-s"]],[],[[80,81,"pl-s"],[103,104,"pl-s"],[104,105,"pl-s"],[105,128,"pl-corl"],[128,129,"pl-s"]],[],[[0,20,"pl-mh"],[3,20,"pl-en"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[16,17,"pl-s"],[17,18,"pl-s"],[18,24,"pl-corl"],[24,25,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[12,13,"pl-s"],[13,14,"pl-s"],[14,24,"pl-corl"],[24,25,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[15,16,"pl-s"],[16,17,"pl-s"],[17,30,"pl-corl"],[30,31,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,36,"pl-corl"],[36,37,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[32,33,"pl-s"],[33,34,"pl-s"],[34,62,"pl-corl"],[62,63,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[19,20,"pl-s"],[20,21,"pl-s"],[21,36,"pl-corl"],[36,37,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[22,23,"pl-s"],[23,24,"pl-s"],[24,42,"pl-corl"],[42,43,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,38,"pl-corl"],[38,39,"pl-s"]],[[4,5,"pl-v"],[6,7,"pl-s"],[13,14,"pl-s"],[14,15,"pl-s"],[15,22,"pl-corl"],[22,23,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[24,25,"pl-s"],[25,26,"pl-s"],[26,38,"pl-corl"],[38,39,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[23,24,"pl-s"],[24,25,"pl-s"],[25,38,"pl-corl"],[38,39,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,32,"pl-corl"],[32,33,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[23,24,"pl-s"],[24,25,"pl-s"],[25,38,"pl-corl"],[38,39,"pl-s"]],[[4,5,"pl-v"],[6,7,"pl-s"],[27,28,"pl-s"],[28,29,"pl-s"],[29,50,"pl-corl"],[50,51,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[34,35,"pl-s"],[35,36,"pl-s"],[36,62,"pl-corl"],[62,63,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[34,35,"pl-s"],[35,36,"pl-s"],[36,62,"pl-corl"],[62,63,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[42,43,"pl-s"],[43,44,"pl-s"],[44,78,"pl-corl"],[78,79,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[44,45,"pl-s"],[45,46,"pl-s"],[46,82,"pl-corl"],[82,83,"pl-s"]],[[4,5,"pl-v"],[6,7,"pl-s"],[26,27,"pl-s"],[27,28,"pl-s"],[28,48,"pl-corl"],[48,49,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[48,49,"pl-s"],[49,50,"pl-s"],[50,88,"pl-corl"],[88,89,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[33,34,"pl-s"],[34,35,"pl-s"],[35,60,"pl-corl"],[60,61,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[54,55,"pl-s"],[55,56,"pl-s"],[56,100,"pl-corl"],[100,101,"pl-s"]],[[4,5,"pl-v"],[6,7,"pl-s"],[27,28,"pl-s"],[28,29,"pl-s"],[29,50,"pl-corl"],[50,51,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[14,15,"pl-s"],[15,16,"pl-s"],[16,22,"pl-corl"],[22,23,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,34,"pl-corl"],[34,35,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[15,16,"pl-s"],[16,17,"pl-s"],[17,24,"pl-corl"],[24,25,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[21,22,"pl-s"],[22,23,"pl-s"],[23,36,"pl-corl"],[36,37,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[23,24,"pl-s"],[24,25,"pl-s"],[25,40,"pl-corl"],[40,41,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[19,20,"pl-s"],[20,21,"pl-s"],[21,32,"pl-corl"],[32,33,"pl-s"]],[[4,5,"pl-v"],[6,7,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,30,"pl-corl"],[30,31,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[24,25,"pl-s"],[25,26,"pl-s"],[26,42,"pl-corl"],[42,43,"pl-s"]],[[6,7,"pl-v"],[8,9,"pl-s"],[25,26,"pl-s"],[26,27,"pl-s"],[27,44,"pl-corl"],[44,45,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[28,29,"pl-s"],[29,30,"pl-s"],[30,54,"pl-corl"],[54,55,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[12,13,"pl-s"],[13,14,"pl-s"],[14,22,"pl-corl"],[22,23,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,34,"pl-corl"],[34,35,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[11,12,"pl-s"],[12,13,"pl-s"],[13,20,"pl-corl"],[20,21,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,34,"pl-corl"],[34,35,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[15,16,"pl-s"],[16,17,"pl-s"],[17,30,"pl-corl"],[30,31,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[11,12,"pl-s"],[12,13,"pl-s"],[13,20,"pl-corl"],[20,21,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,34,"pl-corl"],[34,35,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[10,11,"pl-s"],[11,12,"pl-s"],[12,20,"pl-corl"],[20,21,"pl-s"]],[],[[0,8,"pl-mh"],[3,8,"pl-en"]],[],[[0,1,"pl-s"],[8,9,"pl-s"],[9,10,"pl-s"],[10,29,"pl-corl"],[29,30,"pl-s"],[97,98,"pl-s"],[121,122,"pl-s"],[122,123,"pl-s"],[123,161,"pl-corl"],[161,162,"pl-s"],[198,199,"pl-s"],[204,205,"pl-s"],[205,206,"pl-s"],[206,223,"pl-corl"],[223,224,"pl-s"],[234,235,"pl-s"],[273,274,"pl-s"],[274,275,"pl-s"],[275,290,"pl-corl"],[290,291,"pl-s"],[309,310,"pl-s"],[341,342,"pl-s"],[342,343,"pl-s"],[343,392,"pl-corl"],[392,393,"pl-s"]],[],[],[],[],[[0,12,"pl-mh"],[3,12,"pl-en"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[24,25,"pl-s"],[25,26,"pl-s"],[26,50,"pl-corl"],[50,51,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[28,29,"pl-s"],[29,30,"pl-s"],[30,61,"pl-corl"],[61,62,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[4,5,"pl-s"],[5,6,"pl-s"],[6,27,"pl-corl"],[27,28,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,51,"pl-corl"],[51,52,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[19,20,"pl-s"],[20,21,"pl-s"],[21,45,"pl-corl"],[45,46,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[33,34,"pl-s"],[34,35,"pl-s"],[35,73,"pl-corl"],[73,74,"pl-s"]],[],[[0,15,"pl-mh"],[3,15,"pl-en"]],[],[[37,38,"pl-s"],[51,52,"pl-s"],[52,53,"pl-s"],[53,82,"pl-corl"],[82,83,"pl-s"]],[],[[40,42,"pl-s"],[49,51,"pl-s"]],[],[],[],[[0,1,"pl-v"]],[],[[0,39,"pl-c"],[0,4,"pl-c"],[36,39,"pl-c"]],[[0,3,"pl-s"],[3,9,"pl-en"],[9,9,"pl-c1"]],[[0,47,"pl-c1"]],[[0,0,"pl-c1"],[0,3,"pl-s"]],[[0,29,"pl-c"],[0,4,"pl-c"],[26,29,"pl-c"]],[],[[0,1,"pl-v"]],[],[[0,39,"pl-c"],[0,4,"pl-c"],[36,39,"pl-c"]],[[0,3,"pl-s"],[3,9,"pl-en"]],[[15,47,"pl-s"],[15,16,"pl-pds"],[46,47,"pl-pds"]],[[0,3,"pl-s"]],[[0,29,"pl-c"],[0,4,"pl-c"],[26,29,"pl-c"]],[],[[0,1,"pl-v"]],[],[[0,39,"pl-c"],[0,4,"pl-c"],[36,39,"pl-c"]],[[0,3,"pl-s"],[3,6,"pl-en"]],[[1,11,"pl-ent"]],[[5,12,"pl-ent"],[26,33,"pl-ent"]],[[5,15,"pl-ent"],[29,39,"pl-ent"]],[[5,12,"pl-ent"],[21,28,"pl-ent"]],[[2,12,"pl-ent"]],[[0,3,"pl-s"]],[[0,29,"pl-c"],[0,4,"pl-c"],[26,29,"pl-c"]],[],[[0,1,"pl-v"]],[],[[0,39,"pl-c"],[0,4,"pl-c"],[36,39,"pl-c"]],[[0,3,"pl-s"],[3,6,"pl-en"]],[[1,11,"pl-ent"],[12,15,"pl-e"],[16,29,"pl-s"],[16,17,"pl-pds"],[28,29,"pl-pds"],[30,34,"pl-e"],[35,48,"pl-s"],[35,36,"pl-pds"],[47,48,"pl-pds"],[49,52,"pl-e"],[53,61,"pl-s"],[53,54,"pl-pds"],[60,61,"pl-pds"]],[[0,3,"pl-s"]],[[0,29,"pl-c"],[0,4,"pl-c"],[26,29,"pl-c"]],[],[[0,1,"pl-v"]],[],[[0,39,"pl-c"],[0,4,"pl-c"],[36,39,"pl-c"]],[[0,3,"pl-s"],[3,8,"pl-en"]],[[20,22,"pl-k"],[23,36,"pl-s"],[23,24,"pl-pds"],[35,36,"pl-pds"],[37,38,"pl-k"],[39,52,"pl-s"],[39,40,"pl-pds"],[51,52,"pl-pds"],[53,54,"pl-k"],[55,63,"pl-s"],[55,56,"pl-pds"],[62,63,"pl-pds"]],[[0,3,"pl-s"]],[[0,29,"pl-c"],[0,4,"pl-c"],[26,29,"pl-c"]],[],[[0,1,"pl-v"]],[],[[0,39,"pl-c"],[0,4,"pl-c"],[36,39,"pl-c"]],[[0,3,"pl-s"],[3,6,"pl-en"]],[[25,33,"pl-s"],[25,26,"pl-pds"],[32,33,"pl-pds"]],[[0,3,"pl-s"]],[[0,29,"pl-c"],[0,4,"pl-c"],[26,29,"pl-c"]],[],[],[[0,18,"pl-mh"],[3,18,"pl-en"]],[],[[0,31,"pl-mh"],[4,31,"pl-en"]],[],[[0,1,"pl-s"],[33,34,"pl-s"],[34,35,"pl-s"],[35,92,"pl-corl"],[92,93,"pl-s"]],[],[[41,42,"pl-s"],[42,55,"pl-c1"],[55,56,"pl-s"]],[],[[0,264,"pl-ent"],[0,2,"pl-ent"],[6,7,"pl-s"],[7,13,"pl-c1"],[13,14,"pl-s"],[193,194,"pl-s"],[194,205,"pl-c1"],[205,206,"pl-s"]],[[0,0,"pl-ent"]],[[0,19,"pl-mh"],[5,19,"pl-en"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,6,"pl-k"],[7,50,"pl-smi"]],[[0,6,"pl-k"],[7,47,"pl-smi"]],[[0,6,"pl-k"],[7,60,"pl-smi"]],[[0,6,"pl-k"],[7,31,"pl-smi"]],[],[[0,6,"pl-k"],[7,12,"pl-k"],[13,20,"pl-en"]],[[4,10,"pl-k"],[11,17,"pl-k"],[18,22,"pl-k"],[23,27,"pl-en"],[28,34,"pl-k"],[37,41,"pl-v"],[43,49,"pl-k"],[50,59,"pl-smi"]],[[8,11,"pl-k"],[19,20,"pl-k"],[21,24,"pl-k"],[25,44,"pl-smi"]],[[24,30,"pl-smi"],[30,31,"pl-k"],[38,51,"pl-s"],[38,39,"pl-pds"],[50,51,"pl-pds"],[54,114,"pl-c"],[54,56,"pl-c"]],[[25,31,"pl-smi"],[31,32,"pl-k"],[39,53,"pl-s"],[39,40,"pl-pds"],[52,53,"pl-pds"],[56,114,"pl-c"],[56,58,"pl-c"]],[[38,44,"pl-smi"],[44,45,"pl-k"],[52,66,"pl-s"],[52,53,"pl-pds"],[65,66,"pl-pds"],[70,112,"pl-c"],[70,72,"pl-c"]],[],[[8,11,"pl-k"],[22,23,"pl-k"],[24,27,"pl-k"],[28,41,"pl-smi"]],[[8,11,"pl-k"],[21,22,"pl-k"],[32,33,"pl-k"],[58,59,"pl-k"]],[],[],[[0,3,"pl-s"]],[],[[0,14,"pl-mh"],[5,14,"pl-en"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,6,"pl-k"],[7,50,"pl-smi"]],[[0,6,"pl-k"],[7,47,"pl-smi"]],[[0,6,"pl-k"],[7,49,"pl-smi"]],[[0,6,"pl-k"],[7,60,"pl-smi"]],[[0,6,"pl-k"],[7,52,"pl-smi"]],[[0,6,"pl-k"],[7,31,"pl-smi"]],[],[[0,6,"pl-k"],[7,12,"pl-k"],[13,20,"pl-en"]],[[4,10,"pl-k"],[11,17,"pl-k"],[18,22,"pl-k"],[23,27,"pl-en"],[28,34,"pl-k"],[37,41,"pl-v"],[43,49,"pl-k"],[50,59,"pl-smi"]],[[8,11,"pl-k"],[19,20,"pl-k"],[21,24,"pl-k"],[25,44,"pl-smi"]],[[24,30,"pl-smi"],[30,31,"pl-k"],[38,51,"pl-s"],[38,39,"pl-pds"],[50,51,"pl-pds"],[54,114,"pl-c"],[54,56,"pl-c"]],[[25,31,"pl-smi"],[31,32,"pl-k"],[39,53,"pl-s"],[39,40,"pl-pds"],[52,53,"pl-pds"],[56,114,"pl-c"],[56,58,"pl-c"]],[[38,44,"pl-smi"],[44,45,"pl-k"],[52,66,"pl-s"],[52,53,"pl-pds"],[65,66,"pl-pds"],[69,111,"pl-c"],[69,71,"pl-c"]],[[29,32,"pl-k"],[33,44,"pl-smi"]],[[20,23,"pl-k"],[24,32,"pl-smi"],[33,39,"pl-smi"],[39,40,"pl-k"],[47,62,"pl-s"],[47,48,"pl-pds"],[61,62,"pl-pds"],[65,140,"pl-c"],[65,67,"pl-c"]],[],[],[[8,11,"pl-k"],[22,23,"pl-k"],[24,27,"pl-k"],[28,41,"pl-smi"]],[[8,11,"pl-k"],[21,22,"pl-k"],[32,33,"pl-k"],[58,59,"pl-k"]],[],[],[[0,3,"pl-s"]],[],[[0,23,"pl-mh"],[5,23,"pl-en"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,6,"pl-k"],[7,50,"pl-smi"]],[[0,6,"pl-k"],[7,47,"pl-smi"]],[[0,6,"pl-k"],[7,60,"pl-smi"]],[[0,6,"pl-k"],[7,58,"pl-smi"]],[[0,6,"pl-k"],[7,52,"pl-smi"]],[[0,6,"pl-k"],[7,31,"pl-smi"]],[],[[0,6,"pl-k"],[7,12,"pl-k"],[13,20,"pl-en"]],[[4,10,"pl-k"],[11,17,"pl-k"],[18,22,"pl-k"],[23,27,"pl-en"],[28,34,"pl-k"],[37,41,"pl-v"],[43,49,"pl-k"],[50,59,"pl-smi"]],[[8,11,"pl-k"],[19,20,"pl-k"],[21,24,"pl-k"],[25,44,"pl-smi"]],[[24,30,"pl-smi"],[30,31,"pl-k"],[38,51,"pl-s"],[38,39,"pl-pds"],[50,51,"pl-pds"],[54,114,"pl-c"],[54,56,"pl-c"]],[[25,31,"pl-smi"],[31,32,"pl-k"],[39,53,"pl-s"],[39,40,"pl-pds"],[52,53,"pl-pds"],[56,114,"pl-c"],[56,58,"pl-c"]],[[38,44,"pl-smi"],[44,45,"pl-k"],[52,66,"pl-s"],[52,53,"pl-pds"],[65,66,"pl-pds"],[69,111,"pl-c"],[69,71,"pl-c"]],[[29,32,"pl-k"],[33,44,"pl-smi"]],[[20,23,"pl-k"],[24,41,"pl-smi"]],[[44,50,"pl-smi"],[50,51,"pl-k"],[58,80,"pl-s"],[58,59,"pl-pds"],[79,80,"pl-pds"],[83,156,"pl-c"],[83,85,"pl-c"]],[[41,47,"pl-smi"],[47,48,"pl-k"],[55,73,"pl-s"],[55,56,"pl-pds"],[72,73,"pl-pds"]],[[38,44,"pl-smi"],[44,45,"pl-k"],[52,67,"pl-s"],[52,53,"pl-pds"],[66,67,"pl-pds"]],[[42,48,"pl-smi"],[48,49,"pl-k"],[56,75,"pl-s"],[56,57,"pl-pds"],[74,75,"pl-pds"]],[],[],[[8,11,"pl-k"],[22,23,"pl-k"],[24,27,"pl-k"],[28,41,"pl-smi"]],[[8,11,"pl-k"],[21,22,"pl-k"],[32,33,"pl-k"],[58,59,"pl-k"]],[],[],[[0,3,"pl-s"]],[],[[0,30,"pl-mh"],[5,30,"pl-en"]],[],[[118,119,"pl-s"],[119,130,"pl-c1"],[130,131,"pl-s"],[171,172,"pl-s"],[172,178,"pl-c1"],[178,179,"pl-s"],[239,240,"pl-s"],[240,254,"pl-c1"],[254,255,"pl-s"],[294,295,"pl-s"],[295,313,"pl-c1"],[313,314,"pl-s"],[334,335,"pl-s"],[335,340,"pl-c1"],[340,341,"pl-s"],[354,355,"pl-s"],[355,367,"pl-c1"],[367,368,"pl-s"],[405,406,"pl-s"],[406,481,"pl-c1"],[481,482,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,6,"pl-k"],[7,50,"pl-smi"]],[[0,6,"pl-k"],[7,47,"pl-smi"]],[[0,6,"pl-k"],[7,60,"pl-smi"]],[[0,6,"pl-k"],[7,58,"pl-smi"]],[[0,6,"pl-k"],[7,52,"pl-smi"]],[[0,6,"pl-k"],[7,31,"pl-smi"]],[],[[0,6,"pl-k"],[7,12,"pl-k"],[13,20,"pl-en"]],[[4,10,"pl-k"],[11,17,"pl-k"],[18,22,"pl-k"],[23,27,"pl-en"],[28,34,"pl-k"],[37,41,"pl-v"],[43,49,"pl-k"],[50,59,"pl-smi"]],[[8,11,"pl-k"],[19,20,"pl-k"],[21,24,"pl-k"],[25,44,"pl-smi"]],[[24,30,"pl-smi"],[30,31,"pl-k"],[38,51,"pl-s"],[38,39,"pl-pds"],[50,51,"pl-pds"],[54,114,"pl-c"],[54,56,"pl-c"]],[[25,31,"pl-smi"],[31,32,"pl-k"],[39,53,"pl-s"],[39,40,"pl-pds"],[52,53,"pl-pds"],[56,114,"pl-c"],[56,58,"pl-c"]],[[38,44,"pl-smi"],[44,45,"pl-k"],[52,66,"pl-s"],[52,53,"pl-pds"],[65,66,"pl-pds"],[69,111,"pl-c"],[69,71,"pl-c"]],[[29,32,"pl-k"],[33,44,"pl-smi"]],[[20,23,"pl-k"],[24,41,"pl-smi"]],[[44,50,"pl-smi"],[50,51,"pl-k"],[58,80,"pl-s"],[58,59,"pl-pds"],[79,80,"pl-pds"],[83,193,"pl-c"],[83,85,"pl-c"]],[[36,42,"pl-smi"],[42,43,"pl-k"],[50,66,"pl-s"],[50,51,"pl-pds"],[65,66,"pl-pds"],[69,104,"pl-c"],[69,71,"pl-c"]],[[38,44,"pl-smi"],[44,45,"pl-k"],[52,67,"pl-s"],[52,53,"pl-pds"],[66,67,"pl-pds"]],[[42,48,"pl-smi"],[48,49,"pl-k"],[56,75,"pl-s"],[56,57,"pl-pds"],[74,75,"pl-pds"]],[],[],[[8,11,"pl-k"],[22,23,"pl-k"],[24,27,"pl-k"],[28,41,"pl-smi"]],[[8,11,"pl-k"],[21,22,"pl-k"],[32,33,"pl-k"],[58,59,"pl-k"]],[],[],[[0,3,"pl-s"]],[],[[0,18,"pl-mh"],[4,18,"pl-en"]],[],[[0,20,"pl-mh"],[5,20,"pl-en"]],[],[[71,72,"pl-s"],[72,86,"pl-c1"],[86,87,"pl-s"],[104,105,"pl-s"],[105,124,"pl-c1"],[124,125,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,6,"pl-k"],[7,50,"pl-smi"]],[[0,6,"pl-k"],[7,47,"pl-smi"]],[[0,6,"pl-k"],[7,60,"pl-smi"]],[],[[0,6,"pl-k"],[7,31,"pl-smi"]],[[0,6,"pl-k"],[7,20,"pl-smi"]],[],[[0,6,"pl-k"],[7,12,"pl-k"],[13,20,"pl-en"]],[[4,10,"pl-k"],[11,17,"pl-k"],[18,22,"pl-k"],[23,27,"pl-en"],[28,34,"pl-k"],[37,41,"pl-v"],[43,49,"pl-k"],[50,59,"pl-smi"]],[[8,11,"pl-k"],[19,20,"pl-k"],[21,24,"pl-k"],[25,44,"pl-smi"]],[[24,30,"pl-smi"],[30,31,"pl-k"],[38,51,"pl-s"],[38,39,"pl-pds"],[50,51,"pl-pds"]],[[25,31,"pl-smi"],[31,32,"pl-k"],[39,53,"pl-s"],[39,40,"pl-pds"],[52,53,"pl-pds"]],[[38,44,"pl-smi"],[44,45,"pl-k"],[52,66,"pl-s"],[52,53,"pl-pds"],[65,66,"pl-pds"]],[[32,35,"pl-smi"],[35,36,"pl-k"]],[[24,41,"pl-s"],[24,25,"pl-pds"],[40,41,"pl-pds"],[43,58,"pl-s"],[43,44,"pl-pds"],[57,58,"pl-pds"]],[[24,42,"pl-s"],[24,25,"pl-pds"],[41,42,"pl-pds"],[44,52,"pl-s"],[44,45,"pl-pds"],[51,52,"pl-pds"]],[],[],[[8,11,"pl-k"],[22,23,"pl-k"],[24,27,"pl-k"],[28,41,"pl-smi"]],[],[],[[0,3,"pl-s"]],[],[[0,24,"pl-mh"],[5,24,"pl-en"]],[],[[75,76,"pl-s"],[76,93,"pl-c1"],[93,94,"pl-s"],[133,134,"pl-s"],[134,151,"pl-c1"],[151,152,"pl-s"],[154,155,"pl-s"],[155,173,"pl-c1"],[173,174,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,6,"pl-k"],[7,50,"pl-smi"]],[[0,6,"pl-k"],[7,47,"pl-smi"]],[[0,6,"pl-k"],[7,60,"pl-smi"]],[[0,6,"pl-k"],[7,31,"pl-smi"]],[],[[0,6,"pl-k"],[7,12,"pl-k"],[13,20,"pl-en"]],[[4,10,"pl-k"],[11,17,"pl-k"],[18,22,"pl-k"],[23,27,"pl-en"],[28,34,"pl-k"],[37,41,"pl-v"],[43,49,"pl-k"],[50,59,"pl-smi"]],[[8,11,"pl-k"],[19,20,"pl-k"],[21,24,"pl-k"],[25,44,"pl-smi"]],[[24,30,"pl-smi"],[30,31,"pl-k"],[38,51,"pl-s"],[38,39,"pl-pds"],[50,51,"pl-pds"]],[[25,31,"pl-smi"],[31,32,"pl-k"],[39,53,"pl-s"],[39,40,"pl-pds"],[52,53,"pl-pds"]],[[38,44,"pl-smi"],[44,45,"pl-k"],[52,66,"pl-s"],[52,53,"pl-pds"],[65,66,"pl-pds"]],[[32,35,"pl-smi"],[35,36,"pl-k"]],[[24,41,"pl-s"],[24,25,"pl-pds"],[40,41,"pl-pds"],[43,58,"pl-s"],[43,44,"pl-pds"],[57,58,"pl-pds"]],[[24,42,"pl-s"],[24,25,"pl-pds"],[41,42,"pl-pds"],[44,52,"pl-s"],[44,45,"pl-pds"],[51,52,"pl-pds"]],[],[],[[8,11,"pl-k"],[22,23,"pl-k"],[24,27,"pl-k"],[28,41,"pl-smi"]],[[8,11,"pl-k"],[20,21,"pl-k"],[22,25,"pl-k"],[26,43,"pl-smi"]],[[39,42,"pl-smi"],[42,43,"pl-k"]],[[28,42,"pl-s"],[28,29,"pl-pds"],[41,42,"pl-pds"],[44,82,"pl-s"],[44,45,"pl-pds"],[81,82,"pl-pds"]],[[28,45,"pl-s"],[28,29,"pl-pds"],[44,45,"pl-pds"],[47,65,"pl-s"],[47,48,"pl-pds"],[64,65,"pl-pds"],[66,127,"pl-c"],[66,68,"pl-c"]],[],[],[[8,11,"pl-k"],[21,22,"pl-k"],[32,33,"pl-k"],[55,56,"pl-k"]],[],[],[[0,3,"pl-s"]],[],[],[[0,21,"pl-mh"],[4,21,"pl-en"]],[],[[73,74,"pl-s"],[85,86,"pl-s"],[86,87,"pl-s"],[87,100,"pl-corl"],[100,101,"pl-s"],[105,106,"pl-s"],[116,117,"pl-s"],[117,118,"pl-s"],[118,130,"pl-corl"],[130,131,"pl-s"]],[],[[34,35,"pl-s"],[57,58,"pl-s"],[58,59,"pl-s"],[59,140,"pl-corl"],[140,141,"pl-s"]],[],[[0,19,"pl-mh"],[4,19,"pl-en"]],[],[[0,11,"pl-mh"],[5,11,"pl-en"]],[],[[0,17,"pl-mh"],[6,17,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,70,"pl-corl"],[70,71,"pl-s"]],[],[[0,102,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,34,"pl-c1"],[34,35,"pl-s"],[63,64,"pl-s"],[64,87,"pl-c1"],[87,88,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,41,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[14,16,"pl-c1"]],[[23,28,"pl-s"],[23,24,"pl-pds"],[27,28,"pl-pds"]],[[0,3,"pl-k"],[11,12,"pl-k"],[22,23,"pl-k"]],[],[[0,162,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,18,"pl-mh"],[6,18,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,71,"pl-corl"],[71,72,"pl-s"]],[],[[0,104,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,35,"pl-c1"],[35,36,"pl-s"],[64,65,"pl-s"],[65,89,"pl-c1"],[89,90,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,36,"pl-smi"],[38,39,"pl-k"],[44,54,"pl-s"],[44,45,"pl-pds"],[53,54,"pl-pds"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,42,"pl-smi"],[44,45,"pl-k"],[63,66,"pl-smi"],[66,67,"pl-k"],[70,88,"pl-s"],[70,71,"pl-pds"],[87,88,"pl-pds"],[90,102,"pl-s"],[90,91,"pl-pds"],[101,102,"pl-pds"]],[[0,3,"pl-k"],[10,11,"pl-k"],[21,22,"pl-k"],[51,52,"pl-k"]],[],[[0,47,"pl-c"],[0,2,"pl-c"]],[],[[0,38,"pl-c"],[0,2,"pl-c"]],[],[[0,44,"pl-c"],[0,2,"pl-c"]],[[9,10,"pl-k"],[26,27,"pl-k"]],[],[[0,36,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,15,"pl-mh"],[6,15,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,68,"pl-corl"],[68,69,"pl-s"]],[],[[0,46,"pl-ent"],[0,2,"pl-ent"]],[[0,0,"pl-ent"]],[[0,98,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,32,"pl-c1"],[32,33,"pl-s"],[61,62,"pl-s"],[62,83,"pl-c1"],[83,84,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,39,"pl-smi"],[41,42,"pl-k"],[60,63,"pl-smi"],[63,64,"pl-k"],[67,85,"pl-s"],[67,68,"pl-pds"],[84,85,"pl-pds"],[87,99,"pl-s"],[87,88,"pl-pds"],[98,99,"pl-pds"]],[[0,3,"pl-k"],[10,11,"pl-k"],[21,22,"pl-k"],[39,40,"pl-k"]],[],[[0,159,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,18,"pl-mh"],[6,18,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,71,"pl-corl"],[71,72,"pl-s"]],[],[[0,46,"pl-ent"],[0,2,"pl-ent"]],[[0,0,"pl-ent"]],[[0,104,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,35,"pl-c1"],[35,36,"pl-s"],[64,65,"pl-s"],[65,89,"pl-c1"],[89,90,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,42,"pl-smi"],[44,45,"pl-k"],[63,66,"pl-smi"],[66,67,"pl-k"],[70,88,"pl-s"],[70,71,"pl-pds"],[87,88,"pl-pds"],[90,102,"pl-s"],[90,91,"pl-pds"],[101,102,"pl-pds"]],[[0,3,"pl-k"],[10,11,"pl-k"],[21,22,"pl-k"],[42,43,"pl-k"]],[[0,3,"pl-s"]],[],[[0,25,"pl-mh"],[5,25,"pl-en"]],[],[[0,31,"pl-mh"],[6,31,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,99,"pl-corl"],[99,100,"pl-s"]],[],[[0,128,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,47,"pl-c1"],[47,48,"pl-s"],[76,77,"pl-s"],[77,113,"pl-c1"],[113,114,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,54,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[14,16,"pl-c1"]],[[23,28,"pl-s"],[23,24,"pl-pds"],[27,28,"pl-pds"]],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[57,58,"pl-k"]],[],[[0,40,"pl-c"],[0,2,"pl-c"]],[[0,86,"pl-c"],[0,2,"pl-c"]],[[0,87,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,31,"pl-mh"],[6,31,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,99,"pl-corl"],[99,100,"pl-s"]],[],[[0,99,"pl-ent"],[0,2,"pl-ent"],[74,98,"pl-corl"]],[[0,0,"pl-ent"]],[[0,105,"pl-ent"],[0,2,"pl-ent"],[19,20,"pl-s"],[54,55,"pl-s"],[55,56,"pl-s"],[56,103,"pl-corl"],[103,104,"pl-s"]],[[0,0,"pl-ent"]],[[0,203,"pl-ent"],[0,2,"pl-ent"],[26,27,"pl-s"],[30,31,"pl-s"],[31,32,"pl-s"],[32,62,"pl-corl"],[62,63,"pl-s"],[67,68,"pl-s"],[86,87,"pl-s"],[87,88,"pl-s"],[88,133,"pl-corl"],[133,134,"pl-s"]],[[0,0,"pl-ent"]],[[0,128,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,47,"pl-c1"],[47,48,"pl-s"],[76,77,"pl-s"],[77,113,"pl-c1"],[113,114,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,48,"pl-smi"]],[[19,24,"pl-s"],[19,20,"pl-pds"],[23,24,"pl-pds"]],[[21,25,"pl-smi"],[25,26,"pl-k"]],[[8,11,"pl-k"],[12,26,"pl-smi"],[28,29,"pl-k"],[34,40,"pl-s"],[34,35,"pl-pds"],[39,40,"pl-pds"],[41,42,"pl-k"],[52,55,"pl-smi"],[55,56,"pl-k"]],[[8,11,"pl-k"],[12,26,"pl-smi"]],[[18,28,"pl-s"],[18,19,"pl-pds"],[27,28,"pl-pds"]],[[23,26,"pl-smi"],[26,27,"pl-k"]],[[16,24,"pl-s"],[16,17,"pl-pds"],[23,24,"pl-pds"],[26,29,"pl-k"],[30,37,"pl-smi"]],[[16,24,"pl-s"],[16,17,"pl-pds"],[23,24,"pl-pds"],[26,29,"pl-k"],[30,37,"pl-smi"],[39,40,"pl-k"],[46,49,"pl-k"],[50,58,"pl-smi"]],[[27,31,"pl-smi"],[31,32,"pl-k"]],[[24,27,"pl-k"],[28,35,"pl-smi"]],[[24,27,"pl-k"],[28,35,"pl-smi"],[37,38,"pl-k"],[54,57,"pl-k"],[58,72,"pl-smi"],[74,75,"pl-k"],[84,92,"pl-s"],[84,85,"pl-pds"],[91,92,"pl-pds"]],[],[],[],[[22,25,"pl-k"],[26,34,"pl-smi"]],[[27,30,"pl-smi"],[30,31,"pl-k"]],[[20,28,"pl-s"],[20,21,"pl-pds"],[27,28,"pl-pds"],[30,33,"pl-k"],[34,50,"pl-smi"],[52,53,"pl-k"]],[[24,28,"pl-smi"],[28,29,"pl-k"],[32,35,"pl-k"],[36,53,"pl-smi"],[55,56,"pl-k"],[61,67,"pl-s"],[61,62,"pl-pds"],[66,67,"pl-pds"]],[],[[20,28,"pl-s"],[20,21,"pl-pds"],[27,28,"pl-pds"],[30,33,"pl-k"],[34,50,"pl-smi"],[52,53,"pl-k"]],[[24,28,"pl-smi"],[28,29,"pl-k"],[32,35,"pl-k"],[36,53,"pl-smi"],[55,56,"pl-k"],[61,67,"pl-s"],[61,62,"pl-pds"],[66,67,"pl-pds"]],[],[],[],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,54,"pl-smi"],[56,57,"pl-k"],[75,78,"pl-smi"],[78,79,"pl-k"],[82,100,"pl-s"],[82,83,"pl-pds"],[99,100,"pl-pds"],[102,114,"pl-s"],[102,103,"pl-pds"],[113,114,"pl-pds"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[66,67,"pl-k"]],[],[[0,68,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,38,"pl-mh"],[5,38,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,98,"pl-corl"],[98,99,"pl-s"]],[],[[0,126,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,46,"pl-c1"],[46,47,"pl-s"],[75,76,"pl-s"],[76,111,"pl-c1"],[111,112,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,53,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[4,101,"pl-c"],[4,6,"pl-c"]],[[26,54,"pl-s"],[26,27,"pl-pds"],[53,54,"pl-pds"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[56,57,"pl-k"]],[],[[0,74,"pl-c"],[0,2,"pl-c"]],[[0,62,"pl-c"],[0,2,"pl-c"]],[[0,146,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,41,"pl-mh"],[6,41,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,98,"pl-corl"],[98,99,"pl-s"]],[],[[0,138,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,52,"pl-c1"],[52,53,"pl-s"],[81,82,"pl-s"],[82,123,"pl-c1"],[123,124,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,59,"pl-smi"],[61,62,"pl-k"],[80,83,"pl-smi"],[83,84,"pl-k"],[87,105,"pl-s"],[87,88,"pl-pds"],[104,105,"pl-pds"],[107,119,"pl-s"],[107,108,"pl-pds"],[118,119,"pl-pds"]],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[62,63,"pl-k"]],[],[[0,74,"pl-c"],[0,2,"pl-c"]],[[0,59,"pl-c"],[0,2,"pl-c"]],[[0,143,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,24,"pl-mh"],[5,24,"pl-en"]],[],[[0,45,"pl-mh"],[6,45,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,86,"pl-corl"],[86,87,"pl-s"]],[],[[0,104,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,35,"pl-c1"],[35,36,"pl-s"],[64,65,"pl-s"],[65,89,"pl-c1"],[89,90,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[14,15,"pl-k"],[16,30,"pl-smi"],[30,31,"pl-k"],[37,64,"pl-s"],[37,38,"pl-pds"],[63,64,"pl-pds"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,42,"pl-smi"],[44,45,"pl-k"],[50,60,"pl-s"],[50,51,"pl-pds"],[59,60,"pl-pds"],[61,62,"pl-k"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,42,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[14,16,"pl-c1"]],[[23,28,"pl-s"],[23,24,"pl-pds"],[27,28,"pl-pds"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[54,55,"pl-k"]],[],[[0,40,"pl-c"],[0,2,"pl-c"]],[[0,28,"pl-c"],[0,2,"pl-c"]],[[0,95,"pl-c"],[0,2,"pl-c"]],[[0,95,"pl-c"],[0,2,"pl-c"]],[[0,4,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,30,"pl-mh"],[6,30,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,79,"pl-corl"],[79,80,"pl-s"]],[],[[0,90,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,28,"pl-c1"],[28,29,"pl-s"],[57,58,"pl-s"],[58,75,"pl-c1"],[75,76,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,93,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,35,"pl-smi"]],[[10,53,"pl-s"],[10,11,"pl-pds"],[52,53,"pl-pds"]],[[14,22,"pl-s"],[14,15,"pl-pds"],[21,22,"pl-pds"]],[[13,60,"pl-s"],[13,14,"pl-pds"],[59,60,"pl-pds"]],[],[[0,109,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,35,"pl-smi"]],[[10,53,"pl-s"],[10,11,"pl-pds"],[52,53,"pl-pds"]],[[13,60,"pl-s"],[13,14,"pl-pds"],[59,60,"pl-pds"]],[],[[0,80,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,35,"pl-smi"]],[[10,53,"pl-s"],[10,11,"pl-pds"],[52,53,"pl-pds"]],[[14,22,"pl-s"],[14,15,"pl-pds"],[21,22,"pl-pds"]],[[13,24,"pl-s"],[13,14,"pl-pds"],[23,24,"pl-pds"]],[],[[0,108,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,35,"pl-smi"]],[[13,60,"pl-s"],[13,14,"pl-pds"],[59,60,"pl-pds"]],[],[[0,38,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,35,"pl-smi"]],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,35,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[14,16,"pl-c1"]],[[23,28,"pl-s"],[23,24,"pl-pds"],[27,28,"pl-pds"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[47,48,"pl-k"]],[],[[0,65,"pl-c"],[0,2,"pl-c"]],[[0,78,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,51,"pl-mh"],[6,51,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,80,"pl-corl"],[80,81,"pl-s"]],[],[[0,92,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,29,"pl-c1"],[29,30,"pl-s"],[58,59,"pl-s"],[59,77,"pl-c1"],[77,78,"pl-s"]],[[0,0,"pl-ent"]],[[0,33,"pl-mh"],[7,33,"pl-en"]],[],[],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,36,"pl-smi"]],[[12,16,"pl-smi"],[16,17,"pl-k"]],[[8,11,"pl-k"],[12,20,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[[8,11,"pl-k"],[12,20,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[],[[13,17,"pl-smi"],[17,18,"pl-k"]],[[8,11,"pl-k"],[12,20,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,36,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[4,101,"pl-c"],[4,6,"pl-c"]],[[26,54,"pl-s"],[26,27,"pl-pds"],[53,54,"pl-pds"]],[[18,22,"pl-c1"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[48,49,"pl-k"]],[[0,3,"pl-s"]],[],[[12,13,"pl-s"],[13,24,"pl-c1"],[24,25,"pl-s"],[30,31,"pl-s"],[31,43,"pl-c1"],[43,44,"pl-s"]],[],[[0,27,"pl-mh"],[7,27,"pl-en"]],[],[],[],[[0,99,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,29,"pl-c1"],[29,30,"pl-s"],[36,37,"pl-s"],[37,57,"pl-c1"],[57,58,"pl-s"]],[[0,56,"pl-ent"],[0,2,"pl-ent"],[22,23,"pl-s"],[23,41,"pl-c1"],[41,42,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,36,"pl-smi"]],[[12,16,"pl-smi"],[16,17,"pl-k"]],[[8,11,"pl-k"],[12,26,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[[8,11,"pl-k"],[12,26,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[],[[13,17,"pl-smi"],[17,18,"pl-k"]],[[8,11,"pl-k"],[12,42,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,36,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[4,101,"pl-c"],[4,6,"pl-c"]],[[26,54,"pl-s"],[26,27,"pl-pds"],[53,54,"pl-pds"]],[[18,23,"pl-c1"]],[[26,27,"pl-c1"],[30,96,"pl-c"],[30,32,"pl-c"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[48,49,"pl-k"]],[[0,3,"pl-s"]],[],[[0,44,"pl-mh"],[7,44,"pl-en"]],[],[[52,53,"pl-s"],[53,64,"pl-c1"],[64,65,"pl-s"],[92,93,"pl-s"],[93,102,"pl-c1"],[102,103,"pl-s"]],[],[[0,106,"pl-ent"],[0,2,"pl-ent"],[30,31,"pl-s"],[38,39,"pl-s"],[39,40,"pl-s"],[40,95,"pl-corl"],[95,96,"pl-s"]],[[0,0,"pl-ent"]],[[0,1,"pl-v"],[2,3,"pl-s"],[3,14,"pl-c1"],[14,15,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[5,45,"pl-c1"],[45,46,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[5,46,"pl-c1"],[46,47,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[3,12,"pl-c1"],[12,13,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[5,44,"pl-c1"],[44,45,"pl-s"]],[[2,3,"pl-v"],[4,5,"pl-s"],[5,45,"pl-c1"],[45,46,"pl-s"]],[],[[0,2,"pl-s"],[34,35,"pl-s"],[35,42,"pl-c1"],[42,43,"pl-s"],[51,53,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,36,"pl-smi"]],[[12,16,"pl-smi"],[16,17,"pl-k"]],[[8,11,"pl-k"],[12,26,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[],[[13,17,"pl-smi"],[17,18,"pl-k"]],[[8,11,"pl-k"],[12,42,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,36,"pl-smi"]],[[17,35,"pl-smi"],[35,36,"pl-k"],[36,51,"pl-smi"],[51,58,"pl-c1"],[51,52,"pl-k"]],[[15,34,"pl-smi"],[34,35,"pl-k"],[35,48,"pl-smi"],[48,55,"pl-c1"],[48,49,"pl-k"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[48,49,"pl-k"]],[[0,3,"pl-s"]],[],[[0,2,"pl-s"],[34,35,"pl-s"],[35,48,"pl-c1"],[48,49,"pl-s"],[69,71,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[11,12,"pl-k"],[13,17,"pl-smi"],[17,18,"pl-k"]],[[4,7,"pl-k"],[8,22,"pl-smi"]],[[14,57,"pl-s"],[14,15,"pl-pds"],[56,57,"pl-pds"]],[[18,26,"pl-s"],[18,19,"pl-pds"],[25,26,"pl-pds"]],[[17,64,"pl-s"],[17,18,"pl-pds"],[63,64,"pl-pds"]],[],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,42,"pl-smi"]],[[17,35,"pl-smi"],[35,36,"pl-k"],[36,51,"pl-smi"],[51,58,"pl-c1"],[51,52,"pl-k"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[53,54,"pl-k"]],[[0,3,"pl-s"]],[],[[0,2,"pl-s"],[34,35,"pl-s"],[35,49,"pl-c1"],[49,50,"pl-s"],[70,72,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[11,12,"pl-k"],[13,17,"pl-smi"],[17,18,"pl-k"]],[[4,7,"pl-k"],[8,38,"pl-smi"]],[[14,57,"pl-s"],[14,15,"pl-pds"],[56,57,"pl-pds"]],[[18,26,"pl-s"],[18,19,"pl-pds"],[25,26,"pl-pds"]],[[17,64,"pl-s"],[17,18,"pl-pds"],[63,64,"pl-pds"]],[],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,43,"pl-smi"]],[[15,34,"pl-smi"],[34,35,"pl-k"],[35,48,"pl-smi"],[48,55,"pl-c1"],[48,49,"pl-k"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[54,55,"pl-k"]],[[0,3,"pl-s"]],[],[[0,25,"pl-mh"],[5,25,"pl-en"]],[],[[0,11,"pl-mh"],[6,11,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,81,"pl-corl"],[81,82,"pl-s"]],[],[[0,92,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,29,"pl-c1"],[29,30,"pl-s"],[58,59,"pl-s"],[59,77,"pl-c1"],[77,78,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,36,"pl-smi"]],[[10,53,"pl-s"],[10,11,"pl-pds"],[52,53,"pl-pds"]],[[14,22,"pl-s"],[14,15,"pl-pds"],[21,22,"pl-pds"]],[[13,60,"pl-s"],[13,14,"pl-pds"],[59,60,"pl-pds"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,36,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[4,101,"pl-c"],[4,6,"pl-c"]],[[26,54,"pl-s"],[26,27,"pl-pds"],[53,54,"pl-pds"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[48,49,"pl-k"]],[[0,31,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,17,"pl-mh"],[6,17,"pl-en"]],[],[[11,12,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,25,"pl-corl"],[25,26,"pl-s"]],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,86,"pl-corl"],[86,87,"pl-s"]],[],[[0,159,"pl-ent"],[0,2,"pl-ent"],[2,4,"pl-s"],[8,10,"pl-s"],[25,26,"pl-s"],[26,36,"pl-c1"],[36,37,"pl-s"],[111,112,"pl-s"],[112,125,"pl-c1"],[125,126,"pl-s"]],[[0,0,"pl-ent"]],[[0,102,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,34,"pl-c1"],[34,35,"pl-s"],[63,64,"pl-s"],[64,87,"pl-c1"],[87,88,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,41,"pl-smi"],[43,44,"pl-k"]],[[4,8,"pl-smi"],[8,9,"pl-k"]],[[8,11,"pl-k"],[12,32,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[[27,34,"pl-s"],[27,28,"pl-pds"],[33,34,"pl-pds"],[36,94,"pl-c"],[36,38,"pl-c"]],[[30,34,"pl-smi"],[34,35,"pl-k"]],[[16,19,"pl-k"],[20,34,"pl-smi"]],[[26,69,"pl-s"],[26,27,"pl-pds"],[68,69,"pl-pds"]],[[30,38,"pl-s"],[30,31,"pl-pds"],[37,38,"pl-pds"]],[[29,76,"pl-s"],[29,30,"pl-pds"],[75,76,"pl-pds"]],[],[[8,11,"pl-k"],[12,30,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,29,"pl-s"],[22,23,"pl-pds"],[28,29,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[[27,34,"pl-s"],[27,28,"pl-pds"],[33,34,"pl-pds"],[36,94,"pl-c"],[36,38,"pl-c"]],[[30,34,"pl-smi"],[34,35,"pl-k"]],[[16,19,"pl-k"],[20,34,"pl-smi"]],[[26,69,"pl-s"],[26,27,"pl-pds"],[68,69,"pl-pds"]],[[30,38,"pl-s"],[30,31,"pl-pds"],[37,38,"pl-pds"]],[[29,76,"pl-s"],[29,30,"pl-pds"],[75,76,"pl-pds"]],[],[[8,11,"pl-k"],[12,30,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,31,"pl-s"],[22,23,"pl-pds"],[30,31,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[[27,34,"pl-s"],[27,28,"pl-pds"],[33,34,"pl-pds"],[37,95,"pl-c"],[37,39,"pl-c"]],[[8,11,"pl-k"],[12,30,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,31,"pl-s"],[22,23,"pl-pds"],[30,31,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[[27,34,"pl-s"],[27,28,"pl-pds"],[33,34,"pl-pds"],[36,94,"pl-c"],[36,38,"pl-c"]],[],[],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,41,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[4,101,"pl-c"],[4,6,"pl-c"]],[[26,54,"pl-s"],[26,27,"pl-pds"],[53,54,"pl-pds"]],[[25,26,"pl-c1"],[29,92,"pl-c"],[29,31,"pl-c"]],[[18,20,"pl-c1"],[23,96,"pl-c"],[23,25,"pl-c"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[53,54,"pl-k"]],[],[[0,2,"pl-c"],[0,2,"pl-c"]],[[0,25,"pl-c"]],[[0,19,"pl-c"]],[[0,27,"pl-c"]],[[0,14,"pl-c"]],[[0,56,"pl-c"]],[[0,25,"pl-c"]],[[0,63,"pl-c"]],[[0,29,"pl-c"]],[[0,26,"pl-c"]],[[0,58,"pl-c"]],[[0,27,"pl-c"]],[[0,64,"pl-c"]],[[0,8,"pl-c"]],[[0,6,"pl-c"]],[[0,4,"pl-c"]],[[0,3,"pl-c"]],[[0,19,"pl-c"]],[[0,27,"pl-c"]],[[0,14,"pl-c"]],[[0,56,"pl-c"]],[[0,24,"pl-c"]],[[0,63,"pl-c"]],[[0,29,"pl-c"]],[[0,26,"pl-c"]],[[0,58,"pl-c"]],[[0,27,"pl-c"]],[[0,64,"pl-c"]],[[0,8,"pl-c"]],[[0,5,"pl-c"]],[[0,4,"pl-c"]],[[0,3,"pl-c"]],[[0,19,"pl-c"]],[[0,27,"pl-c"]],[[0,14,"pl-c"]],[[0,56,"pl-c"]],[[0,26,"pl-c"]],[[0,63,"pl-c"]],[[0,29,"pl-c"]],[[0,6,"pl-c"]],[[0,25,"pl-c"]],[[0,4,"pl-c"]],[[0,3,"pl-c"]],[[0,18,"pl-c"]],[[0,27,"pl-c"]],[[0,14,"pl-c"]],[[0,56,"pl-c"]],[[0,26,"pl-c"]],[[0,63,"pl-c"]],[[0,29,"pl-c"]],[[0,5,"pl-c"]],[[0,4,"pl-c"]],[[0,1,"pl-c"]],[[0,2,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[65,66,"pl-s"],[66,82,"pl-c1"],[82,83,"pl-s"]],[[12,13,"pl-s"],[13,18,"pl-c1"],[18,19,"pl-s"],[48,49,"pl-s"],[49,63,"pl-c1"],[63,64,"pl-s"]],[[141,142,"pl-s"],[142,153,"pl-c1"],[153,154,"pl-s"]],[],[[0,3,"pl-s"],[3,3,"pl-c1"]],[[0,22,"pl-c1"]],[[0,30,"pl-c1"]],[[0,58,"pl-c1"]],[[0,27,"pl-c1"]],[[0,65,"pl-c1"]],[[0,34,"pl-c1"]],[[0,32,"pl-c1"]],[[0,66,"pl-c1"]],[[0,35,"pl-c1"]],[[0,73,"pl-c1"]],[[0,11,"pl-c1"]],[[0,28,"pl-c1"]],[[0,58,"pl-c1"]],[[0,26,"pl-c1"]],[[0,66,"pl-c1"]],[[0,34,"pl-c1"]],[[0,32,"pl-c1"]],[[0,66,"pl-c1"]],[[0,35,"pl-c1"]],[[0,73,"pl-c1"]],[[0,11,"pl-c1"]],[[0,28,"pl-c1"]],[[0,58,"pl-c1"]],[[0,28,"pl-c1"]],[[0,66,"pl-c1"]],[[0,28,"pl-c1"]],[[0,58,"pl-c1"]],[[0,28,"pl-c1"]],[[0,65,"pl-c1"]],[[0,2,"pl-c1"]],[[0,49,"pl-c1"]],[[0,64,"pl-c1"]],[[0,101,"pl-c1"]],[[0,55,"pl-c1"]],[[0,91,"pl-c1"]],[[0,0,"pl-c1"]],[[0,60,"pl-c1"]],[[0,0,"pl-c1"]],[[0,2,"pl-c1"]],[[0,28,"pl-c1"]],[[0,17,"pl-c1"]],[[0,12,"pl-c1"]],[[0,54,"pl-c1"]],[[0,23,"pl-c1"]],[[0,61,"pl-c1"]],[[0,24,"pl-c1"]],[[0,56,"pl-c1"]],[[0,25,"pl-c1"]],[[0,62,"pl-c1"]],[[0,6,"pl-c1"]],[[0,3,"pl-c1"]],[[0,4,"pl-c1"]],[[0,17,"pl-c1"]],[[0,12,"pl-c1"]],[[0,54,"pl-c1"]],[[0,22,"pl-c1"]],[[0,61,"pl-c1"]],[[0,24,"pl-c1"]],[[0,56,"pl-c1"]],[[0,25,"pl-c1"]],[[0,62,"pl-c1"]],[[0,6,"pl-c1"]],[[0,3,"pl-c1"]],[[0,4,"pl-c1"]],[[0,17,"pl-c1"]],[[0,12,"pl-c1"]],[[0,54,"pl-c1"]],[[0,24,"pl-c1"]],[[0,61,"pl-c1"]],[[0,4,"pl-c1"]],[[0,23,"pl-c1"]],[[0,4,"pl-c1"]],[[0,16,"pl-c1"]],[[0,12,"pl-c1"]],[[0,54,"pl-c1"]],[[0,24,"pl-c1"]],[[0,61,"pl-c1"]],[[0,5,"pl-c1"]],[[0,1,"pl-c1"]],[[0,2,"pl-c1"]],[[0,0,"pl-c1"],[0,3,"pl-s"]],[],[[0,12,"pl-mh"],[6,12,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,82,"pl-corl"],[82,83,"pl-s"]],[],[[0,94,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,30,"pl-c1"],[30,31,"pl-s"],[59,60,"pl-s"],[60,79,"pl-c1"],[79,80,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,37,"pl-smi"]],[[14,22,"pl-s"],[14,15,"pl-pds"],[21,22,"pl-pds"]],[[13,60,"pl-s"],[13,14,"pl-pds"],[59,60,"pl-pds"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,37,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[4,101,"pl-c"],[4,6,"pl-c"]],[[26,54,"pl-s"],[26,27,"pl-pds"],[53,54,"pl-pds"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[49,50,"pl-k"]],[],[[0,214,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,18,"pl-mh"],[6,18,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,87,"pl-corl"],[87,88,"pl-s"]],[],[[0,104,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,35,"pl-c1"],[35,36,"pl-s"],[64,65,"pl-s"],[65,89,"pl-c1"],[89,90,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,42,"pl-smi"]],[[10,53,"pl-s"],[10,11,"pl-pds"],[52,53,"pl-pds"]],[[14,22,"pl-s"],[14,15,"pl-pds"],[21,22,"pl-pds"]],[[10,20,"pl-s"],[10,11,"pl-pds"],[19,20,"pl-pds"]],[[22,26,"pl-smi"],[26,27,"pl-k"]],[[8,11,"pl-k"],[12,26,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,42,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[4,101,"pl-c"],[4,6,"pl-c"]],[[26,54,"pl-s"],[26,27,"pl-pds"],[53,54,"pl-pds"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[54,55,"pl-k"]],[],[[0,76,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,20,"pl-mh"],[6,20,"pl-en"]],[],[],[],[[0,108,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,37,"pl-c1"],[37,38,"pl-s"],[66,67,"pl-s"],[67,93,"pl-c1"],[93,94,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,44,"pl-smi"]],[[10,53,"pl-s"],[10,11,"pl-pds"],[52,53,"pl-pds"]],[[13,60,"pl-s"],[13,14,"pl-pds"],[59,60,"pl-pds"]],[[15,19,"pl-smi"],[19,20,"pl-k"],[23,33,"pl-s"],[23,24,"pl-pds"],[32,33,"pl-pds"],[35,45,"pl-s"],[35,36,"pl-pds"],[44,45,"pl-pds"],[47,59,"pl-s"],[47,48,"pl-pds"],[58,59,"pl-pds"],[61,73,"pl-s"],[61,62,"pl-pds"],[72,73,"pl-pds"]],[[22,26,"pl-smi"],[26,27,"pl-k"]],[[8,11,"pl-k"],[12,26,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,44,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[4,39,"pl-c"],[4,6,"pl-c"]],[],[[4,101,"pl-c"],[4,6,"pl-c"]],[[26,47,"pl-c1"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[56,57,"pl-k"]],[],[[0,53,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,16,"pl-mh"],[6,16,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,85,"pl-corl"],[85,86,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,53,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-k"],[16,17,"pl-k"],[18,21,"pl-k"],[22,47,"pl-k"],[32,46,"pl-smi"]],[],[[12,15,"pl-k"],[16,30,"pl-smi"],[32,33,"pl-k"],[38,44,"pl-s"],[38,39,"pl-pds"],[43,44,"pl-pds"]],[[8,47,"pl-c"],[8,10,"pl-c"]],[[8,69,"pl-c"],[8,10,"pl-c"]],[],[],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,40,"pl-smi"]],[[13,16,"pl-k"],[17,26,"pl-smi"],[28,29,"pl-k"],[34,44,"pl-s"],[34,35,"pl-pds"],[43,44,"pl-pds"],[45,46,"pl-k"],[49,58,"pl-s"],[49,50,"pl-pds"],[57,58,"pl-pds"]],[[14,24,"pl-s"],[14,15,"pl-pds"],[23,24,"pl-pds"]],[],[[13,16,"pl-smi"],[16,17,"pl-k"],[20,32,"pl-s"],[20,21,"pl-pds"],[31,32,"pl-pds"],[34,37,"pl-c1"]],[[25,29,"pl-smi"],[29,30,"pl-k"]],[[8,11,"pl-k"],[12,26,"pl-smi"]],[[18,61,"pl-s"],[18,19,"pl-pds"],[60,61,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,37,"pl-s"],[21,22,"pl-pds"],[36,37,"pl-pds"]],[[8,11,"pl-k"],[12,26,"pl-smi"]],[[18,34,"pl-s"],[18,19,"pl-pds"],[33,34,"pl-pds"]],[[22,30,"pl-s"],[22,23,"pl-pds"],[29,30,"pl-pds"]],[[21,68,"pl-s"],[21,22,"pl-pds"],[67,68,"pl-pds"]],[],[],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,40,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[4,101,"pl-c"],[4,6,"pl-c"]],[[26,54,"pl-s"],[26,27,"pl-pds"],[53,54,"pl-pds"]],[],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[52,53,"pl-k"]],[],[[0,129,"pl-c"],[0,2,"pl-c"]],[[0,3,"pl-s"]],[],[[0,15,"pl-mh"],[5,15,"pl-en"]],[],[[0,21,"pl-mh"],[6,21,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,81,"pl-corl"],[81,82,"pl-s"]],[],[[0,110,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,38,"pl-c1"],[38,39,"pl-s"],[67,68,"pl-s"],[68,95,"pl-c1"],[95,96,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,45,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[4,101,"pl-c"],[4,6,"pl-c"]],[[26,54,"pl-s"],[26,27,"pl-pds"],[53,54,"pl-pds"]],[[0,3,"pl-k"],[13,14,"pl-k"],[24,25,"pl-k"],[48,49,"pl-k"]],[[0,3,"pl-s"]],[],[[0,22,"pl-mh"],[6,22,"pl-en"]],[],[],[],[[0,1,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,82,"pl-corl"],[82,83,"pl-s"]],[],[[0,112,"pl-ent"],[0,2,"pl-ent"],[10,11,"pl-s"],[11,39,"pl-c1"],[39,40,"pl-s"],[68,69,"pl-s"],[69,97,"pl-c1"],[97,98,"pl-s"]],[[0,0,"pl-ent"]],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"],[12,13,"pl-k"],[14,17,"pl-k"],[18,46,"pl-smi"]],[[23,26,"pl-smi"],[26,27,"pl-k"],[30,48,"pl-s"],[30,31,"pl-pds"],[47,48,"pl-pds"],[50,62,"pl-s"],[50,51,"pl-pds"],[61,62,"pl-pds"]],[[26,54,"pl-s"],[26,27,"pl-pds"],[53,54,"pl-pds"]],[[0,3,"pl-k"],[15,16,"pl-k"],[17,21,"pl-smi"],[21,22,"pl-k"]],[[4,7,"pl-k"],[8,23,"pl-smi"]],[[14,57,"pl-s"],[14,15,"pl-pds"],[56,57,"pl-pds"]],[[18,26,"pl-s"],[18,19,"pl-pds"],[25,26,"pl-pds"]],[[17,64,"pl-s"],[17,18,"pl-pds"],[63,64,"pl-pds"]],[[21,25,"pl-c1"]],[],[[9,10,"pl-k"],[46,47,"pl-k"]],[[0,3,"pl-s"]],[],[],[[0,27,"pl-mh"],[4,27,"pl-en"]],[],[],[],[],[[0,1,"pl-v"]],[[0,1,"pl-v"]],[[0,1,"pl-v"]],[],[[64,65,"pl-s"],[65,74,"pl-c1"],[74,75,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,39,"pl-c"],[0,2,"pl-c"]],[[0,19,"pl-smi"],[27,28,"pl-k"],[29,32,"pl-k"],[33,52,"pl-smi"]],[[12,35,"pl-s"],[12,13,"pl-pds"],[34,35,"pl-pds"]],[[13,41,"pl-s"],[13,14,"pl-pds"],[40,41,"pl-pds"]],[[0,13,"pl-smi"],[24,25,"pl-k"],[26,29,"pl-k"],[30,43,"pl-smi"]],[],[[0,56,"pl-c"],[0,2,"pl-c"]],[[0,19,"pl-k"],[4,10,"pl-smi"],[12,18,"pl-smi"],[32,33,"pl-k"],[34,37,"pl-smi"],[37,38,"pl-k"]],[[4,10,"pl-s"],[4,5,"pl-pds"],[9,10,"pl-pds"],[12,22,"pl-s"],[12,13,"pl-pds"],[21,22,"pl-pds"]],[[4,12,"pl-s"],[4,5,"pl-pds"],[11,12,"pl-pds"],[14,29,"pl-s"],[14,15,"pl-pds"],[28,29,"pl-pds"]],[[4,14,"pl-s"],[4,5,"pl-pds"],[13,14,"pl-pds"],[16,30,"pl-s"],[16,17,"pl-pds"],[29,30,"pl-pds"]],[],[],[[0,20,"pl-c"],[0,2,"pl-c"]],[[0,25,"pl-smi"],[34,35,"pl-k"],[36,61,"pl-smi"],[61,62,"pl-k"],[70,76,"pl-s"],[70,71,"pl-pds"],[75,76,"pl-pds"],[78,114,"pl-s"],[78,79,"pl-pds"],[113,114,"pl-pds"]],[[15,25,"pl-s"],[15,16,"pl-pds"],[24,25,"pl-pds"]],[[16,27,"pl-s"],[16,17,"pl-pds"],[26,27,"pl-pds"],[29,33,"pl-s"],[29,30,"pl-pds"],[32,33,"pl-pds"]],[[16,36,"pl-s"],[16,17,"pl-pds"],[35,36,"pl-pds"],[38,51,"pl-s"],[38,39,"pl-pds"],[50,51,"pl-pds"]],[],[[12,36,"pl-s"],[12,13,"pl-pds"],[35,36,"pl-pds"],[38,47,"pl-s"],[38,39,"pl-pds"],[46,47,"pl-pds"]],[],[[0,3,"pl-s"]],[],[[0,80,"pl-mh"],[5,80,"pl-en"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,46,"pl-c"],[0,2,"pl-c"]],[[0,19,"pl-k"],[12,18,"pl-smi"],[32,33,"pl-k"],[43,44,"pl-k"],[57,58,"pl-k"],[71,72,"pl-k"]],[],[[0,6,"pl-smi"],[15,16,"pl-k"],[28,29,"pl-k"]],[[0,6,"pl-smi"],[6,7,"pl-k"],[10,11,"pl-k"],[19,31,"pl-s"],[19,20,"pl-pds"],[30,31,"pl-pds"],[32,33,"pl-k"]],[],[[0,74,"pl-c"],[0,2,"pl-c"]],[[0,6,"pl-smi"],[6,7,"pl-k"],[10,11,"pl-k"],[19,34,"pl-s"],[19,20,"pl-pds"],[33,34,"pl-pds"],[35,36,"pl-k"],[48,49,"pl-k"]],[[0,6,"pl-smi"],[6,7,"pl-k"],[10,11,"pl-k"],[19,30,"pl-s"],[19,20,"pl-pds"],[29,30,"pl-pds"],[31,32,"pl-k"],[44,45,"pl-k"]],[[0,3,"pl-s"]],[],[[0,90,"pl-mh"],[5,90,"pl-en"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,38,"pl-c"],[0,2,"pl-c"]],[[0,5,"pl-k"],[6,28,"pl-en"]],[[4,11,"pl-k"],[12,19,"pl-k"]],[[4,11,"pl-k"],[12,18,"pl-smi"]],[],[[4,10,"pl-k"],[11,18,"pl-k"],[19,28,"pl-en"],[33,39,"pl-k"]],[[4,10,"pl-k"],[11,15,"pl-k"],[16,26,"pl-en"],[27,34,"pl-k"],[35,42,"pl-v"],[46,50,"pl-c1"],[50,51,"pl-k"],[59,60,"pl-k"]],[[4,10,"pl-k"],[11,17,"pl-smi"],[18,27,"pl-en"],[32,38,"pl-k"]],[[4,10,"pl-k"],[11,15,"pl-k"],[16,25,"pl-en"],[26,32,"pl-smi"],[33,39,"pl-v"],[43,47,"pl-c1"],[47,48,"pl-k"],[55,56,"pl-k"]],[],[],[[0,57,"pl-c"],[0,2,"pl-c"]],[[0,35,"pl-k"],[12,34,"pl-smi"],[45,46,"pl-k"],[56,57,"pl-k"]],[[19,41,"pl-smi"],[41,42,"pl-k"]],[],[],[[0,22,"pl-smi"],[46,47,"pl-k"],[56,57,"pl-k"]],[[0,6,"pl-smi"],[6,7,"pl-k"],[10,11,"pl-k"],[19,30,"pl-s"],[19,20,"pl-pds"],[29,30,"pl-pds"],[31,32,"pl-k"],[55,56,"pl-k"]],[[0,6,"pl-smi"],[6,7,"pl-k"],[10,11,"pl-k"],[19,29,"pl-s"],[19,20,"pl-pds"],[28,29,"pl-pds"],[30,31,"pl-k"],[54,55,"pl-k"]],[],[[0,71,"pl-c"],[0,2,"pl-c"]],[[0,6,"pl-smi"],[6,7,"pl-k"],[10,11,"pl-k"],[19,34,"pl-s"],[19,20,"pl-pds"],[33,34,"pl-pds"],[35,36,"pl-k"],[45,46,"pl-k"]],[[0,6,"pl-smi"],[6,7,"pl-k"],[10,11,"pl-k"],[19,30,"pl-s"],[19,20,"pl-pds"],[29,30,"pl-pds"],[31,32,"pl-k"],[41,42,"pl-k"]],[[0,3,"pl-s"]],[],[[0,33,"pl-mh"],[5,33,"pl-en"]],[],[[29,30,"pl-s"],[30,50,"pl-c1"],[50,51,"pl-s"],[207,208,"pl-s"],[208,231,"pl-c1"],[231,232,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,25,"pl-smi"],[34,35,"pl-k"],[36,61,"pl-smi"],[61,62,"pl-k"],[70,80,"pl-smi"],[80,85,"pl-c1"],[80,81,"pl-k"],[87,129,"pl-s"],[87,88,"pl-pds"],[128,129,"pl-pds"]],[[10,13,"pl-k"],[14,32,"pl-smi"],[34,35,"pl-k"],[40,51,"pl-s"],[40,41,"pl-pds"],[50,51,"pl-pds"],[52,53,"pl-k"],[62,70,"pl-s"],[62,63,"pl-pds"],[69,70,"pl-pds"],[71,72,"pl-k"],[77,87,"pl-s"],[77,78,"pl-pds"],[86,87,"pl-pds"]],[],[],[[9,10,"pl-k"],[31,58,"pl-smi"],[58,59,"pl-k"]],[],[],[[17,18,"pl-k"],[18,19,"pl-k"],[20,26,"pl-smi"],[26,27,"pl-k"],[30,31,"pl-k"],[39,49,"pl-s"],[39,40,"pl-pds"],[48,49,"pl-pds"],[50,51,"pl-k"],[60,61,"pl-k"],[76,96,"pl-c"],[76,78,"pl-c"]],[[17,18,"pl-k"],[18,19,"pl-k"],[20,26,"pl-smi"],[26,27,"pl-k"],[30,31,"pl-k"],[39,55,"pl-s"],[39,40,"pl-pds"],[54,55,"pl-pds"],[56,57,"pl-k"],[63,64,"pl-k"],[78,89,"pl-c"],[78,80,"pl-c"]],[],[[16,17,"pl-k"],[17,18,"pl-k"],[19,25,"pl-smi"],[25,26,"pl-k"],[29,30,"pl-k"],[38,58,"pl-s"],[38,39,"pl-pds"],[57,58,"pl-pds"]],[[23,24,"pl-k"],[24,25,"pl-k"]],[[8,14,"pl-smi"],[14,15,"pl-k"],[18,19,"pl-k"],[27,42,"pl-s"],[27,28,"pl-pds"],[41,42,"pl-pds"],[43,44,"pl-k"],[48,49,"pl-k"]],[[8,14,"pl-k"],[15,19,"pl-c1"]],[],[[0,3,"pl-s"]],[],[[36,37,"pl-s"],[58,59,"pl-s"],[59,60,"pl-s"],[60,81,"pl-corl"],[81,82,"pl-s"]],[],[[0,18,"pl-mh"],[5,18,"pl-en"]],[],[[4,5,"pl-s"],[24,25,"pl-s"],[25,26,"pl-s"],[26,45,"pl-corl"],[45,46,"pl-s"],[96,97,"pl-s"],[97,108,"pl-c1"],[108,109,"pl-s"],[114,115,"pl-s"],[115,135,"pl-c1"],[135,136,"pl-s"]],[],[],[],[[0,11,"pl-mh"],[4,11,"pl-en"]],[],[[74,75,"pl-s"],[75,86,"pl-c1"],[86,87,"pl-s"],[163,165,"pl-s"],[172,174,"pl-s"]],[],[[0,19,"pl-mh"],[5,19,"pl-en"]],[],[[0,2,"pl-s"],[29,31,"pl-s"]],[],[[0,2,"pl-s"],[22,24,"pl-s"]],[[0,1,"pl-v"],[2,4,"pl-s"],[18,20,"pl-s"]],[],[[0,22,"pl-mh"],[5,22,"pl-en"]],[],[[0,1,"pl-s"],[1,2,"pl-v"],[3,5,"pl-s"],[31,33,"pl-s"]],[[0,1,"pl-s"],[1,2,"pl-v"],[3,5,"pl-s"],[26,28,"pl-s"]],[[0,1,"pl-s"],[1,2,"pl-v"],[3,5,"pl-s"],[18,20,"pl-s"],[46,47,"pl-s"],[47,64,"pl-c1"],[64,65,"pl-s"]],[],[[0,18,"pl-mh"],[5,18,"pl-en"]],[],[[35,36,"pl-s"],[36,55,"pl-c1"],[55,56,"pl-s"]],[],[[0,2,"pl-s"],[22,24,"pl-s"]],[[0,1,"pl-v"],[48,49,"pl-s"],[49,59,"pl-c1"],[59,60,"pl-s"]],[[0,1,"pl-v"],[2,3,"pl-s"],[3,11,"pl-c1"],[11,12,"pl-s"],[29,30,"pl-s"],[30,41,"pl-c1"],[41,42,"pl-s"],[60,61,"pl-s"],[61,82,"pl-c1"],[82,83,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,6,"pl-k"],[7,50,"pl-smi"]],[[0,6,"pl-k"],[7,47,"pl-smi"]],[[0,6,"pl-k"],[7,60,"pl-smi"]],[[0,6,"pl-k"],[7,31,"pl-smi"]],[],[[0,6,"pl-k"],[7,12,"pl-k"],[13,20,"pl-en"]],[[4,10,"pl-k"],[11,17,"pl-k"],[18,22,"pl-k"],[23,27,"pl-en"],[28,34,"pl-k"],[37,41,"pl-v"],[43,49,"pl-k"],[50,59,"pl-smi"]],[[8,11,"pl-k"],[19,20,"pl-k"],[21,24,"pl-k"],[25,44,"pl-smi"]],[[24,30,"pl-smi"],[30,31,"pl-k"],[38,51,"pl-s"],[38,39,"pl-pds"],[50,51,"pl-pds"],[54,114,"pl-c"],[54,56,"pl-c"]],[[25,31,"pl-smi"],[31,32,"pl-k"],[39,53,"pl-s"],[39,40,"pl-pds"],[52,53,"pl-pds"],[56,114,"pl-c"],[56,58,"pl-c"]],[[38,44,"pl-smi"],[44,45,"pl-k"],[52,66,"pl-s"],[52,53,"pl-pds"],[65,66,"pl-pds"],[69,111,"pl-c"],[69,71,"pl-c"]],[[28,29,"pl-c1"],[31,95,"pl-c"],[31,33,"pl-c"]],[[35,43,"pl-smi"],[43,44,"pl-k"],[53,56,"pl-c1"],[60,129,"pl-c"],[60,62,"pl-c"]],[],[[8,11,"pl-k"],[22,23,"pl-k"],[24,27,"pl-k"],[28,41,"pl-smi"]],[[8,11,"pl-k"],[21,22,"pl-k"],[32,33,"pl-k"],[58,59,"pl-k"]],[],[],[[0,3,"pl-s"]],[],[[0,42,"pl-mh"],[5,42,"pl-en"]],[],[[41,42,"pl-s"],[42,53,"pl-c1"],[53,54,"pl-s"]],[],[[0,3,"pl-s"],[3,7,"pl-en"]],[[0,3,"pl-k"]],[[4,7,"pl-k"],[17,18,"pl-k"],[28,29,"pl-k"],[43,44,"pl-k"]],[[2,7,"pl-k"],[9,27,"pl-smi"]],[[4,6,"pl-k"],[9,10,"pl-k"],[21,31,"pl-k"],[32,40,"pl-smi"]],[[8,16,"pl-smi"],[23,24,"pl-k"],[26,34,"pl-smi"],[37,38,"pl-k"]],[],[[8,47,"pl-c"],[8,10,"pl-c"]],[[8,14,"pl-smi"],[26,27,"pl-k"],[33,34,"pl-k"]],[[8,10,"pl-k"],[23,25,"pl-k"],[26,30,"pl-c1"]],[[12,18,"pl-smi"],[18,19,"pl-k"],[22,23,"pl-k"],[31,63,"pl-s"],[31,32,"pl-pds"],[62,63,"pl-pds"],[64,65,"pl-k"],[77,78,"pl-k"],[79,89,"pl-s"],[79,80,"pl-pds"],[88,89,"pl-pds"]],[],[],[[8,14,"pl-smi"],[14,15,"pl-k"],[18,19,"pl-k"],[27,36,"pl-s"],[27,28,"pl-pds"],[35,36,"pl-pds"],[37,38,"pl-k"],[44,45,"pl-k"]],[],[],[[0,3,"pl-s"]],[],[],[],[[0,17,"pl-mh"],[4,17,"pl-en"]],[],[[0,1,"pl-ml"],[9,10,"pl-ml"],[24,25,"pl-ml"],[38,39,"pl-ml"]],[[0,1,"pl-ml"],[16,17,"pl-ml"],[32,33,"pl-ml"],[48,49,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[15,17,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,48,"pl-corl"],[48,49,"pl-s"],[50,51,"pl-ml"],[52,54,"pl-s"],[58,60,"pl-s"],[92,93,"pl-ml"],[109,115,"pl-c1"],[112,114,"pl-c1"],[120,126,"pl-c1"],[123,125,"pl-c1"],[158,159,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[10,12,"pl-s"],[12,13,"pl-s"],[13,14,"pl-s"],[14,38,"pl-corl"],[38,39,"pl-s"],[40,41,"pl-ml"],[42,44,"pl-s"],[48,50,"pl-s"],[76,77,"pl-ml"],[133,134,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[16,18,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,50,"pl-corl"],[50,51,"pl-s"],[52,53,"pl-ml"],[54,56,"pl-s"],[60,62,"pl-s"],[71,72,"pl-ml"],[88,89,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[16,18,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,50,"pl-corl"],[50,51,"pl-s"],[52,53,"pl-ml"],[54,56,"pl-s"],[62,64,"pl-s"],[84,85,"pl-ml"],[101,102,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[11,13,"pl-s"],[13,14,"pl-s"],[14,15,"pl-s"],[15,40,"pl-corl"],[40,41,"pl-s"],[42,43,"pl-ml"],[44,46,"pl-s"],[50,52,"pl-s"],[79,80,"pl-ml"],[224,225,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[13,15,"pl-s"],[15,16,"pl-s"],[16,17,"pl-s"],[17,44,"pl-corl"],[44,45,"pl-s"],[46,47,"pl-ml"],[48,50,"pl-s"],[53,55,"pl-s"],[75,76,"pl-ml"],[89,90,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[16,18,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,50,"pl-corl"],[50,51,"pl-s"],[52,53,"pl-ml"],[54,56,"pl-s"],[60,62,"pl-s"],[95,96,"pl-ml"],[166,167,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[15,17,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,48,"pl-corl"],[48,49,"pl-s"],[50,51,"pl-ml"],[52,54,"pl-s"],[57,59,"pl-s"],[68,69,"pl-ml"],[86,87,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[14,16,"pl-s"],[16,17,"pl-s"],[17,18,"pl-s"],[18,46,"pl-corl"],[46,47,"pl-s"],[48,49,"pl-ml"],[50,52,"pl-s"],[56,58,"pl-s"],[89,90,"pl-ml"],[185,186,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[9,11,"pl-s"],[11,12,"pl-s"],[12,13,"pl-s"],[13,36,"pl-corl"],[36,37,"pl-s"],[38,39,"pl-ml"],[40,42,"pl-s"],[46,48,"pl-s"],[73,74,"pl-ml"],[163,164,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[19,21,"pl-s"],[21,22,"pl-s"],[22,23,"pl-s"],[23,56,"pl-corl"],[56,57,"pl-s"],[58,59,"pl-ml"],[60,62,"pl-s"],[65,67,"pl-s"],[123,124,"pl-ml"],[171,172,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[27,29,"pl-s"],[29,30,"pl-s"],[30,31,"pl-s"],[31,72,"pl-corl"],[72,73,"pl-s"],[74,75,"pl-ml"],[76,78,"pl-s"],[81,83,"pl-s"],[129,130,"pl-ml"],[185,186,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[28,30,"pl-s"],[30,31,"pl-s"],[31,32,"pl-s"],[32,74,"pl-corl"],[74,75,"pl-s"],[76,77,"pl-ml"],[78,80,"pl-s"],[83,85,"pl-s"],[126,127,"pl-ml"],[187,188,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[16,18,"pl-s"],[18,19,"pl-s"],[19,20,"pl-s"],[20,50,"pl-corl"],[50,51,"pl-s"],[52,53,"pl-ml"],[54,56,"pl-s"],[59,61,"pl-s"],[89,90,"pl-ml"],[130,131,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[24,26,"pl-s"],[26,27,"pl-s"],[27,28,"pl-s"],[28,66,"pl-corl"],[66,67,"pl-s"],[68,69,"pl-ml"],[70,72,"pl-s"],[76,78,"pl-s"],[120,121,"pl-ml"],[193,194,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[10,12,"pl-s"],[12,13,"pl-s"],[13,14,"pl-s"],[14,38,"pl-corl"],[38,39,"pl-s"],[40,41,"pl-ml"],[42,44,"pl-s"],[48,50,"pl-s"],[76,77,"pl-ml"],[114,115,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[20,22,"pl-s"],[22,23,"pl-s"],[23,24,"pl-s"],[24,58,"pl-corl"],[58,59,"pl-s"],[60,61,"pl-ml"],[62,64,"pl-s"],[67,69,"pl-s"],[125,126,"pl-ml"],[175,176,"pl-ml"]],[[0,1,"pl-ml"],[2,3,"pl-s"],[3,5,"pl-s"],[28,30,"pl-s"],[30,31,"pl-s"],[31,32,"pl-s"],[32,74,"pl-corl"],[74,75,"pl-s"],[76,77,"pl-ml"],[78,80,"pl-s"],[84,86,"pl-s"],[127,128,"pl-ml"],[162,163,"pl-ml"]],[],[],[],[[0,10,"pl-mh"],[4,10,"pl-en"]],[],[],[[0,1,"pl-v"],[2,3,"pl-s"],[25,26,"pl-s"],[26,27,"pl-s"],[27,103,"pl-corl"],[103,104,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[6,7,"pl-s"],[7,8,"pl-s"],[8,65,"pl-corl"],[65,66,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[12,13,"pl-s"],[13,14,"pl-s"],[14,77,"pl-corl"],[77,78,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,93,"pl-corl"],[93,94,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[16,17,"pl-s"],[17,18,"pl-s"],[18,85,"pl-corl"],[85,86,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[21,22,"pl-s"],[22,23,"pl-s"],[23,95,"pl-corl"],[95,96,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,87,"pl-corl"],[87,88,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,93,"pl-corl"],[93,94,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[21,22,"pl-s"],[22,23,"pl-s"],[23,95,"pl-corl"],[95,96,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[25,26,"pl-s"],[26,27,"pl-s"],[27,103,"pl-corl"],[103,104,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[13,14,"pl-s"],[14,15,"pl-s"],[15,79,"pl-corl"],[79,80,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[15,16,"pl-s"],[16,17,"pl-s"],[17,83,"pl-corl"],[83,84,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[23,24,"pl-s"],[24,25,"pl-s"],[25,99,"pl-corl"],[99,100,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[16,17,"pl-s"],[17,18,"pl-s"],[18,85,"pl-corl"],[85,86,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[11,12,"pl-s"],[12,13,"pl-s"],[13,75,"pl-corl"],[75,76,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[12,13,"pl-s"],[13,14,"pl-s"],[14,77,"pl-corl"],[77,78,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,93,"pl-corl"],[93,94,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[24,25,"pl-s"],[25,26,"pl-s"],[26,101,"pl-corl"],[101,102,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[24,25,"pl-s"],[25,26,"pl-s"],[26,101,"pl-corl"],[101,102,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[22,23,"pl-s"],[23,24,"pl-s"],[24,97,"pl-corl"],[97,98,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[21,22,"pl-s"],[22,23,"pl-s"],[23,95,"pl-corl"],[95,96,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[22,23,"pl-s"],[23,24,"pl-s"],[24,97,"pl-corl"],[97,98,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[13,14,"pl-s"],[14,15,"pl-s"],[15,79,"pl-corl"],[79,80,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[12,13,"pl-s"],[13,14,"pl-s"],[14,77,"pl-corl"],[77,78,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[16,17,"pl-s"],[17,18,"pl-s"],[18,85,"pl-corl"],[85,86,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[24,25,"pl-s"],[25,26,"pl-s"],[26,101,"pl-corl"],[101,102,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,87,"pl-corl"],[87,88,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[12,13,"pl-s"],[13,14,"pl-s"],[14,77,"pl-corl"],[77,78,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,93,"pl-corl"],[93,94,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[19,20,"pl-s"],[20,21,"pl-s"],[21,91,"pl-corl"],[91,92,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,93,"pl-corl"],[93,94,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[31,32,"pl-s"],[32,33,"pl-s"],[33,115,"pl-corl"],[115,116,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[7,8,"pl-s"],[8,9,"pl-s"],[9,67,"pl-corl"],[67,68,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[21,22,"pl-s"],[22,23,"pl-s"],[23,95,"pl-corl"],[95,96,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[22,23,"pl-s"],[23,24,"pl-s"],[24,97,"pl-corl"],[97,98,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[21,22,"pl-s"],[22,23,"pl-s"],[23,95,"pl-corl"],[95,96,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[19,20,"pl-s"],[20,21,"pl-s"],[21,91,"pl-corl"],[91,92,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,93,"pl-corl"],[93,94,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[11,12,"pl-s"],[12,13,"pl-s"],[13,75,"pl-corl"],[75,76,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[7,8,"pl-s"],[8,9,"pl-s"],[9,67,"pl-corl"],[67,68,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[8,9,"pl-s"],[9,10,"pl-s"],[10,69,"pl-corl"],[69,70,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,93,"pl-corl"],[93,94,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[12,13,"pl-s"],[13,14,"pl-s"],[14,77,"pl-corl"],[77,78,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,87,"pl-corl"],[87,88,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[34,35,"pl-s"],[35,36,"pl-s"],[36,121,"pl-corl"],[121,122,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[25,26,"pl-s"],[26,27,"pl-s"],[27,103,"pl-corl"],[103,104,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[33,34,"pl-s"],[34,35,"pl-s"],[35,119,"pl-corl"],[119,120,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[34,35,"pl-s"],[35,36,"pl-s"],[36,121,"pl-corl"],[121,122,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[22,23,"pl-s"],[23,24,"pl-s"],[24,97,"pl-corl"],[97,98,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[14,15,"pl-s"],[15,16,"pl-s"],[16,81,"pl-corl"],[81,82,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[22,23,"pl-s"],[23,24,"pl-s"],[24,97,"pl-corl"],[97,98,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[15,16,"pl-s"],[16,17,"pl-s"],[17,83,"pl-corl"],[83,84,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[19,20,"pl-s"],[20,21,"pl-s"],[21,91,"pl-corl"],[91,92,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[20,21,"pl-s"],[21,22,"pl-s"],[22,93,"pl-corl"],[93,94,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[24,25,"pl-s"],[25,26,"pl-s"],[26,101,"pl-corl"],[101,102,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[13,14,"pl-s"],[14,15,"pl-s"],[15,79,"pl-corl"],[79,80,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[9,10,"pl-s"],[10,11,"pl-s"],[11,71,"pl-corl"],[71,72,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[8,9,"pl-s"],[9,10,"pl-s"],[10,69,"pl-corl"],[69,70,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[44,45,"pl-s"],[45,46,"pl-s"],[46,141,"pl-corl"],[141,142,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[30,31,"pl-s"],[31,32,"pl-s"],[32,113,"pl-corl"],[113,114,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[8,9,"pl-s"],[9,10,"pl-s"],[10,69,"pl-corl"],[69,70,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[14,15,"pl-s"],[15,16,"pl-s"],[16,81,"pl-corl"],[81,82,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[11,12,"pl-s"],[12,13,"pl-s"],[13,75,"pl-corl"],[75,76,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[27,28,"pl-s"],[28,29,"pl-s"],[29,107,"pl-corl"],[107,108,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,87,"pl-corl"],[87,88,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,87,"pl-corl"],[87,88,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,87,"pl-corl"],[87,88,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[11,12,"pl-s"],[12,13,"pl-s"],[13,75,"pl-corl"],[75,76,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[16,17,"pl-s"],[17,18,"pl-s"],[18,85,"pl-corl"],[85,86,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[26,27,"pl-s"],[27,28,"pl-s"],[28,105,"pl-corl"],[105,106,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[32,33,"pl-s"],[33,34,"pl-s"],[34,117,"pl-corl"],[117,118,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[38,39,"pl-s"],[39,40,"pl-s"],[40,129,"pl-corl"],[129,130,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[7,8,"pl-s"],[8,9,"pl-s"],[9,67,"pl-corl"],[67,68,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,87,"pl-corl"],[87,88,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[8,9,"pl-s"],[9,10,"pl-s"],[10,69,"pl-corl"],[69,70,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[10,11,"pl-s"],[11,12,"pl-s"],[12,73,"pl-corl"],[73,74,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[14,15,"pl-s"],[15,16,"pl-s"],[16,81,"pl-corl"],[81,82,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[24,25,"pl-s"],[25,26,"pl-s"],[26,101,"pl-corl"],[101,102,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[28,29,"pl-s"],[29,30,"pl-s"],[30,109,"pl-corl"],[109,110,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[14,15,"pl-s"],[15,16,"pl-s"],[16,81,"pl-corl"],[81,82,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[11,12,"pl-s"],[12,13,"pl-s"],[13,75,"pl-corl"],[75,76,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[33,34,"pl-s"],[34,35,"pl-s"],[35,119,"pl-corl"],[119,120,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[25,26,"pl-s"],[26,27,"pl-s"],[27,103,"pl-corl"],[103,104,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[33,34,"pl-s"],[34,35,"pl-s"],[35,119,"pl-corl"],[119,120,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[34,35,"pl-s"],[35,36,"pl-s"],[36,121,"pl-corl"],[121,122,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[15,16,"pl-s"],[16,17,"pl-s"],[17,83,"pl-corl"],[83,84,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[22,23,"pl-s"],[23,24,"pl-s"],[24,97,"pl-corl"],[97,98,"pl-s"]],[],[[0,1,"pl-v"],[2,3,"pl-s"],[21,22,"pl-s"],[22,23,"pl-s"],[23,95,"pl-corl"],[95,96,"pl-s"]],[],[],[],[[0,17,"pl-mh"],[4,17,"pl-en"]],[],[[71,72,"pl-s"],[85,86,"pl-s"],[86,87,"pl-s"],[87,112,"pl-corl"],[112,113,"pl-s"],[154,155,"pl-s"],[172,173,"pl-s"],[173,174,"pl-s"],[174,241,"pl-corl"],[241,242,"pl-s"]],[],[[0,15,"pl-mh"],[3,15,"pl-en"]],[],[[4,5,"pl-s"],[17,18,"pl-s"],[18,19,"pl-s"],[19,36,"pl-corl"],[36,37,"pl-s"]],[],[[0,9,"pl-mh"],[3,9,"pl-en"]],[],[[0,1,"pl-s"],[8,9,"pl-s"],[9,10,"pl-s"],[10,36,"pl-corl"],[36,37,"pl-s"]],[],[[0,10,"pl-mh"],[3,10,"pl-en"]],[],[[63,64,"pl-s"],[71,72,"pl-s"],[72,73,"pl-s"],[73,126,"pl-corl"],[126,127,"pl-s"]],[],[[44,45,"pl-s"],[62,63,"pl-s"],[63,64,"pl-s"],[64,113,"pl-corl"],[113,114,"pl-s"],[144,145,"pl-s"],[158,159,"pl-s"],[159,160,"pl-s"],[160,271,"pl-corl"],[271,272,"pl-s"],[293,294,"pl-s"],[312,313,"pl-s"],[313,314,"pl-s"],[314,383,"pl-corl"],[383,384,"pl-s"]],[]],"colorizedLines":null}},"title":"java-sdk/README.md at main · openfga/java-sdk","appPayload":{},"meta":{"title":"java-sdk/README.md at main · openfga/java-sdk"}}</script>
  <div data-target="react-app.reactRoot"><meta name="github-code-view-meta-stats" id="github-code-view-meta-stats" data-hydrostats="publish"/> <!-- --> <a hidden="" id="code-view-repo-link" href="/openfga/java-sdk" data-discover="true"></a> <div class="d-none"></div><div><div style="--spacing:var(--spacing-none)" class="prc-PageLayout-PageLayoutRoot--KH-d" data-component="SplitPageLayout" data-has-sidebar="true"><div class="prc-PageLayout-SidebarWrapper-kLG4B CopilotSidePanelSidebar-module__SidePanel__L3O0C CopilotSidePanelSidebar-module__HiddenSidePanel__TBRGn" style="--spacing-column:var(--spacing-none)" data-is-hidden="false" data-position="end" data-sticky="true" data-responsive-variant="fullscreen"><div class="prc-PageLayout-VerticalDivider-9QRmK prc-PageLayout-SidebarVerticalDivider-0Rl0V" data-component="PageLayout.VerticalDivider" data-variant="line" data-position="end" style="--spacing:var(--spacing-none)"><div class="prc-PageLayout-DraggableHandle-9s6B4" data-component="PageLayout.DragHandle" role="slider" aria-label="Draggable pane splitter" aria-valuemin="450" aria-valuemax="768" aria-valuenow="544" aria-valuetext="Pane width 544 pixels" tabindex="0"></div></div><div class="prc-PageLayout-Sidebar-iciWg" data-component="SplitPageLayout.Sidebar" data-resizable="true" style="--spacing:var(--spacing-normal);--pane-min-width:450px;--pane-max-width:768px;--pane-width-custom:544px;--pane-width-size:var(--pane-width-custom);--pane-width:544px"><div class="height-full" data-testid="copilot-code-view-side-panel"><div id="copilot-side-panel-content" class="height-full"></div></div></div></div><div class="prc-PageLayout-PageLayoutWrapper-2BhU2" data-width="full"><div class="prc-PageLayout-PageLayoutContent-BneH9"><div id="repos-file-tree-sidebar" class="CodeViewFileTreeLayout-module__sidebar__n_Aau" tabindex="0"><div class="prc-PageLayout-PaneWrapper-pHPop ReposFileTreePane-module__Pane__rBZpI ReposFileTreePane-module__HideTree__AYZnm ReposFileTreePane-module__HidePane__VHAVt" style="--offset-header:0px;--spacing-row:var(--spacing-none);--spacing-column:var(--spacing-none)" data-is-hidden="false" data-position="start" data-sticky="true"><div class="prc-PageLayout-HorizontalDivider-JLVqp prc-PageLayout-PaneHorizontalDivider-9tbnE" data-component="PageLayout.HorizontalDivider" data-variant-regular="none" data-variant-narrow="none" data-position="start" style="--spacing-divider:var(--spacing-none);--spacing:var(--spacing-none)"></div><div class="prc-PageLayout-Pane-AyzHK" data-component="SplitPageLayout.Pane" data-resizable="true" style="--spacing:var(--spacing-none);--pane-min-width:256px;--pane-max-width:calc(100vw - var(--pane-max-width-diff));--pane-width-size:var(--pane-width-large);--pane-width:320px"></div><div class="prc-PageLayout-VerticalDivider-9QRmK prc-PageLayout-PaneVerticalDivider-le57g" data-component="PageLayout.VerticalDivider" data-variant-narrow="none" data-variant-regular="line" data-variant-wide="line" data-position="start" style="--spacing:var(--spacing-none)"><div class="prc-PageLayout-DraggableHandle-9s6B4" data-component="PageLayout.DragHandle" role="slider" aria-label="Draggable pane splitter" aria-valuemin="256" aria-valuemax="600" aria-valuenow="320" aria-valuetext="Pane width 320 pixels" tabindex="0"></div></div></div></div><div data-component="SplitPageLayout.Content" class="prc-PageLayout-ContentWrapper-gR9eG"><div class="prc-PageLayout-Content-xWL-A" data-width="full" style="--spacing:var(--spacing-none)"><div class="SharedPageLayout-module__content__IwGAp" data-selector="repos-split-pane-content" id="repos-split-pane-content" tabindex="0"> <!-- --> <div class="container CodeViewHeader-module__Box__JkPOb"><div class="CodeViewHeader-module__StickyHeader__Qn7UN" id="StickyHeader"><div class="CodeViewHeader-module__Box_1__SbNDV"><div class="CodeViewHeader-module__Box_2__TB46f"><div class="react-code-view-header-wrap--narrow CodeViewHeader-module__Box_3__q1zUL"><div class="CodeViewHeader-module__treeToggleWrapper__RQ__9"><h2 class="use-tree-pane-module__Heading__s4QbZ prc-Heading-Heading-MtWFE" data-component="Heading"><button data-component="Button" type="button" aria-label="Expand file tree" data-testid="expand-file-tree-button-mobile" class="prc-Button-ButtonBase-9n-Xk ExpandFileTreeButton-module__Button_1__Svs95" data-loading="false" data-size="medium" data-variant="invisible"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-arrow-left" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M7.78 12.53a.75.75 0 0 1-1.06 0L2.47 8.28a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L4.81 7h7.44a.75.75 0 0 1 0 1.5H4.81l2.97 2.97a.75.75 0 0 1 0 1.06Z"></path></svg></span><span data-component="text" class="prc-Button-Label-FWkx3">Files</span></span></button><button data-component="IconButton" type="button" data-testid="expand-file-tree-button" aria-controls="repos-file-tree" class="prc-Button-ButtonBase-9n-Xk position-relative ExpandFileTreeButton-module__expandButton__hDOcv ExpandFileTreeButton-module__filesButtonBreakpoint__zEvz3 fgColor-muted prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="invisible" aria-labelledby="_R_4lla9lik5_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-sidebar-collapse" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M6.823 7.823a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 4 10.396V5.604a.25.25 0 0 1 .427-.177Z"></path><path d="M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25H9.5v-13H1.75a.25.25 0 0 0-.25.25ZM11 14.5h3.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="se" data-component="Tooltip" aria-hidden="true" id="_R_4lla9lik5_">Expand file tree</span><div class="d-none"></div></h2></div><div class="react-code-view-header-mb--narrow mr-2"><button data-component="Button" type="button" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-label="main branch" data-testid="anchor-button" data-icv-name="Switch branches/tags" class="prc-Button-ButtonBase-9n-Xk ref-selector-class RefSelectorAnchoredOverlay-module__RefSelectorOverlayBtn__a3WK3" data-loading="false" data-size="medium" data-variant="default" id="ref-picker-repos-header-ref-selector-wide"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-git-branch" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Zm-6 0a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm8.25-.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"></path></svg></span><span data-component="text" class="prc-Button-Label-FWkx3"><div class="RefSelectorAnchoredOverlay-module__RefSelectorOverlayContainer__yaf4p"><div style="max-width:125px" class="ref-selector-button-text-container RefSelectorAnchoredOverlay-module__RefSelectorBtnTextContainer__Di3rk"><span class="RefSelectorAnchoredOverlay-module__RefSelectorText__w_fmP">main</span></div></div></span><span data-component="trailingVisual" class="prc-Button-Visual-YNt2F prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-triangle-down" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg></span></span></button><div class="d-none"></div></div><div class="react-code-view-header-mb--narrow CodeViewHeader-module__Box_5__MQ0hL"><div class="Breadcrumb-module__container__Vxvev Breadcrumb-module__lg__Rjz0A"><nav data-testid="breadcrumbs" aria-labelledby="repos-header-breadcrumb-heading" id="repos-header-breadcrumb" class="Breadcrumb-module__nav__rQFDj"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone__rwWIk prc-Heading-Heading-MtWFE" data-component="Heading" data-testid="screen-reader-heading" id="repos-header-breadcrumb-heading">Breadcrumbs</h2><ol class="Breadcrumb-module__list__ZH6zr"><li class="Breadcrumb-module__listItem__Ib0x_"><a class="Breadcrumb-module__repoLink__O2Nbs prc-Link-Link-9ZwDx" data-component="Link" data-testid="breadcrumbs-repo-link" href="/openfga/java-sdk/tree/main" data-discover="true">java-sdk</a></li></ol></nav><div data-testid="breadcrumbs-filename" class="Breadcrumb-module__filename__equZR"><span class="Breadcrumb-module__separator__eNwsI Breadcrumb-module__lg__Rjz0A" aria-hidden="true">/</span><h1 class="Breadcrumb-module__filenameHeading__MNMtw Breadcrumb-module__lg__Rjz0A prc-Heading-Heading-MtWFE" data-component="Heading" tabindex="-1" id="file-name-id">README.md</h1></div><button data-component="IconButton" type="button" class="prc-Button-ButtonBase-9n-Xk ml-2 prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-labelledby="_R_7lla9lik5_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-copy" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path></svg></button><span class="CopyToClipboardIconButton-module__tooltip__WyiwL prc-TooltipV2-Tooltip-tLeuB" data-direction="nw" data-component="Tooltip" aria-label="Copy path" aria-hidden="true" id="_R_7lla9lik5_">Copy path</span></div></div></div><div class="react-code-view-header-element--wide"><div class="CodeViewHeader-module__Box_7___0R6c"><div class="d-flex gap-2"><div><div class="CodeViewHeader-module__FileResultsList__JDzUy"><span class="d-flex FileResultsList-module__FilesSearchBox__ivVkc TextInput-wrapper prc-components-TextInputWrapper-Hpdqi prc-components-TextInputBaseWrapper-wY-n0" data-no-trailing-action="true" data-component="TextInput" data-leading-visual="true" data-trailing-visual="true" aria-busy="false"><span class="TextInput-icon" id="_R_5ipla9lik5_" aria-hidden="true" data-component="TextInput.LeadingVisual"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-search" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path></svg></span><input type="text" aria-label="Go to file" role="combobox" aria-controls="file-results-list" aria-expanded="false" aria-haspopup="dialog" autoCorrect="off" spellCheck="false" placeholder="Go to file" aria-describedby="_R_5ipla9lik5_ _R_5ipla9lik5H1_" data-component="input" class="prc-components-Input-IwWrt" value=""/><span class="TextInput-icon" id="_R_5ipla9lik5H1_" aria-hidden="true" data-component="TextInput.TrailingVisual"></span></span></div><div class="d-none"></div></div><button data-component="Button" type="button" style="display:none" class="prc-Button-ButtonBase-9n-Xk NavigationMenu-module__Button__LpKgm" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="text" class="prc-Button-Label-FWkx3">Blame</span></span></button><div class="d-none"></div><button data-component="IconButton" type="button" data-testid="more-file-actions-button-nav-menu-wide" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-9n-Xk js-blob-dropdown-click NavigationMenu-module__IconButton__HpX3G prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-labelledby="_R_v4pla9lik5_" id="_R_14pla9lik5_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-kebab-horizontal" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="nw" data-component="Tooltip" aria-hidden="true" id="_R_v4pla9lik5_">More file actions</span></div></div></div><div class="react-code-view-header-element--narrow"><div class="CodeViewHeader-module__Box_7___0R6c"><div class="d-flex gap-2"><button data-component="Button" type="button" style="display:none" class="prc-Button-ButtonBase-9n-Xk NavigationMenu-module__Button__LpKgm" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="text" class="prc-Button-Label-FWkx3">Blame</span></span></button><div class="d-none"></div><button data-component="IconButton" type="button" data-testid="more-file-actions-button-nav-menu-narrow" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-9n-Xk js-blob-dropdown-click NavigationMenu-module__IconButton__HpX3G prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-labelledby="_R_v4tla9lik5_" id="_R_14tla9lik5_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-kebab-horizontal" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="nw" data-component="Tooltip" aria-hidden="true" id="_R_v4tla9lik5_">More file actions</span></div></div></div></div></div></div></div><div class="CodeView-module__contentWrapper__cG2JH"><div class="react-code-view-bottom-padding"><div class="BlobTopBanners-module__Box__v_nvx"></div></div> <div class="d-none"></div><div class="d-flex flex-column border rounded-2 tmp-mb-3 pl-1"><div class="LatestCommit-module__Box__B25ZT"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone__rwWIk prc-Heading-Heading-MtWFE" data-component="Heading" data-testid="screen-reader-heading">Latest commit</h2><div style="width:120px" class="Skeleton Skeleton--text" data-testid="loading"> </div><div class="d-flex flex-shrink-0 gap-2"><div data-testid="latest-commit-details" class="d-none d-sm-flex flex-items-center"></div><div class="d-flex gap-2"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone__rwWIk prc-Heading-Heading-MtWFE" data-component="Heading" data-testid="screen-reader-heading">History</h2><a data-component="LinkButton" href="/openfga/java-sdk/commits/main/README.md" class="prc-Button-ButtonBase-9n-Xk d-none d-lg-flex LinkButton-module__linkButton__nFnov flex-items-center fgColor-default" data-loading="false" data-size="small" data-variant="invisible"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-history" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z"></path></svg></span><span data-component="text" class="prc-Button-Label-FWkx3"><span class="fgColor-default">History</span></span></span></a><div class="d-sm-none"></div><div class="d-flex d-lg-none"><a data-component="LinkButton" aria-label="View commit history for this file." href="/openfga/java-sdk/commits/main/README.md" class="prc-Button-ButtonBase-9n-Xk LinkButton-module__linkButton__nFnov flex-items-center fgColor-default" data-loading="false" data-size="small" data-variant="invisible" aria-describedby="_R_4mlala9lik5_"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-history" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z"></path></svg></span></span></a><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" data-component="Tooltip" role="tooltip" aria-hidden="true" id="_R_4mlala9lik5_">History</span></div></div></div></div></div><div class="d-flex flex-row"><div class="container BlobViewContent-module__blobContainer__DtH2d"><div class="react-code-size-details-banner BlobViewContent-module__codeSizeDetails__e5sUw"><div class="react-code-size-details-banner CodeSizeDetails-module__Box__VcD6l"><div class="text-mono CodeSizeDetails-module__Box_1__GVxQL"><div data-testid="blob-size" class="CodeSizeDetails-module__Truncate_1__lE93V prc-Truncate-Truncate-2G1eo" data-inline="true" title="63.3 KB" style="--truncate-max-width:100%"><span>1517 lines (1127 loc) · 63.3 KB</span></div></div></div></div><div class="react-blob-view-header-sticky BlobViewContent-module__stickyHeader__VwxB5" id="repos-sticky-header"><div class="BlobViewHeader-module__Box__yhm9u"><div class="react-blob-sticky-header"><div class="FileNameStickyHeader-module__outerWrapper__ZL4Xc FileNameStickyHeader-module__outerWrapperHidden__Zpynk"><div class="FileNameStickyHeader-module__Box_1__Hazu5"><div class="FileNameStickyHeader-module__Box_2__hoolP"><div class="FileNameStickyHeader-module__Box_3__MVKsk"><button data-component="Button" type="button" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-label="main branch" data-testid="anchor-button" data-icv-name="Switch branches/tags" class="prc-Button-ButtonBase-9n-Xk ref-selector-class RefSelectorAnchoredOverlay-module__RefSelectorOverlayBtn__a3WK3" data-loading="false" data-size="medium" data-variant="default" id="ref-picker-repos-header-ref-selector"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-git-branch" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Zm-6 0a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm8.25-.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"></path></svg></span><span data-component="text" class="prc-Button-Label-FWkx3"><div class="RefSelectorAnchoredOverlay-module__RefSelectorOverlayContainer__yaf4p"><div style="max-width:125px" class="ref-selector-button-text-container RefSelectorAnchoredOverlay-module__RefSelectorBtnTextContainer__Di3rk"><span class="RefSelectorAnchoredOverlay-module__RefSelectorText__w_fmP">main</span></div></div></span><span data-component="trailingVisual" class="prc-Button-Visual-YNt2F prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-triangle-down" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg></span></span></button><div class="d-none"></div></div><div class="FileNameStickyHeader-module__Box_4__FLhtt"><div class="Breadcrumb-module__container__Vxvev Breadcrumb-module__md__Wb1Gs"><nav data-testid="breadcrumbs" aria-labelledby="sticky-breadcrumb-heading" id="sticky-breadcrumb" class="Breadcrumb-module__nav__rQFDj"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone__rwWIk prc-Heading-Heading-MtWFE" data-component="Heading" data-testid="screen-reader-heading" id="sticky-breadcrumb-heading">Breadcrumbs</h2><ol class="Breadcrumb-module__list__ZH6zr"><li class="Breadcrumb-module__listItem__Ib0x_"><a class="Breadcrumb-module__repoLink__O2Nbs prc-Link-Link-9ZwDx" data-component="Link" data-testid="breadcrumbs-repo-link" href="/openfga/java-sdk/tree/main" data-discover="true">java-sdk</a></li></ol></nav><div data-testid="breadcrumbs-filename" class="Breadcrumb-module__filename__equZR"><span class="Breadcrumb-module__separator__eNwsI Breadcrumb-module__md__Wb1Gs" aria-hidden="true">/</span><h1 class="Breadcrumb-module__filenameHeading__MNMtw Breadcrumb-module__md__Wb1Gs prc-Heading-Heading-MtWFE" data-component="Heading" tabindex="-1" id="sticky-file-name-id">README.md</h1></div><button data-component="IconButton" type="button" class="prc-Button-ButtonBase-9n-Xk ml-2 prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-labelledby="_R_7lcpala9lik5_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-copy" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path></svg></button><span class="CopyToClipboardIconButton-module__tooltip__WyiwL prc-TooltipV2-Tooltip-tLeuB" data-direction="s" data-component="Tooltip" aria-label="Copy path" aria-hidden="true" id="_R_7lcpala9lik5_">Copy path</span></div></div></div><button data-component="Button" type="button" class="prc-Button-ButtonBase-9n-Xk FileNameStickyHeader-module__Button__LSEU_ FileNameStickyHeader-module__GoToTopButton__nxAFn" data-loading="false" data-size="small" data-variant="invisible"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="leadingVisual" class="prc-Button-Visual-YNt2F prc-Button-LeadingVisual-UySKu prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-arrow-up" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.47 7.78a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0l4.25 4.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L9 4.81v7.44a.75.75 0 0 1-1.5 0V4.81L4.53 7.78a.75.75 0 0 1-1.06 0Z"></path></svg></span><span data-component="text" class="prc-Button-Label-FWkx3">Top</span></span></button></div></div></div><div class="BlobViewHeader-module__Box_1__VEmuQ"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone__rwWIk prc-Heading-Heading-MtWFE" data-component="Heading" data-testid="screen-reader-heading">File metadata and controls</h2><div class="BlobViewHeader-module__Box_2__icUs2"><ul aria-label="File view" class="prc-SegmentedControl-SegmentedControl-lqIXp BlobTabButtons-module__SegmentedControl__jen2u" data-variant="default" data-size="small" data-component="SegmentedControl"><li class="prc-SegmentedControl-Item-tSCQh" data-selected="" data-component="SegmentedControl.Button"><button aria-pressed="true" class="prc-SegmentedControl-Button-E48xz" type="button" style="--separator-color:transparent"><span class="prc-SegmentedControl-Content-1COlk segmentedControl-content"><div class="prc-SegmentedControl-Text-7S2y2 segmentedControl-text" data-text="Preview">Preview</div></span></button></li><li class="prc-SegmentedControl-Item-tSCQh" data-component="SegmentedControl.Button"><button aria-pressed="false" class="prc-SegmentedControl-Button-E48xz" type="button" style="--separator-color:var(--borderColor-default)"><span class="prc-SegmentedControl-Content-1COlk segmentedControl-content"><div class="prc-SegmentedControl-Text-7S2y2 segmentedControl-text" data-text="Code">Code</div></span></button></li><li class="prc-SegmentedControl-Item-tSCQh" data-component="SegmentedControl.Button"><button aria-pressed="false" class="prc-SegmentedControl-Button-E48xz" type="button" style="--separator-color:var(--borderColor-default)"><span class="prc-SegmentedControl-Content-1COlk segmentedControl-content"><div class="prc-SegmentedControl-Text-7S2y2 segmentedControl-text" data-text="Blame">Blame</div></span></button></li></ul><div class="d-none"></div><div class="react-code-size-details-in-header CodeSizeDetails-module__Box__VcD6l"><div class="text-mono CodeSizeDetails-module__Box_1__GVxQL"><div data-testid="blob-size" class="CodeSizeDetails-module__Truncate_1__lE93V prc-Truncate-Truncate-2G1eo" data-inline="true" title="63.3 KB" style="--truncate-max-width:100%"><span>1517 lines (1127 loc) · 63.3 KB</span></div></div></div></div><div class="BlobViewHeader-module__Box_3__ng6v2"><div class="d-none"></div><div class="react-blob-header-edit-and-raw-actions BlobViewHeader-module__Box_4__J4Y4W"><div class="d-none"></div><div class="prc-ButtonGroup-ButtonGroup-vFUrY" data-component="ButtonGroup"><div class="prc-ButtonGroup-Item-PqvDl"><a data-component="LinkButton" href="https://github.com/openfga/java-sdk/raw/refs/heads/main/README.md" data-testid="raw-button" class="prc-Button-ButtonBase-9n-Xk LinkButton-module__linkButton__nFnov BlobViewHeader-module__LinkButton__X9kx2" data-loading="false" data-no-visuals="true" data-size="small" data-variant="default"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="text" class="prc-Button-Label-FWkx3">Raw</span></span></a></div><div class="prc-ButtonGroup-Item-PqvDl"><button data-component="IconButton" type="button" data-testid="copy-raw-button" class="prc-Button-ButtonBase-9n-Xk prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="default" aria-labelledby="_R_qaucpala9lik5_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-copy" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="n" data-component="Tooltip" aria-hidden="true" id="_R_qaucpala9lik5_">Copy raw file</span></div><div class="prc-ButtonGroup-Item-PqvDl"><button data-component="IconButton" type="button" data-testid="download-raw-button" class="prc-Button-ButtonBase-9n-Xk BlobViewHeader-module__downloadButton__ef459 prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="default" aria-labelledby="_R_eaucpala9lik5_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-download" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z"></path><path d="M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="n" data-component="Tooltip" aria-hidden="true" id="_R_eaucpala9lik5_">Download raw file</span></div></div></div><button data-component="IconButton" type="button" aria-pressed="false" class="prc-Button-ButtonBase-9n-Xk tmp-mr-2 TableOfContents-module__IconButton__jrlNM prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-labelledby="_R_3ucpala9lik5_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-list-unordered" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M5.75 2.5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5ZM2 14a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM2 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="n" data-component="Tooltip" aria-hidden="true" id="_R_3ucpala9lik5_">Outline</span><div class="react-blob-header-edit-and-raw-actions-combined"><button data-component="IconButton" type="button" title="More file actions" data-testid="more-file-actions-button" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-9n-Xk js-blob-dropdown-click BlobViewHeader-module__IconButton__XrMQY prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-labelledby="_R_fkecpala9lik5_" id="_R_kecpala9lik5_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-kebab-horizontal" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="nw" data-component="Tooltip" aria-hidden="true" id="_R_fkecpala9lik5_">Edit and raw actions</span></div></div></div></div><div></div></div><div class="BlobViewContent-module__blobContentWrapper__JS0W6"><section aria-labelledby="file-name-id-wide file-name-id-mobile" class="BlobContent-module__blobContentSection__VOgZq BlobContent-module__blobContentSectionMarkdown__mPLOK" style="margin-top:46px"><div class="js-snippet-clipboard-copy-unpositioned BlobContent-module__markdownBlob__T8jpG" data-hpc="true" containertiming="hpc"><article class="markdown-body entry-content container-lg" itemprop="text"><div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">Java SDK for OpenFGA</h1><a id="user-content-java-sdk-for-openfga" class="anchor" aria-label="Permalink: Java SDK for OpenFGA" href="#java-sdk-for-openfga"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto"><a href="https://central.sonatype.com/artifact/dev.openfga/openfga-sdk" rel="nofollow"><img src="https://camo.githubusercontent.com/4d23e36927f7c77ecdf5f7c824ebf6180b5b471c1fd81cea2384efd3e36f15fb/68747470733a2f2f696d672e736869656c64732e696f2f6d6176656e2d63656e7472616c2f762f6465762e6f70656e6667612f6f70656e6667612d73646b2e7376673f6c6162656c3d4d6176656e25323043656e7472616c" alt="Maven Central" data-canonical-src="https://img.shields.io/maven-central/v/dev.openfga/openfga-sdk.svg?label=Maven%20Central" style="max-width: 100%;"></a>
<a href="https://javadoc.io/doc/dev.openfga/openfga-sdk" rel="nofollow"><img src="https://camo.githubusercontent.com/a6530977ef08b1f2190273d74d279fb9cbe1c7c42eb6148d5d24b8842b7fe7c0/68747470733a2f2f6a617661646f632e696f2f6261646765322f6465762e6f70656e6667612f6f70656e6667612d73646b2f6a617661646f632e737667" alt="Javadoc" data-canonical-src="https://javadoc.io/badge2/dev.openfga/openfga-sdk/javadoc.svg" style="max-width: 100%;"></a>
<a href="https://socket.dev/maven/package/dev.openfga:openfga-sdk" rel="nofollow"><img src="https://camo.githubusercontent.com/3a4c2cb11ec599456871639f8dddaa6000d84f9fe7df4c4279fffb2b5725d840/68747470733a2f2f62616467652e736f636b65742e6465762f6d6176656e2f7061636b6167652f6465762e6f70656e6667613a6f70656e6667612d73646b2f302e31302e30" alt="Socket Badge" data-canonical-src="https://badge.socket.dev/maven/package/dev.openfga:openfga-sdk/0.10.0" style="max-width: 100%;"></a> 
<a href="https://deepwiki.com/openfga/java-sdk" rel="nofollow"><img src="https://camo.githubusercontent.com/26a65bdc382b0075ab15adc70644dc5d9ad0fbadc7e2a2189cc18a4d0877c0ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4465657057696b692d6f70656e6667612532466a6176612d2d73646b2d626c75652e7376673f6c6f676f3d646174613a696d6167652f706e673b6261736536342c6956424f5277304b47676f414141414e53556845556741414143774141414179434159414141416e57446e714141414141584e535230494172733463365141414130354a52454655614550746d557479457a4551687457545179514c484e616b324142375a6e79585a4d456a584d47654b2f4149692b517548724d6e6243685959374d496838673031664a6f6f70466230756868457171636257547030362f7576317361454476344f336e33645636305266503934374d6d392f5351633049434651677a66633443595a6f545041737767534a4343554a556e41416f52484f41554f63415477626d564c5764476f482f2f5042386d6e4b71536341687344306b5950336a2f5974354c505165324b7663586d4776524863446e7078664c327a4f594a316d467772727957547a306164767631557434434a67663575684475446a3565556341556f61687264592f353665625257657261546a4d742f30305368335544746a674874514e48776352474f433938424a454145796d79636d596357774f70725467634236565a354a4b3554414a2b6658474c426d334644416d6e366f50506a5234724b43416f4a43616c326541695170327830767854504233414c4f3243526b776d447935576f687a4244775345464b527750626b6e4567674350422f696d77727963677858324e7a6f4d434868506b447771594d72397452635035714e724d5a486b566e4f6a524d57774c436372386f68425662314f4d6a784c774743766a54696b7273424f694136664e7943726d38563172503933695650707761452b674f305373576d506958422b6a696b64663653697a725435714b617378356a3841426248704654782b7646587039456e59516d4c7830326831515454726c36654471784c6e476a706f72786c334e4c336167457658645430576d456f737436343873514f5941654a53395137626655566f4d476e6a6f34415a64554d516b7535304d6344634d57634250767230537a625441464466764a71774c7a67787741546e43676e703477446c3641612b41783238336767686d6a2b766a37666545324b4242524d5733467a4f704c4f41446c3049736235353837682f55346747766b74357636305a31564c47384268596a627a527779515a656d77416436634352352f5846574c595a52494d70583339415230746a61474769477a4c5679687365354339524b433661693432707057504b694261674f7661596b386c4f3744616a657261624f5a5034364c627935774b6a77314843527837703973564d4f57477a622f7641316877695763366a6d334d765144546f67516b697149684a56306e42514254552b336f6b4b434644793957776665726b486a74786962377433784955517448786e49777478346d706732362f486677564e564462346f493952486d78355747656c52566c7274697734337a626f434c6178763436415a654233496c546b776f75656254723179324e6a5370487a3638574e466a487675707933713854466e33486f733249416b344a753564436f3842337750375650722f4647614b69472b542b762b54517149724f714d544c31566457563144646d63624f384b58427a3665736d5957594b5077444c35623546413161306877617048696f6d30722f634b616f71722b32372f58637253355577534d625141414141424a52553545726b4a6767673d3d" alt="DeepWiki" data-canonical-src="https://img.shields.io/badge/DeepWiki-openfga%2Fjava--sdk-blue.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAyCAYAAAAnWDnqAAAAAXNSR0IArs4c6QAAA05JREFUaEPtmUtyEzEQhtWTQyQLHNak2AB7ZnyXZMEjXMGeK/AIi+QuHrMnbChYY7MIh8g01fJoopFb0uhhEqqcbWTp06/uv1saEDv4O3n3dV60RfP947Mm9/SQc0ICFQgzfc4CYZoTPAswgSJCCUJUnAAoRHOAUOcATwbmVLWdGoH//PB8mnKqScAhsD0kYP3j/Yt5LPQe2KvcXmGvRHcDnpxfL2zOYJ1mFwrryWTz0advv1Ut4CJgf5uhDuDj5eUcAUoahrdY/56ebRWeraTjMt/00Sh3UDtjgHtQNHwcRGOC98BJEAEymycmYcWwOprTgcB6VZ5JK5TAJ+fXGLBm3FDAmn6oPPjR4rKCAoJCal2eAiQp2x0vxTPB3ALO2CRkwmDy5WohzBDwSEFKRwPbknEggCPB/imwrycgxX2NzoMCHhPkDwqYMr9tRcP5qNrMZHkVnOjRMWwLCcr8ohBVb1OMjxLwGCvjTikrsBOiA6fNyCrm8V1rP93iVPpwaE+gO0SsWmPiXB+jikdf6SizrT5qKasx5j8ABbHpFTx+vFXp9EnYQmLx02h1QTTrl6eDqxLnGjporxl3NL3agEvXdT0WmEost648sQOYAeJS9Q7bfUVoMGnjo4AZdUMQku50McDcMWcBPvr0SzbTAFDfvJqwLzgxwATnCgnp4wDl6Aa+Ax283gghmj+vj7feE2KBBRMW3FzOpLOADl0Isb5587h/U4gGvkt5v60Z1VLG8BhYjbzRwyQZemwAd6cCR5/XFWLYZRIMpX39AR0tjaGGiGzLVyhse5C9RKC6ai42ppWPKiBagOvaYk8lO7DajerabOZP46Lby5wKjw1HCRx7p9sVMOWGzb/vA1hwiWc6jm3MvQDTogQkiqIhJV0nBQBTU+3okKCFDy9WwferkHjtxib7t3xIUQtHxnIwtx4mpg26/HfwVNVDb4oI9RHmx5WGelRVlrtiw43zboCLaxv46AZeB3IlTkwouebTr1y2NjSpHz68WNFjHvupy3q8TFn3Hos2IAk4Ju5dCo8B3wP7VPr/FGaKiG+T+v+TQqIrOqMTL1VdWV1DdmcbO8KXBz6esmYWYKPwDL5b5FA1a0hwapHiom0r/cKaoqr+27/XcrS5UwSMbQAAAABJRU5ErkJggg==" style="max-width: 100%;"></a>
<a href="https://github.com/openfga/java-sdk/releases"><img src="https://camo.githubusercontent.com/940f9ef629314843de3f66569c4de2579ad19b1dc1f5615918c67aed0e765442/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6f70656e6667612f6a6176612d73646b3f736f72743d73656d76657226636f6c6f723d677265656e" alt="Release" data-canonical-src="https://img.shields.io/github/v/release/openfga/java-sdk?sort=semver&amp;color=green" style="max-width: 100%;"></a>
<a href="https://app.fossa.com/projects/git%2Bgithub.com%2Fopenfga%2Fjava-sdk?ref=badge_shield" rel="nofollow"><img src="https://camo.githubusercontent.com/b0c2137ce1d791c6541e81c6e8aa3064a56640927060e49c15d2f8fb746d86ed/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532466f70656e6667612532466a6176612d73646b2e7376673f747970653d736869656c64" alt="FOSSA Status" data-canonical-src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenfga%2Fjava-sdk.svg?type=shield" style="max-width: 100%;"></a>
<a href="https://securityscorecards.dev/viewer/?uri=github.com/openfga/java-sdk" rel="nofollow"><img src="https://camo.githubusercontent.com/28465fdf25353de1a37738657cd2c754d872144c13574f31ddde9e11816f066d/68747470733a2f2f6170692e736563757269747973636f726563617264732e6465762f70726f6a656374732f6769746875622e636f6d2f6f70656e6667612f6a6176612d73646b2f6261646765" alt="OpenSSF Scorecard" data-canonical-src="https://api.securityscorecards.dev/projects/github.com/openfga/java-sdk/badge" style="max-width: 100%;"></a>
<a href="https://openfga.dev/community" rel="nofollow"><img src="https://camo.githubusercontent.com/1af28927cb33d2f059334afe01927fc1085e1b381c44f63c02fe35dc07d7ef41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736c61636b2d636e63665f2532336f70656e6667612d3430616262382e7376673f6c6f676f3d736c61636b" alt="Join our community" data-canonical-src="https://img.shields.io/badge/slack-cncf_%23openfga-40abb8.svg?logo=slack" style="max-width: 100%;"></a>
<a href="https://x.com/openfga" rel="nofollow"><img src="https://camo.githubusercontent.com/a9d5708b766da823da87b88acf9d140387b651f36f98225610bca8bca3d2fd68/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6f70656e6667613f636f6c6f723d253233313739434630266c6f676f3d78267374796c653d666c61742d737175617265" alt="X" title="@openfga on X" data-canonical-src="https://img.shields.io/twitter/follow/openfga?color=%23179CF0&amp;logo=x&amp;style=flat-square" style="max-width: 100%;"></a></p>
<p dir="auto">This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the <a href="https://openfga.dev/api" rel="nofollow">OpenFGA API definition</a>.</p>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Table of Contents</h2><a id="user-content-table-of-contents" class="anchor" aria-label="Permalink: Table of Contents" href="#table-of-contents"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<ul dir="auto">
<li><a href="#about">About OpenFGA</a></li>
<li><a href="#resources">Resources</a></li>
<li><a href="#installation">Installation</a></li>
<li><a href="#getting-started">Getting Started</a>
<ul dir="auto">
<li><a href="#initializing-the-api-client">Initializing the API Client</a></li>
<li><a href="#custom-headers">Custom Headers</a></li>
<li><a href="#get-your-store-id">Get your Store ID</a></li>
<li><a href="#calling-the-api">Calling the API</a>
<ul dir="auto">
<li><a href="#stores">Stores</a>
<ul dir="auto">
<li><a href="#list-stores">List All Stores</a></li>
<li><a href="#create-store">Create a Store</a></li>
<li><a href="#get-store">Get a Store</a></li>
<li><a href="#delete-store">Delete a Store</a></li>
</ul>
</li>
<li><a href="#authorization-models">Authorization Models</a>
<ul dir="auto">
<li><a href="#read-authorization-models">Read Authorization Models</a></li>
<li><a href="#write-authorization-model">Write Authorization Model</a></li>
<li><a href="#read-a-single-authorization-model">Read a Single Authorization Model</a></li>
<li><a href="#read-the-latest-authorization-model">Read the Latest Authorization Model</a></li>
</ul>
</li>
<li><a href="#relationship-tuples">Relationship Tuples</a>
<ul dir="auto">
<li><a href="#read-relationship-tuple-changes-watch">Read Relationship Tuple Changes (Watch)</a></li>
<li><a href="#read-relationship-tuples">Read Relationship Tuples</a></li>
<li><a href="#write-create-and-delete-relationship-tuples">Write (Create and Delete) Relationship Tuples</a></li>
</ul>
</li>
<li><a href="#relationship-queries">Relationship Queries</a>
<ul dir="auto">
<li><a href="#check">Check</a></li>
<li><a href="#batch-check">Batch Check</a></li>
<li><a href="#expand">Expand</a></li>
<li><a href="#list-objects">List Objects</a></li>
<li><a href="#list-relations">List Relations</a></li>
<li><a href="#list-users">List Users</a></li>
</ul>
</li>
<li><a href="#assertions">Assertions</a>
<ul dir="auto">
<li><a href="#read-assertions">Read Assertions</a></li>
<li><a href="#write-assertions">Write Assertions</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#calling-other-endpoints">Calling Other Endpoints</a></li>
<li><a href="#retries">Retries</a></li>
<li><a href="#api-endpoints">API Endpoints</a></li>
<li><a href="#models">Models</a></li>
<li><a href="#opentelemetry">OpenTelemetry</a></li>
</ul>
</li>
<li><a href="#contributing">Contributing</a>
<ul dir="auto">
<li><a href="#issues">Issues</a></li>
<li><a href="#pull-requests">Pull Requests</a></li>
</ul>
</li>
<li><a href="#license">License</a></li>
</ul>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">About</h2><a id="user-content-about" class="anchor" aria-label="Permalink: About" href="#about"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto"><a href="https://openfga.dev" rel="nofollow">OpenFGA</a> is an open source Fine-Grained Authorization solution inspired by <a href="https://research.google/pubs/pub48190/" rel="nofollow">Google's Zanzibar paper</a>. It was created by the FGA team at <a href="https://auth0.com" rel="nofollow">Auth0</a> based on <a href="https://fga.dev" rel="nofollow">Auth0 Fine-Grained Authorization (FGA)</a>, available under <a href="https://github.com/openfga/rfcs/blob/main/LICENSE">a permissive license (Apache-2)</a> and welcomes community contributions.</p>
<p dir="auto">OpenFGA is designed to make it easy for application builders to model their permission layer, and to add and integrate fine-grained authorization into their applications. OpenFGA’s design is optimized for reliability and low latency at a high scale.</p>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Resources</h2><a id="user-content-resources" class="anchor" aria-label="Permalink: Resources" href="#resources"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<ul dir="auto">
<li><a href="https://openfga.dev/docs" rel="nofollow">OpenFGA Documentation</a></li>
<li><a href="https://openfga.dev/api/service" rel="nofollow">OpenFGA API Documentation</a></li>
<li><a href="https://x.com/openfga" rel="nofollow">X</a></li>
<li><a href="https://openfga.dev/community" rel="nofollow">OpenFGA Community</a></li>
<li><a href="https://zanzibar.academy" rel="nofollow">Zanzibar Academy</a></li>
<li><a href="https://research.google/pubs/pub48190/" rel="nofollow">Google's Zanzibar Paper (2019)</a></li>
</ul>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Installation</h2><a id="user-content-installation" class="anchor" aria-label="Permalink: Installation" href="#installation"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">The OpenFGA Java SDK is available on <a href="https://central.sonatype.com/" rel="nofollow">Maven Central</a>.</p>
<p dir="auto">The OpenFGA Java SDK currently supports <strong>Java 17</strong> as the minimum JDK version.</p>
<p dir="auto">It can be used with the following:</p>
<ul dir="auto">
<li>Gradle (Groovy)</li>
</ul>

<div class="highlight highlight-source-groovy notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="implementation 'dev.openfga:openfga-sdk:0.10.0'"><pre>implementation <span class="pl-s"><span class="pl-pds">'</span>dev.openfga:openfga-sdk:0.10.0<span class="pl-pds">'</span></span></pre></div>

<ul dir="auto">
<li>Gradle (Kotlin)</li>
</ul>

<div class="highlight highlight-source-kotlin notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="implementation(&quot;dev.openfga:openfga-sdk:0.10.0&quot;)"><pre>implementation(<span class="pl-s"><span class="pl-pds">"</span>dev.openfga:openfga-sdk:0.10.0<span class="pl-pds">"</span></span>)</pre></div>

<ul dir="auto">
<li>Apache Maven</li>
</ul>

<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dependency&gt;
    &lt;groupId&gt;dev.openfga&lt;/groupId&gt;
    &lt;artifactId&gt;openfga-sdk&lt;/artifactId&gt;
    &lt;version&gt;0.10.0&lt;/version&gt;
&lt;/dependency&gt;"><pre>&lt;<span class="pl-ent">dependency</span>&gt;
    &lt;<span class="pl-ent">groupId</span>&gt;dev.openfga&lt;/<span class="pl-ent">groupId</span>&gt;
    &lt;<span class="pl-ent">artifactId</span>&gt;openfga-sdk&lt;/<span class="pl-ent">artifactId</span>&gt;
    &lt;<span class="pl-ent">version</span>&gt;0.10.0&lt;/<span class="pl-ent">version</span>&gt;
&lt;/<span class="pl-ent">dependency</span>&gt;</pre></div>

<ul dir="auto">
<li>Ivy</li>
</ul>

<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dependency org=&quot;dev.openfga&quot; name=&quot;openfga-sdk&quot; rev=&quot;0.10.0&quot;/&gt;"><pre>&lt;<span class="pl-ent">dependency</span> <span class="pl-e">org</span>=<span class="pl-s"><span class="pl-pds">"</span>dev.openfga<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>openfga-sdk<span class="pl-pds">"</span></span> <span class="pl-e">rev</span>=<span class="pl-s"><span class="pl-pds">"</span>0.10.0<span class="pl-pds">"</span></span>/&gt;</pre></div>

<ul dir="auto">
<li>SBT</li>
</ul>

<div class="highlight highlight-source-scala notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="libraryDependencies += &quot;dev.openfga&quot; % &quot;openfga-sdk&quot; % &quot;0.10.0&quot;"><pre>libraryDependencies <span class="pl-k">+=</span> <span class="pl-s"><span class="pl-pds">"</span>dev.openfga<span class="pl-pds">"</span></span> <span class="pl-k">%</span> <span class="pl-s"><span class="pl-pds">"</span>openfga-sdk<span class="pl-pds">"</span></span> <span class="pl-k">%</span> <span class="pl-s"><span class="pl-pds">"</span>0.10.0<span class="pl-pds">"</span></span></pre></div>

<ul dir="auto">
<li>Leiningen</li>
</ul>

<div class="highlight highlight-source-clojure notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[dev.openfga/openfga-sdk &quot;0.10.0&quot;]"><pre>[dev.openfga/openfga-sdk <span class="pl-s"><span class="pl-pds">"</span>0.10.0<span class="pl-pds">"</span></span>]</pre></div>

<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Getting Started</h2><a id="user-content-getting-started" class="anchor" aria-label="Permalink: Getting Started" href="#getting-started"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Initializing the API Client</h3><a id="user-content-initializing-the-api-client" class="anchor" aria-label="Permalink: Initializing the API Client" href="#initializing-the-api-client"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto"><a href="https://openfga.dev/docs/getting-started/setup-sdk-client" rel="nofollow">Learn how to initialize your SDK</a></p>
<p dir="auto">We strongly recommend you initialize the <code>OpenFgaClient</code> only once and then re-use it throughout your app, otherwise you will incur the cost of having to re-initialize multiple times or at every request, the cost of reduced connection pooling and re-use, and would be particularly costly in the client credentials flow, as that flow will be preformed on every request.</p>
<blockquote>
<p dir="auto">The <code>Client</code> will by default retry API requests up to 3 times. Rate limiting (429) errors are always retried. Server errors (5xx) are retried for all operations, with delay calculation using <code>Retry-After</code> headers when provided or exponential backoff as fallback.</p>
</blockquote>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">No Credentials</h4><a id="user-content-no-credentials" class="anchor" aria-label="Permalink: No Credentials" href="#no-credentials"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import com.fasterxml.jackson.databind.ObjectMapper;
import dev.openfga.sdk.api.client.OpenFgaClient;
import dev.openfga.sdk.api.configuration.ClientConfiguration;
import java.net.http.HttpClient;

public class Example {
    public static void main(String[] args) throws Exception {
        var config = new ClientConfiguration()
                .apiUrl(System.getenv(&quot;FGA_API_URL&quot;)) // If not specified, will default to &quot;http://localhost:8080&quot;
                .storeId(System.getenv(&quot;FGA_STORE_ID&quot;)) // Not required when calling createStore() or listStores()
                .authorizationModelId(System.getenv(&quot;FGA_MODEL_ID&quot;)); // Optional, can be overridden per request

        var fgaClient = new OpenFgaClient(config);
        var response = fgaClient.readAuthorizationModels().get();
    }
}"><pre><span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">fasterxml</span>.<span class="pl-s1">jackson</span>.<span class="pl-s1">databind</span>.<span class="pl-s1">ObjectMapper</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">client</span>.<span class="pl-s1">OpenFgaClient</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">ClientConfiguration</span>;
<span class="pl-k">import</span> <span class="pl-s1">java</span>.<span class="pl-s1">net</span>.<span class="pl-s1">http</span>.<span class="pl-s1">HttpClient</span>;

<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">Example</span> {
    <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">main</span>(<span class="pl-smi">String</span>[] <span class="pl-s1">args</span>) <span class="pl-k">throws</span> <span class="pl-smi">Exception</span> {
        <span class="pl-smi">var</span> <span class="pl-s1">config</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientConfiguration</span>()
                .<span class="pl-en">apiUrl</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_URL"</span>)) <span class="pl-c">// If not specified, will default to "http://localhost:8080"</span>
                .<span class="pl-en">storeId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_STORE_ID"</span>)) <span class="pl-c">// Not required when calling createStore() or listStores()</span>
                .<span class="pl-en">authorizationModelId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_MODEL_ID"</span>)); <span class="pl-c">// Optional, can be overridden per request</span>

        <span class="pl-smi">var</span> <span class="pl-s1">fgaClient</span> = <span class="pl-k">new</span> <span class="pl-smi">OpenFgaClient</span>(<span class="pl-s1">config</span>);
        <span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">readAuthorizationModels</span>().<span class="pl-en">get</span>();
    }
}</pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">API Token</h4><a id="user-content-api-token" class="anchor" aria-label="Permalink: API Token" href="#api-token"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import com.fasterxml.jackson.databind.ObjectMapper;
import dev.openfga.sdk.api.client.OpenFgaClient;
import dev.openfga.sdk.api.configuration.ApiToken;
import dev.openfga.sdk.api.configuration.ClientConfiguration;
import dev.openfga.sdk.api.configuration.Credentials;
import java.net.http.HttpClient;

public class Example {
    public static void main(String[] args) throws Exception {
        var config = new ClientConfiguration()
                .apiUrl(System.getenv(&quot;FGA_API_URL&quot;)) // If not specified, will default to &quot;http://localhost:8080&quot;
                .storeId(System.getenv(&quot;FGA_STORE_ID&quot;)) // Not required when calling createStore() or listStores()
                .authorizationModelId(System.getenv(&quot;FGA_MODEL_ID&quot;)) // Optional, can be overridden per request
                .credentials(new Credentials(
                    new ApiToken(System.getenv(&quot;FGA_API_TOKEN&quot;)) // will be passed as the &quot;Authorization: Bearer ${ApiToken}&quot; request header
                ));

        var fgaClient = new OpenFgaClient(config);
        var response = fgaClient.readAuthorizationModels().get();
    }
}"><pre><span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">fasterxml</span>.<span class="pl-s1">jackson</span>.<span class="pl-s1">databind</span>.<span class="pl-s1">ObjectMapper</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">client</span>.<span class="pl-s1">OpenFgaClient</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">ApiToken</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">ClientConfiguration</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">Credentials</span>;
<span class="pl-k">import</span> <span class="pl-s1">java</span>.<span class="pl-s1">net</span>.<span class="pl-s1">http</span>.<span class="pl-s1">HttpClient</span>;

<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">Example</span> {
    <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">main</span>(<span class="pl-smi">String</span>[] <span class="pl-s1">args</span>) <span class="pl-k">throws</span> <span class="pl-smi">Exception</span> {
        <span class="pl-smi">var</span> <span class="pl-s1">config</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientConfiguration</span>()
                .<span class="pl-en">apiUrl</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_URL"</span>)) <span class="pl-c">// If not specified, will default to "http://localhost:8080"</span>
                .<span class="pl-en">storeId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_STORE_ID"</span>)) <span class="pl-c">// Not required when calling createStore() or listStores()</span>
                .<span class="pl-en">authorizationModelId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_MODEL_ID"</span>)) <span class="pl-c">// Optional, can be overridden per request</span>
                .<span class="pl-en">credentials</span>(<span class="pl-k">new</span> <span class="pl-smi">Credentials</span>(
                    <span class="pl-k">new</span> <span class="pl-smi">ApiToken</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_TOKEN"</span>)) <span class="pl-c">// will be passed as the "Authorization: Bearer ${ApiToken}" request header</span>
                ));

        <span class="pl-smi">var</span> <span class="pl-s1">fgaClient</span> = <span class="pl-k">new</span> <span class="pl-smi">OpenFgaClient</span>(<span class="pl-s1">config</span>);
        <span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">readAuthorizationModels</span>().<span class="pl-en">get</span>();
    }
}</pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Client Credentials</h4><a id="user-content-client-credentials" class="anchor" aria-label="Permalink: Client Credentials" href="#client-credentials"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import com.fasterxml.jackson.databind.ObjectMapper;
import dev.openfga.sdk.api.client.OpenFgaClient;
import dev.openfga.sdk.api.configuration.ClientConfiguration;
import dev.openfga.sdk.api.configuration.ClientCredentials;
import dev.openfga.sdk.api.configuration.Credentials;
import java.net.http.HttpClient;

public class Example {
    public static void main(String[] args) throws Exception {
        var config = new ClientConfiguration()
                .apiUrl(System.getenv(&quot;FGA_API_URL&quot;)) // If not specified, will default to &quot;http://localhost:8080&quot;
                .storeId(System.getenv(&quot;FGA_STORE_ID&quot;)) // Not required when calling createStore() or listStores()
                .authorizationModelId(System.getenv(&quot;FGA_MODEL_ID&quot;)) // Optional, can be overridden per request
                .credentials(new Credentials(
                    new ClientCredentials()
                            .apiTokenIssuer(System.getenv(&quot;FGA_API_TOKEN_ISSUER&quot;)) // Full token endpoint URL, e.g. &quot;https://issuer.fga.example/oauth/token&quot;
                            .apiAudience(System.getenv(&quot;FGA_API_AUDIENCE&quot;))
                            .clientId(System.getenv(&quot;FGA_CLIENT_ID&quot;))
                            .clientSecret(System.getenv(&quot;FGA_CLIENT_SECRET&quot;))
                ));

        var fgaClient = new OpenFgaClient(config);
        var response = fgaClient.readAuthorizationModels().get();
    }
}"><pre><span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">fasterxml</span>.<span class="pl-s1">jackson</span>.<span class="pl-s1">databind</span>.<span class="pl-s1">ObjectMapper</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">client</span>.<span class="pl-s1">OpenFgaClient</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">ClientConfiguration</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">ClientCredentials</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">Credentials</span>;
<span class="pl-k">import</span> <span class="pl-s1">java</span>.<span class="pl-s1">net</span>.<span class="pl-s1">http</span>.<span class="pl-s1">HttpClient</span>;

<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">Example</span> {
    <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">main</span>(<span class="pl-smi">String</span>[] <span class="pl-s1">args</span>) <span class="pl-k">throws</span> <span class="pl-smi">Exception</span> {
        <span class="pl-smi">var</span> <span class="pl-s1">config</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientConfiguration</span>()
                .<span class="pl-en">apiUrl</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_URL"</span>)) <span class="pl-c">// If not specified, will default to "http://localhost:8080"</span>
                .<span class="pl-en">storeId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_STORE_ID"</span>)) <span class="pl-c">// Not required when calling createStore() or listStores()</span>
                .<span class="pl-en">authorizationModelId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_MODEL_ID"</span>)) <span class="pl-c">// Optional, can be overridden per request</span>
                .<span class="pl-en">credentials</span>(<span class="pl-k">new</span> <span class="pl-smi">Credentials</span>(
                    <span class="pl-k">new</span> <span class="pl-smi">ClientCredentials</span>()
                            .<span class="pl-en">apiTokenIssuer</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_TOKEN_ISSUER"</span>)) <span class="pl-c">// Full token endpoint URL, e.g. "https://issuer.fga.example/oauth/token"</span>
                            .<span class="pl-en">apiAudience</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_AUDIENCE"</span>))
                            .<span class="pl-en">clientId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_CLIENT_ID"</span>))
                            .<span class="pl-en">clientSecret</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_CLIENT_SECRET"</span>))
                ));

        <span class="pl-smi">var</span> <span class="pl-s1">fgaClient</span> = <span class="pl-k">new</span> <span class="pl-smi">OpenFgaClient</span>(<span class="pl-s1">config</span>);
        <span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">readAuthorizationModels</span>().<span class="pl-en">get</span>();
    }
}</pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">OAuth2 Client Credentials</h4><a id="user-content-oauth2-client-credentials" class="anchor" aria-label="Permalink: OAuth2 Client Credentials" href="#oauth2-client-credentials"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">The SDK supports standard OAuth2 client credentials flow for any OAuth2-compliant provider (e.g. Keycloak, Okta). The <code>apiAudience</code> parameter is optional, and an optional <code>scopes</code> parameter can be provided as a space-separated string. The <code>apiTokenIssuer</code> can be set to either a hostname (e.g. <code>issuer.example.com</code>, which defaults to <code>https</code> and appends <code>/oauth/token</code>) or a full token endpoint URL (e.g. <code>https://mykeycloak.fga.example/realms/myrealm/protocol/openid-connect/token</code>).</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import com.fasterxml.jackson.databind.ObjectMapper;
import dev.openfga.sdk.api.client.OpenFgaClient;
import dev.openfga.sdk.api.configuration.ClientConfiguration;
import dev.openfga.sdk.api.configuration.ClientCredentials;
import dev.openfga.sdk.api.configuration.Credentials;
import java.net.http.HttpClient;

public class Example {
    public static void main(String[] args) throws Exception {
        var config = new ClientConfiguration()
                .apiUrl(System.getenv(&quot;FGA_API_URL&quot;)) // If not specified, will default to &quot;http://localhost:8080&quot;
                .storeId(System.getenv(&quot;FGA_STORE_ID&quot;)) // Not required when calling createStore() or listStores()
                .authorizationModelId(System.getenv(&quot;FGA_MODEL_ID&quot;)) // Optional, can be overridden per request
                .credentials(new Credentials(
                    new ClientCredentials()
                            .apiTokenIssuer(System.getenv(&quot;FGA_API_TOKEN_ISSUER&quot;)) // Full token endpoint URL, e.g. &quot;https://mykeycloak.fga.example/realms/myrealm/protocol/openid-connect/token&quot;
                            .scopes(System.getenv(&quot;FGA_API_SCOPES&quot;)) // Optional, space-separated scopes
                            .clientId(System.getenv(&quot;FGA_CLIENT_ID&quot;))
                            .clientSecret(System.getenv(&quot;FGA_CLIENT_SECRET&quot;))
                ));

        var fgaClient = new OpenFgaClient(config);
        var response = fgaClient.readAuthorizationModels().get();
    }
}"><pre><span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">fasterxml</span>.<span class="pl-s1">jackson</span>.<span class="pl-s1">databind</span>.<span class="pl-s1">ObjectMapper</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">client</span>.<span class="pl-s1">OpenFgaClient</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">ClientConfiguration</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">ClientCredentials</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">Credentials</span>;
<span class="pl-k">import</span> <span class="pl-s1">java</span>.<span class="pl-s1">net</span>.<span class="pl-s1">http</span>.<span class="pl-s1">HttpClient</span>;

<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">Example</span> {
    <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">main</span>(<span class="pl-smi">String</span>[] <span class="pl-s1">args</span>) <span class="pl-k">throws</span> <span class="pl-smi">Exception</span> {
        <span class="pl-smi">var</span> <span class="pl-s1">config</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientConfiguration</span>()
                .<span class="pl-en">apiUrl</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_URL"</span>)) <span class="pl-c">// If not specified, will default to "http://localhost:8080"</span>
                .<span class="pl-en">storeId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_STORE_ID"</span>)) <span class="pl-c">// Not required when calling createStore() or listStores()</span>
                .<span class="pl-en">authorizationModelId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_MODEL_ID"</span>)) <span class="pl-c">// Optional, can be overridden per request</span>
                .<span class="pl-en">credentials</span>(<span class="pl-k">new</span> <span class="pl-smi">Credentials</span>(
                    <span class="pl-k">new</span> <span class="pl-smi">ClientCredentials</span>()
                            .<span class="pl-en">apiTokenIssuer</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_TOKEN_ISSUER"</span>)) <span class="pl-c">// Full token endpoint URL, e.g. "https://mykeycloak.fga.example/realms/myrealm/protocol/openid-connect/token"</span>
                            .<span class="pl-en">scopes</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_SCOPES"</span>)) <span class="pl-c">// Optional, space-separated scopes</span>
                            .<span class="pl-en">clientId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_CLIENT_ID"</span>))
                            .<span class="pl-en">clientSecret</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_CLIENT_SECRET"</span>))
                ));

        <span class="pl-smi">var</span> <span class="pl-s1">fgaClient</span> = <span class="pl-k">new</span> <span class="pl-smi">OpenFgaClient</span>(<span class="pl-s1">config</span>);
        <span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">readAuthorizationModels</span>().<span class="pl-en">get</span>();
    }
}</pre></div>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Custom Headers</h3><a id="user-content-custom-headers" class="anchor" aria-label="Permalink: Custom Headers" href="#custom-headers"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Default Headers</h4><a id="user-content-default-headers" class="anchor" aria-label="Permalink: Default Headers" href="#default-headers"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">You can set default headers to be sent with every request by using the <code>defaultHeaders</code> property of the <code>ClientConfiguration</code> class.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import com.fasterxml.jackson.databind.ObjectMapper;
import dev.openfga.sdk.api.client.OpenFgaClient;
import dev.openfga.sdk.api.configuration.ClientConfiguration;

import java.net.http.HttpClient;
import java.util.Map;

public class Example {
    public static void main(String[] args) throws Exception {
        var config = new ClientConfiguration()
                .apiUrl(System.getenv(&quot;FGA_API_URL&quot;))
                .storeId(System.getenv(&quot;FGA_STORE_ID&quot;))
                .authorizationModelId(System.getenv(&quot;FGA_MODEL_ID&quot;))
                .defaultHeaders(Map.of(
                        &quot;X-Custom-Header&quot;, &quot;default-value&quot;,
                        &quot;X-Request-Source&quot;, &quot;my-app&quot;
                ));

        var fgaClient = new OpenFgaClient(config);
    }
}"><pre><span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">fasterxml</span>.<span class="pl-s1">jackson</span>.<span class="pl-s1">databind</span>.<span class="pl-s1">ObjectMapper</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">client</span>.<span class="pl-s1">OpenFgaClient</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">ClientConfiguration</span>;

<span class="pl-k">import</span> <span class="pl-s1">java</span>.<span class="pl-s1">net</span>.<span class="pl-s1">http</span>.<span class="pl-s1">HttpClient</span>;
<span class="pl-k">import</span> <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">Map</span>;

<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">Example</span> {
    <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">main</span>(<span class="pl-smi">String</span>[] <span class="pl-s1">args</span>) <span class="pl-k">throws</span> <span class="pl-smi">Exception</span> {
        <span class="pl-smi">var</span> <span class="pl-s1">config</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientConfiguration</span>()
                .<span class="pl-en">apiUrl</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_URL"</span>))
                .<span class="pl-en">storeId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_STORE_ID"</span>))
                .<span class="pl-en">authorizationModelId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_MODEL_ID"</span>))
                .<span class="pl-en">defaultHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(
                        <span class="pl-s">"X-Custom-Header"</span>, <span class="pl-s">"default-value"</span>,
                        <span class="pl-s">"X-Request-Source"</span>, <span class="pl-s">"my-app"</span>
                ));

        <span class="pl-smi">var</span> <span class="pl-s1">fgaClient</span> = <span class="pl-k">new</span> <span class="pl-smi">OpenFgaClient</span>(<span class="pl-s1">config</span>);
    }
}</pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Per-request Headers</h4><a id="user-content-per-request-headers" class="anchor" aria-label="Permalink: Per-request Headers" href="#per-request-headers"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">You can set custom headers to be sent with a specific request by using the <code>additionalHeaders</code> property of the options classes (e.g. <code>ClientReadOptions</code>, <code>ClientWriteOptions</code>, etc.).</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import com.fasterxml.jackson.databind.ObjectMapper;
import dev.openfga.sdk.api.client.OpenFgaClient;
import dev.openfga.sdk.api.configuration.ClientConfiguration;
import java.net.http.HttpClient;

public class Example {
    public static void main(String[] args) throws Exception {
        var config = new ClientConfiguration()
                .apiUrl(System.getenv(&quot;FGA_API_URL&quot;))
                .storeId(System.getenv(&quot;FGA_STORE_ID&quot;))
                .authorizationModelId(System.getenv(&quot;FGA_MODEL_ID&quot;))
                .defaultHeaders(Map.of(
                        &quot;X-Custom-Header&quot;, &quot;default-value&quot;,
                        &quot;X-Request-Source&quot;, &quot;my-app&quot;
                ));

        var fgaClient = new OpenFgaClient(config);
        var options = new ClientReadOptions()
                    .additionalHeaders(Map.of(
                            &quot;X-Request-Id&quot;, &quot;123e4567-e89b-12d3-a456-426614174000&quot;,
                            &quot;X-Custom-Header&quot;, &quot;overridden-value&quot; // this will override the default value for this request only
                    )
                );
        var response = fgaClient.read(request, options).get();
    }
}"><pre><span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">fasterxml</span>.<span class="pl-s1">jackson</span>.<span class="pl-s1">databind</span>.<span class="pl-s1">ObjectMapper</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">client</span>.<span class="pl-s1">OpenFgaClient</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">ClientConfiguration</span>;
<span class="pl-k">import</span> <span class="pl-s1">java</span>.<span class="pl-s1">net</span>.<span class="pl-s1">http</span>.<span class="pl-s1">HttpClient</span>;

<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">Example</span> {
    <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">main</span>(<span class="pl-smi">String</span>[] <span class="pl-s1">args</span>) <span class="pl-k">throws</span> <span class="pl-smi">Exception</span> {
        <span class="pl-smi">var</span> <span class="pl-s1">config</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientConfiguration</span>()
                .<span class="pl-en">apiUrl</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_URL"</span>))
                .<span class="pl-en">storeId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_STORE_ID"</span>))
                .<span class="pl-en">authorizationModelId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_MODEL_ID"</span>))
                .<span class="pl-en">defaultHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(
                        <span class="pl-s">"X-Custom-Header"</span>, <span class="pl-s">"default-value"</span>,
                        <span class="pl-s">"X-Request-Source"</span>, <span class="pl-s">"my-app"</span>
                ));

        <span class="pl-smi">var</span> <span class="pl-s1">fgaClient</span> = <span class="pl-k">new</span> <span class="pl-smi">OpenFgaClient</span>(<span class="pl-s1">config</span>);
        <span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadOptions</span>()
                    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(
                            <span class="pl-s">"X-Request-Id"</span>, <span class="pl-s">"123e4567-e89b-12d3-a456-426614174000"</span>,
                            <span class="pl-s">"X-Custom-Header"</span>, <span class="pl-s">"overridden-value"</span> <span class="pl-c">// this will override the default value for this request only</span>
                    )
                );
        <span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">read</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();
    }
}</pre></div>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Get your Store ID</h3><a id="user-content-get-your-store-id" class="anchor" aria-label="Permalink: Get your Store ID" href="#get-your-store-id"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">You need your store id to call the OpenFGA API (unless it is to call the <a href="#create-store">CreateStore</a> or <a href="#list-stores">ListStores</a> methods).</p>
<p dir="auto">If your server is configured with <a href="https://openfga.dev/docs/getting-started/setup-openfga#configuring-authentication" rel="nofollow">authentication enabled</a>, you also need to have your credentials ready.</p>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Calling the API</h3><a id="user-content-calling-the-api" class="anchor" aria-label="Permalink: Calling the API" href="#calling-the-api"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Stores</h4><a id="user-content-stores" class="anchor" aria-label="Permalink: Stores" href="#stores"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">List Stores</h5><a id="user-content-list-stores" class="anchor" aria-label="Permalink: List Stores" href="#list-stores"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Get a paginated list of stores.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Stores/ListStores" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientListStoresOptions</code> is optional. All fields of <code>ClientListStoresOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var options = new ClientListStoresOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    .pageSize(10)
    .continuationToken(&quot;...&quot;);
var stores = fgaClient.listStores(options);

// stores = [{ &quot;id&quot;: &quot;01FQH7V8BEG3GPQW93KTRFR8JB&quot;, &quot;name&quot;: &quot;FGA Demo Store&quot;, &quot;created_at&quot;: &quot;2022-01-01T00:00:00.000Z&quot;, &quot;updated_at&quot;: &quot;2022-01-01T00:00:00.000Z&quot; }]"><pre><span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientListStoresOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    .<span class="pl-en">pageSize</span>(<span class="pl-c1">10</span>)
    .<span class="pl-en">continuationToken</span>(<span class="pl-s">"..."</span>);
<span class="pl-smi">var</span> <span class="pl-s1">stores</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">listStores</span>(<span class="pl-s1">options</span>);

<span class="pl-c">// stores = [{ "id": "01FQH7V8BEG3GPQW93KTRFR8JB", "name": "FGA Demo Store", "created_at": "2022-01-01T00:00:00.000Z", "updated_at": "2022-01-01T00:00:00.000Z" }]</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Create Store</h5><a id="user-content-create-store" class="anchor" aria-label="Permalink: Create Store" href="#create-store"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Initialize a store.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Stores/CreateStore" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientCreateStoreOptions</code> is optional. All fields of <code>ClientCreateStoreOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var request = new CreateStoreRequest().name(&quot;FGA Demo&quot;);
var options = new ClientCreateStoreOptions().additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;));
var store = fgaClient.createStore(request, options).get();

// store.getId() = &quot;01FQH7V8BEG3GPQW93KTRFR8JB&quot;

// store the store.getId() in database

// update the storeId of the client instance
fgaClient.setStoreId(store.getId());

// continue calling the API normally"><pre><span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">CreateStoreRequest</span>().<span class="pl-en">name</span>(<span class="pl-s">"FGA Demo"</span>);
<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientCreateStoreOptions</span>().<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>));
<span class="pl-smi">var</span> <span class="pl-s1">store</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">createStore</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// store.getId() = "01FQH7V8BEG3GPQW93KTRFR8JB"</span>

<span class="pl-c">// store the store.getId() in database</span>

<span class="pl-c">// update the storeId of the client instance</span>
<span class="pl-s1">fgaClient</span>.<span class="pl-en">setStoreId</span>(<span class="pl-s1">store</span>.<span class="pl-en">getId</span>());

<span class="pl-c">// continue calling the API normally</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Get Store</h5><a id="user-content-get-store" class="anchor" aria-label="Permalink: Get Store" href="#get-store"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Get information about the current store.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Stores/GetStore" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Requires a client initialized with a storeId</p>
</blockquote>
<blockquote>
<p dir="auto">Passing <code>ClientGetStoreOptions</code> is optional. All fields of <code>ClientGetStoreOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var options = new ClientGetStoreOptions().additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;));
var store = fgaClient.getStore(options).get();

// store = { &quot;id&quot;: &quot;01FQH7V8BEG3GPQW93KTRFR8JB&quot;, &quot;name&quot;: &quot;FGA Demo Store&quot;, &quot;created_at&quot;: &quot;2022-01-01T00:00:00.000Z&quot;, &quot;updated_at&quot;: &quot;2022-01-01T00:00:00.000Z&quot; }"><pre><span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientGetStoreOptions</span>().<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>));
<span class="pl-smi">var</span> <span class="pl-s1">store</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">getStore</span>(<span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// store = { "id": "01FQH7V8BEG3GPQW93KTRFR8JB", "name": "FGA Demo Store", "created_at": "2022-01-01T00:00:00.000Z", "updated_at": "2022-01-01T00:00:00.000Z" }</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Delete Store</h5><a id="user-content-delete-store" class="anchor" aria-label="Permalink: Delete Store" href="#delete-store"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Delete a store.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Stores/DeleteStore" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Requires a client initialized with a storeId</p>
</blockquote>
<blockquote>
<p dir="auto">Passing <code>ClientDeleteStoreOptions</code> is optional. All fields of <code>ClientDeleteStoreOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var options = new ClientDeleteStoreOptions().additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;));
var store = fgaClient.deleteStore(options).get();"><pre><span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientDeleteStoreOptions</span>().<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>));
<span class="pl-smi">var</span> <span class="pl-s1">store</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">deleteStore</span>(<span class="pl-s1">options</span>).<span class="pl-en">get</span>();</pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Authorization Models</h4><a id="user-content-authorization-models" class="anchor" aria-label="Permalink: Authorization Models" href="#authorization-models"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Read Authorization Models</h5><a id="user-content-read-authorization-models" class="anchor" aria-label="Permalink: Read Authorization Models" href="#read-authorization-models"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Read all authorization models in the store.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModels" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientReadAuthorizationModelsOptions</code> is optional. All fields of <code>ClientReadAuthorizationModelsOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var options = new ClientReadAuthorizationModelsOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    .pageSize(10)
    .continuationToken(&quot;...&quot;);
var response = fgaClient.readAuthorizationModels(options).get();

// response.getAuthorizationModels() = [
// { id: &quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;, schemaVersion: &quot;1.1&quot;, typeDefinitions: [...] },
// { id: &quot;01GXSBM5PVYHCJNRNKXMB4QZTW&quot;, schemaVersion: &quot;1.1&quot;, typeDefinitions: [...] }];"><pre><span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadAuthorizationModelsOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    .<span class="pl-en">pageSize</span>(<span class="pl-c1">10</span>)
    .<span class="pl-en">continuationToken</span>(<span class="pl-s">"..."</span>);
<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">readAuthorizationModels</span>(<span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// response.getAuthorizationModels() = [</span>
<span class="pl-c">// { id: "01GXSA8YR785C4FYS3C0RTG7B1", schemaVersion: "1.1", typeDefinitions: [...] },</span>
<span class="pl-c">// { id: "01GXSBM5PVYHCJNRNKXMB4QZTW", schemaVersion: "1.1", typeDefinitions: [...] }];</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Write Authorization Model</h5><a id="user-content-write-authorization-model" class="anchor" aria-label="Permalink: Write Authorization Model" href="#write-authorization-model"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Create a new authorization model.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Authorization%20Models/WriteAuthorizationModel" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Note: To learn how to build your authorization model, check the Docs at <a href="https://openfga.dev/docs" rel="nofollow">https://openfga.dev/docs</a>.</p>
</blockquote>
<blockquote>
<p dir="auto">Learn more about <a href="https://openfga.dev/docs/configuration-language" rel="nofollow">the OpenFGA configuration language</a>.</p>
</blockquote>
<blockquote>
<p dir="auto">You can use the OpenFGA <a href="https://github.com/openfga/cli">CLI</a> or <a href="https://github.com/openfga/syntax-transformer">Syntax Transformer</a> to convert between the OpenFGA DSL and the JSON authorization model.</p>
</blockquote>
<blockquote>
<p dir="auto">Passing <code>ClientWriteAuthorizationModelOptions</code> is optional. All fields of <code>ClientWriteAuthorizationModelOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
var request = new WriteAuthorizationModelRequest()
    .schemaVersion(&quot;1.1&quot;)
    .typeDefinitions(List.of(
        new TypeDefinition().type(&quot;user&quot;).relations(Map.of()),
        new TypeDefinition()
            .type(&quot;document&quot;)
            .relations(Map.of(
                &quot;writer&quot;, new Userset(),
                &quot;viewer&quot;, new Userset().union(new Usersets()
                    .child(List.of(
                        new Userset(),
                        new Userset().computedUserset(new ObjectRelation().relation(&quot;writer&quot;))
                    ))
                )
            ))
            .metadata(new Metadata()
                .relations(Map.of(
                    &quot;writer&quot;, new RelationMetadata().directlyRelatedUserTypes(
                        List.of(new RelationReference().type(&quot;user&quot;))
                    ),
                    &quot;viewer&quot;, new RelationMetadata().directlyRelatedUserTypes(
                        List.of(new RelationReference().type(&quot;user&quot;))
                    )
                ))
            )
    ));
var options = new ClientWriteAuthorizationModelOptions().additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;));

var response = fgaClient.writeAuthorizationModel(request, options).get();

// response.getAuthorizationModelId() = &quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;"><pre><span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">WriteAuthorizationModelRequest</span>()
    .<span class="pl-en">schemaVersion</span>(<span class="pl-s">"1.1"</span>)
    .<span class="pl-en">typeDefinitions</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">TypeDefinition</span>().<span class="pl-en">type</span>(<span class="pl-s">"user"</span>).<span class="pl-en">relations</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>()),
        <span class="pl-k">new</span> <span class="pl-smi">TypeDefinition</span>()
            .<span class="pl-en">type</span>(<span class="pl-s">"document"</span>)
            .<span class="pl-en">relations</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(
                <span class="pl-s">"writer"</span>, <span class="pl-k">new</span> <span class="pl-smi">Userset</span>(),
                <span class="pl-s">"viewer"</span>, <span class="pl-k">new</span> <span class="pl-smi">Userset</span>().<span class="pl-en">union</span>(<span class="pl-k">new</span> <span class="pl-smi">Usersets</span>()
                    .<span class="pl-en">child</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
                        <span class="pl-k">new</span> <span class="pl-smi">Userset</span>(),
                        <span class="pl-k">new</span> <span class="pl-smi">Userset</span>().<span class="pl-en">computedUserset</span>(<span class="pl-k">new</span> <span class="pl-smi">ObjectRelation</span>().<span class="pl-en">relation</span>(<span class="pl-s">"writer"</span>))
                    ))
                )
            ))
            .<span class="pl-en">metadata</span>(<span class="pl-k">new</span> <span class="pl-smi">Metadata</span>()
                .<span class="pl-en">relations</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(
                    <span class="pl-s">"writer"</span>, <span class="pl-k">new</span> <span class="pl-smi">RelationMetadata</span>().<span class="pl-en">directlyRelatedUserTypes</span>(
                        <span class="pl-smi">List</span>.<span class="pl-en">of</span>(<span class="pl-k">new</span> <span class="pl-smi">RelationReference</span>().<span class="pl-en">type</span>(<span class="pl-s">"user"</span>))
                    ),
                    <span class="pl-s">"viewer"</span>, <span class="pl-k">new</span> <span class="pl-smi">RelationMetadata</span>().<span class="pl-en">directlyRelatedUserTypes</span>(
                        <span class="pl-smi">List</span>.<span class="pl-en">of</span>(<span class="pl-k">new</span> <span class="pl-smi">RelationReference</span>().<span class="pl-en">type</span>(<span class="pl-s">"user"</span>))
                    )
                ))
            )
    ));
<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientWriteAuthorizationModelOptions</span>().<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>));

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">writeAuthorizationModel</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// response.getAuthorizationModelId() = "01GXSA8YR785C4FYS3C0RTG7B1"</span></pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Read a Single Authorization Model</h4><a id="user-content-read-a-single-authorization-model" class="anchor" aria-label="Permalink: Read a Single Authorization Model" href="#read-a-single-authorization-model"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Read a particular authorization model.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModel" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientReadAuthorizationModelOptions</code> is optional. All fields of <code>ClientReadAuthorizationModelOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var options = new ClientReadAuthorizationModelOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;);

var response = fgaClient.readAuthorizationModel(options).get();

// response.getAuthorizationModel().getId() = &quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;
// response.getAuthorizationModel().getSchemaVersion() = &quot;1.1&quot;
// response.getAuthorizationModel().getTypeDefinitions() = [{ &quot;type&quot;: &quot;document&quot;, &quot;relations&quot;: { ... } }, { &quot;type&quot;: &quot;user&quot;, &quot;relations&quot;: { ... }}]"><pre><span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadAuthorizationModelOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    <span class="pl-c">// You can rely on the model id set in the configuration or override it for this specific request</span>
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-s">"01GXSA8YR785C4FYS3C0RTG7B1"</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">readAuthorizationModel</span>(<span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// response.getAuthorizationModel().getId() = "01GXSA8YR785C4FYS3C0RTG7B1"</span>
<span class="pl-c">// response.getAuthorizationModel().getSchemaVersion() = "1.1"</span>
<span class="pl-c">// response.getAuthorizationModel().getTypeDefinitions() = [{ "type": "document", "relations": { ... } }, { "type": "user", "relations": { ... }}]</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Read the Latest Authorization Model</h5><a id="user-content-read-the-latest-authorization-model" class="anchor" aria-label="Permalink: Read the Latest Authorization Model" href="#read-the-latest-authorization-model"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Reads the latest authorization model (note: this ignores the model id in configuration).</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModel" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientReadLatestAuthorizationModelOptions</code> is optional. All fields of <code>ClientReadLatestAuthorizationModelOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var options = new ClientReadLatestAuthorizationModelOptions().additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;));
var response = fgaClient.readLatestAuthorizationModel(options).get();

// response.getAuthorizationModel().getId() = &quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;
// response.getAuthorizationModel().SchemaVersion() = &quot;1.1&quot;
// response.getAuthorizationModel().TypeDefinitions() = [{ &quot;type&quot;: &quot;document&quot;, &quot;relations&quot;: { ... } }, { &quot;type&quot;: &quot;user&quot;, &quot;relations&quot;: { ... }}]"><pre><span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadLatestAuthorizationModelOptions</span>().<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>));
<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">readLatestAuthorizationModel</span>(<span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// response.getAuthorizationModel().getId() = "01GXSA8YR785C4FYS3C0RTG7B1"</span>
<span class="pl-c">// response.getAuthorizationModel().SchemaVersion() = "1.1"</span>
<span class="pl-c">// response.getAuthorizationModel().TypeDefinitions() = [{ "type": "document", "relations": { ... } }, { "type": "user", "relations": { ... }}]</span></pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Relationship Tuples</h4><a id="user-content-relationship-tuples" class="anchor" aria-label="Permalink: Relationship Tuples" href="#relationship-tuples"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Read Relationship Tuple Changes (Watch)</h5><a id="user-content-read-relationship-tuple-changes-watch" class="anchor" aria-label="Permalink: Read Relationship Tuple Changes (Watch)" href="#read-relationship-tuple-changes-watch"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Reads the list of historical relationship tuple writes and deletes.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Relationship%20Tuples/ReadChanges" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientReadChangesOptions</code> is optional. All fields of <code>ClientReadChangesOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var startTime = OffsetDateTime.parse(&quot;2022-01-01T00:00:00+00:00&quot;);
var request = new ClientReadChangesRequest().type(&quot;document&quot;).startTime(startTime);
var options = new ClientReadChangesOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    .pageSize(10)
    .continuationToken(&quot;...&quot;);

var response = fgaClient.readChanges(request, options).get();

// response.getContinuationToken() = ...
// response.getChanges() = [
//   { tupleKey: { user, relation, object }, operation: TupleOperation.WRITE, timestamp: ... },
//   { tupleKey: { user, relation, object }, operation: TupleOperation.DELETE, timestamp: ... }
// ]"><pre><span class="pl-smi">var</span> <span class="pl-s1">startTime</span> = <span class="pl-smi">OffsetDateTime</span>.<span class="pl-en">parse</span>(<span class="pl-s">"2022-01-01T00:00:00+00:00"</span>);
<span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadChangesRequest</span>().<span class="pl-en">type</span>(<span class="pl-s">"document"</span>).<span class="pl-en">startTime</span>(<span class="pl-s1">startTime</span>);
<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadChangesOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    .<span class="pl-en">pageSize</span>(<span class="pl-c1">10</span>)
    .<span class="pl-en">continuationToken</span>(<span class="pl-s">"..."</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">readChanges</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// response.getContinuationToken() = ...</span>
<span class="pl-c">// response.getChanges() = [</span>
<span class="pl-c">//   { tupleKey: { user, relation, object }, operation: TupleOperation.WRITE, timestamp: ... },</span>
<span class="pl-c">//   { tupleKey: { user, relation, object }, operation: TupleOperation.DELETE, timestamp: ... }</span>
<span class="pl-c">// ]</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Read Relationship Tuples</h5><a id="user-content-read-relationship-tuples" class="anchor" aria-label="Permalink: Read Relationship Tuples" href="#read-relationship-tuples"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Reads the relationship tuples stored in the database. It does not evaluate nor exclude invalid tuples according to the authorization model.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Relationship%20Tuples/Read" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientReadOptions</code> is optional. All fields of <code>ClientReadOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Find if a relationship tuple stating that a certain user is a viewer of a certain document
var request = new ClientReadRequest()
    .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
    .relation(&quot;viewer&quot;)
    ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;);

// Find all relationship tuples where a certain user has a relationship as any relation to a certain document
var request = new ClientReadRequest()
    .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
    ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;);

// Find all relationship tuples where a certain user is a viewer of any document
var request = new ClientReadRequest()
    .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
    .relation(&quot;viewer&quot;)
    ._object(&quot;document:&quot;);

// Find all relationship tuples where any user has a relationship as any relation with a particular document
var request = new ClientReadRequest()
    ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;);

// Read all stored relationship tuples
var request = new ClientReadRequest();

var options = new ClientReadOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    .pageSize(10)
    .continuationToken(&quot;...&quot;);

var response = fgaClient.read(request, options).get();

// In all the above situations, the response will be of the form:
// response = { tuples: [{ key: { user, relation, object }, timestamp }, ...]}"><pre><span class="pl-c">// Find if a relationship tuple stating that a certain user is a viewer of a certain document</span>
<span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadRequest</span>()
    .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
    .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
    .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>);

<span class="pl-c">// Find all relationship tuples where a certain user has a relationship as any relation to a certain document</span>
<span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadRequest</span>()
    .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
    .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>);

<span class="pl-c">// Find all relationship tuples where a certain user is a viewer of any document</span>
<span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadRequest</span>()
    .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
    .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
    .<span class="pl-en">_object</span>(<span class="pl-s">"document:"</span>);

<span class="pl-c">// Find all relationship tuples where any user has a relationship as any relation with a particular document</span>
<span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadRequest</span>()
    .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>);

<span class="pl-c">// Read all stored relationship tuples</span>
<span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadRequest</span>();

<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    .<span class="pl-en">pageSize</span>(<span class="pl-c1">10</span>)
    .<span class="pl-en">continuationToken</span>(<span class="pl-s">"..."</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">read</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// In all the above situations, the response will be of the form:</span>
<span class="pl-c">// response = { tuples: [{ key: { user, relation, object }, timestamp }, ...]}</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Write (Create and Delete) Relationship Tuples</h5><a id="user-content-write-create-and-delete-relationship-tuples" class="anchor" aria-label="Permalink: Write (Create and Delete) Relationship Tuples" href="#write-create-and-delete-relationship-tuples"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Create and/or delete relationship tuples to update the system state.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Relationship%20Tuples/Write" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientWriteOptions</code> is optional. All fields of <code>ClientWriteOptions</code> are optional.</p>
</blockquote>
<div class="markdown-heading" dir="auto"><h6 tabindex="-1" class="heading-element" dir="auto">Transaction mode (default)</h6><a id="user-content-transaction-mode-default" class="anchor" aria-label="Permalink: Transaction mode (default)" href="#transaction-mode-default"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">By default, write runs in a transaction mode where any invalid operation (deleting a non-existing tuple, creating an existing tuple, one of the tuples was invalid) or a server error will fail the entire operation.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var request = new ClientWriteRequest()
    .writes(List.of(
        new TupleKey()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;viewer&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;),
        new TupleKey()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;viewer&quot;)
            ._object(&quot;document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5&quot;)
    ))
    .deletes(List.of(
        new TupleKey()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;writer&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
    ));

var options = new ClientWriteOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;)
    .transactions(true);

var response = fgaClient.write(request, options).get();"><pre><span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientWriteRequest</span>()
    .<span class="pl-en">writes</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">TupleKey</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>),
        <span class="pl-k">new</span> <span class="pl-smi">TupleKey</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5"</span>)
    ))
    .<span class="pl-en">deletes</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">TupleKey</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"writer"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
    ));

<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientWriteOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    <span class="pl-c">// You can rely on the model id set in the configuration or override it for this specific request</span>
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-s">"01GXSA8YR785C4FYS3C0RTG7B1"</span>)
    .<span class="pl-en">transactions</span>(<span class="pl-c1">true</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">write</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();</pre></div>
<p dir="auto">Convenience <code>WriteTuples</code> and <code>DeleteTuples</code> methods are also available.</p>
<div class="markdown-heading" dir="auto"><h6 tabindex="-1" class="heading-element" dir="auto">Non-transaction mode</h6><a id="user-content-non-transaction-mode" class="anchor" aria-label="Permalink: Non-transaction mode" href="#non-transaction-mode"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">The SDK will split the writes into separate chunks and send them in parallel. Each chunk is sent as its own transaction.</p>
<blockquote>
<p dir="auto">Passing <code>ClientWriteOptions</code> with <code>.transactions(false)</code> is required to use non-transaction mode.
All other fields of <code>ClientWriteOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var request = new ClientWriteRequest()
    .writes(List.of(
        new ClientTupleKey()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;viewer&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;),
        new ClientTupleKey()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;viewer&quot;)
            ._object(&quot;document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5&quot;)
    ))
    .deletes(List.of(
        new ClientTupleKeyWithoutCondition()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;writer&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
    ));
var options = new ClientWriteOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;)
    .transactions(false)
    .transactionChunkSize(5); // Max tuples per chunk; each chunk is sent as its own transaction

var response = fgaClient.write(request, options).get();"><pre><span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientWriteRequest</span>()
    .<span class="pl-en">writes</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKey</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>),
        <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKey</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5"</span>)
    ))
    .<span class="pl-en">deletes</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKeyWithoutCondition</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"writer"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
    ));
<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientWriteOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    <span class="pl-c">// You can rely on the model id set in the configuration or override it for this specific request</span>
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-s">"01GXSA8YR785C4FYS3C0RTG7B1"</span>)
    .<span class="pl-en">transactions</span>(<span class="pl-c1">false</span>)
    .<span class="pl-en">transactionChunkSize</span>(<span class="pl-c1">5</span>); <span class="pl-c">// Max tuples per chunk; each chunk is sent as its own transaction</span>

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">write</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();</pre></div>
<div class="markdown-heading" dir="auto"><h6 tabindex="-1" class="heading-element" dir="auto">Conflict options for write operations</h6><a id="user-content-conflict-options-for-write-operations" class="anchor" aria-label="Permalink: Conflict options for write operations" href="#conflict-options-for-write-operations"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Write conflict handling can be controlled using the <code>onDuplicate</code> option for writes and the <code>onMissing</code> option for deletes.</p>
<blockquote>
<p dir="auto">Note: this requires OpenFGA <a href="https://github.com/openfga/openfga/releases/tag/v1.10.0">v1.10.0</a> or later.</p>
</blockquote>
<ul dir="auto">
<li>
<p dir="auto"><code>onDuplicate</code>: Controls behavior when attempting to create a tuple that already exists</p>
<ul dir="auto">
<li><code>WriteRequestWrites.OnDuplicateEnum.ERROR</code> (default): Return an error</li>
<li><code>WriteRequestWrites.OnDuplicateEnum.IGNORE</code>: Skip the duplicate tuple and continue</li>
</ul>
</li>
<li>
<p dir="auto"><code>onMissing</code>: Controls behavior when attempting to delete a tuple that doesn't exist</p>
<ul dir="auto">
<li><code>WriteRequestDeletes.OnMissingEnum.ERROR</code> (default): Return an error</li>
<li><code>WriteRequestDeletes.OnMissingEnum.IGNORE</code>: Skip the missing tuple and continue</li>
</ul>
</li>
</ul>
<p dir="auto"><strong>Using conflict options with the <code>write()</code> method:</strong></p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var request = new ClientWriteRequest()
    .writes(List.of(
        new ClientTupleKey()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;viewer&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
    ))
    .deletes(List.of(
        new ClientTupleKeyWithoutCondition()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;writer&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
    ));

var options = new ClientWriteOptions()
    .onDuplicate(WriteRequestWrites.OnDuplicateEnum.IGNORE)
    .onMissing(WriteRequestDeletes.OnMissingEnum.IGNORE);

var response = fgaClient.write(request, options).get();"><pre><span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientWriteRequest</span>()
    .<span class="pl-en">writes</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKey</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
    ))
    .<span class="pl-en">deletes</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKeyWithoutCondition</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"writer"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
    ));

<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientWriteOptions</span>()
    .<span class="pl-en">onDuplicate</span>(<span class="pl-smi">WriteRequestWrites</span>.<span class="pl-s1">OnDuplicateEnum</span>.<span class="pl-c1">IGNORE</span>)
    .<span class="pl-en">onMissing</span>(<span class="pl-smi">WriteRequestDeletes</span>.<span class="pl-s1">OnMissingEnum</span>.<span class="pl-c1">IGNORE</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">write</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();</pre></div>
<p dir="auto"><strong>Using conflict options with the <code>writeTuples()</code> convenience method:</strong></p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var tuples = List.of(
    new ClientTupleKey()
        .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
        .relation(&quot;viewer&quot;)
        ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
);

var options = new ClientWriteTuplesOptions()
    .onDuplicate(WriteRequestWrites.OnDuplicateEnum.IGNORE);

var response = fgaClient.writeTuples(tuples, options).get();"><pre><span class="pl-smi">var</span> <span class="pl-s1">tuples</span> = <span class="pl-smi">List</span>.<span class="pl-en">of</span>(
    <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKey</span>()
        .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
        .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
        .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
);

<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientWriteTuplesOptions</span>()
    .<span class="pl-en">onDuplicate</span>(<span class="pl-smi">WriteRequestWrites</span>.<span class="pl-s1">OnDuplicateEnum</span>.<span class="pl-c1">IGNORE</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">writeTuples</span>(<span class="pl-s1">tuples</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();</pre></div>
<p dir="auto"><strong>Using conflict options with the <code>deleteTuples()</code> convenience method:</strong></p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var tuples = List.of(
    new ClientTupleKeyWithoutCondition()
        .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
        .relation(&quot;writer&quot;)
        ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
);

var options = new ClientDeleteTuplesOptions()
    .onMissing(WriteRequestDeletes.OnMissingEnum.IGNORE);

var response = fgaClient.deleteTuples(tuples, options).get();"><pre><span class="pl-smi">var</span> <span class="pl-s1">tuples</span> = <span class="pl-smi">List</span>.<span class="pl-en">of</span>(
    <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKeyWithoutCondition</span>()
        .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
        .<span class="pl-en">relation</span>(<span class="pl-s">"writer"</span>)
        .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
);

<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientDeleteTuplesOptions</span>()
    .<span class="pl-en">onMissing</span>(<span class="pl-smi">WriteRequestDeletes</span>.<span class="pl-s1">OnMissingEnum</span>.<span class="pl-c1">IGNORE</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">deleteTuples</span>(<span class="pl-s1">tuples</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();</pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Relationship Queries</h4><a id="user-content-relationship-queries" class="anchor" aria-label="Permalink: Relationship Queries" href="#relationship-queries"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Check</h5><a id="user-content-check" class="anchor" aria-label="Permalink: Check" href="#check"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Check if a user has a particular relation with an object.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Relationship%20Queries/Check" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientCheckOptions</code> is optional. All fields of <code>ClientCheckOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var request = new ClientCheckRequest()
    .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
    .relation(&quot;writer&quot;)
    ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;);
var options = new ClientCheckOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;);

var response = fgaClient.check(request, options).get();
// response.getAllowed() = true"><pre><span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientCheckRequest</span>()
    .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
    .<span class="pl-en">relation</span>(<span class="pl-s">"writer"</span>)
    .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>);
<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientCheckOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    <span class="pl-c">// You can rely on the model id set in the configuration or override it for this specific request</span>
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-s">"01GXSA8YR785C4FYS3C0RTG7B1"</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">check</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();
<span class="pl-c">// response.getAllowed() = true</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Batch Check</h5><a id="user-content-batch-check" class="anchor" aria-label="Permalink: Batch Check" href="#batch-check"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Similar to <a href="#check">check</a>, but instead of checking a single user-object relationship, accepts a list of relationships to check. Requires OpenFGA version 1.8.0 or greater.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Relationship%20Queries/BatchCheck" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto"><strong>Note</strong>: The order of <code>batchCheck</code> results is not guaranteed to match the order of the checks provided. Use <code>correlationId</code> to pair responses with requests.</p>
</blockquote>
<blockquote>
<p dir="auto">Passing <code>ClientBatchCheckOptions</code> is optional. All fields of <code>ClientBatchCheckOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var request = new ClientBatchCheckRequest().checks(
    List.of(
        new ClientBatchCheckItem()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;viewer&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
            .correlationId(&quot;cor-1&quot;) // optional, one will be generated for you if not provided
            .contextualTuples(List.of(
                new ClientTupleKey()
                    .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
                    .relation(&quot;editor&quot;)
                    ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
            )),
        new ClientCheckRequest()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;admin&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;),
            .correlationId(&quot;cor-2&quot;) // optional, one will be generated for you if not provided
            .contextualTuples(List.of(
                new ClientTupleKey()
                    .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
                    .relation(&quot;editor&quot;)
                    ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
            )),
        new ClientCheckRequest()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;creator&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
            .correlationId(&quot;cor-3&quot;), // optional, one will be generated for you if not provided
        new ClientCheckRequest()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;deleter&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
            .correlationId(&quot;cor-4&quot;) // optional, one will be generated for you if not provided
        )
);

var options = new ClientBatchCheckOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;)
    .maxParallelRequests(5); // Max number of requests to issue in parallel, defaults to 10 
    .maxBatchSize(20); // Max number of batches to split the list of checks into, defaults to 50

var response = fgaClient.batchCheck(request, options).get();

/*
response.getResult() = [{
    allowed: false,
    correlationId: &quot;cor-1&quot;,
    request: {
      user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
      relation: &quot;viewer&quot;,
      _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;,
      correlationId: &quot;cor-1&quot;,
      contextualTuples: [{
        user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
        relation: &quot;editor&quot;,
        _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;
      }]
    },
  },
  {
    allowed: false,
    correlationId: &quot;cor-2&quot;,
    request: {
      user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
      relation: &quot;admin&quot;,
      _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;,
      correlationId: &quot;cor-2&quot;,
      contextualTuples: [{
        user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
        relation: &quot;editor&quot;,
        _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;
      }]
    }
  },
  {
    allowed: false,
    correlationId: &quot;cor-3&quot;,
    request: {
      user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
      relation: &quot;creator&quot;,
      _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;,
      correlationId: &quot;cor-3&quot;,
    },
    error: &lt;FgaError ...&gt;
  },
  {
    allowed: true,
    correlationId: &quot;cor-4&quot;,
    request: {
      user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
      relation: &quot;deleter&quot;,
      _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;,
      correlationId: &quot;cor-4&quot;,
    }
  },
]
*/"><pre><span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientBatchCheckRequest</span>().<span class="pl-en">checks</span>(
    <span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">ClientBatchCheckItem</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
            .<span class="pl-en">correlationId</span>(<span class="pl-s">"cor-1"</span>) <span class="pl-c">// optional, one will be generated for you if not provided</span>
            .<span class="pl-en">contextualTuples</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
                <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKey</span>()
                    .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
                    .<span class="pl-en">relation</span>(<span class="pl-s">"editor"</span>)
                    .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
            )),
        <span class="pl-k">new</span> <span class="pl-smi">ClientCheckRequest</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"admin"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>),
            .<span class="pl-en">correlationId</span>(<span class="pl-s">"cor-2"</span>) <span class="pl-c">// optional, one will be generated for you if not provided</span>
            .<span class="pl-en">contextualTuples</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
                <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKey</span>()
                    .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
                    .<span class="pl-en">relation</span>(<span class="pl-s">"editor"</span>)
                    .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
            )),
        <span class="pl-k">new</span> <span class="pl-smi">ClientCheckRequest</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"creator"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
            .<span class="pl-en">correlationId</span>(<span class="pl-s">"cor-3"</span>), <span class="pl-c">// optional, one will be generated for you if not provided</span>
        <span class="pl-k">new</span> <span class="pl-smi">ClientCheckRequest</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"deleter"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
            .<span class="pl-en">correlationId</span>(<span class="pl-s">"cor-4"</span>) <span class="pl-c">// optional, one will be generated for you if not provided</span>
        )
);

<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientBatchCheckOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    <span class="pl-c">// You can rely on the model id set in the configuration or override it for this specific request</span>
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-s">"01GXSA8YR785C4FYS3C0RTG7B1"</span>)
    .<span class="pl-en">maxParallelRequests</span>(<span class="pl-c1">5</span>); <span class="pl-c">// Max number of requests to issue in parallel, defaults to 10 </span>
    .<span class="pl-en">maxBatchSize</span>(<span class="pl-c1">20</span>); <span class="pl-c">// Max number of batches to split the list of checks into, defaults to 50</span>

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">batchCheck</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">/*</span>
<span class="pl-c">response.getResult() = [{</span>
<span class="pl-c">    allowed: false,</span>
<span class="pl-c">    correlationId: "cor-1",</span>
<span class="pl-c">    request: {</span>
<span class="pl-c">      user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",</span>
<span class="pl-c">      relation: "viewer",</span>
<span class="pl-c">      _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a",</span>
<span class="pl-c">      correlationId: "cor-1",</span>
<span class="pl-c">      contextualTuples: [{</span>
<span class="pl-c">        user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",</span>
<span class="pl-c">        relation: "editor",</span>
<span class="pl-c">        _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>
<span class="pl-c">      }]</span>
<span class="pl-c">    },</span>
<span class="pl-c">  },</span>
<span class="pl-c">  {</span>
<span class="pl-c">    allowed: false,</span>
<span class="pl-c">    correlationId: "cor-2",</span>
<span class="pl-c">    request: {</span>
<span class="pl-c">      user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",</span>
<span class="pl-c">      relation: "admin",</span>
<span class="pl-c">      _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a",</span>
<span class="pl-c">      correlationId: "cor-2",</span>
<span class="pl-c">      contextualTuples: [{</span>
<span class="pl-c">        user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",</span>
<span class="pl-c">        relation: "editor",</span>
<span class="pl-c">        _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>
<span class="pl-c">      }]</span>
<span class="pl-c">    }</span>
<span class="pl-c">  },</span>
<span class="pl-c">  {</span>
<span class="pl-c">    allowed: false,</span>
<span class="pl-c">    correlationId: "cor-3",</span>
<span class="pl-c">    request: {</span>
<span class="pl-c">      user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",</span>
<span class="pl-c">      relation: "creator",</span>
<span class="pl-c">      _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a",</span>
<span class="pl-c">      correlationId: "cor-3",</span>
<span class="pl-c">    },</span>
<span class="pl-c">    error: &lt;FgaError ...&gt;</span>
<span class="pl-c">  },</span>
<span class="pl-c">  {</span>
<span class="pl-c">    allowed: true,</span>
<span class="pl-c">    correlationId: "cor-4",</span>
<span class="pl-c">    request: {</span>
<span class="pl-c">      user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",</span>
<span class="pl-c">      relation: "deleter",</span>
<span class="pl-c">      _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a",</span>
<span class="pl-c">      correlationId: "cor-4",</span>
<span class="pl-c">    }</span>
<span class="pl-c">  },</span>
<span class="pl-c">]</span>
<span class="pl-c">*/</span></pre></div>
<p dir="auto">If you are using an OpenFGA version less than 1.8.0, you can use <code>clientBatchCheck</code>,
which calls <code>check</code> in parallel. It will return <code>allowed: false</code> if it encounters an error, and will return the error in the body.
If 429s are encountered, the underlying check will retry up to 3 times. For 5xx errors, all requests will retry with delay calculation using <code>Retry-After</code> headers when provided or exponential backoff as fallback.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var request = List.of(
    new ClientBatchCheckItem()
        .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
        .relation(&quot;viewer&quot;)
        ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
        .contextualTuples(List.of(
            new ClientTupleKey()
                .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
                .relation(&quot;editor&quot;)
                ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
        )),
    new ClientCheckRequest()
        .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
        .relation(&quot;admin&quot;)
        ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;),
        .contextualTuples(List.of(
            new ClientTupleKey()
                .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
                .relation(&quot;editor&quot;)
                ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
        )),
    new ClientCheckRequest()
        .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
        .relation(&quot;creator&quot;)
        ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;),
    new ClientCheckRequest()
        .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
        .relation(&quot;deleter&quot;)
        ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
);
var options = new ClientBatchCheckClientOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;)
    .maxParallelRequests(5); // Max number of requests to issue in parallel, defaults to 10

var response = fgaClient.batchCheck(request, options).get();

/*
response.getResponses() = [{
  allowed: false,
  request: {
    user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
    relation: &quot;viewer&quot;,
    _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;,
    contextualTuples: [{
      user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
      relation: &quot;editor&quot;,
      _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;
    }]
  }
}, {
  allowed: false,
  request: {
    user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
    relation: &quot;admin&quot;,
    _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;,
    contextualTuples: [{
      user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
      relation: &quot;editor&quot;,
      _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;
    }]
  }
}, {
  allowed: false,
  request: {
    user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
    relation: &quot;creator&quot;,
    _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;,
  },
  error: &lt;FgaError ...&gt;
}, {
  allowed: true,
  request: {
    user: &quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,
    relation: &quot;deleter&quot;,
    _object: &quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;,
  }},
]
*/"><pre class="notranslate"><code>var request = List.of(
    new ClientBatchCheckItem()
        .user("user:81684243-9356-4421-8fbf-a4f8d36aa31b")
        .relation("viewer")
        ._object("document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a")
        .contextualTuples(List.of(
            new ClientTupleKey()
                .user("user:81684243-9356-4421-8fbf-a4f8d36aa31b")
                .relation("editor")
                ._object("document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a")
        )),
    new ClientCheckRequest()
        .user("user:81684243-9356-4421-8fbf-a4f8d36aa31b")
        .relation("admin")
        ._object("document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"),
        .contextualTuples(List.of(
            new ClientTupleKey()
                .user("user:81684243-9356-4421-8fbf-a4f8d36aa31b")
                .relation("editor")
                ._object("document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a")
        )),
    new ClientCheckRequest()
        .user("user:81684243-9356-4421-8fbf-a4f8d36aa31b")
        .relation("creator")
        ._object("document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"),
    new ClientCheckRequest()
        .user("user:81684243-9356-4421-8fbf-a4f8d36aa31b")
        .relation("deleter")
        ._object("document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a")
);
var options = new ClientBatchCheckClientOptions()
    .additionalHeaders(Map.of("Some-Http-Header", "Some value"))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId("01GXSA8YR785C4FYS3C0RTG7B1")
    .maxParallelRequests(5); // Max number of requests to issue in parallel, defaults to 10

var response = fgaClient.batchCheck(request, options).get();

/*
response.getResponses() = [{
  allowed: false,
  request: {
    user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
    relation: "viewer",
    _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a",
    contextualTuples: [{
      user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
      relation: "editor",
      _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"
    }]
  }
}, {
  allowed: false,
  request: {
    user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
    relation: "admin",
    _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a",
    contextualTuples: [{
      user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
      relation: "editor",
      _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"
    }]
  }
}, {
  allowed: false,
  request: {
    user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
    relation: "creator",
    _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a",
  },
  error: &lt;FgaError ...&gt;
}, {
  allowed: true,
  request: {
    user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
    relation: "deleter",
    _object: "document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a",
  }},
]
*/
</code></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Expand</h5><a id="user-content-expand" class="anchor" aria-label="Permalink: Expand" href="#expand"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Expands the relationships in userset tree format.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Relationship%20Queries/Expand" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientExpandOptions</code> is optional. All fields of <code>ClientExpandOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var request = new ClientExpandRequest()
    .relation(&quot;viewer&quot;)
    ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;);
var options = new ClientExpandOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;);

var response = fgaClient.expand(request, options).get();

// response.getTree().getRoot() = {&quot;name&quot;:&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a#viewer&quot;,&quot;leaf&quot;:{&quot;users&quot;:{&quot;users&quot;:[&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;,&quot;user:f52a4f7a-054d-47ff-bb6e-3ac81269988f&quot;]}}}"><pre><span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientExpandRequest</span>()
    .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
    .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>);
<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientExpandOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    <span class="pl-c">// You can rely on the model id set in the configuration or override it for this specific request</span>
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-s">"01GXSA8YR785C4FYS3C0RTG7B1"</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">expand</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// response.getTree().getRoot() = {"name":"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a#viewer","leaf":{"users":{"users":["user:81684243-9356-4421-8fbf-a4f8d36aa31b","user:f52a4f7a-054d-47ff-bb6e-3ac81269988f"]}}}</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">List Objects</h5><a id="user-content-list-objects" class="anchor" aria-label="Permalink: List Objects" href="#list-objects"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">List the objects of a particular type a user has access to.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Relationship%20Queries/ListObjects" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientListObjectsOptions</code> is optional. All fields of <code>ClientListObjectsOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var request = new ClientListObjectsRequest()
    .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
    .relation(&quot;viewer&quot;)
    .type(&quot;document&quot;)
    .contextualTuples(List.of(
        new ClientTupleKey()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;writer&quot;)
            ._object(&quot;document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5&quot;)
    ));
var options = new ClientListObjectsOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;);

var response = fgaClient.listObjects(request, options).get();

// response.getObjects() = [&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;]"><pre><span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientListObjectsRequest</span>()
    .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
    .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
    .<span class="pl-en">type</span>(<span class="pl-s">"document"</span>)
    .<span class="pl-en">contextualTuples</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKey</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"writer"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5"</span>)
    ));
<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientListObjectsOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    <span class="pl-c">// You can rely on the model id set in the configuration or override it for this specific request</span>
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-s">"01GXSA8YR785C4FYS3C0RTG7B1"</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">listObjects</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// response.getObjects() = ["document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"]</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">List Relations</h5><a id="user-content-list-relations" class="anchor" aria-label="Permalink: List Relations" href="#list-relations"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">List the relations a user has on an object.</p>
<blockquote>
<p dir="auto">Passing <code>ClientListRelationsOptions</code> is optional. All fields of <code>ClientListRelationsOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var request = new ClientListRelationsRequest()
    .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
    ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
    .relations(List.of(&quot;can_view&quot;, &quot;can_edit&quot;, &quot;can_delete&quot;, &quot;can_rename&quot;))
    .contextualTuples(List.of(
        new ClientTupleKey()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;editor&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
        )
    );
var options = new ClientListRelationsOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // When unspecified, defaults to 10
    .maxParallelRequests()
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(DEFAULT_AUTH_MODEL_ID);

var response = fgaClient.listRelations(request, options).get();

// response.getRelations() = [&quot;can_view&quot;, &quot;can_edit&quot;]"><pre><span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientListRelationsRequest</span>()
    .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
    .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
    .<span class="pl-en">relations</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(<span class="pl-s">"can_view"</span>, <span class="pl-s">"can_edit"</span>, <span class="pl-s">"can_delete"</span>, <span class="pl-s">"can_rename"</span>))
    .<span class="pl-en">contextualTuples</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKey</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"editor"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
        )
    );
<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientListRelationsOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    <span class="pl-c">// When unspecified, defaults to 10</span>
    .<span class="pl-en">maxParallelRequests</span>()
    <span class="pl-c">// You can rely on the model id set in the configuration or override it for this specific request</span>
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-c1">DEFAULT_AUTH_MODEL_ID</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">listRelations</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// response.getRelations() = ["can_view", "can_edit"]</span></pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">List Users</h5><a id="user-content-list-users" class="anchor" aria-label="Permalink: List Users" href="#list-users"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">List the users who have a certain relation to a particular type.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Relationship%20Queries/ListUsers" rel="nofollow">API Documentation</a></p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Only a single filter is allowed for the time being
var userFilters = new ArrayList&lt;UserTypeFilter&gt;() {
    {
        add(new UserTypeFilter().type(&quot;user&quot;));
        // user filters can also be of the form
        // add(new UserTypeFilter().type(&quot;team&quot;).relation(&quot;member&quot;));
    }
};

var request = new ClientListUsersRequest()
    ._object(new FgaObject().type(&quot;document&quot;).id(&quot;roadmap&quot;))
    .relation(&quot;can_read&quot;)
    .userFilters(userFilters)
    .context(Map.of(&quot;view_count&quot;, 100))
    .contextualTupleKeys(List.of(
        new ClientTupleKey()
            .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
            .relation(&quot;editor&quot;)
            ._object(&quot;folder:product&quot;),
        new ClientTupleKey()
            .user(&quot;folder:product&quot;)
            .relation(&quot;parent&quot;)
            ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
));

var options = new ClientListUsersOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;);

var response = fgaClient.listUsers(request, options).get();

// response.getUsers() = [{object: {type: &quot;user&quot;, id: &quot;81684243-9356-4421-8fbf-a4f8d36aa31b&quot;}}, {userset: { type: &quot;user&quot; }}, ...]"><pre><span class="pl-c">// Only a single filter is allowed for the time being</span>
<span class="pl-smi">var</span> <span class="pl-s1">userFilters</span> = <span class="pl-k">new</span> <span class="pl-smi">ArrayList</span>&lt;<span class="pl-smi">UserTypeFilter</span>&gt;() {
    {
        <span class="pl-en">add</span>(<span class="pl-k">new</span> <span class="pl-smi">UserTypeFilter</span>().<span class="pl-en">type</span>(<span class="pl-s">"user"</span>));
        <span class="pl-c">// user filters can also be of the form</span>
        <span class="pl-c">// add(new UserTypeFilter().type("team").relation("member"));</span>
    }
};

<span class="pl-smi">var</span> <span class="pl-s1">request</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientListUsersRequest</span>()
    .<span class="pl-en">_object</span>(<span class="pl-k">new</span> <span class="pl-smi">FgaObject</span>().<span class="pl-en">type</span>(<span class="pl-s">"document"</span>).<span class="pl-en">id</span>(<span class="pl-s">"roadmap"</span>))
    .<span class="pl-en">relation</span>(<span class="pl-s">"can_read"</span>)
    .<span class="pl-en">userFilters</span>(<span class="pl-s1">userFilters</span>)
    .<span class="pl-en">context</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"view_count"</span>, <span class="pl-c1">100</span>))
    .<span class="pl-en">contextualTupleKeys</span>(<span class="pl-smi">List</span>.<span class="pl-en">of</span>(
        <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKey</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"editor"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"folder:product"</span>),
        <span class="pl-k">new</span> <span class="pl-smi">ClientTupleKey</span>()
            .<span class="pl-en">user</span>(<span class="pl-s">"folder:product"</span>)
            .<span class="pl-en">relation</span>(<span class="pl-s">"parent"</span>)
            .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
));

<span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientListUsersOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    <span class="pl-c">// You can rely on the model id set in the configuration or override it for this specific request</span>
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-s">"01GXSA8YR785C4FYS3C0RTG7B1"</span>);

<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">listUsers</span>(<span class="pl-s1">request</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();

<span class="pl-c">// response.getUsers() = [{object: {type: "user", id: "81684243-9356-4421-8fbf-a4f8d36aa31b"}}, {userset: { type: "user" }}, ...]</span></pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Assertions</h4><a id="user-content-assertions" class="anchor" aria-label="Permalink: Assertions" href="#assertions"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Read Assertions</h5><a id="user-content-read-assertions" class="anchor" aria-label="Permalink: Read Assertions" href="#read-assertions"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Read assertions for a particular authorization model.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Assertions/Read%20Assertions" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientReadAssertionsOptions</code> is optional. All fields of <code>ClientReadAssertionsOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var options = new ClientReadAssertionsOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    // You can rely on the model id set in the configuration or override it for this specific request
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;);
var response = fgaClient.readAssertions(options).get();"><pre><span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientReadAssertionsOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    <span class="pl-c">// You can rely on the model id set in the configuration or override it for this specific request</span>
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-s">"01GXSA8YR785C4FYS3C0RTG7B1"</span>);
<span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">readAssertions</span>(<span class="pl-s1">options</span>).<span class="pl-en">get</span>();</pre></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto">Write Assertions</h5><a id="user-content-write-assertions" class="anchor" aria-label="Permalink: Write Assertions" href="#write-assertions"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Update the assertions for a particular authorization model.</p>
<p dir="auto"><a href="https://openfga.dev/api/service#/Assertions/Write%20Assertions" rel="nofollow">API Documentation</a></p>
<blockquote>
<p dir="auto">Passing <code>ClientWriteAssertionsOptions</code> is optional. All fields of <code>ClientWriteAssertionsOptions</code> are optional.</p>
</blockquote>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var options = new ClientWriteAssertionsOptions()
    .additionalHeaders(Map.of(&quot;Some-Http-Header&quot;, &quot;Some value&quot;))
    .authorizationModelId(&quot;01GXSA8YR785C4FYS3C0RTG7B1&quot;);
var assertions = List.of(
    new ClientAssertion()
        .user(&quot;user:81684243-9356-4421-8fbf-a4f8d36aa31b&quot;)
        .relation(&quot;viewer&quot;)
        ._object(&quot;document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a&quot;)
        .expectation(true)
);
fgaClient.writeAssertions(assertions, options).get();"><pre><span class="pl-smi">var</span> <span class="pl-s1">options</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientWriteAssertionsOptions</span>()
    .<span class="pl-en">additionalHeaders</span>(<span class="pl-smi">Map</span>.<span class="pl-en">of</span>(<span class="pl-s">"Some-Http-Header"</span>, <span class="pl-s">"Some value"</span>))
    .<span class="pl-en">authorizationModelId</span>(<span class="pl-s">"01GXSA8YR785C4FYS3C0RTG7B1"</span>);
<span class="pl-smi">var</span> <span class="pl-s1">assertions</span> = <span class="pl-smi">List</span>.<span class="pl-en">of</span>(
    <span class="pl-k">new</span> <span class="pl-smi">ClientAssertion</span>()
        .<span class="pl-en">user</span>(<span class="pl-s">"user:81684243-9356-4421-8fbf-a4f8d36aa31b"</span>)
        .<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>)
        .<span class="pl-en">_object</span>(<span class="pl-s">"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"</span>)
        .<span class="pl-en">expectation</span>(<span class="pl-c1">true</span>)
);
<span class="pl-s1">fgaClient</span>.<span class="pl-en">writeAssertions</span>(<span class="pl-s1">assertions</span>, <span class="pl-s1">options</span>).<span class="pl-en">get</span>();</pre></div>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Calling Other Endpoints</h3><a id="user-content-calling-other-endpoints" class="anchor" aria-label="Permalink: Calling Other Endpoints" href="#calling-other-endpoints"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">The API Executor provides direct HTTP access to OpenFGA endpoints not yet wrapped by the SDK. It maintains the SDK's client configuration including authentication, telemetry, retries, and error handling.</p>
<p dir="auto">Use cases:</p>
<ul dir="auto">
<li>Calling endpoints not yet supported by the SDK</li>
<li>Using an SDK version that lacks support for a particular endpoint</li>
<li>Accessing custom endpoints that extend the OpenFGA API</li>
</ul>
<p dir="auto">Initialize the SDK normally and access the API Executor via the <code>fgaClient</code> instance:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Initialize the client, same as above
ClientConfiguration config = new ClientConfiguration()
    .apiUrl(&quot;http://localhost:8080&quot;)
    .storeId(&quot;01YCP46JKYM8FJCQ37NMBYHE5X&quot;);
OpenFgaClient fgaClient = new OpenFgaClient(config);

// Custom new endpoint that doesn't exist in the SDK yet
Map&lt;String, Object&gt; requestBody = Map.of(
    &quot;user&quot;, &quot;user:bob&quot;,
    &quot;action&quot;, &quot;custom_action&quot;,
    &quot;resource&quot;, &quot;resource:123&quot;
);

// Build the request
ApiExecutorRequestBuilder request = ApiExecutorRequestBuilder.builder(&quot;POST&quot;, &quot;/stores/{store_id}/custom-endpoint&quot;)
    .pathParam(&quot;store_id&quot;, storeId)
    .queryParam(&quot;page_size&quot;, &quot;20&quot;)
    .queryParam(&quot;continuation_token&quot;, &quot;eyJwayI6...&quot;)
    .body(requestBody)
    .header(&quot;X-Experimental-Feature&quot;, &quot;enabled&quot;)
    .build();"><pre><span class="pl-c">// Initialize the client, same as above</span>
<span class="pl-smi">ClientConfiguration</span> <span class="pl-s1">config</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientConfiguration</span>()
    .<span class="pl-en">apiUrl</span>(<span class="pl-s">"http://localhost:8080"</span>)
    .<span class="pl-en">storeId</span>(<span class="pl-s">"01YCP46JKYM8FJCQ37NMBYHE5X"</span>);
<span class="pl-smi">OpenFgaClient</span> <span class="pl-s1">fgaClient</span> = <span class="pl-k">new</span> <span class="pl-smi">OpenFgaClient</span>(<span class="pl-s1">config</span>);

<span class="pl-c">// Custom new endpoint that doesn't exist in the SDK yet</span>
<span class="pl-smi">Map</span>&lt;<span class="pl-smi">String</span>, <span class="pl-smi">Object</span>&gt; <span class="pl-s1">requestBody</span> = <span class="pl-smi">Map</span>.<span class="pl-en">of</span>(
    <span class="pl-s">"user"</span>, <span class="pl-s">"user:bob"</span>,
    <span class="pl-s">"action"</span>, <span class="pl-s">"custom_action"</span>,
    <span class="pl-s">"resource"</span>, <span class="pl-s">"resource:123"</span>
);

<span class="pl-c">// Build the request</span>
<span class="pl-smi">ApiExecutorRequestBuilder</span> <span class="pl-s1">request</span> = <span class="pl-smi">ApiExecutorRequestBuilder</span>.<span class="pl-en">builder</span>(<span class="pl-s">"POST"</span>, <span class="pl-s">"/stores/{store_id}/custom-endpoint"</span>)
    .<span class="pl-en">pathParam</span>(<span class="pl-s">"store_id"</span>, <span class="pl-s1">storeId</span>)
    .<span class="pl-en">queryParam</span>(<span class="pl-s">"page_size"</span>, <span class="pl-s">"20"</span>)
    .<span class="pl-en">queryParam</span>(<span class="pl-s">"continuation_token"</span>, <span class="pl-s">"eyJwayI6..."</span>)
    .<span class="pl-en">body</span>(<span class="pl-s1">requestBody</span>)
    .<span class="pl-en">header</span>(<span class="pl-s">"X-Experimental-Feature"</span>, <span class="pl-s">"enabled"</span>)
    .<span class="pl-en">build</span>();</pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Example: Calling a new "Custom Endpoint" endpoint and handling raw response</h4><a id="user-content-example-calling-a-new-custom-endpoint-endpoint-and-handling-raw-response" class="anchor" aria-label="Permalink: Example: Calling a new &quot;Custom Endpoint&quot; endpoint and handling raw response" href="#example-calling-a-new-custom-endpoint-endpoint-and-handling-raw-response"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Get raw response without automatic decoding
ApiResponse&lt;String&gt; rawResponse = fgaClient.apiExecutor().send(request).get();

String rawJson = rawResponse.getData();
System.out.println(&quot;Response: &quot; + rawJson);

// You can access fields like headers, status code, etc. from rawResponse:
System.out.println(&quot;Status Code: &quot; + rawResponse.getStatusCode());
System.out.println(&quot;Headers: &quot; + rawResponse.getHeaders());"><pre><span class="pl-c">// Get raw response without automatic decoding</span>
<span class="pl-smi">ApiResponse</span>&lt;<span class="pl-smi">String</span>&gt; <span class="pl-s1">rawResponse</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">apiExecutor</span>().<span class="pl-en">send</span>(<span class="pl-s1">request</span>).<span class="pl-en">get</span>();

<span class="pl-smi">String</span> <span class="pl-s1">rawJson</span> = <span class="pl-s1">rawResponse</span>.<span class="pl-en">getData</span>();
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Response: "</span> + <span class="pl-s1">rawJson</span>);

<span class="pl-c">// You can access fields like headers, status code, etc. from rawResponse:</span>
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Status Code: "</span> + <span class="pl-s1">rawResponse</span>.<span class="pl-en">getStatusCode</span>());
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Headers: "</span> + <span class="pl-s1">rawResponse</span>.<span class="pl-en">getHeaders</span>());</pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Example: Calling a new "Custom Endpoint" endpoint and decoding response into a struct</h4><a id="user-content-example-calling-a-new-custom-endpoint-endpoint-and-decoding-response-into-a-struct" class="anchor" aria-label="Permalink: Example: Calling a new &quot;Custom Endpoint&quot; endpoint and decoding response into a struct" href="#example-calling-a-new-custom-endpoint-endpoint-and-decoding-response-into-a-struct"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Define a class to hold the response
class CustomEndpointResponse {
    private boolean allowed;
    private String reason;

    public boolean isAllowed() { return allowed; }
    public void setAllowed(boolean allowed) { this.allowed = allowed; }
    public String getReason() { return reason; }
    public void setReason(String reason) { this.reason = reason; }
}

// Get response decoded into CustomEndpointResponse class
ApiResponse&lt;CustomEndpointResponse&gt; response = fgaClient.apiExecutor()
    .send(request, CustomEndpointResponse.class)
    .get();

CustomEndpointResponse customEndpointResponse = response.getData();
System.out.println(&quot;Allowed: &quot; + customEndpointResponse.isAllowed());
System.out.println(&quot;Reason: &quot; + customEndpointResponse.getReason());

// You can access fields like headers, status code, etc. from response:
System.out.println(&quot;Status Code: &quot; + response.getStatusCode());
System.out.println(&quot;Headers: &quot; + response.getHeaders());"><pre><span class="pl-c">// Define a class to hold the response</span>
<span class="pl-k">class</span> <span class="pl-smi">CustomEndpointResponse</span> {
    <span class="pl-k">private</span> <span class="pl-smi">boolean</span> <span class="pl-s1">allowed</span>;
    <span class="pl-k">private</span> <span class="pl-smi">String</span> <span class="pl-s1">reason</span>;

    <span class="pl-k">public</span> <span class="pl-smi">boolean</span> <span class="pl-en">isAllowed</span>() { <span class="pl-k">return</span> <span class="pl-s1">allowed</span>; }
    <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">setAllowed</span>(<span class="pl-smi">boolean</span> <span class="pl-s1">allowed</span>) { <span class="pl-smi">this</span>.<span class="pl-s1">allowed</span> = <span class="pl-s1">allowed</span>; }
    <span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-en">getReason</span>() { <span class="pl-k">return</span> <span class="pl-s1">reason</span>; }
    <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">setReason</span>(<span class="pl-smi">String</span> <span class="pl-s1">reason</span>) { <span class="pl-smi">this</span>.<span class="pl-s1">reason</span> = <span class="pl-s1">reason</span>; }
}

<span class="pl-c">// Get response decoded into CustomEndpointResponse class</span>
<span class="pl-smi">ApiResponse</span>&lt;<span class="pl-smi">CustomEndpointResponse</span>&gt; <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">apiExecutor</span>()
    .<span class="pl-en">send</span>(<span class="pl-s1">request</span>, <span class="pl-smi">CustomEndpointResponse</span>.<span class="pl-k">class</span>)
    .<span class="pl-en">get</span>();

<span class="pl-smi">CustomEndpointResponse</span> <span class="pl-s1">customEndpointResponse</span> = <span class="pl-s1">response</span>.<span class="pl-en">getData</span>();
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Allowed: "</span> + <span class="pl-s1">customEndpointResponse</span>.<span class="pl-en">isAllowed</span>());
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Reason: "</span> + <span class="pl-s1">customEndpointResponse</span>.<span class="pl-en">getReason</span>());

<span class="pl-c">// You can access fields like headers, status code, etc. from response:</span>
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Status Code: "</span> + <span class="pl-s1">response</span>.<span class="pl-en">getStatusCode</span>());
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Headers: "</span> + <span class="pl-s1">response</span>.<span class="pl-en">getHeaders</span>());</pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Calling a streaming endpoint</h4><a id="user-content-calling-a-streaming-endpoint" class="anchor" aria-label="Permalink: Calling a streaming endpoint" href="#calling-a-streaming-endpoint"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">For streaming endpoints, use <code>streamingApiExecutor</code> instead. Pass the response class directly — the SDK handles the rest. It delivers each response object to a consumer callback as it arrives, and returns a <code>CompletableFuture&lt;Void&gt;</code> that completes when the stream is exhausted.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ApiExecutorRequestBuilder request = ApiExecutorRequestBuilder.builder(HttpMethod.POST, &quot;/stores/{store_id}/streamed-list-objects&quot;)
    .body(new ListObjectsRequest().user(&quot;user:anne&quot;).relation(&quot;viewer&quot;).type(&quot;document&quot;))
    .build();

fgaClient.streamingApiExecutor(StreamedListObjectsResponse.class)
    .stream(
        request,
        response -&gt; System.out.println(&quot;Object: &quot; + response.getObject()),  // called per object
        error    -&gt; System.err.println(&quot;Stream error: &quot; + error.getMessage()) // optional
    )
    .thenRun(() -&gt; System.out.println(&quot;Streaming complete&quot;))
    .exceptionally(err -&gt; {
        System.err.println(&quot;Fatal error: &quot; + err.getMessage());
        return null;
    });"><pre><span class="pl-smi">ApiExecutorRequestBuilder</span> <span class="pl-s1">request</span> = <span class="pl-smi">ApiExecutorRequestBuilder</span>.<span class="pl-en">builder</span>(<span class="pl-smi">HttpMethod</span>.<span class="pl-c1">POST</span>, <span class="pl-s">"/stores/{store_id}/streamed-list-objects"</span>)
    .<span class="pl-en">body</span>(<span class="pl-k">new</span> <span class="pl-smi">ListObjectsRequest</span>().<span class="pl-en">user</span>(<span class="pl-s">"user:anne"</span>).<span class="pl-en">relation</span>(<span class="pl-s">"viewer"</span>).<span class="pl-en">type</span>(<span class="pl-s">"document"</span>))
    .<span class="pl-en">build</span>();

<span class="pl-s1">fgaClient</span>.<span class="pl-en">streamingApiExecutor</span>(<span class="pl-smi">StreamedListObjectsResponse</span>.<span class="pl-k">class</span>)
    .<span class="pl-en">stream</span>(
        <span class="pl-s1">request</span>,
        <span class="pl-s1">response</span> -&gt; <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Object: "</span> + <span class="pl-s1">response</span>.<span class="pl-en">getObject</span>()),  <span class="pl-c">// called per object</span>
        <span class="pl-s1">error</span>    -&gt; <span class="pl-smi">System</span>.<span class="pl-s1">err</span>.<span class="pl-en">println</span>(<span class="pl-s">"Stream error: "</span> + <span class="pl-s1">error</span>.<span class="pl-en">getMessage</span>()) <span class="pl-c">// optional</span>
    )
    .<span class="pl-en">thenRun</span>(() -&gt; <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Streaming complete"</span>))
    .<span class="pl-en">exceptionally</span>(<span class="pl-s1">err</span> -&gt; {
        <span class="pl-smi">System</span>.<span class="pl-s1">err</span>.<span class="pl-en">println</span>(<span class="pl-s">"Fatal error: "</span> + <span class="pl-s1">err</span>.<span class="pl-en">getMessage</span>());
        <span class="pl-k">return</span> <span class="pl-c1">null</span>;
    });</pre></div>
<p dir="auto">For a complete working example, see <a href="/openfga/java-sdk/blob/main/examples/api-executor">examples/api-executor</a>.</p>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Documentation</h4><a id="user-content-documentation" class="anchor" aria-label="Permalink: Documentation" href="#documentation"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">See <a href="/openfga/java-sdk/blob/main/docs/ApiExecutor.md">docs/ApiExecutor.md</a> for complete API reference and examples for both <code>ApiExecutor</code> and <code>StreamingApiExecutor</code>.</p>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Retries</h3><a id="user-content-retries" class="anchor" aria-label="Permalink: Retries" href="#retries"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">The SDK implements RFC 9110 compliant retry behavior with support for the <code>Retry-After</code> header. By default, the SDK will automatically retry failed requests up to <strong>3 times</strong> with delay calculation (maximum allowable: 15 retries).</p>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Retry Behavior</h4><a id="user-content-retry-behavior" class="anchor" aria-label="Permalink: Retry Behavior" href="#retry-behavior"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto"><strong>Rate Limiting (429 errors):</strong> Always retried regardless of HTTP method.</p>
<p dir="auto"><strong>Server Errors (5xx):</strong> All requests are retried on 5xx errors (except 501 Not Implemented) regardless of HTTP method:</p>
<ul dir="auto">
<li><strong>All operations</strong> (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS): Always retried on 5xx errors with delay calculation</li>
</ul>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Delay Calculation</h4><a id="user-content-delay-calculation" class="anchor" aria-label="Permalink: Delay Calculation" href="#delay-calculation"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<ol dir="auto">
<li><strong>Retry-After header present</strong>: Uses the server-specified delay (supports both integer seconds and HTTP-date formats)</li>
<li><strong>No Retry-After header</strong>: Uses exponential backoff with jitter (base delay: 2^retryCount * 100ms, capped at 120 seconds)</li>
<li><strong>Minimum delay</strong>: Respects the configured <code>minimumRetryDelay</code> as a floor value</li>
</ol>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Configuration</h4><a id="user-content-configuration" class="anchor" aria-label="Permalink: Configuration" href="#configuration"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">Customize retry behavior using the <code>ClientConfiguration</code> builder. The SDK enforces a maximum of 15 retries to prevent accidental server overload:</p>
<p dir="auto"><strong><g-emoji class="g-emoji" alias="warning">⚠️</g-emoji> Breaking Changes:</strong></p>
<ul dir="auto">
<li>Configuration validation now prevents setting <code>maxRetries</code> above 15</li>
<li><code>FgaError</code> now exposes the <code>Retry-After</code> header value via <code>getRetryAfterHeader()</code></li>
</ul>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import com.fasterxml.jackson.databind.ObjectMapper;
import dev.openfga.sdk.api.client.OpenFgaClient;
import dev.openfga.sdk.api.configuration.ClientConfiguration;
import java.net.http.HttpClient;

public class Example {
    public static void main(String[] args) throws Exception {
        var config = new ClientConfiguration()
                .apiUrl(System.getenv(&quot;FGA_API_URL&quot;)) // If not specified, will default to &quot;http://localhost:8080&quot;
                .storeId(System.getenv(&quot;FGA_STORE_ID&quot;)) // Not required when calling createStore() or listStores()
                .authorizationModelId(System.getenv(&quot;FGA_MODEL_ID&quot;)) // Optional, can be overridden per request
                .maxRetries(3) // retry up to 3 times on API requests (default: 3, maximum: 15)
                .minimumRetryDelay(Duration.ofMillis(100)); // minimum wait time between retries in milliseconds (default: 100ms)

        var fgaClient = new OpenFgaClient(config);
        var response = fgaClient.readAuthorizationModels().get();
    }
}"><pre><span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">fasterxml</span>.<span class="pl-s1">jackson</span>.<span class="pl-s1">databind</span>.<span class="pl-s1">ObjectMapper</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">client</span>.<span class="pl-s1">OpenFgaClient</span>;
<span class="pl-k">import</span> <span class="pl-s1">dev</span>.<span class="pl-s1">openfga</span>.<span class="pl-s1">sdk</span>.<span class="pl-s1">api</span>.<span class="pl-s1">configuration</span>.<span class="pl-s1">ClientConfiguration</span>;
<span class="pl-k">import</span> <span class="pl-s1">java</span>.<span class="pl-s1">net</span>.<span class="pl-s1">http</span>.<span class="pl-s1">HttpClient</span>;

<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">Example</span> {
    <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">main</span>(<span class="pl-smi">String</span>[] <span class="pl-s1">args</span>) <span class="pl-k">throws</span> <span class="pl-smi">Exception</span> {
        <span class="pl-smi">var</span> <span class="pl-s1">config</span> = <span class="pl-k">new</span> <span class="pl-smi">ClientConfiguration</span>()
                .<span class="pl-en">apiUrl</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_API_URL"</span>)) <span class="pl-c">// If not specified, will default to "http://localhost:8080"</span>
                .<span class="pl-en">storeId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_STORE_ID"</span>)) <span class="pl-c">// Not required when calling createStore() or listStores()</span>
                .<span class="pl-en">authorizationModelId</span>(<span class="pl-smi">System</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"FGA_MODEL_ID"</span>)) <span class="pl-c">// Optional, can be overridden per request</span>
                .<span class="pl-en">maxRetries</span>(<span class="pl-c1">3</span>) <span class="pl-c">// retry up to 3 times on API requests (default: 3, maximum: 15)</span>
                .<span class="pl-en">minimumRetryDelay</span>(<span class="pl-smi">Duration</span>.<span class="pl-en">ofMillis</span>(<span class="pl-c1">100</span>)); <span class="pl-c">// minimum wait time between retries in milliseconds (default: 100ms)</span>

        <span class="pl-smi">var</span> <span class="pl-s1">fgaClient</span> = <span class="pl-k">new</span> <span class="pl-smi">OpenFgaClient</span>(<span class="pl-s1">config</span>);
        <span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">readAuthorizationModels</span>().<span class="pl-en">get</span>();
    }
}</pre></div>
<div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Error Handling with Retry Information</h4><a id="user-content-error-handling-with-retry-information" class="anchor" aria-label="Permalink: Error Handling with Retry Information" href="#error-handling-with-retry-information"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">When handling errors, you can access the <code>Retry-After</code> header value for debugging or custom retry logic:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="try {
    var response = fgaClient.check(request).get();
} catch (ExecutionException e) {
    if (e.getCause() instanceof FgaError) {
        FgaError error = (FgaError) e.getCause();
        
        // Access Retry-After header if present
        String retryAfter = error.getRetryAfterHeader();
        if (retryAfter != null) {
            System.out.println(&quot;Server requested retry after: &quot; + retryAfter + &quot; seconds&quot;);
        }
        
        System.out.println(&quot;Error: &quot; + error.getMessage());
    }
}"><pre><span class="pl-k">try</span> {
    <span class="pl-smi">var</span> <span class="pl-s1">response</span> = <span class="pl-s1">fgaClient</span>.<span class="pl-en">check</span>(<span class="pl-s1">request</span>).<span class="pl-en">get</span>();
} <span class="pl-k">catch</span> (<span class="pl-smi">ExecutionException</span> <span class="pl-s1">e</span>) {
    <span class="pl-k">if</span> (<span class="pl-s1">e</span>.<span class="pl-en">getCause</span>() <span class="pl-k">instanceof</span> <span class="pl-smi">FgaError</span>) {
        <span class="pl-smi">FgaError</span> <span class="pl-s1">error</span> = (<span class="pl-smi">FgaError</span>) <span class="pl-s1">e</span>.<span class="pl-en">getCause</span>();
        
        <span class="pl-c">// Access Retry-After header if present</span>
        <span class="pl-smi">String</span> <span class="pl-s1">retryAfter</span> = <span class="pl-s1">error</span>.<span class="pl-en">getRetryAfterHeader</span>();
        <span class="pl-k">if</span> (<span class="pl-s1">retryAfter</span> != <span class="pl-c1">null</span>) {
            <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Server requested retry after: "</span> + <span class="pl-s1">retryAfter</span> + <span class="pl-s">" seconds"</span>);
        }
        
        <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Error: "</span> + <span class="pl-s1">error</span>.<span class="pl-en">getMessage</span>());
    }
}</pre></div>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">API Endpoints</h3><a id="user-content-api-endpoints" class="anchor" aria-label="Permalink: API Endpoints" href="#api-endpoints"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<markdown-accessiblity-table><table>
<thead>
<tr>
<th>Method</th>
<th>HTTP request</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#batchcheck"><strong>batchCheck</strong></a></td>
<td><strong>POST</strong> /stores/{store_id}/batch-check</td>
<td>Send a list of `check` operations in a single request</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#check"><strong>check</strong></a></td>
<td><strong>POST</strong> /stores/{store_id}/check</td>
<td>Check whether a user is authorized to access an object</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#createstore"><strong>createStore</strong></a></td>
<td><strong>POST</strong> /stores</td>
<td>Create a store</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#deletestore"><strong>deleteStore</strong></a></td>
<td><strong>DELETE</strong> /stores/{store_id}</td>
<td>Delete a store</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#expand"><strong>expand</strong></a></td>
<td><strong>POST</strong> /stores/{store_id}/expand</td>
<td>Expand all relationships in userset tree format, and following userset rewrite rules.  Useful to reason about and debug a certain relationship</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#getstore"><strong>getStore</strong></a></td>
<td><strong>GET</strong> /stores/{store_id}</td>
<td>Get a store</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#listobjects"><strong>listObjects</strong></a></td>
<td><strong>POST</strong> /stores/{store_id}/list-objects</td>
<td>List all objects of the given type that the user has a relation with</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#liststores"><strong>listStores</strong></a></td>
<td><strong>GET</strong> /stores</td>
<td>List all stores</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#listusers"><strong>listUsers</strong></a></td>
<td><strong>POST</strong> /stores/{store_id}/list-users</td>
<td>List the users matching the provided filter who have a certain relation to a particular type.</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#read"><strong>read</strong></a></td>
<td><strong>POST</strong> /stores/{store_id}/read</td>
<td>Get tuples from the store that matches a query, without following userset rewrite rules</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#readassertions"><strong>readAssertions</strong></a></td>
<td><strong>GET</strong> /stores/{store_id}/assertions/{authorization_model_id}</td>
<td>Read assertions for an authorization model ID</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#readauthorizationmodel"><strong>readAuthorizationModel</strong></a></td>
<td><strong>GET</strong> /stores/{store_id}/authorization-models/{id}</td>
<td>Return a particular version of an authorization model</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#readauthorizationmodels"><strong>readAuthorizationModels</strong></a></td>
<td><strong>GET</strong> /stores/{store_id}/authorization-models</td>
<td>Return all the authorization models for a particular store</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#readchanges"><strong>readChanges</strong></a></td>
<td><strong>GET</strong> /stores/{store_id}/changes</td>
<td>Return a list of all the tuple changes</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#streamedlistobjects"><strong>streamedListObjects</strong></a></td>
<td><strong>POST</strong> /stores/{store_id}/streamed-list-objects</td>
<td>Stream all objects of the given type that the user has a relation with</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#write"><strong>write</strong></a></td>
<td><strong>POST</strong> /stores/{store_id}/write</td>
<td>Add or delete tuples from the store</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#writeassertions"><strong>writeAssertions</strong></a></td>
<td><strong>PUT</strong> /stores/{store_id}/assertions/{authorization_model_id}</td>
<td>Upsert assertions for an authorization model ID</td>
</tr>
<tr>
<td><a href="/openfga/java-sdk/blob/main/docs/OpenFgaApi.md#writeauthorizationmodel"><strong>writeAuthorizationModel</strong></a></td>
<td><strong>POST</strong> /stores/{store_id}/authorization-models</td>
<td>Create a new authorization model</td>
</tr>
</tbody>
</table></markdown-accessiblity-table>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Models</h3><a id="user-content-models" class="anchor" aria-label="Permalink: Models" href="#models"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<ul dir="auto">
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/AbortedMessageResponse.md">AbortedMessageResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Any.md">Any</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Assertion.md">Assertion</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/AssertionTupleKey.md">AssertionTupleKey</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/AuthErrorCode.md">AuthErrorCode</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/AuthorizationModel.md">AuthorizationModel</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckItem.md">BatchCheckItem</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckRequest.md">BatchCheckRequest</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckResponse.md">BatchCheckResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/BatchCheckSingleResult.md">BatchCheckSingleResult</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/CheckError.md">CheckError</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/CheckRequest.md">CheckRequest</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/CheckRequestTupleKey.md">CheckRequestTupleKey</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/CheckResponse.md">CheckResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Computed.md">Computed</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Condition.md">Condition</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ConditionMetadata.md">ConditionMetadata</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ConditionParamTypeRef.md">ConditionParamTypeRef</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ConsistencyPreference.md">ConsistencyPreference</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ContextualTupleKeys.md">ContextualTupleKeys</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/CreateStoreRequest.md">CreateStoreRequest</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/CreateStoreResponse.md">CreateStoreResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Difference.md">Difference</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ErrorCode.md">ErrorCode</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ExpandRequest.md">ExpandRequest</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ExpandRequestTupleKey.md">ExpandRequestTupleKey</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ExpandResponse.md">ExpandResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/FgaObject.md">FgaObject</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ForbiddenResponse.md">ForbiddenResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/GetStoreResponse.md">GetStoreResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/InternalErrorCode.md">InternalErrorCode</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/InternalErrorMessageResponse.md">InternalErrorMessageResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Leaf.md">Leaf</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ListObjectsRequest.md">ListObjectsRequest</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ListObjectsResponse.md">ListObjectsResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ListStoresResponse.md">ListStoresResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ListUsersRequest.md">ListUsersRequest</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ListUsersResponse.md">ListUsersResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Metadata.md">Metadata</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Node.md">Node</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Nodes.md">Nodes</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/NotFoundErrorCode.md">NotFoundErrorCode</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/NullValue.md">NullValue</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ObjectRelation.md">ObjectRelation</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/PathUnknownErrorMessageResponse.md">PathUnknownErrorMessageResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ReadAssertionsResponse.md">ReadAssertionsResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ReadAuthorizationModelResponse.md">ReadAuthorizationModelResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ReadAuthorizationModelsResponse.md">ReadAuthorizationModelsResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ReadChangesResponse.md">ReadChangesResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ReadRequest.md">ReadRequest</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ReadRequestTupleKey.md">ReadRequestTupleKey</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ReadResponse.md">ReadResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/RelationMetadata.md">RelationMetadata</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/RelationReference.md">RelationReference</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/RelationshipCondition.md">RelationshipCondition</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/SourceInfo.md">SourceInfo</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Status.md">Status</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Store.md">Store</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/StreamResultOfStreamedListObjectsResponse.md">StreamResultOfStreamedListObjectsResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/StreamedListObjectsResponse.md">StreamedListObjectsResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Tuple.md">Tuple</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/TupleChange.md">TupleChange</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/TupleKey.md">TupleKey</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/TupleKeyWithoutCondition.md">TupleKeyWithoutCondition</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/TupleOperation.md">TupleOperation</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/TupleToUserset.md">TupleToUserset</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/TypeDefinition.md">TypeDefinition</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/TypeName.md">TypeName</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/TypedWildcard.md">TypedWildcard</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/UnauthenticatedResponse.md">UnauthenticatedResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/UnprocessableContentErrorCode.md">UnprocessableContentErrorCode</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/UnprocessableContentMessageResponse.md">UnprocessableContentMessageResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/User.md">User</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/UserTypeFilter.md">UserTypeFilter</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Users.md">Users</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Userset.md">Userset</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/UsersetTree.md">UsersetTree</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/UsersetTreeDifference.md">UsersetTreeDifference</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/UsersetTreeTupleToUserset.md">UsersetTreeTupleToUserset</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/UsersetUser.md">UsersetUser</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/Usersets.md">Usersets</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/ValidationErrorMessageResponse.md">ValidationErrorMessageResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/WriteAssertionsRequest.md">WriteAssertionsRequest</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/WriteAuthorizationModelRequest.md">WriteAuthorizationModelRequest</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/WriteAuthorizationModelResponse.md">WriteAuthorizationModelResponse</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/WriteRequest.md">WriteRequest</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/WriteRequestDeletes.md">WriteRequestDeletes</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/openfga/java-sdk/blob/main/docs/WriteRequestWrites.md">WriteRequestWrites</a></p>
</li>
</ul>
<div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">OpenTelemetry</h3><a id="user-content-opentelemetry" class="anchor" aria-label="Permalink: OpenTelemetry" href="#opentelemetry"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">This SDK supports producing metrics that can be consumed as part of an <a href="https://opentelemetry.io/" rel="nofollow">OpenTelemetry</a> setup. For more information, please see <a href="https://github.com/openfga/java-sdk/blob/main/docs/OpenTelemetry.md">the documentation</a></p>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Contributing</h2><a id="user-content-contributing" class="anchor" aria-label="Permalink: Contributing" href="#contributing"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">See <a href="/openfga/java-sdk/blob/main/CONTRIBUTING.md">CONTRIBUTING</a> for details.</p>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Author</h2><a id="user-content-author" class="anchor" aria-label="Permalink: Author" href="#author"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto"><a href="https://github.com/openfga">OpenFGA</a></p>
<div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">License</h2><a id="user-content-license" class="anchor" aria-label="Permalink: License" href="#license"><svg data-component="Octicon" class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<p dir="auto">This project is licensed under the Apache-2.0 license. See the <a href="https://github.com/openfga/java-sdk/blob/main/LICENSE">LICENSE</a> file for more info.</p>
<p dir="auto">The code in this repo was auto generated by <a href="https://github.com/OpenAPITools/openapi-generator">OpenAPI Generator</a> from a template based on the <a href="https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/Java">Java template</a>, licensed under the <a href="https://github.com/OpenAPITools/openapi-generator/blob/master/LICENSE">Apache License 2.0</a>.</p>
</article></div><div class="d-none"></div></section></div></div></div> </div> <!-- --> </div></div></div></div></div></div><div class="ScrollMarksContainer-module__scrollMarksContainer__Eu7uU" id="find-result-marks-container"></div><div class="d-none"></div><div class="d-none"></div></div> <!-- --> <!-- --> </div>
</react-app>




  </div>

</turbo-frame>

    </main>
  </div>

  </div>

          <footer class="footer f6 color-fg-muted color-border-subtle tmp-pt-7 tmp-pb-6 p-responsive" role="contentinfo"  >
  <h2 class='sr-only'>Footer</h2>

  


  <div class="d-flex flex-justify-center flex-items-center flex-column-reverse flex-lg-row flex-wrap flex-lg-nowrap">
    <div class="d-flex flex-items-center flex-shrink-0 mx-2">
      <a aria-label="GitHub Homepage" class="footer-octicon mr-2" href="https://github.com">
        <svg aria-hidden="true" data-component="Octicon" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-mark-github">
    <path d="M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943"></path>
</svg>
</a>
      <span>
        &copy; 2026 GitHub,&nbsp;Inc.
      </span>
    </div>

    <nav aria-label="Footer">
      <h3 class="sr-only" id="sr-footer-heading">Footer navigation</h3>

      <ul class="list-style-none d-flex flex-justify-center flex-wrap mb-2 mb-lg-0" aria-labelledby="sr-footer-heading">


          <li class="mx-2">
            <a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to Terms&quot;,&quot;label&quot;:&quot;text:terms&quot;}" href="https://docs.github.com/site-policy/github-terms/github-terms-of-service" data-view-component="true" class="Link--secondary Link">Terms</a>
          </li>

          <li class="mx-2">
            <a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to privacy&quot;,&quot;label&quot;:&quot;text:privacy&quot;}" href="https://docs.github.com/site-policy/privacy-policies/github-privacy-statement" data-view-component="true" class="Link--secondary Link">Privacy</a>
          </li>


            <li class="mx-2">
              <a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to security&quot;,&quot;label&quot;:&quot;text:security&quot;}" href="https://github.com/security" data-view-component="true" class="Link--secondary Link">Security</a>
            </li>

            <li class="mx-2">
              <a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to status&quot;,&quot;label&quot;:&quot;text:status&quot;}" href="https://www.githubstatus.com/" data-view-component="true" class="Link--secondary Link">Status</a>
            </li>

          <li class="mx-2">
            <a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to community&quot;,&quot;label&quot;:&quot;text:community&quot;}" href="https://github.community/" data-view-component="true" class="Link--secondary Link">Community</a>
          </li>

          <li class="mx-2">
            <a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to docs&quot;,&quot;label&quot;:&quot;text:docs&quot;}" href="https://docs.github.com/" data-view-component="true" class="Link--secondary Link">Docs</a>
          </li>

          <li class="mx-2">
            <a data-analytics-event="{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to contact&quot;,&quot;label&quot;:&quot;text:contact&quot;}" href="https://support.github.com?tags=dotcom-footer" data-view-component="true" class="Link--secondary Link">Contact</a>
          </li>

          
<li class="mx-2" >
  <cookie-consent-link>
    <button
      type="button"
      class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent"
      data-action="click:cookie-consent-link#showConsentManagement"
      data-analytics-event="{&quot;location&quot;:&quot;footer&quot;,&quot;action&quot;:&quot;cookies&quot;,&quot;context&quot;:&quot;subfooter&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;label&quot;:&quot;cookies_link_subfooter_footer&quot;}"
    >
      Manage cookies
    </button>
  </cookie-consent-link>
</li>

  <li class="mx-2">
    <cookie-consent-link>
      <button
        type="button"
        class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent text-left"
        data-action="click:cookie-consent-link#showConsentManagement"
        data-analytics-event="{&quot;location&quot;:&quot;footer&quot;,&quot;action&quot;:&quot;dont_share_info&quot;,&quot;context&quot;:&quot;subfooter&quot;,&quot;tag&quot;:&quot;link&quot;,&quot;label&quot;:&quot;dont_share_info_link_subfooter_footer&quot;}"
      >
        Do not share my personal information
      </button>
    </cookie-consent-link>
  </li>

      </ul>
    </nav>
  </div>
</footer>



    <ghcc-consent id="ghcc" class="position-fixed bottom-0 left-0" style="z-index: 999999"
      data-locale="en"
      data-initial-cookie-consent-allowed=""
      data-cookie-consent-required="true"
    ></ghcc-consent>




  <div id="ajax-error-message" class="ajax-error-message flash flash-error" hidden>
    <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <button type="button" class="flash-close js-ajax-error-dismiss" aria-label="Dismiss error">
      <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
    <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
    </button>
    You can’t perform that action at this time.
  </div>

    <template id="site-details-dialog">
  <details class="details-reset details-overlay details-overlay-dark lh-default color-fg-default hx_rsm" open>
    <summary role="button" aria-label="Close dialog"></summary>
    <details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast hx_rsm-dialog hx_rsm-modal">
      <button class="Box-btn-octicon m-0 btn-octicon position-absolute right-0 top-0" type="button" aria-label="Close dialog" data-close-dialog>
        <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
    <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg>
      </button>
      <div class="octocat-spinner tmp-my-6 js-details-dialog-spinner"></div>
    </details-dialog>
  </details>
</template>

    <div class="Popover js-hovercard-content position-absolute" style="display: none; outline: none;">
  <div class="Popover-message Popover-message--bottom-left Popover-message--large Box color-shadow-large" style="width:360px;">
  </div>
</div>

    <template id="snippet-clipboard-copy-button">
  <div class="zeroclipboard-container position-absolute right-0 top-0">
    <clipboard-copy aria-label="Copy code to clipboard" class="ClipboardButton btn js-clipboard-copy m-2 p-0" data-copy-feedback="Copied!" data-tooltip-direction="w">
      <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon m-2 tmp-m-2">
    <path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
      <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none m-2 tmp-m-2">
    <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
    </clipboard-copy>
  </div>
</template>
<template id="snippet-clipboard-copy-button-unpositioned">
  <div class="zeroclipboard-container">
    <clipboard-copy aria-label="Copy code to clipboard" class="ClipboardButton btn btn-invisible js-clipboard-copy m-2 p-0 d-flex flex-justify-center flex-items-center" data-copy-feedback="Copied!" data-tooltip-direction="w">
      <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon">
    <path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
      <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none">
    <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
    </clipboard-copy>
  </div>
</template>




    </div>
    <div id="js-global-screen-reader-notice" class="sr-only mt-n1" aria-live="polite" aria-atomic="true" ></div>
    <div id="js-global-screen-reader-notice-assertive" class="sr-only mt-n1" aria-live="assertive" aria-atomic="true"></div>
  </body>
</html>

