Skip to content

Commit 6c6b7de

Browse files
committed
Initial source
0 parents  commit 6c6b7de

File tree

92 files changed

+12092
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+12092
-0
lines changed

.fossa.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 3
2+
3+
server: https://app.fossa.com
4+
5+
project:
6+
id: github.com/openfga/js-fetch-sdk
7+
name: github.com/openfga/js-fetch-sdk
8+
link: openfga.dev
9+
url: github.com/openfga/js-fetch-sdk

.github/CODEOWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* @openfga/dx
2+
README.md @openfga/product @openfga/community @openfga/dx
+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: 🐛 Report a bug
2+
description: Have you found a bug or issue? Create a bug report for OpenFGA
3+
labels: [ "bug" ]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
11+
- type: markdown
12+
attributes:
13+
value: |
14+
**Please do not report security vulnerabilities here**. Use https://github.com/openfga/js-fetch-sdk/security/advisories/new or send us an email at [email protected] instead.
15+
16+
- type: checkboxes
17+
id: checklist
18+
attributes:
19+
label: Checklist
20+
options:
21+
- label: I have looked into the [README](https://github.com/openfga/js-fetch-sdk/blob/main/README.md) and have not found a suitable solution or answer.
22+
required: true
23+
- label: I have looked into the [documentation](https://openfga.dev/docs) and have not found a suitable solution or answer.
24+
required: true
25+
- label: I have searched the [issues](https://github.com/openfga/js-fetch-sdk/issues) and have not found a suitable solution or answer.
26+
required: true
27+
- label: I have upgraded to the [latest version](https://github.com/openfga/js-fetch-sdk/releases/latest) of OpenFGA and the issue still persists.
28+
required: true
29+
- label: I have searched the [Slack community](https://openfga.dev/community) and have not found a suitable solution or answer.
30+
required: true
31+
- label: I agree to the terms within the [OpenFGA Code of Conduct](https://github.com/openfga/.github/blob/main/CODE_OF_CONDUCT.md).
32+
required: true
33+
34+
- type: textarea
35+
id: description
36+
attributes:
37+
label: Description
38+
description: Provide a clear and concise description of the issue.
39+
validations:
40+
required: true
41+
42+
- type: textarea
43+
id: expectation
44+
attributes:
45+
label: Expectation
46+
description: Tell us about the behavior you expected to see.
47+
validations:
48+
required: true
49+
50+
- type: textarea
51+
id: reproduction
52+
attributes:
53+
label: Reproduction
54+
description: Detail the steps taken to reproduce this error and, ideally, share a repo of a minimal reproducible example. State whether this issue can be reproduced consistently or if it is intermittent.
55+
placeholder: |
56+
1. Given...
57+
2. When...
58+
3. Then...
59+
validations:
60+
required: true
61+
62+
- type: input
63+
id: environment-sdk-version
64+
attributes:
65+
label: OpenFGA SDK version
66+
description: The version of js-fetch SDK for OpenFGA you're using.
67+
validations:
68+
required: true
69+
70+
- type: input
71+
id: environment-openfga-version
72+
attributes:
73+
label: OpenFGA version
74+
description: The version of OpenFGA you're using.
75+
validations:
76+
required: true
77+
78+
- type: input
79+
id: environment-sdk-config
80+
attributes:
81+
label: SDK Configuration
82+
description: How are you initializing the SDK (DO NOT SHARE ANY SECRETS)
83+
validations:
84+
required: true
85+
86+
- type: textarea
87+
id: logs
88+
attributes:
89+
label: Logs
90+
description: Do you have any logs or traces that could help us debug the problem?
91+
validations:
92+
required: false
93+
94+
- type: textarea
95+
id: references
96+
attributes:
97+
label: References
98+
description: Any references to other issues, PRs, documentation or other links
99+
validations:
100+
required: false
101+

.github/ISSUE_TEMPLATE/config.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 📖 OpenFGA's Documentation
4+
url: https://openfga.dev/docs
5+
about: Check OpenFGA's documentation for an in-depth overview
6+
- name: 👽 Community
7+
url: https://openfga.dev/community
8+
about: Join OpenFGA's community on Slack and GitHub Discussions
9+
- name: 📝 RFCs
10+
url: https://github.com/openfga/rfcs
11+
about: Check existing RFCs to understand where the project is headed
12+
- name: 💬 Discussions
13+
url: https://github.com/orgs/openfga/discussions
14+
about: Start a discussion about your authorization needs or questions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: 🚀 Feature Request
2+
description: Suggest an idea or a feature for this project
3+
labels: [ "enhancement" ]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this feature request!
10+
11+
- type: checkboxes
12+
id: checklist
13+
attributes:
14+
label: Checklist
15+
options:
16+
- label: I agree to the terms within the [OpenFGA Code of Conduct](https://github.com/openfga/.github/blob/main/CODE_OF_CONDUCT.md).
17+
required: true
18+
19+
- type: textarea
20+
id: description
21+
attributes:
22+
label: Describe the problem you'd like to have solved
23+
description: A clear and concise description of what the problem is.
24+
placeholder: My life would be a lot simpler if...
25+
validations:
26+
required: true
27+
28+
- type: textarea
29+
id: ideal-solution
30+
attributes:
31+
label: Describe the ideal solution
32+
description: A clear and concise description of what you want to happen.
33+
validations:
34+
required: true
35+
36+
- type: textarea
37+
id: alternatives-and-workarounds
38+
attributes:
39+
label: Alternatives and current workarounds
40+
description: A clear and concise description of any alternatives you've considered or any workarounds that are currently in place.
41+
validations:
42+
required: false
43+
44+
- type: textarea
45+
id: references
46+
attributes:
47+
label: References
48+
description: Any references to other issues, PRs, documentation or other links
49+
validations:
50+
required: false
51+
52+
- type: textarea
53+
id: additional-context
54+
attributes:
55+
label: Additional context
56+
description: Add any other context or screenshots about the feature request here.
57+
validations:
58+
required: false

.github/dependabot.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
version: 2
2+
updates: []

.github/workflows/semgrep.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Semgrep
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
semgrep:
8+
name: Scan
9+
runs-on: ubuntu-latest
10+
container:
11+
image: returntocorp/semgrep
12+
if: (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot')
13+
steps:
14+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
15+
with:
16+
fetch-depth: 0
17+
- run: semgrep ci --no-suppress-errors
18+
env:
19+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
3+
# IDEs
4+
.idea
5+
.vscode
6+
.sublime-workspace
7+
.sublime-project
8+
.idea/
9+
.vscode/
10+
11+
# Possible credential files
12+
.env
13+
credentials.json
14+
15+
# git conflict leftover files
16+
*.orig
17+
18+
# Mac
19+
.DS_Store
20+
21+
VERSION.txt
22+
git_push.sh
23+
24+
dist/
25+
node_modules/

.openapi-generator-ignore

Whitespace-only changes.

.openapi-generator/FILES

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
.fossa.yml
2+
.github/CODEOWNERS
3+
.github/ISSUE_TEMPLATE/bug_report.yaml
4+
.github/ISSUE_TEMPLATE/config.yaml
5+
.github/ISSUE_TEMPLATE/feature_request.yaml
6+
.github/dependabot.yaml
7+
.github/workflows/semgrep.yaml
8+
.gitignore
9+
CHANGELOG.md
10+
CONTRIBUTING.md
11+
LICENSE
12+
NOTICE.txt
13+
VERSION.txt
14+
apis/OpenFgaApi.ts
15+
apis/index.ts
16+
index.ts
17+
models/AbortedMessageResponse.ts
18+
models/Any.ts
19+
models/Assertion.ts
20+
models/AssertionTupleKey.ts
21+
models/AuthorizationModel.ts
22+
models/CheckRequest.ts
23+
models/CheckRequestTupleKey.ts
24+
models/CheckResponse.ts
25+
models/Computed.ts
26+
models/Condition.ts
27+
models/ConditionMetadata.ts
28+
models/ConditionParamTypeRef.ts
29+
models/ContextualTupleKeys.ts
30+
models/CreateStoreRequest.ts
31+
models/CreateStoreResponse.ts
32+
models/Difference.ts
33+
models/ErrorCode.ts
34+
models/ExpandRequest.ts
35+
models/ExpandRequestTupleKey.ts
36+
models/ExpandResponse.ts
37+
models/GetStoreResponse.ts
38+
models/InternalErrorCode.ts
39+
models/InternalErrorMessageResponse.ts
40+
models/Leaf.ts
41+
models/ListObjectsRequest.ts
42+
models/ListObjectsResponse.ts
43+
models/ListStoresResponse.ts
44+
models/Metadata.ts
45+
models/Node.ts
46+
models/Nodes.ts
47+
models/NotFoundErrorCode.ts
48+
models/NullValue.ts
49+
models/ObjectRelation.ts
50+
models/PathUnknownErrorMessageResponse.ts
51+
models/ReadAssertionsResponse.ts
52+
models/ReadAuthorizationModelResponse.ts
53+
models/ReadAuthorizationModelsResponse.ts
54+
models/ReadChangesResponse.ts
55+
models/ReadRequest.ts
56+
models/ReadRequestTupleKey.ts
57+
models/ReadResponse.ts
58+
models/RelationMetadata.ts
59+
models/RelationReference.ts
60+
models/RelationshipCondition.ts
61+
models/SourceInfo.ts
62+
models/Status.ts
63+
models/Store.ts
64+
models/Tuple.ts
65+
models/TupleChange.ts
66+
models/TupleKey.ts
67+
models/TupleKeyWithoutCondition.ts
68+
models/TupleOperation.ts
69+
models/TupleToUserset.ts
70+
models/TypeDefinition.ts
71+
models/TypeName.ts
72+
models/Users.ts
73+
models/Userset.ts
74+
models/UsersetTree.ts
75+
models/UsersetTreeDifference.ts
76+
models/UsersetTreeTupleToUserset.ts
77+
models/Usersets.ts
78+
models/ValidationErrorMessageResponse.ts
79+
models/WriteAssertionsRequest.ts
80+
models/WriteAuthorizationModelRequest.ts
81+
models/WriteAuthorizationModelResponse.ts
82+
models/WriteRequest.ts
83+
models/WriteRequestDeletes.ts
84+
models/WriteRequestWrites.ts
85+
models/index.ts
86+
runtime.ts

.openapi-generator/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.4.0

CHANGELOG.md

Whitespace-only changes.

CONTRIBUTING.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributing to OpenFGA projects
2+
3+
A big welcome and thank you for considering contributing to the OpenFGA open source projects. It’s people like you that make it a reality for users in our community.
4+
5+
Reading and following these guidelines will help us make the contribution process easy and effective for everyone involved. It also communicates that you agree to respect the time of the developers managing and developing these open source projects. In return, we will reciprocate that respect by addressing your issue, assessing changes, and helping you finalize your pull requests.
6+
7+
### Table of Contents
8+
9+
* [Code of Conduct](#code-of-conduct)
10+
* [Getting Started](#getting-started)
11+
* [Making Changes](#making-changes)
12+
* [Opening Issues](#opening-issues)
13+
* [Submitting Pull Requests](#submitting-pull-requests) [Note: We are not accepting Pull Requests at this time!]
14+
* [Getting in Touch](#getting-in-touch)
15+
* [Have a question or problem?](#have-a-question-or-problem)
16+
* [Vulnerability Reporting](#vulnerability-reporting)
17+
18+
## Code of Conduct
19+
20+
By participating and contributing to this project, you are expected to uphold our [Code of Conduct](https://github.com/openfga/.github/blob/main/CODE_OF_CONDUCT.md).
21+
22+
## Getting Started
23+
24+
### Making Changes
25+
26+
When contributing to a repository, the first step is to open an issue on [sdk-generator](https://github.com/openfga/sdk-generator) to discuss the change you wish to make before making them.
27+
28+
### Opening Issues
29+
30+
Before you submit a new issue please make sure to search all open and closed issues. It is possible your feature request/issue has already been answered. Make sure to also check the [OpenFGA discussions](https://github.com/orgs/openfga/discussions).
31+
32+
That repo includes an issue template that will walk through all the places to check before submitting your issue here. Please follow the instructions there to make sure this is not a duplicate issue and that we have everything we need to research and reproduce this problem.
33+
34+
### Submitting Pull Requests
35+
36+
Considering that the SDKs are autogenerated, please make sure to submit your Pull Requests to the [sdk-generator](https://github.com/openfga/sdk-generator). We will not accept PRs to this repository because they will be overwritten on the next sdk generation.
37+
38+
## Getting in touch
39+
40+
### Have a question or problem?
41+
42+
Please do not open issues for general support or usage questions. Instead, join us over in the [OpenFGA discussions](https://github.com/orgs/openfga/discussions) or [support community](https://openfga.dev/community).
43+
44+
### Vulnerability Reporting
45+
46+
Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://github.com/openfga/js-fetch-sdk/blob/main/.github/SECURITY.md) details the procedure for disclosing security issues.

0 commit comments

Comments
 (0)