@collective-intelligence/external-apps-server-sdk 0.1.1 → 0.1.2
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 +181 -7
- package/dist/admin.d.ts +451 -257
- package/dist/admin.js +2 -2
- package/dist/auth/better-auth.d.ts +2 -2
- package/dist/auth/federated.d.ts +7 -4
- package/dist/auth/federated.js +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/gateway.js +1 -1
- package/dist/index.d.ts +156 -8
- package/dist/index.js +10 -3
- package/dist/persistence/drizzle.d.ts +1 -1
- package/dist/persistence/drizzle.js +1 -1
- package/dist/resources.d.ts +1 -1
- package/dist/resources.js +1 -1
- package/dist/runtime/effect.d.ts +64 -8
- package/dist/runtime/effect.js +1 -1
- package/dist/runtime/nestjs.d.ts +1 -1
- package/dist/runtime/next.d.ts +2 -2
- package/dist/runtime/web.d.ts +2 -2
- package/dist/tools/ai-sdk.js +1 -1
- package/package.json +1 -1
package/dist/runtime/nestjs.d.ts
CHANGED
|
@@ -247,7 +247,7 @@ export type EntityInvocationContext = Readonly<{
|
|
|
247
247
|
resourceId: string;
|
|
248
248
|
roles: readonly string[];
|
|
249
249
|
scopes: readonly string[];
|
|
250
|
-
|
|
250
|
+
groupIds: readonly string[];
|
|
251
251
|
user: ApplicationUserIdentity;
|
|
252
252
|
}>;
|
|
253
253
|
export type PrincipalKind = "detached_user" | "service_principal";
|
package/dist/runtime/next.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export type EntityInvocationContext = Readonly<{
|
|
|
29
29
|
resourceId: string;
|
|
30
30
|
roles: readonly string[];
|
|
31
31
|
scopes: readonly string[];
|
|
32
|
-
|
|
32
|
+
groupIds: readonly string[];
|
|
33
33
|
user: ApplicationUserIdentity;
|
|
34
34
|
}>;
|
|
35
35
|
export type ApplicationUserAuth = Readonly<{
|
|
@@ -38,7 +38,7 @@ export type ApplicationUserAuth = Readonly<{
|
|
|
38
38
|
/** Returns null only when the request has no valid application session. */
|
|
39
39
|
getSession: (request: Request) => Promise<ApplicationUserSession | null>;
|
|
40
40
|
/** Server-only current CI authority. The host still owns resource/operation policy.
|
|
41
|
-
* Null means no valid CI session or no current role/
|
|
41
|
+
* Null means no valid CI session or no current role/group policy supplied by CI.
|
|
42
42
|
*/
|
|
43
43
|
getEntityContext: (request: Request, resourceId: string) => Promise<EntityInvocationContext | null>;
|
|
44
44
|
/** Server-only Delegated access token. Absent for local application login. */
|
package/dist/runtime/web.d.ts
CHANGED
|
@@ -541,7 +541,7 @@ export type EntityInvocationContext = Readonly<{
|
|
|
541
541
|
resourceId: string;
|
|
542
542
|
roles: readonly string[];
|
|
543
543
|
scopes: readonly string[];
|
|
544
|
-
|
|
544
|
+
groupIds: readonly string[];
|
|
545
545
|
user: ApplicationUserIdentity;
|
|
546
546
|
}>;
|
|
547
547
|
export type ApplicationUserAuth = Readonly<{
|
|
@@ -550,7 +550,7 @@ export type ApplicationUserAuth = Readonly<{
|
|
|
550
550
|
/** Returns null only when the request has no valid application session. */
|
|
551
551
|
getSession: (request: Request) => Promise<ApplicationUserSession | null>;
|
|
552
552
|
/** Server-only current CI authority. The host still owns resource/operation policy.
|
|
553
|
-
* Null means no valid CI session or no current role/
|
|
553
|
+
* Null means no valid CI session or no current role/group policy supplied by CI.
|
|
554
554
|
*/
|
|
555
555
|
getEntityContext: (request: Request, resourceId: string) => Promise<EntityInvocationContext | null>;
|
|
556
556
|
/** Server-only Delegated access token. Absent for local application login. */
|