@lssm/lib.communication-spec 3.1.1

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.
Files changed (309) hide show
  1. package/README.md +201 -0
  2. package/dist/browser/capabilities/comms-ai.capabilities.js +1 -0
  3. package/dist/browser/capabilities/communication-os.capability-ids.js +1 -0
  4. package/dist/browser/capabilities/ecosystem-messaging.capabilities.js +1 -0
  5. package/dist/browser/capabilities/index.js +1 -0
  6. package/dist/browser/commands/comms-ai.commands.js +1 -0
  7. package/dist/browser/commands/index.js +1 -0
  8. package/dist/browser/contracts/agent-communication.js +1 -0
  9. package/dist/browser/contracts/agent-lifecycle-projection.js +1 -0
  10. package/dist/browser/contracts/agent-surface-control.js +1 -0
  11. package/dist/browser/contracts/ai-assistance.operations.js +1 -0
  12. package/dist/browser/contracts/artifact-digest.js +1 -0
  13. package/dist/browser/contracts/canonical-agent-conversation.js +1 -0
  14. package/dist/browser/contracts/channel-preferences.js +1 -0
  15. package/dist/browser/contracts/channel-routing.js +1 -0
  16. package/dist/browser/contracts/collaboration.operations.js +1 -0
  17. package/dist/browser/contracts/customer-live-chat-grant.operations.js +1 -0
  18. package/dist/browser/contracts/delivery-eligibility.js +1 -0
  19. package/dist/browser/contracts/delivery-fallback-eligibility-validation.js +1 -0
  20. package/dist/browser/contracts/delivery-fallback-validation.js +1 -0
  21. package/dist/browser/contracts/delivery-fallback.js +1 -0
  22. package/dist/browser/contracts/delivery-intent-validation.js +1 -0
  23. package/dist/browser/contracts/delivery-intent.js +1 -0
  24. package/dist/browser/contracts/delivery-progress.js +1 -0
  25. package/dist/browser/contracts/discord-community-intelligence.operations.js +1 -0
  26. package/dist/browser/contracts/discord-community.events.js +1 -0
  27. package/dist/browser/contracts/discord-community.models.js +1 -0
  28. package/dist/browser/contracts/discord-community.operations.js +1 -0
  29. package/dist/browser/contracts/ecosystem-attachment.operations.js +1 -0
  30. package/dist/browser/contracts/ecosystem-auth.operations.js +1 -0
  31. package/dist/browser/contracts/ecosystem-binding.operations.js +1 -0
  32. package/dist/browser/contracts/ecosystem-connection-subscription.events.js +1 -0
  33. package/dist/browser/contracts/ecosystem-governed-work-v2.operations.js +1 -0
  34. package/dist/browser/contracts/ecosystem-governed-work.operations.js +1 -0
  35. package/dist/browser/contracts/ecosystem-identity-v3.operations.js +1 -0
  36. package/dist/browser/contracts/ecosystem-identity.operations.js +1 -0
  37. package/dist/browser/contracts/ecosystem-message.operations.js +1 -0
  38. package/dist/browser/contracts/ecosystem-messaging.dtos.js +0 -0
  39. package/dist/browser/contracts/ecosystem-messaging.events.js +1 -0
  40. package/dist/browser/contracts/ecosystem-messaging.models.js +1 -0
  41. package/dist/browser/contracts/ecosystem-navigation-v3.operations.js +1 -0
  42. package/dist/browser/contracts/ecosystem-webhook.operations.js +1 -0
  43. package/dist/browser/contracts/ecosystem-workspace.operations.js +1 -0
  44. package/dist/browser/contracts/enums.js +1 -0
  45. package/dist/browser/contracts/erasure.operations.js +1 -0
  46. package/dist/browser/contracts/events.js +1 -0
  47. package/dist/browser/contracts/index.js +1 -0
  48. package/dist/browser/contracts/ingestion.js +1 -0
  49. package/dist/browser/contracts/ingress-admission-policy.js +1 -0
  50. package/dist/browser/contracts/ingress-admission.js +1 -0
  51. package/dist/browser/contracts/models.js +1 -0
  52. package/dist/browser/contracts/operations.js +1 -0
  53. package/dist/browser/contracts/persistence.js +1 -0
  54. package/dist/browser/contracts/preference-resolution.js +1 -0
  55. package/dist/browser/contracts/query.operations.js +1 -0
  56. package/dist/browser/contracts/sequence-intent.js +1 -0
  57. package/dist/browser/contracts/sovereignty.js +1 -0
  58. package/dist/browser/contracts/support-internal-note.operations.js +1 -0
  59. package/dist/browser/contracts/thread-link-kind.js +1 -0
  60. package/dist/browser/contracts/thread-message.operations.js +1 -0
  61. package/dist/browser/events/index.js +1 -0
  62. package/dist/browser/fixtures/agent-omnichannel-primitives.js +1 -0
  63. package/dist/browser/fixtures/agent-omnichannel.js +1 -0
  64. package/dist/browser/fixtures/gtm-learning-loop-neutral.parts.js +1 -0
  65. package/dist/browser/fixtures/index.js +1 -0
  66. package/dist/browser/fixtures/normalized-ingestion.js +1 -0
  67. package/dist/browser/index.js +1 -0
  68. package/dist/browser/queries/index.js +1 -0
  69. package/dist/browser/types/domain-command.js +0 -0
  70. package/dist/browser/types/index.js +1 -0
  71. package/dist/browser/validation/domain-command.js +1 -0
  72. package/dist/browser/validation/index.js +1 -0
  73. package/dist/capabilities/comms-ai.capabilities.d.ts +72 -0
  74. package/dist/capabilities/comms-ai.capabilities.js +2 -0
  75. package/dist/capabilities/communication-os-capability-boundary.test.d.ts +1 -0
  76. package/dist/capabilities/communication-os.capability-ids.d.ts +39 -0
  77. package/dist/capabilities/communication-os.capability-ids.js +2 -0
  78. package/dist/capabilities/communication-os.capability-ids.test.d.ts +1 -0
  79. package/dist/capabilities/ecosystem-messaging.capabilities.d.ts +9 -0
  80. package/dist/capabilities/ecosystem-messaging.capabilities.js +2 -0
  81. package/dist/capabilities/index.d.ts +4 -0
  82. package/dist/capabilities/index.js +2 -0
  83. package/dist/commands/comms-ai.commands.d.ts +272 -0
  84. package/dist/commands/comms-ai.commands.js +2 -0
  85. package/dist/commands/index.d.ts +10 -0
  86. package/dist/commands/index.js +2 -0
  87. package/dist/contracts/agent-communication.d.ts +108 -0
  88. package/dist/contracts/agent-communication.js +2 -0
  89. package/dist/contracts/agent-communication.test.d.ts +1 -0
  90. package/dist/contracts/agent-lifecycle-projection.d.ts +98 -0
  91. package/dist/contracts/agent-lifecycle-projection.js +2 -0
  92. package/dist/contracts/agent-lifecycle-projection.test.d.ts +1 -0
  93. package/dist/contracts/agent-surface-control.d.ts +210 -0
  94. package/dist/contracts/agent-surface-control.js +2 -0
  95. package/dist/contracts/agent-surface-control.test.d.ts +1 -0
  96. package/dist/contracts/ai-assistance.operations.d.ts +187 -0
  97. package/dist/contracts/ai-assistance.operations.js +2 -0
  98. package/dist/contracts/artifact-digest.d.ts +3 -0
  99. package/dist/contracts/artifact-digest.js +2 -0
  100. package/dist/contracts/canonical-agent-conversation.d.ts +46 -0
  101. package/dist/contracts/canonical-agent-conversation.js +2 -0
  102. package/dist/contracts/canonical-agent-conversation.test.d.ts +1 -0
  103. package/dist/contracts/channel-preferences.d.ts +115 -0
  104. package/dist/contracts/channel-preferences.js +2 -0
  105. package/dist/contracts/channel-routing.d.ts +58 -0
  106. package/dist/contracts/channel-routing.js +2 -0
  107. package/dist/contracts/channel-routing.test.d.ts +1 -0
  108. package/dist/contracts/collaboration.operations.d.ts +315 -0
  109. package/dist/contracts/collaboration.operations.js +2 -0
  110. package/dist/contracts/customer-live-chat-grant.operations.d.ts +132 -0
  111. package/dist/contracts/customer-live-chat-grant.operations.js +2 -0
  112. package/dist/contracts/delivery-contracts.test.d.ts +1 -0
  113. package/dist/contracts/delivery-eligibility.d.ts +126 -0
  114. package/dist/contracts/delivery-eligibility.js +2 -0
  115. package/dist/contracts/delivery-eligibility.test.d.ts +1 -0
  116. package/dist/contracts/delivery-fallback-eligibility-validation.d.ts +6 -0
  117. package/dist/contracts/delivery-fallback-eligibility-validation.js +2 -0
  118. package/dist/contracts/delivery-fallback-validation.d.ts +24 -0
  119. package/dist/contracts/delivery-fallback-validation.js +2 -0
  120. package/dist/contracts/delivery-fallback.d.ts +117 -0
  121. package/dist/contracts/delivery-fallback.js +2 -0
  122. package/dist/contracts/delivery-intent-validation.d.ts +13 -0
  123. package/dist/contracts/delivery-intent-validation.js +2 -0
  124. package/dist/contracts/delivery-intent.d.ts +137 -0
  125. package/dist/contracts/delivery-intent.js +2 -0
  126. package/dist/contracts/delivery-progress.d.ts +61 -0
  127. package/dist/contracts/delivery-progress.js +2 -0
  128. package/dist/contracts/discord-community-intelligence.operations.d.ts +405 -0
  129. package/dist/contracts/discord-community-intelligence.operations.js +2 -0
  130. package/dist/contracts/discord-community.events.d.ts +162 -0
  131. package/dist/contracts/discord-community.events.js +2 -0
  132. package/dist/contracts/discord-community.models.d.ts +167 -0
  133. package/dist/contracts/discord-community.models.js +2 -0
  134. package/dist/contracts/discord-community.operations.d.ts +663 -0
  135. package/dist/contracts/discord-community.operations.js +2 -0
  136. package/dist/contracts/discord-community.test.d.ts +1 -0
  137. package/dist/contracts/ecosystem-attachment.operations.d.ts +129 -0
  138. package/dist/contracts/ecosystem-attachment.operations.js +2 -0
  139. package/dist/contracts/ecosystem-auth.operations.d.ts +345 -0
  140. package/dist/contracts/ecosystem-auth.operations.js +2 -0
  141. package/dist/contracts/ecosystem-binding.operations.d.ts +231 -0
  142. package/dist/contracts/ecosystem-binding.operations.js +2 -0
  143. package/dist/contracts/ecosystem-connection-subscription.events.d.ts +332 -0
  144. package/dist/contracts/ecosystem-connection-subscription.events.js +2 -0
  145. package/dist/contracts/ecosystem-governed-work-v2.operations.d.ts +234 -0
  146. package/dist/contracts/ecosystem-governed-work-v2.operations.js +2 -0
  147. package/dist/contracts/ecosystem-governed-work.operations.d.ts +265 -0
  148. package/dist/contracts/ecosystem-governed-work.operations.js +2 -0
  149. package/dist/contracts/ecosystem-governed-work.operations.test.d.ts +1 -0
  150. package/dist/contracts/ecosystem-identity-v3.operations.d.ts +65 -0
  151. package/dist/contracts/ecosystem-identity-v3.operations.js +2 -0
  152. package/dist/contracts/ecosystem-identity.operations.d.ts +174 -0
  153. package/dist/contracts/ecosystem-identity.operations.js +2 -0
  154. package/dist/contracts/ecosystem-identity.operations.test.d.ts +1 -0
  155. package/dist/contracts/ecosystem-message.operations.d.ts +1092 -0
  156. package/dist/contracts/ecosystem-message.operations.js +2 -0
  157. package/dist/contracts/ecosystem-messaging.dtos.d.ts +68 -0
  158. package/dist/contracts/ecosystem-messaging.dtos.js +1 -0
  159. package/dist/contracts/ecosystem-messaging.dtos.test.d.ts +1 -0
  160. package/dist/contracts/ecosystem-messaging.events.d.ts +608 -0
  161. package/dist/contracts/ecosystem-messaging.events.js +2 -0
  162. package/dist/contracts/ecosystem-messaging.models.d.ts +386 -0
  163. package/dist/contracts/ecosystem-messaging.models.js +2 -0
  164. package/dist/contracts/ecosystem-messaging.test.d.ts +1 -0
  165. package/dist/contracts/ecosystem-navigation-v3.operations.d.ts +149 -0
  166. package/dist/contracts/ecosystem-navigation-v3.operations.js +2 -0
  167. package/dist/contracts/ecosystem-webhook.operations.d.ts +187 -0
  168. package/dist/contracts/ecosystem-webhook.operations.js +2 -0
  169. package/dist/contracts/ecosystem-workspace.operations.d.ts +590 -0
  170. package/dist/contracts/ecosystem-workspace.operations.js +2 -0
  171. package/dist/contracts/enums.d.ts +9 -0
  172. package/dist/contracts/enums.js +2 -0
  173. package/dist/contracts/erasure.operations.d.ts +114 -0
  174. package/dist/contracts/erasure.operations.js +2 -0
  175. package/dist/contracts/erasure.test.d.ts +1 -0
  176. package/dist/contracts/events.d.ts +174 -0
  177. package/dist/contracts/events.js +2 -0
  178. package/dist/contracts/index.d.ts +43 -0
  179. package/dist/contracts/index.js +2 -0
  180. package/dist/contracts/ingestion.d.ts +169 -0
  181. package/dist/contracts/ingestion.js +2 -0
  182. package/dist/contracts/ingress-admission-policy.d.ts +14 -0
  183. package/dist/contracts/ingress-admission-policy.js +2 -0
  184. package/dist/contracts/ingress-admission.d.ts +184 -0
  185. package/dist/contracts/ingress-admission.js +2 -0
  186. package/dist/contracts/ingress-admission.test.d.ts +1 -0
  187. package/dist/contracts/models.d.ts +851 -0
  188. package/dist/contracts/models.js +2 -0
  189. package/dist/contracts/operations.d.ts +5 -0
  190. package/dist/contracts/operations.js +2 -0
  191. package/dist/contracts/persistence.d.ts +353 -0
  192. package/dist/contracts/persistence.js +2 -0
  193. package/dist/contracts/persistence.test.d.ts +1 -0
  194. package/dist/contracts/preference-resolution.d.ts +154 -0
  195. package/dist/contracts/preference-resolution.js +2 -0
  196. package/dist/contracts/preference-resolution.test.d.ts +1 -0
  197. package/dist/contracts/query.operations.d.ts +600 -0
  198. package/dist/contracts/query.operations.js +2 -0
  199. package/dist/contracts/sequence-intent.d.ts +103 -0
  200. package/dist/contracts/sequence-intent.js +2 -0
  201. package/dist/contracts/sequence-intent.test.d.ts +1 -0
  202. package/dist/contracts/sovereignty.d.ts +164 -0
  203. package/dist/contracts/sovereignty.js +2 -0
  204. package/dist/contracts/support-internal-note.operations.d.ts +309 -0
  205. package/dist/contracts/support-internal-note.operations.js +2 -0
  206. package/dist/contracts/support-internal-note.operations.test.d.ts +1 -0
  207. package/dist/contracts/thread-link-kind.d.ts +20 -0
  208. package/dist/contracts/thread-link-kind.js +2 -0
  209. package/dist/contracts/thread-message.operations.d.ts +485 -0
  210. package/dist/contracts/thread-message.operations.js +2 -0
  211. package/dist/events/index.d.ts +4 -0
  212. package/dist/events/index.js +2 -0
  213. package/dist/fixtures/agent-omnichannel-primitives.d.ts +240 -0
  214. package/dist/fixtures/agent-omnichannel-primitives.js +2 -0
  215. package/dist/fixtures/agent-omnichannel.d.ts +682 -0
  216. package/dist/fixtures/agent-omnichannel.js +2 -0
  217. package/dist/fixtures/agent-omnichannel.test.d.ts +1 -0
  218. package/dist/fixtures/gtm-learning-loop-neutral.parts.d.ts +20 -0
  219. package/dist/fixtures/gtm-learning-loop-neutral.parts.js +2 -0
  220. package/dist/fixtures/index.d.ts +3 -0
  221. package/dist/fixtures/index.js +2 -0
  222. package/dist/fixtures/normalized-ingestion.d.ts +102 -0
  223. package/dist/fixtures/normalized-ingestion.js +2 -0
  224. package/dist/fixtures/normalized-ingestion.test.d.ts +1 -0
  225. package/dist/index.d.ts +7 -0
  226. package/dist/index.js +2 -0
  227. package/dist/node/capabilities/comms-ai.capabilities.js +1 -0
  228. package/dist/node/capabilities/communication-os.capability-ids.js +1 -0
  229. package/dist/node/capabilities/ecosystem-messaging.capabilities.js +1 -0
  230. package/dist/node/capabilities/index.js +1 -0
  231. package/dist/node/commands/comms-ai.commands.js +1 -0
  232. package/dist/node/commands/index.js +1 -0
  233. package/dist/node/contracts/agent-communication.js +1 -0
  234. package/dist/node/contracts/agent-lifecycle-projection.js +1 -0
  235. package/dist/node/contracts/agent-surface-control.js +1 -0
  236. package/dist/node/contracts/ai-assistance.operations.js +1 -0
  237. package/dist/node/contracts/artifact-digest.js +1 -0
  238. package/dist/node/contracts/canonical-agent-conversation.js +1 -0
  239. package/dist/node/contracts/channel-preferences.js +1 -0
  240. package/dist/node/contracts/channel-routing.js +1 -0
  241. package/dist/node/contracts/collaboration.operations.js +1 -0
  242. package/dist/node/contracts/customer-live-chat-grant.operations.js +1 -0
  243. package/dist/node/contracts/delivery-eligibility.js +1 -0
  244. package/dist/node/contracts/delivery-fallback-eligibility-validation.js +1 -0
  245. package/dist/node/contracts/delivery-fallback-validation.js +1 -0
  246. package/dist/node/contracts/delivery-fallback.js +1 -0
  247. package/dist/node/contracts/delivery-intent-validation.js +1 -0
  248. package/dist/node/contracts/delivery-intent.js +1 -0
  249. package/dist/node/contracts/delivery-progress.js +1 -0
  250. package/dist/node/contracts/discord-community-intelligence.operations.js +1 -0
  251. package/dist/node/contracts/discord-community.events.js +1 -0
  252. package/dist/node/contracts/discord-community.models.js +1 -0
  253. package/dist/node/contracts/discord-community.operations.js +1 -0
  254. package/dist/node/contracts/ecosystem-attachment.operations.js +1 -0
  255. package/dist/node/contracts/ecosystem-auth.operations.js +1 -0
  256. package/dist/node/contracts/ecosystem-binding.operations.js +1 -0
  257. package/dist/node/contracts/ecosystem-connection-subscription.events.js +1 -0
  258. package/dist/node/contracts/ecosystem-governed-work-v2.operations.js +1 -0
  259. package/dist/node/contracts/ecosystem-governed-work.operations.js +1 -0
  260. package/dist/node/contracts/ecosystem-identity-v3.operations.js +1 -0
  261. package/dist/node/contracts/ecosystem-identity.operations.js +1 -0
  262. package/dist/node/contracts/ecosystem-message.operations.js +1 -0
  263. package/dist/node/contracts/ecosystem-messaging.dtos.js +0 -0
  264. package/dist/node/contracts/ecosystem-messaging.events.js +1 -0
  265. package/dist/node/contracts/ecosystem-messaging.models.js +1 -0
  266. package/dist/node/contracts/ecosystem-navigation-v3.operations.js +1 -0
  267. package/dist/node/contracts/ecosystem-webhook.operations.js +1 -0
  268. package/dist/node/contracts/ecosystem-workspace.operations.js +1 -0
  269. package/dist/node/contracts/enums.js +1 -0
  270. package/dist/node/contracts/erasure.operations.js +1 -0
  271. package/dist/node/contracts/events.js +1 -0
  272. package/dist/node/contracts/index.js +1 -0
  273. package/dist/node/contracts/ingestion.js +1 -0
  274. package/dist/node/contracts/ingress-admission-policy.js +1 -0
  275. package/dist/node/contracts/ingress-admission.js +1 -0
  276. package/dist/node/contracts/models.js +1 -0
  277. package/dist/node/contracts/operations.js +1 -0
  278. package/dist/node/contracts/persistence.js +1 -0
  279. package/dist/node/contracts/preference-resolution.js +1 -0
  280. package/dist/node/contracts/query.operations.js +1 -0
  281. package/dist/node/contracts/sequence-intent.js +1 -0
  282. package/dist/node/contracts/sovereignty.js +1 -0
  283. package/dist/node/contracts/support-internal-note.operations.js +1 -0
  284. package/dist/node/contracts/thread-link-kind.js +1 -0
  285. package/dist/node/contracts/thread-message.operations.js +1 -0
  286. package/dist/node/events/index.js +1 -0
  287. package/dist/node/fixtures/agent-omnichannel-primitives.js +1 -0
  288. package/dist/node/fixtures/agent-omnichannel.js +1 -0
  289. package/dist/node/fixtures/gtm-learning-loop-neutral.parts.js +1 -0
  290. package/dist/node/fixtures/index.js +1 -0
  291. package/dist/node/fixtures/normalized-ingestion.js +1 -0
  292. package/dist/node/index.js +1 -0
  293. package/dist/node/queries/index.js +1 -0
  294. package/dist/node/types/domain-command.js +0 -0
  295. package/dist/node/types/index.js +1 -0
  296. package/dist/node/validation/domain-command.js +1 -0
  297. package/dist/node/validation/index.js +1 -0
  298. package/dist/package-exports.test.d.ts +1 -0
  299. package/dist/queries/index.d.ts +4 -0
  300. package/dist/queries/index.js +2 -0
  301. package/dist/types/domain-command.d.ts +54 -0
  302. package/dist/types/domain-command.js +1 -0
  303. package/dist/types/index.d.ts +3 -0
  304. package/dist/types/index.js +2 -0
  305. package/dist/validation/domain-command.d.ts +3 -0
  306. package/dist/validation/domain-command.js +2 -0
  307. package/dist/validation/index.d.ts +53 -0
  308. package/dist/validation/index.js +2 -0
  309. package/package.json +1227 -0
@@ -0,0 +1,590 @@
1
+ export declare const CreateCommunicationSpaceV2Command: import("@lssm/lib.contracts-spec").OperationSpec<import("@lssm/lib.schema").SchemaModel<{
2
+ id: {
3
+ type: import("@lssm/lib.schema").FieldType<string, string>;
4
+ isOptional: false;
5
+ };
6
+ tenantId: {
7
+ type: import("@lssm/lib.schema").FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ workspaceId: {
11
+ type: import("@lssm/lib.schema").FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ name: {
15
+ type: import("@lssm/lib.schema").FieldType<string, string>;
16
+ isOptional: false;
17
+ };
18
+ kind: {
19
+ type: import("@lssm/lib.schema").EnumType<[string, string]>;
20
+ isOptional: false;
21
+ };
22
+ encryptionMode: {
23
+ type: import("@lssm/lib.schema").EnumType<[string, string]>;
24
+ isOptional: false;
25
+ };
26
+ createdAt: {
27
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
28
+ isOptional: false;
29
+ };
30
+ }>, import("@lssm/lib.schema").SchemaModel<{
31
+ id: {
32
+ type: import("@lssm/lib.schema").FieldType<string, string>;
33
+ isOptional: false;
34
+ };
35
+ tenantId: {
36
+ type: import("@lssm/lib.schema").FieldType<string, string>;
37
+ isOptional: false;
38
+ };
39
+ workspaceId: {
40
+ type: import("@lssm/lib.schema").FieldType<string, string>;
41
+ isOptional: false;
42
+ };
43
+ name: {
44
+ type: import("@lssm/lib.schema").FieldType<string, string>;
45
+ isOptional: false;
46
+ };
47
+ kind: {
48
+ type: import("@lssm/lib.schema").EnumType<[string, string]>;
49
+ isOptional: false;
50
+ };
51
+ encryptionMode: {
52
+ type: import("@lssm/lib.schema").EnumType<[string, string]>;
53
+ isOptional: false;
54
+ };
55
+ createdAt: {
56
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
57
+ isOptional: false;
58
+ };
59
+ }>, undefined>;
60
+ export declare const CreateCommunicationRoomV2Command: import("@lssm/lib.contracts-spec").OperationSpec<import("@lssm/lib.schema").SchemaModel<{
61
+ id: {
62
+ type: import("@lssm/lib.schema").FieldType<string, string>;
63
+ isOptional: false;
64
+ };
65
+ tenantId: {
66
+ type: import("@lssm/lib.schema").FieldType<string, string>;
67
+ isOptional: false;
68
+ };
69
+ workspaceId: {
70
+ type: import("@lssm/lib.schema").FieldType<string, string>;
71
+ isOptional: false;
72
+ };
73
+ spaceId: {
74
+ type: import("@lssm/lib.schema").FieldType<string, string>;
75
+ isOptional: false;
76
+ };
77
+ name: {
78
+ type: import("@lssm/lib.schema").FieldType<string, string>;
79
+ isOptional: true;
80
+ };
81
+ roomKind: {
82
+ type: import("@lssm/lib.schema").FieldType<string, string>;
83
+ isOptional: false;
84
+ };
85
+ connectionIds: {
86
+ type: import("@lssm/lib.schema").FieldType<string, string>;
87
+ isArray: true;
88
+ isOptional: false;
89
+ };
90
+ createdAt: {
91
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
92
+ isOptional: false;
93
+ };
94
+ updatedAt: {
95
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
96
+ isOptional: false;
97
+ };
98
+ }>, import("@lssm/lib.schema").SchemaModel<{
99
+ id: {
100
+ type: import("@lssm/lib.schema").FieldType<string, string>;
101
+ isOptional: false;
102
+ };
103
+ tenantId: {
104
+ type: import("@lssm/lib.schema").FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ workspaceId: {
108
+ type: import("@lssm/lib.schema").FieldType<string, string>;
109
+ isOptional: false;
110
+ };
111
+ spaceId: {
112
+ type: import("@lssm/lib.schema").FieldType<string, string>;
113
+ isOptional: false;
114
+ };
115
+ name: {
116
+ type: import("@lssm/lib.schema").FieldType<string, string>;
117
+ isOptional: true;
118
+ };
119
+ roomKind: {
120
+ type: import("@lssm/lib.schema").FieldType<string, string>;
121
+ isOptional: false;
122
+ };
123
+ connectionIds: {
124
+ type: import("@lssm/lib.schema").FieldType<string, string>;
125
+ isArray: true;
126
+ isOptional: false;
127
+ };
128
+ createdAt: {
129
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
130
+ isOptional: false;
131
+ };
132
+ updatedAt: {
133
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
134
+ isOptional: false;
135
+ };
136
+ }>, undefined>;
137
+ export declare const ListCommunicationSpacesV2Query: import("@lssm/lib.contracts-spec").OperationSpec<import("@lssm/lib.schema").SchemaModel<{
138
+ tenantId: {
139
+ type: import("@lssm/lib.schema").FieldType<string, string>;
140
+ isOptional: false;
141
+ };
142
+ workspaceId: {
143
+ type: import("@lssm/lib.schema").FieldType<string, string>;
144
+ isOptional: false;
145
+ };
146
+ spaceId: {
147
+ type: import("@lssm/lib.schema").FieldType<string, string>;
148
+ isOptional: false;
149
+ };
150
+ }>, import("@lssm/lib.schema").SchemaModel<{
151
+ spaces: {
152
+ type: import("@lssm/lib.schema").SchemaModel<{
153
+ id: {
154
+ type: import("@lssm/lib.schema").FieldType<string, string>;
155
+ isOptional: false;
156
+ };
157
+ tenantId: {
158
+ type: import("@lssm/lib.schema").FieldType<string, string>;
159
+ isOptional: false;
160
+ };
161
+ workspaceId: {
162
+ type: import("@lssm/lib.schema").FieldType<string, string>;
163
+ isOptional: false;
164
+ };
165
+ name: {
166
+ type: import("@lssm/lib.schema").FieldType<string, string>;
167
+ isOptional: false;
168
+ };
169
+ kind: {
170
+ type: import("@lssm/lib.schema").EnumType<[string, string]>;
171
+ isOptional: false;
172
+ };
173
+ encryptionMode: {
174
+ type: import("@lssm/lib.schema").EnumType<[string, string]>;
175
+ isOptional: false;
176
+ };
177
+ createdAt: {
178
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
179
+ isOptional: false;
180
+ };
181
+ }>;
182
+ isArray: true;
183
+ isOptional: false;
184
+ };
185
+ }>, undefined>;
186
+ export declare const ListCommunicationRoomsV2Query: import("@lssm/lib.contracts-spec").OperationSpec<import("@lssm/lib.schema").SchemaModel<{
187
+ tenantId: {
188
+ type: import("@lssm/lib.schema").FieldType<string, string>;
189
+ isOptional: false;
190
+ };
191
+ workspaceId: {
192
+ type: import("@lssm/lib.schema").FieldType<string, string>;
193
+ isOptional: false;
194
+ };
195
+ spaceId: {
196
+ type: import("@lssm/lib.schema").FieldType<string, string>;
197
+ isOptional: false;
198
+ };
199
+ }>, import("@lssm/lib.schema").SchemaModel<{
200
+ rooms: {
201
+ type: import("@lssm/lib.schema").SchemaModel<{
202
+ id: {
203
+ type: import("@lssm/lib.schema").FieldType<string, string>;
204
+ isOptional: false;
205
+ };
206
+ tenantId: {
207
+ type: import("@lssm/lib.schema").FieldType<string, string>;
208
+ isOptional: false;
209
+ };
210
+ workspaceId: {
211
+ type: import("@lssm/lib.schema").FieldType<string, string>;
212
+ isOptional: false;
213
+ };
214
+ spaceId: {
215
+ type: import("@lssm/lib.schema").FieldType<string, string>;
216
+ isOptional: false;
217
+ };
218
+ name: {
219
+ type: import("@lssm/lib.schema").FieldType<string, string>;
220
+ isOptional: true;
221
+ };
222
+ roomKind: {
223
+ type: import("@lssm/lib.schema").FieldType<string, string>;
224
+ isOptional: false;
225
+ };
226
+ connectionIds: {
227
+ type: import("@lssm/lib.schema").FieldType<string, string>;
228
+ isArray: true;
229
+ isOptional: false;
230
+ };
231
+ createdAt: {
232
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
233
+ isOptional: false;
234
+ };
235
+ updatedAt: {
236
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
237
+ isOptional: false;
238
+ };
239
+ }>;
240
+ isArray: true;
241
+ isOptional: false;
242
+ };
243
+ }>, undefined>;
244
+ export declare const SetCommunicationMembershipV2Command: import("@lssm/lib.contracts-spec").OperationSpec<import("@lssm/lib.schema").SchemaModel<{
245
+ id: {
246
+ type: import("@lssm/lib.schema").FieldType<string, string>;
247
+ isOptional: false;
248
+ };
249
+ tenantId: {
250
+ type: import("@lssm/lib.schema").FieldType<string, string>;
251
+ isOptional: false;
252
+ };
253
+ workspaceId: {
254
+ type: import("@lssm/lib.schema").FieldType<string, string>;
255
+ isOptional: false;
256
+ };
257
+ spaceId: {
258
+ type: import("@lssm/lib.schema").FieldType<string, string>;
259
+ isOptional: false;
260
+ };
261
+ roomId: {
262
+ type: import("@lssm/lib.schema").FieldType<string, string>;
263
+ isOptional: false;
264
+ };
265
+ principalId: {
266
+ type: import("@lssm/lib.schema").FieldType<string, string>;
267
+ isOptional: false;
268
+ };
269
+ role: {
270
+ type: import("@lssm/lib.schema").FieldType<string, string>;
271
+ isOptional: false;
272
+ };
273
+ state: {
274
+ type: import("@lssm/lib.schema").EnumType<[string, string]>;
275
+ isOptional: false;
276
+ };
277
+ capabilities: {
278
+ type: import("@lssm/lib.schema").FieldType<string, string>;
279
+ isArray: true;
280
+ isOptional: false;
281
+ };
282
+ expiresAt: {
283
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
284
+ isOptional: true;
285
+ };
286
+ revokedAt: {
287
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
288
+ isOptional: true;
289
+ };
290
+ createdAt: {
291
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
292
+ isOptional: false;
293
+ };
294
+ }>, import("@lssm/lib.schema").SchemaModel<{
295
+ id: {
296
+ type: import("@lssm/lib.schema").FieldType<string, string>;
297
+ isOptional: false;
298
+ };
299
+ tenantId: {
300
+ type: import("@lssm/lib.schema").FieldType<string, string>;
301
+ isOptional: false;
302
+ };
303
+ workspaceId: {
304
+ type: import("@lssm/lib.schema").FieldType<string, string>;
305
+ isOptional: false;
306
+ };
307
+ spaceId: {
308
+ type: import("@lssm/lib.schema").FieldType<string, string>;
309
+ isOptional: false;
310
+ };
311
+ roomId: {
312
+ type: import("@lssm/lib.schema").FieldType<string, string>;
313
+ isOptional: false;
314
+ };
315
+ principalId: {
316
+ type: import("@lssm/lib.schema").FieldType<string, string>;
317
+ isOptional: false;
318
+ };
319
+ role: {
320
+ type: import("@lssm/lib.schema").FieldType<string, string>;
321
+ isOptional: false;
322
+ };
323
+ state: {
324
+ type: import("@lssm/lib.schema").EnumType<[string, string]>;
325
+ isOptional: false;
326
+ };
327
+ capabilities: {
328
+ type: import("@lssm/lib.schema").FieldType<string, string>;
329
+ isArray: true;
330
+ isOptional: false;
331
+ };
332
+ expiresAt: {
333
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
334
+ isOptional: true;
335
+ };
336
+ revokedAt: {
337
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
338
+ isOptional: true;
339
+ };
340
+ createdAt: {
341
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
342
+ isOptional: false;
343
+ };
344
+ }>, undefined>;
345
+ export declare const SetCommunicationAuthorityGrantV2Command: import("@lssm/lib.contracts-spec").OperationSpec<import("@lssm/lib.schema").SchemaModel<{
346
+ id: {
347
+ type: import("@lssm/lib.schema").FieldType<string, string>;
348
+ isOptional: false;
349
+ };
350
+ tenantId: {
351
+ type: import("@lssm/lib.schema").FieldType<string, string>;
352
+ isOptional: false;
353
+ };
354
+ workspaceId: {
355
+ type: import("@lssm/lib.schema").FieldType<string, string>;
356
+ isOptional: false;
357
+ };
358
+ spaceId: {
359
+ type: import("@lssm/lib.schema").FieldType<string, string>;
360
+ isOptional: false;
361
+ };
362
+ roomId: {
363
+ type: import("@lssm/lib.schema").FieldType<string, string>;
364
+ isOptional: true;
365
+ };
366
+ connectionId: {
367
+ type: import("@lssm/lib.schema").FieldType<string, string>;
368
+ isOptional: true;
369
+ };
370
+ principalId: {
371
+ type: import("@lssm/lib.schema").FieldType<string, string>;
372
+ isOptional: false;
373
+ };
374
+ capabilities: {
375
+ type: import("@lssm/lib.schema").FieldType<string, string>;
376
+ isArray: true;
377
+ isOptional: false;
378
+ };
379
+ grantedBy: {
380
+ type: import("@lssm/lib.schema").FieldType<string, string>;
381
+ isOptional: false;
382
+ };
383
+ expiresAt: {
384
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
385
+ isOptional: true;
386
+ };
387
+ revokedAt: {
388
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
389
+ isOptional: true;
390
+ };
391
+ createdAt: {
392
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
393
+ isOptional: false;
394
+ };
395
+ }>, import("@lssm/lib.schema").SchemaModel<{
396
+ id: {
397
+ type: import("@lssm/lib.schema").FieldType<string, string>;
398
+ isOptional: false;
399
+ };
400
+ tenantId: {
401
+ type: import("@lssm/lib.schema").FieldType<string, string>;
402
+ isOptional: false;
403
+ };
404
+ workspaceId: {
405
+ type: import("@lssm/lib.schema").FieldType<string, string>;
406
+ isOptional: false;
407
+ };
408
+ spaceId: {
409
+ type: import("@lssm/lib.schema").FieldType<string, string>;
410
+ isOptional: false;
411
+ };
412
+ roomId: {
413
+ type: import("@lssm/lib.schema").FieldType<string, string>;
414
+ isOptional: true;
415
+ };
416
+ connectionId: {
417
+ type: import("@lssm/lib.schema").FieldType<string, string>;
418
+ isOptional: true;
419
+ };
420
+ principalId: {
421
+ type: import("@lssm/lib.schema").FieldType<string, string>;
422
+ isOptional: false;
423
+ };
424
+ capabilities: {
425
+ type: import("@lssm/lib.schema").FieldType<string, string>;
426
+ isArray: true;
427
+ isOptional: false;
428
+ };
429
+ grantedBy: {
430
+ type: import("@lssm/lib.schema").FieldType<string, string>;
431
+ isOptional: false;
432
+ };
433
+ expiresAt: {
434
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
435
+ isOptional: true;
436
+ };
437
+ revokedAt: {
438
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
439
+ isOptional: true;
440
+ };
441
+ createdAt: {
442
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
443
+ isOptional: false;
444
+ };
445
+ }>, undefined>;
446
+ export declare const ConnectCommunicationChannelV2Command: import("@lssm/lib.contracts-spec").OperationSpec<import("@lssm/lib.schema").SchemaModel<{
447
+ id: {
448
+ type: import("@lssm/lib.schema").FieldType<string, string>;
449
+ isOptional: false;
450
+ };
451
+ tenantId: {
452
+ type: import("@lssm/lib.schema").FieldType<string, string>;
453
+ isOptional: false;
454
+ };
455
+ workspaceId: {
456
+ type: import("@lssm/lib.schema").FieldType<string, string>;
457
+ isOptional: false;
458
+ };
459
+ spaceId: {
460
+ type: import("@lssm/lib.schema").FieldType<string, string>;
461
+ isOptional: false;
462
+ };
463
+ network: {
464
+ type: import("@lssm/lib.schema").FieldType<string, string>;
465
+ isOptional: false;
466
+ };
467
+ placement: {
468
+ type: import("@lssm/lib.schema").EnumType<[string, string, string]>;
469
+ isOptional: false;
470
+ };
471
+ externalAccountRef: {
472
+ type: import("@lssm/lib.schema").FieldType<string, string>;
473
+ isOptional: false;
474
+ };
475
+ credentialRef: {
476
+ type: import("@lssm/lib.schema").FieldType<string, string>;
477
+ isOptional: false;
478
+ };
479
+ health: {
480
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string, string]>;
481
+ isOptional: false;
482
+ };
483
+ capabilities: {
484
+ type: import("@lssm/lib.schema").FieldType<string, string>;
485
+ isArray: true;
486
+ isOptional: false;
487
+ };
488
+ createdAt: {
489
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
490
+ isOptional: false;
491
+ };
492
+ updatedAt: {
493
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
494
+ isOptional: false;
495
+ };
496
+ }>, import("@lssm/lib.schema").SchemaModel<{
497
+ id: {
498
+ type: import("@lssm/lib.schema").FieldType<string, string>;
499
+ isOptional: false;
500
+ };
501
+ tenantId: {
502
+ type: import("@lssm/lib.schema").FieldType<string, string>;
503
+ isOptional: false;
504
+ };
505
+ workspaceId: {
506
+ type: import("@lssm/lib.schema").FieldType<string, string>;
507
+ isOptional: false;
508
+ };
509
+ spaceId: {
510
+ type: import("@lssm/lib.schema").FieldType<string, string>;
511
+ isOptional: false;
512
+ };
513
+ network: {
514
+ type: import("@lssm/lib.schema").FieldType<string, string>;
515
+ isOptional: false;
516
+ };
517
+ placement: {
518
+ type: import("@lssm/lib.schema").EnumType<[string, string, string]>;
519
+ isOptional: false;
520
+ };
521
+ externalAccountRef: {
522
+ type: import("@lssm/lib.schema").FieldType<string, string>;
523
+ isOptional: false;
524
+ };
525
+ credentialRef: {
526
+ type: import("@lssm/lib.schema").FieldType<string, string>;
527
+ isOptional: false;
528
+ };
529
+ health: {
530
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string, string]>;
531
+ isOptional: false;
532
+ };
533
+ capabilities: {
534
+ type: import("@lssm/lib.schema").FieldType<string, string>;
535
+ isArray: true;
536
+ isOptional: false;
537
+ };
538
+ createdAt: {
539
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
540
+ isOptional: false;
541
+ };
542
+ updatedAt: {
543
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
544
+ isOptional: false;
545
+ };
546
+ }>, undefined>;
547
+ export declare const SyncCommunicationConnectionV2Command: import("@lssm/lib.contracts-spec").OperationSpec<import("@lssm/lib.schema").SchemaModel<{
548
+ tenantId: {
549
+ type: import("@lssm/lib.schema").FieldType<string, string>;
550
+ isOptional: false;
551
+ };
552
+ workspaceId: {
553
+ type: import("@lssm/lib.schema").FieldType<string, string>;
554
+ isOptional: false;
555
+ };
556
+ spaceId: {
557
+ type: import("@lssm/lib.schema").FieldType<string, string>;
558
+ isOptional: false;
559
+ };
560
+ connectionId: {
561
+ type: import("@lssm/lib.schema").FieldType<string, string>;
562
+ isOptional: false;
563
+ };
564
+ cursor: {
565
+ type: import("@lssm/lib.schema").FieldType<string, string>;
566
+ isOptional: true;
567
+ };
568
+ limit: {
569
+ type: import("@lssm/lib.schema").FieldType<number, number>;
570
+ isOptional: true;
571
+ };
572
+ }>, import("@lssm/lib.schema").SchemaModel<{
573
+ connectionId: {
574
+ type: import("@lssm/lib.schema").FieldType<string, string>;
575
+ isOptional: false;
576
+ };
577
+ nextCursor: {
578
+ type: import("@lssm/lib.schema").FieldType<string, string>;
579
+ isOptional: true;
580
+ };
581
+ acceptedEventIds: {
582
+ type: import("@lssm/lib.schema").FieldType<string, string>;
583
+ isArray: true;
584
+ isOptional: false;
585
+ };
586
+ hasMore: {
587
+ type: import("@lssm/lib.schema").FieldType<boolean, boolean>;
588
+ isOptional: false;
589
+ };
590
+ }>, undefined>;
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{defineCommand as s,defineQuery as g,docId as x}from"@lssm/lib.contracts-spec";import{defineSchemaModel as p,ScalarTypeEnum as t}from"@lssm/lib.schema";import{defineEnum as i,defineSchemaModel as n,ScalarTypeEnum as e}from"@lssm/lib.schema";var f=i("CommunicationSpaceKind",["personal","organization"]),O=i("CommunicationPrincipalKind",["human","agent","system"]),h=i("CommunicationConnectionPlacement",["device","managed_cloud","self_hosted"]),M=i("CommunicationConnectionNetwork",["email","sms","slack","teams","telegram","whatsapp","discord","matrix"]),S=i("CommunicationEncryptionMode",["client_encrypted","governed_server_indexable"]),C=i("CommunicationMembershipState",["active","revoked"]),A=i("CommunicationReceiptKind",["delivered","read"]),_=i("CommunicationConnectionHealth",["connecting","healthy","degraded","offline","revoked"]),y={id:"communication-os.ecosystem-messaging.v2",title:"CommunicationOS ecosystem messaging contracts",body:"Versioned, workspace-scoped contracts for personal and organization spaces, rooms, human and agent membership, hybrid channel connections, synchronized messages, and revocable outbound authority. CommunicationSpec remains canonical; provider protocols are adapters. V1 thread and draft-only operations remain unchanged.",kind:"reference",route:"/docs/communication-os/ecosystem-messaging-v2",visibility:"public"},u=n({name:"CommunicationScopeV2",description:"Strict tenant, workspace, and space boundary for messaging state",fields:{tenantId:{type:e.String_unsecure(),isOptional:!1},workspaceId:{type:e.String_unsecure(),isOptional:!1},spaceId:{type:e.String_unsecure(),isOptional:!1}}}),r=n({name:"CommunicationSpaceV2",description:"Personal or organization messaging boundary under one account",fields:{id:{type:e.String_unsecure(),isOptional:!1},tenantId:{type:e.String_unsecure(),isOptional:!1},workspaceId:{type:e.String_unsecure(),isOptional:!1},name:{type:e.String_unsecure(),isOptional:!1},kind:{type:f,isOptional:!1},encryptionMode:{type:S,isOptional:!1},createdAt:{type:e.DateTime(),isOptional:!1}}}),D=n({name:"CommunicationPrincipalV2",description:"Auditable human, agent, or system identity",fields:{id:{type:e.String_unsecure(),isOptional:!1},kind:{type:O,isOptional:!1},displayName:{type:e.String_unsecure(),isOptional:!1},ownerPrincipalId:{type:e.String_unsecure(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1}}}),c=n({name:"CommunicationRoomV2",description:"Room or direct-message projection inside one space",fields:{id:{type:e.String_unsecure(),isOptional:!1},tenantId:{type:e.String_unsecure(),isOptional:!1},workspaceId:{type:e.String_unsecure(),isOptional:!1},spaceId:{type:e.String_unsecure(),isOptional:!1},name:{type:e.String_unsecure(),isOptional:!0},roomKind:{type:e.String_unsecure(),isOptional:!1},connectionIds:{type:e.String_unsecure(),isArray:!0,isOptional:!1},createdAt:{type:e.DateTime(),isOptional:!1},updatedAt:{type:e.DateTime(),isOptional:!1}}}),l=n({name:"CommunicationRoomMembershipV2",description:"Revocable principal membership and room-scoped capabilities",fields:{id:{type:e.String_unsecure(),isOptional:!1},tenantId:{type:e.String_unsecure(),isOptional:!1},workspaceId:{type:e.String_unsecure(),isOptional:!1},spaceId:{type:e.String_unsecure(),isOptional:!1},roomId:{type:e.String_unsecure(),isOptional:!1},principalId:{type:e.String_unsecure(),isOptional:!1},role:{type:e.String_unsecure(),isOptional:!1},state:{type:C,isOptional:!1},capabilities:{type:e.String_unsecure(),isArray:!0,isOptional:!1},expiresAt:{type:e.DateTime(),isOptional:!0},revokedAt:{type:e.DateTime(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1}}}),m=n({name:"CommunicationChannelConnectionV2",description:"Credential-reference-only local, managed, or self-hosted channel connection",fields:{id:{type:e.String_unsecure(),isOptional:!1},tenantId:{type:e.String_unsecure(),isOptional:!1},workspaceId:{type:e.String_unsecure(),isOptional:!1},spaceId:{type:e.String_unsecure(),isOptional:!1},network:{type:e.String_unsecure(),isOptional:!1},placement:{type:h,isOptional:!1},externalAccountRef:{type:e.String_unsecure(),isOptional:!1},credentialRef:{type:e.String_unsecure(),isOptional:!1},health:{type:_,isOptional:!1},capabilities:{type:e.String_unsecure(),isArray:!0,isOptional:!1},createdAt:{type:e.DateTime(),isOptional:!1},updatedAt:{type:e.DateTime(),isOptional:!1}}}),b=n({name:"CommunicationAttachmentV2",description:"Public-safe metadata for an opaque, scope-bound message attachment",fields:{id:{type:e.String_unsecure(),isOptional:!1},name:{type:e.String_unsecure(),isOptional:!1},mimeType:{type:e.String_unsecure(),isOptional:!1},sizeBytes:{type:e.Int_unsecure(),isOptional:!1},sha256:{type:e.String_unsecure(),isOptional:!1},createdAt:{type:e.DateTime(),isOptional:!1}}}),T=n({name:"CommunicationMessageV2",description:"Canonical room message with explicit author and encryption posture",fields:{id:{type:e.String_unsecure(),isOptional:!1},tenantId:{type:e.String_unsecure(),isOptional:!1},workspaceId:{type:e.String_unsecure(),isOptional:!1},spaceId:{type:e.String_unsecure(),isOptional:!1},roomId:{type:e.String_unsecure(),isOptional:!1},authorPrincipalId:{type:e.String_unsecure(),isOptional:!1},connectionId:{type:e.String_unsecure(),isOptional:!0},externalMessageId:{type:e.String_unsecure(),isOptional:!0},body:{type:e.String_unsecure(),isOptional:!0},encryptedEnvelope:{type:e.JSONObject(),isOptional:!0},attachments:{type:b,isArray:!0,isOptional:!0},replyToMessageId:{type:e.String_unsecure(),isOptional:!0},revision:{type:e.Int_unsecure(),isOptional:!1},deletedAt:{type:e.DateTime(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1},updatedAt:{type:e.DateTime(),isOptional:!1}}}),d=n({name:"CommunicationAuthorityGrantV2",description:"Explicit, revocable messaging authority granted to one principal",fields:{id:{type:e.String_unsecure(),isOptional:!1},tenantId:{type:e.String_unsecure(),isOptional:!1},workspaceId:{type:e.String_unsecure(),isOptional:!1},spaceId:{type:e.String_unsecure(),isOptional:!1},roomId:{type:e.String_unsecure(),isOptional:!0},connectionId:{type:e.String_unsecure(),isOptional:!0},principalId:{type:e.String_unsecure(),isOptional:!1},capabilities:{type:e.String_unsecure(),isArray:!0,isOptional:!1},grantedBy:{type:e.String_unsecure(),isOptional:!1},expiresAt:{type:e.DateTime(),isOptional:!0},revokedAt:{type:e.DateTime(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1}}});var o=["platform.communication-os"],a=[x(y.id)],B=s({meta:{key:"communication.space.create",version:"2.0.0",stability:"experimental",owners:[...o],tags:["communication","space","workspace"],description:"Create an isolated personal or organization messaging space",goal:"Keep messages, identities, agents, search, and policy inside one explicit boundary",context:"The caller must already have access to the containing tenant and workspace",docId:a},io:{input:r,output:r},policy:{auth:"user"}}),K=s({meta:{key:"communication.room.create",version:"2.0.0",stability:"experimental",owners:[...o],tags:["communication","room","membership"],description:"Create a room or direct-message projection inside one space",goal:"Give humans and agents one canonical collaboration container",context:"Connection-backed rooms retain provider identifiers only through connection references",docId:a},io:{input:c,output:c},policy:{auth:"user"}}),I=p({name:"ListCommunicationSpacesV2Output",fields:{spaces:{type:r,isArray:!0,isOptional:!1}}}),L=g({meta:{key:"communication.space.list",version:"2.0.0",stability:"experimental",owners:[...o],tags:["communication","space","workspace","query"],description:"List messaging spaces visible inside an authorized scope",goal:"Make space switching explicit without crossing an isolation boundary",context:"The authorization layer resolves accessible scopes; this query never widens the supplied scope",docId:a},io:{input:u,output:I},policy:{auth:"user"}}),v=p({name:"ListCommunicationRoomsV2Output",fields:{rooms:{type:c,isArray:!0,isOptional:!1}}}),j=g({meta:{key:"communication.room.list",version:"2.0.0",stability:"experimental",owners:[...o],tags:["communication","room","workspace","query"],description:"List canonical rooms inside one authorized messaging space",goal:"Drive inbox and room navigation from a replayable projection",context:"Rooms are projected only from the append-only journal partition selected by the supplied scope",docId:a},io:{input:u,output:v},policy:{auth:"user"}}),G=s({meta:{key:"communication.membership.set",version:"2.0.0",stability:"experimental",owners:[...o],tags:["communication","membership","agent","authority"],description:"Add, update, or revoke a human, agent, or system room membership",goal:"Make every participant and its capabilities explicit and auditable",context:"Revocation takes effect before the next effect-bearing operation",docId:a},io:{input:l,output:l},policy:{auth:"admin"}}),q=s({meta:{key:"communication.authority.set",version:"2.0.0",stability:"experimental",owners:[...o],tags:["communication","agent","authority","revocation"],description:"Grant or revoke scoped messaging authority for one principal",goal:"Permit human-equivalent agents without implicit or unbounded send access",context:"The runtime re-evaluates active membership, grant scope, expiry, and channel policy immediately before dispatch",docId:a},io:{input:d,output:d},policy:{auth:"admin"}}),N=s({meta:{key:"communication.connection.connect",version:"2.0.0",stability:"experimental",owners:[...o],tags:["communication","connection","hybrid","credentials"],description:"Register a device, managed-cloud, or self-hosted channel connection",goal:"Use one provider-neutral connection contract across all clients and workers",context:"Only a secret-manager reference may be persisted; raw provider credentials are forbidden",docId:a},io:{input:m,output:m},policy:{auth:"user"}}),k=p({name:"SyncCommunicationConnectionV2Input",fields:{tenantId:{type:t.String_unsecure(),isOptional:!1},workspaceId:{type:t.String_unsecure(),isOptional:!1},spaceId:{type:t.String_unsecure(),isOptional:!1},connectionId:{type:t.String_unsecure(),isOptional:!1},cursor:{type:t.String_unsecure(),isOptional:!0},limit:{type:t.Int_unsecure(),isOptional:!0}}}),V=p({name:"SyncCommunicationConnectionV2Output",fields:{connectionId:{type:t.String_unsecure(),isOptional:!1},nextCursor:{type:t.String_unsecure(),isOptional:!0},acceptedEventIds:{type:t.String_unsecure(),isArray:!0,isOptional:!1},hasMore:{type:t.Boolean(),isOptional:!1}}}),Q=s({meta:{key:"communication.connection.sync",version:"2.0.0",stability:"experimental",owners:[...o],tags:["communication","connection","sync","cursor"],description:"Advance an authenticated channel connection from a cursor",goal:"Provide deterministic, resumable synchronization across device and server workers",context:"Duplicate provider events must be suppressed by their connection-scoped idempotency key",docId:a},io:{input:k,output:V},policy:{auth:"user"}});export{N as ConnectCommunicationChannelV2Command,K as CreateCommunicationRoomV2Command,B as CreateCommunicationSpaceV2Command,j as ListCommunicationRoomsV2Query,L as ListCommunicationSpacesV2Query,q as SetCommunicationAuthorityGrantV2Command,G as SetCommunicationMembershipV2Command,Q as SyncCommunicationConnectionV2Command};
@@ -0,0 +1,9 @@
1
+ export declare const ChannelTypeEnum: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string]>;
2
+ export declare const ThreadStatusEnum: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string]>;
3
+ export declare const MessageStatusEnum: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
4
+ export declare const ReplyStatusEnum: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string]>;
5
+ export declare const HandoffStatusEnum: import("@lssm/lib.schema").EnumType<[string, string, string, string, string]>;
6
+ export declare const SuggestionStatusEnum: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
7
+ export declare const IntentCategoryEnum: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
8
+ export declare const ActionSafetyModeEnum: import("@lssm/lib.schema").EnumType<[string, string, string, string, string]>;
9
+ export declare const FeedbackOutcomeEnum: import("@lssm/lib.schema").EnumType<[string, string, string, string, string]>;
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{defineEnum as e}from"@lssm/lib.schema";var a=e("ChannelType",["email","sms","whatsapp","telegram","matrix","web_chat","voice","internal_chat","custom_adapter","future_bridge","unknown"]),n=e("ThreadStatus",["open","waiting_on_human","waiting_on_external_party","action_required","resolved","archived"]),o=e("MessageStatus",["received","normalized","classified","linked","triaged","replied","archived"]),r=e("ReplyStatus",["drafted","requires_review","approved","sent","failed","blocked_by_policy"]),d=e("HandoffStatus",["created","assigned","acknowledged","completed","reopened"]),i=e("SuggestionStatus",["generated","shown","accepted","edited","rejected","applied","expired"]),s=e("IntentCategory",["support","sales","bug_report","feature_request","billing","onboarding","coordination","general","spam","escalation"]),c=e("ActionSafetyMode",["read_only","draft_only","requires_review","policy_executable","blocked"]),u=e("FeedbackOutcome",["accepted","edited","rejected","unsafe","incomplete"]);export{c as ActionSafetyModeEnum,a as ChannelTypeEnum,u as FeedbackOutcomeEnum,d as HandoffStatusEnum,s as IntentCategoryEnum,o as MessageStatusEnum,r as ReplyStatusEnum,i as SuggestionStatusEnum,n as ThreadStatusEnum};