Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/cross-spawn-7.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Nov 27, 2024
2 parents 2392e7a + d112317 commit 5fddc17
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To follow this guide, you should be familiar with some <ProductConcept />.

### <ProductName format={ProductNameFormat.ShortForm}/> concepts

- A <ProductConcept section="what-is-a-relation" linkName="Relation" />: is a string defined in the type definition of an authorization model that defines the possibility of a relationship between an object of the same type as the type definition and a user in the system.
- A <ProductConcept section="what-is-a-relation" linkName="Relation" />: Defined in the type definition of an authorization model, a relation is a string that defines the possibility of a relationship between an object of the same type as the type definition and a user in the system.
- A <ProductConcept section="what-is-a-check-request" linkName="Check Request" />: is a call to the <ProductName format={ProductNameFormat.ShortForm}/> check endpoint that returns whether the user has a certain relationship with an object.
- A <ProductConcept section="what-is-a-relationship-tuple" linkName="Relationship Tuple" />: a grouping consisting of a user, a relation and an object stored in <ProductName format={ProductNameFormat.ShortForm}/>
- A <ProductConcept section="what-are-contextual-tuples" linkName="Contextual Tuple" />: a tuple that can be added to a Check request, and only exists within the context of that particular request.
Expand Down
4 changes: 1 addition & 3 deletions src/components/Docs/SnippetViewer/CheckRequestViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ body = ClientCheckRequest(
? `
contextual_tuples=[
${contextualTuples
.map(
(tuple) => `ClientTupleKey(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
)
.map((tuple) => `ClientTuple(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`)
.join(',\n ')}
],`
: ``
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ body = ClientListObjectsRequest(
? `
contextual_tuples=[
${contextualTuples
.map(
(tuple) => `ClientTupleKey(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
)
.map((tuple) => `ClientTuple(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`)
.join(',\n ')}
],`
: ``
Expand Down
4 changes: 1 addition & 3 deletions src/components/Docs/SnippetViewer/ListUsersRequestViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,7 @@ var response = await fgaClient.ListUsers(body, options);
? `
contextual_tuples=[
${contextualTuples
.map(
(tuple) => `ClientTupleKey(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
)
.map((tuple) => `ClientTuple(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`)
.join(',\n ')}
],`
: ``
Expand Down

0 comments on commit 5fddc17

Please sign in to comment.