@warmhub/sdk-ts 0.156.0 → 0.157.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
@@ -826,120 +826,6 @@ type CommitValidateResult$1 = {
826
826
  }>;
827
827
  };
828
828
  type OperationEventReceipt$1 = {
829
- event: {
830
- committedAt: string;
831
- eventDigest: string;
832
- operationCount: number;
833
- repo: {
834
- orgName: string;
835
- repoName: string;
836
- };
837
- repoSeq: string;
838
- } | null;
839
- eventRequestId: string;
840
- operations: Array<{
841
- opIndex?: number;
842
- name: string;
843
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
844
- version: number;
845
- dataHash: string;
846
- status?: 'applied' | 'noop';
847
- affirmations?: {
848
- added: Array<string>;
849
- removed: Array<string>;
850
- ignored: Array<string>;
851
- };
852
- warnings?: {
853
- undeclaredFields?: Array<string>;
854
- undeclaredFieldsTruncated?: true;
855
- totalUndeclared?: number;
856
- coalescedWrefs?: Array<{
857
- fieldPath: string;
858
- wref: string;
859
- reason: string;
860
- }>;
861
- coalescedWrefsTruncated?: true;
862
- totalCoalescedWrefs?: number;
863
- ignoredVersionPins?: Array<{
864
- fieldPath: string;
865
- wref: string;
866
- binding: 'identity';
867
- }>;
868
- deprecations?: Array<{
869
- shape: string;
870
- message: string;
871
- removalMilestone: string;
872
- }>;
873
- };
874
- } | {
875
- opIndex?: number;
876
- name: string;
877
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
878
- version?: number;
879
- dataHash?: string;
880
- status?: 'success' | 'noop' | 'failed';
881
- error?: {
882
- code: string;
883
- message: string;
884
- details?: {
885
- reason: 'expected_version_mismatch';
886
- expectedVersion: number;
887
- currentVersion: number;
888
- } | {
889
- reason: 'lease_held';
890
- leaseExpiresAt: string;
891
- } | {
892
- reason: 'validation_failed';
893
- issues: Array<{
894
- path: string;
895
- message: string;
896
- }>;
897
- } | {
898
- reason: 'rate_limit_reset';
899
- retryAfterSeconds: number;
900
- resetAt: string;
901
- } | {
902
- reason: 'cursor_fence_unavailable';
903
- cause: 'not_ready' | 'below_floor' | 'above_head';
904
- retryFromStart: true;
905
- };
906
- };
907
- resolvedName?: string;
908
- retryable?: boolean;
909
- warnings?: {
910
- undeclaredFields?: Array<string>;
911
- undeclaredFieldsTruncated?: true;
912
- totalUndeclared?: number;
913
- coalescedWrefs?: Array<{
914
- fieldPath: string;
915
- wref: string;
916
- reason: string;
917
- }>;
918
- coalescedWrefsTruncated?: true;
919
- totalCoalescedWrefs?: number;
920
- ignoredVersionPins?: Array<{
921
- fieldPath: string;
922
- wref: string;
923
- binding: 'identity';
924
- }>;
925
- deprecations?: Array<{
926
- shape: string;
927
- message: string;
928
- removalMilestone: string;
929
- }>;
930
- };
931
- affirmations?: {
932
- added: Array<string>;
933
- removed: Array<string>;
934
- ignored: Array<string>;
935
- };
936
- }>;
937
- outcome: 'event' | 'no_event';
938
- requestDigest: string;
939
- schemaVersion: 'operation-event-receipt/v1';
940
- submissionId?: string;
941
- pruned?: true;
942
- } | {
943
829
  event: {
944
830
  committedAt: string;
945
831
  eventDigest: string;
@@ -1102,121 +988,6 @@ type OperationEventReceiptMetadata$1 = {
1102
988
  resultOperationCount?: number;
1103
989
  pruned?: true;
1104
990
  };
1105
- type OperationEventReceiptV1$1 = {
1106
- event: {
1107
- committedAt: string;
1108
- eventDigest: string;
1109
- operationCount: number;
1110
- repo: {
1111
- orgName: string;
1112
- repoName: string;
1113
- };
1114
- repoSeq: string;
1115
- } | null;
1116
- eventRequestId: string;
1117
- operations: Array<{
1118
- opIndex?: number;
1119
- name: string;
1120
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
1121
- version: number;
1122
- dataHash: string;
1123
- status?: 'applied' | 'noop';
1124
- affirmations?: {
1125
- added: Array<string>;
1126
- removed: Array<string>;
1127
- ignored: Array<string>;
1128
- };
1129
- warnings?: {
1130
- undeclaredFields?: Array<string>;
1131
- undeclaredFieldsTruncated?: true;
1132
- totalUndeclared?: number;
1133
- coalescedWrefs?: Array<{
1134
- fieldPath: string;
1135
- wref: string;
1136
- reason: string;
1137
- }>;
1138
- coalescedWrefsTruncated?: true;
1139
- totalCoalescedWrefs?: number;
1140
- ignoredVersionPins?: Array<{
1141
- fieldPath: string;
1142
- wref: string;
1143
- binding: 'identity';
1144
- }>;
1145
- deprecations?: Array<{
1146
- shape: string;
1147
- message: string;
1148
- removalMilestone: string;
1149
- }>;
1150
- };
1151
- } | {
1152
- opIndex?: number;
1153
- name: string;
1154
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
1155
- version?: number;
1156
- dataHash?: string;
1157
- status?: 'success' | 'noop' | 'failed';
1158
- error?: {
1159
- code: string;
1160
- message: string;
1161
- details?: {
1162
- reason: 'expected_version_mismatch';
1163
- expectedVersion: number;
1164
- currentVersion: number;
1165
- } | {
1166
- reason: 'lease_held';
1167
- leaseExpiresAt: string;
1168
- } | {
1169
- reason: 'validation_failed';
1170
- issues: Array<{
1171
- path: string;
1172
- message: string;
1173
- }>;
1174
- } | {
1175
- reason: 'rate_limit_reset';
1176
- retryAfterSeconds: number;
1177
- resetAt: string;
1178
- } | {
1179
- reason: 'cursor_fence_unavailable';
1180
- cause: 'not_ready' | 'below_floor' | 'above_head';
1181
- retryFromStart: true;
1182
- };
1183
- };
1184
- resolvedName?: string;
1185
- retryable?: boolean;
1186
- warnings?: {
1187
- undeclaredFields?: Array<string>;
1188
- undeclaredFieldsTruncated?: true;
1189
- totalUndeclared?: number;
1190
- coalescedWrefs?: Array<{
1191
- fieldPath: string;
1192
- wref: string;
1193
- reason: string;
1194
- }>;
1195
- coalescedWrefsTruncated?: true;
1196
- totalCoalescedWrefs?: number;
1197
- ignoredVersionPins?: Array<{
1198
- fieldPath: string;
1199
- wref: string;
1200
- binding: 'identity';
1201
- }>;
1202
- deprecations?: Array<{
1203
- shape: string;
1204
- message: string;
1205
- removalMilestone: string;
1206
- }>;
1207
- };
1208
- affirmations?: {
1209
- added: Array<string>;
1210
- removed: Array<string>;
1211
- ignored: Array<string>;
1212
- };
1213
- }>;
1214
- outcome: 'event' | 'no_event';
1215
- requestDigest: string;
1216
- schemaVersion: 'operation-event-receipt/v1';
1217
- submissionId?: string;
1218
- pruned?: true;
1219
- };
1220
991
  type OperationEventReceiptV2 = {
1221
992
  event: {
1222
993
  committedAt: string;
@@ -1522,17 +1293,11 @@ type ComponentInstallResult$1 = {
1522
1293
  } | null;
1523
1294
  eventRequestId: string;
1524
1295
  operations: Array<{
1525
- opIndex?: number;
1296
+ opIndex: number;
1297
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
1526
1298
  name: string;
1527
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
1528
- version: number;
1529
- dataHash: string;
1530
- status?: 'applied' | 'noop';
1531
- affirmations?: {
1532
- added: Array<string>;
1533
- removed: Array<string>;
1534
- ignored: Array<string>;
1535
- };
1299
+ submittedName?: string;
1300
+ resolvedName?: string;
1536
1301
  warnings?: {
1537
1302
  undeclaredFields?: Array<string>;
1538
1303
  undeclaredFieldsTruncated?: true;
@@ -1544,132 +1309,24 @@ type ComponentInstallResult$1 = {
1544
1309
  }>;
1545
1310
  coalescedWrefsTruncated?: true;
1546
1311
  totalCoalescedWrefs?: number;
1547
- ignoredVersionPins?: Array<{
1548
- fieldPath: string;
1549
- wref: string;
1550
- binding: 'identity';
1551
- }>;
1552
1312
  deprecations?: Array<{
1553
1313
  shape: string;
1554
1314
  message: string;
1555
1315
  removalMilestone: string;
1556
1316
  }>;
1317
+ ignoredVersionPins?: Array<{
1318
+ fieldPath: string;
1319
+ wref: string;
1320
+ binding: 'identity';
1321
+ }>;
1322
+ shapeless?: true;
1557
1323
  };
1558
- } | {
1559
- opIndex?: number;
1560
- name: string;
1561
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
1562
- version?: number;
1563
- dataHash?: string;
1564
- status?: 'success' | 'noop' | 'failed';
1565
- error?: {
1566
- code: string;
1567
- message: string;
1568
- details?: {
1569
- reason: 'expected_version_mismatch';
1570
- expectedVersion: number;
1571
- currentVersion: number;
1572
- } | {
1573
- reason: 'lease_held';
1574
- leaseExpiresAt: string;
1575
- } | {
1576
- reason: 'validation_failed';
1577
- issues: Array<{
1578
- path: string;
1579
- message: string;
1580
- }>;
1581
- } | {
1582
- reason: 'rate_limit_reset';
1583
- retryAfterSeconds: number;
1584
- resetAt: string;
1585
- } | {
1586
- reason: 'cursor_fence_unavailable';
1587
- cause: 'not_ready' | 'below_floor' | 'above_head';
1588
- retryFromStart: true;
1589
- };
1590
- };
1591
- resolvedName?: string;
1592
- retryable?: boolean;
1593
- warnings?: {
1594
- undeclaredFields?: Array<string>;
1595
- undeclaredFieldsTruncated?: true;
1596
- totalUndeclared?: number;
1597
- coalescedWrefs?: Array<{
1598
- fieldPath: string;
1599
- wref: string;
1600
- reason: string;
1601
- }>;
1602
- coalescedWrefsTruncated?: true;
1603
- totalCoalescedWrefs?: number;
1604
- ignoredVersionPins?: Array<{
1605
- fieldPath: string;
1606
- wref: string;
1607
- binding: 'identity';
1608
- }>;
1609
- deprecations?: Array<{
1610
- shape: string;
1611
- message: string;
1612
- removalMilestone: string;
1613
- }>;
1614
- };
1615
- affirmations?: {
1616
- added: Array<string>;
1617
- removed: Array<string>;
1618
- ignored: Array<string>;
1619
- };
1620
- }>;
1621
- outcome: 'event' | 'no_event';
1622
- requestDigest: string;
1623
- schemaVersion: 'operation-event-receipt/v1';
1624
- submissionId?: string;
1625
- pruned?: true;
1626
- } | {
1627
- event: {
1628
- committedAt: string;
1629
- eventDigest: string;
1630
- operationCount: number;
1631
- repo: {
1632
- orgName: string;
1633
- repoName: string;
1634
- };
1635
- repoSeq: string;
1636
- } | null;
1637
- eventRequestId: string;
1638
- operations: Array<{
1639
- opIndex: number;
1640
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
1641
- name: string;
1642
- submittedName?: string;
1643
- resolvedName?: string;
1644
- warnings?: {
1645
- undeclaredFields?: Array<string>;
1646
- undeclaredFieldsTruncated?: true;
1647
- totalUndeclared?: number;
1648
- coalescedWrefs?: Array<{
1649
- fieldPath: string;
1650
- wref: string;
1651
- reason: string;
1652
- }>;
1653
- coalescedWrefsTruncated?: true;
1654
- totalCoalescedWrefs?: number;
1655
- deprecations?: Array<{
1656
- shape: string;
1657
- message: string;
1658
- removalMilestone: string;
1659
- }>;
1660
- ignoredVersionPins?: Array<{
1661
- fieldPath: string;
1662
- wref: string;
1663
- binding: 'identity';
1664
- }>;
1665
- shapeless?: true;
1666
- };
1667
- affirmations?: {
1668
- added: Array<string>;
1669
- removed: Array<string>;
1670
- ignored: Array<string>;
1671
- };
1672
- status: 'applied' | 'noop';
1324
+ affirmations?: {
1325
+ added: Array<string>;
1326
+ removed: Array<string>;
1327
+ ignored: Array<string>;
1328
+ };
1329
+ status: 'applied' | 'noop';
1673
1330
  version?: number;
1674
1331
  dataHash?: string;
1675
1332
  } | {
@@ -1808,120 +1465,6 @@ type ComponentUninstallResult$1 = {
1808
1465
  warnings: Array<string>;
1809
1466
  submissionId: string;
1810
1467
  eventReceipts: Array<{
1811
- event: {
1812
- committedAt: string;
1813
- eventDigest: string;
1814
- operationCount: number;
1815
- repo: {
1816
- orgName: string;
1817
- repoName: string;
1818
- };
1819
- repoSeq: string;
1820
- } | null;
1821
- eventRequestId: string;
1822
- operations: Array<{
1823
- opIndex?: number;
1824
- name: string;
1825
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
1826
- version: number;
1827
- dataHash: string;
1828
- status?: 'applied' | 'noop';
1829
- affirmations?: {
1830
- added: Array<string>;
1831
- removed: Array<string>;
1832
- ignored: Array<string>;
1833
- };
1834
- warnings?: {
1835
- undeclaredFields?: Array<string>;
1836
- undeclaredFieldsTruncated?: true;
1837
- totalUndeclared?: number;
1838
- coalescedWrefs?: Array<{
1839
- fieldPath: string;
1840
- wref: string;
1841
- reason: string;
1842
- }>;
1843
- coalescedWrefsTruncated?: true;
1844
- totalCoalescedWrefs?: number;
1845
- ignoredVersionPins?: Array<{
1846
- fieldPath: string;
1847
- wref: string;
1848
- binding: 'identity';
1849
- }>;
1850
- deprecations?: Array<{
1851
- shape: string;
1852
- message: string;
1853
- removalMilestone: string;
1854
- }>;
1855
- };
1856
- } | {
1857
- opIndex?: number;
1858
- name: string;
1859
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
1860
- version?: number;
1861
- dataHash?: string;
1862
- status?: 'success' | 'noop' | 'failed';
1863
- error?: {
1864
- code: string;
1865
- message: string;
1866
- details?: {
1867
- reason: 'expected_version_mismatch';
1868
- expectedVersion: number;
1869
- currentVersion: number;
1870
- } | {
1871
- reason: 'lease_held';
1872
- leaseExpiresAt: string;
1873
- } | {
1874
- reason: 'validation_failed';
1875
- issues: Array<{
1876
- path: string;
1877
- message: string;
1878
- }>;
1879
- } | {
1880
- reason: 'rate_limit_reset';
1881
- retryAfterSeconds: number;
1882
- resetAt: string;
1883
- } | {
1884
- reason: 'cursor_fence_unavailable';
1885
- cause: 'not_ready' | 'below_floor' | 'above_head';
1886
- retryFromStart: true;
1887
- };
1888
- };
1889
- resolvedName?: string;
1890
- retryable?: boolean;
1891
- warnings?: {
1892
- undeclaredFields?: Array<string>;
1893
- undeclaredFieldsTruncated?: true;
1894
- totalUndeclared?: number;
1895
- coalescedWrefs?: Array<{
1896
- fieldPath: string;
1897
- wref: string;
1898
- reason: string;
1899
- }>;
1900
- coalescedWrefsTruncated?: true;
1901
- totalCoalescedWrefs?: number;
1902
- ignoredVersionPins?: Array<{
1903
- fieldPath: string;
1904
- wref: string;
1905
- binding: 'identity';
1906
- }>;
1907
- deprecations?: Array<{
1908
- shape: string;
1909
- message: string;
1910
- removalMilestone: string;
1911
- }>;
1912
- };
1913
- affirmations?: {
1914
- added: Array<string>;
1915
- removed: Array<string>;
1916
- ignored: Array<string>;
1917
- };
1918
- }>;
1919
- outcome: 'event' | 'no_event';
1920
- requestDigest: string;
1921
- schemaVersion: 'operation-event-receipt/v1';
1922
- submissionId?: string;
1923
- pruned?: true;
1924
- } | {
1925
1468
  event: {
1926
1469
  committedAt: string;
1927
1470
  eventDigest: string;
@@ -2305,17 +1848,11 @@ type StreamAppendResult$1 = {
2305
1848
  } | null;
2306
1849
  eventRequestId: string;
2307
1850
  operations: Array<{
2308
- opIndex?: number;
1851
+ opIndex: number;
1852
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2309
1853
  name: string;
2310
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2311
- version: number;
2312
- dataHash: string;
2313
- status?: 'applied' | 'noop';
2314
- affirmations?: {
2315
- added: Array<string>;
2316
- removed: Array<string>;
2317
- ignored: Array<string>;
2318
- };
1854
+ submittedName?: string;
1855
+ resolvedName?: string;
2319
1856
  warnings?: {
2320
1857
  undeclaredFields?: Array<string>;
2321
1858
  undeclaredFieldsTruncated?: true;
@@ -2327,1472 +1864,65 @@ type StreamAppendResult$1 = {
2327
1864
  }>;
2328
1865
  coalescedWrefsTruncated?: true;
2329
1866
  totalCoalescedWrefs?: number;
1867
+ deprecations?: Array<{
1868
+ shape: string;
1869
+ message: string;
1870
+ removalMilestone: string;
1871
+ }>;
2330
1872
  ignoredVersionPins?: Array<{
2331
1873
  fieldPath: string;
2332
1874
  wref: string;
2333
1875
  binding: 'identity';
2334
1876
  }>;
1877
+ shapeless?: true;
1878
+ };
1879
+ affirmations?: {
1880
+ added: Array<string>;
1881
+ removed: Array<string>;
1882
+ ignored: Array<string>;
1883
+ };
1884
+ status: 'applied' | 'noop';
1885
+ version?: number;
1886
+ dataHash?: string;
1887
+ } | {
1888
+ opIndex: number;
1889
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
1890
+ name: string;
1891
+ submittedName?: string;
1892
+ resolvedName?: string;
1893
+ warnings?: {
1894
+ undeclaredFields?: Array<string>;
1895
+ undeclaredFieldsTruncated?: true;
1896
+ totalUndeclared?: number;
1897
+ coalescedWrefs?: Array<{
1898
+ fieldPath: string;
1899
+ wref: string;
1900
+ reason: string;
1901
+ }>;
1902
+ coalescedWrefsTruncated?: true;
1903
+ totalCoalescedWrefs?: number;
2335
1904
  deprecations?: Array<{
2336
1905
  shape: string;
2337
1906
  message: string;
2338
1907
  removalMilestone: string;
2339
1908
  }>;
1909
+ ignoredVersionPins?: Array<{
1910
+ fieldPath: string;
1911
+ wref: string;
1912
+ binding: 'identity';
1913
+ }>;
1914
+ shapeless?: true;
2340
1915
  };
2341
- } | {
2342
- opIndex?: number;
2343
- name: string;
2344
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2345
- version?: number;
2346
- dataHash?: string;
2347
- status?: 'success' | 'noop' | 'failed';
2348
- error?: {
2349
- code: string;
2350
- message: string;
2351
- details?: {
2352
- reason: 'expected_version_mismatch';
2353
- expectedVersion: number;
2354
- currentVersion: number;
2355
- } | {
2356
- reason: 'lease_held';
2357
- leaseExpiresAt: string;
2358
- } | {
2359
- reason: 'validation_failed';
2360
- issues: Array<{
2361
- path: string;
2362
- message: string;
2363
- }>;
2364
- } | {
2365
- reason: 'rate_limit_reset';
2366
- retryAfterSeconds: number;
2367
- resetAt: string;
2368
- } | {
2369
- reason: 'cursor_fence_unavailable';
2370
- cause: 'not_ready' | 'below_floor' | 'above_head';
2371
- retryFromStart: true;
2372
- };
2373
- };
2374
- resolvedName?: string;
2375
- retryable?: boolean;
2376
- warnings?: {
2377
- undeclaredFields?: Array<string>;
2378
- undeclaredFieldsTruncated?: true;
2379
- totalUndeclared?: number;
2380
- coalescedWrefs?: Array<{
2381
- fieldPath: string;
2382
- wref: string;
2383
- reason: string;
2384
- }>;
2385
- coalescedWrefsTruncated?: true;
2386
- totalCoalescedWrefs?: number;
2387
- ignoredVersionPins?: Array<{
2388
- fieldPath: string;
2389
- wref: string;
2390
- binding: 'identity';
2391
- }>;
2392
- deprecations?: Array<{
2393
- shape: string;
2394
- message: string;
2395
- removalMilestone: string;
2396
- }>;
2397
- };
2398
- affirmations?: {
2399
- added: Array<string>;
2400
- removed: Array<string>;
2401
- ignored: Array<string>;
2402
- };
2403
- }>;
2404
- outcome: 'event' | 'no_event';
2405
- requestDigest: string;
2406
- schemaVersion: 'operation-event-receipt/v1';
2407
- submissionId?: string;
2408
- pruned?: true;
2409
- allocatedTokenRanges: Array<{
2410
- start: number;
2411
- end: number;
2412
- }>;
2413
- results: Array<{
2414
- opIndex?: number;
2415
- name: string;
2416
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2417
- version?: number;
2418
- dataHash?: string;
2419
- status?: 'success' | 'noop' | 'failed';
2420
- error?: {
2421
- code: string;
2422
- message: string;
2423
- details?: {
2424
- reason: 'expected_version_mismatch';
2425
- expectedVersion: number;
2426
- currentVersion: number;
2427
- } | {
2428
- reason: 'lease_held';
2429
- leaseExpiresAt: string;
2430
- } | {
2431
- reason: 'validation_failed';
2432
- issues: Array<{
2433
- path: string;
2434
- message: string;
2435
- }>;
2436
- } | {
2437
- reason: 'rate_limit_reset';
2438
- retryAfterSeconds: number;
2439
- resetAt: string;
2440
- } | {
2441
- reason: 'cursor_fence_unavailable';
2442
- cause: 'not_ready' | 'below_floor' | 'above_head';
2443
- retryFromStart: true;
2444
- };
2445
- };
2446
- resolvedName?: string;
2447
- retryable?: boolean;
2448
- warnings?: {
2449
- undeclaredFields?: Array<string>;
2450
- undeclaredFieldsTruncated?: true;
2451
- totalUndeclared?: number;
2452
- coalescedWrefs?: Array<{
2453
- fieldPath: string;
2454
- wref: string;
2455
- reason: string;
2456
- }>;
2457
- coalescedWrefsTruncated?: true;
2458
- totalCoalescedWrefs?: number;
2459
- ignoredVersionPins?: Array<{
2460
- fieldPath: string;
2461
- wref: string;
2462
- binding: 'identity';
2463
- }>;
2464
- deprecations?: Array<{
2465
- shape: string;
2466
- message: string;
2467
- removalMilestone: string;
2468
- }>;
2469
- };
2470
- affirmations?: {
2471
- added: Array<string>;
2472
- removed: Array<string>;
2473
- ignored: Array<string>;
2474
- };
2475
- }>;
2476
- repoSeq?: number;
2477
- createdByEmail?: string;
2478
- appendTotalMs?: number;
2479
- appendResolveRepoMs?: number;
2480
- appendApplyMs?: number;
2481
- applySubphases?: {
2482
- addThingMs?: number;
2483
- addAssertionMs?: number;
2484
- addAssertionResolveAboutMs?: number;
2485
- reviseThingMs?: number;
2486
- reviseAssertionMs?: number;
2487
- reviseCollectionMs?: number;
2488
- preparePinnedLoadShapeFieldsMs?: number;
2489
- preparePinnedPinWrefsMs?: number;
2490
- preparePinnedValidateMs?: number;
2491
- operationLoopMs?: number;
2492
- persistMs?: number;
2493
- persistThingsMs?: number;
2494
- persistVersionsMs?: number;
2495
- persistAssertionsMs?: number;
2496
- persistUpdatesMs?: number;
2497
- persistOutboxMs?: number;
2498
- refInsertMs?: number;
2499
- refSourceCount?: number;
2500
- };
2501
- receipt: {
2502
- event: {
2503
- committedAt: string;
2504
- eventDigest: string;
2505
- operationCount: number;
2506
- repo: {
2507
- orgName: string;
2508
- repoName: string;
2509
- };
2510
- repoSeq: string;
2511
- } | null;
2512
- eventRequestId: string;
2513
- operations: Array<{
2514
- opIndex?: number;
2515
- name: string;
2516
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2517
- version: number;
2518
- dataHash: string;
2519
- status?: 'applied' | 'noop';
2520
- affirmations?: {
2521
- added: Array<string>;
2522
- removed: Array<string>;
2523
- ignored: Array<string>;
2524
- };
2525
- warnings?: {
2526
- undeclaredFields?: Array<string>;
2527
- undeclaredFieldsTruncated?: true;
2528
- totalUndeclared?: number;
2529
- coalescedWrefs?: Array<{
2530
- fieldPath: string;
2531
- wref: string;
2532
- reason: string;
2533
- }>;
2534
- coalescedWrefsTruncated?: true;
2535
- totalCoalescedWrefs?: number;
2536
- ignoredVersionPins?: Array<{
2537
- fieldPath: string;
2538
- wref: string;
2539
- binding: 'identity';
2540
- }>;
2541
- deprecations?: Array<{
2542
- shape: string;
2543
- message: string;
2544
- removalMilestone: string;
2545
- }>;
2546
- };
2547
- } | {
2548
- opIndex?: number;
2549
- name: string;
2550
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2551
- version?: number;
2552
- dataHash?: string;
2553
- status?: 'success' | 'noop' | 'failed';
2554
- error?: {
2555
- code: string;
2556
- message: string;
2557
- details?: {
2558
- reason: 'expected_version_mismatch';
2559
- expectedVersion: number;
2560
- currentVersion: number;
2561
- } | {
2562
- reason: 'lease_held';
2563
- leaseExpiresAt: string;
2564
- } | {
2565
- reason: 'validation_failed';
2566
- issues: Array<{
2567
- path: string;
2568
- message: string;
2569
- }>;
2570
- } | {
2571
- reason: 'rate_limit_reset';
2572
- retryAfterSeconds: number;
2573
- resetAt: string;
2574
- } | {
2575
- reason: 'cursor_fence_unavailable';
2576
- cause: 'not_ready' | 'below_floor' | 'above_head';
2577
- retryFromStart: true;
2578
- };
2579
- };
2580
- resolvedName?: string;
2581
- retryable?: boolean;
2582
- warnings?: {
2583
- undeclaredFields?: Array<string>;
2584
- undeclaredFieldsTruncated?: true;
2585
- totalUndeclared?: number;
2586
- coalescedWrefs?: Array<{
2587
- fieldPath: string;
2588
- wref: string;
2589
- reason: string;
2590
- }>;
2591
- coalescedWrefsTruncated?: true;
2592
- totalCoalescedWrefs?: number;
2593
- ignoredVersionPins?: Array<{
2594
- fieldPath: string;
2595
- wref: string;
2596
- binding: 'identity';
2597
- }>;
2598
- deprecations?: Array<{
2599
- shape: string;
2600
- message: string;
2601
- removalMilestone: string;
2602
- }>;
2603
- };
2604
- affirmations?: {
2605
- added: Array<string>;
2606
- removed: Array<string>;
2607
- ignored: Array<string>;
2608
- };
2609
- }>;
2610
- outcome: 'event' | 'no_event';
2611
- requestDigest: string;
2612
- schemaVersion: 'operation-event-receipt/v1';
2613
- submissionId?: string;
2614
- pruned?: true;
2615
- };
2616
- } | {
2617
- event: {
2618
- committedAt: string;
2619
- eventDigest: string;
2620
- operationCount: number;
2621
- repo: {
2622
- orgName: string;
2623
- repoName: string;
2624
- };
2625
- repoSeq: string;
2626
- } | null;
2627
- eventRequestId: string;
2628
- operations: Array<{
2629
- opIndex: number;
2630
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2631
- name: string;
2632
- submittedName?: string;
2633
- resolvedName?: string;
2634
- warnings?: {
2635
- undeclaredFields?: Array<string>;
2636
- undeclaredFieldsTruncated?: true;
2637
- totalUndeclared?: number;
2638
- coalescedWrefs?: Array<{
2639
- fieldPath: string;
2640
- wref: string;
2641
- reason: string;
2642
- }>;
2643
- coalescedWrefsTruncated?: true;
2644
- totalCoalescedWrefs?: number;
2645
- deprecations?: Array<{
2646
- shape: string;
2647
- message: string;
2648
- removalMilestone: string;
2649
- }>;
2650
- ignoredVersionPins?: Array<{
2651
- fieldPath: string;
2652
- wref: string;
2653
- binding: 'identity';
2654
- }>;
2655
- shapeless?: true;
2656
- };
2657
- affirmations?: {
2658
- added: Array<string>;
2659
- removed: Array<string>;
2660
- ignored: Array<string>;
2661
- };
2662
- status: 'applied' | 'noop';
2663
- version?: number;
2664
- dataHash?: string;
2665
- } | {
2666
- opIndex: number;
2667
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2668
- name: string;
2669
- submittedName?: string;
2670
- resolvedName?: string;
2671
- warnings?: {
2672
- undeclaredFields?: Array<string>;
2673
- undeclaredFieldsTruncated?: true;
2674
- totalUndeclared?: number;
2675
- coalescedWrefs?: Array<{
2676
- fieldPath: string;
2677
- wref: string;
2678
- reason: string;
2679
- }>;
2680
- coalescedWrefsTruncated?: true;
2681
- totalCoalescedWrefs?: number;
2682
- deprecations?: Array<{
2683
- shape: string;
2684
- message: string;
2685
- removalMilestone: string;
2686
- }>;
2687
- ignoredVersionPins?: Array<{
2688
- fieldPath: string;
2689
- wref: string;
2690
- binding: 'identity';
2691
- }>;
2692
- shapeless?: true;
2693
- };
2694
- affirmations?: {
2695
- added: Array<string>;
2696
- removed: Array<string>;
2697
- ignored: Array<string>;
2698
- };
2699
- status: 'error';
2700
- errors: Array<{
2701
- code: string;
2702
- message: string;
2703
- path?: string;
2704
- details?: {
2705
- reason: 'expected_version_mismatch';
2706
- expectedVersion: number;
2707
- currentVersion: number;
2708
- } | {
2709
- reason: 'lease_held';
2710
- leaseExpiresAt: string;
2711
- } | {
2712
- reason: 'validation_failed';
2713
- issues: Array<{
2714
- path: string;
2715
- message: string;
2716
- }>;
2717
- } | {
2718
- reason: 'rate_limit_reset';
2719
- retryAfterSeconds: number;
2720
- resetAt: string;
2721
- } | {
2722
- reason: 'cursor_fence_unavailable';
2723
- cause: 'not_ready' | 'below_floor' | 'above_head';
2724
- retryFromStart: true;
2725
- } | {
2726
- reason: 'dependency_failed';
2727
- producerOpIndexes: Array<number>;
2728
- } | {
2729
- reason: 'name_taken';
2730
- name: string;
2731
- takenBy?: {
2732
- durableId: string;
2733
- };
2734
- } | {
2735
- reason: 'target_removed';
2736
- targetDurableId: string;
2737
- fieldPath?: string;
2738
- } | {
2739
- reason: 'target_redacted';
2740
- targetDurableId: string;
2741
- fieldPath?: string;
2742
- } | {
2743
- reason: 'legacy-wrefs-window-ended';
2744
- } | {
2745
- reason: 'invalid_token';
2746
- };
2747
- retryable?: boolean;
2748
- }>;
2749
- }>;
2750
- outcome: 'event' | 'no_event';
2751
- requestDigest: string;
2752
- schemaVersion: 'operation-event-receipt/v2';
2753
- submissionId?: string;
2754
- pruned?: true;
2755
- allocatedTokenRanges: Array<{
2756
- start: number;
2757
- end: number;
2758
- }>;
2759
- results: Array<{
2760
- opIndex: number;
2761
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2762
- name: string;
2763
- submittedName?: string;
2764
- resolvedName?: string;
2765
- warnings?: {
2766
- undeclaredFields?: Array<string>;
2767
- undeclaredFieldsTruncated?: true;
2768
- totalUndeclared?: number;
2769
- coalescedWrefs?: Array<{
2770
- fieldPath: string;
2771
- wref: string;
2772
- reason: string;
2773
- }>;
2774
- coalescedWrefsTruncated?: true;
2775
- totalCoalescedWrefs?: number;
2776
- deprecations?: Array<{
2777
- shape: string;
2778
- message: string;
2779
- removalMilestone: string;
2780
- }>;
2781
- ignoredVersionPins?: Array<{
2782
- fieldPath: string;
2783
- wref: string;
2784
- binding: 'identity';
2785
- }>;
2786
- shapeless?: true;
2787
- };
2788
- affirmations?: {
2789
- added: Array<string>;
2790
- removed: Array<string>;
2791
- ignored: Array<string>;
2792
- };
2793
- status: 'applied' | 'noop';
2794
- version?: number;
2795
- dataHash?: string;
2796
- } | {
2797
- opIndex: number;
2798
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2799
- name: string;
2800
- submittedName?: string;
2801
- resolvedName?: string;
2802
- warnings?: {
2803
- undeclaredFields?: Array<string>;
2804
- undeclaredFieldsTruncated?: true;
2805
- totalUndeclared?: number;
2806
- coalescedWrefs?: Array<{
2807
- fieldPath: string;
2808
- wref: string;
2809
- reason: string;
2810
- }>;
2811
- coalescedWrefsTruncated?: true;
2812
- totalCoalescedWrefs?: number;
2813
- deprecations?: Array<{
2814
- shape: string;
2815
- message: string;
2816
- removalMilestone: string;
2817
- }>;
2818
- ignoredVersionPins?: Array<{
2819
- fieldPath: string;
2820
- wref: string;
2821
- binding: 'identity';
2822
- }>;
2823
- shapeless?: true;
2824
- };
2825
- affirmations?: {
2826
- added: Array<string>;
2827
- removed: Array<string>;
2828
- ignored: Array<string>;
2829
- };
2830
- status: 'error';
2831
- errors: Array<{
2832
- code: string;
2833
- message: string;
2834
- path?: string;
2835
- details?: {
2836
- reason: 'expected_version_mismatch';
2837
- expectedVersion: number;
2838
- currentVersion: number;
2839
- } | {
2840
- reason: 'lease_held';
2841
- leaseExpiresAt: string;
2842
- } | {
2843
- reason: 'validation_failed';
2844
- issues: Array<{
2845
- path: string;
2846
- message: string;
2847
- }>;
2848
- } | {
2849
- reason: 'rate_limit_reset';
2850
- retryAfterSeconds: number;
2851
- resetAt: string;
2852
- } | {
2853
- reason: 'cursor_fence_unavailable';
2854
- cause: 'not_ready' | 'below_floor' | 'above_head';
2855
- retryFromStart: true;
2856
- } | {
2857
- reason: 'dependency_failed';
2858
- producerOpIndexes: Array<number>;
2859
- } | {
2860
- reason: 'name_taken';
2861
- name: string;
2862
- takenBy?: {
2863
- durableId: string;
2864
- };
2865
- } | {
2866
- reason: 'target_removed';
2867
- targetDurableId: string;
2868
- fieldPath?: string;
2869
- } | {
2870
- reason: 'target_redacted';
2871
- targetDurableId: string;
2872
- fieldPath?: string;
2873
- } | {
2874
- reason: 'legacy-wrefs-window-ended';
2875
- } | {
2876
- reason: 'invalid_token';
2877
- };
2878
- retryable?: boolean;
2879
- }>;
2880
- }>;
2881
- repoSeq?: number;
2882
- createdByEmail?: string;
2883
- appendTotalMs?: number;
2884
- appendResolveRepoMs?: number;
2885
- appendApplyMs?: number;
2886
- applySubphases?: {
2887
- addThingMs?: number;
2888
- addAssertionMs?: number;
2889
- addAssertionResolveAboutMs?: number;
2890
- reviseThingMs?: number;
2891
- reviseAssertionMs?: number;
2892
- reviseCollectionMs?: number;
2893
- preparePinnedLoadShapeFieldsMs?: number;
2894
- preparePinnedPinWrefsMs?: number;
2895
- preparePinnedValidateMs?: number;
2896
- operationLoopMs?: number;
2897
- persistMs?: number;
2898
- persistThingsMs?: number;
2899
- persistVersionsMs?: number;
2900
- persistAssertionsMs?: number;
2901
- persistUpdatesMs?: number;
2902
- persistOutboxMs?: number;
2903
- refInsertMs?: number;
2904
- refSourceCount?: number;
2905
- };
2906
- receipt: {
2907
- event: {
2908
- committedAt: string;
2909
- eventDigest: string;
2910
- operationCount: number;
2911
- repo: {
2912
- orgName: string;
2913
- repoName: string;
2914
- };
2915
- repoSeq: string;
2916
- } | null;
2917
- eventRequestId: string;
2918
- operations: Array<{
2919
- opIndex: number;
2920
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2921
- name: string;
2922
- submittedName?: string;
2923
- resolvedName?: string;
2924
- warnings?: {
2925
- undeclaredFields?: Array<string>;
2926
- undeclaredFieldsTruncated?: true;
2927
- totalUndeclared?: number;
2928
- coalescedWrefs?: Array<{
2929
- fieldPath: string;
2930
- wref: string;
2931
- reason: string;
2932
- }>;
2933
- coalescedWrefsTruncated?: true;
2934
- totalCoalescedWrefs?: number;
2935
- deprecations?: Array<{
2936
- shape: string;
2937
- message: string;
2938
- removalMilestone: string;
2939
- }>;
2940
- ignoredVersionPins?: Array<{
2941
- fieldPath: string;
2942
- wref: string;
2943
- binding: 'identity';
2944
- }>;
2945
- shapeless?: true;
2946
- };
2947
- affirmations?: {
2948
- added: Array<string>;
2949
- removed: Array<string>;
2950
- ignored: Array<string>;
2951
- };
2952
- status: 'applied' | 'noop';
2953
- version?: number;
2954
- dataHash?: string;
2955
- } | {
2956
- opIndex: number;
2957
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2958
- name: string;
2959
- submittedName?: string;
2960
- resolvedName?: string;
2961
- warnings?: {
2962
- undeclaredFields?: Array<string>;
2963
- undeclaredFieldsTruncated?: true;
2964
- totalUndeclared?: number;
2965
- coalescedWrefs?: Array<{
2966
- fieldPath: string;
2967
- wref: string;
2968
- reason: string;
2969
- }>;
2970
- coalescedWrefsTruncated?: true;
2971
- totalCoalescedWrefs?: number;
2972
- deprecations?: Array<{
2973
- shape: string;
2974
- message: string;
2975
- removalMilestone: string;
2976
- }>;
2977
- ignoredVersionPins?: Array<{
2978
- fieldPath: string;
2979
- wref: string;
2980
- binding: 'identity';
2981
- }>;
2982
- shapeless?: true;
2983
- };
2984
- affirmations?: {
2985
- added: Array<string>;
2986
- removed: Array<string>;
2987
- ignored: Array<string>;
2988
- };
2989
- status: 'error';
2990
- errors: Array<{
2991
- code: string;
2992
- message: string;
2993
- path?: string;
2994
- details?: {
2995
- reason: 'expected_version_mismatch';
2996
- expectedVersion: number;
2997
- currentVersion: number;
2998
- } | {
2999
- reason: 'lease_held';
3000
- leaseExpiresAt: string;
3001
- } | {
3002
- reason: 'validation_failed';
3003
- issues: Array<{
3004
- path: string;
3005
- message: string;
3006
- }>;
3007
- } | {
3008
- reason: 'rate_limit_reset';
3009
- retryAfterSeconds: number;
3010
- resetAt: string;
3011
- } | {
3012
- reason: 'cursor_fence_unavailable';
3013
- cause: 'not_ready' | 'below_floor' | 'above_head';
3014
- retryFromStart: true;
3015
- } | {
3016
- reason: 'dependency_failed';
3017
- producerOpIndexes: Array<number>;
3018
- } | {
3019
- reason: 'name_taken';
3020
- name: string;
3021
- takenBy?: {
3022
- durableId: string;
3023
- };
3024
- } | {
3025
- reason: 'target_removed';
3026
- targetDurableId: string;
3027
- fieldPath?: string;
3028
- } | {
3029
- reason: 'target_redacted';
3030
- targetDurableId: string;
3031
- fieldPath?: string;
3032
- } | {
3033
- reason: 'legacy-wrefs-window-ended';
3034
- } | {
3035
- reason: 'invalid_token';
3036
- };
3037
- retryable?: boolean;
3038
- }>;
3039
- }>;
3040
- outcome: 'event' | 'no_event';
3041
- requestDigest: string;
3042
- schemaVersion: 'operation-event-receipt/v2';
3043
- submissionId?: string;
3044
- pruned?: true;
3045
- };
3046
- };
3047
- type StreamingSubmissionRow$1 = {
3048
- opIndex: number;
3049
- name: string;
3050
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3051
- version?: number;
3052
- dataHash?: string;
3053
- status?: 'success' | 'noop' | 'failed';
3054
- error?: {
3055
- code: string;
3056
- message: string;
3057
- details?: {
3058
- reason: 'expected_version_mismatch';
3059
- expectedVersion: number;
3060
- currentVersion: number;
3061
- } | {
3062
- reason: 'lease_held';
3063
- leaseExpiresAt: string;
3064
- } | {
3065
- reason: 'validation_failed';
3066
- issues: Array<{
3067
- path: string;
3068
- message: string;
3069
- }>;
3070
- } | {
3071
- reason: 'rate_limit_reset';
3072
- retryAfterSeconds: number;
3073
- resetAt: string;
3074
- } | {
3075
- reason: 'cursor_fence_unavailable';
3076
- cause: 'not_ready' | 'below_floor' | 'above_head';
3077
- retryFromStart: true;
3078
- };
3079
- };
3080
- resolvedName?: string;
3081
- retryable?: boolean;
3082
- warnings?: {
3083
- undeclaredFields?: Array<string>;
3084
- undeclaredFieldsTruncated?: true;
3085
- totalUndeclared?: number;
3086
- coalescedWrefs?: Array<{
3087
- fieldPath: string;
3088
- wref: string;
3089
- reason: string;
3090
- }>;
3091
- coalescedWrefsTruncated?: true;
3092
- totalCoalescedWrefs?: number;
3093
- ignoredVersionPins?: Array<{
3094
- fieldPath: string;
3095
- wref: string;
3096
- binding: 'identity';
3097
- }>;
3098
- deprecations?: Array<{
3099
- shape: string;
3100
- message: string;
3101
- removalMilestone: string;
3102
- }>;
3103
- };
3104
- affirmations?: {
3105
- added: Array<string>;
3106
- removed: Array<string>;
3107
- ignored: Array<string>;
3108
- };
3109
- type: 'result';
3110
- chunkOrdinal: number;
3111
- submissionIndex: number;
3112
- } | {
3113
- opIndex: number;
3114
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3115
- name: string;
3116
- submittedName?: string;
3117
- resolvedName?: string;
3118
- warnings?: {
3119
- undeclaredFields?: Array<string>;
3120
- undeclaredFieldsTruncated?: true;
3121
- totalUndeclared?: number;
3122
- coalescedWrefs?: Array<{
3123
- fieldPath: string;
3124
- wref: string;
3125
- reason: string;
3126
- }>;
3127
- coalescedWrefsTruncated?: true;
3128
- totalCoalescedWrefs?: number;
3129
- deprecations?: Array<{
3130
- shape: string;
3131
- message: string;
3132
- removalMilestone: string;
3133
- }>;
3134
- ignoredVersionPins?: Array<{
3135
- fieldPath: string;
3136
- wref: string;
3137
- binding: 'identity';
3138
- }>;
3139
- shapeless?: true;
3140
- };
3141
- affirmations?: {
3142
- added: Array<string>;
3143
- removed: Array<string>;
3144
- ignored: Array<string>;
3145
- };
3146
- status: 'applied' | 'noop';
3147
- version?: number;
3148
- dataHash?: string;
3149
- type: 'result';
3150
- chunkOrdinal: number;
3151
- submissionIndex: number;
3152
- } | {
3153
- opIndex: number;
3154
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3155
- name: string;
3156
- submittedName?: string;
3157
- resolvedName?: string;
3158
- warnings?: {
3159
- undeclaredFields?: Array<string>;
3160
- undeclaredFieldsTruncated?: true;
3161
- totalUndeclared?: number;
3162
- coalescedWrefs?: Array<{
3163
- fieldPath: string;
3164
- wref: string;
3165
- reason: string;
3166
- }>;
3167
- coalescedWrefsTruncated?: true;
3168
- totalCoalescedWrefs?: number;
3169
- deprecations?: Array<{
3170
- shape: string;
3171
- message: string;
3172
- removalMilestone: string;
3173
- }>;
3174
- ignoredVersionPins?: Array<{
3175
- fieldPath: string;
3176
- wref: string;
3177
- binding: 'identity';
3178
- }>;
3179
- shapeless?: true;
3180
- };
3181
- affirmations?: {
3182
- added: Array<string>;
3183
- removed: Array<string>;
3184
- ignored: Array<string>;
3185
- };
3186
- status: 'error';
3187
- errors: Array<{
3188
- code: string;
3189
- message: string;
3190
- path?: string;
3191
- details?: {
3192
- reason: 'expected_version_mismatch';
3193
- expectedVersion: number;
3194
- currentVersion: number;
3195
- } | {
3196
- reason: 'lease_held';
3197
- leaseExpiresAt: string;
3198
- } | {
3199
- reason: 'validation_failed';
3200
- issues: Array<{
3201
- path: string;
3202
- message: string;
3203
- }>;
3204
- } | {
3205
- reason: 'rate_limit_reset';
3206
- retryAfterSeconds: number;
3207
- resetAt: string;
3208
- } | {
3209
- reason: 'cursor_fence_unavailable';
3210
- cause: 'not_ready' | 'below_floor' | 'above_head';
3211
- retryFromStart: true;
3212
- } | {
3213
- reason: 'dependency_failed';
3214
- producerOpIndexes: Array<number>;
3215
- } | {
3216
- reason: 'name_taken';
3217
- name: string;
3218
- takenBy?: {
3219
- durableId: string;
3220
- };
3221
- } | {
3222
- reason: 'target_removed';
3223
- targetDurableId: string;
3224
- fieldPath?: string;
3225
- } | {
3226
- reason: 'target_redacted';
3227
- targetDurableId: string;
3228
- fieldPath?: string;
3229
- } | {
3230
- reason: 'legacy-wrefs-window-ended';
3231
- } | {
3232
- reason: 'invalid_token';
3233
- };
3234
- retryable?: boolean;
3235
- }>;
3236
- type: 'result';
3237
- chunkOrdinal: number;
3238
- submissionIndex: number;
3239
- } | {
3240
- type: 'group';
3241
- chunkOrdinal: number;
3242
- eventRequestId: string;
3243
- requestDigest: string;
3244
- outcome: 'event' | 'no_event';
3245
- repoSeq?: number;
3246
- operations: {
3247
- applied: number;
3248
- noop: number;
3249
- failed: number;
3250
- };
3251
- manifestDigest: string;
3252
- } | {
3253
- type: 'summary';
3254
- submissionId: string;
3255
- streamId: string;
3256
- groupSize: number;
3257
- groups: number;
3258
- operations: {
3259
- applied: number;
3260
- noop: number;
3261
- failed: number;
3262
- total: number;
3263
- };
3264
- repoSeq: {
3265
- first: number | null;
3266
- last: number | null;
3267
- };
3268
- verdict: string;
3269
- durationMs: number;
3270
- truncatedAt?: {
3271
- lineNumber: number;
3272
- message: string;
3273
- };
3274
- manifest: {
3275
- groups: number;
3276
- digest: string;
3277
- };
3278
- } | {
3279
- type: 'error';
3280
- code: string;
3281
- message?: string;
3282
- };
3283
- type CommitApplyCompatibilityResult$1 = {
3284
- event: {
3285
- committedAt: string;
3286
- eventDigest: string;
3287
- operationCount: number;
3288
- repo: {
3289
- orgName: string;
3290
- repoName: string;
3291
- };
3292
- repoSeq: string;
3293
- } | null;
3294
- eventRequestId: string;
3295
- outcome: 'event' | 'no_event';
3296
- requestDigest: string;
3297
- schemaVersion: 'operation-event-receipt/v1';
3298
- submissionId?: string;
3299
- pruned?: true;
3300
- committer?: string;
3301
- createdByEmail?: string;
3302
- message?: string;
3303
- operationCount: number;
3304
- repoSeq?: number;
3305
- operations: Array<{
3306
- opIndex?: number;
3307
- name: string;
3308
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3309
- version: number;
3310
- dataHash: string;
3311
- status?: 'applied' | 'noop';
3312
- affirmations?: {
3313
- added: Array<string>;
3314
- removed: Array<string>;
3315
- ignored: Array<string>;
3316
- };
3317
- warnings?: {
3318
- undeclaredFields?: Array<string>;
3319
- undeclaredFieldsTruncated?: true;
3320
- totalUndeclared?: number;
3321
- coalescedWrefs?: Array<{
3322
- fieldPath: string;
3323
- wref: string;
3324
- reason: string;
3325
- }>;
3326
- coalescedWrefsTruncated?: true;
3327
- totalCoalescedWrefs?: number;
3328
- ignoredVersionPins?: Array<{
3329
- fieldPath: string;
3330
- wref: string;
3331
- binding: 'identity';
3332
- }>;
3333
- deprecations?: Array<{
3334
- shape: string;
3335
- message: string;
3336
- removalMilestone: string;
3337
- }>;
3338
- };
3339
- }>;
3340
- receipt: {
3341
- event: {
3342
- committedAt: string;
3343
- eventDigest: string;
3344
- operationCount: number;
3345
- repo: {
3346
- orgName: string;
3347
- repoName: string;
3348
- };
3349
- repoSeq: string;
3350
- } | null;
3351
- eventRequestId: string;
3352
- operations: Array<{
3353
- opIndex?: number;
3354
- name: string;
3355
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3356
- version: number;
3357
- dataHash: string;
3358
- status?: 'applied' | 'noop';
3359
- affirmations?: {
3360
- added: Array<string>;
3361
- removed: Array<string>;
3362
- ignored: Array<string>;
3363
- };
3364
- warnings?: {
3365
- undeclaredFields?: Array<string>;
3366
- undeclaredFieldsTruncated?: true;
3367
- totalUndeclared?: number;
3368
- coalescedWrefs?: Array<{
3369
- fieldPath: string;
3370
- wref: string;
3371
- reason: string;
3372
- }>;
3373
- coalescedWrefsTruncated?: true;
3374
- totalCoalescedWrefs?: number;
3375
- ignoredVersionPins?: Array<{
3376
- fieldPath: string;
3377
- wref: string;
3378
- binding: 'identity';
3379
- }>;
3380
- deprecations?: Array<{
3381
- shape: string;
3382
- message: string;
3383
- removalMilestone: string;
3384
- }>;
3385
- };
3386
- } | {
3387
- opIndex?: number;
3388
- name: string;
3389
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3390
- version?: number;
3391
- dataHash?: string;
3392
- status?: 'success' | 'noop' | 'failed';
3393
- error?: {
3394
- code: string;
3395
- message: string;
3396
- details?: {
3397
- reason: 'expected_version_mismatch';
3398
- expectedVersion: number;
3399
- currentVersion: number;
3400
- } | {
3401
- reason: 'lease_held';
3402
- leaseExpiresAt: string;
3403
- } | {
3404
- reason: 'validation_failed';
3405
- issues: Array<{
3406
- path: string;
3407
- message: string;
3408
- }>;
3409
- } | {
3410
- reason: 'rate_limit_reset';
3411
- retryAfterSeconds: number;
3412
- resetAt: string;
3413
- } | {
3414
- reason: 'cursor_fence_unavailable';
3415
- cause: 'not_ready' | 'below_floor' | 'above_head';
3416
- retryFromStart: true;
3417
- };
3418
- };
3419
- resolvedName?: string;
3420
- retryable?: boolean;
3421
- warnings?: {
3422
- undeclaredFields?: Array<string>;
3423
- undeclaredFieldsTruncated?: true;
3424
- totalUndeclared?: number;
3425
- coalescedWrefs?: Array<{
3426
- fieldPath: string;
3427
- wref: string;
3428
- reason: string;
3429
- }>;
3430
- coalescedWrefsTruncated?: true;
3431
- totalCoalescedWrefs?: number;
3432
- ignoredVersionPins?: Array<{
3433
- fieldPath: string;
3434
- wref: string;
3435
- binding: 'identity';
3436
- }>;
3437
- deprecations?: Array<{
3438
- shape: string;
3439
- message: string;
3440
- removalMilestone: string;
3441
- }>;
3442
- };
3443
- affirmations?: {
3444
- added: Array<string>;
3445
- removed: Array<string>;
3446
- ignored: Array<string>;
3447
- };
3448
- }>;
3449
- outcome: 'event' | 'no_event';
3450
- requestDigest: string;
3451
- schemaVersion: 'operation-event-receipt/v1';
3452
- submissionId?: string;
3453
- pruned?: true;
3454
- };
3455
- } | {
3456
- event: {
3457
- committedAt: string;
3458
- eventDigest: string;
3459
- operationCount: number;
3460
- repo: {
3461
- orgName: string;
3462
- repoName: string;
3463
- };
3464
- repoSeq: string;
3465
- } | null;
3466
- eventRequestId: string;
3467
- outcome: 'event' | 'no_event';
3468
- requestDigest: string;
3469
- schemaVersion: 'operation-event-receipt/v2';
3470
- submissionId?: string;
3471
- pruned?: true;
3472
- committer?: string;
3473
- createdByEmail?: string;
3474
- message?: string;
3475
- operationCount: number;
3476
- repoSeq?: number;
3477
- operations: Array<{
3478
- opIndex: number;
3479
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3480
- name: string;
3481
- submittedName?: string;
3482
- resolvedName?: string;
3483
- warnings?: {
3484
- undeclaredFields?: Array<string>;
3485
- undeclaredFieldsTruncated?: true;
3486
- totalUndeclared?: number;
3487
- coalescedWrefs?: Array<{
3488
- fieldPath: string;
3489
- wref: string;
3490
- reason: string;
3491
- }>;
3492
- coalescedWrefsTruncated?: true;
3493
- totalCoalescedWrefs?: number;
3494
- deprecations?: Array<{
3495
- shape: string;
3496
- message: string;
3497
- removalMilestone: string;
3498
- }>;
3499
- ignoredVersionPins?: Array<{
3500
- fieldPath: string;
3501
- wref: string;
3502
- binding: 'identity';
3503
- }>;
3504
- shapeless?: true;
3505
- };
3506
- affirmations?: {
3507
- added: Array<string>;
3508
- removed: Array<string>;
3509
- ignored: Array<string>;
3510
- };
3511
- status: 'applied' | 'noop';
3512
- version?: number;
3513
- dataHash?: string;
3514
- } | {
3515
- opIndex: number;
3516
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3517
- name: string;
3518
- submittedName?: string;
3519
- resolvedName?: string;
3520
- warnings?: {
3521
- undeclaredFields?: Array<string>;
3522
- undeclaredFieldsTruncated?: true;
3523
- totalUndeclared?: number;
3524
- coalescedWrefs?: Array<{
3525
- fieldPath: string;
3526
- wref: string;
3527
- reason: string;
3528
- }>;
3529
- coalescedWrefsTruncated?: true;
3530
- totalCoalescedWrefs?: number;
3531
- deprecations?: Array<{
3532
- shape: string;
3533
- message: string;
3534
- removalMilestone: string;
3535
- }>;
3536
- ignoredVersionPins?: Array<{
3537
- fieldPath: string;
3538
- wref: string;
3539
- binding: 'identity';
3540
- }>;
3541
- shapeless?: true;
3542
- };
3543
- affirmations?: {
3544
- added: Array<string>;
3545
- removed: Array<string>;
3546
- ignored: Array<string>;
3547
- };
3548
- status: 'error';
3549
- errors: Array<{
3550
- code: string;
3551
- message: string;
3552
- path?: string;
3553
- details?: {
3554
- reason: 'expected_version_mismatch';
3555
- expectedVersion: number;
3556
- currentVersion: number;
3557
- } | {
3558
- reason: 'lease_held';
3559
- leaseExpiresAt: string;
3560
- } | {
3561
- reason: 'validation_failed';
3562
- issues: Array<{
3563
- path: string;
3564
- message: string;
3565
- }>;
3566
- } | {
3567
- reason: 'rate_limit_reset';
3568
- retryAfterSeconds: number;
3569
- resetAt: string;
3570
- } | {
3571
- reason: 'cursor_fence_unavailable';
3572
- cause: 'not_ready' | 'below_floor' | 'above_head';
3573
- retryFromStart: true;
3574
- } | {
3575
- reason: 'dependency_failed';
3576
- producerOpIndexes: Array<number>;
3577
- } | {
3578
- reason: 'name_taken';
3579
- name: string;
3580
- takenBy?: {
3581
- durableId: string;
3582
- };
3583
- } | {
3584
- reason: 'target_removed';
3585
- targetDurableId: string;
3586
- fieldPath?: string;
3587
- } | {
3588
- reason: 'target_redacted';
3589
- targetDurableId: string;
3590
- fieldPath?: string;
3591
- } | {
3592
- reason: 'legacy-wrefs-window-ended';
3593
- } | {
3594
- reason: 'invalid_token';
3595
- };
3596
- retryable?: boolean;
3597
- }>;
3598
- }>;
3599
- receipt: {
3600
- event: {
3601
- committedAt: string;
3602
- eventDigest: string;
3603
- operationCount: number;
3604
- repo: {
3605
- orgName: string;
3606
- repoName: string;
3607
- };
3608
- repoSeq: string;
3609
- } | null;
3610
- eventRequestId: string;
3611
- operations: Array<{
3612
- opIndex: number;
3613
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3614
- name: string;
3615
- submittedName?: string;
3616
- resolvedName?: string;
3617
- warnings?: {
3618
- undeclaredFields?: Array<string>;
3619
- undeclaredFieldsTruncated?: true;
3620
- totalUndeclared?: number;
3621
- coalescedWrefs?: Array<{
3622
- fieldPath: string;
3623
- wref: string;
3624
- reason: string;
3625
- }>;
3626
- coalescedWrefsTruncated?: true;
3627
- totalCoalescedWrefs?: number;
3628
- deprecations?: Array<{
3629
- shape: string;
3630
- message: string;
3631
- removalMilestone: string;
3632
- }>;
3633
- ignoredVersionPins?: Array<{
3634
- fieldPath: string;
3635
- wref: string;
3636
- binding: 'identity';
3637
- }>;
3638
- shapeless?: true;
3639
- };
3640
- affirmations?: {
3641
- added: Array<string>;
3642
- removed: Array<string>;
3643
- ignored: Array<string>;
3644
- };
3645
- status: 'applied' | 'noop';
3646
- version?: number;
3647
- dataHash?: string;
3648
- } | {
3649
- opIndex: number;
3650
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3651
- name: string;
3652
- submittedName?: string;
3653
- resolvedName?: string;
3654
- warnings?: {
3655
- undeclaredFields?: Array<string>;
3656
- undeclaredFieldsTruncated?: true;
3657
- totalUndeclared?: number;
3658
- coalescedWrefs?: Array<{
3659
- fieldPath: string;
3660
- wref: string;
3661
- reason: string;
3662
- }>;
3663
- coalescedWrefsTruncated?: true;
3664
- totalCoalescedWrefs?: number;
3665
- deprecations?: Array<{
3666
- shape: string;
3667
- message: string;
3668
- removalMilestone: string;
3669
- }>;
3670
- ignoredVersionPins?: Array<{
3671
- fieldPath: string;
3672
- wref: string;
3673
- binding: 'identity';
3674
- }>;
3675
- shapeless?: true;
3676
- };
3677
- affirmations?: {
3678
- added: Array<string>;
3679
- removed: Array<string>;
3680
- ignored: Array<string>;
3681
- };
3682
- status: 'error';
3683
- errors: Array<{
3684
- code: string;
3685
- message: string;
3686
- path?: string;
3687
- details?: {
3688
- reason: 'expected_version_mismatch';
3689
- expectedVersion: number;
3690
- currentVersion: number;
3691
- } | {
3692
- reason: 'lease_held';
3693
- leaseExpiresAt: string;
3694
- } | {
3695
- reason: 'validation_failed';
3696
- issues: Array<{
3697
- path: string;
3698
- message: string;
3699
- }>;
3700
- } | {
3701
- reason: 'rate_limit_reset';
3702
- retryAfterSeconds: number;
3703
- resetAt: string;
3704
- } | {
3705
- reason: 'cursor_fence_unavailable';
3706
- cause: 'not_ready' | 'below_floor' | 'above_head';
3707
- retryFromStart: true;
3708
- } | {
3709
- reason: 'dependency_failed';
3710
- producerOpIndexes: Array<number>;
3711
- } | {
3712
- reason: 'name_taken';
3713
- name: string;
3714
- takenBy?: {
3715
- durableId: string;
3716
- };
3717
- } | {
3718
- reason: 'target_removed';
3719
- targetDurableId: string;
3720
- fieldPath?: string;
3721
- } | {
3722
- reason: 'target_redacted';
3723
- targetDurableId: string;
3724
- fieldPath?: string;
3725
- } | {
3726
- reason: 'legacy-wrefs-window-ended';
3727
- } | {
3728
- reason: 'invalid_token';
3729
- };
3730
- retryable?: boolean;
3731
- }>;
3732
- }>;
3733
- outcome: 'event' | 'no_event';
3734
- requestDigest: string;
3735
- schemaVersion: 'operation-event-receipt/v2';
3736
- submissionId?: string;
3737
- pruned?: true;
3738
- };
3739
- };
3740
- type CollectionMutationCompatibilityResult = {
3741
- event: {
3742
- committedAt: string;
3743
- eventDigest: string;
3744
- operationCount: number;
3745
- repo: {
3746
- orgName: string;
3747
- repoName: string;
3748
- };
3749
- repoSeq: string;
3750
- } | null;
3751
- eventRequestId: string;
3752
- operations: Array<{
3753
- opIndex?: number;
3754
- name: string;
3755
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3756
- version: number;
3757
- dataHash: string;
3758
- status?: 'applied' | 'noop';
3759
1916
  affirmations?: {
3760
1917
  added: Array<string>;
3761
1918
  removed: Array<string>;
3762
1919
  ignored: Array<string>;
3763
1920
  };
3764
- warnings?: {
3765
- undeclaredFields?: Array<string>;
3766
- undeclaredFieldsTruncated?: true;
3767
- totalUndeclared?: number;
3768
- coalescedWrefs?: Array<{
3769
- fieldPath: string;
3770
- wref: string;
3771
- reason: string;
3772
- }>;
3773
- coalescedWrefsTruncated?: true;
3774
- totalCoalescedWrefs?: number;
3775
- ignoredVersionPins?: Array<{
3776
- fieldPath: string;
3777
- wref: string;
3778
- binding: 'identity';
3779
- }>;
3780
- deprecations?: Array<{
3781
- shape: string;
3782
- message: string;
3783
- removalMilestone: string;
3784
- }>;
3785
- };
3786
- } | {
3787
- opIndex?: number;
3788
- name: string;
3789
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3790
- version?: number;
3791
- dataHash?: string;
3792
- status?: 'success' | 'noop' | 'failed';
3793
- error?: {
1921
+ status: 'error';
1922
+ errors: Array<{
3794
1923
  code: string;
3795
1924
  message: string;
1925
+ path?: string;
3796
1926
  details?: {
3797
1927
  reason: 'expected_version_mismatch';
3798
1928
  expectedVersion: number;
@@ -3814,201 +1944,41 @@ type CollectionMutationCompatibilityResult = {
3814
1944
  reason: 'cursor_fence_unavailable';
3815
1945
  cause: 'not_ready' | 'below_floor' | 'above_head';
3816
1946
  retryFromStart: true;
3817
- };
3818
- };
3819
- resolvedName?: string;
3820
- retryable?: boolean;
3821
- warnings?: {
3822
- undeclaredFields?: Array<string>;
3823
- undeclaredFieldsTruncated?: true;
3824
- totalUndeclared?: number;
3825
- coalescedWrefs?: Array<{
3826
- fieldPath: string;
3827
- wref: string;
3828
- reason: string;
3829
- }>;
3830
- coalescedWrefsTruncated?: true;
3831
- totalCoalescedWrefs?: number;
3832
- ignoredVersionPins?: Array<{
3833
- fieldPath: string;
3834
- wref: string;
3835
- binding: 'identity';
3836
- }>;
3837
- deprecations?: Array<{
3838
- shape: string;
3839
- message: string;
3840
- removalMilestone: string;
3841
- }>;
3842
- };
3843
- affirmations?: {
3844
- added: Array<string>;
3845
- removed: Array<string>;
3846
- ignored: Array<string>;
3847
- };
3848
- }>;
3849
- outcome: 'event' | 'no_event';
3850
- requestDigest: string;
3851
- schemaVersion: 'operation-event-receipt/v1';
3852
- submissionId?: string;
3853
- pruned?: true;
3854
- type: 'arc' | 'bond' | 'set' | 'list' | 'pair';
3855
- wref: string;
3856
- version: number;
3857
- memberCount: number;
3858
- dataHash?: string;
3859
- operationCount: number;
3860
- status: 'created' | 'updated' | 'noop';
3861
- warnings?: {
3862
- undeclaredFields?: Array<string>;
3863
- undeclaredFieldsTruncated?: true;
3864
- totalUndeclared?: number;
3865
- coalescedWrefs?: Array<{
3866
- fieldPath: string;
3867
- wref: string;
3868
- reason: string;
3869
- }>;
3870
- coalescedWrefsTruncated?: true;
3871
- totalCoalescedWrefs?: number;
3872
- deprecations?: Array<{
3873
- shape: string;
3874
- message: string;
3875
- removalMilestone: string;
3876
- }>;
3877
- ignoredVersionPins?: Array<{
3878
- fieldPath: string;
3879
- wref: string;
3880
- binding: 'identity';
3881
- }>;
3882
- shapeless?: true;
3883
- };
3884
- receipt: {
3885
- event: {
3886
- committedAt: string;
3887
- eventDigest: string;
3888
- operationCount: number;
3889
- repo: {
3890
- orgName: string;
3891
- repoName: string;
3892
- };
3893
- repoSeq: string;
3894
- } | null;
3895
- eventRequestId: string;
3896
- operations: Array<{
3897
- opIndex?: number;
3898
- name: string;
3899
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3900
- version: number;
3901
- dataHash: string;
3902
- status?: 'applied' | 'noop';
3903
- affirmations?: {
3904
- added: Array<string>;
3905
- removed: Array<string>;
3906
- ignored: Array<string>;
3907
- };
3908
- warnings?: {
3909
- undeclaredFields?: Array<string>;
3910
- undeclaredFieldsTruncated?: true;
3911
- totalUndeclared?: number;
3912
- coalescedWrefs?: Array<{
3913
- fieldPath: string;
3914
- wref: string;
3915
- reason: string;
3916
- }>;
3917
- coalescedWrefsTruncated?: true;
3918
- totalCoalescedWrefs?: number;
3919
- ignoredVersionPins?: Array<{
3920
- fieldPath: string;
3921
- wref: string;
3922
- binding: 'identity';
3923
- }>;
3924
- deprecations?: Array<{
3925
- shape: string;
3926
- message: string;
3927
- removalMilestone: string;
3928
- }>;
3929
- };
3930
- } | {
3931
- opIndex?: number;
3932
- name: string;
3933
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3934
- version?: number;
3935
- dataHash?: string;
3936
- status?: 'success' | 'noop' | 'failed';
3937
- error?: {
3938
- code: string;
3939
- message: string;
3940
- details?: {
3941
- reason: 'expected_version_mismatch';
3942
- expectedVersion: number;
3943
- currentVersion: number;
3944
- } | {
3945
- reason: 'lease_held';
3946
- leaseExpiresAt: string;
3947
- } | {
3948
- reason: 'validation_failed';
3949
- issues: Array<{
3950
- path: string;
3951
- message: string;
3952
- }>;
3953
- } | {
3954
- reason: 'rate_limit_reset';
3955
- retryAfterSeconds: number;
3956
- resetAt: string;
3957
- } | {
3958
- reason: 'cursor_fence_unavailable';
3959
- cause: 'not_ready' | 'below_floor' | 'above_head';
3960
- retryFromStart: true;
3961
- };
3962
- };
3963
- resolvedName?: string;
3964
- retryable?: boolean;
3965
- warnings?: {
3966
- undeclaredFields?: Array<string>;
3967
- undeclaredFieldsTruncated?: true;
3968
- totalUndeclared?: number;
3969
- coalescedWrefs?: Array<{
3970
- fieldPath: string;
3971
- wref: string;
3972
- reason: string;
3973
- }>;
3974
- coalescedWrefsTruncated?: true;
3975
- totalCoalescedWrefs?: number;
3976
- ignoredVersionPins?: Array<{
3977
- fieldPath: string;
3978
- wref: string;
3979
- binding: 'identity';
3980
- }>;
3981
- deprecations?: Array<{
3982
- shape: string;
3983
- message: string;
3984
- removalMilestone: string;
3985
- }>;
3986
- };
3987
- affirmations?: {
3988
- added: Array<string>;
3989
- removed: Array<string>;
3990
- ignored: Array<string>;
3991
- };
3992
- }>;
3993
- outcome: 'event' | 'no_event';
3994
- requestDigest: string;
3995
- schemaVersion: 'operation-event-receipt/v1';
3996
- submissionId?: string;
3997
- pruned?: true;
3998
- };
3999
- } | {
4000
- event: {
4001
- committedAt: string;
4002
- eventDigest: string;
4003
- operationCount: number;
4004
- repo: {
4005
- orgName: string;
4006
- repoName: string;
4007
- };
4008
- repoSeq: string;
4009
- } | null;
4010
- eventRequestId: string;
4011
- operations: Array<{
1947
+ } | {
1948
+ reason: 'dependency_failed';
1949
+ producerOpIndexes: Array<number>;
1950
+ } | {
1951
+ reason: 'name_taken';
1952
+ name: string;
1953
+ takenBy?: {
1954
+ durableId: string;
1955
+ };
1956
+ } | {
1957
+ reason: 'target_removed';
1958
+ targetDurableId: string;
1959
+ fieldPath?: string;
1960
+ } | {
1961
+ reason: 'target_redacted';
1962
+ targetDurableId: string;
1963
+ fieldPath?: string;
1964
+ } | {
1965
+ reason: 'legacy-wrefs-window-ended';
1966
+ } | {
1967
+ reason: 'invalid_token';
1968
+ };
1969
+ retryable?: boolean;
1970
+ }>;
1971
+ }>;
1972
+ outcome: 'event' | 'no_event';
1973
+ requestDigest: string;
1974
+ schemaVersion: 'operation-event-receipt/v2';
1975
+ submissionId?: string;
1976
+ pruned?: true;
1977
+ allocatedTokenRanges: Array<{
1978
+ start: number;
1979
+ end: number;
1980
+ }>;
1981
+ results: Array<{
4012
1982
  opIndex: number;
4013
1983
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
4014
1984
  name: string;
@@ -4130,40 +2100,30 @@ type CollectionMutationCompatibilityResult = {
4130
2100
  retryable?: boolean;
4131
2101
  }>;
4132
2102
  }>;
4133
- outcome: 'event' | 'no_event';
4134
- requestDigest: string;
4135
- schemaVersion: 'operation-event-receipt/v2';
4136
- submissionId?: string;
4137
- pruned?: true;
4138
- type: 'arc' | 'bond' | 'set' | 'list' | 'pair';
4139
- wref: string;
4140
- version: number;
4141
- memberCount: number;
4142
- dataHash?: string;
4143
- operationCount: number;
4144
- status: 'created' | 'updated' | 'noop';
4145
- warnings?: {
4146
- undeclaredFields?: Array<string>;
4147
- undeclaredFieldsTruncated?: true;
4148
- totalUndeclared?: number;
4149
- coalescedWrefs?: Array<{
4150
- fieldPath: string;
4151
- wref: string;
4152
- reason: string;
4153
- }>;
4154
- coalescedWrefsTruncated?: true;
4155
- totalCoalescedWrefs?: number;
4156
- deprecations?: Array<{
4157
- shape: string;
4158
- message: string;
4159
- removalMilestone: string;
4160
- }>;
4161
- ignoredVersionPins?: Array<{
4162
- fieldPath: string;
4163
- wref: string;
4164
- binding: 'identity';
4165
- }>;
4166
- shapeless?: true;
2103
+ repoSeq?: number;
2104
+ createdByEmail?: string;
2105
+ appendTotalMs?: number;
2106
+ appendResolveRepoMs?: number;
2107
+ appendApplyMs?: number;
2108
+ applySubphases?: {
2109
+ addThingMs?: number;
2110
+ addAssertionMs?: number;
2111
+ addAssertionResolveAboutMs?: number;
2112
+ reviseThingMs?: number;
2113
+ reviseAssertionMs?: number;
2114
+ reviseCollectionMs?: number;
2115
+ preparePinnedLoadShapeFieldsMs?: number;
2116
+ preparePinnedPinWrefsMs?: number;
2117
+ preparePinnedValidateMs?: number;
2118
+ operationLoopMs?: number;
2119
+ persistMs?: number;
2120
+ persistThingsMs?: number;
2121
+ persistVersionsMs?: number;
2122
+ persistAssertionsMs?: number;
2123
+ persistUpdatesMs?: number;
2124
+ persistOutboxMs?: number;
2125
+ refInsertMs?: number;
2126
+ refSourceCount?: number;
4167
2127
  };
4168
2128
  receipt: {
4169
2129
  event: {
@@ -4306,7 +2266,178 @@ type CollectionMutationCompatibilityResult = {
4306
2266
  pruned?: true;
4307
2267
  };
4308
2268
  };
4309
- type RemoveCompatibilityResult = {
2269
+ type StreamingSubmissionRow$1 = {
2270
+ opIndex: number;
2271
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2272
+ name: string;
2273
+ submittedName?: string;
2274
+ resolvedName?: string;
2275
+ warnings?: {
2276
+ undeclaredFields?: Array<string>;
2277
+ undeclaredFieldsTruncated?: true;
2278
+ totalUndeclared?: number;
2279
+ coalescedWrefs?: Array<{
2280
+ fieldPath: string;
2281
+ wref: string;
2282
+ reason: string;
2283
+ }>;
2284
+ coalescedWrefsTruncated?: true;
2285
+ totalCoalescedWrefs?: number;
2286
+ deprecations?: Array<{
2287
+ shape: string;
2288
+ message: string;
2289
+ removalMilestone: string;
2290
+ }>;
2291
+ ignoredVersionPins?: Array<{
2292
+ fieldPath: string;
2293
+ wref: string;
2294
+ binding: 'identity';
2295
+ }>;
2296
+ shapeless?: true;
2297
+ };
2298
+ affirmations?: {
2299
+ added: Array<string>;
2300
+ removed: Array<string>;
2301
+ ignored: Array<string>;
2302
+ };
2303
+ status: 'applied' | 'noop';
2304
+ version?: number;
2305
+ dataHash?: string;
2306
+ type: 'result';
2307
+ chunkOrdinal: number;
2308
+ submissionIndex: number;
2309
+ } | {
2310
+ opIndex: number;
2311
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2312
+ name: string;
2313
+ submittedName?: string;
2314
+ resolvedName?: string;
2315
+ warnings?: {
2316
+ undeclaredFields?: Array<string>;
2317
+ undeclaredFieldsTruncated?: true;
2318
+ totalUndeclared?: number;
2319
+ coalescedWrefs?: Array<{
2320
+ fieldPath: string;
2321
+ wref: string;
2322
+ reason: string;
2323
+ }>;
2324
+ coalescedWrefsTruncated?: true;
2325
+ totalCoalescedWrefs?: number;
2326
+ deprecations?: Array<{
2327
+ shape: string;
2328
+ message: string;
2329
+ removalMilestone: string;
2330
+ }>;
2331
+ ignoredVersionPins?: Array<{
2332
+ fieldPath: string;
2333
+ wref: string;
2334
+ binding: 'identity';
2335
+ }>;
2336
+ shapeless?: true;
2337
+ };
2338
+ affirmations?: {
2339
+ added: Array<string>;
2340
+ removed: Array<string>;
2341
+ ignored: Array<string>;
2342
+ };
2343
+ status: 'error';
2344
+ errors: Array<{
2345
+ code: string;
2346
+ message: string;
2347
+ path?: string;
2348
+ details?: {
2349
+ reason: 'expected_version_mismatch';
2350
+ expectedVersion: number;
2351
+ currentVersion: number;
2352
+ } | {
2353
+ reason: 'lease_held';
2354
+ leaseExpiresAt: string;
2355
+ } | {
2356
+ reason: 'validation_failed';
2357
+ issues: Array<{
2358
+ path: string;
2359
+ message: string;
2360
+ }>;
2361
+ } | {
2362
+ reason: 'rate_limit_reset';
2363
+ retryAfterSeconds: number;
2364
+ resetAt: string;
2365
+ } | {
2366
+ reason: 'cursor_fence_unavailable';
2367
+ cause: 'not_ready' | 'below_floor' | 'above_head';
2368
+ retryFromStart: true;
2369
+ } | {
2370
+ reason: 'dependency_failed';
2371
+ producerOpIndexes: Array<number>;
2372
+ } | {
2373
+ reason: 'name_taken';
2374
+ name: string;
2375
+ takenBy?: {
2376
+ durableId: string;
2377
+ };
2378
+ } | {
2379
+ reason: 'target_removed';
2380
+ targetDurableId: string;
2381
+ fieldPath?: string;
2382
+ } | {
2383
+ reason: 'target_redacted';
2384
+ targetDurableId: string;
2385
+ fieldPath?: string;
2386
+ } | {
2387
+ reason: 'legacy-wrefs-window-ended';
2388
+ } | {
2389
+ reason: 'invalid_token';
2390
+ };
2391
+ retryable?: boolean;
2392
+ }>;
2393
+ type: 'result';
2394
+ chunkOrdinal: number;
2395
+ submissionIndex: number;
2396
+ } | {
2397
+ type: 'group';
2398
+ chunkOrdinal: number;
2399
+ eventRequestId: string;
2400
+ requestDigest: string;
2401
+ outcome: 'event' | 'no_event';
2402
+ repoSeq?: number;
2403
+ operations: {
2404
+ applied: number;
2405
+ noop: number;
2406
+ failed: number;
2407
+ };
2408
+ manifestDigest: string;
2409
+ } | {
2410
+ type: 'summary';
2411
+ submissionId: string;
2412
+ streamId: string;
2413
+ groupSize: number;
2414
+ groups: number;
2415
+ operations: {
2416
+ applied: number;
2417
+ noop: number;
2418
+ failed: number;
2419
+ total: number;
2420
+ };
2421
+ repoSeq: {
2422
+ first: number | null;
2423
+ last: number | null;
2424
+ };
2425
+ verdict: string;
2426
+ durationMs: number;
2427
+ truncatedAt?: {
2428
+ lineNumber: number;
2429
+ message: string;
2430
+ };
2431
+ manifest: {
2432
+ groups: number;
2433
+ digest: string;
2434
+ };
2435
+ } | {
2436
+ type: 'error';
2437
+ code: string;
2438
+ message?: string;
2439
+ };
2440
+ type CommitApplyCompatibilityResult$1 = {
4310
2441
  event: {
4311
2442
  committedAt: string;
4312
2443
  eventDigest: string;
@@ -4318,6 +2449,16 @@ type RemoveCompatibilityResult = {
4318
2449
  repoSeq: string;
4319
2450
  } | null;
4320
2451
  eventRequestId: string;
2452
+ outcome: 'event' | 'no_event';
2453
+ requestDigest: string;
2454
+ schemaVersion: 'operation-event-receipt/v2';
2455
+ submissionId?: string;
2456
+ pruned?: true;
2457
+ committer?: string;
2458
+ createdByEmail?: string;
2459
+ message?: string;
2460
+ operationCount: number;
2461
+ repoSeq?: number;
4321
2462
  operations: Array<{
4322
2463
  opIndex: number;
4323
2464
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -4440,12 +2581,6 @@ type RemoveCompatibilityResult = {
4440
2581
  retryable?: boolean;
4441
2582
  }>;
4442
2583
  }>;
4443
- outcome: 'event' | 'no_event';
4444
- requestDigest: string;
4445
- schemaVersion: 'operation-event-receipt/v2';
4446
- submissionId?: string;
4447
- pruned?: true;
4448
- removed: true;
4449
2584
  receipt: {
4450
2585
  event: {
4451
2586
  committedAt: string;
@@ -4587,7 +2722,7 @@ type RemoveCompatibilityResult = {
4587
2722
  pruned?: true;
4588
2723
  };
4589
2724
  };
4590
- type RenameCompatibilityResult = {
2725
+ type CollectionMutationCompatibilityResult = {
4591
2726
  event: {
4592
2727
  committedAt: string;
4593
2728
  eventDigest: string;
@@ -4600,17 +2735,11 @@ type RenameCompatibilityResult = {
4600
2735
  } | null;
4601
2736
  eventRequestId: string;
4602
2737
  operations: Array<{
4603
- opIndex?: number;
2738
+ opIndex: number;
2739
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
4604
2740
  name: string;
4605
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4606
- version: number;
4607
- dataHash: string;
4608
- status?: 'applied' | 'noop';
4609
- affirmations?: {
4610
- added: Array<string>;
4611
- removed: Array<string>;
4612
- ignored: Array<string>;
4613
- };
2741
+ submittedName?: string;
2742
+ resolvedName?: string;
4614
2743
  warnings?: {
4615
2744
  undeclaredFields?: Array<string>;
4616
2745
  undeclaredFieldsTruncated?: true;
@@ -4622,27 +2751,65 @@ type RenameCompatibilityResult = {
4622
2751
  }>;
4623
2752
  coalescedWrefsTruncated?: true;
4624
2753
  totalCoalescedWrefs?: number;
2754
+ deprecations?: Array<{
2755
+ shape: string;
2756
+ message: string;
2757
+ removalMilestone: string;
2758
+ }>;
4625
2759
  ignoredVersionPins?: Array<{
4626
2760
  fieldPath: string;
4627
2761
  wref: string;
4628
2762
  binding: 'identity';
4629
2763
  }>;
2764
+ shapeless?: true;
2765
+ };
2766
+ affirmations?: {
2767
+ added: Array<string>;
2768
+ removed: Array<string>;
2769
+ ignored: Array<string>;
2770
+ };
2771
+ status: 'applied' | 'noop';
2772
+ version?: number;
2773
+ dataHash?: string;
2774
+ } | {
2775
+ opIndex: number;
2776
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2777
+ name: string;
2778
+ submittedName?: string;
2779
+ resolvedName?: string;
2780
+ warnings?: {
2781
+ undeclaredFields?: Array<string>;
2782
+ undeclaredFieldsTruncated?: true;
2783
+ totalUndeclared?: number;
2784
+ coalescedWrefs?: Array<{
2785
+ fieldPath: string;
2786
+ wref: string;
2787
+ reason: string;
2788
+ }>;
2789
+ coalescedWrefsTruncated?: true;
2790
+ totalCoalescedWrefs?: number;
4630
2791
  deprecations?: Array<{
4631
2792
  shape: string;
4632
2793
  message: string;
4633
2794
  removalMilestone: string;
4634
2795
  }>;
2796
+ ignoredVersionPins?: Array<{
2797
+ fieldPath: string;
2798
+ wref: string;
2799
+ binding: 'identity';
2800
+ }>;
2801
+ shapeless?: true;
4635
2802
  };
4636
- } | {
4637
- opIndex?: number;
4638
- name: string;
4639
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4640
- version?: number;
4641
- dataHash?: string;
4642
- status?: 'success' | 'noop' | 'failed';
4643
- error?: {
2803
+ affirmations?: {
2804
+ added: Array<string>;
2805
+ removed: Array<string>;
2806
+ ignored: Array<string>;
2807
+ };
2808
+ status: 'error';
2809
+ errors: Array<{
4644
2810
  code: string;
4645
2811
  message: string;
2812
+ path?: string;
4646
2813
  details?: {
4647
2814
  reason: 'expected_version_mismatch';
4648
2815
  expectedVersion: number;
@@ -4664,44 +2831,66 @@ type RenameCompatibilityResult = {
4664
2831
  reason: 'cursor_fence_unavailable';
4665
2832
  cause: 'not_ready' | 'below_floor' | 'above_head';
4666
2833
  retryFromStart: true;
2834
+ } | {
2835
+ reason: 'dependency_failed';
2836
+ producerOpIndexes: Array<number>;
2837
+ } | {
2838
+ reason: 'name_taken';
2839
+ name: string;
2840
+ takenBy?: {
2841
+ durableId: string;
2842
+ };
2843
+ } | {
2844
+ reason: 'target_removed';
2845
+ targetDurableId: string;
2846
+ fieldPath?: string;
2847
+ } | {
2848
+ reason: 'target_redacted';
2849
+ targetDurableId: string;
2850
+ fieldPath?: string;
2851
+ } | {
2852
+ reason: 'legacy-wrefs-window-ended';
2853
+ } | {
2854
+ reason: 'invalid_token';
4667
2855
  };
4668
- };
4669
- resolvedName?: string;
4670
- retryable?: boolean;
4671
- warnings?: {
4672
- undeclaredFields?: Array<string>;
4673
- undeclaredFieldsTruncated?: true;
4674
- totalUndeclared?: number;
4675
- coalescedWrefs?: Array<{
4676
- fieldPath: string;
4677
- wref: string;
4678
- reason: string;
4679
- }>;
4680
- coalescedWrefsTruncated?: true;
4681
- totalCoalescedWrefs?: number;
4682
- ignoredVersionPins?: Array<{
4683
- fieldPath: string;
4684
- wref: string;
4685
- binding: 'identity';
4686
- }>;
4687
- deprecations?: Array<{
4688
- shape: string;
4689
- message: string;
4690
- removalMilestone: string;
4691
- }>;
4692
- };
4693
- affirmations?: {
4694
- added: Array<string>;
4695
- removed: Array<string>;
4696
- ignored: Array<string>;
4697
- };
2856
+ retryable?: boolean;
2857
+ }>;
4698
2858
  }>;
4699
2859
  outcome: 'event' | 'no_event';
4700
2860
  requestDigest: string;
4701
- schemaVersion: 'operation-event-receipt/v1';
2861
+ schemaVersion: 'operation-event-receipt/v2';
4702
2862
  submissionId?: string;
4703
2863
  pruned?: true;
4704
- renamed: true;
2864
+ type?: 'arc' | 'bond' | 'set' | 'list' | 'pair';
2865
+ wref?: string;
2866
+ version?: number;
2867
+ memberCount?: number;
2868
+ dataHash?: string;
2869
+ operationCount?: number;
2870
+ status?: 'created' | 'updated' | 'noop';
2871
+ warnings?: {
2872
+ undeclaredFields?: Array<string>;
2873
+ undeclaredFieldsTruncated?: true;
2874
+ totalUndeclared?: number;
2875
+ coalescedWrefs?: Array<{
2876
+ fieldPath: string;
2877
+ wref: string;
2878
+ reason: string;
2879
+ }>;
2880
+ coalescedWrefsTruncated?: true;
2881
+ totalCoalescedWrefs?: number;
2882
+ deprecations?: Array<{
2883
+ shape: string;
2884
+ message: string;
2885
+ removalMilestone: string;
2886
+ }>;
2887
+ ignoredVersionPins?: Array<{
2888
+ fieldPath: string;
2889
+ wref: string;
2890
+ binding: 'identity';
2891
+ }>;
2892
+ shapeless?: true;
2893
+ };
4705
2894
  receipt: {
4706
2895
  event: {
4707
2896
  committedAt: string;
@@ -4715,17 +2904,11 @@ type RenameCompatibilityResult = {
4715
2904
  } | null;
4716
2905
  eventRequestId: string;
4717
2906
  operations: Array<{
4718
- opIndex?: number;
2907
+ opIndex: number;
2908
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
4719
2909
  name: string;
4720
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4721
- version: number;
4722
- dataHash: string;
4723
- status?: 'applied' | 'noop';
4724
- affirmations?: {
4725
- added: Array<string>;
4726
- removed: Array<string>;
4727
- ignored: Array<string>;
4728
- };
2910
+ submittedName?: string;
2911
+ resolvedName?: string;
4729
2912
  warnings?: {
4730
2913
  undeclaredFields?: Array<string>;
4731
2914
  undeclaredFieldsTruncated?: true;
@@ -4737,27 +2920,65 @@ type RenameCompatibilityResult = {
4737
2920
  }>;
4738
2921
  coalescedWrefsTruncated?: true;
4739
2922
  totalCoalescedWrefs?: number;
2923
+ deprecations?: Array<{
2924
+ shape: string;
2925
+ message: string;
2926
+ removalMilestone: string;
2927
+ }>;
4740
2928
  ignoredVersionPins?: Array<{
4741
2929
  fieldPath: string;
4742
2930
  wref: string;
4743
2931
  binding: 'identity';
4744
2932
  }>;
2933
+ shapeless?: true;
2934
+ };
2935
+ affirmations?: {
2936
+ added: Array<string>;
2937
+ removed: Array<string>;
2938
+ ignored: Array<string>;
2939
+ };
2940
+ status: 'applied' | 'noop';
2941
+ version?: number;
2942
+ dataHash?: string;
2943
+ } | {
2944
+ opIndex: number;
2945
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2946
+ name: string;
2947
+ submittedName?: string;
2948
+ resolvedName?: string;
2949
+ warnings?: {
2950
+ undeclaredFields?: Array<string>;
2951
+ undeclaredFieldsTruncated?: true;
2952
+ totalUndeclared?: number;
2953
+ coalescedWrefs?: Array<{
2954
+ fieldPath: string;
2955
+ wref: string;
2956
+ reason: string;
2957
+ }>;
2958
+ coalescedWrefsTruncated?: true;
2959
+ totalCoalescedWrefs?: number;
4745
2960
  deprecations?: Array<{
4746
2961
  shape: string;
4747
2962
  message: string;
4748
2963
  removalMilestone: string;
4749
2964
  }>;
2965
+ ignoredVersionPins?: Array<{
2966
+ fieldPath: string;
2967
+ wref: string;
2968
+ binding: 'identity';
2969
+ }>;
2970
+ shapeless?: true;
4750
2971
  };
4751
- } | {
4752
- opIndex?: number;
4753
- name: string;
4754
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4755
- version?: number;
4756
- dataHash?: string;
4757
- status?: 'success' | 'noop' | 'failed';
4758
- error?: {
2972
+ affirmations?: {
2973
+ added: Array<string>;
2974
+ removed: Array<string>;
2975
+ ignored: Array<string>;
2976
+ };
2977
+ status: 'error';
2978
+ errors: Array<{
4759
2979
  code: string;
4760
2980
  message: string;
2981
+ path?: string;
4761
2982
  details?: {
4762
2983
  reason: 'expected_version_mismatch';
4763
2984
  expectedVersion: number;
@@ -4777,47 +2998,41 @@ type RenameCompatibilityResult = {
4777
2998
  resetAt: string;
4778
2999
  } | {
4779
3000
  reason: 'cursor_fence_unavailable';
4780
- cause: 'not_ready' | 'below_floor' | 'above_head';
4781
- retryFromStart: true;
4782
- };
4783
- };
4784
- resolvedName?: string;
4785
- retryable?: boolean;
4786
- warnings?: {
4787
- undeclaredFields?: Array<string>;
4788
- undeclaredFieldsTruncated?: true;
4789
- totalUndeclared?: number;
4790
- coalescedWrefs?: Array<{
4791
- fieldPath: string;
4792
- wref: string;
4793
- reason: string;
4794
- }>;
4795
- coalescedWrefsTruncated?: true;
4796
- totalCoalescedWrefs?: number;
4797
- ignoredVersionPins?: Array<{
4798
- fieldPath: string;
4799
- wref: string;
4800
- binding: 'identity';
4801
- }>;
4802
- deprecations?: Array<{
4803
- shape: string;
4804
- message: string;
4805
- removalMilestone: string;
4806
- }>;
4807
- };
4808
- affirmations?: {
4809
- added: Array<string>;
4810
- removed: Array<string>;
4811
- ignored: Array<string>;
4812
- };
3001
+ cause: 'not_ready' | 'below_floor' | 'above_head';
3002
+ retryFromStart: true;
3003
+ } | {
3004
+ reason: 'dependency_failed';
3005
+ producerOpIndexes: Array<number>;
3006
+ } | {
3007
+ reason: 'name_taken';
3008
+ name: string;
3009
+ takenBy?: {
3010
+ durableId: string;
3011
+ };
3012
+ } | {
3013
+ reason: 'target_removed';
3014
+ targetDurableId: string;
3015
+ fieldPath?: string;
3016
+ } | {
3017
+ reason: 'target_redacted';
3018
+ targetDurableId: string;
3019
+ fieldPath?: string;
3020
+ } | {
3021
+ reason: 'legacy-wrefs-window-ended';
3022
+ } | {
3023
+ reason: 'invalid_token';
3024
+ };
3025
+ retryable?: boolean;
3026
+ }>;
4813
3027
  }>;
4814
3028
  outcome: 'event' | 'no_event';
4815
3029
  requestDigest: string;
4816
- schemaVersion: 'operation-event-receipt/v1';
3030
+ schemaVersion: 'operation-event-receipt/v2';
4817
3031
  submissionId?: string;
4818
3032
  pruned?: true;
4819
3033
  };
4820
- } | {
3034
+ };
3035
+ type RemoveCompatibilityResult = {
4821
3036
  event: {
4822
3037
  committedAt: string;
4823
3038
  eventDigest: string;
@@ -4956,7 +3171,7 @@ type RenameCompatibilityResult = {
4956
3171
  schemaVersion: 'operation-event-receipt/v2';
4957
3172
  submissionId?: string;
4958
3173
  pruned?: true;
4959
- renamed: true;
3174
+ removed: true;
4960
3175
  receipt: {
4961
3176
  event: {
4962
3177
  committedAt: string;
@@ -5098,7 +3313,7 @@ type RenameCompatibilityResult = {
5098
3313
  pruned?: true;
5099
3314
  };
5100
3315
  };
5101
- type RewriteCompatibilityResult = {
3316
+ type RenameCompatibilityResult = {
5102
3317
  event: {
5103
3318
  committedAt: string;
5104
3319
  eventDigest: string;
@@ -5237,9 +3452,7 @@ type RewriteCompatibilityResult = {
5237
3452
  schemaVersion: 'operation-event-receipt/v2';
5238
3453
  submissionId?: string;
5239
3454
  pruned?: true;
5240
- status?: 'applied' | 'noop';
5241
- version?: number;
5242
- dataHash?: string;
3455
+ renamed: true;
5243
3456
  receipt: {
5244
3457
  event: {
5245
3458
  committedAt: string;
@@ -5381,240 +3594,7 @@ type RewriteCompatibilityResult = {
5381
3594
  pruned?: true;
5382
3595
  };
5383
3596
  };
5384
- type ShapeChangeCompatibilityResult = {
5385
- event: {
5386
- committedAt: string;
5387
- eventDigest: string;
5388
- operationCount: number;
5389
- repo: {
5390
- orgName: string;
5391
- repoName: string;
5392
- };
5393
- repoSeq: string;
5394
- } | null;
5395
- eventRequestId: string;
5396
- operations: Array<{
5397
- opIndex?: number;
5398
- name: string;
5399
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5400
- version: number;
5401
- dataHash: string;
5402
- status?: 'applied' | 'noop';
5403
- affirmations?: {
5404
- added: Array<string>;
5405
- removed: Array<string>;
5406
- ignored: Array<string>;
5407
- };
5408
- warnings?: {
5409
- undeclaredFields?: Array<string>;
5410
- undeclaredFieldsTruncated?: true;
5411
- totalUndeclared?: number;
5412
- coalescedWrefs?: Array<{
5413
- fieldPath: string;
5414
- wref: string;
5415
- reason: string;
5416
- }>;
5417
- coalescedWrefsTruncated?: true;
5418
- totalCoalescedWrefs?: number;
5419
- ignoredVersionPins?: Array<{
5420
- fieldPath: string;
5421
- wref: string;
5422
- binding: 'identity';
5423
- }>;
5424
- deprecations?: Array<{
5425
- shape: string;
5426
- message: string;
5427
- removalMilestone: string;
5428
- }>;
5429
- };
5430
- } | {
5431
- opIndex?: number;
5432
- name: string;
5433
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5434
- version?: number;
5435
- dataHash?: string;
5436
- status?: 'success' | 'noop' | 'failed';
5437
- error?: {
5438
- code: string;
5439
- message: string;
5440
- details?: {
5441
- reason: 'expected_version_mismatch';
5442
- expectedVersion: number;
5443
- currentVersion: number;
5444
- } | {
5445
- reason: 'lease_held';
5446
- leaseExpiresAt: string;
5447
- } | {
5448
- reason: 'validation_failed';
5449
- issues: Array<{
5450
- path: string;
5451
- message: string;
5452
- }>;
5453
- } | {
5454
- reason: 'rate_limit_reset';
5455
- retryAfterSeconds: number;
5456
- resetAt: string;
5457
- } | {
5458
- reason: 'cursor_fence_unavailable';
5459
- cause: 'not_ready' | 'below_floor' | 'above_head';
5460
- retryFromStart: true;
5461
- };
5462
- };
5463
- resolvedName?: string;
5464
- retryable?: boolean;
5465
- warnings?: {
5466
- undeclaredFields?: Array<string>;
5467
- undeclaredFieldsTruncated?: true;
5468
- totalUndeclared?: number;
5469
- coalescedWrefs?: Array<{
5470
- fieldPath: string;
5471
- wref: string;
5472
- reason: string;
5473
- }>;
5474
- coalescedWrefsTruncated?: true;
5475
- totalCoalescedWrefs?: number;
5476
- ignoredVersionPins?: Array<{
5477
- fieldPath: string;
5478
- wref: string;
5479
- binding: 'identity';
5480
- }>;
5481
- deprecations?: Array<{
5482
- shape: string;
5483
- message: string;
5484
- removalMilestone: string;
5485
- }>;
5486
- };
5487
- affirmations?: {
5488
- added: Array<string>;
5489
- removed: Array<string>;
5490
- ignored: Array<string>;
5491
- };
5492
- }>;
5493
- outcome: 'event' | 'no_event';
5494
- requestDigest: string;
5495
- schemaVersion: 'operation-event-receipt/v1';
5496
- submissionId?: string;
5497
- pruned?: true;
5498
- name: string;
5499
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
5500
- version: number;
5501
- dataHash: string;
5502
- receipt: {
5503
- event: {
5504
- committedAt: string;
5505
- eventDigest: string;
5506
- operationCount: number;
5507
- repo: {
5508
- orgName: string;
5509
- repoName: string;
5510
- };
5511
- repoSeq: string;
5512
- } | null;
5513
- eventRequestId: string;
5514
- operations: Array<{
5515
- opIndex?: number;
5516
- name: string;
5517
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5518
- version: number;
5519
- dataHash: string;
5520
- status?: 'applied' | 'noop';
5521
- affirmations?: {
5522
- added: Array<string>;
5523
- removed: Array<string>;
5524
- ignored: Array<string>;
5525
- };
5526
- warnings?: {
5527
- undeclaredFields?: Array<string>;
5528
- undeclaredFieldsTruncated?: true;
5529
- totalUndeclared?: number;
5530
- coalescedWrefs?: Array<{
5531
- fieldPath: string;
5532
- wref: string;
5533
- reason: string;
5534
- }>;
5535
- coalescedWrefsTruncated?: true;
5536
- totalCoalescedWrefs?: number;
5537
- ignoredVersionPins?: Array<{
5538
- fieldPath: string;
5539
- wref: string;
5540
- binding: 'identity';
5541
- }>;
5542
- deprecations?: Array<{
5543
- shape: string;
5544
- message: string;
5545
- removalMilestone: string;
5546
- }>;
5547
- };
5548
- } | {
5549
- opIndex?: number;
5550
- name: string;
5551
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5552
- version?: number;
5553
- dataHash?: string;
5554
- status?: 'success' | 'noop' | 'failed';
5555
- error?: {
5556
- code: string;
5557
- message: string;
5558
- details?: {
5559
- reason: 'expected_version_mismatch';
5560
- expectedVersion: number;
5561
- currentVersion: number;
5562
- } | {
5563
- reason: 'lease_held';
5564
- leaseExpiresAt: string;
5565
- } | {
5566
- reason: 'validation_failed';
5567
- issues: Array<{
5568
- path: string;
5569
- message: string;
5570
- }>;
5571
- } | {
5572
- reason: 'rate_limit_reset';
5573
- retryAfterSeconds: number;
5574
- resetAt: string;
5575
- } | {
5576
- reason: 'cursor_fence_unavailable';
5577
- cause: 'not_ready' | 'below_floor' | 'above_head';
5578
- retryFromStart: true;
5579
- };
5580
- };
5581
- resolvedName?: string;
5582
- retryable?: boolean;
5583
- warnings?: {
5584
- undeclaredFields?: Array<string>;
5585
- undeclaredFieldsTruncated?: true;
5586
- totalUndeclared?: number;
5587
- coalescedWrefs?: Array<{
5588
- fieldPath: string;
5589
- wref: string;
5590
- reason: string;
5591
- }>;
5592
- coalescedWrefsTruncated?: true;
5593
- totalCoalescedWrefs?: number;
5594
- ignoredVersionPins?: Array<{
5595
- fieldPath: string;
5596
- wref: string;
5597
- binding: 'identity';
5598
- }>;
5599
- deprecations?: Array<{
5600
- shape: string;
5601
- message: string;
5602
- removalMilestone: string;
5603
- }>;
5604
- };
5605
- affirmations?: {
5606
- added: Array<string>;
5607
- removed: Array<string>;
5608
- ignored: Array<string>;
5609
- };
5610
- }>;
5611
- outcome: 'event' | 'no_event';
5612
- requestDigest: string;
5613
- schemaVersion: 'operation-event-receipt/v1';
5614
- submissionId?: string;
5615
- pruned?: true;
5616
- };
5617
- } | {
3597
+ type RewriteCompatibilityResult = {
5618
3598
  event: {
5619
3599
  committedAt: string;
5620
3600
  eventDigest: string;
@@ -5753,10 +3733,9 @@ type ShapeChangeCompatibilityResult = {
5753
3733
  schemaVersion: 'operation-event-receipt/v2';
5754
3734
  submissionId?: string;
5755
3735
  pruned?: true;
5756
- name: string;
5757
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
5758
- version: number;
5759
- dataHash: string;
3736
+ status?: 'applied' | 'noop';
3737
+ version?: number;
3738
+ dataHash?: string;
5760
3739
  receipt: {
5761
3740
  event: {
5762
3741
  committedAt: string;
@@ -5898,7 +3877,7 @@ type ShapeChangeCompatibilityResult = {
5898
3877
  pruned?: true;
5899
3878
  };
5900
3879
  };
5901
- type ShapeRemoveCompatibilityResult = {
3880
+ type ShapeChangeCompatibilityResult = {
5902
3881
  event: {
5903
3882
  committedAt: string;
5904
3883
  eventDigest: string;
@@ -5911,17 +3890,11 @@ type ShapeRemoveCompatibilityResult = {
5911
3890
  } | null;
5912
3891
  eventRequestId: string;
5913
3892
  operations: Array<{
5914
- opIndex?: number;
3893
+ opIndex: number;
3894
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
5915
3895
  name: string;
5916
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5917
- version: number;
5918
- dataHash: string;
5919
- status?: 'applied' | 'noop';
5920
- affirmations?: {
5921
- added: Array<string>;
5922
- removed: Array<string>;
5923
- ignored: Array<string>;
5924
- };
3896
+ submittedName?: string;
3897
+ resolvedName?: string;
5925
3898
  warnings?: {
5926
3899
  undeclaredFields?: Array<string>;
5927
3900
  undeclaredFieldsTruncated?: true;
@@ -5933,27 +3906,65 @@ type ShapeRemoveCompatibilityResult = {
5933
3906
  }>;
5934
3907
  coalescedWrefsTruncated?: true;
5935
3908
  totalCoalescedWrefs?: number;
3909
+ deprecations?: Array<{
3910
+ shape: string;
3911
+ message: string;
3912
+ removalMilestone: string;
3913
+ }>;
5936
3914
  ignoredVersionPins?: Array<{
5937
3915
  fieldPath: string;
5938
3916
  wref: string;
5939
3917
  binding: 'identity';
5940
3918
  }>;
3919
+ shapeless?: true;
3920
+ };
3921
+ affirmations?: {
3922
+ added: Array<string>;
3923
+ removed: Array<string>;
3924
+ ignored: Array<string>;
3925
+ };
3926
+ status: 'applied' | 'noop';
3927
+ version?: number;
3928
+ dataHash?: string;
3929
+ } | {
3930
+ opIndex: number;
3931
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3932
+ name: string;
3933
+ submittedName?: string;
3934
+ resolvedName?: string;
3935
+ warnings?: {
3936
+ undeclaredFields?: Array<string>;
3937
+ undeclaredFieldsTruncated?: true;
3938
+ totalUndeclared?: number;
3939
+ coalescedWrefs?: Array<{
3940
+ fieldPath: string;
3941
+ wref: string;
3942
+ reason: string;
3943
+ }>;
3944
+ coalescedWrefsTruncated?: true;
3945
+ totalCoalescedWrefs?: number;
5941
3946
  deprecations?: Array<{
5942
3947
  shape: string;
5943
3948
  message: string;
5944
3949
  removalMilestone: string;
5945
3950
  }>;
3951
+ ignoredVersionPins?: Array<{
3952
+ fieldPath: string;
3953
+ wref: string;
3954
+ binding: 'identity';
3955
+ }>;
3956
+ shapeless?: true;
5946
3957
  };
5947
- } | {
5948
- opIndex?: number;
5949
- name: string;
5950
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5951
- version?: number;
5952
- dataHash?: string;
5953
- status?: 'success' | 'noop' | 'failed';
5954
- error?: {
3958
+ affirmations?: {
3959
+ added: Array<string>;
3960
+ removed: Array<string>;
3961
+ ignored: Array<string>;
3962
+ };
3963
+ status: 'error';
3964
+ errors: Array<{
5955
3965
  code: string;
5956
3966
  message: string;
3967
+ path?: string;
5957
3968
  details?: {
5958
3969
  reason: 'expected_version_mismatch';
5959
3970
  expectedVersion: number;
@@ -5975,48 +3986,40 @@ type ShapeRemoveCompatibilityResult = {
5975
3986
  reason: 'cursor_fence_unavailable';
5976
3987
  cause: 'not_ready' | 'below_floor' | 'above_head';
5977
3988
  retryFromStart: true;
3989
+ } | {
3990
+ reason: 'dependency_failed';
3991
+ producerOpIndexes: Array<number>;
3992
+ } | {
3993
+ reason: 'name_taken';
3994
+ name: string;
3995
+ takenBy?: {
3996
+ durableId: string;
3997
+ };
3998
+ } | {
3999
+ reason: 'target_removed';
4000
+ targetDurableId: string;
4001
+ fieldPath?: string;
4002
+ } | {
4003
+ reason: 'target_redacted';
4004
+ targetDurableId: string;
4005
+ fieldPath?: string;
4006
+ } | {
4007
+ reason: 'legacy-wrefs-window-ended';
4008
+ } | {
4009
+ reason: 'invalid_token';
5978
4010
  };
5979
- };
5980
- resolvedName?: string;
5981
- retryable?: boolean;
5982
- warnings?: {
5983
- undeclaredFields?: Array<string>;
5984
- undeclaredFieldsTruncated?: true;
5985
- totalUndeclared?: number;
5986
- coalescedWrefs?: Array<{
5987
- fieldPath: string;
5988
- wref: string;
5989
- reason: string;
5990
- }>;
5991
- coalescedWrefsTruncated?: true;
5992
- totalCoalescedWrefs?: number;
5993
- ignoredVersionPins?: Array<{
5994
- fieldPath: string;
5995
- wref: string;
5996
- binding: 'identity';
5997
- }>;
5998
- deprecations?: Array<{
5999
- shape: string;
6000
- message: string;
6001
- removalMilestone: string;
6002
- }>;
6003
- };
6004
- affirmations?: {
6005
- added: Array<string>;
6006
- removed: Array<string>;
6007
- ignored: Array<string>;
6008
- };
4011
+ retryable?: boolean;
4012
+ }>;
6009
4013
  }>;
6010
4014
  outcome: 'event' | 'no_event';
6011
4015
  requestDigest: string;
6012
- schemaVersion: 'operation-event-receipt/v1';
4016
+ schemaVersion: 'operation-event-receipt/v2';
6013
4017
  submissionId?: string;
6014
4018
  pruned?: true;
6015
- name: string;
6016
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
6017
- version: number;
6018
- dataHash: string;
6019
- removed: true;
4019
+ name?: string;
4020
+ operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
4021
+ version?: number;
4022
+ dataHash?: string;
6020
4023
  receipt: {
6021
4024
  event: {
6022
4025
  committedAt: string;
@@ -6030,17 +4033,11 @@ type ShapeRemoveCompatibilityResult = {
6030
4033
  } | null;
6031
4034
  eventRequestId: string;
6032
4035
  operations: Array<{
6033
- opIndex?: number;
4036
+ opIndex: number;
4037
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
6034
4038
  name: string;
6035
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
6036
- version: number;
6037
- dataHash: string;
6038
- status?: 'applied' | 'noop';
6039
- affirmations?: {
6040
- added: Array<string>;
6041
- removed: Array<string>;
6042
- ignored: Array<string>;
6043
- };
4039
+ submittedName?: string;
4040
+ resolvedName?: string;
6044
4041
  warnings?: {
6045
4042
  undeclaredFields?: Array<string>;
6046
4043
  undeclaredFieldsTruncated?: true;
@@ -6052,27 +4049,65 @@ type ShapeRemoveCompatibilityResult = {
6052
4049
  }>;
6053
4050
  coalescedWrefsTruncated?: true;
6054
4051
  totalCoalescedWrefs?: number;
4052
+ deprecations?: Array<{
4053
+ shape: string;
4054
+ message: string;
4055
+ removalMilestone: string;
4056
+ }>;
6055
4057
  ignoredVersionPins?: Array<{
6056
4058
  fieldPath: string;
6057
4059
  wref: string;
6058
4060
  binding: 'identity';
6059
4061
  }>;
4062
+ shapeless?: true;
4063
+ };
4064
+ affirmations?: {
4065
+ added: Array<string>;
4066
+ removed: Array<string>;
4067
+ ignored: Array<string>;
4068
+ };
4069
+ status: 'applied' | 'noop';
4070
+ version?: number;
4071
+ dataHash?: string;
4072
+ } | {
4073
+ opIndex: number;
4074
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
4075
+ name: string;
4076
+ submittedName?: string;
4077
+ resolvedName?: string;
4078
+ warnings?: {
4079
+ undeclaredFields?: Array<string>;
4080
+ undeclaredFieldsTruncated?: true;
4081
+ totalUndeclared?: number;
4082
+ coalescedWrefs?: Array<{
4083
+ fieldPath: string;
4084
+ wref: string;
4085
+ reason: string;
4086
+ }>;
4087
+ coalescedWrefsTruncated?: true;
4088
+ totalCoalescedWrefs?: number;
6060
4089
  deprecations?: Array<{
6061
4090
  shape: string;
6062
4091
  message: string;
6063
4092
  removalMilestone: string;
6064
4093
  }>;
4094
+ ignoredVersionPins?: Array<{
4095
+ fieldPath: string;
4096
+ wref: string;
4097
+ binding: 'identity';
4098
+ }>;
4099
+ shapeless?: true;
6065
4100
  };
6066
- } | {
6067
- opIndex?: number;
6068
- name: string;
6069
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
6070
- version?: number;
6071
- dataHash?: string;
6072
- status?: 'success' | 'noop' | 'failed';
6073
- error?: {
4101
+ affirmations?: {
4102
+ added: Array<string>;
4103
+ removed: Array<string>;
4104
+ ignored: Array<string>;
4105
+ };
4106
+ status: 'error';
4107
+ errors: Array<{
6074
4108
  code: string;
6075
4109
  message: string;
4110
+ path?: string;
6076
4111
  details?: {
6077
4112
  reason: 'expected_version_mismatch';
6078
4113
  expectedVersion: number;
@@ -6094,45 +4129,39 @@ type ShapeRemoveCompatibilityResult = {
6094
4129
  reason: 'cursor_fence_unavailable';
6095
4130
  cause: 'not_ready' | 'below_floor' | 'above_head';
6096
4131
  retryFromStart: true;
4132
+ } | {
4133
+ reason: 'dependency_failed';
4134
+ producerOpIndexes: Array<number>;
4135
+ } | {
4136
+ reason: 'name_taken';
4137
+ name: string;
4138
+ takenBy?: {
4139
+ durableId: string;
4140
+ };
4141
+ } | {
4142
+ reason: 'target_removed';
4143
+ targetDurableId: string;
4144
+ fieldPath?: string;
4145
+ } | {
4146
+ reason: 'target_redacted';
4147
+ targetDurableId: string;
4148
+ fieldPath?: string;
4149
+ } | {
4150
+ reason: 'legacy-wrefs-window-ended';
4151
+ } | {
4152
+ reason: 'invalid_token';
6097
4153
  };
6098
- };
6099
- resolvedName?: string;
6100
- retryable?: boolean;
6101
- warnings?: {
6102
- undeclaredFields?: Array<string>;
6103
- undeclaredFieldsTruncated?: true;
6104
- totalUndeclared?: number;
6105
- coalescedWrefs?: Array<{
6106
- fieldPath: string;
6107
- wref: string;
6108
- reason: string;
6109
- }>;
6110
- coalescedWrefsTruncated?: true;
6111
- totalCoalescedWrefs?: number;
6112
- ignoredVersionPins?: Array<{
6113
- fieldPath: string;
6114
- wref: string;
6115
- binding: 'identity';
6116
- }>;
6117
- deprecations?: Array<{
6118
- shape: string;
6119
- message: string;
6120
- removalMilestone: string;
6121
- }>;
6122
- };
6123
- affirmations?: {
6124
- added: Array<string>;
6125
- removed: Array<string>;
6126
- ignored: Array<string>;
6127
- };
4154
+ retryable?: boolean;
4155
+ }>;
6128
4156
  }>;
6129
4157
  outcome: 'event' | 'no_event';
6130
4158
  requestDigest: string;
6131
- schemaVersion: 'operation-event-receipt/v1';
4159
+ schemaVersion: 'operation-event-receipt/v2';
6132
4160
  submissionId?: string;
6133
4161
  pruned?: true;
6134
4162
  };
6135
- } | {
4163
+ };
4164
+ type ShapeRemoveCompatibilityResult = {
6136
4165
  event: {
6137
4166
  committedAt: string;
6138
4167
  eventDigest: string;
@@ -6271,10 +4300,10 @@ type ShapeRemoveCompatibilityResult = {
6271
4300
  schemaVersion: 'operation-event-receipt/v2';
6272
4301
  submissionId?: string;
6273
4302
  pruned?: true;
6274
- name: string;
6275
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
6276
- version: number;
6277
- dataHash: string;
4303
+ name?: string;
4304
+ operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
4305
+ version?: number;
4306
+ dataHash?: string;
6278
4307
  removed: true;
6279
4308
  receipt: {
6280
4309
  event: {
@@ -8107,12 +6136,10 @@ declare class AllStreamOperationsFailedError extends Error {
8107
6136
  /**
8108
6137
  * Running reducer over stream-append chunk outputs.
8109
6138
  *
8110
- * Owns the receipt-era → legacy status projection for streamed submissions.
8111
- * Each chunk is folded in as it is acknowledged, so the only per-operation
8112
- * state that survives a chunk is the projected result row the caller is
6139
+ * Each chunk's receipt is folded in as it is acknowledged, so the only
6140
+ * per-operation state that survives a chunk is the result row the caller is
8113
6141
  * contractually owed — no raw chunk-result array, and no submission-wide copy
8114
- * of the submitted operations. Chunk-local submitted names are read for the
8115
- * `submittedName` echo on failed rows and then released with the chunk.
6142
+ * of the submitted operations.
8116
6143
  *
8117
6144
  * @internal
8118
6145
  */
@@ -8122,19 +6149,10 @@ declare class StreamSubmissionAggregator {
8122
6149
  private readonly statusCounts;
8123
6150
  /** True once at least one row landed and every row failed. */
8124
6151
  get allFailed(): boolean;
8125
- /**
8126
- * Fold one chunk's result rows into the aggregate.
8127
- *
8128
- * `submittedNames` is chunk-local: entry 0 is the operation at
8129
- * `chunkStart`. Pass the chunk that was submitted; it is not retained.
8130
- */
6152
+ /** Fold one chunk's receipt rows into the aggregate. */
8131
6153
  addChunk(input: {
8132
- result: StreamAppendResult$1;
6154
+ receipt: OperationEventReceipt$1;
8133
6155
  chunkStart: number;
8134
- submittedOperations: ReadonlyArray<{
8135
- name?: string;
8136
- operation: CommitRealOperationResult$1['operation'];
8137
- }>;
8138
6156
  }): void;
8139
6157
  addReceipt(receipt: OperationEventReceipt$1): void;
8140
6158
  /** Rows confirmed applied or noop, for partial-submission recovery. */
@@ -9037,11 +7055,6 @@ type OperationEventReceipt = OperationEventReceipt$1;
9037
7055
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationeventreceiptmetadata/
9038
7056
  */
9039
7057
  type OperationEventReceiptMetadata = OperationEventReceiptMetadata$1;
9040
- /**
9041
- * The frozen historical receipt returned only when replaying a v1 request.
9042
- * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationeventreceiptv1/
9043
- */
9044
- type OperationEventReceiptV1 = OperationEventReceiptV1$1;
9045
7058
  /**
9046
7059
  * Structured diagnostic shared by real and preview operation results.
9047
7060
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/commitdiagnostic/
@@ -12872,4 +10885,4 @@ declare class WarmHubClient {
12872
10885
  private watchRepoQuery;
12873
10886
  }
12874
10887
 
12875
- 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 AddInput, type AddOperation, AllStreamOperationsFailedError, type Assertion, CHECKPOINT_CONTENT_TYPES, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, COMPONENT_INSTALL_RESULT_STATES, COMPONENT_SUMMARY_STATES, CONTENT_FIELD_LIMIT_ERROR, CREDENTIAL_SCOPES, type CheckpointContentType, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, 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 CommitValidateOperations, type CommitValidateOptions, type CommitValidateResult, type ComponentHistory, type ComponentHistoryOptions, type ComponentInfo, type ComponentInstallOptions, type ComponentInstallResult, type ComponentInstallResultState, type ComponentList, type ComponentListOptions, type ComponentSummaryState, 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 CredentialScope, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, DEPENDENCY_FAILED, type DeclaredFieldEntry, type ErrorKind, type FieldIndexCarryingMarker, type FieldIndexCarryingShape, type FieldIndexConsistency, type FieldIndexPinResult, type FilterOptions, type FilterResult, type FunctionLogMode, GLOBAL_SEARCH_RESULT_ITEM_KINDS, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type GlobalSearchResultItemKind, type Grant, type GrantCreateOptions, type GrantListOptions, type GrantListResult, type GrantRecipientSelector, type GrantRevokeResult, HOMEPAGE_FEATURED_ITEM_KINDS, type HeadResult, type HistoryResult, type HistoryVersion, type HomepageFeaturedItemKind, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type KeepShapesRevise, LEGACY_WREFS_REFUSAL, 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, type MemberScopeEntry, ORG_AUTH_SCOPES, ORG_MEMBER_STATUSES, ORG_ROLES, type OldNameDetails, type Operation, OperationBuilder, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationEventReceipt, type OperationEventReceiptMetadata, type OperationEventReceiptV1, type OperationSource, type OperationSubmitResult, type OrgAccessResult, type OrgAuthScope, type OrgDetail, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgMemberStatus, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, REPO_AUTH_SCOPES, type ReaffirmInput, type ReaffirmOperation, type RedactOptions, type RedactResult, 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, type RepositoryExportDeltaFormats, 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 RestoreInput, type RestoreOperation, type RetractInput, type RetractOperation, type RetryPolicyOptions, type ReviseInput, type ReviseOperation, type RewriteOperation, type RewriteOptions, type RewriteResult, SDK_VERSION, SUBSCRIBABLE_EVENT_TYPES, type ScopeAllowedShapes, type SearchOptions, type SearchResult, type ServiceAccountInfo, 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 ShapesChoice, 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 ThingDetailFields, 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 ThingNamesResult, type ThingQueryChangesOptions, type ThingShapesReader, 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, type WriteOperation, WriteOperationError, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createKeepShapesResolver, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isAllStreamOperationsFailedError, isConnectionError, isDefiniteStreamAppendRejection, isKnownCheckpointContentType, isKnownComponentInstallResultState, isKnownComponentSummaryState, isKnownCredentialScope, isKnownGlobalSearchResultItemKind, isKnownHomepageFeaturedItemKind, isKnownOrgAuthScope, isKnownOrgMemberStatus, isKnownOrgRole, isKnownRepoAuthScope, isKnownSubscribableEventType, isRetryable, isShapeReference, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, shapeName, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
10888
+ 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 AddInput, type AddOperation, AllStreamOperationsFailedError, type Assertion, CHECKPOINT_CONTENT_TYPES, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, COMPONENT_INSTALL_RESULT_STATES, COMPONENT_SUMMARY_STATES, CONTENT_FIELD_LIMIT_ERROR, CREDENTIAL_SCOPES, type CheckpointContentType, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, 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 CommitValidateOperations, type CommitValidateOptions, type CommitValidateResult, type ComponentHistory, type ComponentHistoryOptions, type ComponentInfo, type ComponentInstallOptions, type ComponentInstallResult, type ComponentInstallResultState, type ComponentList, type ComponentListOptions, type ComponentSummaryState, 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 CredentialScope, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, DEPENDENCY_FAILED, type DeclaredFieldEntry, type ErrorKind, type FieldIndexCarryingMarker, type FieldIndexCarryingShape, type FieldIndexConsistency, type FieldIndexPinResult, type FilterOptions, type FilterResult, type FunctionLogMode, GLOBAL_SEARCH_RESULT_ITEM_KINDS, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type GlobalSearchResultItemKind, type Grant, type GrantCreateOptions, type GrantListOptions, type GrantListResult, type GrantRecipientSelector, type GrantRevokeResult, HOMEPAGE_FEATURED_ITEM_KINDS, type HeadResult, type HistoryResult, type HistoryVersion, type HomepageFeaturedItemKind, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type KeepShapesRevise, LEGACY_WREFS_REFUSAL, 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, type MemberScopeEntry, ORG_AUTH_SCOPES, ORG_MEMBER_STATUSES, ORG_ROLES, type OldNameDetails, type Operation, OperationBuilder, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationEventReceipt, type OperationEventReceiptMetadata, type OperationSource, type OperationSubmitResult, type OrgAccessResult, type OrgAuthScope, type OrgDetail, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgMemberStatus, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, REPO_AUTH_SCOPES, type ReaffirmInput, type ReaffirmOperation, type RedactOptions, type RedactResult, 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, type RepositoryExportDeltaFormats, 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 RestoreInput, type RestoreOperation, type RetractInput, type RetractOperation, type RetryPolicyOptions, type ReviseInput, type ReviseOperation, type RewriteOperation, type RewriteOptions, type RewriteResult, SDK_VERSION, SUBSCRIBABLE_EVENT_TYPES, type ScopeAllowedShapes, type SearchOptions, type SearchResult, type ServiceAccountInfo, 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 ShapesChoice, 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 ThingDetailFields, 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 ThingNamesResult, type ThingQueryChangesOptions, type ThingShapesReader, 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, type WriteOperation, WriteOperationError, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createKeepShapesResolver, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isAllStreamOperationsFailedError, isConnectionError, isDefiniteStreamAppendRejection, isKnownCheckpointContentType, isKnownComponentInstallResultState, isKnownComponentSummaryState, isKnownCredentialScope, isKnownGlobalSearchResultItemKind, isKnownHomepageFeaturedItemKind, isKnownOrgAuthScope, isKnownOrgMemberStatus, isKnownOrgRole, isKnownRepoAuthScope, isKnownSubscribableEventType, isRetryable, isShapeReference, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, shapeName, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };