{"id":28403876,"url":"https://github.com/openfga/go-sdk","last_synced_at":"2026-02-24T04:10:29.002Z","repository":{"id":57707454,"uuid":"482957067","full_name":"openfga/go-sdk","owner":"openfga","description":"OpenFGA SDK for Go ","archived":false,"fork":false,"pushed_at":"2026-02-17T09:21:07.000Z","size":968,"stargazers_count":112,"open_issues_count":15,"forks_count":40,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-02-17T13:57:58.853Z","etag":null,"topics":["access-control","authorization","fga","fine-grained-authorization","hacktoberfest","openfga","openfga-client","security","zanzibar"],"latest_commit_sha":null,"homepage":"https://openfga.dev","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openfga.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY-INSIGHTS.yml","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-18T18:39:09.000Z","updated_at":"2026-02-12T21:31:30.000Z","dependencies_parsed_at":"2023-11-06T04:28:44.400Z","dependency_job_id":"d28304a3-d84a-44bf-bfd0-bb63288c0151","html_url":"https://github.com/openfga/go-sdk","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/openfga/go-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfga%2Fgo-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfga%2Fgo-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfga%2Fgo-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfga%2Fgo-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfga","download_url":"https://codeload.github.com/openfga/go-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfga%2Fgo-sdk/sbom","scorecard":{"id":8881,"data":{"date":"2025-08-14T12:01:17Z","repo":{"name":"github.com/openfga/go-sdk","commit":"c647ac716a15cbc78151d7bd58036c971642f974"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":8.8,"checks":[{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yaml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Maintained","score":10,"reason":"11 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/main.yaml:46","Info: topLevel 'contents' permission set to 'read': .github/workflows/main.yaml:3","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":7,"reason":"dependency not pinned by hash detected -- score normalized to 7","details":["Warn: goCommand not pinned by hash: .github/workflows/main.yaml:33","Info:   6 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":8,"reason":"SAST tool is not run on all commits -- score normalized to 8","details":["Warn: 25 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":8,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Info: codeowner review is required on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/openfga/.github/SECURITY.md:1","Info: Found linked content: github.com/openfga/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/openfga/.github/SECURITY.md:1","Info: Found text in security policy: github.com/openfga/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"CI-Tests","score":10,"reason":"30 out of 30 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}},{"name":"Contributors","score":10,"reason":"project has 9 contributing companies or organizations","details":["Info: found contributions from: auth0, auth0 / @okta, auth0-samples, lambalabs, momentful, okta, openfga, psr-discovery, psr-mock"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}}]},"last_synced_at":"2025-08-14T14:08:27.118Z","repository_id":57707454,"created_at":"2025-08-14T14:08:27.119Z","updated_at":"2025-08-14T14:08:27.119Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29771171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:01:02.180Z","status":"ssl_error","status_checked_at":"2026-02-24T03:59:49.901Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["access-control","authorization","fga","fine-grained-authorization","hacktoberfest","openfga","openfga-client","security","zanzibar"],"created_at":"2025-06-01T19:11:06.773Z","updated_at":"2026-02-24T04:10:28.996Z","avatar_url":"https://github.com/openfga.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go SDK for OpenFGA\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/openfga/go-sdk.svg)](https://pkg.go.dev/github.com/openfga/go-sdk)\n[![Socket Badge](https://badge.socket.dev/go/package/github.com/openfga/go-sdk)](https://socket.dev/go/package/github.com/openfga/go-sdk)\n[![DeepWiki](https://img.shields.io/badge/DeepWiki-openfga%2Fgo--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/go-sdk)\n[![Release](https://img.shields.io/github/v/release/openfga/go-sdk?sort=semver\u0026color=green)](https://github.com/openfga/go-sdk/releases)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenfga%2Fgo-sdk.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenfga%2Fgo-sdk?ref=badge_shield)\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/openfga/go-sdk/badge)](https://securityscorecards.dev/viewer/?uri=github.com/openfga/go-sdk)\n[![Join our community](https://img.shields.io/badge/slack-cncf_%23openfga-40abb8.svg?logo=slack)](https://openfga.dev/community)\n[![X](https://img.shields.io/twitter/follow/openfga?color=%23179CF0\u0026logo=x\u0026style=flat-square \"@openfga on X\")](https://x.com/openfga)\n\nThis is an autogenerated Go SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).\n\n## Table of Contents\n\n- [About OpenFGA](#about)\n- [Resources](#resources)\n- [Installation](#installation)\n- [Getting Started](#getting-started)\n  - [Initializing the API Client](#initializing-the-api-client)\n  - [Custom Headers](#custom-headers)\n  - [Get your Store ID](#get-your-store-id)\n  - [Calling the API](#calling-the-api)\n    - [Stores](#stores)\n      - [List All Stores](#list-stores)\n      - [Create a Store](#create-store)\n      - [Get a Store](#get-store)\n      - [Delete a Store](#delete-store)\n    - [Authorization Models](#authorization-models)\n      - [Read Authorization Models](#read-authorization-models)\n      - [Write Authorization Model](#write-authorization-model)\n      - [Read a Single Authorization Model](#read-a-single-authorization-model)\n      - [Read the Latest Authorization Model](#read-the-latest-authorization-model)\n    - [Relationship Tuples](#relationship-tuples)\n      - [Read Relationship Tuple Changes (Watch)](#read-relationship-tuple-changes-watch)\n      - [Read Relationship Tuples](#read-relationship-tuples)\n      - [Write (Create and Delete) Relationship Tuples](#write-create-and-delete-relationship-tuples)\n    - [Relationship Queries](#relationship-queries)\n      - [Check](#check)\n      - [Batch Check](#batch-check)\n      - [Expand](#expand)\n      - [List Objects](#list-objects)\n      - [Streamed List Objects](#streamed-list-objects)\n      - [List Relations](#list-relations)\n      - [List Users](#list-users)\n    - [Assertions](#assertions)\n      - [Read Assertions](#read-assertions)\n      - [Write Assertions](#write-assertions)\n  - [Calling other endpoints](#calling-other-endpoints)\n  - [Retries](#retries)\n  - [API Endpoints](#api-endpoints)\n  - [Models](#models)\n  - [OpenTelemetry](#opentelemetry)\n- [Contributing](#contributing)\n  - [Issues](#issues)\n  - [Pull Requests](#pull-requests)\n- [License](#license)\n\n## About\n\n[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.\n\nOpenFGA 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.\n\n\n## Resources\n\n- [OpenFGA Documentation](https://openfga.dev/docs)\n- [OpenFGA API Documentation](https://openfga.dev/api/service)\n- [X](https://x.com/openfga)\n- [OpenFGA Community](https://openfga.dev/community)\n- [Zanzibar Academy](https://zanzibar.academy)\n- [Google's Zanzibar Paper (2019)](https://research.google/pubs/pub48190/)\n\n## Installation\n\nTo install:\n\n```\ngo get -u github.com/openfga/go-sdk\n```\n\nIn your code, import the module and use it:\n\n```go\nimport \"github.com/openfga/go-sdk\"\n\nfunc Main() {\n\tconfiguration, err := openfga.NewConfiguration(openfga.Configuration{})\n}\n```\n\nYou can then run\n\n```shell\ngo mod tidy\n```\n\nto update `go.mod` and `go.sum` if you are using them.\n\n\n## Getting Started\n\n### Initializing the API Client\n\n[Learn how to initialize your SDK](https://openfga.dev/docs/getting-started/setup-sdk-client)\n\nWe 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.\n\n\u003e The `openfgaClient` will by default retry API requests up to 3 times on 429 and 5xx errors.\n\n#### No Credentials\n\n```golang\nimport (\n    . \"github.com/openfga/go-sdk/client\"\n    \"os\"\n)\n\nfunc main() {\n    fgaClient, err := NewSdkClient(\u0026ClientConfiguration{\n        ApiUrl:  os.Getenv(\"FGA_API_URL\"), // required, e.g. https://api.fga.example\n        StoreId: os.Getenv(\"FGA_STORE_ID\"), // not needed when calling `CreateStore` or `ListStores`\n        AuthorizationModelId: os.Getenv(\"FGA_MODEL_ID\"), // optional, recommended to be set for production\n    })\n\n\tif err != nil {\n        // .. Handle error\n    }\n}\n```\n\n#### API Token\n\n```golang\nimport (\n    . \"github.com/openfga/go-sdk/client\"\n    \"github.com/openfga/go-sdk/credentials\"\n    \"os\"\n)\n\nfunc main() {\n    fgaClient, err := NewSdkClient(\u0026ClientConfiguration{\n        ApiUrl:      os.Getenv(\"FGA_API_URL\"), // required, e.g. https://api.fga.example\n        StoreId:     os.Getenv(\"FGA_STORE_ID\"), // not needed when calling `CreateStore` or `ListStores`\n        AuthorizationModelId: os.Getenv(\"FGA_MODEL_ID\"), // optional, recommended to be set for production\n        Credentials: \u0026credentials.Credentials{\n            Method: credentials.CredentialsMethodApiToken,\n            Config: \u0026credentials.Config{\n                ApiToken: os.Getenv(\"FGA_API_TOKEN\"), // will be passed as the \"Authorization: Bearer ${ApiToken}\" request header\n            },\n        },\n    })\n\n    if err != nil {\n        // .. Handle error\n    }\n}\n```\n\n#### Client Credentials\n\n```golang\nimport (\n    openfga \"github.com/openfga/go-sdk\"\n    . \"github.com/openfga/go-sdk/client\"\n    \"github.com/openfga/go-sdk/credentials\"\n    \"os\"\n)\n\nfunc main() {\n    fgaClient, err := NewSdkClient(\u0026ClientConfiguration{\n        ApiUrl:               os.Getenv(\"FGA_API_URL\"), // required, e.g. https://api.fga.example\n        StoreId:              os.Getenv(\"FGA_STORE_ID\"), // not needed when calling `CreateStore` or `ListStores`\n        AuthorizationModelId: os.Getenv(\"FGA_MODEL_ID\"), // optional, recommended to be set for production\n        Credentials: \u0026credentials.Credentials{\n            Method: credentials.CredentialsMethodClientCredentials,\n            Config: \u0026credentials.Config{\n                ClientCredentialsClientId:       os.Getenv(\"FGA_CLIENT_ID\"),\n                ClientCredentialsClientSecret:   os.Getenv(\"FGA_CLIENT_SECRET\"),\n                ClientCredentialsApiAudience:    os.Getenv(\"FGA_API_AUDIENCE\"),\n                ClientCredentialsApiTokenIssuer: os.Getenv(\"FGA_API_TOKEN_ISSUER\"),\n            },\n        },\n    })\n\n    if err != nil {\n        // .. Handle error\n    }\n}\n```\n\n#### OAuth2 Client Credentials\n\n```golang\nimport (\n    openfga \"github.com/openfga/go-sdk\"\n    . \"github.com/openfga/go-sdk/client\"\n    \"github.com/openfga/go-sdk/credentials\"\n    \"os\"\n)\n\nfunc main() {\n    fgaClient, err := NewSdkClient(\u0026ClientConfiguration{\n        ApiUrl:               os.Getenv(\"FGA_API_URL\"), // required, e.g. https://api.fga.example\n        StoreId:              os.Getenv(\"FGA_STORE_ID\"), // not needed when calling `CreateStore` or `ListStores`\n        AuthorizationModelId: os.Getenv(\"FGA_MODEL_ID\"), // optional, recommended to be set for production\n        Credentials: \u0026credentials.Credentials{\n            Method: credentials.CredentialsMethodClientCredentials,\n            Config: \u0026credentials.Config{\n                ClientCredentialsClientId:       os.Getenv(\"FGA_CLIENT_ID\"),\n                ClientCredentialsClientSecret:   os.Getenv(\"FGA_CLIENT_SECRET\"),\n                ClientCredentialsScopes:         os.Getenv(\"FGA_API_SCOPES\"), // optional space separated scopes\n                ClientCredentialsApiTokenIssuer: os.Getenv(\"FGA_API_TOKEN_ISSUER\"),\n            },\n        },\n    })\n\n    if err != nil {\n        // .. Handle error\n    }\n}\n```\n\n### Custom Headers\n\n#### Default Headers\nYou can set default headers that will be sent with every request during client initialization:\n\n```golang\nfgaClient, err := client.NewSdkClient(\u0026client.ClientConfiguration{\n    ApiUrl:               os.Getenv(\"FGA_API_URL\"),\n    StoreId:              os.Getenv(\"FGA_STORE_ID\"),\n    AuthorizationModelId: os.Getenv(\"FGA_MODEL_ID\"),\n    DefaultHeaders: map[string]string{\n        \"X-Custom-Header\": \"default-value\",\n        \"X-Request-Source\": \"my-app\",\n    },\n})\n```\n\n#### Per-Request Headers\n\nYou can also send custom headers on a per-request basis by using the `Options` parameter. Custom headers will override any default headers set in the client configuration.\n\n```golang\n// Add custom headers to a specific request\ncheckResponse, err := fgaClient.Check(context.Background()).\n    Body(client.ClientCheckRequest{\n        User:     \"user:anne\",\n        Relation: \"viewer\",\n        Object:   \"document:roadmap\",\n    }).\n    Options(client.ClientCheckOptions{\n        RequestOptions: client.RequestOptions{\n            Headers: map[string]string{\n                \"X-Request-ID\": \"123e4567-e89b-12d3-a456-426614174000\",\n                \"X-Custom-Header\": \"custom-value\", // these override any default headers set\n            },\n        },\n    }).\n    Execute()\n```\n\n\n### Get your Store ID\n\nYou need your store id to call the OpenFGA API (unless it is to call the [CreateStore](#create-store) or [ListStores](#list-stores) methods).\n\nIf 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.\n\n### Calling the API\n\n#### Stores\n\n##### List Stores\n\nGet a paginated list of stores.\n\n[API Documentation](https://openfga.dev/api/service#/Stores/ListStores)\n\n```golang\noptions := ClientListStoresOptions{\n  PageSize:          openfga.PtrInt32(10),\n  ContinuationToken: openfga.PtrString(\"...\"),\n  Name:              openfga.PtrString(\"FGA Demo Store\"), // Optional: filter stores by name\n}\nstores, err := fgaClient.ListStores(context.Background()).Options(options).Execute()\n\n// stores = [{ \"id\": \"01FQH7V8BEG3GPQW93KTRFR8JB\", \"name\": \"FGA Demo Store\", \"created_at\": \"2022-01-01T00:00:00.000Z\", \"updated_at\": \"2022-01-01T00:00:00.000Z\" }]\n```\n\n##### Create Store\n\nCreate and initialize a store.\n\n[API Documentation](https://openfga.dev/api/service#/Stores/CreateStore)\n\n```golang\nbody := ClientCreateStoreRequest{Name: \"FGA Demo\"}\nstore, err := fgaClient.CreateStore(context.Background()).Body(body).Execute()\nif err != nil {\n    // handle error\n}\n\n// store.Id = \"01FQH7V8BEG3GPQW93KTRFR8JB\"\n\n// store store.Id in database\n// update the storeId of the current instance\nfgaClient.SetStoreId(store.Id)\n// continue calling the API normally, scoped to this store\n```\n\n##### Get Store\n\nGet information about the current store.\n\n[API Documentation](https://openfga.dev/api/service#/Stores/GetStore)\n\n```golang\noptions := ClientGetStoreOptions{\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\nstore,  err := fgaClient.GetStore(context.Background()).Options(options)Execute()\nif err != nil {\n    // handle error\n}\n\n// store = { \"id\": \"01FQH7V8BEG3GPQW93KTRFR8JB\", \"name\": \"FGA Demo Store\", \"created_at\": \"2022-01-01T00:00:00.000Z\", \"updated_at\": \"2022-01-01T00:00:00.000Z\" }\n```\n\n##### Delete Store\n\nDelete a store.\n\n[API Documentation](https://openfga.dev/api/service#/Stores/DeleteStore)\n\n```golang\noptions := ClientDeleteStoreOptions{\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\n_,  err := fgaClient.DeleteStore(context.Background()).Options(options).Execute()\nif err != nil {\n    // handle error\n}\n```\n#### Authorization Models\n\n##### Read Authorization Models\n\nRead all authorization models in the store.\n\n[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModels)\n\n```golang\noptions := ClientReadAuthorizationModelsOptions{\n    PageSize: openfga.PtrInt32(10),\n    ContinuationToken: openfga.PtrString(\"...\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"),\n}\ndata, err := fgaClient.ReadAuthorizationModels(context.Background()).Options(options).Execute()\n\n// data.AuthorizationModels = [\n// { Id: \"01GXSA8YR785C4FYS3C0RTG7B1\", SchemaVersion: \"1.1\", TypeDefinitions: [...] },\n// { Id: \"01GXSBM5PVYHCJNRNKXMB4QZTW\", SchemaVersion: \"1.1\", TypeDefinitions: [...] }];\n```\n\n##### Write Authorization Model\n\nCreate a new authorization model.\n\n[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/WriteAuthorizationModel)\n\n\u003e Note: To learn how to build your authorization model, check the Docs at https://openfga.dev/docs.\n\n\u003e Learn more about [the OpenFGA configuration language](https://openfga.dev/docs/configuration-language).\n\n\u003e You can use the [OpenFGA Syntax Transformer](https://github.com/openfga/syntax-transformer) to convert between the friendly DSL and the JSON authorization model.\n\n###### Instantiating the model inline\n\nYou can instantiate the model inline by constructing a WriteAuthorizationModelRequest with [TypeDefinition](model_type_definition.go) entries:\n\n```golang\nbody := ClientWriteAuthorizationModelRequest{\n  SchemaVersion: \"1.1\",\n  TypeDefinitions: []openfga.TypeDefinition{\n    {Type: \"user\", Relations: \u0026map[string]openfga.Userset{}},\n    {\n      Type: \"document\",\n      Relations: \u0026map[string]openfga.Userset{\n        \"writer\": {\n          This: \u0026map[string]interface{}{},\n        },\n        \"viewer\": {Union: \u0026openfga.Usersets{\n          Child: \u0026[]openfga.Userset{\n            {This: \u0026map[string]interface{}{}},\n            {ComputedUserset: \u0026openfga.ObjectRelation{\n              Object:   openfga.PtrString(\"\"),\n              Relation: openfga.PtrString(\"writer\"),\n            }},\n          },\n        }},\n      },\n      Metadata: \u0026openfga.Metadata{\n        Relations: \u0026map[string]openfga.RelationMetadata{\n          \"writer\": {\n            DirectlyRelatedUserTypes: \u0026[]openfga.RelationReference{\n              {Type: \"user\"},\n            },\n          },\n          \"viewer\": {\n            DirectlyRelatedUserTypes: \u0026[]openfga.RelationReference{\n              {Type: \"user\"},\n            },\n          },\n        },\n      },\n    }},\n}\noptions := ClientWriteAuthorizationModelOptions{\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\ndata, err := fgaClient.WriteAuthorizationModel(context.Background()).Options(options).Body(body).Execute()\n\nfmt.Printf(\"%s\", data.AuthorizationModelId) // 01GXSA8YR785C4FYS3C0RTG7B1\n```\n\n###### Instantiating the model from a JSON file\n\nYou can instantiate the model by loading it from a JSON file:\n\n```golang\njsonContent, _ := os.ReadFile(\"model.json\")\nvar body openfga.WriteAuthorizationModelRequest\njson.Unmarshal(jsonContent, \u0026body)\n\noptions := ClientWriteAuthorizationModelOptions{\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\n\ndata, err := fgaClient.WriteAuthorizationModel(context.Background()).Options(options).Body(body).Execute()\n\nfmt.Printf(\"%s\", data.AuthorizationModelId) // 01GXSA8YR785C4FYS3C0RTG7B1\n```\n\n###### Instantiating the model from a DSL file\n\nYou can also load the model from an `.fga` file. To achieve that, you need to use the [github.com/openfga/language/pkg/go/transformer](https://github.com/openfga/language/tree/main/pkg/go) module:\n\n```golang\nimport (\n    \"github.com/openfga/language/pkg/go/transformer\"\n)\n```\n\n```golang\ndslContent, _ := os.ReadFile(\"model.fga\")\njsonModel, _ := transformer.TransformDSLToJSON(string(dslContent))\nvar body openfga.WriteAuthorizationModelRequest\njson.Unmarshal([]byte(jsonModel), \u0026body)\n\noptions := ClientWriteAuthorizationModelOptions{\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\n\ndata, err := fgaClient.WriteAuthorizationModel(context.Background()).Options(options).Body(body).Execute()\n\nfmt.Printf(\"%s\", data.AuthorizationModelId) // 01GXSA8YR785C4FYS3C0RTG7B1\n\n```\n\n##### Read a Single Authorization Model\n\nRead a particular authorization model.\n\n[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModel)\n\n```golang\noptions := ClientReadAuthorizationModelOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(modelId),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\ndata, err := fgaClient.ReadAuthorizationModel(context.Background()).Options(options).Execute()\n\n// data = {\"authorization_model\":{\"id\":\"01GXSA8YR785C4FYS3C0RTG7B1\",\"schema_version\":\"1.1\",\"type_definitions\":[{\"type\":\"document\",\"relations\":{\"writer\":{\"this\":{}},\"viewer\":{ ... }}},{\"type\":\"user\"}]}} // JSON\n\nfmt.Printf(\"%s\", data.AuthorizationModel.Id) // 01GXSA8YR785C4FYS3C0RTG7B1\n```\n\n##### Read the Latest Authorization Model\n\nReads the latest authorization model (note: this ignores the model id in configuration).\n\n[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModel)\n\n```golang\noptions := ClientReadLatestAuthorizationModelOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(modelId),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\ndata, err := fgaClient.ReadLatestAuthorizationModel(context.Background()).Options(options)Execute()\n\n// data.AuthorizationModel.Id = \"01GXSA8YR785C4FYS3C0RTG7B1\"\n// data.AuthorizationModel.SchemaVersion = \"1.1\"\n// data.AuthorizationModel.TypeDefinitions = [{ \"type\": \"document\", \"relations\": { ... } }, { \"type\": \"user\", \"relations\": { ... }}]\n\nfmt.Printf(\"%s\", (*data.AuthorizationModel).GetId()) // 01GXSA8YR785C4FYS3C0RTG7B1\n```\n\n#### Relationship Tuples\n\n##### Read Relationship Tuple Changes (Watch)\n\nReads the list of historical relationship tuple writes and deletes.\n\n[API Documentation](https://openfga.dev/api/service#/Relationship%20Tuples/ReadChanges)\n\n```golang\nbody := ClientReadChangesRequest{\n    Type: \"document\",\n    StartTime: openfga.PtrString(\"2022-01-01T00:00:00Z\"),\n}\noptions := ClientReadChangesOptions{\n    PageSize: openfga.PtrInt32(10),\n    ContinuationToken: openfga.PtrString(\"eyJwayI6IkxBVEVTVF9OU0NPTkZJR19hdXRoMHN0b3JlIiwic2siOiIxem1qbXF3MWZLZExTcUoyN01MdTdqTjh0cWgifQ==\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\ndata, err := fgaClient.ReadChanges(context.Background()).Body(body).Options(options).Execute()\n\n// data.ContinuationToken = ...\n// data.Changes = [\n//   { TupleKey: { User, Relation, Object }, Operation: TupleOperation.WRITE, Timestamp: ... },\n//   { TupleKey: { User, Relation, Object }, Operation: TupleOperation.DELETE, Timestamp: ... }\n// ]\n```\n\n##### Read Relationship Tuples\n\nReads the relationship tuples stored in the database. It does not evaluate nor exclude invalid tuples according to the authorization model.\n\n[API Documentation](https://openfga.dev/api/service#/Relationship%20Tuples/Read)\n\n```golang\n// Find if a relationship tuple stating that a certain user is a viewer of a certain document\nbody := ClientReadRequest{\n    User:     openfga.PtrString(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"),\n    Relation: openfga.PtrString(\"viewer\"),\n    Object:   openfga.PtrString(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"),\n}\n\n// Find all relationship tuples where a certain user has a relationship as any relation to a certain document\nbody := ClientReadRequest{\n    User:     openfga.PtrString(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"),\n    Object:   openfga.PtrString(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"),\n}\n\n// Find all relationship tuples where a certain user is a viewer of any document\nbody := ClientReadRequest{\n    User:     openfga.PtrString(\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"),\n    Relation: openfga.PtrString(\"viewer\"),\n    Object:   openfga.PtrString(\"document:\"),\n}\n\n// Find all relationship tuples where any user has a relationship as any relation with a particular document\nbody := ClientReadRequest{\n    Object:   openfga.PtrString(\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"),\n}\n\n// Read all stored relationship tuples\nbody := ClientReadRequest{}\n\noptions := ClientReadOptions{\n    PageSize: openfga.PtrInt32(10),\n    ContinuationToken: openfga.PtrString(\"eyJwayI6IkxBVEVTVF9OU0NPTkZJR19hdXRoMHN0b3JlIiwic2siOiIxem1qbXF3MWZLZExTcUoyN01MdTdqTjh0cWgifQ==\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\ndata, err := fgaClient.Read(context.Background()).Body(requestBody).Options(options).Execute()\n\n// In all the above situations, the response will be of the form:\n// data = { Tuples: [{ Key: { User, Relation, Object }, Timestamp }, ...]}\n```\n\n##### Write (Create and Delete) Relationship Tuples\n\nCreate and/or delete relationship tuples to update the system state.\n\n[API Documentation](https://openfga.dev/api/service#/Relationship%20Tuples/Write)\n\n###### Transaction mode (default)\n\nBy 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.\n\n```golang\nbody := ClientWriteRequest{\n    Writes: \u0026[]ClientTupleKey{ {\n        User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation: \"viewer\",\n        Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    }, {\n        User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation: \"viewer\",\n        Object:   \"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\",\n    } },\n    Deletes: \u0026[]ClientTupleKeyWithoutCondition{ {\n        User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation: \"writer\",\n        Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    } }\n}\n\noptions := ClientWriteOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\ndata, err := fgaClient.Write(context.Background()).Body(body).Options(options).Execute()\n```\n\nConvenience `WriteTuples` and `DeleteTuples` methods are also available.\n\n###### Non-transaction mode\n\nThe SDK will split the writes into separate chunks and send them in separate requests. Each chunk is a transaction. By default, each chunk is set to 1, but you may override that.\n\n```golang\nbody := ClientWriteRequest{\n    Writes: \u0026[]ClientTupleKey{ {\n        User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation: \"viewer\",\n        Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    }, {\n        User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation: \"viewer\",\n        Object:   \"document:0192ab2d-d36e-7cb3-a4a8-5d1d67a300c5\",\n    } },\n\t  Deletes: \u0026[]ClientTupleKeyWithoutCondition{ {\n      User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n      Relation: \"writer\",\n      Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    } }\n}\n\noptions := ClientWriteOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n    Transaction: \u0026TransactionOptions{\n        Disable: true,\n        MaxParallelRequests: 5, // Maximum number of requests to issue in parallel\n        MaxPerChunk: 1, // Maximum number of requests to be sent in a transaction in a particular chunk\n    },\n}\ndata, err := fgaClient.Write(context.Background()).Body(body).Options(options).Execute()\n\n// data.Writes = [{\n//   TupleKey: { User, Relation, Object },\n//   Status: \"CLIENT_WRITE_STATUS_SUCCESS\n//   HttpResponse: ... // http response\"\n// }, {\n//   TupleKey: { User, Relation, Object },\n//   Status: \"CLIENT_WRITE_STATUS_FAILURE\n//   HttpResponse: ... // http response\"\n//   Error: ...\n// }]\n// data.Deletes = [{\n//   TupleKey: { User, Relation, Object },\n//   Status: \"CLIENT_WRITE_STATUS_SUCCESS\n//   HttpResponse: ... // http response\"\n// }]\n```\n\n#### Conflict Options for Write Operations\n\nThe SDK supports conflict options for write operations, allowing you to control how the API handles duplicate writes and missing deletes.\n\n\u003e Note: This requires OpenFGA [v1.10.0](https://github.com/openfga/openfga/releases/tag/v1.10.0) or later.\n\n```go\noptions := ClientWriteOptions{\n    Conflict: ClientWriteConflictOptions{\n        // Control what happens when writing a tuple that already exists\n        OnDuplicateWrites: CLIENT_WRITE_REQUEST_ON_DUPLICATE_WRITES_IGNORE, // or CLIENT_WRITE_REQUEST_ON_DUPLICATE_WRITES_ERROR (the current default behavior)\n\n        // Control what happens when deleting a tuple that doesn't exist\n        OnMissingDeletes: CLIENT_WRITE_REQUEST_ON_MISSING_DELETES_IGNORE, // or CLIENT_WRITE_REQUEST_ON_MISSING_DELETES_ERROR (the current default behavior)\n    },\n}\n\nbody := ClientWriteRequest{\n    Writes: []ClientTupleKey{ {\n        User:     \"user:anne\",\n        Relation: \"writer\",\n        Object:   \"document:2021-budget\",\n    } },\n    Deletes: []ClientTupleKeyWithoutCondition{ {\n        User:     \"user:bob\",\n        Relation: \"reader\",\n        Object:   \"document:2021-budget\",\n    } },\n}\n\ndata, err := fgaClient.Write(context.Background()).\n    Body(body).\n    Options(options).\n    Execute()\n```\n\n#### Relationship Queries\n\n##### Check\n\nCheck if a user has a particular relation with an object.\n\n[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/Check)\n\n\u003e Provide a tuple and ask the OpenFGA API to check for a relationship\n\n```golang\nbody := ClientCheckRequest{\n    User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n    Relation: \"viewer\",\n    Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    ContextualTuples: \u0026[]ClientTupleKey{ {\n        User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation: \"editor\",\n        Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    } },\n}\n\noptions := ClientCheckOptions{\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\ndata, err := fgaClient.Check(context.Background()).Body(body).Options(options).Execute()\n\n// data = {\"allowed\":true,\"resolution\":\"\"} // in JSON\n\nfmt.Printf(\"%t\", data.GetAllowed()) // True\n\n```\n\n##### Batch Check\n\nSimilar 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.\n\n[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/BatchCheck)\n\n\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.\n\nIf you are using an OpenFGA version less than 1.8.0, you can use the `ClientBatchCheck` function, \nwhich calls `check` in parallel. It will return `allowed: false` if it encounters an error, and will return the error in the body.\nIf 429s or 5xxs are encountered, the underlying check will retry up to 3 times before giving up.\n\n```golang\noptions := BatchCheckOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n    MaxParallelRequests: openfga.PtrInt32(5), // Max number of requests to issue in parallel, defaults to 10\n}\n\nbody := ClientBatchCheckRequest{\n\tChecks: []ClientBatchCheckItem{ {\n\t\tCorrelationId: \"f278708f-298c-4f43-a893-11a02bbf251c\",\n        User:          \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation:      \"viewer\",\n        Object:        \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n        ContextualTuples: \u0026[]ClientTupleKey{ {\n            User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n            Relation: \"editor\",\n            Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n        } },\n    }, {\n        CorrelationId: \"9f7563d6-2573-4292-9ba2-62d59b97c4d\",\n        User:          \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation:      \"admin\",\n        Object:        \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n        ContextualTuples: \u0026[]ClientTupleKey{ {\n            User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n            Relation: \"editor\",\n            Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n        } },\n    }, {\n        CorrelationId: \"dbb8311c-d991-488d-82e6-76b0d6a3d7a2\",\n        User:          \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation:      \"creator\",\n        Object:        \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    }, {\n        CorrelationId: \"9b17215d-89e0-47b4-aaf4-6476dc49649a\",\n        User:          \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation:      \"deleter\",\n        Object:        \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    } }\n}\n\ndata, err := fgaClient.BatchCheck(context.Background()).Body(body).Options(options).Execute()\n\n/*\n// Results are a map keyed by correlationId\n// Example:\ndata.GetResult() = {\n  \"f278708f-298c-4f43-a893-11a02bbf251c\": {\n     Allowed: false,\n     Error: \u003cFgaError ...\u003e\n  },\n  \"9f7563d6-2573-4292-9ba2-62d59b97c4d\": {\n     Allowed: false,\n     Error: \u003cFgaError ...\u003e\n  },\n  \"dbb8311c-d991-488d-82e6-76b0d6a3d7a2\": {\n     Allowed: false,\n     Error: \u003cFgaError ...\u003e\n  },\n  \"9b17215d-89e0-47b4-aaf4-6476dc49649a\": {\n     Allowed: false,\n     Error: \u003cFgaError ...\u003e\n  }\n}\n*/\n```\n\n##### Expand\n\nExpands the relationships in userset tree format.\n\n[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/Expand)\n\n```golang\noptions := ClientExpandOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\nbody := ClientExpandRequest{\n    Relation: \"viewer\",\n    Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n}\ndata, err := fgaClient.Expand(context.Background()).Body(body).Options(options).Execute()\n\n// data.Tree.Root = {\"name\":\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a#viewer\",\"leaf\":{\"users\":{\"users\":[\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\"user:f52a4f7a-054d-47ff-bb6e-3ac81269988f\"]}}}\n```\n\nYou can also expand with contextual tuples:\n\n```golang\noptions := ClientExpandOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"),\n}\nbody := ClientExpandRequest{\n    Relation: \"viewer\",\n    Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    ContextualTuples: []ClientContextualTupleKey{ {\n        User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation: \"editor\",\n        Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    } },\n}\ndata, err := fgaClient.Expand(context.Background()).Body(body).Options(options).Execute()\n\n// data.Tree.Root = {\"name\":\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a#viewer\",\"leaf\":{\"users\":{\"users\":[\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\"user:f52a4f7a-054d-47ff-bb6e-3ac81269988f\"]}}}\n```\n\n#### List Objects\n\nList the objects of a particular type a user has access to.\n\n[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/ListObjects)\n\n```golang\noptions := ClientListObjectsOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\nbody := ClientListObjectsRequest{\n    User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n    Relation: \"can_read\",\n    Type:     \"document\",\n    ContextualTuples: \u0026[]ClientTupleKey{ {\n        User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation: \"editor\",\n        Object:   \"folder:product\",\n    }, {\n        User:     \"folder:product\",\n        Relation: \"parent\",\n        Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    } },\n}\ndata, err := fgaClient.ListObjects(context.Background()).\n  Body(requestBody).\n  Options(options).\n  Execute()\n\n// data.Objects = [\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"]\n```\n\n##### Streamed List Objects\n\nList objects of a particular type that the user has access to, using the streaming API.\n\nThe Streamed ListObjects API is very similar to the ListObjects API, with two key differences:\n1. **Streaming Results**: Instead of collecting all objects before returning a response, it streams them to the client as they are collected.\n2. **No Pagination Limit**: Returns all results without the 1000-object limit of the standard ListObjects API.\n\nThis is particularly useful when querying **computed relations** that may return large result sets.\n\n[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/StreamedListObjects)\n\n```golang\noptions := ClientStreamedListObjectsOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n}\n\nbody := ClientStreamedListObjectsRequest{\n    User:     \"user:anne\",\n    Relation: \"can_read\",\n    Type:     \"document\",\n}\n\nresponse, err := fgaClient.StreamedListObjects(context.Background()).Body(body).Options(options).Execute()\nif err != nil {\n    // .. Handle error\n}\ndefer response.Close()\n\n// Consume objects from the stream\nvar objects []string\nfor obj := range response.Objects {\n    objects = append(objects, obj.Object)\n}\n\n// Check for any errors during streaming\nif err := \u003c-response.Errors; err != nil {\n    // .. Handle streaming error\n}\n\n// objects = [\"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\"]\n```\n\n#### List Relations\n\nList the relations a user has on an object.\n\n```golang\noptions := ClientListRelationsOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n    // Max number of requests to issue in parallel, defaults to 10\n    MaxParallelRequests: openfga.PtrInt32(5),\n}\nbody := ClientListRelationsRequest{\n    User:      \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n    Object:    \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    Relations: []string{\"can_view\", \"can_edit\", \"can_delete\", \"can_rename\"},\n    ContextualTuples: \u0026[]ClientTupleKey{ {\n        User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation: \"editor\",\n        Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    } },\n}\ndata, err := fgaClient.ListRelations(context.Background()).\n  Body(requestBody).\n  Options(options).\n  Execute()\n\n// data.Relations = [\"can_view\", \"can_edit\"]\n```\n\n##### List Users\n\nList the users who have a certain relation to a particular type.\n\n[API Documentation](https://openfga.dev/api/service#/Relationship%20Queries/ListUsers)\n\n```golang\noptions := ClientListRelationsOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n    // Max number of requests to issue in parallel, defaults to 10\n    MaxParallelRequests: openfga.PtrInt32(5),\n}\n\n// Only a single filter is allowed by the API for the time being\nuserFilters := []openfga.UserTypeFilter{{ Type: \"user\" }}\n// user filters can also be of the form\n// userFilters := []openfga.UserTypeFilter{{ Type: \"team\", Relation: openfga.PtrString(\"member\") }}\n\nrequestBody := ClientListUsersRequest{\n    Object: openfga.FgaObject{\n        Type: \"document\",\n        Id:   \"roadmap\",\n    },\n    Relation: \"can_read\",\n    UserFilters: userFilters,\n    ContextualTuples: []ClientContextualTupleKey{{\n        User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation: \"editor\",\n        Object:   \"folder:product\",\n    }, {\n        User:     \"folder:product\",\n        Relation: \"parent\",\n        Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n    }},\n    Context: \u0026map[string]interface{}{\"ViewCount\": 100},\n}\ndata, err := fgaClient.ListRelations(context.Background()).\n  Body(requestBody).\n  Options(options).\n  Execute()\n\n// response.users = [{object: {type: \"user\", id: \"81684243-9356-4421-8fbf-a4f8d36aa31b\"}}, {userset: { type: \"user\" }}, ...]\n```\n\n### Assertions\n\n#### Read Assertions\n\nRead assertions for a particular authorization model.\n\n[API Documentation](https://openfga.dev/api/service#/Assertions/Read%20Assertions)\n\n```golang\noptions := ClientReadAssertionsOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId: openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\ndata, err := fgaClient.ReadAssertions(context.Background()).\n  Options(options).\n  Execute()\n```\n\n#### Write Assertions\n\nUpdate the assertions for a particular authorization model.\n\n[API Documentation](https://openfga.dev/api/service#/Assertions/Write%20Assertions)\n\n```golang\noptions := ClientWriteAssertionsOptions{\n    // You can rely on the model id set in the configuration or override it for this specific request\n    AuthorizationModelId: openfga.PtrString(\"01GAHCE4YVKPQEKZQHT2R89MQV\"),\n    // You can rely on the store id set in the configuration or override it for this specific request\n    StoreId:openfga.PtrString(\"01FQH7V8BEG3GPQW93KTRFR8JB\"), \n}\nrequestBody := ClientWriteAssertionsRequest{\n    ClientAssertion{\n        User:        \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n        Relation:    \"can_view\",\n        Object:      \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n        Expectation: true,\n        Context: \u0026map[string]interface{}{\n            \"context\": \"value\",\n        },\n        ContextualTuples: []ClientContextualTupleKey{\n            {\n                User:     \"user:81684243-9356-4421-8fbf-a4f8d36aa31b\",\n                Relation: \"can_view\",\n                Object:   \"document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a\",\n            },\n        },\n    },\n}\ndata, err := fgaClient.WriteAssertions(context.Background()).\n  Body(requestBody).\n  Options(options).\n  Execute()\n```\n\n### Calling Other Endpoints\n\nIn certain cases you may want to call other APIs not yet wrapped by the SDK. You can do so by using the `APIExecutor` available from the `fgaClient`.\nThe `APIExecutor` allows you to make raw HTTP calls to any OpenFGA endpoint by specifying the operation name, HTTP method, path, parameters, body, and headers, while still honoring the client configuration (authentication, telemetry, retries, and error handling).\n\nThis is useful when:\n\n- you want to call a new endpoint that is not yet supported by the SDK\n- you are using an earlier version of the SDK that doesn't yet support a particular endpoint\n- you have a custom endpoint deployed that extends the OpenFGA API\n\nIn all cases, you initialize the SDK the same way as usual, and then get the `APIExecutor` from the `fgaClient` instance.\n\n```go\n// Initialize the client, same as above\nfgaClient, err := NewSdkClient(\u0026ClientConfiguration{...})\n\n// Get the generic API executor\nexecutor := fgaClient.GetAPIExecutor()\n\n// Custom new endpoint that doesn't exist in the SDK yet\nrequestBody := map[string]interface{}{\n    \"user\":     \"user:bob\",\n    \"action\":   \"custom_action\",\n    \"resource\": \"resource:123\",\n}\n\n// Build the request\nrequest := openfga.NewAPIExecutorRequestBuilder(\"CustomEndpoint\", http.MethodPost, \"/stores/{store_id}/custom-endpoint\").\n    WithPathParameter(\"store_id\", storeID).\n    WithQueryParameter(\"page_size\", \"20\").\n    WithQueryParameter(\"continuation_token\", \"eyJwayI6...\").\n    WithBody(requestBody).\n    WithHeader(\"X-Experimental-Feature\", \"enabled\").\n    Build()\n```\n\n#### Example: Calling a new \"Custom Endpoint\" endpoint and handling raw response\n\n```go\n// Get raw response without automatic decoding\nrawResponse, err := executor.Execute(ctx, request)\n\nif err != nil {\n    log.Fatalf(\"Custom endpoint failed: %v\", err)\n}\n\n// Manually decode the response\nvar result map[string]interface{}\nif err := json.Unmarshal(rawResponse.Body, \u0026result); err != nil {\n    log.Fatalf(\"Failed to decode: %v\", err)\n}\n\nfmt.Printf(\"Response: %+v\\n\", result)\n\n// You can access fields like headers, status code, etc. from rawResponse:\nfmt.Printf(\"Status Code: %d\\n\", rawResponse.StatusCode)\nfmt.Printf(\"Headers: %+v\\n\", rawResponse.Headers)\n```\n\n#### Example: Calling a new \"Custom Endpoint\" endpoint and decoding response into a struct\n\n```go\n// Define a struct to hold the response\ntype CustomEndpointResponse struct {\n    Allowed bool   `json:\"allowed\"`\n    Reason  string `json:\"reason\"`\n}\nvar customEndpointResponse CustomEndpointResponse\n\n// Get raw response decoded into CustomEndpointResponse struct\nrawResponse, err := executor.ExecuteWithDecode(ctx, request, \u0026customEndpointResponse) // Pass pointer to struct for decoding\n\nif err != nil {\n    log.Fatalf(\"Custom endpoint failed: %v\", err)\n}\n\nfmt.Printf(\"Response: %+v\\n\", customEndpointResponse)\n\n// You can access fields like headers, status code, etc. from rawResponse:\nfmt.Printf(\"Status Code: %d\\n\", rawResponse.StatusCode)\nfmt.Printf(\"Headers: %+v\\n\", rawResponse.Headers)\n```\n\n### Retries\n\nIf a network request fails with a 429 or 5xx error from the server, the SDK will automatically retry the request up to 3 times with a minimum wait time of 100 milliseconds between each attempt.\n\nTo customize this behavior, create an `openfga.RetryParams` struct and assign values to the `MaxRetry` and `MinWaitInMs` fields. `MaxRetry` determines the maximum number of retries (up to 15), while `MinWaitInMs` sets the minimum wait time between retries in milliseconds.\n\nApply your custom retry values by passing this struct to the `ClientConfiguration` struct's `RetryParams` parameter.\n\n```golang\nimport (\n\t\"os\"\n\n\topenfga \"github.com/openfga/go-sdk\"\n\t. \"github.com/openfga/go-sdk/client\"\n)\n\nfunc main() {\n\tfgaClient, err := NewSdkClient(\u0026ClientConfiguration{\n\t\tApiUrl:               os.Getenv(\"FGA_API_URL\"),                // required, e.g. https://api.fga.example\n\t\tStoreId:              os.Getenv(\"FGA_STORE_ID\"),               // not needed when calling `CreateStore` or `ListStores`\n\t\tAuthorizationModelId: os.Getenv(\"FGA_MODEL_ID\"), // optional, recommended to be set for production\n\t\tRetryParams: \u0026openfga.RetryParams{\n\t\t\tMaxRetry:    3,   // retry up to 3 times on API requests\n\t\t\tMinWaitInMs: 250, // wait a minimum of 250 milliseconds between requests\n\t\t},\n\t})\n\n\tif err != nil {\n\t\t// .. Handle error\n\t}\n}\n```\n\n\n### API Endpoints\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*OpenFgaApi* | [**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\n*OpenFgaApi* | [**Check**](docs/OpenFgaApi.md#check) | **Post** /stores/{store_id}/check | Check whether a user is authorized to access an object\n*OpenFgaApi* | [**CreateStore**](docs/OpenFgaApi.md#createstore) | **Post** /stores | Create a store\n*OpenFgaApi* | [**DeleteStore**](docs/OpenFgaApi.md#deletestore) | **Delete** /stores/{store_id} | Delete a store\n*OpenFgaApi* | [**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\n*OpenFgaApi* | [**GetStore**](docs/OpenFgaApi.md#getstore) | **Get** /stores/{store_id} | Get a store\n*OpenFgaApi* | [**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\n*OpenFgaApi* | [**ListStores**](docs/OpenFgaApi.md#liststores) | **Get** /stores | List all stores\n*OpenFgaApi* | [**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.\n*OpenFgaApi* | [**Read**](docs/OpenFgaApi.md#read) | **Post** /stores/{store_id}/read | Get tuples from the store that matches a query, without following userset rewrite rules\n*OpenFgaApi* | [**ReadAssertions**](docs/OpenFgaApi.md#readassertions) | **Get** /stores/{store_id}/assertions/{authorization_model_id} | Read assertions for an authorization model ID\n*OpenFgaApi* | [**ReadAuthorizationModel**](docs/OpenFgaApi.md#readauthorizationmodel) | **Get** /stores/{store_id}/authorization-models/{id} | Return a particular version of an authorization model\n*OpenFgaApi* | [**ReadAuthorizationModels**](docs/OpenFgaApi.md#readauthorizationmodels) | **Get** /stores/{store_id}/authorization-models | Return all the authorization models for a particular store\n*OpenFgaApi* | [**ReadChanges**](docs/OpenFgaApi.md#readchanges) | **Get** /stores/{store_id}/changes | Return a list of all the tuple changes\n*OpenFgaApi* | [**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\n*OpenFgaApi* | [**Write**](docs/OpenFgaApi.md#write) | **Post** /stores/{store_id}/write | Add or delete tuples from the store\n*OpenFgaApi* | [**WriteAssertions**](docs/OpenFgaApi.md#writeassertions) | **Put** /stores/{store_id}/assertions/{authorization_model_id} | Upsert assertions for an authorization model ID\n*OpenFgaApi* | [**WriteAuthorizationModel**](docs/OpenFgaApi.md#writeauthorizationmodel) | **Post** /stores/{store_id}/authorization-models | Create a new authorization model\n\n\n### Models\n\n - [AbortedMessageResponse](docs/AbortedMessageResponse.md)\n - [Any](docs/Any.md)\n - [Assertion](docs/Assertion.md)\n - [AssertionTupleKey](docs/AssertionTupleKey.md)\n - [AuthErrorCode](docs/AuthErrorCode.md)\n - [AuthorizationModel](docs/AuthorizationModel.md)\n - [BatchCheckItem](docs/BatchCheckItem.md)\n - [BatchCheckRequest](docs/BatchCheckRequest.md)\n - [BatchCheckResponse](docs/BatchCheckResponse.md)\n - [BatchCheckSingleResult](docs/BatchCheckSingleResult.md)\n - [CheckError](docs/CheckError.md)\n - [CheckRequest](docs/CheckRequest.md)\n - [CheckRequestTupleKey](docs/CheckRequestTupleKey.md)\n - [CheckResponse](docs/CheckResponse.md)\n - [Computed](docs/Computed.md)\n - [Condition](docs/Condition.md)\n - [ConditionMetadata](docs/ConditionMetadata.md)\n - [ConditionParamTypeRef](docs/ConditionParamTypeRef.md)\n - [ConsistencyPreference](docs/ConsistencyPreference.md)\n - [ContextualTupleKeys](docs/ContextualTupleKeys.md)\n - [CreateStoreRequest](docs/CreateStoreRequest.md)\n - [CreateStoreResponse](docs/CreateStoreResponse.md)\n - [Difference](docs/Difference.md)\n - [ErrorCode](docs/ErrorCode.md)\n - [ExpandRequest](docs/ExpandRequest.md)\n - [ExpandRequestTupleKey](docs/ExpandRequestTupleKey.md)\n - [ExpandResponse](docs/ExpandResponse.md)\n - [FgaObject](docs/FgaObject.md)\n - [ForbiddenResponse](docs/ForbiddenResponse.md)\n - [GetStoreResponse](docs/GetStoreResponse.md)\n - [InternalErrorCode](docs/InternalErrorCode.md)\n - [InternalErrorMessageResponse](docs/InternalErrorMessageResponse.md)\n - [Leaf](docs/Leaf.md)\n - [ListObjectsRequest](docs/ListObjectsRequest.md)\n - [ListObjectsResponse](docs/ListObjectsResponse.md)\n - [ListStoresResponse](docs/ListStoresResponse.md)\n - [ListUsersRequest](docs/ListUsersRequest.md)\n - [ListUsersResponse](docs/ListUsersResponse.md)\n - [Metadata](docs/Metadata.md)\n - [Node](docs/Node.md)\n - [Nodes](docs/Nodes.md)\n - [NotFoundErrorCode](docs/NotFoundErrorCode.md)\n - [NullValue](docs/NullValue.md)\n - [ObjectRelation](docs/ObjectRelation.md)\n - [PathUnknownErrorMessageResponse](docs/PathUnknownErrorMessageResponse.md)\n - [ReadAssertionsResponse](docs/ReadAssertionsResponse.md)\n - [ReadAuthorizationModelResponse](docs/ReadAuthorizationModelResponse.md)\n - [ReadAuthorizationModelsResponse](docs/ReadAuthorizationModelsResponse.md)\n - [ReadChangesResponse](docs/ReadChangesResponse.md)\n - [ReadRequest](docs/ReadRequest.md)\n - [ReadRequestTupleKey](docs/ReadRequestTupleKey.md)\n - [ReadResponse](docs/ReadResponse.md)\n - [RelationMetadata](docs/RelationMetadata.md)\n - [RelationReference](docs/RelationReference.md)\n - [RelationshipCondition](docs/RelationshipCondition.md)\n - [SourceInfo](docs/SourceInfo.md)\n - [Status](docs/Status.md)\n - [Store](docs/Store.md)\n - [StreamResultOfStreamedListObjectsResponse](docs/StreamResultOfStreamedListObjectsResponse.md)\n - [StreamedListObjectsResponse](docs/StreamedListObjectsResponse.md)\n - [Tuple](docs/Tuple.md)\n - [TupleChange](docs/TupleChange.md)\n - [TupleKey](docs/TupleKey.md)\n - [TupleKeyWithoutCondition](docs/TupleKeyWithoutCondition.md)\n - [TupleOperation](docs/TupleOperation.md)\n - [TupleToUserset](docs/TupleToUserset.md)\n - [TypeDefinition](docs/TypeDefinition.md)\n - [TypeName](docs/TypeName.md)\n - [TypedWildcard](docs/TypedWildcard.md)\n - [UnauthenticatedResponse](docs/UnauthenticatedResponse.md)\n - [UnprocessableContentErrorCode](docs/UnprocessableContentErrorCode.md)\n - [UnprocessableContentMessageResponse](docs/UnprocessableContentMessageResponse.md)\n - [User](docs/User.md)\n - [UserTypeFilter](docs/UserTypeFilter.md)\n - [Users](docs/Users.md)\n - [Userset](docs/Userset.md)\n - [UsersetTree](docs/UsersetTree.md)\n - [UsersetTreeDifference](docs/UsersetTreeDifference.md)\n - [UsersetTreeTupleToUserset](docs/UsersetTreeTupleToUserset.md)\n - [UsersetUser](docs/UsersetUser.md)\n - [Usersets](docs/Usersets.md)\n - [ValidationErrorMessageResponse](docs/ValidationErrorMessageResponse.md)\n - [WriteAssertionsRequest](docs/WriteAssertionsRequest.md)\n - [WriteAuthorizationModelRequest](docs/WriteAuthorizationModelRequest.md)\n - [WriteAuthorizationModelResponse](docs/WriteAuthorizationModelResponse.md)\n - [WriteRequest](docs/WriteRequest.md)\n - [WriteRequestDeletes](docs/WriteRequestDeletes.md)\n - [WriteRequestWrites](docs/WriteRequestWrites.md)\n\n\n### OpenTelemetry\n\nThis 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/go-sdk/blob/main/docs/OpenTelemetry.md)\n\n## Contributing\n\nSee [CONTRIBUTING](./CONTRIBUTING.md) for details.\n\n## Author\n\n[OpenFGA](https://github.com/openfga)\n\n## License\n\nThis project is licensed under the Apache-2.0 license. See the [LICENSE](https://github.com/openfga/go-sdk/blob/main/LICENSE) file for more info.\n\nThe code in this repo was auto generated by [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) from a template based on the [go template](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/go), licensed under the [Apache License 2.0](https://github.com/OpenAPITools/openapi-generator/blob/master/LICENSE).\n\nThis repo bundles some code from the [golang.org/x/oauth2](https://pkg.go.dev/golang.org/x/oauth2) package. You can find the code [here](./oauth2) and corresponding [BSD-3 License](./oauth2/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfga%2Fgo-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfga%2Fgo-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfga%2Fgo-sdk/lists"}