feat(messenger): wire the channel-roster import adapter seam
Phase D of channel-roster import. CrmMessagingAdapter.addMembers() proxies the new crm.messenger.participant.addMany door action, enabling the SDK's '#' import affordance in the channel/group settings panel. Pulls @insignia/iios-messaging-ui@0.1.8. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Generated
+4
-4
@@ -12,7 +12,7 @@
|
|||||||
"@huggingface/transformers": "^4.2.0",
|
"@huggingface/transformers": "^4.2.0",
|
||||||
"@imgly/background-removal": "^1.7.0",
|
"@imgly/background-removal": "^1.7.0",
|
||||||
"@insignia/iios-kernel-client": "^0.1.4",
|
"@insignia/iios-kernel-client": "^0.1.4",
|
||||||
"@insignia/iios-messaging-ui": "^0.1.7",
|
"@insignia/iios-messaging-ui": "^0.1.8",
|
||||||
"@photo-gallery/sdk": "file:./vendor/photo-gallery-sdk",
|
"@photo-gallery/sdk": "file:./vendor/photo-gallery-sdk",
|
||||||
"@tensorflow-models/coco-ssd": "^2.2.3",
|
"@tensorflow-models/coco-ssd": "^2.2.3",
|
||||||
"@tensorflow/tfjs": "^4.22.0",
|
"@tensorflow/tfjs": "^4.22.0",
|
||||||
@@ -1087,9 +1087,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@insignia/iios-messaging-ui": {
|
"node_modules/@insignia/iios-messaging-ui": {
|
||||||
"version": "0.1.7",
|
"version": "0.1.8",
|
||||||
"resolved": "https://git.lynkedup.cloud/api/packages/insignia/npm/%40insignia%2Fiios-messaging-ui/-/0.1.7/iios-messaging-ui-0.1.7.tgz",
|
"resolved": "https://git.lynkedup.cloud/api/packages/insignia/npm/%40insignia%2Fiios-messaging-ui/-/0.1.8/iios-messaging-ui-0.1.8.tgz",
|
||||||
"integrity": "sha512-ZE4fLeSTSa5AFZnvSRT7G/TEaw+Jm5qH8rWaDjns6Vu9zBnDTVYdF8CMEisBrtgSDj+jDQBo9xlwZmr++5qehw==",
|
"integrity": "sha512-djLQtX69f8p/2v7m2qhDU7AjCsvt3mz8qzTqf7CSTVsFu1mzMZTLfdq7e4DJzZ0syw76Rhzqrhw+RysiQEpDCg==",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@insignia/iios-kernel-client": "*",
|
"@insignia/iios-kernel-client": "*",
|
||||||
"react": ">=18",
|
"react": ">=18",
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
"@huggingface/transformers": "^4.2.0",
|
"@huggingface/transformers": "^4.2.0",
|
||||||
"@imgly/background-removal": "^1.7.0",
|
"@imgly/background-removal": "^1.7.0",
|
||||||
"@insignia/iios-kernel-client": "^0.1.4",
|
"@insignia/iios-kernel-client": "^0.1.4",
|
||||||
"@insignia/iios-messaging-ui": "^0.1.7",
|
"@insignia/iios-messaging-ui": "^0.1.8",
|
||||||
"@photo-gallery/sdk": "file:./vendor/photo-gallery-sdk",
|
"@photo-gallery/sdk": "file:./vendor/photo-gallery-sdk",
|
||||||
"@tensorflow-models/coco-ssd": "^2.2.3",
|
"@tensorflow-models/coco-ssd": "^2.2.3",
|
||||||
"@tensorflow/tfjs": "^4.22.0",
|
"@tensorflow/tfjs": "^4.22.0",
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
import type {
|
import type {
|
||||||
Attachment,
|
Attachment,
|
||||||
|
BulkAddResult,
|
||||||
ChannelSummary,
|
ChannelSummary,
|
||||||
ChannelVisibility,
|
ChannelVisibility,
|
||||||
Conversation,
|
Conversation,
|
||||||
@@ -247,6 +248,12 @@ export class CrmMessagingAdapter implements MessagingAdapter {
|
|||||||
await this.sdk.command("crm.messenger.participant.add", { threadId, userId });
|
await this.sdk.command("crm.messenger.participant.add", { threadId, userId });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Bulk import (e.g. everyone from another channel). IIOS governs both ends: you must belong to
|
||||||
|
* the source channel to read its roster, and OPA re-checks who may add to this thread. */
|
||||||
|
async addMembers(threadId: string, userIds: string[]): Promise<BulkAddResult> {
|
||||||
|
return this.sdk.command<BulkAddResult>("crm.messenger.participant.addMany", { threadId, userIds });
|
||||||
|
}
|
||||||
|
|
||||||
async removeMember(threadId: string, userId: string): Promise<void> {
|
async removeMember(threadId: string, userId: string): Promise<void> {
|
||||||
await this.sdk.command("crm.messenger.participant.remove", { threadId, userId });
|
await this.sdk.command("crm.messenger.participant.remove", { threadId, userId });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user