@eum-agent/extension-catalog 1.1.0 → 1.2.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/defaults-contract.js +0 -3
- package/dist/index.js +6 -4122
- package/package.json +6 -6
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/defaults-contract.ts
|
|
3
|
-
/** A request starts or shares one host-owned attempt; observer disconnects never cancel it. */
|
|
4
3
|
const DefaultsEnsureParamsSchema = z.object({
|
|
5
4
|
trigger: z.enum(["postinstall", "gateway-start"]),
|
|
6
5
|
expectedProductVersion: z.string().min(1).max(128),
|
|
7
6
|
remainingWorkMs: z.number().int().min(1).max(18e4)
|
|
8
7
|
}).strict();
|
|
9
|
-
/** Passive bounded candidate facts; skipped counts include declarations preserved for their user. */
|
|
10
8
|
const DefaultsStatusSchema = z.object({
|
|
11
9
|
state: z.enum([
|
|
12
10
|
"pending-snapshot",
|
|
@@ -42,7 +40,6 @@ const DefaultsStatusSchema = z.object({
|
|
|
42
40
|
reasonCode: z.string().regex(/^[A-Z][A-Z0-9_]{0,127}$/).optional(),
|
|
43
41
|
retryAfterSeconds: z.number().nonnegative().max(86400).optional()
|
|
44
42
|
}).strict();
|
|
45
|
-
/** Immediate acknowledgement of a shared initialization task and its current durable facts. */
|
|
46
43
|
const DefaultsEnsureDataSchema = z.object({
|
|
47
44
|
taskId: z.uuid().nullable(),
|
|
48
45
|
status: DefaultsStatusSchema
|