@open-mercato/enterprise 0.6.8-develop.7031.1.005201cd70 → 0.6.8-develop.7037.1.ea0277b01e
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/.turbo/turbo-build.log +1 -1
- package/dist/modules/security/data/entities.js +18 -0
- package/dist/modules/security/data/entities.js.map +2 -2
- package/dist/modules/security/migrations/Migration20260811143757_security.js +13 -0
- package/dist/modules/security/migrations/Migration20260811143757_security.js.map +7 -0
- package/dist/modules/security/services/SudoChallengeService.js +110 -38
- package/dist/modules/security/services/SudoChallengeService.js.map +2 -2
- package/package.json +5 -5
- package/src/modules/security/data/entities.ts +18 -0
- package/src/modules/security/migrations/.snapshot-open-mercato.json +848 -275
- package/src/modules/security/migrations/Migration20260811143757_security.ts +13 -0
- package/src/modules/security/services/SudoChallengeService.ts +145 -47
|
@@ -174,6 +174,21 @@ export class SudoSession {
|
|
|
174
174
|
@Property({ name: 'tenant_id', type: 'uuid' })
|
|
175
175
|
tenantId!: string
|
|
176
176
|
|
|
177
|
+
@Property({ name: 'scope_tenant_id', type: 'uuid', nullable: true })
|
|
178
|
+
scopeTenantId?: string | null
|
|
179
|
+
|
|
180
|
+
@Property({ name: 'scope_organization_id', type: 'uuid', nullable: true })
|
|
181
|
+
scopeOrganizationId?: string | null
|
|
182
|
+
|
|
183
|
+
@Property({ name: 'target_identifier', type: 'text', nullable: true })
|
|
184
|
+
targetIdentifier?: string | null
|
|
185
|
+
|
|
186
|
+
@Property({ name: 'sudo_config_id', type: 'uuid', nullable: true })
|
|
187
|
+
sudoConfigId?: string | null
|
|
188
|
+
|
|
189
|
+
@Property({ name: 'sudo_config_updated_at', type: Date, nullable: true })
|
|
190
|
+
sudoConfigUpdatedAt?: Date | null
|
|
191
|
+
|
|
177
192
|
@Property({ name: 'session_token', type: 'text' })
|
|
178
193
|
sessionToken!: string
|
|
179
194
|
|
|
@@ -183,6 +198,9 @@ export class SudoSession {
|
|
|
183
198
|
@Property({ name: 'expires_at', type: Date })
|
|
184
199
|
expiresAt!: Date
|
|
185
200
|
|
|
201
|
+
@Property({ name: 'verified_at', type: Date, nullable: true })
|
|
202
|
+
verifiedAt?: Date | null
|
|
203
|
+
|
|
186
204
|
@Property({ name: 'created_at', type: Date, onCreate: () => new Date() })
|
|
187
205
|
createdAt: Date = new Date()
|
|
188
206
|
}
|