v0.3.0
0.3.0 (2022-06-07)
Changes
- feat!: ReadAuthorizationModels now returns an array of Authorization Models instead of IDs [BREAKING CHANGE]
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
- feat: add support for contextual tuples in the Check request
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