@dereekb/firebase-server 13.29.0 → 13.31.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/index.cjs.js +129 -1
- package/index.esm.js +129 -3
- package/mailgun/package.json +9 -9
- package/mcp/index.cjs.js +42 -17
- package/mcp/index.esm.js +43 -18
- package/mcp/package.json +11 -11
- package/mcp/src/lib/mcp.config.d.ts +19 -1
- package/mcp/src/lib/service/mcp.server.factory.d.ts +1 -1
- package/mcp/src/lib/service/mcp.tool-generator.d.ts +12 -1
- package/mcp/src/lib/service/mcp.visibility.d.ts +9 -6
- package/model/package.json +9 -9
- package/oidc/index.cjs.js +30 -65
- package/oidc/index.esm.js +34 -68
- package/oidc/package.json +10 -10
- package/oidc/src/lib/index.d.ts +0 -1
- package/oidc/src/lib/oidc.config.d.ts +11 -0
- package/oidc/src/lib/profile.d.ts +7 -0
- package/oidc/src/lib/service/oidc.auth.d.ts +1 -1
- package/package.json +10 -10
- package/src/lib/nest/controller/model/index.d.ts +1 -0
- package/src/lib/nest/controller/model/model.api.dispatch.d.ts +14 -2
- package/src/lib/nest/controller/model/model.api.get.service.d.ts +14 -0
- package/src/lib/nest/controller/model/model.api.scope.d.ts +102 -0
- package/src/lib/nest/model/api.details.d.ts +13 -8
- package/src/lib/nest/model/crud.assert.function.d.ts +7 -6
- package/test/index.cjs.js +94 -58
- package/test/index.esm.js +95 -59
- package/test/package.json +11 -11
- package/test/src/lib/oidc/oidc.test.fixture.d.ts +9 -1
- package/test/src/lib/oidc/oidc.test.flow.d.ts +13 -3
- package/twilio/package.json +8 -8
- package/zoho/package.json +9 -9
- package/oidc/src/lib/scope.d.ts +0 -24
package/zoho/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/zoho",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.31.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/analytics": "13.
|
|
6
|
-
"@dereekb/date": "13.
|
|
7
|
-
"@dereekb/model": "13.
|
|
8
|
-
"@dereekb/nestjs": "13.
|
|
9
|
-
"@dereekb/rxjs": "13.
|
|
10
|
-
"@dereekb/firebase": "13.
|
|
11
|
-
"@dereekb/util": "13.
|
|
12
|
-
"@dereekb/zoho": "13.
|
|
5
|
+
"@dereekb/analytics": "13.31.0",
|
|
6
|
+
"@dereekb/date": "13.31.0",
|
|
7
|
+
"@dereekb/model": "13.31.0",
|
|
8
|
+
"@dereekb/nestjs": "13.31.0",
|
|
9
|
+
"@dereekb/rxjs": "13.31.0",
|
|
10
|
+
"@dereekb/firebase": "13.31.0",
|
|
11
|
+
"@dereekb/util": "13.31.0",
|
|
12
|
+
"@dereekb/zoho": "13.31.0"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
"./package.json": "./package.json",
|
package/oidc/src/lib/scope.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type OnCallTypedModelParams } from '@dereekb/firebase';
|
|
2
|
-
import { type AssertModelCrudRequestFunction } from '@dereekb/firebase-server';
|
|
3
|
-
/**
|
|
4
|
-
* Builds a {@link AssertModelCrudRequestFunction} that rejects callModel requests
|
|
5
|
-
* lacking the required OIDC scope(s) for the call.
|
|
6
|
-
*
|
|
7
|
-
* Enforcement is additive: an OIDC caller must hold BOTH the per-verb scope mapped
|
|
8
|
-
* from the call type (`model.<call>`) AND any per-function scope a handler declared
|
|
9
|
-
* via `withApiDetails({ requiredScope })` — surfaced on `context.requiredScope`.
|
|
10
|
-
*
|
|
11
|
-
* Bypasses the check (no-op) when the request is not OIDC-authenticated — i.e.
|
|
12
|
-
* when {@link getOidcScopesFromRequest} returns `undefined` because there is no
|
|
13
|
-
* `auth.token.scope` claim on the request. Regular Firebase ID-token callers are
|
|
14
|
-
* unaffected and continue to be gated by auth roles.
|
|
15
|
-
*
|
|
16
|
-
* Bypasses the check for custom (non-CRUD) call types that declare no per-function
|
|
17
|
-
* scope, so app-specific verbs remain unrestricted unless an app wires its own
|
|
18
|
-
* assertion or declares a `requiredScope`.
|
|
19
|
-
*
|
|
20
|
-
* Wire as the `preAssert` of {@link onCallModel}.
|
|
21
|
-
*
|
|
22
|
-
* @returns The pre-assertion function ready to plug into `OnCallModelConfig.preAssert`.
|
|
23
|
-
*/
|
|
24
|
-
export declare function oidcCallModelScopePreAssert(): AssertModelCrudRequestFunction<unknown, OnCallTypedModelParams>;
|