@butterbase/shared 0.2.2 → 0.4.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/dist/types.d.ts +46 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +49 -49
package/dist/types.d.ts
CHANGED
|
@@ -90,13 +90,58 @@ export interface ApiKey {
|
|
|
90
90
|
}
|
|
91
91
|
export interface AuthContext {
|
|
92
92
|
userId: string | null;
|
|
93
|
-
|
|
93
|
+
/**
|
|
94
|
+
* - 'api_key' — platform bb_sk_* key (user-managed, full app + substrate access)
|
|
95
|
+
* - 'jwt' — Cognito/local platform JWT (dashboard/CLI users)
|
|
96
|
+
* - 'end_user_jwt' — app end-user JWT (signed by the app's signing key)
|
|
97
|
+
* - 'function_key' — per-app BUTTERBASE_FUNCTION_SERVICE_KEY (auto-injected
|
|
98
|
+
* into Deno runtime; bound to a single app; scoped to
|
|
99
|
+
* a small allowlist of routes — see auth.ts).
|
|
100
|
+
* - 'anonymous' — no token / unrecognised token
|
|
101
|
+
*/
|
|
102
|
+
authMethod: 'api_key' | 'jwt' | 'end_user_jwt' | 'function_key' | 'anonymous';
|
|
94
103
|
scopes: string[];
|
|
95
104
|
keyId?: string;
|
|
96
105
|
email?: string;
|
|
97
106
|
appId?: string;
|
|
98
107
|
rawToken?: string;
|
|
99
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Caller identity surfaced as `ctx.caller` inside a deployed function.
|
|
111
|
+
*
|
|
112
|
+
* Populated from the validated Authorization header at the control-api edge
|
|
113
|
+
* (or filled with `{ type: 'anonymous', ... }` when no bearer was present).
|
|
114
|
+
* User code SHOULD prefer reading this over decoding `req.headers.authorization`
|
|
115
|
+
* by hand — the platform has already done the cryptographic checks.
|
|
116
|
+
*
|
|
117
|
+
* Identity propagation rule of thumb:
|
|
118
|
+
* - `type === 'end_user_jwt'`: `userId` is the app-user who hit the endpoint.
|
|
119
|
+
* `ctx.user.id` is set; `keyId`/`scope` are null.
|
|
120
|
+
* - `type === 'service_key'`: a `bb_sk_*` key authenticated the request.
|
|
121
|
+
* `keyId` is the row id of the key (safe to log/audit, never the secret).
|
|
122
|
+
* `scope` is one of the key's `app:<app_id>` / `ai:gateway` entries —
|
|
123
|
+
* useful for "is this an app-scoped caller?" checks.
|
|
124
|
+
* - `type === 'anonymous'`: no bearer, or the bearer was invalid/revoked.
|
|
125
|
+
*/
|
|
126
|
+
export interface FunctionCaller {
|
|
127
|
+
/**
|
|
128
|
+
* - `service_key` — user-managed bb_sk_*
|
|
129
|
+
* - `end_user_jwt` — an app end-user
|
|
130
|
+
* - `loopback` — same-app ctx.invoke from a sibling function
|
|
131
|
+
* - `anonymous` — no/invalid bearer
|
|
132
|
+
*/
|
|
133
|
+
type: 'service_key' | 'end_user_jwt' | 'loopback' | 'anonymous';
|
|
134
|
+
/** API-key row id (e.g. `ak_…`). Present iff `type === 'service_key'`. */
|
|
135
|
+
keyId: string | null;
|
|
136
|
+
/** First app- or gateway-scope on the key (e.g. `app:app_xyz`). */
|
|
137
|
+
scope: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* The user this request is acting *on behalf of*. For `end_user_jwt` this is
|
|
140
|
+
* the JWT subject; for `service_key` it is null today (Phase 2 enables an
|
|
141
|
+
* impersonation header that populates this).
|
|
142
|
+
*/
|
|
143
|
+
userId: string | null;
|
|
144
|
+
}
|
|
100
145
|
export interface AppSigningKey {
|
|
101
146
|
id: string;
|
|
102
147
|
app_id: string;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,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AE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC3C,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAqNA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@butterbase/shared",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Shared types and constants for Butterbase packages",
|
|
5
|
-
"license": "Apache-2.0",
|
|
6
|
-
"homepage": "https://butterbase.ai",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/
|
|
10
|
-
"directory": "packages/shared"
|
|
11
|
-
},
|
|
12
|
-
"type": "module",
|
|
13
|
-
"main": "./dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"exports": {
|
|
16
|
-
".": {
|
|
17
|
-
"import": "./dist/index.js",
|
|
18
|
-
"types": "./dist/index.d.ts"
|
|
19
|
-
},
|
|
20
|
-
"./constants": {
|
|
21
|
-
"import": "./dist/constants.js",
|
|
22
|
-
"types": "./dist/constants.d.ts"
|
|
23
|
-
},
|
|
24
|
-
"./types": {
|
|
25
|
-
"import": "./dist/types.js",
|
|
26
|
-
"types": "./dist/types.d.ts"
|
|
27
|
-
},
|
|
28
|
-
"./error-types": {
|
|
29
|
-
"import": "./dist/error-types.js",
|
|
30
|
-
"types": "./dist/error-types.d.ts"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"files": [
|
|
34
|
-
"dist",
|
|
35
|
-
"README.md"
|
|
36
|
-
],
|
|
37
|
-
"publishConfig": {
|
|
38
|
-
"access": "public"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"build": "tsc -b",
|
|
42
|
-
"dev": "tsc -b --watch"
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"typescript": "^5.7.0",
|
|
46
|
-
"@types/node": "^22.0.0",
|
|
47
|
-
"vitest": "^3.2.4"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@butterbase/shared",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Shared types and constants for Butterbase packages",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"homepage": "https://butterbase.ai",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/butterbase-ai/butterbase",
|
|
10
|
+
"directory": "packages/shared"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./constants": {
|
|
21
|
+
"import": "./dist/constants.js",
|
|
22
|
+
"types": "./dist/constants.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./types": {
|
|
25
|
+
"import": "./dist/types.js",
|
|
26
|
+
"types": "./dist/types.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"./error-types": {
|
|
29
|
+
"import": "./dist/error-types.js",
|
|
30
|
+
"types": "./dist/error-types.d.ts"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsc -b",
|
|
42
|
+
"dev": "tsc -b --watch"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"typescript": "^5.7.0",
|
|
46
|
+
"@types/node": "^22.0.0",
|
|
47
|
+
"vitest": "^3.2.4"
|
|
48
|
+
}
|
|
49
|
+
}
|