@warmhub/sdk-ts 0.136.0 → 0.137.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/index.d.ts CHANGED
@@ -120,7 +120,7 @@ type AuthSyncResult = {
120
120
  type CollectionTag$1 = 'arc' | 'bond' | 'pair' | 'set' | 'list';
121
121
  type CommitRealOperationResult$1 = {
122
122
  opIndex: number;
123
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
123
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
124
124
  name: string;
125
125
  submittedName?: string;
126
126
  resolvedName?: string;
@@ -156,7 +156,7 @@ type CommitRealOperationResult$1 = {
156
156
  dataHash?: string;
157
157
  } | {
158
158
  opIndex: number;
159
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
159
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
160
160
  name: string;
161
161
  submittedName?: string;
162
162
  resolvedName?: string;
@@ -224,6 +224,10 @@ type CommitRealOperationResult$1 = {
224
224
  durableId: string;
225
225
  };
226
226
  suggestedName?: string;
227
+ } | {
228
+ reason: 'target_removed';
229
+ targetDurableId: string;
230
+ fieldPath?: string;
227
231
  } | {
228
232
  reason: 'invalid_token';
229
233
  };
@@ -266,6 +270,10 @@ type CommitDiagnostic$1 = {
266
270
  durableId: string;
267
271
  };
268
272
  suggestedName?: string;
273
+ } | {
274
+ reason: 'target_removed';
275
+ targetDurableId: string;
276
+ fieldPath?: string;
269
277
  } | {
270
278
  reason: 'invalid_token';
271
279
  };
@@ -365,6 +373,10 @@ type CommitValidateInput$1 = {
365
373
  name: string;
366
374
  newName: string;
367
375
  kind?: 'shape' | 'thing' | 'assertion' | 'collection';
376
+ } | {
377
+ operation: 'remove';
378
+ name: string;
379
+ expectedVersion: number;
368
380
  }>;
369
381
  includeWouldBeBody?: boolean;
370
382
  };
@@ -390,7 +402,7 @@ type CommitValidateResult$1 = {
390
402
  message?: string;
391
403
  operations: Array<{
392
404
  opIndex: number;
393
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
405
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
394
406
  name: string;
395
407
  submittedName?: string;
396
408
  resolvedName?: string;
@@ -427,7 +439,7 @@ type CommitValidateResult$1 = {
427
439
  wouldBeBody?: unknown;
428
440
  effects?: Array<{
429
441
  effectIndex: number;
430
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
442
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
431
443
  name: string;
432
444
  warnings?: {
433
445
  undeclaredFields?: Array<string>;
@@ -462,7 +474,7 @@ type CommitValidateResult$1 = {
462
474
  wouldBeBody?: unknown;
463
475
  } | {
464
476
  effectIndex: number;
465
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
477
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
466
478
  name: string;
467
479
  warnings?: {
468
480
  undeclaredFields?: Array<string>;
@@ -528,6 +540,10 @@ type CommitValidateResult$1 = {
528
540
  durableId: string;
529
541
  };
530
542
  suggestedName?: string;
543
+ } | {
544
+ reason: 'target_removed';
545
+ targetDurableId: string;
546
+ fieldPath?: string;
531
547
  } | {
532
548
  reason: 'invalid_token';
533
549
  };
@@ -535,7 +551,7 @@ type CommitValidateResult$1 = {
535
551
  }>;
536
552
  } | {
537
553
  effectIndex: number;
538
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
554
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
539
555
  name: string;
540
556
  warnings?: {
541
557
  undeclaredFields?: Array<string>;
@@ -569,7 +585,7 @@ type CommitValidateResult$1 = {
569
585
  }>;
570
586
  } | {
571
587
  opIndex: number;
572
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
588
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
573
589
  name: string;
574
590
  submittedName?: string;
575
591
  resolvedName?: string;
@@ -637,6 +653,10 @@ type CommitValidateResult$1 = {
637
653
  durableId: string;
638
654
  };
639
655
  suggestedName?: string;
656
+ } | {
657
+ reason: 'target_removed';
658
+ targetDurableId: string;
659
+ fieldPath?: string;
640
660
  } | {
641
661
  reason: 'invalid_token';
642
662
  };
@@ -644,7 +664,7 @@ type CommitValidateResult$1 = {
644
664
  }>;
645
665
  effects?: Array<{
646
666
  effectIndex: number;
647
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
667
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
648
668
  name: string;
649
669
  warnings?: {
650
670
  undeclaredFields?: Array<string>;
@@ -679,7 +699,7 @@ type CommitValidateResult$1 = {
679
699
  wouldBeBody?: unknown;
680
700
  } | {
681
701
  effectIndex: number;
682
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
702
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
683
703
  name: string;
684
704
  warnings?: {
685
705
  undeclaredFields?: Array<string>;
@@ -745,6 +765,10 @@ type CommitValidateResult$1 = {
745
765
  durableId: string;
746
766
  };
747
767
  suggestedName?: string;
768
+ } | {
769
+ reason: 'target_removed';
770
+ targetDurableId: string;
771
+ fieldPath?: string;
748
772
  } | {
749
773
  reason: 'invalid_token';
750
774
  };
@@ -752,7 +776,7 @@ type CommitValidateResult$1 = {
752
776
  }>;
753
777
  } | {
754
778
  effectIndex: number;
755
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
779
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
756
780
  name: string;
757
781
  warnings?: {
758
782
  undeclaredFields?: Array<string>;
@@ -899,6 +923,7 @@ type OperationEventReceipt$1 = {
899
923
  requestDigest: string;
900
924
  schemaVersion: 'operation-event-receipt/v1';
901
925
  submissionId?: string;
926
+ pruned?: true;
902
927
  } | {
903
928
  event: {
904
929
  committedAt: string;
@@ -913,7 +938,7 @@ type OperationEventReceipt$1 = {
913
938
  eventRequestId: string;
914
939
  operations: Array<{
915
940
  opIndex: number;
916
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
941
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
917
942
  name: string;
918
943
  submittedName?: string;
919
944
  resolvedName?: string;
@@ -949,7 +974,7 @@ type OperationEventReceipt$1 = {
949
974
  dataHash?: string;
950
975
  } | {
951
976
  opIndex: number;
952
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
977
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
953
978
  name: string;
954
979
  submittedName?: string;
955
980
  resolvedName?: string;
@@ -1017,6 +1042,10 @@ type OperationEventReceipt$1 = {
1017
1042
  durableId: string;
1018
1043
  };
1019
1044
  suggestedName?: string;
1045
+ } | {
1046
+ reason: 'target_removed';
1047
+ targetDurableId: string;
1048
+ fieldPath?: string;
1020
1049
  } | {
1021
1050
  reason: 'invalid_token';
1022
1051
  };
@@ -1027,6 +1056,7 @@ type OperationEventReceipt$1 = {
1027
1056
  requestDigest: string;
1028
1057
  schemaVersion: 'operation-event-receipt/v2';
1029
1058
  submissionId?: string;
1059
+ pruned?: true;
1030
1060
  };
1031
1061
  type OperationEventReceiptV1$1 = {
1032
1062
  event: {
@@ -1141,6 +1171,7 @@ type OperationEventReceiptV1$1 = {
1141
1171
  requestDigest: string;
1142
1172
  schemaVersion: 'operation-event-receipt/v1';
1143
1173
  submissionId?: string;
1174
+ pruned?: true;
1144
1175
  };
1145
1176
  type CollectionContainsResult$1 = {
1146
1177
  shape: string;
@@ -1402,6 +1433,7 @@ type ComponentInstallResult$1 = {
1402
1433
  requestDigest: string;
1403
1434
  schemaVersion: 'operation-event-receipt/v1';
1404
1435
  submissionId?: string;
1436
+ pruned?: true;
1405
1437
  } | {
1406
1438
  event: {
1407
1439
  committedAt: string;
@@ -1416,7 +1448,7 @@ type ComponentInstallResult$1 = {
1416
1448
  eventRequestId: string;
1417
1449
  operations: Array<{
1418
1450
  opIndex: number;
1419
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
1451
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
1420
1452
  name: string;
1421
1453
  submittedName?: string;
1422
1454
  resolvedName?: string;
@@ -1452,7 +1484,7 @@ type ComponentInstallResult$1 = {
1452
1484
  dataHash?: string;
1453
1485
  } | {
1454
1486
  opIndex: number;
1455
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
1487
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
1456
1488
  name: string;
1457
1489
  submittedName?: string;
1458
1490
  resolvedName?: string;
@@ -1520,6 +1552,10 @@ type ComponentInstallResult$1 = {
1520
1552
  durableId: string;
1521
1553
  };
1522
1554
  suggestedName?: string;
1555
+ } | {
1556
+ reason: 'target_removed';
1557
+ targetDurableId: string;
1558
+ fieldPath?: string;
1523
1559
  } | {
1524
1560
  reason: 'invalid_token';
1525
1561
  };
@@ -1530,6 +1566,7 @@ type ComponentInstallResult$1 = {
1530
1566
  requestDigest: string;
1531
1567
  schemaVersion: 'operation-event-receipt/v2';
1532
1568
  submissionId?: string;
1569
+ pruned?: true;
1533
1570
  }>;
1534
1571
  };
1535
1572
  type ComponentListResult = {
@@ -1688,6 +1725,7 @@ type ComponentUninstallResult$1 = {
1688
1725
  requestDigest: string;
1689
1726
  schemaVersion: 'operation-event-receipt/v1';
1690
1727
  submissionId?: string;
1728
+ pruned?: true;
1691
1729
  } | {
1692
1730
  event: {
1693
1731
  committedAt: string;
@@ -1702,7 +1740,7 @@ type ComponentUninstallResult$1 = {
1702
1740
  eventRequestId: string;
1703
1741
  operations: Array<{
1704
1742
  opIndex: number;
1705
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
1743
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
1706
1744
  name: string;
1707
1745
  submittedName?: string;
1708
1746
  resolvedName?: string;
@@ -1738,7 +1776,7 @@ type ComponentUninstallResult$1 = {
1738
1776
  dataHash?: string;
1739
1777
  } | {
1740
1778
  opIndex: number;
1741
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
1779
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
1742
1780
  name: string;
1743
1781
  submittedName?: string;
1744
1782
  resolvedName?: string;
@@ -1806,6 +1844,10 @@ type ComponentUninstallResult$1 = {
1806
1844
  durableId: string;
1807
1845
  };
1808
1846
  suggestedName?: string;
1847
+ } | {
1848
+ reason: 'target_removed';
1849
+ targetDurableId: string;
1850
+ fieldPath?: string;
1809
1851
  } | {
1810
1852
  reason: 'invalid_token';
1811
1853
  };
@@ -1816,6 +1858,7 @@ type ComponentUninstallResult$1 = {
1816
1858
  requestDigest: string;
1817
1859
  schemaVersion: 'operation-event-receipt/v2';
1818
1860
  submissionId?: string;
1861
+ pruned?: true;
1819
1862
  }>;
1820
1863
  };
1821
1864
  type CredentialDeleteResult$1 = {
@@ -2201,6 +2244,7 @@ type StreamAppendResult$1 = {
2201
2244
  requestDigest: string;
2202
2245
  schemaVersion: 'operation-event-receipt/v1';
2203
2246
  submissionId?: string;
2247
+ pruned?: true;
2204
2248
  allocatedTokenRanges: Array<{
2205
2249
  start: number;
2206
2250
  end: number;
@@ -2406,6 +2450,7 @@ type StreamAppendResult$1 = {
2406
2450
  requestDigest: string;
2407
2451
  schemaVersion: 'operation-event-receipt/v1';
2408
2452
  submissionId?: string;
2453
+ pruned?: true;
2409
2454
  };
2410
2455
  } | {
2411
2456
  event: {
@@ -2421,7 +2466,7 @@ type StreamAppendResult$1 = {
2421
2466
  eventRequestId: string;
2422
2467
  operations: Array<{
2423
2468
  opIndex: number;
2424
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
2469
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
2425
2470
  name: string;
2426
2471
  submittedName?: string;
2427
2472
  resolvedName?: string;
@@ -2457,7 +2502,7 @@ type StreamAppendResult$1 = {
2457
2502
  dataHash?: string;
2458
2503
  } | {
2459
2504
  opIndex: number;
2460
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
2505
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
2461
2506
  name: string;
2462
2507
  submittedName?: string;
2463
2508
  resolvedName?: string;
@@ -2525,6 +2570,10 @@ type StreamAppendResult$1 = {
2525
2570
  durableId: string;
2526
2571
  };
2527
2572
  suggestedName?: string;
2573
+ } | {
2574
+ reason: 'target_removed';
2575
+ targetDurableId: string;
2576
+ fieldPath?: string;
2528
2577
  } | {
2529
2578
  reason: 'invalid_token';
2530
2579
  };
@@ -2535,13 +2584,14 @@ type StreamAppendResult$1 = {
2535
2584
  requestDigest: string;
2536
2585
  schemaVersion: 'operation-event-receipt/v2';
2537
2586
  submissionId?: string;
2587
+ pruned?: true;
2538
2588
  allocatedTokenRanges: Array<{
2539
2589
  start: number;
2540
2590
  end: number;
2541
2591
  }>;
2542
2592
  results: Array<{
2543
2593
  opIndex: number;
2544
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
2594
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
2545
2595
  name: string;
2546
2596
  submittedName?: string;
2547
2597
  resolvedName?: string;
@@ -2577,7 +2627,7 @@ type StreamAppendResult$1 = {
2577
2627
  dataHash?: string;
2578
2628
  } | {
2579
2629
  opIndex: number;
2580
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
2630
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
2581
2631
  name: string;
2582
2632
  submittedName?: string;
2583
2633
  resolvedName?: string;
@@ -2645,6 +2695,10 @@ type StreamAppendResult$1 = {
2645
2695
  durableId: string;
2646
2696
  };
2647
2697
  suggestedName?: string;
2698
+ } | {
2699
+ reason: 'target_removed';
2700
+ targetDurableId: string;
2701
+ fieldPath?: string;
2648
2702
  } | {
2649
2703
  reason: 'invalid_token';
2650
2704
  };
@@ -2690,7 +2744,7 @@ type StreamAppendResult$1 = {
2690
2744
  eventRequestId: string;
2691
2745
  operations: Array<{
2692
2746
  opIndex: number;
2693
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
2747
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
2694
2748
  name: string;
2695
2749
  submittedName?: string;
2696
2750
  resolvedName?: string;
@@ -2726,7 +2780,7 @@ type StreamAppendResult$1 = {
2726
2780
  dataHash?: string;
2727
2781
  } | {
2728
2782
  opIndex: number;
2729
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
2783
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
2730
2784
  name: string;
2731
2785
  submittedName?: string;
2732
2786
  resolvedName?: string;
@@ -2794,6 +2848,10 @@ type StreamAppendResult$1 = {
2794
2848
  durableId: string;
2795
2849
  };
2796
2850
  suggestedName?: string;
2851
+ } | {
2852
+ reason: 'target_removed';
2853
+ targetDurableId: string;
2854
+ fieldPath?: string;
2797
2855
  } | {
2798
2856
  reason: 'invalid_token';
2799
2857
  };
@@ -2804,6 +2862,7 @@ type StreamAppendResult$1 = {
2804
2862
  requestDigest: string;
2805
2863
  schemaVersion: 'operation-event-receipt/v2';
2806
2864
  submissionId?: string;
2865
+ pruned?: true;
2807
2866
  };
2808
2867
  };
2809
2868
  type StreamingSubmissionRow$1 = {
@@ -2873,7 +2932,7 @@ type StreamingSubmissionRow$1 = {
2873
2932
  submissionIndex: number;
2874
2933
  } | {
2875
2934
  opIndex: number;
2876
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
2935
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
2877
2936
  name: string;
2878
2937
  submittedName?: string;
2879
2938
  resolvedName?: string;
@@ -2912,7 +2971,7 @@ type StreamingSubmissionRow$1 = {
2912
2971
  submissionIndex: number;
2913
2972
  } | {
2914
2973
  opIndex: number;
2915
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
2974
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
2916
2975
  name: string;
2917
2976
  submittedName?: string;
2918
2977
  resolvedName?: string;
@@ -2980,6 +3039,10 @@ type StreamingSubmissionRow$1 = {
2980
3039
  durableId: string;
2981
3040
  };
2982
3041
  suggestedName?: string;
3042
+ } | {
3043
+ reason: 'target_removed';
3044
+ targetDurableId: string;
3045
+ fieldPath?: string;
2983
3046
  } | {
2984
3047
  reason: 'invalid_token';
2985
3048
  };
@@ -3048,6 +3111,7 @@ type CommitApplyCompatibilityResult$1 = {
3048
3111
  requestDigest: string;
3049
3112
  schemaVersion: 'operation-event-receipt/v1';
3050
3113
  submissionId?: string;
3114
+ pruned?: true;
3051
3115
  committer?: string;
3052
3116
  createdByEmail?: string;
3053
3117
  message?: string;
@@ -3201,6 +3265,7 @@ type CommitApplyCompatibilityResult$1 = {
3201
3265
  requestDigest: string;
3202
3266
  schemaVersion: 'operation-event-receipt/v1';
3203
3267
  submissionId?: string;
3268
+ pruned?: true;
3204
3269
  };
3205
3270
  } | {
3206
3271
  event: {
@@ -3218,6 +3283,7 @@ type CommitApplyCompatibilityResult$1 = {
3218
3283
  requestDigest: string;
3219
3284
  schemaVersion: 'operation-event-receipt/v2';
3220
3285
  submissionId?: string;
3286
+ pruned?: true;
3221
3287
  committer?: string;
3222
3288
  createdByEmail?: string;
3223
3289
  message?: string;
@@ -3225,7 +3291,7 @@ type CommitApplyCompatibilityResult$1 = {
3225
3291
  repoSeq?: number;
3226
3292
  operations: Array<{
3227
3293
  opIndex: number;
3228
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
3294
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
3229
3295
  name: string;
3230
3296
  submittedName?: string;
3231
3297
  resolvedName?: string;
@@ -3261,7 +3327,7 @@ type CommitApplyCompatibilityResult$1 = {
3261
3327
  dataHash?: string;
3262
3328
  } | {
3263
3329
  opIndex: number;
3264
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
3330
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
3265
3331
  name: string;
3266
3332
  submittedName?: string;
3267
3333
  resolvedName?: string;
@@ -3329,6 +3395,10 @@ type CommitApplyCompatibilityResult$1 = {
3329
3395
  durableId: string;
3330
3396
  };
3331
3397
  suggestedName?: string;
3398
+ } | {
3399
+ reason: 'target_removed';
3400
+ targetDurableId: string;
3401
+ fieldPath?: string;
3332
3402
  } | {
3333
3403
  reason: 'invalid_token';
3334
3404
  };
@@ -3349,7 +3419,7 @@ type CommitApplyCompatibilityResult$1 = {
3349
3419
  eventRequestId: string;
3350
3420
  operations: Array<{
3351
3421
  opIndex: number;
3352
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
3422
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
3353
3423
  name: string;
3354
3424
  submittedName?: string;
3355
3425
  resolvedName?: string;
@@ -3385,7 +3455,7 @@ type CommitApplyCompatibilityResult$1 = {
3385
3455
  dataHash?: string;
3386
3456
  } | {
3387
3457
  opIndex: number;
3388
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
3458
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
3389
3459
  name: string;
3390
3460
  submittedName?: string;
3391
3461
  resolvedName?: string;
@@ -3453,6 +3523,10 @@ type CommitApplyCompatibilityResult$1 = {
3453
3523
  durableId: string;
3454
3524
  };
3455
3525
  suggestedName?: string;
3526
+ } | {
3527
+ reason: 'target_removed';
3528
+ targetDurableId: string;
3529
+ fieldPath?: string;
3456
3530
  } | {
3457
3531
  reason: 'invalid_token';
3458
3532
  };
@@ -3463,6 +3537,7 @@ type CommitApplyCompatibilityResult$1 = {
3463
3537
  requestDigest: string;
3464
3538
  schemaVersion: 'operation-event-receipt/v2';
3465
3539
  submissionId?: string;
3540
+ pruned?: true;
3466
3541
  };
3467
3542
  };
3468
3543
  type CollectionMutationCompatibilityResult = {
@@ -3578,6 +3653,7 @@ type CollectionMutationCompatibilityResult = {
3578
3653
  requestDigest: string;
3579
3654
  schemaVersion: 'operation-event-receipt/v1';
3580
3655
  submissionId?: string;
3656
+ pruned?: true;
3581
3657
  type: 'arc' | 'bond' | 'set' | 'list' | 'pair';
3582
3658
  wref: string;
3583
3659
  version: number;
@@ -3720,6 +3796,7 @@ type CollectionMutationCompatibilityResult = {
3720
3796
  requestDigest: string;
3721
3797
  schemaVersion: 'operation-event-receipt/v1';
3722
3798
  submissionId?: string;
3799
+ pruned?: true;
3723
3800
  };
3724
3801
  } | {
3725
3802
  event: {
@@ -3735,7 +3812,7 @@ type CollectionMutationCompatibilityResult = {
3735
3812
  eventRequestId: string;
3736
3813
  operations: Array<{
3737
3814
  opIndex: number;
3738
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
3815
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
3739
3816
  name: string;
3740
3817
  submittedName?: string;
3741
3818
  resolvedName?: string;
@@ -3771,7 +3848,7 @@ type CollectionMutationCompatibilityResult = {
3771
3848
  dataHash?: string;
3772
3849
  } | {
3773
3850
  opIndex: number;
3774
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
3851
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
3775
3852
  name: string;
3776
3853
  submittedName?: string;
3777
3854
  resolvedName?: string;
@@ -3839,6 +3916,10 @@ type CollectionMutationCompatibilityResult = {
3839
3916
  durableId: string;
3840
3917
  };
3841
3918
  suggestedName?: string;
3919
+ } | {
3920
+ reason: 'target_removed';
3921
+ targetDurableId: string;
3922
+ fieldPath?: string;
3842
3923
  } | {
3843
3924
  reason: 'invalid_token';
3844
3925
  };
@@ -3849,6 +3930,7 @@ type CollectionMutationCompatibilityResult = {
3849
3930
  requestDigest: string;
3850
3931
  schemaVersion: 'operation-event-receipt/v2';
3851
3932
  submissionId?: string;
3933
+ pruned?: true;
3852
3934
  type: 'arc' | 'bond' | 'set' | 'list' | 'pair';
3853
3935
  wref: string;
3854
3936
  version: number;
@@ -3892,7 +3974,276 @@ type CollectionMutationCompatibilityResult = {
3892
3974
  eventRequestId: string;
3893
3975
  operations: Array<{
3894
3976
  opIndex: number;
3895
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
3977
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
3978
+ name: string;
3979
+ submittedName?: string;
3980
+ resolvedName?: string;
3981
+ warnings?: {
3982
+ undeclaredFields?: Array<string>;
3983
+ undeclaredFieldsTruncated?: true;
3984
+ totalUndeclared?: number;
3985
+ coalescedWrefs?: Array<{
3986
+ fieldPath: string;
3987
+ wref: string;
3988
+ reason: string;
3989
+ }>;
3990
+ coalescedWrefsTruncated?: true;
3991
+ totalCoalescedWrefs?: number;
3992
+ deprecations?: Array<{
3993
+ shape: string;
3994
+ message: string;
3995
+ removalMilestone: string;
3996
+ }>;
3997
+ ignoredVersionPins?: Array<{
3998
+ fieldPath: string;
3999
+ wref: string;
4000
+ binding: 'identity';
4001
+ }>;
4002
+ };
4003
+ affirmations?: {
4004
+ added: Array<string>;
4005
+ removed: Array<string>;
4006
+ ignored: Array<string>;
4007
+ };
4008
+ status: 'applied' | 'noop';
4009
+ version?: number;
4010
+ dataHash?: string;
4011
+ } | {
4012
+ opIndex: number;
4013
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4014
+ name: string;
4015
+ submittedName?: string;
4016
+ resolvedName?: string;
4017
+ warnings?: {
4018
+ undeclaredFields?: Array<string>;
4019
+ undeclaredFieldsTruncated?: true;
4020
+ totalUndeclared?: number;
4021
+ coalescedWrefs?: Array<{
4022
+ fieldPath: string;
4023
+ wref: string;
4024
+ reason: string;
4025
+ }>;
4026
+ coalescedWrefsTruncated?: true;
4027
+ totalCoalescedWrefs?: number;
4028
+ deprecations?: Array<{
4029
+ shape: string;
4030
+ message: string;
4031
+ removalMilestone: string;
4032
+ }>;
4033
+ ignoredVersionPins?: Array<{
4034
+ fieldPath: string;
4035
+ wref: string;
4036
+ binding: 'identity';
4037
+ }>;
4038
+ };
4039
+ affirmations?: {
4040
+ added: Array<string>;
4041
+ removed: Array<string>;
4042
+ ignored: Array<string>;
4043
+ };
4044
+ status: 'error';
4045
+ errors: Array<{
4046
+ code: string;
4047
+ message: string;
4048
+ path?: string;
4049
+ details?: {
4050
+ reason: 'expected_version_mismatch';
4051
+ expectedVersion: number;
4052
+ currentVersion: number;
4053
+ } | {
4054
+ reason: 'lease_held';
4055
+ leaseExpiresAt: string;
4056
+ } | {
4057
+ reason: 'validation_failed';
4058
+ issues: Array<{
4059
+ path: string;
4060
+ message: string;
4061
+ }>;
4062
+ } | {
4063
+ reason: 'rate_limit_reset';
4064
+ retryAfterSeconds: number;
4065
+ resetAt: string;
4066
+ } | {
4067
+ reason: 'cursor_fence_unavailable';
4068
+ cause: 'not_ready' | 'below_floor' | 'above_head';
4069
+ retryFromStart: true;
4070
+ } | {
4071
+ reason: 'dependency_failed';
4072
+ producerOpIndexes: Array<number>;
4073
+ } | {
4074
+ reason: 'name_taken';
4075
+ name: string;
4076
+ takenBy?: {
4077
+ shape: string;
4078
+ durableId: string;
4079
+ };
4080
+ suggestedName?: string;
4081
+ } | {
4082
+ reason: 'target_removed';
4083
+ targetDurableId: string;
4084
+ fieldPath?: string;
4085
+ } | {
4086
+ reason: 'invalid_token';
4087
+ };
4088
+ retryable?: boolean;
4089
+ }>;
4090
+ }>;
4091
+ outcome: 'event' | 'no_event';
4092
+ requestDigest: string;
4093
+ schemaVersion: 'operation-event-receipt/v2';
4094
+ submissionId?: string;
4095
+ pruned?: true;
4096
+ };
4097
+ };
4098
+ type RemoveCompatibilityResult = {
4099
+ event: {
4100
+ committedAt: string;
4101
+ eventDigest: string;
4102
+ operationCount: number;
4103
+ repo: {
4104
+ orgName: string;
4105
+ repoName: string;
4106
+ };
4107
+ repoSeq: string;
4108
+ } | null;
4109
+ eventRequestId: string;
4110
+ operations: Array<{
4111
+ opIndex: number;
4112
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4113
+ name: string;
4114
+ submittedName?: string;
4115
+ resolvedName?: string;
4116
+ warnings?: {
4117
+ undeclaredFields?: Array<string>;
4118
+ undeclaredFieldsTruncated?: true;
4119
+ totalUndeclared?: number;
4120
+ coalescedWrefs?: Array<{
4121
+ fieldPath: string;
4122
+ wref: string;
4123
+ reason: string;
4124
+ }>;
4125
+ coalescedWrefsTruncated?: true;
4126
+ totalCoalescedWrefs?: number;
4127
+ deprecations?: Array<{
4128
+ shape: string;
4129
+ message: string;
4130
+ removalMilestone: string;
4131
+ }>;
4132
+ ignoredVersionPins?: Array<{
4133
+ fieldPath: string;
4134
+ wref: string;
4135
+ binding: 'identity';
4136
+ }>;
4137
+ };
4138
+ affirmations?: {
4139
+ added: Array<string>;
4140
+ removed: Array<string>;
4141
+ ignored: Array<string>;
4142
+ };
4143
+ status: 'applied' | 'noop';
4144
+ version?: number;
4145
+ dataHash?: string;
4146
+ } | {
4147
+ opIndex: number;
4148
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4149
+ name: string;
4150
+ submittedName?: string;
4151
+ resolvedName?: string;
4152
+ warnings?: {
4153
+ undeclaredFields?: Array<string>;
4154
+ undeclaredFieldsTruncated?: true;
4155
+ totalUndeclared?: number;
4156
+ coalescedWrefs?: Array<{
4157
+ fieldPath: string;
4158
+ wref: string;
4159
+ reason: string;
4160
+ }>;
4161
+ coalescedWrefsTruncated?: true;
4162
+ totalCoalescedWrefs?: number;
4163
+ deprecations?: Array<{
4164
+ shape: string;
4165
+ message: string;
4166
+ removalMilestone: string;
4167
+ }>;
4168
+ ignoredVersionPins?: Array<{
4169
+ fieldPath: string;
4170
+ wref: string;
4171
+ binding: 'identity';
4172
+ }>;
4173
+ };
4174
+ affirmations?: {
4175
+ added: Array<string>;
4176
+ removed: Array<string>;
4177
+ ignored: Array<string>;
4178
+ };
4179
+ status: 'error';
4180
+ errors: Array<{
4181
+ code: string;
4182
+ message: string;
4183
+ path?: string;
4184
+ details?: {
4185
+ reason: 'expected_version_mismatch';
4186
+ expectedVersion: number;
4187
+ currentVersion: number;
4188
+ } | {
4189
+ reason: 'lease_held';
4190
+ leaseExpiresAt: string;
4191
+ } | {
4192
+ reason: 'validation_failed';
4193
+ issues: Array<{
4194
+ path: string;
4195
+ message: string;
4196
+ }>;
4197
+ } | {
4198
+ reason: 'rate_limit_reset';
4199
+ retryAfterSeconds: number;
4200
+ resetAt: string;
4201
+ } | {
4202
+ reason: 'cursor_fence_unavailable';
4203
+ cause: 'not_ready' | 'below_floor' | 'above_head';
4204
+ retryFromStart: true;
4205
+ } | {
4206
+ reason: 'dependency_failed';
4207
+ producerOpIndexes: Array<number>;
4208
+ } | {
4209
+ reason: 'name_taken';
4210
+ name: string;
4211
+ takenBy?: {
4212
+ shape: string;
4213
+ durableId: string;
4214
+ };
4215
+ suggestedName?: string;
4216
+ } | {
4217
+ reason: 'target_removed';
4218
+ targetDurableId: string;
4219
+ fieldPath?: string;
4220
+ } | {
4221
+ reason: 'invalid_token';
4222
+ };
4223
+ retryable?: boolean;
4224
+ }>;
4225
+ }>;
4226
+ outcome: 'event' | 'no_event';
4227
+ requestDigest: string;
4228
+ schemaVersion: 'operation-event-receipt/v2';
4229
+ submissionId?: string;
4230
+ pruned?: true;
4231
+ removed: true;
4232
+ receipt: {
4233
+ event: {
4234
+ committedAt: string;
4235
+ eventDigest: string;
4236
+ operationCount: number;
4237
+ repo: {
4238
+ orgName: string;
4239
+ repoName: string;
4240
+ };
4241
+ repoSeq: string;
4242
+ } | null;
4243
+ eventRequestId: string;
4244
+ operations: Array<{
4245
+ opIndex: number;
4246
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
3896
4247
  name: string;
3897
4248
  submittedName?: string;
3898
4249
  resolvedName?: string;
@@ -3928,7 +4279,7 @@ type CollectionMutationCompatibilityResult = {
3928
4279
  dataHash?: string;
3929
4280
  } | {
3930
4281
  opIndex: number;
3931
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
4282
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
3932
4283
  name: string;
3933
4284
  submittedName?: string;
3934
4285
  resolvedName?: string;
@@ -3996,6 +4347,10 @@ type CollectionMutationCompatibilityResult = {
3996
4347
  durableId: string;
3997
4348
  };
3998
4349
  suggestedName?: string;
4350
+ } | {
4351
+ reason: 'target_removed';
4352
+ targetDurableId: string;
4353
+ fieldPath?: string;
3999
4354
  } | {
4000
4355
  reason: 'invalid_token';
4001
4356
  };
@@ -4006,6 +4361,7 @@ type CollectionMutationCompatibilityResult = {
4006
4361
  requestDigest: string;
4007
4362
  schemaVersion: 'operation-event-receipt/v2';
4008
4363
  submissionId?: string;
4364
+ pruned?: true;
4009
4365
  };
4010
4366
  };
4011
4367
  type RenameCompatibilityResult = {
@@ -4121,6 +4477,7 @@ type RenameCompatibilityResult = {
4121
4477
  requestDigest: string;
4122
4478
  schemaVersion: 'operation-event-receipt/v1';
4123
4479
  submissionId?: string;
4480
+ pruned?: true;
4124
4481
  renamed: true;
4125
4482
  receipt: {
4126
4483
  event: {
@@ -4235,6 +4592,7 @@ type RenameCompatibilityResult = {
4235
4592
  requestDigest: string;
4236
4593
  schemaVersion: 'operation-event-receipt/v1';
4237
4594
  submissionId?: string;
4595
+ pruned?: true;
4238
4596
  };
4239
4597
  } | {
4240
4598
  event: {
@@ -4250,7 +4608,7 @@ type RenameCompatibilityResult = {
4250
4608
  eventRequestId: string;
4251
4609
  operations: Array<{
4252
4610
  opIndex: number;
4253
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
4611
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4254
4612
  name: string;
4255
4613
  submittedName?: string;
4256
4614
  resolvedName?: string;
@@ -4286,7 +4644,7 @@ type RenameCompatibilityResult = {
4286
4644
  dataHash?: string;
4287
4645
  } | {
4288
4646
  opIndex: number;
4289
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
4647
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4290
4648
  name: string;
4291
4649
  submittedName?: string;
4292
4650
  resolvedName?: string;
@@ -4354,6 +4712,10 @@ type RenameCompatibilityResult = {
4354
4712
  durableId: string;
4355
4713
  };
4356
4714
  suggestedName?: string;
4715
+ } | {
4716
+ reason: 'target_removed';
4717
+ targetDurableId: string;
4718
+ fieldPath?: string;
4357
4719
  } | {
4358
4720
  reason: 'invalid_token';
4359
4721
  };
@@ -4364,6 +4726,7 @@ type RenameCompatibilityResult = {
4364
4726
  requestDigest: string;
4365
4727
  schemaVersion: 'operation-event-receipt/v2';
4366
4728
  submissionId?: string;
4729
+ pruned?: true;
4367
4730
  renamed: true;
4368
4731
  receipt: {
4369
4732
  event: {
@@ -4379,7 +4742,7 @@ type RenameCompatibilityResult = {
4379
4742
  eventRequestId: string;
4380
4743
  operations: Array<{
4381
4744
  opIndex: number;
4382
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
4745
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4383
4746
  name: string;
4384
4747
  submittedName?: string;
4385
4748
  resolvedName?: string;
@@ -4415,7 +4778,7 @@ type RenameCompatibilityResult = {
4415
4778
  dataHash?: string;
4416
4779
  } | {
4417
4780
  opIndex: number;
4418
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
4781
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4419
4782
  name: string;
4420
4783
  submittedName?: string;
4421
4784
  resolvedName?: string;
@@ -4483,6 +4846,10 @@ type RenameCompatibilityResult = {
4483
4846
  durableId: string;
4484
4847
  };
4485
4848
  suggestedName?: string;
4849
+ } | {
4850
+ reason: 'target_removed';
4851
+ targetDurableId: string;
4852
+ fieldPath?: string;
4486
4853
  } | {
4487
4854
  reason: 'invalid_token';
4488
4855
  };
@@ -4493,6 +4860,7 @@ type RenameCompatibilityResult = {
4493
4860
  requestDigest: string;
4494
4861
  schemaVersion: 'operation-event-receipt/v2';
4495
4862
  submissionId?: string;
4863
+ pruned?: true;
4496
4864
  };
4497
4865
  };
4498
4866
  type ShapeChangeCompatibilityResult = {
@@ -4608,6 +4976,7 @@ type ShapeChangeCompatibilityResult = {
4608
4976
  requestDigest: string;
4609
4977
  schemaVersion: 'operation-event-receipt/v1';
4610
4978
  submissionId?: string;
4979
+ pruned?: true;
4611
4980
  name: string;
4612
4981
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
4613
4982
  version: number;
@@ -4725,6 +5094,7 @@ type ShapeChangeCompatibilityResult = {
4725
5094
  requestDigest: string;
4726
5095
  schemaVersion: 'operation-event-receipt/v1';
4727
5096
  submissionId?: string;
5097
+ pruned?: true;
4728
5098
  };
4729
5099
  } | {
4730
5100
  event: {
@@ -4740,7 +5110,7 @@ type ShapeChangeCompatibilityResult = {
4740
5110
  eventRequestId: string;
4741
5111
  operations: Array<{
4742
5112
  opIndex: number;
4743
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
5113
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4744
5114
  name: string;
4745
5115
  submittedName?: string;
4746
5116
  resolvedName?: string;
@@ -4776,7 +5146,7 @@ type ShapeChangeCompatibilityResult = {
4776
5146
  dataHash?: string;
4777
5147
  } | {
4778
5148
  opIndex: number;
4779
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
5149
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4780
5150
  name: string;
4781
5151
  submittedName?: string;
4782
5152
  resolvedName?: string;
@@ -4844,6 +5214,10 @@ type ShapeChangeCompatibilityResult = {
4844
5214
  durableId: string;
4845
5215
  };
4846
5216
  suggestedName?: string;
5217
+ } | {
5218
+ reason: 'target_removed';
5219
+ targetDurableId: string;
5220
+ fieldPath?: string;
4847
5221
  } | {
4848
5222
  reason: 'invalid_token';
4849
5223
  };
@@ -4854,6 +5228,7 @@ type ShapeChangeCompatibilityResult = {
4854
5228
  requestDigest: string;
4855
5229
  schemaVersion: 'operation-event-receipt/v2';
4856
5230
  submissionId?: string;
5231
+ pruned?: true;
4857
5232
  name: string;
4858
5233
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
4859
5234
  version: number;
@@ -4872,7 +5247,7 @@ type ShapeChangeCompatibilityResult = {
4872
5247
  eventRequestId: string;
4873
5248
  operations: Array<{
4874
5249
  opIndex: number;
4875
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
5250
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4876
5251
  name: string;
4877
5252
  submittedName?: string;
4878
5253
  resolvedName?: string;
@@ -4908,7 +5283,7 @@ type ShapeChangeCompatibilityResult = {
4908
5283
  dataHash?: string;
4909
5284
  } | {
4910
5285
  opIndex: number;
4911
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
5286
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
4912
5287
  name: string;
4913
5288
  submittedName?: string;
4914
5289
  resolvedName?: string;
@@ -4976,6 +5351,10 @@ type ShapeChangeCompatibilityResult = {
4976
5351
  durableId: string;
4977
5352
  };
4978
5353
  suggestedName?: string;
5354
+ } | {
5355
+ reason: 'target_removed';
5356
+ targetDurableId: string;
5357
+ fieldPath?: string;
4979
5358
  } | {
4980
5359
  reason: 'invalid_token';
4981
5360
  };
@@ -4986,6 +5365,7 @@ type ShapeChangeCompatibilityResult = {
4986
5365
  requestDigest: string;
4987
5366
  schemaVersion: 'operation-event-receipt/v2';
4988
5367
  submissionId?: string;
5368
+ pruned?: true;
4989
5369
  };
4990
5370
  };
4991
5371
  type ShapeRemoveCompatibilityResult = {
@@ -5101,6 +5481,7 @@ type ShapeRemoveCompatibilityResult = {
5101
5481
  requestDigest: string;
5102
5482
  schemaVersion: 'operation-event-receipt/v1';
5103
5483
  submissionId?: string;
5484
+ pruned?: true;
5104
5485
  name: string;
5105
5486
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
5106
5487
  version: number;
@@ -5219,6 +5600,7 @@ type ShapeRemoveCompatibilityResult = {
5219
5600
  requestDigest: string;
5220
5601
  schemaVersion: 'operation-event-receipt/v1';
5221
5602
  submissionId?: string;
5603
+ pruned?: true;
5222
5604
  };
5223
5605
  } | {
5224
5606
  event: {
@@ -5234,7 +5616,7 @@ type ShapeRemoveCompatibilityResult = {
5234
5616
  eventRequestId: string;
5235
5617
  operations: Array<{
5236
5618
  opIndex: number;
5237
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
5619
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
5238
5620
  name: string;
5239
5621
  submittedName?: string;
5240
5622
  resolvedName?: string;
@@ -5270,7 +5652,7 @@ type ShapeRemoveCompatibilityResult = {
5270
5652
  dataHash?: string;
5271
5653
  } | {
5272
5654
  opIndex: number;
5273
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
5655
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
5274
5656
  name: string;
5275
5657
  submittedName?: string;
5276
5658
  resolvedName?: string;
@@ -5338,6 +5720,10 @@ type ShapeRemoveCompatibilityResult = {
5338
5720
  durableId: string;
5339
5721
  };
5340
5722
  suggestedName?: string;
5723
+ } | {
5724
+ reason: 'target_removed';
5725
+ targetDurableId: string;
5726
+ fieldPath?: string;
5341
5727
  } | {
5342
5728
  reason: 'invalid_token';
5343
5729
  };
@@ -5348,6 +5734,7 @@ type ShapeRemoveCompatibilityResult = {
5348
5734
  requestDigest: string;
5349
5735
  schemaVersion: 'operation-event-receipt/v2';
5350
5736
  submissionId?: string;
5737
+ pruned?: true;
5351
5738
  name: string;
5352
5739
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
5353
5740
  version: number;
@@ -5367,7 +5754,7 @@ type ShapeRemoveCompatibilityResult = {
5367
5754
  eventRequestId: string;
5368
5755
  operations: Array<{
5369
5756
  opIndex: number;
5370
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
5757
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
5371
5758
  name: string;
5372
5759
  submittedName?: string;
5373
5760
  resolvedName?: string;
@@ -5403,7 +5790,7 @@ type ShapeRemoveCompatibilityResult = {
5403
5790
  dataHash?: string;
5404
5791
  } | {
5405
5792
  opIndex: number;
5406
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename';
5793
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'remove';
5407
5794
  name: string;
5408
5795
  submittedName?: string;
5409
5796
  resolvedName?: string;
@@ -5471,6 +5858,10 @@ type ShapeRemoveCompatibilityResult = {
5471
5858
  durableId: string;
5472
5859
  };
5473
5860
  suggestedName?: string;
5861
+ } | {
5862
+ reason: 'target_removed';
5863
+ targetDurableId: string;
5864
+ fieldPath?: string;
5474
5865
  } | {
5475
5866
  reason: 'invalid_token';
5476
5867
  };
@@ -5481,6 +5872,7 @@ type ShapeRemoveCompatibilityResult = {
5481
5872
  requestDigest: string;
5482
5873
  schemaVersion: 'operation-event-receipt/v2';
5483
5874
  submissionId?: string;
5875
+ pruned?: true;
5484
5876
  };
5485
5877
  };
5486
5878
  type Org = {
@@ -5523,6 +5915,7 @@ type RefsResult$1 = {
5523
5915
  version?: number;
5524
5916
  fieldPath?: string;
5525
5917
  binding?: 'identity' | 'versioned';
5918
+ removed?: true;
5526
5919
  }>;
5527
5920
  nextCursor?: string;
5528
5921
  };
@@ -6665,6 +7058,24 @@ type CommitValidateInput = CommitValidateInput$1;
6665
7058
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/commitvalidateresult/
6666
7059
  */
6667
7060
  type CommitValidateResult = CommitValidateResult$1;
7061
+ /**
7062
+ * A removal a validation can check. Only `commit.validate` accepts it:
7063
+ * `commit.apply` writes through streams, which refuse `remove`, so the
7064
+ * removal itself goes through `client.thing.remove`.
7065
+ * @see https://docs.warmhub.ai/sdk-reference/interfaces/removeoperation/
7066
+ */
7067
+ interface RemoveOperation {
7068
+ operation: 'remove';
7069
+ /** A local wref (`Shape/name` or `Shape`) or a durable ID in this repo. */
7070
+ name: string;
7071
+ /** The Thing's current version; a stale version fails the removal. */
7072
+ expectedVersion: number;
7073
+ }
7074
+ /**
7075
+ * An operation {@link WarmHubClient.commit.validate} accepts.
7076
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/commitvalidateoperation/
7077
+ */
7078
+ type CommitValidateOperation = Operation | RemoveOperation;
6668
7079
  /**
6669
7080
  * Options accepted by {@link WarmHubClient.commit.validate}.
6670
7081
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/commitvalidateoptions/
@@ -6678,7 +7089,7 @@ type CommitValidateOptions = {
6678
7089
  signal?: AbortSignal;
6679
7090
  };
6680
7091
  /** @internal Canonical input shared by the SDK call and CLI byte preflight. */
6681
- declare function createCommitValidateInput(orgName: string, repoName: string, operations: readonly Operation[], opts?: CommitValidateOptions): CommitValidateInput;
7092
+ declare function createCommitValidateInput(orgName: string, repoName: string, operations: readonly CommitValidateOperation[], opts?: CommitValidateOptions): CommitValidateInput;
6682
7093
  /**
6683
7094
  * Serialize the exact body sent by the dedicated unbatched tRPC HTTP link.
6684
7095
  *
@@ -8100,6 +8511,11 @@ type ShapeList = ShapeListResult;
8100
8511
  type ShapeRemove = ShapeRemoveCompatibilityResult;
8101
8512
  /** @internal */
8102
8513
  type RenameResult = RenameCompatibilityResult;
8514
+ /**
8515
+ * Result of `client.thing.remove`: the removal's operation-event receipt.
8516
+ * @internal
8517
+ */
8518
+ type RemoveResult = RemoveCompatibilityResult;
8103
8519
  /** @internal */
8104
8520
  type CommitApplyCompatibilityResult = CommitApplyCompatibilityResult$1;
8105
8521
  /**
@@ -8525,6 +8941,16 @@ type ShapeRemoveOptions = {
8525
8941
  type RenameOptions = {
8526
8942
  eventRequestId: string;
8527
8943
  };
8944
+ /**
8945
+ * Options for `client.thing.remove`.
8946
+ * @see https://docs.warmhub.ai/sdk-reference/type-aliases/removeoptions/
8947
+ */
8948
+ type RemoveOptions = {
8949
+ /** Caller-owned UUID retained across an ambiguous removal retry. */
8950
+ eventRequestId: string;
8951
+ /** The Thing's current version; a stale version fails the removal. */
8952
+ expectedVersion: number;
8953
+ };
8528
8954
  /** @internal */
8529
8955
  interface ShapeHistoryOptions {
8530
8956
  includeRetracted?: boolean;
@@ -9654,7 +10080,8 @@ declare function isWarmHubError(error: unknown): error is WarmHubError;
9654
10080
  * - `RATE_LIMITED` — caller exceeded the budget; retry after the
9655
10081
  * {@link WarmHubError.retryAfter} interval.
9656
10082
  * A completed {@link AllStreamOperationsFailedError} returns `false` even
9657
- * when its shared operation code is `RATE_LIMITED`.
10083
+ * when its shared operation code is `RATE_LIMITED` — including after
10084
+ * {@link toWarmHubError}, and when a second SDK copy threw it.
9658
10085
  *
9659
10086
  * All other kinds — including backend pass-through domain codes such as
9660
10087
  * `SHAPE_MISMATCH` or `WREF_UNRESOLVABLE` — return `false`. This is a
@@ -9996,7 +10423,7 @@ declare class WarmHubClient {
9996
10423
  * The complete operation list is normalized and sent in one bounded,
9997
10424
  * unbatched request. Semantic verdicts come only from the server.
9998
10425
  */
9999
- validate: (orgName: string, repoName: string, operations: Operation[], opts?: CommitValidateOptions) => Promise<CommitValidateResult>;
10426
+ validate: (orgName: string, repoName: string, operations: CommitValidateOperation[], opts?: CommitValidateOptions) => Promise<CommitValidateResult>;
10000
10427
  /**
10001
10428
  * Submit one or more operations through WarmHub's commit pipeline.
10002
10429
  *
@@ -11054,6 +11481,16 @@ declare class WarmHubClient {
11054
11481
  * receipt replay after an ambiguous response.
11055
11482
  */
11056
11483
  rename: (orgName: string, repoName: string, shapeName: string, oldName: string, newName: string, opts: RenameOptions) => Promise<RenameResult>;
11484
+ /**
11485
+ * Permanently remove a Thing and all its versions. Requires an
11486
+ * unrestricted `things:delete` grant.
11487
+ *
11488
+ * `wref` is a local wref (`Shape/name` or `Shape`) or a durable ID in this
11489
+ * repo; a retracted Thing is named by its durable ID. References to the
11490
+ * Thing survive as its durable ID. Retain `opts.eventRequestId` for an
11491
+ * exact receipt replay after an ambiguous response.
11492
+ */
11493
+ remove: (orgName: string, repoName: string, wref: string, opts: RemoveOptions) => Promise<RemoveResult>;
11057
11494
  /**
11058
11495
  * Resolve a wref to its current projected record.
11059
11496
  */
@@ -11577,4 +12014,4 @@ declare class WarmHubClient {
11577
12014
  private watchRepoQuery;
11578
12015
  }
11579
12016
 
11580
- export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionDeliveryTarget, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedItem, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddOp, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionAddOp, type CollectionAddType, type CollectionContainsOptions, type CollectionContainsResult, type CollectionCreateOptions, type CollectionDiffOptions, type CollectionDiffResult, type CollectionMember, type CollectionMembersOptions, type CollectionMembersPage, type CollectionMembershipRole, type CollectionMutationResult, type CollectionQuerySourceOptions, type CollectionReadDataMode, type CollectionReadSummary, type CollectionReviseOptions, type CollectionStatsOptions, type CollectionStatsResult, type CollectionTag, type CollectionType, type CollectionWriteType, type CommitApplyCompatibilityResult, type CommitDiagnostic, type CommitRealOperationResult, type CommitValidateInput, type CommitValidateOptions, type CommitValidateResult, type ComponentHistory, type ComponentHistoryOptions, type ComponentInfo, type ComponentInstallOptions, type ComponentInstallResult, type ComponentList, type ComponentListOptions, type ComponentUninstallOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, type DeclaredFieldEntry, type ErrorKind, type FieldIndexCarryingMarker, type FieldIndexCarryingShape, type FieldIndexConsistency, type FieldIndexPinResult, type FilterOptions, type FilterResult, type FunctionLogMode, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type Grant, type GrantCreateOptions, type GrantListOptions, type GrantListResult, type GrantRecipientSelector, type GrantRevokeResult, type HeadResult, type HistoryResult, type HistoryVersion, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_COMMIT_VALIDATION_ENCODED_BYTES, MAX_COMMIT_VALIDATION_OPERATIONS, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, MAX_WREFS_PER_THING_VERSION, ORG_AUTH_SCOPES, type Operation, OperationBuilder, type OperationBuilderAddInput, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationEventReceipt, type OperationEventReceiptV1, type OperationSource, type OperationSubmitResult, type OrgAccessResult, type OrgAuthScope, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, REPO_AUTH_SCOPES, type ReaffirmOperation, type RefLink, type RefsOptions, type RefsResult, type RenameOperation, type RenameOptions, type RenameResult, type RepoAccessResult, type RepoAuthScope, type RepoConfigureStatsView, type RepoDescribeResult, type RepoExploreBrowseOptions, type RepoExploreItem, type RepoExploreOptions, type RepoExploreResult, type RepoInfo, type RepoLicense, type RepoList, type RepoListForCallerOptions, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRecentInfo, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RepositoryCheckpointAccess, type RepositoryCheckpointStatus, RepositoryExportError, type RepositoryExportErrorReason, type RepositoryExportExpectation, type RepositoryExportOptions, type RepositoryExportPreparation, type RepositoryExportPrepareOptions, type RepositoryExportRestoreOptions, type RepositoryExportRowMap, type RepositoryExportRows, type RepositoryExportSegmentOptions, RepositoryExportSession, type RequestEvent, type ResolveWrefResult, type RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type ScopeAllowedShapes, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeRemoveOptions, type ShapeReviseOptions, type ShapeValidatorResult, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, StreamSubmissionAggregator, type StreamingSubmissionHandle, type StreamingSubmissionOptions, StreamingSubmissionOutcomeUnknownError, type StreamingSubmissionRetryIdentity, type StreamingSubmissionRow, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingChanges, type ThingDetail, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadChangesOptions, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type ThingQueryChangesOptions, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, type ViewEvaluateOptions, type ViewEvaluateResult, WarmHubClient, type WarmHubClientOptions, type WarmHubDecorations, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isConnectionError, isDefiniteStreamAppendRejection, isKnownOrgAuthScope, isKnownRepoAuthScope, isRetryable, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
12017
+ export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionDeliveryTarget, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedItem, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddOp, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionAddOp, type CollectionAddType, type CollectionContainsOptions, type CollectionContainsResult, type CollectionCreateOptions, type CollectionDiffOptions, type CollectionDiffResult, type CollectionMember, type CollectionMembersOptions, type CollectionMembersPage, type CollectionMembershipRole, type CollectionMutationResult, type CollectionQuerySourceOptions, type CollectionReadDataMode, type CollectionReadSummary, type CollectionReviseOptions, type CollectionStatsOptions, type CollectionStatsResult, type CollectionTag, type CollectionType, type CollectionWriteType, type CommitApplyCompatibilityResult, type CommitDiagnostic, type CommitRealOperationResult, type CommitValidateInput, type CommitValidateOperation, type CommitValidateOptions, type CommitValidateResult, type ComponentHistory, type ComponentHistoryOptions, type ComponentInfo, type ComponentInstallOptions, type ComponentInstallResult, type ComponentList, type ComponentListOptions, type ComponentUninstallOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, type DeclaredFieldEntry, type ErrorKind, type FieldIndexCarryingMarker, type FieldIndexCarryingShape, type FieldIndexConsistency, type FieldIndexPinResult, type FilterOptions, type FilterResult, type FunctionLogMode, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type Grant, type GrantCreateOptions, type GrantListOptions, type GrantListResult, type GrantRecipientSelector, type GrantRevokeResult, type HeadResult, type HistoryResult, type HistoryVersion, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_COMMIT_VALIDATION_ENCODED_BYTES, MAX_COMMIT_VALIDATION_OPERATIONS, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, MAX_WREFS_PER_THING_VERSION, ORG_AUTH_SCOPES, type Operation, OperationBuilder, type OperationBuilderAddInput, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationEventReceipt, type OperationEventReceiptV1, type OperationSource, type OperationSubmitResult, type OrgAccessResult, type OrgAuthScope, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, REPO_AUTH_SCOPES, type ReaffirmOperation, type RefLink, type RefsOptions, type RefsResult, type RemoveOperation, type RemoveOptions, type RemoveResult, type RenameOperation, type RenameOptions, type RenameResult, type RepoAccessResult, type RepoAuthScope, type RepoConfigureStatsView, type RepoDescribeResult, type RepoExploreBrowseOptions, type RepoExploreItem, type RepoExploreOptions, type RepoExploreResult, type RepoInfo, type RepoLicense, type RepoList, type RepoListForCallerOptions, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRecentInfo, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RepositoryCheckpointAccess, type RepositoryCheckpointStatus, RepositoryExportError, type RepositoryExportErrorReason, type RepositoryExportExpectation, type RepositoryExportOptions, type RepositoryExportPreparation, type RepositoryExportPrepareOptions, type RepositoryExportRestoreOptions, type RepositoryExportRowMap, type RepositoryExportRows, type RepositoryExportSegmentOptions, RepositoryExportSession, type RequestEvent, type ResolveWrefResult, type RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type ScopeAllowedShapes, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeRemoveOptions, type ShapeReviseOptions, type ShapeValidatorResult, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, StreamSubmissionAggregator, type StreamingSubmissionHandle, type StreamingSubmissionOptions, StreamingSubmissionOutcomeUnknownError, type StreamingSubmissionRetryIdentity, type StreamingSubmissionRow, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingChanges, type ThingDetail, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadChangesOptions, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type ThingQueryChangesOptions, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, type ViewEvaluateOptions, type ViewEvaluateResult, WarmHubClient, type WarmHubClientOptions, type WarmHubDecorations, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isConnectionError, isDefiniteStreamAppendRejection, isKnownOrgAuthScope, isKnownRepoAuthScope, isRetryable, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };