@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.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/contracts/dist/capabilities/openbanking.js +2 -1
- package/dist/contracts/dist/capabilities/openbanking.js.map +1 -0
- package/dist/contracts/dist/contract-registry/schemas.js +2 -1
- package/dist/contracts/dist/contract-registry/schemas.js.map +1 -0
- package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
- package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/index.js +2 -6
- package/dist/contracts/dist/docs/meta.docs.js +30 -0
- package/dist/contracts/dist/docs/meta.docs.js.map +1 -0
- package/dist/contracts/dist/docs/presentations.js +2 -1
- package/dist/contracts/dist/docs/presentations.js.map +1 -0
- package/dist/contracts/dist/docs/registry.js +2 -1
- package/dist/contracts/dist/docs/registry.js.map +1 -0
- package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech-contracts.docs.js +97 -0
- package/dist/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
- package/dist/contracts/dist/events.js +2 -1
- package/dist/contracts/dist/events.js.map +1 -0
- package/dist/contracts/dist/index.js +2 -1
- package/dist/contracts/dist/integrations/contracts.js +65 -66
- package/dist/contracts/dist/integrations/contracts.js.map +1 -0
- package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
- package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
- package/dist/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
- package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/contracts/dist/integrations/openbanking/models.js +60 -61
- package/dist/contracts/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/contracts/dist/integrations/openbanking/telemetry.js +2 -1
- package/dist/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/elevenlabs.js +2 -1
- package/dist/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/gcs-storage.js +2 -1
- package/dist/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/gmail.js +2 -1
- package/dist/contracts/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/google-calendar.js +2 -1
- package/dist/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/mistral.js +2 -1
- package/dist/contracts/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/postmark.js +2 -1
- package/dist/contracts/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/powens.js +2 -1
- package/dist/contracts/dist/integrations/providers/powens.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/qdrant.js +2 -1
- package/dist/contracts/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/stripe.js +2 -1
- package/dist/contracts/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/twilio-sms.js +2 -1
- package/dist/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/contracts/dist/knowledge/contracts.js +44 -45
- package/dist/contracts/dist/knowledge/contracts.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/email-threads.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/product-canon.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/support-faq.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/contracts/dist/llm/exporters.js +2 -1
- package/dist/contracts/dist/llm/exporters.js.map +1 -0
- package/dist/contracts/dist/onboarding-base.js +22 -23
- package/dist/contracts/dist/onboarding-base.js.map +1 -0
- package/dist/contracts/dist/ownership.js +4 -2
- package/dist/contracts/dist/ownership.js.map +1 -0
- package/dist/contracts/dist/presentations.v2.js +2 -1
- package/dist/contracts/dist/presentations.v2.js.map +1 -0
- package/dist/contracts/dist/regenerator/service.js +2 -1
- package/dist/contracts/dist/regenerator/service.js.map +1 -0
- package/dist/contracts/dist/schema/dist/index.js +3873 -6
- package/dist/contracts/dist/schema/dist/index.js.map +1 -0
- package/dist/contracts/dist/spec.js +2 -1
- package/dist/contracts/dist/spec.js.map +1 -0
- package/dist/contracts/index.d.ts +2 -1
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +115 -116
- package/dist/contracts/index.js.map +1 -0
- package/dist/docs/files.docblock.js +2 -1
- package/dist/docs/files.docblock.js.map +1 -0
- package/dist/entities/index.d.ts +2 -1
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +81 -81
- package/dist/entities/index.js.map +1 -0
- package/dist/events.d.ts +2 -1
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +61 -62
- package/dist/events.js.map +1 -0
- package/dist/files.feature.d.ts +2 -1
- package/dist/files.feature.d.ts.map +1 -0
- package/dist/files.feature.js +2 -1
- package/dist/files.feature.js.map +1 -0
- package/dist/schema/dist/index.js +4889 -6
- package/dist/schema/dist/index.js.map +1 -0
- package/dist/storage/index.d.ts +11 -10
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +11 -10
- package/dist/storage/index.js.map +1 -0
- package/package.json +13 -6
- package/dist/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/schema/dist/EnumType.js +0 -2
- package/dist/schema/dist/FieldType.js +0 -49
- package/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/schema/dist/SchemaModel.js +0 -39
- package/dist/schema/dist/entity/defineEntity.js +0 -236
- package/dist/schema/dist/entity/index.js +0 -2
- package/dist/schema/dist/entity/types.js +0 -1
package/dist/events.js
CHANGED
|
@@ -1,254 +1,252 @@
|
|
|
1
|
-
import {
|
|
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 =
|
|
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:
|
|
11
|
+
type: E5.String_unsecure(),
|
|
14
12
|
isOptional: false
|
|
15
13
|
},
|
|
16
14
|
name: {
|
|
17
|
-
type:
|
|
15
|
+
type: E5.String_unsecure(),
|
|
18
16
|
isOptional: false
|
|
19
17
|
},
|
|
20
18
|
mimeType: {
|
|
21
|
-
type:
|
|
19
|
+
type: E5.String_unsecure(),
|
|
22
20
|
isOptional: false
|
|
23
21
|
},
|
|
24
22
|
size: {
|
|
25
|
-
type:
|
|
23
|
+
type: E5.Int_unsecure(),
|
|
26
24
|
isOptional: false
|
|
27
25
|
},
|
|
28
26
|
storageProvider: {
|
|
29
|
-
type:
|
|
27
|
+
type: E5.String_unsecure(),
|
|
30
28
|
isOptional: false
|
|
31
29
|
},
|
|
32
30
|
ownerId: {
|
|
33
|
-
type:
|
|
31
|
+
type: E5.String_unsecure(),
|
|
34
32
|
isOptional: false
|
|
35
33
|
},
|
|
36
34
|
orgId: {
|
|
37
|
-
type:
|
|
35
|
+
type: E5.String_unsecure(),
|
|
38
36
|
isOptional: true
|
|
39
37
|
},
|
|
40
38
|
uploadedAt: {
|
|
41
|
-
type:
|
|
39
|
+
type: E5.DateTime(),
|
|
42
40
|
isOptional: false
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
43
|
});
|
|
46
|
-
const FileUpdatedPayload =
|
|
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:
|
|
49
|
+
type: E5.String_unsecure(),
|
|
52
50
|
isOptional: false
|
|
53
51
|
},
|
|
54
52
|
name: {
|
|
55
|
-
type:
|
|
53
|
+
type: E5.String_unsecure(),
|
|
56
54
|
isOptional: false
|
|
57
55
|
},
|
|
58
56
|
changes: {
|
|
59
|
-
type:
|
|
57
|
+
type: E5.JSON(),
|
|
60
58
|
isOptional: false
|
|
61
59
|
},
|
|
62
60
|
updatedBy: {
|
|
63
|
-
type:
|
|
61
|
+
type: E5.String_unsecure(),
|
|
64
62
|
isOptional: true
|
|
65
63
|
},
|
|
66
64
|
updatedAt: {
|
|
67
|
-
type:
|
|
65
|
+
type: E5.DateTime(),
|
|
68
66
|
isOptional: false
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
69
|
});
|
|
72
|
-
const FileDeletedPayload =
|
|
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:
|
|
75
|
+
type: E5.String_unsecure(),
|
|
78
76
|
isOptional: false
|
|
79
77
|
},
|
|
80
78
|
name: {
|
|
81
|
-
type:
|
|
79
|
+
type: E5.String_unsecure(),
|
|
82
80
|
isOptional: false
|
|
83
81
|
},
|
|
84
82
|
storageProvider: {
|
|
85
|
-
type:
|
|
83
|
+
type: E5.String_unsecure(),
|
|
86
84
|
isOptional: false
|
|
87
85
|
},
|
|
88
86
|
storagePath: {
|
|
89
|
-
type:
|
|
87
|
+
type: E5.String_unsecure(),
|
|
90
88
|
isOptional: false
|
|
91
89
|
},
|
|
92
90
|
deletedBy: {
|
|
93
|
-
type:
|
|
91
|
+
type: E5.String_unsecure(),
|
|
94
92
|
isOptional: true
|
|
95
93
|
},
|
|
96
94
|
deletedAt: {
|
|
97
|
-
type:
|
|
95
|
+
type: E5.DateTime(),
|
|
98
96
|
isOptional: false
|
|
99
97
|
}
|
|
100
98
|
}
|
|
101
99
|
});
|
|
102
|
-
const FileVersionCreatedPayload =
|
|
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:
|
|
105
|
+
type: E5.String_unsecure(),
|
|
108
106
|
isOptional: false
|
|
109
107
|
},
|
|
110
108
|
versionId: {
|
|
111
|
-
type:
|
|
109
|
+
type: E5.String_unsecure(),
|
|
112
110
|
isOptional: false
|
|
113
111
|
},
|
|
114
112
|
version: {
|
|
115
|
-
type:
|
|
113
|
+
type: E5.Int_unsecure(),
|
|
116
114
|
isOptional: false
|
|
117
115
|
},
|
|
118
116
|
size: {
|
|
119
|
-
type:
|
|
117
|
+
type: E5.Int_unsecure(),
|
|
120
118
|
isOptional: false
|
|
121
119
|
},
|
|
122
120
|
createdBy: {
|
|
123
|
-
type:
|
|
121
|
+
type: E5.String_unsecure(),
|
|
124
122
|
isOptional: false
|
|
125
123
|
},
|
|
126
124
|
comment: {
|
|
127
|
-
type:
|
|
125
|
+
type: E5.String_unsecure(),
|
|
128
126
|
isOptional: true
|
|
129
127
|
},
|
|
130
128
|
createdAt: {
|
|
131
|
-
type:
|
|
129
|
+
type: E5.DateTime(),
|
|
132
130
|
isOptional: false
|
|
133
131
|
}
|
|
134
132
|
}
|
|
135
133
|
});
|
|
136
|
-
const AttachmentAttachedPayload =
|
|
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:
|
|
139
|
+
type: E5.String_unsecure(),
|
|
142
140
|
isOptional: false
|
|
143
141
|
},
|
|
144
142
|
fileId: {
|
|
145
|
-
type:
|
|
143
|
+
type: E5.String_unsecure(),
|
|
146
144
|
isOptional: false
|
|
147
145
|
},
|
|
148
146
|
entityType: {
|
|
149
|
-
type:
|
|
147
|
+
type: E5.String_unsecure(),
|
|
150
148
|
isOptional: false
|
|
151
149
|
},
|
|
152
150
|
entityId: {
|
|
153
|
-
type:
|
|
151
|
+
type: E5.String_unsecure(),
|
|
154
152
|
isOptional: false
|
|
155
153
|
},
|
|
156
154
|
attachmentType: {
|
|
157
|
-
type:
|
|
155
|
+
type: E5.String_unsecure(),
|
|
158
156
|
isOptional: true
|
|
159
157
|
},
|
|
160
158
|
attachedBy: {
|
|
161
|
-
type:
|
|
159
|
+
type: E5.String_unsecure(),
|
|
162
160
|
isOptional: false
|
|
163
161
|
},
|
|
164
162
|
attachedAt: {
|
|
165
|
-
type:
|
|
163
|
+
type: E5.DateTime(),
|
|
166
164
|
isOptional: false
|
|
167
165
|
}
|
|
168
166
|
}
|
|
169
167
|
});
|
|
170
|
-
const AttachmentDetachedPayload =
|
|
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:
|
|
173
|
+
type: E5.String_unsecure(),
|
|
176
174
|
isOptional: false
|
|
177
175
|
},
|
|
178
176
|
fileId: {
|
|
179
|
-
type:
|
|
177
|
+
type: E5.String_unsecure(),
|
|
180
178
|
isOptional: false
|
|
181
179
|
},
|
|
182
180
|
entityType: {
|
|
183
|
-
type:
|
|
181
|
+
type: E5.String_unsecure(),
|
|
184
182
|
isOptional: false
|
|
185
183
|
},
|
|
186
184
|
entityId: {
|
|
187
|
-
type:
|
|
185
|
+
type: E5.String_unsecure(),
|
|
188
186
|
isOptional: false
|
|
189
187
|
},
|
|
190
188
|
detachedBy: {
|
|
191
|
-
type:
|
|
189
|
+
type: E5.String_unsecure(),
|
|
192
190
|
isOptional: true
|
|
193
191
|
},
|
|
194
192
|
detachedAt: {
|
|
195
|
-
type:
|
|
193
|
+
type: E5.DateTime(),
|
|
196
194
|
isOptional: false
|
|
197
195
|
}
|
|
198
196
|
}
|
|
199
197
|
});
|
|
200
|
-
const UploadSessionStartedPayload =
|
|
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:
|
|
203
|
+
type: E5.String_unsecure(),
|
|
206
204
|
isOptional: false
|
|
207
205
|
},
|
|
208
206
|
fileName: {
|
|
209
|
-
type:
|
|
207
|
+
type: E5.String_unsecure(),
|
|
210
208
|
isOptional: false
|
|
211
209
|
},
|
|
212
210
|
mimeType: {
|
|
213
|
-
type:
|
|
211
|
+
type: E5.String_unsecure(),
|
|
214
212
|
isOptional: false
|
|
215
213
|
},
|
|
216
214
|
totalSize: {
|
|
217
|
-
type:
|
|
215
|
+
type: E5.Int_unsecure(),
|
|
218
216
|
isOptional: false
|
|
219
217
|
},
|
|
220
218
|
ownerId: {
|
|
221
|
-
type:
|
|
219
|
+
type: E5.String_unsecure(),
|
|
222
220
|
isOptional: false
|
|
223
221
|
},
|
|
224
222
|
startedAt: {
|
|
225
|
-
type:
|
|
223
|
+
type: E5.DateTime(),
|
|
226
224
|
isOptional: false
|
|
227
225
|
}
|
|
228
226
|
}
|
|
229
227
|
});
|
|
230
|
-
const UploadSessionCompletedPayload =
|
|
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:
|
|
233
|
+
type: E5.String_unsecure(),
|
|
236
234
|
isOptional: false
|
|
237
235
|
},
|
|
238
236
|
fileId: {
|
|
239
|
-
type:
|
|
237
|
+
type: E5.String_unsecure(),
|
|
240
238
|
isOptional: false
|
|
241
239
|
},
|
|
242
240
|
fileName: {
|
|
243
|
-
type:
|
|
241
|
+
type: E5.String_unsecure(),
|
|
244
242
|
isOptional: false
|
|
245
243
|
},
|
|
246
244
|
size: {
|
|
247
|
-
type:
|
|
245
|
+
type: E5.Int_unsecure(),
|
|
248
246
|
isOptional: false
|
|
249
247
|
},
|
|
250
248
|
completedAt: {
|
|
251
|
-
type:
|
|
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 AttachmentDetachedEvent,\n UploadSessionStartedEvent,\n UploadSessionCompletedEvent,\n};\n"],"mappings":";;;;;AAKA,MAAM,sBAAsBA,GAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,QAAQ;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,MAAM;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EAChE,iBAAiB;GACf,MAAMA,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACnE,YAAY;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACnE;CACF,CAAC;AAEF,MAAM,qBAAqBD,GAAkB;CAC3C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,QAAQ;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;G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;EAClE;CACF,CAAC;AAEF,MAAM,gCAAgCD,GAAkB;CACtD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,WAAW;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,MAAM;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EAChE,aAAa;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACpE;CACF,CAAC;;;;AAOF,MAAa,oBAAoB,YAAY;CAC3C,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,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"}
|
package/dist/files.feature.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.feature.d.ts","names":[],"sources":["../src/files.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAWa,cAAc"}
|
package/dist/files.feature.js
CHANGED
|
@@ -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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