Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

v0.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Jun 21:41
· 10 commits to main since this release
v0.3.0
be47fd0

0.3.0 (2022-06-07)

Get it from NuGet

Changes

The response will become similar to:

{
    "authorization_models": [
        {
            "id": (string),
            "type_definitions": [...]
        }
    ]
}
  • feat!: drop support for all settings endpoints [BREAKING CHANGE]

  • feat!: Simplify error prefix to Fga [BREAKING CHANGE]

Possible Exceptions:

  • FgaError: All errors thrown by the SDK extend this error

  • FgaApiError: All errors returned by the API extend this error

  • FgaApiValidationError: 400 and 422 Validation Errors returned by the API

  • FgaApiRateLimitExceededError: 429 errors returned by the API

  • FgaApiInternalError: 5xx errors returned by the API

  • FgaApiAuthenticationError: Error during authentication

  • FgaValidationError: Error thrown by the SDK when validating input

  • FgaRequiredParamError: Error thrown by the SDK when a required parameter is not provided

  • FgaInvalidEnvironmentError: Error thrown by the SDK when the provided environment is invalid

  • feat!: drop Params postfix from the name of the request interface [BREAKING CHANGE]

e.g. ReadRequestParams will become ReadRequest

You can call them like so:

var response = await fgaClient.Check(
    new CheckRequest(
        new TupleKey {User = "anne", Relation = "can_view", Object = "transaction:A"},
        new ContextualTupleKeys(new List<TupleKey>( {
            new(user: "anne", relation: "user", _object: "ip-address-range:10.0.0.0/16"),
            new(user: "anne", relation: "user", _object: "timeslot:18_19")
        }
    )
));
  • fix: url encode path parameters (StoreId/AuthorizationModelId)

  • chore(deps): upgrade dependencies

  • chore: internal refactor