@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.
@@ -247,7 +247,7 @@ export type EntityInvocationContext = Readonly<{
247
247
  resourceId: string;
248
248
  roles: readonly string[];
249
249
  scopes: readonly string[];
250
- teamIds: readonly string[];
250
+ groupIds: readonly string[];
251
251
  user: ApplicationUserIdentity;
252
252
  }>;
253
253
  export type PrincipalKind = "detached_user" | "service_principal";
@@ -29,7 +29,7 @@ export type EntityInvocationContext = Readonly<{
29
29
  resourceId: string;
30
30
  roles: readonly string[];
31
31
  scopes: readonly string[];
32
- teamIds: readonly string[];
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/team policy supplied by CI.
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. */
@@ -541,7 +541,7 @@ export type EntityInvocationContext = Readonly<{
541
541
  resourceId: string;
542
542
  roles: readonly string[];
543
543
  scopes: readonly string[];
544
- teamIds: readonly string[];
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/team policy supplied by CI.
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. */