@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.d.cts CHANGED
@@ -500,8 +500,6 @@ declare class SettingsServicePlugin implements Plugin {
500
500
  constructor(opts?: SettingsServicePluginOptions);
501
501
  init(ctx: PluginContext): Promise<void>;
502
502
  start(ctx: PluginContext): Promise<void>;
503
- /** Glue an `engine.insert('sys_audit_log', …)` audit sink. */
504
- private buildAuditSink;
505
503
  /**
506
504
  * Phase 3: build a `sys_secret`-backed implementation of
507
505
  * `SettingsSecretStore`. The store bypasses the tenant audit
package/dist/index.d.ts CHANGED
@@ -500,8 +500,6 @@ declare class SettingsServicePlugin implements Plugin {
500
500
  constructor(opts?: SettingsServicePluginOptions);
501
501
  init(ctx: PluginContext): Promise<void>;
502
502
  start(ctx: PluginContext): Promise<void>;
503
- /** Glue an `engine.insert('sys_audit_log', …)` audit sink. */
504
- private buildAuditSink;
505
503
  /**
506
504
  * Phase 3: build a `sys_secret`-backed implementation of
507
505
  * `SettingsSecretStore`. The store bypasses the tenant audit
package/dist/index.js CHANGED
@@ -4174,7 +4174,7 @@ var SettingsServicePlugin = class {
4174
4174
  if (engine) {
4175
4175
  this.service.bindEngine(
4176
4176
  wrapEngineAsSettingsEngine(engine),
4177
- this.buildAuditSink(ctx, engine),
4177
+ void 0,
4178
4178
  {
4179
4179
  secretStore: this.buildSecretStore(engine),
4180
4180
  auditWriter: this.buildAuditWriter(ctx, engine),
@@ -4200,32 +4200,6 @@ var SettingsServicePlugin = class {
4200
4200
  );
4201
4201
  });
4202
4202
  }
4203
- /** Glue an `engine.insert('sys_audit_log', …)` audit sink. */
4204
- buildAuditSink(ctx, engine) {
4205
- return {
4206
- record: async (entry) => {
4207
- try {
4208
- await engine.insert?.("sys_audit_log", {
4209
- actor_id: entry.userId ?? null,
4210
- entity_type: "sys_setting",
4211
- entity_id: `${entry.namespace}.${entry.key}`,
4212
- action: entry.action,
4213
- payload: {
4214
- namespace: entry.namespace,
4215
- key: entry.key,
4216
- scope: entry.scope,
4217
- encrypted: entry.encrypted,
4218
- digest: entry.valueDigest
4219
- },
4220
- request_id: entry.requestId ?? null,
4221
- occurred_at: (/* @__PURE__ */ new Date()).toISOString()
4222
- });
4223
- } catch (err) {
4224
- ctx.logger?.warn?.("SettingsServicePlugin: audit record failed: " + (err?.message ?? err));
4225
- }
4226
- }
4227
- };
4228
- }
4229
4203
  /**
4230
4204
  * Phase 3: build a `sys_secret`-backed implementation of
4231
4205
  * `SettingsSecretStore`. The store bypasses the tenant audit