@bigfootai/bigfoot-types 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -51
- package/model.ts +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,51 +1 @@
|
|
|
1
|
-
|
|
2
|
-
https://dev.to/stanbar/writing-mongo-realm-serverless-functions-in-typescript-5fdo
|
|
3
|
-
|
|
4
|
-
Need to set up API key for Auth0
|
|
5
|
-
|
|
6
|
-
Adding environment variables to atlas.d.ts
|
|
7
|
-
|
|
8
|
-
brew install curl
|
|
9
|
-
Get the domain from here: https://manage.auth0.com/dashboard/us/dev-h40ievkvqezopsav/tenant/admins (it's bolded at the top of the page in the intro content)
|
|
10
|
-
curl -s https://dev-h40ievkvqezopsav.us.auth0.com/pem | openssl x509 -pubkey -noout
|
|
11
|
-
Paste the contents into the Public Key (Secret Name) in the Custom JWT authentication provider
|
|
12
|
-
|
|
13
|
-
You need to get an example req.oidc.idToken from index.mjs in the server part of the bigfoot project
|
|
14
|
-
Past that into this tool: https://jwt.io/#debugger-io
|
|
15
|
-
Note down the "aud" property
|
|
16
|
-
Put the value of that in the Audience (Optional) in the authentication provider config
|
|
17
|
-
|
|
18
|
-
Auth0 stuff:
|
|
19
|
-
Dev
|
|
20
|
-
AUTH0_API_KEY: GCVzRnhjtBIAg0493d4v3yWCkRirft12s1BQAcHzkkcaPFKxUD9sWYeeYpYMG8sZ
|
|
21
|
-
AUTH0_HANDLER_ENDPOINT: https://us-east-1.aws.data.mongodb-api.com/app/bigfootbackend-xblwe/endpoint/api/v1/tenant/auth
|
|
22
|
-
|
|
23
|
-
Staging
|
|
24
|
-
AUTH0_API_KEY: ADXtN68db1do3ApsdyR5EfSkLnIL2hx6NuIJEeGYB0kNlIuyKjtgeAYPIqmGyat4
|
|
25
|
-
AUTH0_HANDLER_ENDPOINT: https://us-east-1.aws.data.mongodb-api.com/app/bigfootbackend-wstbt/endpoint/api/v1/tenant/auth
|
|
26
|
-
|
|
27
|
-
Production
|
|
28
|
-
AUTH0_API_KEY: 2OYocp1S6fIvSW3S8jQPd4iDhd8Q6syV8WqokemoKhilTn1FKix0om7Ctm0SqAH4
|
|
29
|
-
AUTH0_HANDLER_ENDPOINT: https://us-east-1.aws.data.mongodb-api.com/app/bigfootbackend-gxuab/endpoint/api/v1/tenant/auth
|
|
30
|
-
|
|
31
|
-
You need to set up the authentication stuff manually despite being in the deployment configuration...
|
|
32
|
-
|
|
33
|
-
{
|
|
34
|
-
"collection": "notes",
|
|
35
|
-
"database": "bigfoot-dev",
|
|
36
|
-
"filters": [
|
|
37
|
-
{
|
|
38
|
-
"name": "filterDocumentsForTenant",
|
|
39
|
-
"query": {
|
|
40
|
-
"%function": {
|
|
41
|
-
"name": "filterDocumentsForTenant"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"apply_when": {
|
|
45
|
-
"%%user.data": {
|
|
46
|
-
"%exists": "%%true"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
1
|
+
Nothing to see here
|
package/model.ts
CHANGED
|
@@ -46,8 +46,7 @@ export enum StepStatus {
|
|
|
46
46
|
|
|
47
47
|
export enum SharingApproach {
|
|
48
48
|
Inline = 0, // As in, the user has used this tag in the note
|
|
49
|
-
Explicit = 1, // The
|
|
50
|
-
Automated = 2, // The settings on the tag have caused the sharing to happen
|
|
49
|
+
Explicit = 1, // The user explicitly shared the tag, or the system did, without it being in the note
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
export enum InviteStatus {
|