@makaio/framework 1.0.0-dev-1789118938035 → 1.0.0-dev-1789148673705

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.
Files changed (43) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/artifact-0LaQv515.mjs +1 -0
  3. package/dist/bus/index.mjs +4 -4
  4. package/dist/contracts/adapter/index.d.mts +1 -1
  5. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  6. package/dist/contracts/artifact/index.d.mts +2 -2
  7. package/dist/contracts/artifact/index.mjs +1 -1
  8. package/dist/contracts/capabilities/index.d.mts +1 -1
  9. package/dist/contracts/client/index.d.mts +1 -1
  10. package/dist/contracts/extension/index.d.mts +2 -2
  11. package/dist/contracts/index.d.mts +10 -10
  12. package/dist/contracts/index.mjs +1 -1
  13. package/dist/contracts/session/index.d.mts +2 -2
  14. package/dist/contracts/worker/index.d.mts +1 -1
  15. package/dist/contracts/worker/index.mjs +1 -1
  16. package/dist/contracts/workflow/index.d.mts +1 -1
  17. package/dist/contracts/workflow/index.mjs +1 -1
  18. package/dist/{index-l_yo-7aV.d.mts → index-2YEh0vHQ.d.mts} +5 -5
  19. package/dist/{index-Den1hqEo.d.mts → index-Bk-hwMue.d.mts} +2 -2
  20. package/dist/{index-DhW9WHFS.d.mts → index-DC2C-u2k.d.mts} +1 -1
  21. package/dist/{index-BFnIC2b0.d.mts → index-DKI-qw1F.d.mts} +34 -34
  22. package/dist/{index-WhgPewY4.d.mts → index-DcfuHw2O.d.mts} +6 -6
  23. package/dist/{index-D__FyAg62.d.mts → index-EJFdPYs32.d.mts} +4 -4
  24. package/dist/{index-C7XS5mvZ.d.mts → index-LFS-KagP.d.mts} +107 -5
  25. package/dist/{index-BUoIGZmF2.d.mts → index-Zf9Zayey2.d.mts} +43 -43
  26. package/dist/{namespace-TX9DlWiQ.d.mts → namespace-BD4lgMfP.d.mts} +1 -1
  27. package/dist/{namespace-CvCk6Y9i.d.mts → namespace-Bw7YLQHw.d.mts} +25 -25
  28. package/dist/package.json +1 -1
  29. package/dist/{schema-B098Jz9p.d.mts → schema-CbmZYwEl.d.mts} +1 -1
  30. package/dist/services/git/namespace.d.mts +2 -2
  31. package/dist/services/git/schemas.d.mts +2 -2
  32. package/dist/services/index.d.mts +4 -4
  33. package/dist/services/session/index.d.mts +4 -4
  34. package/dist/services/session/messages/namespace.d.mts +1 -1
  35. package/dist/services/session/storage/namespace.d.mts +1 -1
  36. package/dist/services/session/storage/schema.d.mts +1 -1
  37. package/dist/{session-lineage-DQLXk5jZ.d.mts → session-lineage-CoNs4WZy.d.mts} +1 -1
  38. package/dist/{types-HFQQoeAz.d.mts → types-BrD4l8JJ.d.mts} +11 -11
  39. package/dist/{worker-nbwkoIfH.mjs → worker-DHZKWcLx.mjs} +1 -1
  40. package/dist/{workflow-Ba8qlWwV.mjs → workflow-D8uoSvcR.mjs} +1 -1
  41. package/dist/workflow-engine/index.d.mts +8 -8
  42. package/package.json +1 -1
  43. package/dist/artifact-B9wVswQv.mjs +0 -1
@@ -1725,7 +1725,13 @@ declare const ArtifactSchemas$1: {
1725
1725
  arrayFilters: z.ZodOptional<z.ZodArray<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
1726
1726
  }, z.core.$strict>;
1727
1727
  dryRun: z.ZodOptional<z.ZodBoolean>;
1728
+ schemaVersion: z.ZodOptional<z.ZodNumber>;
1728
1729
  statusPath: z.ZodOptional<z.ZodString>;
1730
+ representations: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1731
+ markdown: z.ZodOptional<z.ZodString>;
1732
+ summary: z.ZodOptional<z.ZodString>;
1733
+ plaintext: z.ZodOptional<z.ZodString>;
1734
+ }, z.core.$strict>>>;
1729
1735
  }, z.core.$strict>;
1730
1736
  response: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1731
1737
  ok: z.ZodLiteral<true>;
@@ -1745,6 +1751,10 @@ declare const ArtifactSchemas$1: {
1745
1751
  path: z.ZodString;
1746
1752
  matched: z.ZodNumber;
1747
1753
  }, z.core.$strict>>;
1754
+ migration: z.ZodOptional<z.ZodObject<{
1755
+ from: z.ZodNumber;
1756
+ to: z.ZodNumber;
1757
+ }, z.core.$strict>>;
1748
1758
  dryRun: z.ZodLiteral<true>;
1749
1759
  }, z.core.$strict>, z.ZodObject<{
1750
1760
  ok: z.ZodLiteral<true>;
@@ -1764,6 +1774,10 @@ declare const ArtifactSchemas$1: {
1764
1774
  path: z.ZodString;
1765
1775
  matched: z.ZodNumber;
1766
1776
  }, z.core.$strict>>;
1777
+ migration: z.ZodOptional<z.ZodObject<{
1778
+ from: z.ZodNumber;
1779
+ to: z.ZodNumber;
1780
+ }, z.core.$strict>>;
1767
1781
  dryRun: z.ZodLiteral<false>;
1768
1782
  artifact: z.ZodObject<{
1769
1783
  refClass: z.ZodLiteral<"artifact">;
@@ -1785,6 +1799,8 @@ declare const ArtifactSchemas$1: {
1785
1799
  UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
1786
1800
  NO_MATCH: "NO_MATCH";
1787
1801
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
1802
+ NO_CHANGE: "NO_CHANGE";
1803
+ STORE_REJECTED: "STORE_REJECTED";
1788
1804
  HOST_FAILED: "HOST_FAILED";
1789
1805
  }>;
1790
1806
  message: z.ZodString;
@@ -4426,7 +4442,13 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
4426
4442
  arrayFilters: z.ZodOptional<z.ZodArray<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
4427
4443
  }, z.core.$strict>;
4428
4444
  dryRun: z.ZodOptional<z.ZodBoolean>;
4445
+ schemaVersion: z.ZodOptional<z.ZodNumber>;
4429
4446
  statusPath: z.ZodOptional<z.ZodString>;
4447
+ representations: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4448
+ markdown: z.ZodOptional<z.ZodString>;
4449
+ summary: z.ZodOptional<z.ZodString>;
4450
+ plaintext: z.ZodOptional<z.ZodString>;
4451
+ }, z.core.$strict>>>;
4430
4452
  }, z.core.$strict>;
4431
4453
  response: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
4432
4454
  ok: z.ZodLiteral<true>;
@@ -4446,6 +4468,10 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
4446
4468
  path: z.ZodString;
4447
4469
  matched: z.ZodNumber;
4448
4470
  }, z.core.$strict>>;
4471
+ migration: z.ZodOptional<z.ZodObject<{
4472
+ from: z.ZodNumber;
4473
+ to: z.ZodNumber;
4474
+ }, z.core.$strict>>;
4449
4475
  dryRun: z.ZodLiteral<true>;
4450
4476
  }, z.core.$strict>, z.ZodObject<{
4451
4477
  ok: z.ZodLiteral<true>;
@@ -4465,6 +4491,10 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
4465
4491
  path: z.ZodString;
4466
4492
  matched: z.ZodNumber;
4467
4493
  }, z.core.$strict>>;
4494
+ migration: z.ZodOptional<z.ZodObject<{
4495
+ from: z.ZodNumber;
4496
+ to: z.ZodNumber;
4497
+ }, z.core.$strict>>;
4468
4498
  dryRun: z.ZodLiteral<false>;
4469
4499
  artifact: z.ZodObject<{
4470
4500
  refClass: z.ZodLiteral<"artifact">;
@@ -4486,6 +4516,8 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
4486
4516
  UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
4487
4517
  NO_MATCH: "NO_MATCH";
4488
4518
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
4519
+ NO_CHANGE: "NO_CHANGE";
4520
+ STORE_REJECTED: "STORE_REJECTED";
4489
4521
  HOST_FAILED: "HOST_FAILED";
4490
4522
  }>;
4491
4523
  message: z.ZodString;
@@ -7148,7 +7180,13 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
7148
7180
  arrayFilters: z.ZodOptional<z.ZodArray<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
7149
7181
  }, z.core.$strict>;
7150
7182
  dryRun: z.ZodOptional<z.ZodBoolean>;
7183
+ schemaVersion: z.ZodOptional<z.ZodNumber>;
7151
7184
  statusPath: z.ZodOptional<z.ZodString>;
7185
+ representations: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7186
+ markdown: z.ZodOptional<z.ZodString>;
7187
+ summary: z.ZodOptional<z.ZodString>;
7188
+ plaintext: z.ZodOptional<z.ZodString>;
7189
+ }, z.core.$strict>>>;
7152
7190
  }, z.core.$strict>;
7153
7191
  response: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
7154
7192
  ok: z.ZodLiteral<true>;
@@ -7168,6 +7206,10 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
7168
7206
  path: z.ZodString;
7169
7207
  matched: z.ZodNumber;
7170
7208
  }, z.core.$strict>>;
7209
+ migration: z.ZodOptional<z.ZodObject<{
7210
+ from: z.ZodNumber;
7211
+ to: z.ZodNumber;
7212
+ }, z.core.$strict>>;
7171
7213
  dryRun: z.ZodLiteral<true>;
7172
7214
  }, z.core.$strict>, z.ZodObject<{
7173
7215
  ok: z.ZodLiteral<true>;
@@ -7187,6 +7229,10 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
7187
7229
  path: z.ZodString;
7188
7230
  matched: z.ZodNumber;
7189
7231
  }, z.core.$strict>>;
7232
+ migration: z.ZodOptional<z.ZodObject<{
7233
+ from: z.ZodNumber;
7234
+ to: z.ZodNumber;
7235
+ }, z.core.$strict>>;
7190
7236
  dryRun: z.ZodLiteral<false>;
7191
7237
  artifact: z.ZodObject<{
7192
7238
  refClass: z.ZodLiteral<"artifact">;
@@ -7208,6 +7254,8 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
7208
7254
  UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
7209
7255
  NO_MATCH: "NO_MATCH";
7210
7256
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
7257
+ NO_CHANGE: "NO_CHANGE";
7258
+ STORE_REJECTED: "STORE_REJECTED";
7211
7259
  HOST_FAILED: "HOST_FAILED";
7212
7260
  }>;
7213
7261
  message: z.ZodString;
@@ -9307,7 +9355,10 @@ declare const ArtifactPatchTargetSchema: z.ZodObject<{
9307
9355
  * rejected, so a caller never overwrites a concurrent revision it never saw.
9308
9356
  * `statusPath` is the same caller-owned observation metadata a full `revise`
9309
9357
  * carries, so patching an artifact does not silently lose the status change a
9310
- * host would otherwise emit.
9358
+ * host would otherwise emit. `schemaVersion` names the registration the
9359
+ * patched result is validated against and stored at; it defaults to the base
9360
+ * revision's, so a patch never changes an artifact's schema version unless the
9361
+ * caller asks for the migration.
9311
9362
  */
9312
9363
  declare const ArtifactPatchRequestSchema: z.ZodObject<{
9313
9364
  ref: z.ZodObject<{
@@ -9323,10 +9374,16 @@ declare const ArtifactPatchRequestSchema: z.ZodObject<{
9323
9374
  arrayFilters: z.ZodOptional<z.ZodArray<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
9324
9375
  }, z.core.$strict>;
9325
9376
  dryRun: z.ZodOptional<z.ZodBoolean>;
9377
+ schemaVersion: z.ZodOptional<z.ZodNumber>;
9326
9378
  statusPath: z.ZodOptional<z.ZodString>;
9379
+ representations: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9380
+ markdown: z.ZodOptional<z.ZodString>;
9381
+ summary: z.ZodOptional<z.ZodString>;
9382
+ plaintext: z.ZodOptional<z.ZodString>;
9383
+ }, z.core.$strict>>>;
9327
9384
  }, z.core.$strict>;
9328
9385
  /** Stable failure classifications for a patch request. */
9329
- declare const ARTIFACT_PATCH_ERROR_CODES: readonly ["ARTIFACT_NOT_FOUND", "BASE_REVISION_CONFLICT", "KIND_NOT_REGISTERED", "SCHEMA_VERSION_MISMATCH", "PATH_NOT_DECLARED", "PATH_NOT_RESOLVABLE", "TARGET_NOT_A_COLLECTION", "UNSUPPORTED_TARGET", "NO_MATCH", "SCHEMA_VALIDATION_FAILED", "HOST_FAILED"];
9386
+ declare const ARTIFACT_PATCH_ERROR_CODES: readonly ["ARTIFACT_NOT_FOUND", "BASE_REVISION_CONFLICT", "KIND_NOT_REGISTERED", "SCHEMA_VERSION_MISMATCH", "PATH_NOT_DECLARED", "PATH_NOT_RESOLVABLE", "TARGET_NOT_A_COLLECTION", "UNSUPPORTED_TARGET", "NO_MATCH", "SCHEMA_VALIDATION_FAILED", "NO_CHANGE", "STORE_REJECTED", "HOST_FAILED"];
9330
9387
  /** One reason the patched result was rejected, addressed within `data`. */
9331
9388
  declare const ArtifactPatchIssueSchema: z.ZodObject<{
9332
9389
  path: z.ZodString;
@@ -9359,6 +9416,8 @@ declare const ArtifactPatchErrorSchema: z.ZodObject<{
9359
9416
  UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
9360
9417
  NO_MATCH: "NO_MATCH";
9361
9418
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
9419
+ NO_CHANGE: "NO_CHANGE";
9420
+ STORE_REJECTED: "STORE_REJECTED";
9362
9421
  HOST_FAILED: "HOST_FAILED";
9363
9422
  }>;
9364
9423
  message: z.ZodString;
@@ -9389,6 +9448,18 @@ declare const ArtifactPatchOperationResultSchema: z.ZodObject<{
9389
9448
  path: z.ZodString;
9390
9449
  matched: z.ZodNumber;
9391
9450
  }, z.core.$strict>;
9451
+ /**
9452
+ * The schema versions a migrating patch moved the artifact between.
9453
+ *
9454
+ * The marker moves forward by construction, as every migration does: equal
9455
+ * versions would describe no transition and let an instructionless ordinary
9456
+ * success pass for a migration, and a lower target is a downgrade the tool
9457
+ * never performs.
9458
+ */
9459
+ declare const ArtifactPatchMigrationSchema: z.ZodObject<{
9460
+ from: z.ZodNumber;
9461
+ to: z.ZodNumber;
9462
+ }, z.core.$strict>;
9392
9463
  /** A patch that was applied, validated and discarded without producing history. */
9393
9464
  declare const ArtifactPatchDryRunSchema: z.ZodObject<{
9394
9465
  ok: z.ZodLiteral<true>;
@@ -9408,6 +9479,10 @@ declare const ArtifactPatchDryRunSchema: z.ZodObject<{
9408
9479
  path: z.ZodString;
9409
9480
  matched: z.ZodNumber;
9410
9481
  }, z.core.$strict>>;
9482
+ migration: z.ZodOptional<z.ZodObject<{
9483
+ from: z.ZodNumber;
9484
+ to: z.ZodNumber;
9485
+ }, z.core.$strict>>;
9411
9486
  dryRun: z.ZodLiteral<true>;
9412
9487
  }, z.core.$strict>;
9413
9488
  /** A patch that was applied, validated and persisted as a new revision. */
@@ -9429,6 +9504,10 @@ declare const ArtifactPatchPersistedSchema: z.ZodObject<{
9429
9504
  path: z.ZodString;
9430
9505
  matched: z.ZodNumber;
9431
9506
  }, z.core.$strict>>;
9507
+ migration: z.ZodOptional<z.ZodObject<{
9508
+ from: z.ZodNumber;
9509
+ to: z.ZodNumber;
9510
+ }, z.core.$strict>>;
9432
9511
  dryRun: z.ZodLiteral<false>;
9433
9512
  artifact: z.ZodObject<{
9434
9513
  refClass: z.ZodLiteral<"artifact">;
@@ -9462,6 +9541,10 @@ declare const ArtifactPatchSuccessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9462
9541
  path: z.ZodString;
9463
9542
  matched: z.ZodNumber;
9464
9543
  }, z.core.$strict>>;
9544
+ migration: z.ZodOptional<z.ZodObject<{
9545
+ from: z.ZodNumber;
9546
+ to: z.ZodNumber;
9547
+ }, z.core.$strict>>;
9465
9548
  dryRun: z.ZodLiteral<true>;
9466
9549
  }, z.core.$strict>, z.ZodObject<{
9467
9550
  ok: z.ZodLiteral<true>;
@@ -9481,6 +9564,10 @@ declare const ArtifactPatchSuccessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9481
9564
  path: z.ZodString;
9482
9565
  matched: z.ZodNumber;
9483
9566
  }, z.core.$strict>>;
9567
+ migration: z.ZodOptional<z.ZodObject<{
9568
+ from: z.ZodNumber;
9569
+ to: z.ZodNumber;
9570
+ }, z.core.$strict>>;
9484
9571
  dryRun: z.ZodLiteral<false>;
9485
9572
  artifact: z.ZodObject<{
9486
9573
  refClass: z.ZodLiteral<"artifact">;
@@ -9493,8 +9580,9 @@ declare const ArtifactPatchSuccessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9493
9580
  * A rejected patch.
9494
9581
  *
9495
9582
  * A rejection by the engine — an undeclared path, an unmatched filter, a result
9496
- * the kind schema refuses — and a `BASE_REVISION_CONFLICT`, whether the stale
9497
- * base revision was caught before the write or the store refused it, all
9583
+ * the kind schema refuses — a `BASE_REVISION_CONFLICT`, whether the stale
9584
+ * base revision was caught before the write or the store refused it, and a
9585
+ * `STORE_REJECTED`, the host's own refusal before writing anything, all
9498
9586
  * guarantee that nothing was persisted. `HOST_FAILED` does not: a host that
9499
9587
  * failed while persisting may have committed the write before the failure
9500
9588
  * surfaced, so the outcome is unknown and the caller must re-read before
@@ -9514,6 +9602,8 @@ declare const ArtifactPatchFailureSchema: z.ZodObject<{
9514
9602
  UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
9515
9603
  NO_MATCH: "NO_MATCH";
9516
9604
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
9605
+ NO_CHANGE: "NO_CHANGE";
9606
+ STORE_REJECTED: "STORE_REJECTED";
9517
9607
  HOST_FAILED: "HOST_FAILED";
9518
9608
  }>;
9519
9609
  message: z.ZodString;
@@ -9559,6 +9649,10 @@ declare const ArtifactPatchResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminat
9559
9649
  path: z.ZodString;
9560
9650
  matched: z.ZodNumber;
9561
9651
  }, z.core.$strict>>;
9652
+ migration: z.ZodOptional<z.ZodObject<{
9653
+ from: z.ZodNumber;
9654
+ to: z.ZodNumber;
9655
+ }, z.core.$strict>>;
9562
9656
  dryRun: z.ZodLiteral<true>;
9563
9657
  }, z.core.$strict>, z.ZodObject<{
9564
9658
  ok: z.ZodLiteral<true>;
@@ -9578,6 +9672,10 @@ declare const ArtifactPatchResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminat
9578
9672
  path: z.ZodString;
9579
9673
  matched: z.ZodNumber;
9580
9674
  }, z.core.$strict>>;
9675
+ migration: z.ZodOptional<z.ZodObject<{
9676
+ from: z.ZodNumber;
9677
+ to: z.ZodNumber;
9678
+ }, z.core.$strict>>;
9581
9679
  dryRun: z.ZodLiteral<false>;
9582
9680
  artifact: z.ZodObject<{
9583
9681
  refClass: z.ZodLiteral<"artifact">;
@@ -9599,6 +9697,8 @@ declare const ArtifactPatchResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminat
9599
9697
  UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
9600
9698
  NO_MATCH: "NO_MATCH";
9601
9699
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
9700
+ NO_CHANGE: "NO_CHANGE";
9701
+ STORE_REJECTED: "STORE_REJECTED";
9602
9702
  HOST_FAILED: "HOST_FAILED";
9603
9703
  }>;
9604
9704
  message: z.ZodString;
@@ -9635,6 +9735,8 @@ type ArtifactPatchIssue = z.infer<typeof ArtifactPatchIssueSchema>;
9635
9735
  type ArtifactPatchError = z.infer<typeof ArtifactPatchErrorSchema>;
9636
9736
  /** What one applied instruction did. */
9637
9737
  type ArtifactPatchOperationResult = z.infer<typeof ArtifactPatchOperationResultSchema>;
9738
+ /** The schema versions a migrating patch moved the artifact between. */
9739
+ type ArtifactPatchMigration = z.infer<typeof ArtifactPatchMigrationSchema>;
9638
9740
  /** An applied patch outcome. */
9639
9741
  type ArtifactPatchSuccess = z.infer<typeof ArtifactPatchSuccessSchema>;
9640
9742
  /** Outcome of a patch request. */
@@ -11302,4 +11404,4 @@ type ArtifactLifecycleFailure = z.infer<typeof ArtifactLifecycleFailureSchema>;
11302
11404
  /** Supplemental reaction input following a rejected valid transition request. */
11303
11405
  type ArtifactLifecycleRejectedPayload = z.infer<typeof ArtifactLifecycleRejectedPayloadSchema>;
11304
11406
  //#endregion
11305
- export { ArtifactPatchErrorSchema as $, EvidenceResolveResponseSchema as $n, ArtifactReviseResponse as $t, ArtifactLifecycleSituation as A, AnyArtifactKindDefinition as An, ArtifactCreatedPayload as At, ArtifactLifecycleVersionSchema as B, ArtifactLifecycleHookDefinition as Bn, ArtifactPatchSubjectRequest as Bt, ArtifactLifecycleHistoryEntry as C, ArtifactContextSelectorSchema as Cn, ARTIFACT_COLLECTION_ELEMENT_SEGMENT as Ct, ArtifactLifecycleInitializedEntrySchema as D, ArtifactDataValidator as Dn, readArtifactTitle as Dt, ArtifactLifecycleInitializedEntry as E, ArtifactDataIssue as En, isArtifactDataPathDeclared as Et, ArtifactLifecycleTransitionCommandSchema as F, AfterArtifactHookContext as Fn, ArtifactKindListResponse as Ft, ARTIFACT_PATCH_OPERATORS as G, BeforeArtifactHookRegistration as Gn, ArtifactRelationTypeListResponse as Gt, initialArtifactLifecycle as H, ArtifactLifecycleHookRegistration$1 as Hn, ArtifactQueryResponse as Ht, ArtifactLifecycleTransitionIntent as I, AfterArtifactHookRegistration as In, ArtifactKindRegisterRequest as It, ArtifactPatchDocument as J, EvidenceOccurrenceExtractionOptions as Jn, ArtifactResolveContextRequest as Jt, ArtifactPatchArrayFilter as K, defineArtifactLifecycleHooks as Kn, ArtifactRelationTypeRegisterRequest as Kt, ArtifactLifecycleTransitionIntentSchema as L, ArtifactDraft as Ln, ArtifactKindRegisterResponse as Lt, ArtifactLifecycleSnapshot as M, ArtifactKindDefinition as Mn, ArtifactEvidenceResolveResponse$1 as Mt, ArtifactLifecycleSnapshotSchema as N, ArtifactOf as Nn, ArtifactKindChangedPayload as Nt, ArtifactLifecycleRejection as O, compileArtifactDataChecker as On, ArtifactCreateRequest as Ot, ArtifactLifecycleTransitionCommand as P, defineArtifactKind as Pn, ArtifactKindListRequest as Pt, ArtifactPatchErrorCode as Q, EvidenceResolveResponse as Qn, ArtifactReviseRequest as Qt, ArtifactLifecycleTransitionedEntry as R, ArtifactDraftPatch as Rn, ArtifactNamespace as Rt, ArtifactLifecycleError as S, ArtifactContextSelector$1 as Sn, artifactPatchSegments as St, ArtifactLifecycleIdentitySchema as T, ArtifactDataChecker as Tn, inspectArtifactDataLocation as Tt, isArtifactLifecycleTransitionAllowed as U, ArtifactLifecycleSemanticEvent as Un, ArtifactRelationAddedPayload as Ut, advanceArtifactLifecycle as V, ArtifactLifecycleHookEvent as Vn, ArtifactPatchSubjectResponse as Vt, ARTIFACT_PATCH_ERROR_CODES as W, BeforeArtifactHookContext as Wn, ArtifactRelationTypeListRequest as Wt, ArtifactPatchDryRunSchema as X, EvidenceResolveRequest as Xn, ArtifactResolveRequest as Xt, ArtifactPatchDocumentSchema as Y, extractEvidenceOccurrences as Yn, ArtifactResolveContextResponse as Yt, ArtifactPatchError as Z, EvidenceResolveRequestSchema as Zn, ArtifactResolveResponse as Zt, ArtifactLifecycleTransitionResponseSchema as _, ArtifactContextKnownRenderHint as _n, ArtifactPatchTargetSchema as _t, ArtifactLifecycleGetRequest as a, ArtifactContextNode as an, ArtifactPatchOperationResultSchema as at, ArtifactLifecycleCurrent as b, ArtifactContextRenderHint as bn, artifactPatchPathFilterNames as bt, ArtifactLifecycleGetResponseSchema as c, ResolvedArtifactContextNode as cn, ArtifactPatchPersistedSchema as ct, ArtifactLifecycleHistoryResponse as d, ArtifactContextRefEntrySchema as dn, ArtifactPatchResponse as dt, ArtifactRevisedPayload as en, ARTIFACT_VALUE_TYPE_KEYWORD as er, ArtifactPatchFailureSchema as et, ArtifactLifecycleHistoryResponseSchema as f, ArtifactContextUnresolvedReason as fn, ArtifactPatchResponseSchema as ft, ArtifactLifecycleTransitionResponse as g, ARTIFACT_CONTEXT_RENDER_HINTS as gn, ArtifactPatchTarget as gt, ArtifactLifecycleSchemas as h, ResolvedArtifactContextWireSchema as hn, ArtifactPatchSuccessSchema as ht, ArtifactLifecycleFailureSchema as i, hydrateArtifactContextTree as in, ArtifactPatchOperationResult as it, ArtifactLifecycleSituationSchema as j, ArtifactDataOf as jn, ArtifactEvidenceResolveRequest as jt, ArtifactLifecycleRejectionSchema as k, compileArtifactDataSchema as kn, ArtifactCreateResponse as kt, ArtifactLifecycleHistoryRequest as l, UnresolvedArtifactContextNode as ln, ArtifactPatchRequest as lt, ArtifactLifecycleRejectedPayloadSchema as m, ResolvedArtifactContextWire$1 as mn, ArtifactPatchSuccess as mt, ArtifactLifecycleCommittedPayloadSchema as n, ArtifactStatusChangedPayload as nn, EvidenceValue$1 as nr, ArtifactPatchIssue as nt, ArtifactLifecycleGetRequestSchema as o, ArtifactContextRootNode as on, ArtifactPatchOperator as ot, ArtifactLifecycleRejectedPayload as p, ArtifactContextUnresolvedReasonSchema as pn, ArtifactPatchSegment as pt, ArtifactPatchArrayFilterSchema as q, EvidenceOccurrence as qn, ArtifactRelationTypeRegisterResponse as qt, ArtifactLifecycleFailure as r, ArtifactSubjects$1 as rn, EvidenceValueSchema$1 as rr, ArtifactPatchIssueSchema as rt, ArtifactLifecycleGetResponse as s, ArtifactContextTree as sn, ArtifactPatchPathSchema as st, ArtifactLifecycleCommittedPayload as t, ArtifactSchemas$1 as tn, EVIDENCE_VALUE_TYPE as tr, ArtifactPatchInstruction as tt, ArtifactLifecycleHistoryRequestSchema as u, ArtifactContextRefEntry as un, ArtifactPatchRequestSchema as ut, toArtifactLifecycleFailure as v, ArtifactContextRelationSelector as vn, artifactPatchFilterName as vt, ArtifactLifecycleHistoryEntrySchema as w, ArtifactDataCheck as wn, ArtifactSchemaFragment as wt, ArtifactLifecycleCurrentSchema as x, ArtifactContextRenderHintSchema as xn, artifactPatchSegment as xt, ARTIFACT_LIFECYCLE_REJECTED_CODE as y, ArtifactContextRelationSelectorSchema as yn, artifactPatchInstructions as yt, ArtifactLifecycleTransitionedEntrySchema as z, ArtifactHookFilter as zn, ArtifactObservationAddedPayload as zt };
11407
+ export { ArtifactPatchErrorSchema as $, EvidenceResolveRequestSchema as $n, ArtifactResolveResponse as $t, ArtifactLifecycleSituation as A, compileArtifactDataChecker as An, ArtifactCreateRequest as At, ArtifactLifecycleVersionSchema as B, ArtifactDraftPatch as Bn, ArtifactNamespace as Bt, ArtifactLifecycleHistoryEntry as C, ArtifactContextRenderHintSchema as Cn, artifactPatchSegment as Ct, ArtifactLifecycleInitializedEntrySchema as D, ArtifactDataChecker as Dn, inspectArtifactDataLocation as Dt, ArtifactLifecycleInitializedEntry as E, ArtifactDataCheck as En, ArtifactSchemaFragment as Et, ArtifactLifecycleTransitionCommandSchema as F, ArtifactOf as Fn, ArtifactKindChangedPayload as Ft, ARTIFACT_PATCH_OPERATORS as G, ArtifactLifecycleSemanticEvent as Gn, ArtifactRelationAddedPayload as Gt, initialArtifactLifecycle as H, ArtifactLifecycleHookDefinition as Hn, ArtifactPatchSubjectRequest as Ht, ArtifactLifecycleTransitionIntent as I, defineArtifactKind as In, ArtifactKindListRequest as It, ArtifactPatchDocument as J, defineArtifactLifecycleHooks as Jn, ArtifactRelationTypeRegisterRequest as Jt, ArtifactPatchArrayFilter as K, BeforeArtifactHookContext as Kn, ArtifactRelationTypeListRequest as Kt, ArtifactLifecycleTransitionIntentSchema as L, AfterArtifactHookContext as Ln, ArtifactKindListResponse as Lt, ArtifactLifecycleSnapshot as M, AnyArtifactKindDefinition as Mn, ArtifactCreatedPayload as Mt, ArtifactLifecycleSnapshotSchema as N, ArtifactDataOf as Nn, ArtifactEvidenceResolveRequest as Nt, ArtifactLifecycleRejection as O, ArtifactDataIssue as On, isArtifactDataPathDeclared as Ot, ArtifactLifecycleTransitionCommand as P, ArtifactKindDefinition as Pn, ArtifactEvidenceResolveResponse$1 as Pt, ArtifactPatchErrorCode as Q, EvidenceResolveRequest as Qn, ArtifactResolveRequest as Qt, ArtifactLifecycleTransitionedEntry as R, AfterArtifactHookRegistration as Rn, ArtifactKindRegisterRequest as Rt, ArtifactLifecycleError as S, ArtifactContextRenderHint as Sn, artifactPatchPathFilterNames as St, ArtifactLifecycleIdentitySchema as T, ArtifactContextSelectorSchema as Tn, ARTIFACT_COLLECTION_ELEMENT_SEGMENT as Tt, isArtifactLifecycleTransitionAllowed as U, ArtifactLifecycleHookEvent as Un, ArtifactPatchSubjectResponse as Ut, advanceArtifactLifecycle as V, ArtifactHookFilter as Vn, ArtifactObservationAddedPayload as Vt, ARTIFACT_PATCH_ERROR_CODES as W, ArtifactLifecycleHookRegistration$1 as Wn, ArtifactQueryResponse as Wt, ArtifactPatchDryRunSchema as X, EvidenceOccurrenceExtractionOptions as Xn, ArtifactResolveContextRequest as Xt, ArtifactPatchDocumentSchema as Y, EvidenceOccurrence as Yn, ArtifactRelationTypeRegisterResponse as Yt, ArtifactPatchError as Z, extractEvidenceOccurrences as Zn, ArtifactResolveContextResponse as Zt, ArtifactLifecycleTransitionResponseSchema as _, ResolvedArtifactContextWireSchema as _n, ArtifactPatchSuccessSchema as _t, ArtifactLifecycleGetRequest as a, ArtifactSubjects$1 as an, EvidenceValueSchema$1 as ar, ArtifactPatchMigrationSchema as at, ArtifactLifecycleCurrent as b, ArtifactContextRelationSelector as bn, artifactPatchFilterName as bt, ArtifactLifecycleGetResponseSchema as c, ArtifactContextRootNode as cn, ArtifactPatchOperator as ct, ArtifactLifecycleHistoryResponse as d, UnresolvedArtifactContextNode as dn, ArtifactPatchRequest as dt, ArtifactReviseRequest as en, EvidenceResolveResponse as er, ArtifactPatchFailureSchema as et, ArtifactLifecycleHistoryResponseSchema as f, ArtifactContextRefEntry as fn, ArtifactPatchRequestSchema as ft, ArtifactLifecycleTransitionResponse as g, ResolvedArtifactContextWire$1 as gn, ArtifactPatchSuccess as gt, ArtifactLifecycleSchemas as h, ArtifactContextUnresolvedReasonSchema as hn, ArtifactPatchSegment as ht, ArtifactLifecycleFailureSchema as i, ArtifactStatusChangedPayload as in, EvidenceValue$1 as ir, ArtifactPatchMigration as it, ArtifactLifecycleSituationSchema as j, compileArtifactDataSchema as jn, ArtifactCreateResponse as jt, ArtifactLifecycleRejectionSchema as k, ArtifactDataValidator as kn, readArtifactTitle as kt, ArtifactLifecycleHistoryRequest as l, ArtifactContextTree as ln, ArtifactPatchPathSchema as lt, ArtifactLifecycleRejectedPayloadSchema as m, ArtifactContextUnresolvedReason as mn, ArtifactPatchResponseSchema as mt, ArtifactLifecycleCommittedPayloadSchema as n, ArtifactRevisedPayload as nn, ARTIFACT_VALUE_TYPE_KEYWORD as nr, ArtifactPatchIssue as nt, ArtifactLifecycleGetRequestSchema as o, hydrateArtifactContextTree as on, ArtifactPatchOperationResult as ot, ArtifactLifecycleRejectedPayload as p, ArtifactContextRefEntrySchema as pn, ArtifactPatchResponse as pt, ArtifactPatchArrayFilterSchema as q, BeforeArtifactHookRegistration as qn, ArtifactRelationTypeListResponse as qt, ArtifactLifecycleFailure as r, ArtifactSchemas$1 as rn, EVIDENCE_VALUE_TYPE as rr, ArtifactPatchIssueSchema as rt, ArtifactLifecycleGetResponse as s, ArtifactContextNode as sn, ArtifactPatchOperationResultSchema as st, ArtifactLifecycleCommittedPayload as t, ArtifactReviseResponse as tn, EvidenceResolveResponseSchema as tr, ArtifactPatchInstruction as tt, ArtifactLifecycleHistoryRequestSchema as u, ResolvedArtifactContextNode as un, ArtifactPatchPersistedSchema as ut, toArtifactLifecycleFailure as v, ARTIFACT_CONTEXT_RENDER_HINTS as vn, ArtifactPatchTarget as vt, ArtifactLifecycleHistoryEntrySchema as w, ArtifactContextSelector$1 as wn, artifactPatchSegments as wt, ArtifactLifecycleCurrentSchema as x, ArtifactContextRelationSelectorSchema as xn, artifactPatchInstructions as xt, ARTIFACT_LIFECYCLE_REJECTED_CODE as y, ArtifactContextKnownRenderHint as yn, ArtifactPatchTargetSchema as yt, ArtifactLifecycleTransitionedEntrySchema as z, ArtifactDraft as zn, ArtifactKindRegisterResponse as zt };