@collective-intelligence/external-apps-server-sdk 0.2.3 → 0.2.5
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 +120 -76
- package/dist/admin.d.ts +85 -98
- package/dist/admin.js +2 -2
- package/dist/auth/better-auth.d.ts +15 -6
- package/dist/auth/federated.d.ts +70 -22
- package/dist/auth/federated.js +1 -1
- package/dist/auth.d.ts +7 -5
- package/dist/chunks/{index-48qvvmm0.js → index-sc1m7s5d.js} +4 -4
- package/dist/effect.d.ts +1378 -171
- package/dist/effect.js +1 -1
- package/dist/index.d.ts +1361 -184
- package/dist/index.js +1 -1
- package/dist/next.d.ts +24 -13
- package/dist/next.js +1 -1
- package/dist/persistence/drizzle.d.ts +6 -5
- package/dist/resources.d.ts +7 -5
- package/dist/resources.js +1 -1
- package/dist/runtime/nestjs.d.ts +6 -6
- package/dist/runtime/web.d.ts +24 -13
- package/dist/runtime/web.js +1 -1
- package/package.json +4 -4
package/dist/auth.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
import { AccessHeldCapability } from '@collective-intelligence/extensions-sdk';
|
|
4
|
+
|
|
3
5
|
export type PrincipalKind = "detached_user" | "service_principal";
|
|
4
6
|
export type DelegatedSubjectPolicy = "allowed" | "forbidden" | "required";
|
|
5
7
|
export type AuthorizationRequirement = Readonly<{
|
|
@@ -131,15 +133,15 @@ export type ApplicationUserIdentity = Readonly<{
|
|
|
131
133
|
* and request/correlation IDs are deliberately not part of that logical identity.
|
|
132
134
|
*/
|
|
133
135
|
export type EntityInvocationContext = Readonly<{
|
|
134
|
-
/** The App Permissions of the user's effective roles on the app. */
|
|
135
|
-
appPermissions: readonly string[];
|
|
136
136
|
applicationId: string;
|
|
137
|
+
/**
|
|
138
|
+
* The app's slice of the user's access, as CI answered it: check
|
|
139
|
+
* capability Requirements against it with `evaluateAccessRequirement`.
|
|
140
|
+
*/
|
|
141
|
+
capabilities: readonly AccessHeldCapability[];
|
|
137
142
|
issuer: string;
|
|
138
143
|
organizationId: string;
|
|
139
144
|
resourceId: string;
|
|
140
|
-
/** The user's effective roles on the app, read from CI at this lookup. */
|
|
141
|
-
roles: readonly string[];
|
|
142
|
-
scopes: readonly string[];
|
|
143
145
|
user: ApplicationUserIdentity;
|
|
144
146
|
}>;
|
|
145
147
|
export declare const createGatewayConnectionAuthentication: (config: GatewayConnectionAuthenticationConfig) => {
|