@collective-intelligence/external-apps-server-sdk 0.1.14 → 0.1.16
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 +17 -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 +7 -7
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
|
};
|
|
@@ -5513,6 +5515,12 @@ declare const createAdministrationApi: (client: Client$1) => {
|
|
|
5513
5515
|
predefinedBindingSourceEntityKey?: string;
|
|
5514
5516
|
predefinedBindingTargetEntityKey?: string;
|
|
5515
5517
|
}>;
|
|
5518
|
+
remoteDeletion: {
|
|
5519
|
+
capability: "full";
|
|
5520
|
+
} | {
|
|
5521
|
+
capability: "full_and_delta";
|
|
5522
|
+
feed: "server_filtered" | "client_filtered";
|
|
5523
|
+
};
|
|
5516
5524
|
settingsForm: {
|
|
5517
5525
|
createSteps: Array<{
|
|
5518
5526
|
description?: string | null;
|
|
@@ -6140,6 +6148,12 @@ declare const createAdministrationApi: (client: Client$1) => {
|
|
|
6140
6148
|
predefinedBindingSourceEntityKey?: string;
|
|
6141
6149
|
predefinedBindingTargetEntityKey?: string;
|
|
6142
6150
|
}>;
|
|
6151
|
+
remoteDeletion: {
|
|
6152
|
+
capability: "full";
|
|
6153
|
+
} | {
|
|
6154
|
+
capability: "full_and_delta";
|
|
6155
|
+
feed: "server_filtered" | "client_filtered";
|
|
6156
|
+
};
|
|
6143
6157
|
settingsForm: {
|
|
6144
6158
|
createSteps: Array<{
|
|
6145
6159
|
description?: string | null;
|
|
@@ -6647,6 +6661,7 @@ declare const createAdministrationApi: (client: Client$1) => {
|
|
|
6647
6661
|
mediaVisibility?: KnowledgeFileVisibility;
|
|
6648
6662
|
relation?: KnowledgeRelationFieldEntry;
|
|
6649
6663
|
user?: {
|
|
6664
|
+
accounts?: boolean;
|
|
6650
6665
|
multiple: boolean;
|
|
6651
6666
|
};
|
|
6652
6667
|
};
|
|
@@ -6891,6 +6906,7 @@ declare const createAdministrationApi: (client: Client$1) => {
|
|
|
6891
6906
|
mediaVisibility?: KnowledgeFileVisibility;
|
|
6892
6907
|
relation?: KnowledgeRelationFieldEntry;
|
|
6893
6908
|
user?: {
|
|
6909
|
+
accounts?: boolean;
|
|
6894
6910
|
multiple: boolean;
|
|
6895
6911
|
};
|
|
6896
6912
|
};
|
|
@@ -7130,6 +7146,7 @@ declare const createAdministrationApi: (client: Client$1) => {
|
|
|
7130
7146
|
mediaVisibility?: KnowledgeFileVisibility;
|
|
7131
7147
|
relation?: KnowledgeRelationFieldEntry;
|
|
7132
7148
|
user?: {
|
|
7149
|
+
accounts?: boolean;
|
|
7133
7150
|
multiple: boolean;
|
|
7134
7151
|
};
|
|
7135
7152
|
};
|