Skip to content

Commit af95529

Browse files
committed
chore: sync changes from updated openapi doc
1 parent 0a1dc22 commit af95529

25 files changed

+66
-44
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ const { responses } = await fgaClient.batchCheck([{
463463
user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
464464
relation: "viewer",
465465
object: "document:roadmap",
466-
contextual_tuples: [{
466+
contextualTuples: [{
467467
user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
468468
relation: "writer",
469469
object: "document:roadmap"
@@ -492,7 +492,7 @@ responses = [{
492492
user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
493493
relation: "viewer",
494494
object: "document:roadmap",
495-
contextual_tuples: [{
495+
contextualTuples: [{
496496
user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
497497
relation: "writer",
498498
object: "document:roadmap"
@@ -538,7 +538,7 @@ const response = await fgaClient.listObjects({
538538
user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
539539
relation: "viewer",
540540
type: "document",
541-
contextual_tuples: [{
541+
contextualTuples: [{
542542
user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
543543
relation: "writer",
544544
object: "document:budget"
@@ -564,7 +564,7 @@ const response = await fgaClient.listRelations({
564564
user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
565565
object: "document:roadmap",
566566
relations: ["can_view", "can_edit", "can_delete"],
567-
contextual_tuples: [{
567+
contextualTuples: [{
568568
user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
569569
relation: "writer",
570570
object: "document:roadmap"

api.ts

+14-13
Large diffs are not rendered by default.

apiModel.ts

+26-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* JavaScript and Node.js SDK for OpenFGA
55
*
6-
* API version: 0.1
6+
* API version: 1.x
77
* Website: https://openfga.dev
88
* Documentation: https://openfga.dev/docs
99
* Support: https://openfga.dev/community
@@ -693,7 +693,7 @@ export interface ListUsersRequest {
693693
*/
694694
relation: string;
695695
/**
696-
*
696+
* The type of results returned. Only accepts exactly one value.
697697
* @type {Array<UserTypeFilter>}
698698
* @memberof ListUsersRequest
699699
*/
@@ -1355,7 +1355,7 @@ export enum TypeName {
13551355
}
13561356

13571357
/**
1358-
*
1358+
* Type bound public access. Normally represented using the `<type>:*` syntax `employee:*` represents every object of type `employee`, including those not currently present in the system See https://openfga.dev/docs/concepts#what-is-type-bound-public-access
13591359
* @export
13601360
* @interface TypedWildcard
13611361
*/
@@ -1367,6 +1367,27 @@ export interface TypedWildcard {
13671367
*/
13681368
type: string;
13691369
}
1370+
/**
1371+
*
1372+
* @export
1373+
* @interface UnauthenticatedResponse
1374+
*/
1375+
export interface UnauthenticatedResponse {
1376+
/**
1377+
*
1378+
* @type {ErrorCode}
1379+
* @memberof UnauthenticatedResponse
1380+
*/
1381+
code?: ErrorCode;
1382+
/**
1383+
*
1384+
* @type {string}
1385+
* @memberof UnauthenticatedResponse
1386+
*/
1387+
message?: string;
1388+
}
1389+
1390+
13701391
/**
13711392
*
13721393
* @export
@@ -1400,7 +1421,7 @@ export interface UnprocessableContentMessageResponse {
14001421

14011422

14021423
/**
1403-
*
1424+
* User. Represents any possible value for a user (subject or principal). Can be a: - Specific user object e.g.: \'user:will\', \'folder:marketing\', \'org:contoso\', ...) - Specific userset (e.g. \'group:engineering#member\') - Public-typed wildcard (e.g. \'user:*\') See https://openfga.dev/docs/concepts#what-is-a-user
14041425
* @export
14051426
* @interface User
14061427
*/
@@ -1551,7 +1572,7 @@ export interface UsersetTreeTupleToUserset {
15511572
computed: Array<Computed>;
15521573
}
15531574
/**
1554-
*
1575+
* Userset. A set or group of users, represented in the `<type>:<id>#<relation>` format `group:fga#member` represents all members of group FGA, not to be confused by `group:fga` which represents the group itself as a specific object. See: https://openfga.dev/docs/modeling/building-blocks/usersets#what-is-a-userset
15551576
* @export
15561577
* @interface UsersetUser
15571578
*/

base.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

configuration.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

credentials/credentials.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

credentials/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

credentials/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

errors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* JavaScript and Node.js SDK for OpenFGA
55
*
6-
* API version: 0.1
6+
* API version: 1.x
77
* Website: https://openfga.dev
88
* Documentation: https://openfga.dev/docs
99
* Support: https://openfga.dev/community

tests/client.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

tests/helpers/default-config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

tests/helpers/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

tests/helpers/nocks.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

tests/index.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

tests/validation.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

utils/assert-never.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

utils/chunk-array.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

utils/generate-random-id.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

utils/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

utils/set-header-if-not-set.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

utils/set-not-enumerable-property.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

validation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* JavaScript and Node.js SDK for OpenFGA
33
*
4-
* API version: 0.1
4+
* API version: 1.x
55
* Website: https://openfga.dev
66
* Documentation: https://openfga.dev/docs
77
* Support: https://openfga.dev/community

0 commit comments

Comments
 (0)