@bigfootai/bigfoot-types 2.2.0 → 2.3.1

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.
Files changed (3) hide show
  1. package/README.md +1 -51
  2. package/model.ts +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,51 +1 @@
1
- https://auth0.com/docs/secure/security-guidance/data-security/allowlist
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 system has assigned the sharing to the tenant based on access rules
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 {
@@ -192,6 +191,7 @@ export class Note extends Primitive {
192
191
  editors: Editor[]; // The list of people/devices that were used in creating this note
193
192
  sharingTags: SharingTag[]; // The list of tags that this note is shared with
194
193
  reactions?: Reaction[]; // Reactions from tenants to this primitive
194
+ version: number; // An incrementing version number assigned by the editor
195
195
  }
196
196
 
197
197
  export class Block extends Note {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.2.0",
4
+ "version": "2.3.1",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",