@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,114 @@
1
+ /**
2
+ * Governed GDPR/RGPD right-to-erasure command (pre-mortem #2, AC0.5).
3
+ *
4
+ * The handler emits a local `database.mutation.execute` delete descriptor AND a
5
+ * `ChannelAdapter.eraseSubject(...)` port call, resolving to one of three
6
+ * documented outcomes. When the channel provider physically cannot recall the
7
+ * data (SMTP/email already sent), the outcome is
8
+ * `erased_local_provider_retained_documented` and the response carries the
9
+ * documented retention window from the tenant Sovereignty Profile — never a
10
+ * permanent unresolved liability.
11
+ */
12
+ export declare const EraseSubjectCommand: import("@lssm/lib.contracts-spec").OperationSpec<import("@lssm/lib.schema").SchemaModel<{
13
+ tenantId: {
14
+ type: import("@lssm/lib.schema").FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ subjectId: {
18
+ type: import("@lssm/lib.schema").FieldType<string, string>;
19
+ isOptional: false;
20
+ };
21
+ requestedBy: {
22
+ type: import("@lssm/lib.schema").FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ reason: {
26
+ type: import("@lssm/lib.schema").FieldType<string, string>;
27
+ isOptional: true;
28
+ };
29
+ dataClasses: {
30
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string]>;
31
+ isArray: true;
32
+ isOptional: true;
33
+ };
34
+ }>, import("@lssm/lib.schema").SchemaModel<{
35
+ subjectId: {
36
+ type: import("@lssm/lib.schema").FieldType<string, string>;
37
+ isOptional: false;
38
+ };
39
+ outcome: {
40
+ type: import("@lssm/lib.schema").EnumType<[string, string, string]>;
41
+ isOptional: false;
42
+ };
43
+ localDeleted: {
44
+ type: import("@lssm/lib.schema").FieldType<boolean, boolean>;
45
+ isOptional: false;
46
+ };
47
+ channelErased: {
48
+ type: import("@lssm/lib.schema").FieldType<boolean, boolean>;
49
+ isOptional: false;
50
+ };
51
+ /**
52
+ * Channel data class whose provider could not recall the data. Present
53
+ * only for `erased_local_provider_retained_documented`.
54
+ */
55
+ providerRetainedDataClass: {
56
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string]>;
57
+ isOptional: true;
58
+ };
59
+ /**
60
+ * Documented maximum retention window (days) sourced from the tenant
61
+ * Sovereignty Profile when the provider cannot recall the data.
62
+ */
63
+ providerRetentionDays: {
64
+ type: import("@lssm/lib.schema").FieldType<number, number>;
65
+ isOptional: true;
66
+ };
67
+ /**
68
+ * Sovereignty Profile / retention-window evidence ref backing the
69
+ * documented retention window.
70
+ */
71
+ retentionWindowRef: {
72
+ type: import("@lssm/lib.schema").FieldType<string, string>;
73
+ isOptional: true;
74
+ };
75
+ auditEventRef: {
76
+ type: import("@lssm/lib.schema").FieldType<string, string>;
77
+ isOptional: false;
78
+ };
79
+ erasedAt: {
80
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
81
+ isOptional: false;
82
+ };
83
+ }>, undefined>;
84
+ /**
85
+ * Read-only RGPD consent check. Sufficient to verify whether a subject's data
86
+ * may be processed and under which lawful basis before any side effects.
87
+ */
88
+ export declare const CheckSubjectConsentQuery: import("@lssm/lib.contracts-spec").OperationSpec<import("@lssm/lib.schema").SchemaModel<{
89
+ tenantId: {
90
+ type: import("@lssm/lib.schema").FieldType<string, string>;
91
+ isOptional: false;
92
+ };
93
+ subjectId: {
94
+ type: import("@lssm/lib.schema").FieldType<string, string>;
95
+ isOptional: false;
96
+ };
97
+ }>, import("@lssm/lib.schema").SchemaModel<{
98
+ subjectId: {
99
+ type: import("@lssm/lib.schema").FieldType<string, string>;
100
+ isOptional: false;
101
+ };
102
+ status: {
103
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string]>;
104
+ isOptional: false;
105
+ };
106
+ basis: {
107
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string]>;
108
+ isOptional: true;
109
+ };
110
+ mayProcess: {
111
+ type: import("@lssm/lib.schema").FieldType<boolean, boolean>;
112
+ isOptional: false;
113
+ };
114
+ }>, undefined>;
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{defineCommand as m,defineQuery as f}from"@lssm/lib.contracts-spec/operations";import{defineSchemaModel as i,ScalarTypeEnum as t}from"@lssm/lib.schema";import{defineEnum as n,defineSchemaModel as o,ScalarTypeEnum as e}from"@lssm/lib.schema";var l=n("ResidencyRegion",["eu","eu_fr","eu_de","us","uk","apac","self_managed"]),d=n("HostingMode",["saas","self_host","on_prem"]),a=n("DataClass",["message_body","participant_identity","channel_account","attachment","ai_derived","audit_evidence"]),s=n("ConsentBasis",["consent","contract","legal_obligation","legitimate_interest"]),r=n("ConsentStatus",["granted","withdrawn","expired","not_recorded"]),p=o({name:"RetentionWindow",description:"Documented retention window for a single governed data class.",fields:{dataClass:{type:a,isOptional:!1},retentionDays:{type:e.Int_unsecure(),isOptional:!1},basis:{type:s,isOptional:!1},description:{type:e.String_unsecure(),isOptional:!0}}}),g=o({name:"SovereigntyProfile",description:"Residency, retention, sovereign LLM provider and hosting posture for a tenant.",fields:{id:{type:e.String_unsecure(),isOptional:!1},tenantId:{type:e.String_unsecure(),isOptional:!1},residencyRegion:{type:l,isOptional:!1,defaultValue:"eu"},hostingMode:{type:d,isOptional:!1,defaultValue:"saas"},llmProviderId:{type:e.String_unsecure(),isOptional:!1},retentionWindows:{type:p,isArray:!0,isOptional:!1},dataResidencyEnforced:{type:e.Boolean(),isOptional:!1,defaultValue:!0},createdAt:{type:e.DateTime(),isOptional:!1},updatedAt:{type:e.DateTime(),isOptional:!1}}}),h=o({name:"SubjectConsent",description:"Recorded RGPD consent decision for a single data subject.",fields:{id:{type:e.String_unsecure(),isOptional:!1},tenantId:{type:e.String_unsecure(),isOptional:!1},subjectId:{type:e.String_unsecure(),isOptional:!1},basis:{type:s,isOptional:!1},status:{type:r,isOptional:!1,defaultValue:"not_recorded"},grantedAt:{type:e.DateTime(),isOptional:!0},withdrawnAt:{type:e.DateTime(),isOptional:!0},expiresAt:{type:e.DateTime(),isOptional:!0},evidenceRef:{type:e.String_unsecure(),isOptional:!0}}}),u=n("ErasureOutcome",["erased_local","erased_local_and_channel","erased_local_provider_retained_documented"]);var c=["platform.communication-os"],E=m({meta:{key:"communication.subject.erase",version:"1.0.0",stability:"experimental",owners:[...c],tags:["communication","gdpr","rgpd","erasure","sovereignty"],description:"Erase a data subject across local persistence and channel providers",goal:"Honor a GDPR/RGPD right-to-erasure request with an auditable, three-state outcome that documents irrecoverable provider retention rather than failing closed",context:"Governed by ContractSpec Connect; handler emits a local delete descriptor plus ChannelAdapter.eraseSubject; provider-unrecallable channels (email/SMTP) resolve to a documented retention window from the Sovereignty Profile"},io:{input:i({name:"EraseSubjectInput",description:"Right-to-erasure request for a single data subject.",fields:{tenantId:{type:t.String_unsecure(),isOptional:!1},subjectId:{type:t.String_unsecure(),isOptional:!1},requestedBy:{type:t.String_unsecure(),isOptional:!1},reason:{type:t.String_unsecure(),isOptional:!0},dataClasses:{type:a,isArray:!0,isOptional:!0}}}),output:i({name:"EraseSubjectOutput",description:"Three-state erasure outcome with optional documented provider retention.",fields:{subjectId:{type:t.String_unsecure(),isOptional:!1},outcome:{type:u,isOptional:!1},localDeleted:{type:t.Boolean(),isOptional:!1},channelErased:{type:t.Boolean(),isOptional:!1},providerRetainedDataClass:{type:a,isOptional:!0},providerRetentionDays:{type:t.Int_unsecure(),isOptional:!0},retentionWindowRef:{type:t.String_unsecure(),isOptional:!0},auditEventRef:{type:t.String_unsecure(),isOptional:!1},erasedAt:{type:t.DateTime(),isOptional:!1}}}),errors:{SUBJECT_NOT_FOUND:{description:"No data subject exists for the provided subjectId",http:404,when:"subjectId does not resolve to any local persistence record"},SOVEREIGNTY_PROFILE_MISSING:{description:"No Sovereignty Profile is configured for the tenant; retention window cannot be documented",http:422,when:"A provider cannot recall data but no documented retention window exists to reference"},CHANNEL_ADAPTER_UNAVAILABLE:{description:"The channel adapter required to attempt provider erasure could not be reached",http:503,when:"ChannelAdapter.eraseSubject cannot be invoked; erasure fails closed rather than reporting an unverified outcome"},ERASURE_NOT_AUTHORIZED:{description:"The requesting actor is not authorized to erase this subject",http:403,when:"Policy gate denies the erasure request for the actor/tenant"}}},policy:{auth:"admin"}}),v=f({meta:{key:"communication.subject.consent.check",version:"1.0.0",stability:"experimental",owners:[...c],tags:["communication","gdpr","rgpd","consent"],description:"Check the recorded RGPD consent state for a data subject",goal:"Let runtime gate processing on a subject lawful basis before side effects",context:"Read-only; returns the recorded consent status and lawful basis, never mutates consent"},io:{input:i({name:"CheckSubjectConsentInput",fields:{tenantId:{type:t.String_unsecure(),isOptional:!1},subjectId:{type:t.String_unsecure(),isOptional:!1}}}),output:i({name:"CheckSubjectConsentOutput",fields:{subjectId:{type:t.String_unsecure(),isOptional:!1},status:{type:r,isOptional:!1},basis:{type:s,isOptional:!0},mayProcess:{type:t.Boolean(),isOptional:!1}}})},policy:{auth:"admin"}});export{v as CheckSubjectConsentQuery,E as EraseSubjectCommand};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,174 @@
1
+ export declare const MessageReceivedEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
2
+ messageId: {
3
+ type: import("@lssm/lib.schema").FieldType<string, string>;
4
+ isOptional: false;
5
+ };
6
+ threadId: {
7
+ type: import("@lssm/lib.schema").FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ channelType: {
11
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string]>;
12
+ isOptional: false;
13
+ };
14
+ }>>;
15
+ export declare const MessageNormalizedEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
16
+ messageId: {
17
+ type: import("@lssm/lib.schema").FieldType<string, string>;
18
+ isOptional: false;
19
+ };
20
+ threadId: {
21
+ type: import("@lssm/lib.schema").FieldType<string, string>;
22
+ isOptional: false;
23
+ };
24
+ status: {
25
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
26
+ isOptional: false;
27
+ };
28
+ }>>;
29
+ export declare const IntentClassifiedEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
30
+ threadId: {
31
+ type: import("@lssm/lib.schema").FieldType<string, string>;
32
+ isOptional: false;
33
+ };
34
+ messageId: {
35
+ type: import("@lssm/lib.schema").FieldType<string, string>;
36
+ isOptional: true;
37
+ };
38
+ category: {
39
+ type: import("@lssm/lib.schema").FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ confidence: {
43
+ type: import("@lssm/lib.schema").FieldType<number, number>;
44
+ isOptional: false;
45
+ };
46
+ }>>;
47
+ export declare const ThreadLinkedEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
48
+ threadId: {
49
+ type: import("@lssm/lib.schema").FieldType<string, string>;
50
+ isOptional: false;
51
+ };
52
+ objectType: {
53
+ type: import("@lssm/lib.schema").FieldType<string, string>;
54
+ isOptional: false;
55
+ };
56
+ objectId: {
57
+ type: import("@lssm/lib.schema").FieldType<string, string>;
58
+ isOptional: false;
59
+ };
60
+ }>>;
61
+ export declare const ThreadStatusChangedEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
62
+ threadId: {
63
+ type: import("@lssm/lib.schema").FieldType<string, string>;
64
+ isOptional: false;
65
+ };
66
+ previousStatus: {
67
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string]>;
68
+ isOptional: false;
69
+ };
70
+ newStatus: {
71
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string]>;
72
+ isOptional: false;
73
+ };
74
+ changedBy: {
75
+ type: import("@lssm/lib.schema").FieldType<string, string>;
76
+ isOptional: true;
77
+ };
78
+ }>>;
79
+ export declare const ReplyDraftedEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
80
+ draftId: {
81
+ type: import("@lssm/lib.schema").FieldType<string, string>;
82
+ isOptional: false;
83
+ };
84
+ threadId: {
85
+ type: import("@lssm/lib.schema").FieldType<string, string>;
86
+ isOptional: false;
87
+ };
88
+ status: {
89
+ type: import("@lssm/lib.schema").EnumType<[string, string, string, string, string, string]>;
90
+ isOptional: false;
91
+ };
92
+ }>>;
93
+ export declare const ReplyBlockedByPolicyEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
94
+ draftId: {
95
+ type: import("@lssm/lib.schema").FieldType<string, string>;
96
+ isOptional: false;
97
+ };
98
+ threadId: {
99
+ type: import("@lssm/lib.schema").FieldType<string, string>;
100
+ isOptional: false;
101
+ };
102
+ policyRef: {
103
+ type: import("@lssm/lib.schema").FieldType<string, string>;
104
+ isOptional: false;
105
+ };
106
+ reason: {
107
+ type: import("@lssm/lib.schema").FieldType<string, string>;
108
+ isOptional: false;
109
+ };
110
+ }>>;
111
+ export declare const ReplySentEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
112
+ draftId: {
113
+ type: import("@lssm/lib.schema").FieldType<string, string>;
114
+ isOptional: false;
115
+ };
116
+ threadId: {
117
+ type: import("@lssm/lib.schema").FieldType<string, string>;
118
+ isOptional: false;
119
+ };
120
+ sentAt: {
121
+ type: import("@lssm/lib.schema").FieldType<Date, string>;
122
+ isOptional: false;
123
+ };
124
+ }>>;
125
+ export declare const HandoffCreatedEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
126
+ handoffId: {
127
+ type: import("@lssm/lib.schema").FieldType<string, string>;
128
+ isOptional: false;
129
+ };
130
+ threadId: {
131
+ type: import("@lssm/lib.schema").FieldType<string, string>;
132
+ isOptional: false;
133
+ };
134
+ fromOwner: {
135
+ type: import("@lssm/lib.schema").FieldType<string, string>;
136
+ isOptional: false;
137
+ };
138
+ toOwner: {
139
+ type: import("@lssm/lib.schema").FieldType<string, string>;
140
+ isOptional: false;
141
+ };
142
+ }>>;
143
+ export declare const EscalationRequestedEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
144
+ threadId: {
145
+ type: import("@lssm/lib.schema").FieldType<string, string>;
146
+ isOptional: false;
147
+ };
148
+ reason: {
149
+ type: import("@lssm/lib.schema").FieldType<string, string>;
150
+ isOptional: false;
151
+ };
152
+ targetOwner: {
153
+ type: import("@lssm/lib.schema").FieldType<string, string>;
154
+ isOptional: true;
155
+ };
156
+ }>>;
157
+ export declare const ParticipantLinkedEvent: import("@lssm/lib.contracts-spec").EventSpec<import("@lssm/lib.schema").SchemaModel<{
158
+ participantId: {
159
+ type: import("@lssm/lib.schema").FieldType<string, string>;
160
+ isOptional: false;
161
+ };
162
+ linkedParticipantId: {
163
+ type: import("@lssm/lib.schema").FieldType<string, string>;
164
+ isOptional: false;
165
+ };
166
+ linkType: {
167
+ type: import("@lssm/lib.schema").FieldType<string, string>;
168
+ isOptional: false;
169
+ };
170
+ confidence: {
171
+ type: import("@lssm/lib.schema").FieldType<number, number>;
172
+ isOptional: true;
173
+ };
174
+ }>>;
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{defineEvent as t}from"@lssm/lib.contracts-spec/events";import{defineSchemaModel as a,ScalarTypeEnum as e}from"@lssm/lib.schema";import{defineEnum as i}from"@lssm/lib.schema";var o=i("ChannelType",["email","sms","whatsapp","telegram","matrix","web_chat","voice","internal_chat","custom_adapter","future_bridge","unknown"]),s=i("ThreadStatus",["open","waiting_on_human","waiting_on_external_party","action_required","resolved","archived"]),r=i("MessageStatus",["received","normalized","classified","linked","triaged","replied","archived"]),d=i("ReplyStatus",["drafted","requires_review","approved","sent","failed","blocked_by_policy"]),y=i("HandoffStatus",["created","assigned","acknowledged","completed","reopened"]),f=i("SuggestionStatus",["generated","shown","accepted","edited","rejected","applied","expired"]),g=i("IntentCategory",["support","sales","bug_report","feature_request","billing","onboarding","coordination","general","spam","escalation"]),h=i("ActionSafetyMode",["read_only","draft_only","requires_review","policy_executable","blocked"]),S=i("FeedbackOutcome",["accepted","edited","rejected","unsafe","incomplete"]);var u=["platform.communication-os"],n=(l,p,c)=>({key:l,version:"1.0.0",description:p,stability:"experimental",owners:[...u],tags:["communication","event",...c]}),w=t({meta:n("communication.message.received","Emitted when a new message is accepted from a channel",["message","received"]),payload:a({name:"MessageReceivedPayload",fields:{messageId:{type:e.String_unsecure(),isOptional:!1},threadId:{type:e.String_unsecure(),isOptional:!1},channelType:{type:o,isOptional:!1}}})}),x=t({meta:n("communication.message.normalized","Emitted when a raw channel payload is normalized into a CommunicationMessage",["message","normalized"]),payload:a({name:"MessageNormalizedPayload",fields:{messageId:{type:e.String_unsecure(),isOptional:!1},threadId:{type:e.String_unsecure(),isOptional:!1},status:{type:r,isOptional:!1}}})}),k=t({meta:n("communication.intent.classified","Emitted when a message or thread intent is classified",["intent","classified"]),payload:a({name:"IntentClassifiedPayload",fields:{threadId:{type:e.String_unsecure(),isOptional:!1},messageId:{type:e.String_unsecure(),isOptional:!0},category:{type:e.String_unsecure(),isOptional:!1},confidence:{type:e.Float_unsecure(),isOptional:!1}}})}),I=t({meta:n("communication.thread.linked","Emitted when a thread is linked to a business object",["thread","linked"]),payload:a({name:"ThreadLinkedPayload",fields:{threadId:{type:e.String_unsecure(),isOptional:!1},objectType:{type:e.String_unsecure(),isOptional:!1},objectId:{type:e.String_unsecure(),isOptional:!1}}})}),b=t({meta:n("communication.thread.status.changed","Emitted when a thread status changes",["thread","status"]),payload:a({name:"ThreadStatusChangedPayload",fields:{threadId:{type:e.String_unsecure(),isOptional:!1},previousStatus:{type:s,isOptional:!1},newStatus:{type:s,isOptional:!1},changedBy:{type:e.String_unsecure(),isOptional:!0}}})}),P=t({meta:n("communication.reply.drafted","Emitted when a reply draft is created",["reply","drafted"]),payload:a({name:"ReplyDraftedPayload",fields:{draftId:{type:e.String_unsecure(),isOptional:!1},threadId:{type:e.String_unsecure(),isOptional:!1},status:{type:d,isOptional:!1}}})}),R=t({meta:n("communication.reply.blocked_by_policy","Emitted when a reply draft is blocked before send",["reply","blocked"]),payload:a({name:"ReplyBlockedByPolicyPayload",fields:{draftId:{type:e.String_unsecure(),isOptional:!1},threadId:{type:e.String_unsecure(),isOptional:!1},policyRef:{type:e.String_unsecure(),isOptional:!1},reason:{type:e.String_unsecure(),isOptional:!1}}})}),T=t({meta:n("communication.reply.sent","Emitted when a reply is sent",["reply","sent"]),payload:a({name:"ReplySentPayload",fields:{draftId:{type:e.String_unsecure(),isOptional:!1},threadId:{type:e.String_unsecure(),isOptional:!1},sentAt:{type:e.DateTime(),isOptional:!1}}})}),C=t({meta:n("communication.handoff.created","Emitted when a handoff packet is created",["handoff","created"]),payload:a({name:"HandoffCreatedPayload",fields:{handoffId:{type:e.String_unsecure(),isOptional:!1},threadId:{type:e.String_unsecure(),isOptional:!1},fromOwner:{type:e.String_unsecure(),isOptional:!1},toOwner:{type:e.String_unsecure(),isOptional:!1}}})}),M=t({meta:n("communication.escalation.requested","Emitted when a thread is escalated for human attention",["escalation","requested"]),payload:a({name:"EscalationRequestedPayload",fields:{threadId:{type:e.String_unsecure(),isOptional:!1},reason:{type:e.String_unsecure(),isOptional:!1},targetOwner:{type:e.String_unsecure(),isOptional:!0}}})}),q=t({meta:n("communication.participant.linked","Emitted when a participant identity link is proposed or confirmed",["participant","identity"]),payload:a({name:"ParticipantLinkedPayload",fields:{participantId:{type:e.String_unsecure(),isOptional:!1},linkedParticipantId:{type:e.String_unsecure(),isOptional:!1},linkType:{type:e.String_unsecure(),isOptional:!1},confidence:{type:e.Float_unsecure(),isOptional:!0}}})});export{M as EscalationRequestedEvent,C as HandoffCreatedEvent,k as IntentClassifiedEvent,x as MessageNormalizedEvent,w as MessageReceivedEvent,q as ParticipantLinkedEvent,R as ReplyBlockedByPolicyEvent,P as ReplyDraftedEvent,T as ReplySentEvent,I as ThreadLinkedEvent,b as ThreadStatusChangedEvent};
@@ -0,0 +1,43 @@
1
+ export * from './agent-communication.js';
2
+ export * from './agent-lifecycle-projection.js';
3
+ export * from './agent-surface-control.js';
4
+ export * from './artifact-digest.js';
5
+ export * from './canonical-agent-conversation.js';
6
+ export * from './channel-preferences.js';
7
+ export * from './channel-routing.js';
8
+ export * from './customer-live-chat-grant.operations.js';
9
+ export * from './delivery-eligibility.js';
10
+ export * from './delivery-fallback.js';
11
+ export * from './delivery-intent.js';
12
+ export * from './delivery-progress.js';
13
+ export * from './discord-community.events.js';
14
+ export * from './discord-community.models.js';
15
+ export * from './discord-community.operations.js';
16
+ export * from './ecosystem-attachment.operations.js';
17
+ export * from './ecosystem-auth.operations.js';
18
+ export * from './ecosystem-binding.operations.js';
19
+ export * from './ecosystem-connection-subscription.events.js';
20
+ export * from './ecosystem-governed-work.operations.js';
21
+ export * from './ecosystem-governed-work-v2.operations.js';
22
+ export * from './ecosystem-identity.operations.js';
23
+ export * from './ecosystem-identity-v3.operations.js';
24
+ export * from './ecosystem-message.operations.js';
25
+ export * from './ecosystem-messaging.dtos.js';
26
+ export * from './ecosystem-messaging.events.js';
27
+ export * from './ecosystem-messaging.models.js';
28
+ export * from './ecosystem-navigation-v3.operations.js';
29
+ export * from './ecosystem-webhook.operations.js';
30
+ export * from './ecosystem-workspace.operations.js';
31
+ export * from './enums.js';
32
+ export * from './events.js';
33
+ export * from './ingestion.js';
34
+ export * from './ingress-admission.js';
35
+ export * from './ingress-admission-policy.js';
36
+ export * from './models.js';
37
+ export * from './operations.js';
38
+ export * from './persistence.js';
39
+ export * from './preference-resolution.js';
40
+ export * from './sequence-intent.js';
41
+ export * from './sovereignty.js';
42
+ export * from './support-internal-note.operations.js';
43
+ export * from './thread-link-kind.js';