@cosmicdrift/kumiko-types 0.320.0 → 0.321.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.321.0",
|
|
4
4
|
"description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -4,6 +4,7 @@ import type { KumikoEventTypeMap } from "./event-type-map";
|
|
|
4
4
|
import type { Registry } from "./feature";
|
|
5
5
|
import type { FileContext } from "./file-handle-types";
|
|
6
6
|
import type { AppendEventFn, UnsafeAppendEventFn } from "./handlers";
|
|
7
|
+
import type { SecretsContext } from "./secrets-types";
|
|
7
8
|
|
|
8
9
|
// Minimal, read+write surface handed to a MultiStreamProjection's apply()
|
|
9
10
|
// when it needs to produce follow-up events (saga / process-manager
|
|
@@ -44,4 +45,8 @@ export type MultiStreamApplyContext<TMap extends object = KumikoEventTypeMap> =
|
|
|
44
45
|
// Derive-on-first-use variants, mirrors AppContext.derivatives. Present
|
|
45
46
|
// exactly when `files` is — same file-foundation-provider precondition.
|
|
46
47
|
readonly derivatives?: DerivativesContext;
|
|
48
|
+
// Tenant-scoped secret reads for side-effect MSPs (e.g. step-dispatcher's
|
|
49
|
+
// webhook auth), audited via the read's own auditCtx. Present when the
|
|
50
|
+
// app booted with the secrets feature; undefined otherwise.
|
|
51
|
+
readonly secrets?: SecretsContext;
|
|
47
52
|
};
|
package/src/step.ts
CHANGED
|
@@ -342,9 +342,12 @@ export type StepNamespace = {
|
|
|
342
342
|
readonly method?: "POST" | "PUT" | "PATCH";
|
|
343
343
|
readonly headers?: StepResolver<Readonly<Record<string, string>>>;
|
|
344
344
|
readonly body?: StepResolver<unknown>;
|
|
345
|
+
// Name inside the tenant-owned secrets namespace
|
|
346
|
+
// `step-dispatcher:webhook-auth.<secret>` (secrets feature). Resolved
|
|
347
|
+
// per-tenant at dispatch time — never a global/env-scoped secret.
|
|
345
348
|
readonly auth?:
|
|
346
|
-
| { readonly kind: "bearer"; readonly
|
|
347
|
-
| { readonly kind: "header"; readonly name: string; readonly
|
|
349
|
+
| { readonly kind: "bearer"; readonly secret: string }
|
|
350
|
+
| { readonly kind: "header"; readonly name: string; readonly secret: string };
|
|
348
351
|
readonly mode: "deferred";
|
|
349
352
|
readonly retry?: { readonly times: number; readonly backoff: "exponential" | "linear" };
|
|
350
353
|
}) => StepInstance;
|