@collective-intelligence/external-apps-server-sdk 0.1.14 → 0.1.15
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 +5 -0
- package/dist/admin.d.ts +5 -0
- package/dist/gateway.js +2 -2
- package/dist/index.d.ts +49 -1
- package/dist/index.js +2 -2
- package/dist/persistence/drizzle.js +2 -2
- package/dist/runtime/effect.js +2 -2
- package/dist/tools/ai-sdk.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -523,6 +523,11 @@ const created = await ci.users.createOrGet({
|
|
|
523
523
|
|
|
524
524
|
- `createOrGet` reuses the person's auth identity. A new app user has no
|
|
525
525
|
Organization membership. An existing member remains a member.
|
|
526
|
+
- `checkEmail({ organizationId, email })` asks whether `createOrGet` would
|
|
527
|
+
accept the email, without creating anything. The result is
|
|
528
|
+
`{ usable: true }` or `{ usable: false, reason }`, with `user_unavailable`
|
|
529
|
+
or `target_inactive` as `createOrGet` would refuse. An unknown email is
|
|
530
|
+
usable. It needs service credentials and `users.create`.
|
|
526
531
|
- `get({ organizationId, userId })` and
|
|
527
532
|
`list({ organizationId, page?, pageSize? })` read users accessible to this
|
|
528
533
|
app. A list result contains `items`.
|
package/dist/admin.d.ts
CHANGED
|
@@ -2345,6 +2345,7 @@ export type EntitySchemasUpdateData = {
|
|
|
2345
2345
|
mediaVisibility?: KnowledgeFileVisibility;
|
|
2346
2346
|
relation?: KnowledgeRelationFieldEntry;
|
|
2347
2347
|
user?: {
|
|
2348
|
+
accounts?: boolean;
|
|
2348
2349
|
multiple: boolean;
|
|
2349
2350
|
};
|
|
2350
2351
|
};
|
|
@@ -2489,6 +2490,7 @@ export type EntitySchemasCreateData = {
|
|
|
2489
2490
|
mediaVisibility?: KnowledgeFileVisibility;
|
|
2490
2491
|
relation?: KnowledgeRelationFieldEntry;
|
|
2491
2492
|
user?: {
|
|
2493
|
+
accounts?: boolean;
|
|
2492
2494
|
multiple: boolean;
|
|
2493
2495
|
};
|
|
2494
2496
|
};
|
|
@@ -6647,6 +6649,7 @@ declare const createAdministrationApi: (client: Client$1) => {
|
|
|
6647
6649
|
mediaVisibility?: KnowledgeFileVisibility;
|
|
6648
6650
|
relation?: KnowledgeRelationFieldEntry;
|
|
6649
6651
|
user?: {
|
|
6652
|
+
accounts?: boolean;
|
|
6650
6653
|
multiple: boolean;
|
|
6651
6654
|
};
|
|
6652
6655
|
};
|
|
@@ -6891,6 +6894,7 @@ declare const createAdministrationApi: (client: Client$1) => {
|
|
|
6891
6894
|
mediaVisibility?: KnowledgeFileVisibility;
|
|
6892
6895
|
relation?: KnowledgeRelationFieldEntry;
|
|
6893
6896
|
user?: {
|
|
6897
|
+
accounts?: boolean;
|
|
6894
6898
|
multiple: boolean;
|
|
6895
6899
|
};
|
|
6896
6900
|
};
|
|
@@ -7130,6 +7134,7 @@ declare const createAdministrationApi: (client: Client$1) => {
|
|
|
7130
7134
|
mediaVisibility?: KnowledgeFileVisibility;
|
|
7131
7135
|
relation?: KnowledgeRelationFieldEntry;
|
|
7132
7136
|
user?: {
|
|
7137
|
+
accounts?: boolean;
|
|
7133
7138
|
multiple: boolean;
|
|
7134
7139
|
};
|
|
7135
7140
|
};
|