@listen-fire/engine-contracts 0.12.3 → 0.12.5

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/adapter.d.ts CHANGED
@@ -1579,7 +1579,7 @@ export interface ReadInput {
1579
1579
  export interface DiscriminableEvent {
1580
1580
  /** The event body — what an `EventType.match` is evaluated against, and what
1581
1581
  * becomes the seeded position's `data`. */
1582
- payload: unknown;
1582
+ payload?: unknown;
1583
1583
  /** Re-identifying external key for the record this event concerns; the
1584
1584
  * engine uses it for the KG bridge / correspondence lookup. */
1585
1585
  externalId?: string;
@@ -15,9 +15,9 @@ declare const runInputSchema: z.ZodObject<{
15
15
  pipelineInputId: string;
16
16
  adapterType: string;
17
17
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
18
- payload: unknown;
19
18
  objectType?: string | undefined;
20
19
  triggerEntryId?: string | undefined;
20
+ payload?: unknown;
21
21
  changeType?: "create" | "update" | "delete" | undefined;
22
22
  actor?: {
23
23
  type: "user" | "api-token" | "system";
@@ -39,9 +39,9 @@ declare const runInputSchema: z.ZodObject<{
39
39
  pipelineInputId: string;
40
40
  adapterType: string;
41
41
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
42
- payload: unknown;
43
42
  objectType?: string | undefined;
44
43
  triggerEntryId?: string | undefined;
44
+ payload?: unknown;
45
45
  changeType?: "create" | "update" | "delete" | undefined;
46
46
  actor?: {
47
47
  type: "user" | "api-token" | "system";
@@ -87,9 +87,9 @@ declare const resumeInputSchema: z.ZodObject<{
87
87
  pipelineInputId: string;
88
88
  adapterType: string;
89
89
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
90
- payload: unknown;
91
90
  objectType?: string | undefined;
92
91
  triggerEntryId?: string | undefined;
92
+ payload?: unknown;
93
93
  changeType?: "create" | "update" | "delete" | undefined;
94
94
  actor?: {
95
95
  type: "user" | "api-token" | "system";
@@ -111,9 +111,9 @@ declare const resumeInputSchema: z.ZodObject<{
111
111
  pipelineInputId: string;
112
112
  adapterType: string;
113
113
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
114
- payload: unknown;
115
114
  objectType?: string | undefined;
116
115
  triggerEntryId?: string | undefined;
116
+ payload?: unknown;
117
117
  changeType?: "create" | "update" | "delete" | undefined;
118
118
  actor?: {
119
119
  type: "user" | "api-token" | "system";
@@ -187,13 +187,13 @@ export declare const recordedRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
187
187
  }, z.core.$strip>;
188
188
  family: z.ZodString;
189
189
  method: z.ZodString;
190
- args: z.ZodUnknown;
190
+ args: z.ZodOptional<z.ZodUnknown>;
191
191
  after: z.ZodArray<z.ZodNumber>;
192
192
  }, z.core.$strict>, z.ZodObject<{
193
193
  answer: z.ZodOptional<z.ZodUnknown>;
194
194
  family: z.ZodString;
195
195
  method: z.ZodString;
196
- args: z.ZodUnknown;
196
+ args: z.ZodOptional<z.ZodUnknown>;
197
197
  after: z.ZodArray<z.ZodNumber>;
198
198
  }, z.core.$strict>]>;
199
199
  export type RecordedRequest = z.infer<typeof recordedRequestSchema>;
@@ -209,9 +209,9 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
209
209
  pipelineInputId: string;
210
210
  adapterType: string;
211
211
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
212
- payload: unknown;
213
212
  objectType?: string | undefined;
214
213
  triggerEntryId?: string | undefined;
214
+ payload?: unknown;
215
215
  changeType?: "create" | "update" | "delete" | undefined;
216
216
  actor?: {
217
217
  type: "user" | "api-token" | "system";
@@ -233,9 +233,9 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
233
233
  pipelineInputId: string;
234
234
  adapterType: string;
235
235
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
236
- payload: unknown;
237
236
  objectType?: string | undefined;
238
237
  triggerEntryId?: string | undefined;
238
+ payload?: unknown;
239
239
  changeType?: "create" | "update" | "delete" | undefined;
240
240
  actor?: {
241
241
  type: "user" | "api-token" | "system";
@@ -284,13 +284,13 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
284
284
  }, z.core.$strip>;
285
285
  family: z.ZodString;
286
286
  method: z.ZodString;
287
- args: z.ZodUnknown;
287
+ args: z.ZodOptional<z.ZodUnknown>;
288
288
  after: z.ZodArray<z.ZodNumber>;
289
289
  }, z.core.$strict>, z.ZodObject<{
290
290
  answer: z.ZodOptional<z.ZodUnknown>;
291
291
  family: z.ZodString;
292
292
  method: z.ZodString;
293
- args: z.ZodUnknown;
293
+ args: z.ZodOptional<z.ZodUnknown>;
294
294
  after: z.ZodArray<z.ZodNumber>;
295
295
  }, z.core.$strict>]>>;
296
296
  result: z.ZodOptional<z.ZodUnknown>;
@@ -309,9 +309,9 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
309
309
  pipelineInputId: string;
310
310
  adapterType: string;
311
311
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
312
- payload: unknown;
313
312
  objectType?: string | undefined;
314
313
  triggerEntryId?: string | undefined;
314
+ payload?: unknown;
315
315
  changeType?: "create" | "update" | "delete" | undefined;
316
316
  actor?: {
317
317
  type: "user" | "api-token" | "system";
@@ -333,9 +333,9 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
333
333
  pipelineInputId: string;
334
334
  adapterType: string;
335
335
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
336
- payload: unknown;
337
336
  objectType?: string | undefined;
338
337
  triggerEntryId?: string | undefined;
338
+ payload?: unknown;
339
339
  changeType?: "create" | "update" | "delete" | undefined;
340
340
  actor?: {
341
341
  type: "user" | "api-token" | "system";
@@ -392,13 +392,13 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
392
392
  }, z.core.$strip>;
393
393
  family: z.ZodString;
394
394
  method: z.ZodString;
395
- args: z.ZodUnknown;
395
+ args: z.ZodOptional<z.ZodUnknown>;
396
396
  after: z.ZodArray<z.ZodNumber>;
397
397
  }, z.core.$strict>, z.ZodObject<{
398
398
  answer: z.ZodOptional<z.ZodUnknown>;
399
399
  family: z.ZodString;
400
400
  method: z.ZodString;
401
- args: z.ZodUnknown;
401
+ args: z.ZodOptional<z.ZodUnknown>;
402
402
  after: z.ZodArray<z.ZodNumber>;
403
403
  }, z.core.$strict>]>>;
404
404
  result: z.ZodOptional<z.ZodUnknown>;
@@ -417,9 +417,9 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
417
417
  pipelineInputId: string;
418
418
  adapterType: string;
419
419
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
420
- payload: unknown;
421
420
  objectType?: string | undefined;
422
421
  triggerEntryId?: string | undefined;
422
+ payload?: unknown;
423
423
  changeType?: "create" | "update" | "delete" | undefined;
424
424
  actor?: {
425
425
  type: "user" | "api-token" | "system";
@@ -441,9 +441,9 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
441
441
  pipelineInputId: string;
442
442
  adapterType: string;
443
443
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
444
- payload: unknown;
445
444
  objectType?: string | undefined;
446
445
  triggerEntryId?: string | undefined;
446
+ payload?: unknown;
447
447
  changeType?: "create" | "update" | "delete" | undefined;
448
448
  actor?: {
449
449
  type: "user" | "api-token" | "system";
@@ -501,13 +501,13 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
501
501
  }, z.core.$strip>;
502
502
  family: z.ZodString;
503
503
  method: z.ZodString;
504
- args: z.ZodUnknown;
504
+ args: z.ZodOptional<z.ZodUnknown>;
505
505
  after: z.ZodArray<z.ZodNumber>;
506
506
  }, z.core.$strict>, z.ZodObject<{
507
507
  answer: z.ZodOptional<z.ZodUnknown>;
508
508
  family: z.ZodString;
509
509
  method: z.ZodString;
510
- args: z.ZodUnknown;
510
+ args: z.ZodOptional<z.ZodUnknown>;
511
511
  after: z.ZodArray<z.ZodNumber>;
512
512
  }, z.core.$strict>]>>;
513
513
  result: z.ZodOptional<z.ZodUnknown>;
@@ -526,9 +526,9 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
526
526
  pipelineInputId: string;
527
527
  adapterType: string;
528
528
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
529
- payload: unknown;
530
529
  objectType?: string | undefined;
531
530
  triggerEntryId?: string | undefined;
531
+ payload?: unknown;
532
532
  changeType?: "create" | "update" | "delete" | undefined;
533
533
  actor?: {
534
534
  type: "user" | "api-token" | "system";
@@ -550,9 +550,9 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
550
550
  pipelineInputId: string;
551
551
  adapterType: string;
552
552
  triggerType: "extraction" | "snapshot" | "poll" | "changes-feed" | "webhook" | "mutation";
553
- payload: unknown;
554
553
  objectType?: string | undefined;
555
554
  triggerEntryId?: string | undefined;
555
+ payload?: unknown;
556
556
  changeType?: "create" | "update" | "delete" | undefined;
557
557
  actor?: {
558
558
  type: "user" | "api-token" | "system";
@@ -611,13 +611,13 @@ export declare const hostRecordingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
611
611
  }, z.core.$strip>;
612
612
  family: z.ZodString;
613
613
  method: z.ZodString;
614
- args: z.ZodUnknown;
614
+ args: z.ZodOptional<z.ZodUnknown>;
615
615
  after: z.ZodArray<z.ZodNumber>;
616
616
  }, z.core.$strict>, z.ZodObject<{
617
617
  answer: z.ZodOptional<z.ZodUnknown>;
618
618
  family: z.ZodString;
619
619
  method: z.ZodString;
620
- args: z.ZodUnknown;
620
+ args: z.ZodOptional<z.ZodUnknown>;
621
621
  after: z.ZodArray<z.ZodNumber>;
622
622
  }, z.core.$strict>]>>;
623
623
  result: z.ZodOptional<z.ZodUnknown>;
@@ -86,7 +86,7 @@ const METHODS = new Set((0, host_families_1.hostMethodPaths)());
86
86
  const requestCommon = {
87
87
  family: zod_1.z.string(),
88
88
  method: zod_1.z.string(),
89
- args: zod_1.z.unknown(),
89
+ args: zod_1.z.unknown().optional(),
90
90
  /** The requests (by index into `requests`) the host had already answered
91
91
  * when this one was made, less those another of them implies: a request
92
92
  * answered before one of these was made was answered before this one
package/dist/event.d.ts CHANGED
@@ -45,7 +45,7 @@ export declare const triggerEventSchema: z.ZodObject<{
45
45
  webhook: "webhook";
46
46
  mutation: "mutation";
47
47
  }>;
48
- payload: z.ZodUnknown;
48
+ payload: z.ZodOptional<z.ZodUnknown>;
49
49
  changeType: z.ZodOptional<z.ZodEnum<{
50
50
  create: "create";
51
51
  update: "update";
package/dist/event.js CHANGED
@@ -32,7 +32,7 @@ exports.triggerEventSchema = zod_1.z.object({
32
32
  objectType: zod_1.z.string().optional(),
33
33
  triggerEntryId: zod_1.z.string().optional(),
34
34
  triggerType: exports.triggerTypeSchema,
35
- payload: zod_1.z.unknown(),
35
+ payload: zod_1.z.unknown().optional(),
36
36
  changeType: zod_1.z.enum(['create', 'update', 'delete']).optional(),
37
37
  actor: exports.actorSchema.optional(),
38
38
  snapshotRunId: zod_1.z.string().optional(),
@@ -423,7 +423,7 @@ declare const aggregationSchema: z.ZodObject<{
423
423
  export type Aggregation = z.infer<typeof aggregationSchema>;
424
424
  export declare const filterExpressionSchema: z.ZodType<FilterExpression>;
425
425
  export declare const fieldMappingSchema: z.ZodObject<{
426
- targetField: z.ZodUnknown;
426
+ targetField: z.ZodOptional<z.ZodUnknown>;
427
427
  expression: z.ZodOptional<z.ZodType<Expression, unknown, z.core.$ZodTypeInternals<Expression, unknown>>>;
428
428
  traversal: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
429
429
  type: z.ZodLiteral<"edge">;
@@ -247,7 +247,7 @@ exports.filterExpressionSchema = zod_1.z.union([
247
247
  ]);
248
248
  // -- FieldMapping --
249
249
  exports.fieldMappingSchema = zod_1.z.object({
250
- targetField: zod_1.z.unknown(),
250
+ targetField: zod_1.z.unknown().optional(),
251
251
  expression: lazyExpression.optional(),
252
252
  // Legacy fields (used when expression is absent; normalized to expression at evaluation time)
253
253
  traversal: zod_1.z.array(exports.traversalStepSchema).default([]),
@@ -58,7 +58,7 @@ export declare const RpcRequest: z.ZodObject<{
58
58
  protocolVersion: z.ZodString;
59
59
  method: z.ZodString;
60
60
  cacheScopeId: z.ZodString;
61
- params: z.ZodUnknown;
61
+ params: z.ZodOptional<z.ZodUnknown>;
62
62
  credential: z.ZodOptional<z.ZodObject<{
63
63
  name: z.ZodString;
64
64
  fields: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -86,7 +86,7 @@ export declare const CREDENTIAL_REFUSED_CODE = "credential_refused";
86
86
  export declare const WireRetryAfter: z.ZodNumber;
87
87
  export declare const RpcResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
88
88
  ok: z.ZodLiteral<true>;
89
- result: z.ZodUnknown;
89
+ result: z.ZodOptional<z.ZodUnknown>;
90
90
  credentialUpdate: z.ZodOptional<z.ZodObject<{
91
91
  name: z.ZodString;
92
92
  fields: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -121,7 +121,7 @@ export declare const WirePositionIdentity: z.ZodDiscriminatedUnion<[z.ZodObject<
121
121
  data: z.ZodOptional<z.ZodUnknown>;
122
122
  }, z.core.$strip>, z.ZodObject<{
123
123
  kind: z.ZodLiteral<"unstable">;
124
- data: z.ZodUnknown;
124
+ data: z.ZodOptional<z.ZodUnknown>;
125
125
  }, z.core.$strip>], "kind">;
126
126
  /** Mirror of `EphemeralOriginRef` — provenance for synthetic positions. */
127
127
  export declare const WireEphemeralOriginRef: z.ZodUnion<readonly [z.ZodObject<{
@@ -153,7 +153,7 @@ export declare const WireSourcePosition: z.ZodObject<{
153
153
  data: z.ZodOptional<z.ZodUnknown>;
154
154
  }, z.core.$strip>, z.ZodObject<{
155
155
  kind: z.ZodLiteral<"unstable">;
156
- data: z.ZodUnknown;
156
+ data: z.ZodOptional<z.ZodUnknown>;
157
157
  }, z.core.$strip>], "kind">;
158
158
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
159
159
  kind: z.ZodLiteral<"extract">;
@@ -237,7 +237,7 @@ export declare const WireLandedRecordPosition: z.ZodObject<{
237
237
  data: z.ZodOptional<z.ZodUnknown>;
238
238
  }, z.core.$strip>, z.ZodObject<{
239
239
  kind: z.ZodLiteral<"unstable">;
240
- data: z.ZodUnknown;
240
+ data: z.ZodOptional<z.ZodUnknown>;
241
241
  }, z.core.$strip>], "kind">;
242
242
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
243
243
  kind: z.ZodLiteral<"extract">;
@@ -340,7 +340,7 @@ export declare const WireTriggerEvent: z.ZodObject<{
340
340
  webhook: "webhook";
341
341
  mutation: "mutation";
342
342
  }>;
343
- payload: z.ZodUnknown;
343
+ payload: z.ZodOptional<z.ZodUnknown>;
344
344
  changeType: z.ZodOptional<z.ZodEnum<{
345
345
  create: "create";
346
346
  update: "update";
@@ -512,7 +512,7 @@ export declare const WireRelatedResult: z.ZodObject<{
512
512
  data: z.ZodOptional<z.ZodUnknown>;
513
513
  }, z.core.$strip>, z.ZodObject<{
514
514
  kind: z.ZodLiteral<"unstable">;
515
- data: z.ZodUnknown;
515
+ data: z.ZodOptional<z.ZodUnknown>;
516
516
  }, z.core.$strip>], "kind">;
517
517
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
518
518
  kind: z.ZodLiteral<"extract">;
@@ -663,7 +663,7 @@ export declare const WireEdgesFromResult: z.ZodObject<{
663
663
  data: z.ZodOptional<z.ZodUnknown>;
664
664
  }, z.core.$strip>, z.ZodObject<{
665
665
  kind: z.ZodLiteral<"unstable">;
666
- data: z.ZodUnknown;
666
+ data: z.ZodOptional<z.ZodUnknown>;
667
667
  }, z.core.$strip>], "kind">;
668
668
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
669
669
  kind: z.ZodLiteral<"extract">;
@@ -778,7 +778,7 @@ export declare const WireGetFieldValueInput: z.ZodObject<{
778
778
  data: z.ZodOptional<z.ZodUnknown>;
779
779
  }, z.core.$strip>, z.ZodObject<{
780
780
  kind: z.ZodLiteral<"unstable">;
781
- data: z.ZodUnknown;
781
+ data: z.ZodOptional<z.ZodUnknown>;
782
782
  }, z.core.$strip>], "kind">;
783
783
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
784
784
  kind: z.ZodLiteral<"extract">;
@@ -858,7 +858,7 @@ export declare const WireGetRelatedInput: z.ZodObject<{
858
858
  data: z.ZodOptional<z.ZodUnknown>;
859
859
  }, z.core.$strip>, z.ZodObject<{
860
860
  kind: z.ZodLiteral<"unstable">;
861
- data: z.ZodUnknown;
861
+ data: z.ZodOptional<z.ZodUnknown>;
862
862
  }, z.core.$strip>], "kind">;
863
863
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
864
864
  kind: z.ZodLiteral<"extract">;
@@ -1182,12 +1182,12 @@ export declare const WireReadInput: z.ZodObject<{
1182
1182
  fieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1183
1183
  }, z.core.$strip>;
1184
1184
  export declare const WireTranslateFilterInput: z.ZodObject<{
1185
- expression: z.ZodUnknown;
1185
+ expression: z.ZodOptional<z.ZodUnknown>;
1186
1186
  entityType: z.ZodString;
1187
1187
  }, z.core.$strip>;
1188
1188
  export declare const WireFilterTranslationResult: z.ZodObject<{
1189
- native: z.ZodUnknown;
1190
- residual: z.ZodNullable<z.ZodUnknown>;
1189
+ native: z.ZodOptional<z.ZodUnknown>;
1190
+ residual: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
1191
1191
  }, z.core.$strip>;
1192
1192
  export declare const WireDedupRules: z.ZodObject<{
1193
1193
  constraints: z.ZodArray<z.ZodObject<{
@@ -1218,7 +1218,7 @@ export declare const WireGetActorCandidatesInput: z.ZodObject<{
1218
1218
  webhook: "webhook";
1219
1219
  mutation: "mutation";
1220
1220
  }>;
1221
- payload: z.ZodUnknown;
1221
+ payload: z.ZodOptional<z.ZodUnknown>;
1222
1222
  changeType: z.ZodOptional<z.ZodEnum<{
1223
1223
  create: "create";
1224
1224
  update: "update";
@@ -1259,7 +1259,7 @@ export declare const WireExtractActorInput: z.ZodObject<{
1259
1259
  webhook: "webhook";
1260
1260
  mutation: "mutation";
1261
1261
  }>;
1262
- payload: z.ZodUnknown;
1262
+ payload: z.ZodOptional<z.ZodUnknown>;
1263
1263
  changeType: z.ZodOptional<z.ZodEnum<{
1264
1264
  create: "create";
1265
1265
  update: "update";
@@ -1910,7 +1910,7 @@ export declare const RelatedPage: z.ZodObject<{
1910
1910
  data: z.ZodOptional<z.ZodUnknown>;
1911
1911
  }, z.core.$strip>, z.ZodObject<{
1912
1912
  kind: z.ZodLiteral<"unstable">;
1913
- data: z.ZodUnknown;
1913
+ data: z.ZodOptional<z.ZodUnknown>;
1914
1914
  }, z.core.$strip>], "kind">;
1915
1915
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1916
1916
  kind: z.ZodLiteral<"extract">;
@@ -1980,7 +1980,7 @@ export declare const RelatedPage: z.ZodObject<{
1980
1980
  }, z.core.$strip>;
1981
1981
  export type RelatedPageShape = z.infer<typeof RelatedPage>;
1982
1982
  export declare const WireDiscriminableEvent: z.ZodObject<{
1983
- payload: z.ZodUnknown;
1983
+ payload: z.ZodOptional<z.ZodUnknown>;
1984
1984
  idempotencyKey: z.ZodOptional<z.ZodString>;
1985
1985
  externalId: z.ZodOptional<z.ZodString>;
1986
1986
  tag: z.ZodOptional<z.ZodString>;
@@ -2009,7 +2009,7 @@ export declare const ADAPTER_DOOR_MAX_BATCH = 1000;
2009
2009
  * CLI's host double so a vendor is checked against the door's own shapes. */
2010
2010
  export declare const AdapterEmitBody: z.ZodObject<{
2011
2011
  events: z.ZodArray<z.ZodObject<{
2012
- payload: z.ZodUnknown;
2012
+ payload: z.ZodOptional<z.ZodUnknown>;
2013
2013
  idempotencyKey: z.ZodOptional<z.ZodString>;
2014
2014
  externalId: z.ZodOptional<z.ZodString>;
2015
2015
  tag: z.ZodOptional<z.ZodString>;
@@ -2063,7 +2063,7 @@ export type WireCheckInboundInputShape = z.infer<typeof WireCheckInboundInput>;
2063
2063
  export declare const WireInboundCheck: z.ZodDiscriminatedUnion<[z.ZodObject<{
2064
2064
  outcome: z.ZodLiteral<"accepted">;
2065
2065
  events: z.ZodArray<z.ZodObject<{
2066
- payload: z.ZodUnknown;
2066
+ payload: z.ZodOptional<z.ZodUnknown>;
2067
2067
  idempotencyKey: z.ZodOptional<z.ZodString>;
2068
2068
  externalId: z.ZodOptional<z.ZodString>;
2069
2069
  tag: z.ZodOptional<z.ZodString>;
@@ -2444,7 +2444,7 @@ export declare const METHODS: {
2444
2444
  data: z.ZodOptional<z.ZodUnknown>;
2445
2445
  }, z.core.$strip>, z.ZodObject<{
2446
2446
  kind: z.ZodLiteral<"unstable">;
2447
- data: z.ZodUnknown;
2447
+ data: z.ZodOptional<z.ZodUnknown>;
2448
2448
  }, z.core.$strip>], "kind">;
2449
2449
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2450
2450
  kind: z.ZodLiteral<"extract">;
@@ -2529,7 +2529,7 @@ export declare const METHODS: {
2529
2529
  data: z.ZodOptional<z.ZodUnknown>;
2530
2530
  }, z.core.$strip>, z.ZodObject<{
2531
2531
  kind: z.ZodLiteral<"unstable">;
2532
- data: z.ZodUnknown;
2532
+ data: z.ZodOptional<z.ZodUnknown>;
2533
2533
  }, z.core.$strip>], "kind">;
2534
2534
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2535
2535
  kind: z.ZodLiteral<"extract">;
@@ -2639,7 +2639,7 @@ export declare const METHODS: {
2639
2639
  data: z.ZodOptional<z.ZodUnknown>;
2640
2640
  }, z.core.$strip>, z.ZodObject<{
2641
2641
  kind: z.ZodLiteral<"unstable">;
2642
- data: z.ZodUnknown;
2642
+ data: z.ZodOptional<z.ZodUnknown>;
2643
2643
  }, z.core.$strip>], "kind">;
2644
2644
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2645
2645
  kind: z.ZodLiteral<"extract">;
@@ -2717,7 +2717,7 @@ export declare const METHODS: {
2717
2717
  data: z.ZodOptional<z.ZodUnknown>;
2718
2718
  }, z.core.$strip>, z.ZodObject<{
2719
2719
  kind: z.ZodLiteral<"unstable">;
2720
- data: z.ZodUnknown;
2720
+ data: z.ZodOptional<z.ZodUnknown>;
2721
2721
  }, z.core.$strip>], "kind">;
2722
2722
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2723
2723
  kind: z.ZodLiteral<"extract">;
@@ -2805,7 +2805,7 @@ export declare const METHODS: {
2805
2805
  data: z.ZodOptional<z.ZodUnknown>;
2806
2806
  }, z.core.$strip>, z.ZodObject<{
2807
2807
  kind: z.ZodLiteral<"unstable">;
2808
- data: z.ZodUnknown;
2808
+ data: z.ZodOptional<z.ZodUnknown>;
2809
2809
  }, z.core.$strip>], "kind">;
2810
2810
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2811
2811
  kind: z.ZodLiteral<"extract">;
@@ -2883,7 +2883,7 @@ export declare const METHODS: {
2883
2883
  data: z.ZodOptional<z.ZodUnknown>;
2884
2884
  }, z.core.$strip>, z.ZodObject<{
2885
2885
  kind: z.ZodLiteral<"unstable">;
2886
- data: z.ZodUnknown;
2886
+ data: z.ZodOptional<z.ZodUnknown>;
2887
2887
  }, z.core.$strip>], "kind">;
2888
2888
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2889
2889
  kind: z.ZodLiteral<"extract">;
@@ -2973,7 +2973,7 @@ export declare const METHODS: {
2973
2973
  data: z.ZodOptional<z.ZodUnknown>;
2974
2974
  }, z.core.$strip>, z.ZodObject<{
2975
2975
  kind: z.ZodLiteral<"unstable">;
2976
- data: z.ZodUnknown;
2976
+ data: z.ZodOptional<z.ZodUnknown>;
2977
2977
  }, z.core.$strip>], "kind">;
2978
2978
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2979
2979
  kind: z.ZodLiteral<"extract">;
@@ -3053,7 +3053,7 @@ export declare const METHODS: {
3053
3053
  data: z.ZodOptional<z.ZodUnknown>;
3054
3054
  }, z.core.$strip>, z.ZodObject<{
3055
3055
  kind: z.ZodLiteral<"unstable">;
3056
- data: z.ZodUnknown;
3056
+ data: z.ZodOptional<z.ZodUnknown>;
3057
3057
  }, z.core.$strip>], "kind">;
3058
3058
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3059
3059
  kind: z.ZodLiteral<"extract">;
@@ -3143,7 +3143,7 @@ export declare const METHODS: {
3143
3143
  data: z.ZodOptional<z.ZodUnknown>;
3144
3144
  }, z.core.$strip>, z.ZodObject<{
3145
3145
  kind: z.ZodLiteral<"unstable">;
3146
- data: z.ZodUnknown;
3146
+ data: z.ZodOptional<z.ZodUnknown>;
3147
3147
  }, z.core.$strip>], "kind">;
3148
3148
  originRef: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3149
3149
  kind: z.ZodLiteral<"extract">;
@@ -3219,7 +3219,7 @@ export declare const METHODS: {
3219
3219
  }, z.core.$strip>;
3220
3220
  readonly result: z.ZodObject<{
3221
3221
  events: z.ZodArray<z.ZodObject<{
3222
- payload: z.ZodUnknown;
3222
+ payload: z.ZodOptional<z.ZodUnknown>;
3223
3223
  idempotencyKey: z.ZodOptional<z.ZodString>;
3224
3224
  externalId: z.ZodOptional<z.ZodString>;
3225
3225
  tag: z.ZodOptional<z.ZodString>;
@@ -3538,7 +3538,7 @@ export declare const METHODS: {
3538
3538
  };
3539
3539
  readonly wakeKeys: {
3540
3540
  readonly params: z.ZodObject<{
3541
- raw: z.ZodUnknown;
3541
+ raw: z.ZodOptional<z.ZodUnknown>;
3542
3542
  }, z.core.$strip>;
3543
3543
  readonly result: z.ZodArray<z.ZodString>;
3544
3544
  };
@@ -3552,12 +3552,12 @@ export declare const METHODS: {
3552
3552
  };
3553
3553
  readonly translateFilter: {
3554
3554
  readonly params: z.ZodObject<{
3555
- expression: z.ZodUnknown;
3555
+ expression: z.ZodOptional<z.ZodUnknown>;
3556
3556
  entityType: z.ZodString;
3557
3557
  }, z.core.$strip>;
3558
3558
  readonly result: z.ZodObject<{
3559
- native: z.ZodUnknown;
3560
- residual: z.ZodNullable<z.ZodUnknown>;
3559
+ native: z.ZodOptional<z.ZodUnknown>;
3560
+ residual: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
3561
3561
  }, z.core.$strip>;
3562
3562
  };
3563
3563
  readonly getDedupRules: {
@@ -3588,7 +3588,7 @@ export declare const METHODS: {
3588
3588
  webhook: "webhook";
3589
3589
  mutation: "mutation";
3590
3590
  }>;
3591
- payload: z.ZodUnknown;
3591
+ payload: z.ZodOptional<z.ZodUnknown>;
3592
3592
  changeType: z.ZodOptional<z.ZodEnum<{
3593
3593
  create: "create";
3594
3594
  update: "update";
@@ -3649,7 +3649,7 @@ export declare const METHODS: {
3649
3649
  webhook: "webhook";
3650
3650
  mutation: "mutation";
3651
3651
  }>;
3652
- payload: z.ZodUnknown;
3652
+ payload: z.ZodOptional<z.ZodUnknown>;
3653
3653
  changeType: z.ZodOptional<z.ZodEnum<{
3654
3654
  create: "create";
3655
3655
  update: "update";
@@ -3735,7 +3735,7 @@ export declare const METHODS: {
3735
3735
  }, z.core.$strip>;
3736
3736
  readonly result: z.ZodObject<{
3737
3737
  events: z.ZodArray<z.ZodObject<{
3738
- payload: z.ZodUnknown;
3738
+ payload: z.ZodOptional<z.ZodUnknown>;
3739
3739
  idempotencyKey: z.ZodOptional<z.ZodString>;
3740
3740
  externalId: z.ZodOptional<z.ZodString>;
3741
3741
  tag: z.ZodOptional<z.ZodString>;
@@ -3781,7 +3781,7 @@ export declare const METHODS: {
3781
3781
  readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
3782
3782
  outcome: z.ZodLiteral<"accepted">;
3783
3783
  events: z.ZodArray<z.ZodObject<{
3784
- payload: z.ZodUnknown;
3784
+ payload: z.ZodOptional<z.ZodUnknown>;
3785
3785
  idempotencyKey: z.ZodOptional<z.ZodString>;
3786
3786
  externalId: z.ZodOptional<z.ZodString>;
3787
3787
  tag: z.ZodOptional<z.ZodString>;
package/dist/protocol.js CHANGED
@@ -82,7 +82,7 @@ exports.RpcRequest = zod_1.z.object({
82
82
  protocolVersion: zod_1.z.string(),
83
83
  method: zod_1.z.string(),
84
84
  cacheScopeId: zod_1.z.string(),
85
- params: zod_1.z.unknown(),
85
+ params: zod_1.z.unknown().optional(),
86
86
  /** Within version 2: absent for a server that declares no credential. The
87
87
  * one credential the connection names (`using`), under the declared
88
88
  * alternative it fills. Never more than one: a module that needs two
@@ -116,7 +116,7 @@ exports.WireRetryAfter = zod_1.z.number().nonnegative();
116
116
  exports.RpcResponse = zod_1.z.discriminatedUnion('ok', [
117
117
  zod_1.z.object({
118
118
  ok: zod_1.z.literal(true),
119
- result: zod_1.z.unknown(),
119
+ result: zod_1.z.unknown().optional(),
120
120
  credentialUpdate: exports.WireCredentialUpdate.optional(),
121
121
  cost: zod_1.z.array(exports.WireCostLine).optional(),
122
122
  retryAfter: exports.WireRetryAfter.optional(),
@@ -135,7 +135,7 @@ exports.RpcResponse = zod_1.z.discriminatedUnion('ok', [
135
135
  /** Mirror of `PositionIdentity` — stable external record OR unstable inline. */
136
136
  exports.WirePositionIdentity = zod_1.z.discriminatedUnion('kind', [
137
137
  zod_1.z.object({ kind: zod_1.z.literal('stable'), recordId: zod_1.z.string(), data: zod_1.z.unknown().optional() }),
138
- zod_1.z.object({ kind: zod_1.z.literal('unstable'), data: zod_1.z.unknown() }),
138
+ zod_1.z.object({ kind: zod_1.z.literal('unstable'), data: zod_1.z.unknown().optional() }),
139
139
  ]);
140
140
  /** Mirror of `EphemeralOriginRef` — provenance for synthetic positions. */
141
141
  exports.WireEphemeralOriginRef = zod_1.z.union([
@@ -217,7 +217,7 @@ exports.WireTriggerEvent = zod_1.z.object({
217
217
  objectType: zod_1.z.string().optional(),
218
218
  triggerEntryId: zod_1.z.string().optional(),
219
219
  triggerType: zod_1.z.enum(['snapshot', 'poll', 'changes-feed', 'webhook', 'mutation', 'extraction']),
220
- payload: zod_1.z.unknown(),
220
+ payload: zod_1.z.unknown().optional(),
221
221
  changeType: zod_1.z.enum(['create', 'update', 'delete']).optional(),
222
222
  actor: exports.WireActor.optional(),
223
223
  snapshotRunId: zod_1.z.string().optional(),
@@ -514,13 +514,13 @@ exports.WireReadInput = zod_1.z.object({
514
514
  // ── Filter pushdown DTOs ─────────────────────────────────────────────────────
515
515
  exports.WireTranslateFilterInput = zod_1.z.object({
516
516
  // Expression is opaque on the wire.
517
- expression: zod_1.z.unknown(),
517
+ expression: zod_1.z.unknown().optional(),
518
518
  entityType: zod_1.z.string(),
519
519
  });
520
520
  exports.WireFilterTranslationResult = zod_1.z.object({
521
- native: zod_1.z.unknown(),
521
+ native: zod_1.z.unknown().optional(),
522
522
  // Residual Expression stays opaque.
523
- residual: zod_1.z.unknown().nullable(),
523
+ residual: zod_1.z.unknown().nullable().optional(),
524
524
  });
525
525
  // ── Resource / dedup / misc DTOs ─────────────────────────────────────────────
526
526
  exports.WireDedupRules = zod_1.z.object({
@@ -881,7 +881,7 @@ exports.RelatedPage = zod_1.z.object({
881
881
  });
882
882
  // ── Event seams (preprocessInbound / listEventTypes) ─────────────────────────
883
883
  exports.WireDiscriminableEvent = zod_1.z.object({
884
- payload: zod_1.z.unknown(),
884
+ payload: zod_1.z.unknown().optional(),
885
885
  /** The provider's own id for this occurrence: a host that sees one key
886
886
  * twice (a redelivery, an overlapping poll) runs it once. */
887
887
  idempotencyKey: zod_1.z.string().min(1).optional(),
@@ -1178,7 +1178,7 @@ exports.METHODS = {
1178
1178
  // The correlation keys an inbound payload resolves — the same keys a
1179
1179
  // pending `resolveAwait` returned — so the host can wake the parked runs.
1180
1180
  wakeKeys: {
1181
- params: zod_1.z.object({ raw: zod_1.z.unknown() }),
1181
+ params: zod_1.z.object({ raw: zod_1.z.unknown().optional() }),
1182
1182
  result: zod_1.z.array(zod_1.z.string()),
1183
1183
  },
1184
1184
  readRecord: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@listen-fire/engine-contracts",
3
3
  "license": "Apache-2.0",
4
- "version": "0.12.3",
4
+ "version": "0.12.5",
5
5
  "description": "The contracts the movement engine speaks: the tenant id, the host families and entry-point inputs, the parked state, file descriptors, the adapter protocol, the adapter contract and its manifest, the catalog's schema types and positions, the Expression vocabulary, plugins as data and the model names. Runtime-neutral: no Node import, no ambient types.",
6
6
  "engines": {
7
7
  "node": ">=22.23.4 <23"
@@ -30,7 +30,7 @@
30
30
  "type": "commonjs",
31
31
  "dependencies": {
32
32
  "zod": "4.1.12",
33
- "@listen-fire/movement-lang": "^0.12.3"
33
+ "@listen-fire/movement-lang": "^0.12.5"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "20.16.5",