@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/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) => {