@lssm/lib.files 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821

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 (165) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/contracts/dist/capabilities/openbanking.js +2 -1
  4. package/dist/contracts/dist/capabilities/openbanking.js.map +1 -0
  5. package/dist/contracts/dist/contract-registry/schemas.js +2 -1
  6. package/dist/contracts/dist/contract-registry/schemas.js.map +1 -0
  7. package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
  8. package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
  9. package/dist/contracts/dist/docs/index.js +2 -6
  10. package/dist/contracts/dist/docs/meta.docs.js +30 -0
  11. package/dist/contracts/dist/docs/meta.docs.js.map +1 -0
  12. package/dist/contracts/dist/docs/presentations.js +2 -1
  13. package/dist/contracts/dist/docs/presentations.js.map +1 -0
  14. package/dist/contracts/dist/docs/registry.js +2 -1
  15. package/dist/contracts/dist/docs/registry.js.map +1 -0
  16. package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
  17. package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
  18. package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
  19. package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
  20. package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
  21. package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
  22. package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
  23. package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
  24. package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
  25. package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
  26. package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
  27. package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
  28. package/dist/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
  29. package/dist/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
  30. package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
  31. package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
  32. package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
  33. package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
  34. package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
  35. package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
  36. package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
  37. package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
  38. package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
  39. package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
  40. package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
  41. package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
  42. package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
  43. package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
  44. package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
  45. package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
  46. package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
  47. package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
  48. package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
  49. package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
  50. package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
  51. package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
  52. package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
  53. package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
  54. package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
  55. package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
  56. package/dist/contracts/dist/docs/tech-contracts.docs.js +97 -0
  57. package/dist/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
  58. package/dist/contracts/dist/events.js +2 -1
  59. package/dist/contracts/dist/events.js.map +1 -0
  60. package/dist/contracts/dist/index.js +2 -1
  61. package/dist/contracts/dist/integrations/contracts.js +65 -66
  62. package/dist/contracts/dist/integrations/contracts.js.map +1 -0
  63. package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
  64. package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
  65. package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
  66. package/dist/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
  67. package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
  68. package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
  69. package/dist/contracts/dist/integrations/openbanking/models.js +60 -61
  70. package/dist/contracts/dist/integrations/openbanking/models.js.map +1 -0
  71. package/dist/contracts/dist/integrations/openbanking/telemetry.js +2 -1
  72. package/dist/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
  73. package/dist/contracts/dist/integrations/providers/elevenlabs.js +2 -1
  74. package/dist/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
  75. package/dist/contracts/dist/integrations/providers/gcs-storage.js +2 -1
  76. package/dist/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
  77. package/dist/contracts/dist/integrations/providers/gmail.js +2 -1
  78. package/dist/contracts/dist/integrations/providers/gmail.js.map +1 -0
  79. package/dist/contracts/dist/integrations/providers/google-calendar.js +2 -1
  80. package/dist/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
  81. package/dist/contracts/dist/integrations/providers/mistral.js +2 -1
  82. package/dist/contracts/dist/integrations/providers/mistral.js.map +1 -0
  83. package/dist/contracts/dist/integrations/providers/postmark.js +2 -1
  84. package/dist/contracts/dist/integrations/providers/postmark.js.map +1 -0
  85. package/dist/contracts/dist/integrations/providers/powens.js +2 -1
  86. package/dist/contracts/dist/integrations/providers/powens.js.map +1 -0
  87. package/dist/contracts/dist/integrations/providers/qdrant.js +2 -1
  88. package/dist/contracts/dist/integrations/providers/qdrant.js.map +1 -0
  89. package/dist/contracts/dist/integrations/providers/stripe.js +2 -1
  90. package/dist/contracts/dist/integrations/providers/stripe.js.map +1 -0
  91. package/dist/contracts/dist/integrations/providers/twilio-sms.js +2 -1
  92. package/dist/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
  93. package/dist/contracts/dist/knowledge/contracts.js +44 -45
  94. package/dist/contracts/dist/knowledge/contracts.js.map +1 -0
  95. package/dist/contracts/dist/knowledge/spaces/email-threads.js +2 -1
  96. package/dist/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
  97. package/dist/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
  98. package/dist/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
  99. package/dist/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
  100. package/dist/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
  101. package/dist/contracts/dist/knowledge/spaces/product-canon.js +2 -1
  102. package/dist/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
  103. package/dist/contracts/dist/knowledge/spaces/support-faq.js +2 -1
  104. package/dist/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
  105. package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
  106. package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
  107. package/dist/contracts/dist/llm/exporters.js +2 -1
  108. package/dist/contracts/dist/llm/exporters.js.map +1 -0
  109. package/dist/contracts/dist/onboarding-base.js +22 -23
  110. package/dist/contracts/dist/onboarding-base.js.map +1 -0
  111. package/dist/contracts/dist/ownership.js +4 -2
  112. package/dist/contracts/dist/ownership.js.map +1 -0
  113. package/dist/contracts/dist/presentations.v2.js +2 -1
  114. package/dist/contracts/dist/presentations.v2.js.map +1 -0
  115. package/dist/contracts/dist/regenerator/service.js +2 -1
  116. package/dist/contracts/dist/regenerator/service.js.map +1 -0
  117. package/dist/contracts/dist/schema/dist/index.js +3873 -6
  118. package/dist/contracts/dist/schema/dist/index.js.map +1 -0
  119. package/dist/contracts/dist/spec.js +2 -1
  120. package/dist/contracts/dist/spec.js.map +1 -0
  121. package/dist/contracts/index.d.ts +2 -1
  122. package/dist/contracts/index.d.ts.map +1 -0
  123. package/dist/contracts/index.js +115 -116
  124. package/dist/contracts/index.js.map +1 -0
  125. package/dist/docs/files.docblock.js +2 -1
  126. package/dist/docs/files.docblock.js.map +1 -0
  127. package/dist/entities/index.d.ts +2 -1
  128. package/dist/entities/index.d.ts.map +1 -0
  129. package/dist/entities/index.js +81 -81
  130. package/dist/entities/index.js.map +1 -0
  131. package/dist/events.d.ts +2 -1
  132. package/dist/events.d.ts.map +1 -0
  133. package/dist/events.js +61 -62
  134. package/dist/events.js.map +1 -0
  135. package/dist/files.feature.d.ts +2 -1
  136. package/dist/files.feature.d.ts.map +1 -0
  137. package/dist/files.feature.js +2 -1
  138. package/dist/files.feature.js.map +1 -0
  139. package/dist/schema/dist/index.js +4889 -6
  140. package/dist/schema/dist/index.js.map +1 -0
  141. package/dist/storage/index.d.ts +11 -10
  142. package/dist/storage/index.d.ts.map +1 -0
  143. package/dist/storage/index.js +11 -10
  144. package/dist/storage/index.js.map +1 -0
  145. package/package.json +13 -6
  146. package/dist/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  147. package/dist/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  148. package/dist/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  149. package/dist/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  150. package/dist/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  151. package/dist/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  152. package/dist/contracts/dist/schema/dist/EnumType.js +0 -2
  153. package/dist/contracts/dist/schema/dist/FieldType.js +0 -49
  154. package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  155. package/dist/contracts/dist/schema/dist/SchemaModel.js +0 -34
  156. package/dist/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  157. package/dist/contracts/dist/schema/dist/entity/index.js +0 -2
  158. package/dist/contracts/dist/schema/dist/entity/types.js +0 -1
  159. package/dist/schema/dist/EnumType.js +0 -2
  160. package/dist/schema/dist/FieldType.js +0 -49
  161. package/dist/schema/dist/ScalarTypeEnum.js +0 -236
  162. package/dist/schema/dist/SchemaModel.js +0 -39
  163. package/dist/schema/dist/entity/defineEntity.js +0 -236
  164. package/dist/schema/dist/entity/index.js +0 -2
  165. package/dist/schema/dist/entity/types.js +0 -1
package/dist/events.js CHANGED
@@ -1,254 +1,252 @@
1
- import { ScalarTypeEnum } from "./schema/dist/ScalarTypeEnum.js";
2
- import { defineSchemaModel } from "./schema/dist/SchemaModel.js";
3
- import "./schema/dist/index.js";
1
+ import { E5, K5 } from "./schema/dist/index.js";
4
2
  import { defineEvent } from "./contracts/dist/events.js";
5
3
  import "./contracts/dist/index.js";
6
4
 
7
5
  //#region src/events.ts
8
- const FileUploadedPayload = defineSchemaModel({
6
+ const FileUploadedPayload = K5({
9
7
  name: "FileUploadedEventPayload",
10
8
  description: "Payload when a file is uploaded",
11
9
  fields: {
12
10
  fileId: {
13
- type: ScalarTypeEnum.String_unsecure(),
11
+ type: E5.String_unsecure(),
14
12
  isOptional: false
15
13
  },
16
14
  name: {
17
- type: ScalarTypeEnum.String_unsecure(),
15
+ type: E5.String_unsecure(),
18
16
  isOptional: false
19
17
  },
20
18
  mimeType: {
21
- type: ScalarTypeEnum.String_unsecure(),
19
+ type: E5.String_unsecure(),
22
20
  isOptional: false
23
21
  },
24
22
  size: {
25
- type: ScalarTypeEnum.Int_unsecure(),
23
+ type: E5.Int_unsecure(),
26
24
  isOptional: false
27
25
  },
28
26
  storageProvider: {
29
- type: ScalarTypeEnum.String_unsecure(),
27
+ type: E5.String_unsecure(),
30
28
  isOptional: false
31
29
  },
32
30
  ownerId: {
33
- type: ScalarTypeEnum.String_unsecure(),
31
+ type: E5.String_unsecure(),
34
32
  isOptional: false
35
33
  },
36
34
  orgId: {
37
- type: ScalarTypeEnum.String_unsecure(),
35
+ type: E5.String_unsecure(),
38
36
  isOptional: true
39
37
  },
40
38
  uploadedAt: {
41
- type: ScalarTypeEnum.DateTime(),
39
+ type: E5.DateTime(),
42
40
  isOptional: false
43
41
  }
44
42
  }
45
43
  });
46
- const FileUpdatedPayload = defineSchemaModel({
44
+ const FileUpdatedPayload = K5({
47
45
  name: "FileUpdatedEventPayload",
48
46
  description: "Payload when a file is updated",
49
47
  fields: {
50
48
  fileId: {
51
- type: ScalarTypeEnum.String_unsecure(),
49
+ type: E5.String_unsecure(),
52
50
  isOptional: false
53
51
  },
54
52
  name: {
55
- type: ScalarTypeEnum.String_unsecure(),
53
+ type: E5.String_unsecure(),
56
54
  isOptional: false
57
55
  },
58
56
  changes: {
59
- type: ScalarTypeEnum.JSON(),
57
+ type: E5.JSON(),
60
58
  isOptional: false
61
59
  },
62
60
  updatedBy: {
63
- type: ScalarTypeEnum.String_unsecure(),
61
+ type: E5.String_unsecure(),
64
62
  isOptional: true
65
63
  },
66
64
  updatedAt: {
67
- type: ScalarTypeEnum.DateTime(),
65
+ type: E5.DateTime(),
68
66
  isOptional: false
69
67
  }
70
68
  }
71
69
  });
72
- const FileDeletedPayload = defineSchemaModel({
70
+ const FileDeletedPayload = K5({
73
71
  name: "FileDeletedEventPayload",
74
72
  description: "Payload when a file is deleted",
75
73
  fields: {
76
74
  fileId: {
77
- type: ScalarTypeEnum.String_unsecure(),
75
+ type: E5.String_unsecure(),
78
76
  isOptional: false
79
77
  },
80
78
  name: {
81
- type: ScalarTypeEnum.String_unsecure(),
79
+ type: E5.String_unsecure(),
82
80
  isOptional: false
83
81
  },
84
82
  storageProvider: {
85
- type: ScalarTypeEnum.String_unsecure(),
83
+ type: E5.String_unsecure(),
86
84
  isOptional: false
87
85
  },
88
86
  storagePath: {
89
- type: ScalarTypeEnum.String_unsecure(),
87
+ type: E5.String_unsecure(),
90
88
  isOptional: false
91
89
  },
92
90
  deletedBy: {
93
- type: ScalarTypeEnum.String_unsecure(),
91
+ type: E5.String_unsecure(),
94
92
  isOptional: true
95
93
  },
96
94
  deletedAt: {
97
- type: ScalarTypeEnum.DateTime(),
95
+ type: E5.DateTime(),
98
96
  isOptional: false
99
97
  }
100
98
  }
101
99
  });
102
- const FileVersionCreatedPayload = defineSchemaModel({
100
+ const FileVersionCreatedPayload = K5({
103
101
  name: "FileVersionCreatedEventPayload",
104
102
  description: "Payload when a file version is created",
105
103
  fields: {
106
104
  fileId: {
107
- type: ScalarTypeEnum.String_unsecure(),
105
+ type: E5.String_unsecure(),
108
106
  isOptional: false
109
107
  },
110
108
  versionId: {
111
- type: ScalarTypeEnum.String_unsecure(),
109
+ type: E5.String_unsecure(),
112
110
  isOptional: false
113
111
  },
114
112
  version: {
115
- type: ScalarTypeEnum.Int_unsecure(),
113
+ type: E5.Int_unsecure(),
116
114
  isOptional: false
117
115
  },
118
116
  size: {
119
- type: ScalarTypeEnum.Int_unsecure(),
117
+ type: E5.Int_unsecure(),
120
118
  isOptional: false
121
119
  },
122
120
  createdBy: {
123
- type: ScalarTypeEnum.String_unsecure(),
121
+ type: E5.String_unsecure(),
124
122
  isOptional: false
125
123
  },
126
124
  comment: {
127
- type: ScalarTypeEnum.String_unsecure(),
125
+ type: E5.String_unsecure(),
128
126
  isOptional: true
129
127
  },
130
128
  createdAt: {
131
- type: ScalarTypeEnum.DateTime(),
129
+ type: E5.DateTime(),
132
130
  isOptional: false
133
131
  }
134
132
  }
135
133
  });
136
- const AttachmentAttachedPayload = defineSchemaModel({
134
+ const AttachmentAttachedPayload = K5({
137
135
  name: "AttachmentAttachedEventPayload",
138
136
  description: "Payload when a file is attached to an entity",
139
137
  fields: {
140
138
  attachmentId: {
141
- type: ScalarTypeEnum.String_unsecure(),
139
+ type: E5.String_unsecure(),
142
140
  isOptional: false
143
141
  },
144
142
  fileId: {
145
- type: ScalarTypeEnum.String_unsecure(),
143
+ type: E5.String_unsecure(),
146
144
  isOptional: false
147
145
  },
148
146
  entityType: {
149
- type: ScalarTypeEnum.String_unsecure(),
147
+ type: E5.String_unsecure(),
150
148
  isOptional: false
151
149
  },
152
150
  entityId: {
153
- type: ScalarTypeEnum.String_unsecure(),
151
+ type: E5.String_unsecure(),
154
152
  isOptional: false
155
153
  },
156
154
  attachmentType: {
157
- type: ScalarTypeEnum.String_unsecure(),
155
+ type: E5.String_unsecure(),
158
156
  isOptional: true
159
157
  },
160
158
  attachedBy: {
161
- type: ScalarTypeEnum.String_unsecure(),
159
+ type: E5.String_unsecure(),
162
160
  isOptional: false
163
161
  },
164
162
  attachedAt: {
165
- type: ScalarTypeEnum.DateTime(),
163
+ type: E5.DateTime(),
166
164
  isOptional: false
167
165
  }
168
166
  }
169
167
  });
170
- const AttachmentDetachedPayload = defineSchemaModel({
168
+ const AttachmentDetachedPayload = K5({
171
169
  name: "AttachmentDetachedEventPayload",
172
170
  description: "Payload when a file is detached from an entity",
173
171
  fields: {
174
172
  attachmentId: {
175
- type: ScalarTypeEnum.String_unsecure(),
173
+ type: E5.String_unsecure(),
176
174
  isOptional: false
177
175
  },
178
176
  fileId: {
179
- type: ScalarTypeEnum.String_unsecure(),
177
+ type: E5.String_unsecure(),
180
178
  isOptional: false
181
179
  },
182
180
  entityType: {
183
- type: ScalarTypeEnum.String_unsecure(),
181
+ type: E5.String_unsecure(),
184
182
  isOptional: false
185
183
  },
186
184
  entityId: {
187
- type: ScalarTypeEnum.String_unsecure(),
185
+ type: E5.String_unsecure(),
188
186
  isOptional: false
189
187
  },
190
188
  detachedBy: {
191
- type: ScalarTypeEnum.String_unsecure(),
189
+ type: E5.String_unsecure(),
192
190
  isOptional: true
193
191
  },
194
192
  detachedAt: {
195
- type: ScalarTypeEnum.DateTime(),
193
+ type: E5.DateTime(),
196
194
  isOptional: false
197
195
  }
198
196
  }
199
197
  });
200
- const UploadSessionStartedPayload = defineSchemaModel({
198
+ const UploadSessionStartedPayload = K5({
201
199
  name: "UploadSessionStartedEventPayload",
202
200
  description: "Payload when an upload session starts",
203
201
  fields: {
204
202
  sessionId: {
205
- type: ScalarTypeEnum.String_unsecure(),
203
+ type: E5.String_unsecure(),
206
204
  isOptional: false
207
205
  },
208
206
  fileName: {
209
- type: ScalarTypeEnum.String_unsecure(),
207
+ type: E5.String_unsecure(),
210
208
  isOptional: false
211
209
  },
212
210
  mimeType: {
213
- type: ScalarTypeEnum.String_unsecure(),
211
+ type: E5.String_unsecure(),
214
212
  isOptional: false
215
213
  },
216
214
  totalSize: {
217
- type: ScalarTypeEnum.Int_unsecure(),
215
+ type: E5.Int_unsecure(),
218
216
  isOptional: false
219
217
  },
220
218
  ownerId: {
221
- type: ScalarTypeEnum.String_unsecure(),
219
+ type: E5.String_unsecure(),
222
220
  isOptional: false
223
221
  },
224
222
  startedAt: {
225
- type: ScalarTypeEnum.DateTime(),
223
+ type: E5.DateTime(),
226
224
  isOptional: false
227
225
  }
228
226
  }
229
227
  });
230
- const UploadSessionCompletedPayload = defineSchemaModel({
228
+ const UploadSessionCompletedPayload = K5({
231
229
  name: "UploadSessionCompletedEventPayload",
232
230
  description: "Payload when an upload session completes",
233
231
  fields: {
234
232
  sessionId: {
235
- type: ScalarTypeEnum.String_unsecure(),
233
+ type: E5.String_unsecure(),
236
234
  isOptional: false
237
235
  },
238
236
  fileId: {
239
- type: ScalarTypeEnum.String_unsecure(),
237
+ type: E5.String_unsecure(),
240
238
  isOptional: false
241
239
  },
242
240
  fileName: {
243
- type: ScalarTypeEnum.String_unsecure(),
241
+ type: E5.String_unsecure(),
244
242
  isOptional: false
245
243
  },
246
244
  size: {
247
- type: ScalarTypeEnum.Int_unsecure(),
245
+ type: E5.Int_unsecure(),
248
246
  isOptional: false
249
247
  },
250
248
  completedAt: {
251
- type: ScalarTypeEnum.DateTime(),
249
+ type: E5.DateTime(),
252
250
  isOptional: false
253
251
  }
254
252
  }
@@ -340,4 +338,5 @@ const FileEvents = {
340
338
  };
341
339
 
342
340
  //#endregion
343
- export { AttachmentAttachedEvent, AttachmentDetachedEvent, FileDeletedEvent, FileEvents, FileUpdatedEvent, FileUploadedEvent, FileVersionCreatedEvent, UploadSessionCompletedEvent, UploadSessionStartedEvent };
341
+ export { AttachmentAttachedEvent, AttachmentDetachedEvent, FileDeletedEvent, FileEvents, FileUpdatedEvent, FileUploadedEvent, FileVersionCreatedEvent, UploadSessionCompletedEvent, UploadSessionStartedEvent };
342
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../src/events.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\nimport { defineEvent } from '@lssm/lib.contracts';\n\n// ============ Event Payloads ============\n\nconst FileUploadedPayload = defineSchemaModel({\n name: 'FileUploadedEventPayload',\n description: 'Payload when a file is uploaded',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n mimeType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n storageProvider: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n uploadedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst FileUpdatedPayload = defineSchemaModel({\n name: 'FileUpdatedEventPayload',\n description: 'Payload when a file is updated',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n changes: { type: ScalarTypeEnum.JSON(), isOptional: false },\n updatedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst FileDeletedPayload = defineSchemaModel({\n name: 'FileDeletedEventPayload',\n description: 'Payload when a file is deleted',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n storageProvider: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n storagePath: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n deletedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n deletedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst FileVersionCreatedPayload = defineSchemaModel({\n name: 'FileVersionCreatedEventPayload',\n description: 'Payload when a file version is created',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n versionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n comment: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst AttachmentAttachedPayload = defineSchemaModel({\n name: 'AttachmentAttachedEventPayload',\n description: 'Payload when a file is attached to an entity',\n fields: {\n attachmentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n attachmentType: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n attachedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n attachedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst AttachmentDetachedPayload = defineSchemaModel({\n name: 'AttachmentDetachedEventPayload',\n description: 'Payload when a file is detached from an entity',\n fields: {\n attachmentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n detachedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n detachedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst UploadSessionStartedPayload = defineSchemaModel({\n name: 'UploadSessionStartedEventPayload',\n description: 'Payload when an upload session starts',\n fields: {\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n mimeType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n totalSize: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst UploadSessionCompletedPayload = defineSchemaModel({\n name: 'UploadSessionCompletedEventPayload',\n description: 'Payload when an upload session completes',\n fields: {\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n// ============ Events ============\n\n/**\n * Emitted when a file is uploaded.\n */\nexport const FileUploadedEvent = defineEvent({\n name: 'file.uploaded',\n version: 1,\n description: 'A file has been uploaded.',\n payload: FileUploadedPayload,\n});\n\n/**\n * Emitted when a file is updated.\n */\nexport const FileUpdatedEvent = defineEvent({\n name: 'file.updated',\n version: 1,\n description: 'A file has been updated.',\n payload: FileUpdatedPayload,\n});\n\n/**\n * Emitted when a file is deleted.\n */\nexport const FileDeletedEvent = defineEvent({\n name: 'file.deleted',\n version: 1,\n description: 'A file has been deleted.',\n payload: FileDeletedPayload,\n});\n\n/**\n * Emitted when a file version is created.\n */\nexport const FileVersionCreatedEvent = defineEvent({\n name: 'file.version_created',\n version: 1,\n description: 'A new file version has been created.',\n payload: FileVersionCreatedPayload,\n});\n\n/**\n * Emitted when a file is attached to an entity.\n */\nexport const AttachmentAttachedEvent = defineEvent({\n name: 'attachment.attached',\n version: 1,\n description: 'A file has been attached to an entity.',\n payload: AttachmentAttachedPayload,\n});\n\n/**\n * Emitted when a file is detached from an entity.\n */\nexport const AttachmentDetachedEvent = defineEvent({\n name: 'attachment.detached',\n version: 1,\n description: 'A file has been detached from an entity.',\n payload: AttachmentDetachedPayload,\n});\n\n/**\n * Emitted when an upload session starts.\n */\nexport const UploadSessionStartedEvent = defineEvent({\n name: 'upload.session_started',\n version: 1,\n description: 'An upload session has started.',\n payload: UploadSessionStartedPayload,\n});\n\n/**\n * Emitted when an upload session completes.\n */\nexport const UploadSessionCompletedEvent = defineEvent({\n name: 'upload.session_completed',\n version: 1,\n description: 'An upload session has completed.',\n payload: UploadSessionCompletedPayload,\n});\n\n/**\n * All file events.\n */\nexport const FileEvents = {\n FileUploadedEvent,\n FileUpdatedEvent,\n FileDeletedEvent,\n FileVersionCreatedEvent,\n AttachmentAttachedEvent,\n A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C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;;;;AAKF,MAAa,mBAAmB,YAAY;CAC1C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;;;;AAKF,MAAa,0BAA0B,YAAY;CACjD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;;;;AAKF,MAAa,0BAA0B,YAAY;CACjD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;;;;AAKF,MAAa,0BAA0B,YAAY;CACjD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;;;;AAKF,MAAa,4BAA4B,YAAY;CACnD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;;;;AAKF,MAAa,8BAA8B,YAAY;CACrD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;;;;AAKF,MAAa,aAAa;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
@@ -8,4 +8,5 @@ import { FeatureModuleSpec } from "@lssm/lib.contracts";
8
8
  */
9
9
  declare const FilesFeature: FeatureModuleSpec;
10
10
  //#endregion
11
- export { FilesFeature };
11
+ export { FilesFeature };
12
+ //# sourceMappingURL=files.feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.feature.d.ts","names":[],"sources":["../src/files.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAWa,cAAc"}
@@ -121,4 +121,5 @@ const FilesFeature = {
121
121
  };
122
122
 
123
123
  //#endregion
124
- export { FilesFeature };
124
+ export { FilesFeature };
125
+ //# sourceMappingURL=files.feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.feature.js","names":["FilesFeature: FeatureModuleSpec"],"sources":["../src/files.feature.ts"],"sourcesContent":["/**\n * Files Feature Module Specification\n *\n * Defines the feature module for file management capabilities.\n */\nimport type { FeatureModuleSpec } from '@lssm/lib.contracts';\n\n/**\n * Files feature module that bundles file upload, versioning,\n * and attachment management capabilities.\n */\nexport const FilesFeature: FeatureModuleSpec = {\n meta: {\n key: 'files',\n title: 'File Management',\n description:\n 'File upload, versioning, and attachment management with presigned URLs',\n domain: 'platform',\n owners: ['@platform.files'],\n tags: ['files', 'upload', 'attachments', 'storage'],\n stability: 'stable',\n },\n\n // All contract operations included in this feature\n operations: [\n // File CRUD operations\n { name: 'file.upload', version: 1 },\n { name: 'file.update', version: 1 },\n { name: 'file.delete', version: 1 },\n { name: 'file.get', version: 1 },\n { name: 'file.list', version: 1 },\n { name: 'file.downloadUrl', version: 1 },\n { name: 'file.presignedUrl.create', version: 1 },\n\n // Version operations\n { name: 'file.version.create', version: 1 },\n { name: 'file.version.list', version: 1 },\n\n // Attachment operations\n { name: 'attachment.attach', version: 1 },\n { name: 'attachment.detach', version: 1 },\n { name: 'attachment.list', version: 1 },\n ],\n\n // Events emitted by this feature\n events: [\n // File events\n { name: 'file.uploaded', version: 1 },\n { name: 'file.updated', version: 1 },\n { name: 'file.deleted', version: 1 },\n { name: 'file.version_created', version: 1 },\n\n // Attachment events\n { name: 'attachment.attached', version: 1 },\n { name: 'attachment.detached', version: 1 },\n\n // Upload session events\n { name: 'upload.session_started', version: 1 },\n { name: 'upload.session_completed', version: 1 },\n ],\n\n // No presentations for this library feature\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n\n // Capability definitions\n capabilities: {\n provides: [\n { key: 'files', version: 1 },\n { key: 'attachments', version: 1 },\n ],\n requires: [{ key: 'identity', version: 1 }],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,eAAkC;CAC7C,MAAM;EACJ,KAAK;EACL,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,kBAAkB;EAC3B,MAAM;GAAC;GAAS;GAAU;GAAe;GAAU;EACnD,WAAW;EACZ;CAGD,YAAY;EAEV;GAAE,MAAM;GAAe,SAAS;GAAG;EACnC;GAAE,MAAM;GAAe,SAAS;GAAG;EAC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