@collective-intelligence/external-apps-server-sdk 0.3.2 → 0.3.4

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 CHANGED
@@ -645,8 +645,16 @@ const result = await ci.access.grants.sync({
645
645
 
646
646
  - `members`: `create` (directly or by invitation, with at least one grant;
647
647
  Grant Authority decides each grant), `get`, `list` (`after`, `email`,
648
- `limit`), `findByEmail`, `suspend`, `resume` and `remove`. An app server
649
- creates, reads and changes only its own guests.
648
+ `name`, `limit`; `name` finds the members whose name holds the text,
649
+ without case), `findByEmail`, `suspend`, `resume` and `remove`. An app
650
+ server creates, reads and changes only its own guests.
651
+ - `members.holders({ organizationId, profile, axis, value, after?, limit? })`
652
+ lists the members that hold the profile (FQN or `{ id }`) on the Axis Value
653
+ of the Grant Axis `axis` (its slug) or on a value below it, through their
654
+ own active grant or one of a Group they are in. A grant on a value above
655
+ it holds nothing there, and grants never combine. A suspended member is
656
+ listed with `suspended: true`. An axis that the profile does not declare
657
+ is refused with 422 `axis_unknown`. It also needs `admin.grants` at read.
650
658
  - `invitations`: `list` (`status`, `page`, `limit`) and `revoke`. Only a
651
659
  service principal invites, so an app server is refused.
652
660
  - `grants`: `create`, `get`, `update` and `delete` by `grantId` or `fqn`,
package/dist/admin.d.ts CHANGED
@@ -339,7 +339,7 @@ export type KnowledgeRelationFieldEntry = {
339
339
  caseSensitive?: boolean;
340
340
  field: string;
341
341
  operator: "eq" | "ne" | "in" | "nin" | "contains" | "not_contains" | "starts_with" | "ends_with" | "gt" | "gte" | "lt" | "lte" | "exists" | "is_empty" | "is_not_empty";
342
- value: Suspend1;
342
+ value: Suspend2;
343
343
  }>;
344
344
  fields?: Array<{
345
345
  field: string;
@@ -374,8 +374,8 @@ export type KnowledgeRelationFieldEntry = {
374
374
  onDelete?: unknown;
375
375
  targetSchemaFqn?: unknown;
376
376
  };
377
- export type Suspend1 = null | boolean | number | string | Array<Suspend1> | {
378
- [key: string]: Suspend1;
377
+ export type Suspend2 = null | boolean | number | string | Array<Suspend2> | {
378
+ [key: string]: Suspend2;
379
379
  };
380
380
  declare const KnowledgeFileVisibility: {
381
381
  readonly PUBLIC: "public";