@objectstack/service-settings 9.9.0 → 9.10.0

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/dist/index.cjs CHANGED
@@ -4238,7 +4238,7 @@ var SettingsServicePlugin = class {
4238
4238
  if (engine) {
4239
4239
  this.service.bindEngine(
4240
4240
  wrapEngineAsSettingsEngine(engine),
4241
- this.buildAuditSink(ctx, engine),
4241
+ void 0,
4242
4242
  {
4243
4243
  secretStore: this.buildSecretStore(engine),
4244
4244
  auditWriter: this.buildAuditWriter(ctx, engine),
@@ -4264,32 +4264,6 @@ var SettingsServicePlugin = class {
4264
4264
  );
4265
4265
  });
4266
4266
  }
4267
- /** Glue an `engine.insert('sys_audit_log', …)` audit sink. */
4268
- buildAuditSink(ctx, engine) {
4269
- return {
4270
- record: async (entry) => {
4271
- try {
4272
- await engine.insert?.("sys_audit_log", {
4273
- actor_id: entry.userId ?? null,
4274
- entity_type: "sys_setting",
4275
- entity_id: `${entry.namespace}.${entry.key}`,
4276
- action: entry.action,
4277
- payload: {
4278
- namespace: entry.namespace,
4279
- key: entry.key,
4280
- scope: entry.scope,
4281
- encrypted: entry.encrypted,
4282
- digest: entry.valueDigest
4283
- },
4284
- request_id: entry.requestId ?? null,
4285
- occurred_at: (/* @__PURE__ */ new Date()).toISOString()
4286
- });
4287
- } catch (err) {
4288
- ctx.logger?.warn?.("SettingsServicePlugin: audit record failed: " + (err?.message ?? err));
4289
- }
4290
- }
4291
- };
4292
- }
4293
4267
  /**
4294
4268
  * Phase 3: build a `sys_secret`-backed implementation of
4295
4269
  * `SettingsSecretStore`. The store bypasses the tenant audit