@cosmicdrift/kumiko-types 0.365.0 → 0.365.1
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/config.d.ts
CHANGED
|
@@ -154,12 +154,17 @@ export type JobBackoff = JobBackoffStrategy | {
|
|
|
154
154
|
readonly type: JobBackoffStrategy;
|
|
155
155
|
readonly delayMs?: number | undefined;
|
|
156
156
|
};
|
|
157
|
+
export type MaxPerTenantOptions = {
|
|
158
|
+
readonly limit: number;
|
|
159
|
+
readonly onLimit: "skip" | "defer";
|
|
160
|
+
readonly deferMs?: number | undefined;
|
|
161
|
+
};
|
|
157
162
|
export type JobDefinition = {
|
|
158
163
|
readonly name: string;
|
|
159
164
|
readonly handler: JobHandlerFn;
|
|
160
165
|
readonly trigger: JobTrigger;
|
|
161
166
|
readonly concurrency?: ConcurrencyMode | undefined;
|
|
162
|
-
readonly maxPerTenant?: number | undefined;
|
|
167
|
+
readonly maxPerTenant?: number | MaxPerTenantOptions | undefined;
|
|
163
168
|
readonly debounceMs?: number | undefined;
|
|
164
169
|
readonly retries?: number | undefined;
|
|
165
170
|
readonly backoff?: JobBackoff | undefined;
|
package/dist/handlers.d.ts
CHANGED
|
@@ -127,6 +127,10 @@ export type JobTriggerEvent = {
|
|
|
127
127
|
};
|
|
128
128
|
export type JobRunnerRef = {
|
|
129
129
|
handleEvent(eventName: string, payload: Record<string, unknown>, user?: SessionUser, triggerEvent?: JobTriggerEvent): Promise<void>;
|
|
130
|
+
dispatch?(jobName: string, payload: Record<string, unknown>, meta?: {
|
|
131
|
+
readonly priority?: number;
|
|
132
|
+
readonly jobId?: string;
|
|
133
|
+
}): Promise<unknown>;
|
|
130
134
|
};
|
|
131
135
|
export type DispatchWriteRef = {
|
|
132
136
|
readonly write: (user: SessionUser, qn: string, payload: unknown, inheritedOrigin?: WriteOrigin) => Promise<WriteResult>;
|
|
@@ -40,7 +40,8 @@ interface KmsAdapterBase {
|
|
|
40
40
|
createKey(subject: SubjectId, ctx: KmsContext): Promise<void>;
|
|
41
41
|
/**
|
|
42
42
|
* Erases the key material immediately; the tombstone row stays for the
|
|
43
|
-
* audit trail. Idempotent
|
|
43
|
+
* audit trail. Idempotent. A never-keyed subject gets a tombstone too, so a
|
|
44
|
+
* later createKey cannot mint a fresh key for pre-KMS plaintext.
|
|
44
45
|
*/
|
|
45
46
|
eraseKey(subject: SubjectId, ctx: KmsContext): Promise<void>;
|
|
46
47
|
/** Probe for boot + readiness. Throws when the backend is unreachable. */
|
|
@@ -16,4 +16,9 @@ export type MultiStreamApplyContext<TMap extends object = KumikoEventTypeMap> =
|
|
|
16
16
|
readonly files?: FileContext;
|
|
17
17
|
readonly derivatives?: DerivativesContext;
|
|
18
18
|
readonly secrets?: SecretsContext;
|
|
19
|
+
readonly jobs?: {
|
|
20
|
+
dispatch(jobName: string, payload: Record<string, unknown>, options?: {
|
|
21
|
+
readonly jobId?: string;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
};
|
|
19
24
|
};
|
package/dist/screen.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export interface FieldFormatRegistry {
|
|
|
13
13
|
readonly locale?: string;
|
|
14
14
|
readonly dateStyle?: "full" | "long" | "medium" | "short";
|
|
15
15
|
readonly timeStyle?: "full" | "long" | "medium" | "short";
|
|
16
|
+
/** IANA zone id (e.g. "Europe/Berlin"). Default: the runtime's zone. */
|
|
17
|
+
readonly timeZone?: string;
|
|
16
18
|
};
|
|
17
19
|
date: {
|
|
18
20
|
readonly locale?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-types",
|
|
3
|
-
"version": "0.365.
|
|
3
|
+
"version": "0.365.1",
|
|
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>",
|