@collective-intelligence/external-apps-server-sdk 0.1.10 → 0.1.12
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 +58 -39
- package/dist/admin.d.ts +190 -308
- package/dist/admin.js +1 -1
- package/dist/auth/better-auth.d.ts +4 -2
- package/dist/auth/federated.d.ts +17 -7
- package/dist/auth/federated.js +1 -1
- package/dist/auth.d.ts +3 -1
- package/dist/gateway.js +2 -2
- package/dist/index.d.ts +156 -76
- package/dist/index.js +2 -2
- package/dist/persistence/drizzle.d.ts +4 -2
- package/dist/persistence/drizzle.js +3 -3
- package/dist/resources.d.ts +15 -3
- package/dist/resources.js +2 -2
- package/dist/runtime/effect.d.ts +12 -3
- package/dist/runtime/effect.js +3 -3
- package/dist/runtime/nestjs.d.ts +12 -3
- package/dist/runtime/nestjs.js +2 -2
- package/dist/runtime/next.d.ts +13 -4
- package/dist/runtime/next.js +2 -2
- package/dist/runtime/web.d.ts +4 -2
- package/dist/runtime/web.js +2 -2
- package/dist/tools/ai-sdk.js +2 -2
- package/package.json +3 -3
|
@@ -191,7 +191,7 @@ export type ResourceCreateInput<Value> = Readonly<{
|
|
|
191
191
|
value: Value;
|
|
192
192
|
}>;
|
|
193
193
|
/** Common entity operations. Generic resource lifecycle/cursor APIs remain separate. */
|
|
194
|
-
export type EntityOperation = "list" | "get" | "create" | "update" | "delete" | "upload";
|
|
194
|
+
export type EntityOperation = "list_members" | "list" | "get" | "create" | "update" | "delete" | "upload";
|
|
195
195
|
export type EntityListQuery = Omit<ResourceListQuery, "pagination" | "includeDeleted"> & Readonly<{
|
|
196
196
|
pagination: Extract<ResourcePagination, {
|
|
197
197
|
mode: "page";
|
|
@@ -226,13 +226,15 @@ export type ApplicationUserIdentity = Readonly<{
|
|
|
226
226
|
* and request/correlation IDs are deliberately not part of that logical identity.
|
|
227
227
|
*/
|
|
228
228
|
export type EntityInvocationContext = Readonly<{
|
|
229
|
+
/** The App Permissions of the user's effective roles on the app. */
|
|
230
|
+
appPermissions: readonly string[];
|
|
229
231
|
applicationId: string;
|
|
230
232
|
issuer: string;
|
|
231
233
|
organizationId: string;
|
|
232
234
|
resourceId: string;
|
|
235
|
+
/** The user's effective roles on the app, read from CI at this lookup. */
|
|
233
236
|
roles: readonly string[];
|
|
234
237
|
scopes: readonly string[];
|
|
235
|
-
groupIds: readonly string[];
|
|
236
238
|
user: ApplicationUserIdentity;
|
|
237
239
|
}>;
|
|
238
240
|
/** Common CRUD port. Implementations own atomic revisions, receipts and soft deletion. */
|