@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 +10 -2
- package/dist/admin.d.ts +3 -3
- package/dist/chunks/{index-vf83jqc8.js → index-hzx6hj46.js} +2 -2
- package/dist/effect.d.ts +270 -2
- package/dist/effect.js +1 -1
- package/dist/index.d.ts +270 -2
- package/dist/index.js +1 -1
- package/docs/guide/ai/index.md +36 -17
- package/docs/guide/ai/studio.md +245 -0
- package/docs/guide/data/connectors.md +81 -18
- package/docs/guide/data/datasets.md +6 -17
- package/docs/guide/data/documents.md +235 -0
- package/docs/guide/data/index.md +62 -0
- package/docs/guide/data/knowledge.md +21 -18
- package/docs/guide/develop/extensions.md +68 -15
- package/docs/guide/develop/external-apps.md +48 -14
- package/docs/guide/develop/infrastructure.md +135 -0
- package/docs/guide/develop/sdks.md +2 -2
- package/docs/guide/index.md +12 -8
- package/docs/guide/platform/access.md +82 -17
- package/docs/guide/platform/architecture.md +27 -18
- package/docs/guide/platform/entrypoints.md +128 -47
- package/docs/guide/scenarios/index.md +69 -46
- package/docs/guide/template/index.md +22 -9
- package/docs/guide/template/state-machines.md +1 -1
- package/package.json +4 -4
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
|
-
`
|
|
649
|
-
|
|
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:
|
|
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
|
|
378
|
-
[key: string]:
|
|
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";
|