@warmhub/sdk-ts 0.155.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;
@@ -2089,9 +1632,6 @@ type GrantCreateInput = {
2089
1632
  recipient: {
2090
1633
  kind: 'member';
2091
1634
  email: string;
2092
- } | {
2093
- kind: 'pat';
2094
- name: string;
2095
1635
  } | {
2096
1636
  kind: 'component';
2097
1637
  orgName: string;
@@ -2308,17 +1848,11 @@ type StreamAppendResult$1 = {
2308
1848
  } | null;
2309
1849
  eventRequestId: string;
2310
1850
  operations: Array<{
2311
- opIndex?: number;
1851
+ opIndex: number;
1852
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2312
1853
  name: string;
2313
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2314
- version: number;
2315
- dataHash: string;
2316
- status?: 'applied' | 'noop';
2317
- affirmations?: {
2318
- added: Array<string>;
2319
- removed: Array<string>;
2320
- ignored: Array<string>;
2321
- };
1854
+ submittedName?: string;
1855
+ resolvedName?: string;
2322
1856
  warnings?: {
2323
1857
  undeclaredFields?: Array<string>;
2324
1858
  undeclaredFieldsTruncated?: true;
@@ -2330,1472 +1864,65 @@ type StreamAppendResult$1 = {
2330
1864
  }>;
2331
1865
  coalescedWrefsTruncated?: true;
2332
1866
  totalCoalescedWrefs?: number;
1867
+ deprecations?: Array<{
1868
+ shape: string;
1869
+ message: string;
1870
+ removalMilestone: string;
1871
+ }>;
2333
1872
  ignoredVersionPins?: Array<{
2334
1873
  fieldPath: string;
2335
1874
  wref: string;
2336
1875
  binding: 'identity';
2337
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;
2338
1904
  deprecations?: Array<{
2339
1905
  shape: string;
2340
1906
  message: string;
2341
1907
  removalMilestone: string;
2342
1908
  }>;
1909
+ ignoredVersionPins?: Array<{
1910
+ fieldPath: string;
1911
+ wref: string;
1912
+ binding: 'identity';
1913
+ }>;
1914
+ shapeless?: true;
2343
1915
  };
2344
- } | {
2345
- opIndex?: number;
2346
- name: string;
2347
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2348
- version?: number;
2349
- dataHash?: string;
2350
- status?: 'success' | 'noop' | 'failed';
2351
- error?: {
2352
- code: string;
2353
- message: string;
2354
- details?: {
2355
- reason: 'expected_version_mismatch';
2356
- expectedVersion: number;
2357
- currentVersion: number;
2358
- } | {
2359
- reason: 'lease_held';
2360
- leaseExpiresAt: string;
2361
- } | {
2362
- reason: 'validation_failed';
2363
- issues: Array<{
2364
- path: string;
2365
- message: string;
2366
- }>;
2367
- } | {
2368
- reason: 'rate_limit_reset';
2369
- retryAfterSeconds: number;
2370
- resetAt: string;
2371
- } | {
2372
- reason: 'cursor_fence_unavailable';
2373
- cause: 'not_ready' | 'below_floor' | 'above_head';
2374
- retryFromStart: true;
2375
- };
2376
- };
2377
- resolvedName?: string;
2378
- retryable?: boolean;
2379
- warnings?: {
2380
- undeclaredFields?: Array<string>;
2381
- undeclaredFieldsTruncated?: true;
2382
- totalUndeclared?: number;
2383
- coalescedWrefs?: Array<{
2384
- fieldPath: string;
2385
- wref: string;
2386
- reason: string;
2387
- }>;
2388
- coalescedWrefsTruncated?: true;
2389
- totalCoalescedWrefs?: number;
2390
- ignoredVersionPins?: Array<{
2391
- fieldPath: string;
2392
- wref: string;
2393
- binding: 'identity';
2394
- }>;
2395
- deprecations?: Array<{
2396
- shape: string;
2397
- message: string;
2398
- removalMilestone: string;
2399
- }>;
2400
- };
2401
- affirmations?: {
2402
- added: Array<string>;
2403
- removed: Array<string>;
2404
- ignored: Array<string>;
2405
- };
2406
- }>;
2407
- outcome: 'event' | 'no_event';
2408
- requestDigest: string;
2409
- schemaVersion: 'operation-event-receipt/v1';
2410
- submissionId?: string;
2411
- pruned?: true;
2412
- allocatedTokenRanges: Array<{
2413
- start: number;
2414
- end: number;
2415
- }>;
2416
- results: Array<{
2417
- opIndex?: number;
2418
- name: string;
2419
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2420
- version?: number;
2421
- dataHash?: string;
2422
- status?: 'success' | 'noop' | 'failed';
2423
- error?: {
2424
- code: string;
2425
- message: string;
2426
- details?: {
2427
- reason: 'expected_version_mismatch';
2428
- expectedVersion: number;
2429
- currentVersion: number;
2430
- } | {
2431
- reason: 'lease_held';
2432
- leaseExpiresAt: string;
2433
- } | {
2434
- reason: 'validation_failed';
2435
- issues: Array<{
2436
- path: string;
2437
- message: string;
2438
- }>;
2439
- } | {
2440
- reason: 'rate_limit_reset';
2441
- retryAfterSeconds: number;
2442
- resetAt: string;
2443
- } | {
2444
- reason: 'cursor_fence_unavailable';
2445
- cause: 'not_ready' | 'below_floor' | 'above_head';
2446
- retryFromStart: true;
2447
- };
2448
- };
2449
- resolvedName?: string;
2450
- retryable?: boolean;
2451
- warnings?: {
2452
- undeclaredFields?: Array<string>;
2453
- undeclaredFieldsTruncated?: true;
2454
- totalUndeclared?: number;
2455
- coalescedWrefs?: Array<{
2456
- fieldPath: string;
2457
- wref: string;
2458
- reason: string;
2459
- }>;
2460
- coalescedWrefsTruncated?: true;
2461
- totalCoalescedWrefs?: number;
2462
- ignoredVersionPins?: Array<{
2463
- fieldPath: string;
2464
- wref: string;
2465
- binding: 'identity';
2466
- }>;
2467
- deprecations?: Array<{
2468
- shape: string;
2469
- message: string;
2470
- removalMilestone: string;
2471
- }>;
2472
- };
2473
- affirmations?: {
2474
- added: Array<string>;
2475
- removed: Array<string>;
2476
- ignored: Array<string>;
2477
- };
2478
- }>;
2479
- repoSeq?: number;
2480
- createdByEmail?: string;
2481
- appendTotalMs?: number;
2482
- appendResolveRepoMs?: number;
2483
- appendApplyMs?: number;
2484
- applySubphases?: {
2485
- addThingMs?: number;
2486
- addAssertionMs?: number;
2487
- addAssertionResolveAboutMs?: number;
2488
- reviseThingMs?: number;
2489
- reviseAssertionMs?: number;
2490
- reviseCollectionMs?: number;
2491
- preparePinnedLoadShapeFieldsMs?: number;
2492
- preparePinnedPinWrefsMs?: number;
2493
- preparePinnedValidateMs?: number;
2494
- operationLoopMs?: number;
2495
- persistMs?: number;
2496
- persistThingsMs?: number;
2497
- persistVersionsMs?: number;
2498
- persistAssertionsMs?: number;
2499
- persistUpdatesMs?: number;
2500
- persistOutboxMs?: number;
2501
- refInsertMs?: number;
2502
- refSourceCount?: number;
2503
- };
2504
- receipt: {
2505
- event: {
2506
- committedAt: string;
2507
- eventDigest: string;
2508
- operationCount: number;
2509
- repo: {
2510
- orgName: string;
2511
- repoName: string;
2512
- };
2513
- repoSeq: string;
2514
- } | null;
2515
- eventRequestId: string;
2516
- operations: Array<{
2517
- opIndex?: number;
2518
- name: string;
2519
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2520
- version: number;
2521
- dataHash: string;
2522
- status?: 'applied' | 'noop';
2523
- affirmations?: {
2524
- added: Array<string>;
2525
- removed: Array<string>;
2526
- ignored: Array<string>;
2527
- };
2528
- warnings?: {
2529
- undeclaredFields?: Array<string>;
2530
- undeclaredFieldsTruncated?: true;
2531
- totalUndeclared?: number;
2532
- coalescedWrefs?: Array<{
2533
- fieldPath: string;
2534
- wref: string;
2535
- reason: string;
2536
- }>;
2537
- coalescedWrefsTruncated?: true;
2538
- totalCoalescedWrefs?: number;
2539
- ignoredVersionPins?: Array<{
2540
- fieldPath: string;
2541
- wref: string;
2542
- binding: 'identity';
2543
- }>;
2544
- deprecations?: Array<{
2545
- shape: string;
2546
- message: string;
2547
- removalMilestone: string;
2548
- }>;
2549
- };
2550
- } | {
2551
- opIndex?: number;
2552
- name: string;
2553
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2554
- version?: number;
2555
- dataHash?: string;
2556
- status?: 'success' | 'noop' | 'failed';
2557
- error?: {
2558
- code: string;
2559
- message: string;
2560
- details?: {
2561
- reason: 'expected_version_mismatch';
2562
- expectedVersion: number;
2563
- currentVersion: number;
2564
- } | {
2565
- reason: 'lease_held';
2566
- leaseExpiresAt: string;
2567
- } | {
2568
- reason: 'validation_failed';
2569
- issues: Array<{
2570
- path: string;
2571
- message: string;
2572
- }>;
2573
- } | {
2574
- reason: 'rate_limit_reset';
2575
- retryAfterSeconds: number;
2576
- resetAt: string;
2577
- } | {
2578
- reason: 'cursor_fence_unavailable';
2579
- cause: 'not_ready' | 'below_floor' | 'above_head';
2580
- retryFromStart: true;
2581
- };
2582
- };
2583
- resolvedName?: string;
2584
- retryable?: boolean;
2585
- warnings?: {
2586
- undeclaredFields?: Array<string>;
2587
- undeclaredFieldsTruncated?: true;
2588
- totalUndeclared?: number;
2589
- coalescedWrefs?: Array<{
2590
- fieldPath: string;
2591
- wref: string;
2592
- reason: string;
2593
- }>;
2594
- coalescedWrefsTruncated?: true;
2595
- totalCoalescedWrefs?: number;
2596
- ignoredVersionPins?: Array<{
2597
- fieldPath: string;
2598
- wref: string;
2599
- binding: 'identity';
2600
- }>;
2601
- deprecations?: Array<{
2602
- shape: string;
2603
- message: string;
2604
- removalMilestone: string;
2605
- }>;
2606
- };
2607
- affirmations?: {
2608
- added: Array<string>;
2609
- removed: Array<string>;
2610
- ignored: Array<string>;
2611
- };
2612
- }>;
2613
- outcome: 'event' | 'no_event';
2614
- requestDigest: string;
2615
- schemaVersion: 'operation-event-receipt/v1';
2616
- submissionId?: string;
2617
- pruned?: true;
2618
- };
2619
- } | {
2620
- event: {
2621
- committedAt: string;
2622
- eventDigest: string;
2623
- operationCount: number;
2624
- repo: {
2625
- orgName: string;
2626
- repoName: string;
2627
- };
2628
- repoSeq: string;
2629
- } | null;
2630
- eventRequestId: string;
2631
- operations: Array<{
2632
- opIndex: number;
2633
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2634
- name: string;
2635
- submittedName?: string;
2636
- resolvedName?: string;
2637
- warnings?: {
2638
- undeclaredFields?: Array<string>;
2639
- undeclaredFieldsTruncated?: true;
2640
- totalUndeclared?: number;
2641
- coalescedWrefs?: Array<{
2642
- fieldPath: string;
2643
- wref: string;
2644
- reason: string;
2645
- }>;
2646
- coalescedWrefsTruncated?: true;
2647
- totalCoalescedWrefs?: number;
2648
- deprecations?: Array<{
2649
- shape: string;
2650
- message: string;
2651
- removalMilestone: string;
2652
- }>;
2653
- ignoredVersionPins?: Array<{
2654
- fieldPath: string;
2655
- wref: string;
2656
- binding: 'identity';
2657
- }>;
2658
- shapeless?: true;
2659
- };
2660
- affirmations?: {
2661
- added: Array<string>;
2662
- removed: Array<string>;
2663
- ignored: Array<string>;
2664
- };
2665
- status: 'applied' | 'noop';
2666
- version?: number;
2667
- dataHash?: string;
2668
- } | {
2669
- opIndex: number;
2670
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2671
- name: string;
2672
- submittedName?: string;
2673
- resolvedName?: string;
2674
- warnings?: {
2675
- undeclaredFields?: Array<string>;
2676
- undeclaredFieldsTruncated?: true;
2677
- totalUndeclared?: number;
2678
- coalescedWrefs?: Array<{
2679
- fieldPath: string;
2680
- wref: string;
2681
- reason: string;
2682
- }>;
2683
- coalescedWrefsTruncated?: true;
2684
- totalCoalescedWrefs?: number;
2685
- deprecations?: Array<{
2686
- shape: string;
2687
- message: string;
2688
- removalMilestone: string;
2689
- }>;
2690
- ignoredVersionPins?: Array<{
2691
- fieldPath: string;
2692
- wref: string;
2693
- binding: 'identity';
2694
- }>;
2695
- shapeless?: true;
2696
- };
2697
- affirmations?: {
2698
- added: Array<string>;
2699
- removed: Array<string>;
2700
- ignored: Array<string>;
2701
- };
2702
- status: 'error';
2703
- errors: Array<{
2704
- code: string;
2705
- message: string;
2706
- path?: string;
2707
- details?: {
2708
- reason: 'expected_version_mismatch';
2709
- expectedVersion: number;
2710
- currentVersion: number;
2711
- } | {
2712
- reason: 'lease_held';
2713
- leaseExpiresAt: string;
2714
- } | {
2715
- reason: 'validation_failed';
2716
- issues: Array<{
2717
- path: string;
2718
- message: string;
2719
- }>;
2720
- } | {
2721
- reason: 'rate_limit_reset';
2722
- retryAfterSeconds: number;
2723
- resetAt: string;
2724
- } | {
2725
- reason: 'cursor_fence_unavailable';
2726
- cause: 'not_ready' | 'below_floor' | 'above_head';
2727
- retryFromStart: true;
2728
- } | {
2729
- reason: 'dependency_failed';
2730
- producerOpIndexes: Array<number>;
2731
- } | {
2732
- reason: 'name_taken';
2733
- name: string;
2734
- takenBy?: {
2735
- durableId: string;
2736
- };
2737
- } | {
2738
- reason: 'target_removed';
2739
- targetDurableId: string;
2740
- fieldPath?: string;
2741
- } | {
2742
- reason: 'target_redacted';
2743
- targetDurableId: string;
2744
- fieldPath?: string;
2745
- } | {
2746
- reason: 'legacy-wrefs-window-ended';
2747
- } | {
2748
- reason: 'invalid_token';
2749
- };
2750
- retryable?: boolean;
2751
- }>;
2752
- }>;
2753
- outcome: 'event' | 'no_event';
2754
- requestDigest: string;
2755
- schemaVersion: 'operation-event-receipt/v2';
2756
- submissionId?: string;
2757
- pruned?: true;
2758
- allocatedTokenRanges: Array<{
2759
- start: number;
2760
- end: number;
2761
- }>;
2762
- results: Array<{
2763
- opIndex: number;
2764
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2765
- name: string;
2766
- submittedName?: string;
2767
- resolvedName?: string;
2768
- warnings?: {
2769
- undeclaredFields?: Array<string>;
2770
- undeclaredFieldsTruncated?: true;
2771
- totalUndeclared?: number;
2772
- coalescedWrefs?: Array<{
2773
- fieldPath: string;
2774
- wref: string;
2775
- reason: string;
2776
- }>;
2777
- coalescedWrefsTruncated?: true;
2778
- totalCoalescedWrefs?: number;
2779
- deprecations?: Array<{
2780
- shape: string;
2781
- message: string;
2782
- removalMilestone: string;
2783
- }>;
2784
- ignoredVersionPins?: Array<{
2785
- fieldPath: string;
2786
- wref: string;
2787
- binding: 'identity';
2788
- }>;
2789
- shapeless?: true;
2790
- };
2791
- affirmations?: {
2792
- added: Array<string>;
2793
- removed: Array<string>;
2794
- ignored: Array<string>;
2795
- };
2796
- status: 'applied' | 'noop';
2797
- version?: number;
2798
- dataHash?: string;
2799
- } | {
2800
- opIndex: number;
2801
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2802
- name: string;
2803
- submittedName?: string;
2804
- resolvedName?: string;
2805
- warnings?: {
2806
- undeclaredFields?: Array<string>;
2807
- undeclaredFieldsTruncated?: true;
2808
- totalUndeclared?: number;
2809
- coalescedWrefs?: Array<{
2810
- fieldPath: string;
2811
- wref: string;
2812
- reason: string;
2813
- }>;
2814
- coalescedWrefsTruncated?: true;
2815
- totalCoalescedWrefs?: number;
2816
- deprecations?: Array<{
2817
- shape: string;
2818
- message: string;
2819
- removalMilestone: string;
2820
- }>;
2821
- ignoredVersionPins?: Array<{
2822
- fieldPath: string;
2823
- wref: string;
2824
- binding: 'identity';
2825
- }>;
2826
- shapeless?: true;
2827
- };
2828
- affirmations?: {
2829
- added: Array<string>;
2830
- removed: Array<string>;
2831
- ignored: Array<string>;
2832
- };
2833
- status: 'error';
2834
- errors: Array<{
2835
- code: string;
2836
- message: string;
2837
- path?: string;
2838
- details?: {
2839
- reason: 'expected_version_mismatch';
2840
- expectedVersion: number;
2841
- currentVersion: number;
2842
- } | {
2843
- reason: 'lease_held';
2844
- leaseExpiresAt: string;
2845
- } | {
2846
- reason: 'validation_failed';
2847
- issues: Array<{
2848
- path: string;
2849
- message: string;
2850
- }>;
2851
- } | {
2852
- reason: 'rate_limit_reset';
2853
- retryAfterSeconds: number;
2854
- resetAt: string;
2855
- } | {
2856
- reason: 'cursor_fence_unavailable';
2857
- cause: 'not_ready' | 'below_floor' | 'above_head';
2858
- retryFromStart: true;
2859
- } | {
2860
- reason: 'dependency_failed';
2861
- producerOpIndexes: Array<number>;
2862
- } | {
2863
- reason: 'name_taken';
2864
- name: string;
2865
- takenBy?: {
2866
- durableId: string;
2867
- };
2868
- } | {
2869
- reason: 'target_removed';
2870
- targetDurableId: string;
2871
- fieldPath?: string;
2872
- } | {
2873
- reason: 'target_redacted';
2874
- targetDurableId: string;
2875
- fieldPath?: string;
2876
- } | {
2877
- reason: 'legacy-wrefs-window-ended';
2878
- } | {
2879
- reason: 'invalid_token';
2880
- };
2881
- retryable?: boolean;
2882
- }>;
2883
- }>;
2884
- repoSeq?: number;
2885
- createdByEmail?: string;
2886
- appendTotalMs?: number;
2887
- appendResolveRepoMs?: number;
2888
- appendApplyMs?: number;
2889
- applySubphases?: {
2890
- addThingMs?: number;
2891
- addAssertionMs?: number;
2892
- addAssertionResolveAboutMs?: number;
2893
- reviseThingMs?: number;
2894
- reviseAssertionMs?: number;
2895
- reviseCollectionMs?: number;
2896
- preparePinnedLoadShapeFieldsMs?: number;
2897
- preparePinnedPinWrefsMs?: number;
2898
- preparePinnedValidateMs?: number;
2899
- operationLoopMs?: number;
2900
- persistMs?: number;
2901
- persistThingsMs?: number;
2902
- persistVersionsMs?: number;
2903
- persistAssertionsMs?: number;
2904
- persistUpdatesMs?: number;
2905
- persistOutboxMs?: number;
2906
- refInsertMs?: number;
2907
- refSourceCount?: number;
2908
- };
2909
- receipt: {
2910
- event: {
2911
- committedAt: string;
2912
- eventDigest: string;
2913
- operationCount: number;
2914
- repo: {
2915
- orgName: string;
2916
- repoName: string;
2917
- };
2918
- repoSeq: string;
2919
- } | null;
2920
- eventRequestId: string;
2921
- operations: Array<{
2922
- opIndex: number;
2923
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2924
- name: string;
2925
- submittedName?: string;
2926
- resolvedName?: string;
2927
- warnings?: {
2928
- undeclaredFields?: Array<string>;
2929
- undeclaredFieldsTruncated?: true;
2930
- totalUndeclared?: number;
2931
- coalescedWrefs?: Array<{
2932
- fieldPath: string;
2933
- wref: string;
2934
- reason: string;
2935
- }>;
2936
- coalescedWrefsTruncated?: true;
2937
- totalCoalescedWrefs?: number;
2938
- deprecations?: Array<{
2939
- shape: string;
2940
- message: string;
2941
- removalMilestone: string;
2942
- }>;
2943
- ignoredVersionPins?: Array<{
2944
- fieldPath: string;
2945
- wref: string;
2946
- binding: 'identity';
2947
- }>;
2948
- shapeless?: true;
2949
- };
2950
- affirmations?: {
2951
- added: Array<string>;
2952
- removed: Array<string>;
2953
- ignored: Array<string>;
2954
- };
2955
- status: 'applied' | 'noop';
2956
- version?: number;
2957
- dataHash?: string;
2958
- } | {
2959
- opIndex: number;
2960
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2961
- name: string;
2962
- submittedName?: string;
2963
- resolvedName?: string;
2964
- warnings?: {
2965
- undeclaredFields?: Array<string>;
2966
- undeclaredFieldsTruncated?: true;
2967
- totalUndeclared?: number;
2968
- coalescedWrefs?: Array<{
2969
- fieldPath: string;
2970
- wref: string;
2971
- reason: string;
2972
- }>;
2973
- coalescedWrefsTruncated?: true;
2974
- totalCoalescedWrefs?: number;
2975
- deprecations?: Array<{
2976
- shape: string;
2977
- message: string;
2978
- removalMilestone: string;
2979
- }>;
2980
- ignoredVersionPins?: Array<{
2981
- fieldPath: string;
2982
- wref: string;
2983
- binding: 'identity';
2984
- }>;
2985
- shapeless?: true;
2986
- };
2987
- affirmations?: {
2988
- added: Array<string>;
2989
- removed: Array<string>;
2990
- ignored: Array<string>;
2991
- };
2992
- status: 'error';
2993
- errors: Array<{
2994
- code: string;
2995
- message: string;
2996
- path?: string;
2997
- details?: {
2998
- reason: 'expected_version_mismatch';
2999
- expectedVersion: number;
3000
- currentVersion: number;
3001
- } | {
3002
- reason: 'lease_held';
3003
- leaseExpiresAt: string;
3004
- } | {
3005
- reason: 'validation_failed';
3006
- issues: Array<{
3007
- path: string;
3008
- message: string;
3009
- }>;
3010
- } | {
3011
- reason: 'rate_limit_reset';
3012
- retryAfterSeconds: number;
3013
- resetAt: string;
3014
- } | {
3015
- reason: 'cursor_fence_unavailable';
3016
- cause: 'not_ready' | 'below_floor' | 'above_head';
3017
- retryFromStart: true;
3018
- } | {
3019
- reason: 'dependency_failed';
3020
- producerOpIndexes: Array<number>;
3021
- } | {
3022
- reason: 'name_taken';
3023
- name: string;
3024
- takenBy?: {
3025
- durableId: string;
3026
- };
3027
- } | {
3028
- reason: 'target_removed';
3029
- targetDurableId: string;
3030
- fieldPath?: string;
3031
- } | {
3032
- reason: 'target_redacted';
3033
- targetDurableId: string;
3034
- fieldPath?: string;
3035
- } | {
3036
- reason: 'legacy-wrefs-window-ended';
3037
- } | {
3038
- reason: 'invalid_token';
3039
- };
3040
- retryable?: boolean;
3041
- }>;
3042
- }>;
3043
- outcome: 'event' | 'no_event';
3044
- requestDigest: string;
3045
- schemaVersion: 'operation-event-receipt/v2';
3046
- submissionId?: string;
3047
- pruned?: true;
3048
- };
3049
- };
3050
- type StreamingSubmissionRow$1 = {
3051
- opIndex: number;
3052
- name: string;
3053
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3054
- version?: number;
3055
- dataHash?: string;
3056
- status?: 'success' | 'noop' | 'failed';
3057
- error?: {
3058
- code: string;
3059
- message: string;
3060
- details?: {
3061
- reason: 'expected_version_mismatch';
3062
- expectedVersion: number;
3063
- currentVersion: number;
3064
- } | {
3065
- reason: 'lease_held';
3066
- leaseExpiresAt: string;
3067
- } | {
3068
- reason: 'validation_failed';
3069
- issues: Array<{
3070
- path: string;
3071
- message: string;
3072
- }>;
3073
- } | {
3074
- reason: 'rate_limit_reset';
3075
- retryAfterSeconds: number;
3076
- resetAt: string;
3077
- } | {
3078
- reason: 'cursor_fence_unavailable';
3079
- cause: 'not_ready' | 'below_floor' | 'above_head';
3080
- retryFromStart: true;
3081
- };
3082
- };
3083
- resolvedName?: string;
3084
- retryable?: boolean;
3085
- warnings?: {
3086
- undeclaredFields?: Array<string>;
3087
- undeclaredFieldsTruncated?: true;
3088
- totalUndeclared?: number;
3089
- coalescedWrefs?: Array<{
3090
- fieldPath: string;
3091
- wref: string;
3092
- reason: string;
3093
- }>;
3094
- coalescedWrefsTruncated?: true;
3095
- totalCoalescedWrefs?: number;
3096
- ignoredVersionPins?: Array<{
3097
- fieldPath: string;
3098
- wref: string;
3099
- binding: 'identity';
3100
- }>;
3101
- deprecations?: Array<{
3102
- shape: string;
3103
- message: string;
3104
- removalMilestone: string;
3105
- }>;
3106
- };
3107
- affirmations?: {
3108
- added: Array<string>;
3109
- removed: Array<string>;
3110
- ignored: Array<string>;
3111
- };
3112
- type: 'result';
3113
- chunkOrdinal: number;
3114
- submissionIndex: number;
3115
- } | {
3116
- opIndex: number;
3117
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3118
- name: string;
3119
- submittedName?: string;
3120
- resolvedName?: string;
3121
- warnings?: {
3122
- undeclaredFields?: Array<string>;
3123
- undeclaredFieldsTruncated?: true;
3124
- totalUndeclared?: number;
3125
- coalescedWrefs?: Array<{
3126
- fieldPath: string;
3127
- wref: string;
3128
- reason: string;
3129
- }>;
3130
- coalescedWrefsTruncated?: true;
3131
- totalCoalescedWrefs?: number;
3132
- deprecations?: Array<{
3133
- shape: string;
3134
- message: string;
3135
- removalMilestone: string;
3136
- }>;
3137
- ignoredVersionPins?: Array<{
3138
- fieldPath: string;
3139
- wref: string;
3140
- binding: 'identity';
3141
- }>;
3142
- shapeless?: true;
3143
- };
3144
- affirmations?: {
3145
- added: Array<string>;
3146
- removed: Array<string>;
3147
- ignored: Array<string>;
3148
- };
3149
- status: 'applied' | 'noop';
3150
- version?: number;
3151
- dataHash?: string;
3152
- type: 'result';
3153
- chunkOrdinal: number;
3154
- submissionIndex: number;
3155
- } | {
3156
- opIndex: number;
3157
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3158
- name: string;
3159
- submittedName?: string;
3160
- resolvedName?: string;
3161
- warnings?: {
3162
- undeclaredFields?: Array<string>;
3163
- undeclaredFieldsTruncated?: true;
3164
- totalUndeclared?: number;
3165
- coalescedWrefs?: Array<{
3166
- fieldPath: string;
3167
- wref: string;
3168
- reason: string;
3169
- }>;
3170
- coalescedWrefsTruncated?: true;
3171
- totalCoalescedWrefs?: number;
3172
- deprecations?: Array<{
3173
- shape: string;
3174
- message: string;
3175
- removalMilestone: string;
3176
- }>;
3177
- ignoredVersionPins?: Array<{
3178
- fieldPath: string;
3179
- wref: string;
3180
- binding: 'identity';
3181
- }>;
3182
- shapeless?: true;
3183
- };
3184
- affirmations?: {
3185
- added: Array<string>;
3186
- removed: Array<string>;
3187
- ignored: Array<string>;
3188
- };
3189
- status: 'error';
3190
- errors: Array<{
3191
- code: string;
3192
- message: string;
3193
- path?: string;
3194
- details?: {
3195
- reason: 'expected_version_mismatch';
3196
- expectedVersion: number;
3197
- currentVersion: number;
3198
- } | {
3199
- reason: 'lease_held';
3200
- leaseExpiresAt: string;
3201
- } | {
3202
- reason: 'validation_failed';
3203
- issues: Array<{
3204
- path: string;
3205
- message: string;
3206
- }>;
3207
- } | {
3208
- reason: 'rate_limit_reset';
3209
- retryAfterSeconds: number;
3210
- resetAt: string;
3211
- } | {
3212
- reason: 'cursor_fence_unavailable';
3213
- cause: 'not_ready' | 'below_floor' | 'above_head';
3214
- retryFromStart: true;
3215
- } | {
3216
- reason: 'dependency_failed';
3217
- producerOpIndexes: Array<number>;
3218
- } | {
3219
- reason: 'name_taken';
3220
- name: string;
3221
- takenBy?: {
3222
- durableId: string;
3223
- };
3224
- } | {
3225
- reason: 'target_removed';
3226
- targetDurableId: string;
3227
- fieldPath?: string;
3228
- } | {
3229
- reason: 'target_redacted';
3230
- targetDurableId: string;
3231
- fieldPath?: string;
3232
- } | {
3233
- reason: 'legacy-wrefs-window-ended';
3234
- } | {
3235
- reason: 'invalid_token';
3236
- };
3237
- retryable?: boolean;
3238
- }>;
3239
- type: 'result';
3240
- chunkOrdinal: number;
3241
- submissionIndex: number;
3242
- } | {
3243
- type: 'group';
3244
- chunkOrdinal: number;
3245
- eventRequestId: string;
3246
- requestDigest: string;
3247
- outcome: 'event' | 'no_event';
3248
- repoSeq?: number;
3249
- operations: {
3250
- applied: number;
3251
- noop: number;
3252
- failed: number;
3253
- };
3254
- manifestDigest: string;
3255
- } | {
3256
- type: 'summary';
3257
- submissionId: string;
3258
- streamId: string;
3259
- groupSize: number;
3260
- groups: number;
3261
- operations: {
3262
- applied: number;
3263
- noop: number;
3264
- failed: number;
3265
- total: number;
3266
- };
3267
- repoSeq: {
3268
- first: number | null;
3269
- last: number | null;
3270
- };
3271
- verdict: string;
3272
- durationMs: number;
3273
- truncatedAt?: {
3274
- lineNumber: number;
3275
- message: string;
3276
- };
3277
- manifest: {
3278
- groups: number;
3279
- digest: string;
3280
- };
3281
- } | {
3282
- type: 'error';
3283
- code: string;
3284
- message?: string;
3285
- };
3286
- type CommitApplyCompatibilityResult$1 = {
3287
- event: {
3288
- committedAt: string;
3289
- eventDigest: string;
3290
- operationCount: number;
3291
- repo: {
3292
- orgName: string;
3293
- repoName: string;
3294
- };
3295
- repoSeq: string;
3296
- } | null;
3297
- eventRequestId: string;
3298
- outcome: 'event' | 'no_event';
3299
- requestDigest: string;
3300
- schemaVersion: 'operation-event-receipt/v1';
3301
- submissionId?: string;
3302
- pruned?: true;
3303
- committer?: string;
3304
- createdByEmail?: string;
3305
- message?: string;
3306
- operationCount: number;
3307
- repoSeq?: number;
3308
- operations: Array<{
3309
- opIndex?: number;
3310
- name: string;
3311
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3312
- version: number;
3313
- dataHash: string;
3314
- status?: 'applied' | 'noop';
3315
- affirmations?: {
3316
- added: Array<string>;
3317
- removed: Array<string>;
3318
- ignored: Array<string>;
3319
- };
3320
- warnings?: {
3321
- undeclaredFields?: Array<string>;
3322
- undeclaredFieldsTruncated?: true;
3323
- totalUndeclared?: number;
3324
- coalescedWrefs?: Array<{
3325
- fieldPath: string;
3326
- wref: string;
3327
- reason: string;
3328
- }>;
3329
- coalescedWrefsTruncated?: true;
3330
- totalCoalescedWrefs?: number;
3331
- ignoredVersionPins?: Array<{
3332
- fieldPath: string;
3333
- wref: string;
3334
- binding: 'identity';
3335
- }>;
3336
- deprecations?: Array<{
3337
- shape: string;
3338
- message: string;
3339
- removalMilestone: string;
3340
- }>;
3341
- };
3342
- }>;
3343
- receipt: {
3344
- event: {
3345
- committedAt: string;
3346
- eventDigest: string;
3347
- operationCount: number;
3348
- repo: {
3349
- orgName: string;
3350
- repoName: string;
3351
- };
3352
- repoSeq: string;
3353
- } | null;
3354
- eventRequestId: string;
3355
- operations: Array<{
3356
- opIndex?: number;
3357
- name: string;
3358
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3359
- version: number;
3360
- dataHash: string;
3361
- status?: 'applied' | 'noop';
3362
- affirmations?: {
3363
- added: Array<string>;
3364
- removed: Array<string>;
3365
- ignored: Array<string>;
3366
- };
3367
- warnings?: {
3368
- undeclaredFields?: Array<string>;
3369
- undeclaredFieldsTruncated?: true;
3370
- totalUndeclared?: number;
3371
- coalescedWrefs?: Array<{
3372
- fieldPath: string;
3373
- wref: string;
3374
- reason: string;
3375
- }>;
3376
- coalescedWrefsTruncated?: true;
3377
- totalCoalescedWrefs?: number;
3378
- ignoredVersionPins?: Array<{
3379
- fieldPath: string;
3380
- wref: string;
3381
- binding: 'identity';
3382
- }>;
3383
- deprecations?: Array<{
3384
- shape: string;
3385
- message: string;
3386
- removalMilestone: string;
3387
- }>;
3388
- };
3389
- } | {
3390
- opIndex?: number;
3391
- name: string;
3392
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3393
- version?: number;
3394
- dataHash?: string;
3395
- status?: 'success' | 'noop' | 'failed';
3396
- error?: {
3397
- code: string;
3398
- message: string;
3399
- details?: {
3400
- reason: 'expected_version_mismatch';
3401
- expectedVersion: number;
3402
- currentVersion: number;
3403
- } | {
3404
- reason: 'lease_held';
3405
- leaseExpiresAt: string;
3406
- } | {
3407
- reason: 'validation_failed';
3408
- issues: Array<{
3409
- path: string;
3410
- message: string;
3411
- }>;
3412
- } | {
3413
- reason: 'rate_limit_reset';
3414
- retryAfterSeconds: number;
3415
- resetAt: string;
3416
- } | {
3417
- reason: 'cursor_fence_unavailable';
3418
- cause: 'not_ready' | 'below_floor' | 'above_head';
3419
- retryFromStart: true;
3420
- };
3421
- };
3422
- resolvedName?: string;
3423
- retryable?: boolean;
3424
- warnings?: {
3425
- undeclaredFields?: Array<string>;
3426
- undeclaredFieldsTruncated?: true;
3427
- totalUndeclared?: number;
3428
- coalescedWrefs?: Array<{
3429
- fieldPath: string;
3430
- wref: string;
3431
- reason: string;
3432
- }>;
3433
- coalescedWrefsTruncated?: true;
3434
- totalCoalescedWrefs?: number;
3435
- ignoredVersionPins?: Array<{
3436
- fieldPath: string;
3437
- wref: string;
3438
- binding: 'identity';
3439
- }>;
3440
- deprecations?: Array<{
3441
- shape: string;
3442
- message: string;
3443
- removalMilestone: string;
3444
- }>;
3445
- };
3446
- affirmations?: {
3447
- added: Array<string>;
3448
- removed: Array<string>;
3449
- ignored: Array<string>;
3450
- };
3451
- }>;
3452
- outcome: 'event' | 'no_event';
3453
- requestDigest: string;
3454
- schemaVersion: 'operation-event-receipt/v1';
3455
- submissionId?: string;
3456
- pruned?: true;
3457
- };
3458
- } | {
3459
- event: {
3460
- committedAt: string;
3461
- eventDigest: string;
3462
- operationCount: number;
3463
- repo: {
3464
- orgName: string;
3465
- repoName: string;
3466
- };
3467
- repoSeq: string;
3468
- } | null;
3469
- eventRequestId: string;
3470
- outcome: 'event' | 'no_event';
3471
- requestDigest: string;
3472
- schemaVersion: 'operation-event-receipt/v2';
3473
- submissionId?: string;
3474
- pruned?: true;
3475
- committer?: string;
3476
- createdByEmail?: string;
3477
- message?: string;
3478
- operationCount: number;
3479
- repoSeq?: number;
3480
- operations: Array<{
3481
- opIndex: number;
3482
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3483
- name: string;
3484
- submittedName?: string;
3485
- resolvedName?: string;
3486
- warnings?: {
3487
- undeclaredFields?: Array<string>;
3488
- undeclaredFieldsTruncated?: true;
3489
- totalUndeclared?: number;
3490
- coalescedWrefs?: Array<{
3491
- fieldPath: string;
3492
- wref: string;
3493
- reason: string;
3494
- }>;
3495
- coalescedWrefsTruncated?: true;
3496
- totalCoalescedWrefs?: number;
3497
- deprecations?: Array<{
3498
- shape: string;
3499
- message: string;
3500
- removalMilestone: string;
3501
- }>;
3502
- ignoredVersionPins?: Array<{
3503
- fieldPath: string;
3504
- wref: string;
3505
- binding: 'identity';
3506
- }>;
3507
- shapeless?: true;
3508
- };
3509
- affirmations?: {
3510
- added: Array<string>;
3511
- removed: Array<string>;
3512
- ignored: Array<string>;
3513
- };
3514
- status: 'applied' | 'noop';
3515
- version?: number;
3516
- dataHash?: string;
3517
- } | {
3518
- opIndex: number;
3519
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3520
- name: string;
3521
- submittedName?: string;
3522
- resolvedName?: string;
3523
- warnings?: {
3524
- undeclaredFields?: Array<string>;
3525
- undeclaredFieldsTruncated?: true;
3526
- totalUndeclared?: number;
3527
- coalescedWrefs?: Array<{
3528
- fieldPath: string;
3529
- wref: string;
3530
- reason: string;
3531
- }>;
3532
- coalescedWrefsTruncated?: true;
3533
- totalCoalescedWrefs?: number;
3534
- deprecations?: Array<{
3535
- shape: string;
3536
- message: string;
3537
- removalMilestone: string;
3538
- }>;
3539
- ignoredVersionPins?: Array<{
3540
- fieldPath: string;
3541
- wref: string;
3542
- binding: 'identity';
3543
- }>;
3544
- shapeless?: true;
3545
- };
3546
- affirmations?: {
3547
- added: Array<string>;
3548
- removed: Array<string>;
3549
- ignored: Array<string>;
3550
- };
3551
- status: 'error';
3552
- errors: Array<{
3553
- code: string;
3554
- message: string;
3555
- path?: string;
3556
- details?: {
3557
- reason: 'expected_version_mismatch';
3558
- expectedVersion: number;
3559
- currentVersion: number;
3560
- } | {
3561
- reason: 'lease_held';
3562
- leaseExpiresAt: string;
3563
- } | {
3564
- reason: 'validation_failed';
3565
- issues: Array<{
3566
- path: string;
3567
- message: string;
3568
- }>;
3569
- } | {
3570
- reason: 'rate_limit_reset';
3571
- retryAfterSeconds: number;
3572
- resetAt: string;
3573
- } | {
3574
- reason: 'cursor_fence_unavailable';
3575
- cause: 'not_ready' | 'below_floor' | 'above_head';
3576
- retryFromStart: true;
3577
- } | {
3578
- reason: 'dependency_failed';
3579
- producerOpIndexes: Array<number>;
3580
- } | {
3581
- reason: 'name_taken';
3582
- name: string;
3583
- takenBy?: {
3584
- durableId: string;
3585
- };
3586
- } | {
3587
- reason: 'target_removed';
3588
- targetDurableId: string;
3589
- fieldPath?: string;
3590
- } | {
3591
- reason: 'target_redacted';
3592
- targetDurableId: string;
3593
- fieldPath?: string;
3594
- } | {
3595
- reason: 'legacy-wrefs-window-ended';
3596
- } | {
3597
- reason: 'invalid_token';
3598
- };
3599
- retryable?: boolean;
3600
- }>;
3601
- }>;
3602
- receipt: {
3603
- event: {
3604
- committedAt: string;
3605
- eventDigest: string;
3606
- operationCount: number;
3607
- repo: {
3608
- orgName: string;
3609
- repoName: string;
3610
- };
3611
- repoSeq: string;
3612
- } | null;
3613
- eventRequestId: string;
3614
- operations: Array<{
3615
- opIndex: number;
3616
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3617
- name: string;
3618
- submittedName?: string;
3619
- resolvedName?: string;
3620
- warnings?: {
3621
- undeclaredFields?: Array<string>;
3622
- undeclaredFieldsTruncated?: true;
3623
- totalUndeclared?: number;
3624
- coalescedWrefs?: Array<{
3625
- fieldPath: string;
3626
- wref: string;
3627
- reason: string;
3628
- }>;
3629
- coalescedWrefsTruncated?: true;
3630
- totalCoalescedWrefs?: number;
3631
- deprecations?: Array<{
3632
- shape: string;
3633
- message: string;
3634
- removalMilestone: string;
3635
- }>;
3636
- ignoredVersionPins?: Array<{
3637
- fieldPath: string;
3638
- wref: string;
3639
- binding: 'identity';
3640
- }>;
3641
- shapeless?: true;
3642
- };
3643
- affirmations?: {
3644
- added: Array<string>;
3645
- removed: Array<string>;
3646
- ignored: Array<string>;
3647
- };
3648
- status: 'applied' | 'noop';
3649
- version?: number;
3650
- dataHash?: string;
3651
- } | {
3652
- opIndex: number;
3653
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3654
- name: string;
3655
- submittedName?: string;
3656
- resolvedName?: string;
3657
- warnings?: {
3658
- undeclaredFields?: Array<string>;
3659
- undeclaredFieldsTruncated?: true;
3660
- totalUndeclared?: number;
3661
- coalescedWrefs?: Array<{
3662
- fieldPath: string;
3663
- wref: string;
3664
- reason: string;
3665
- }>;
3666
- coalescedWrefsTruncated?: true;
3667
- totalCoalescedWrefs?: number;
3668
- deprecations?: Array<{
3669
- shape: string;
3670
- message: string;
3671
- removalMilestone: string;
3672
- }>;
3673
- ignoredVersionPins?: Array<{
3674
- fieldPath: string;
3675
- wref: string;
3676
- binding: 'identity';
3677
- }>;
3678
- shapeless?: true;
3679
- };
3680
- affirmations?: {
3681
- added: Array<string>;
3682
- removed: Array<string>;
3683
- ignored: Array<string>;
3684
- };
3685
- status: 'error';
3686
- errors: Array<{
3687
- code: string;
3688
- message: string;
3689
- path?: string;
3690
- details?: {
3691
- reason: 'expected_version_mismatch';
3692
- expectedVersion: number;
3693
- currentVersion: number;
3694
- } | {
3695
- reason: 'lease_held';
3696
- leaseExpiresAt: string;
3697
- } | {
3698
- reason: 'validation_failed';
3699
- issues: Array<{
3700
- path: string;
3701
- message: string;
3702
- }>;
3703
- } | {
3704
- reason: 'rate_limit_reset';
3705
- retryAfterSeconds: number;
3706
- resetAt: string;
3707
- } | {
3708
- reason: 'cursor_fence_unavailable';
3709
- cause: 'not_ready' | 'below_floor' | 'above_head';
3710
- retryFromStart: true;
3711
- } | {
3712
- reason: 'dependency_failed';
3713
- producerOpIndexes: Array<number>;
3714
- } | {
3715
- reason: 'name_taken';
3716
- name: string;
3717
- takenBy?: {
3718
- durableId: string;
3719
- };
3720
- } | {
3721
- reason: 'target_removed';
3722
- targetDurableId: string;
3723
- fieldPath?: string;
3724
- } | {
3725
- reason: 'target_redacted';
3726
- targetDurableId: string;
3727
- fieldPath?: string;
3728
- } | {
3729
- reason: 'legacy-wrefs-window-ended';
3730
- } | {
3731
- reason: 'invalid_token';
3732
- };
3733
- retryable?: boolean;
3734
- }>;
3735
- }>;
3736
- outcome: 'event' | 'no_event';
3737
- requestDigest: string;
3738
- schemaVersion: 'operation-event-receipt/v2';
3739
- submissionId?: string;
3740
- pruned?: true;
3741
- };
3742
- };
3743
- type CollectionMutationCompatibilityResult = {
3744
- event: {
3745
- committedAt: string;
3746
- eventDigest: string;
3747
- operationCount: number;
3748
- repo: {
3749
- orgName: string;
3750
- repoName: string;
3751
- };
3752
- repoSeq: string;
3753
- } | null;
3754
- eventRequestId: string;
3755
- operations: Array<{
3756
- opIndex?: number;
3757
- name: string;
3758
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3759
- version: number;
3760
- dataHash: string;
3761
- status?: 'applied' | 'noop';
3762
1916
  affirmations?: {
3763
1917
  added: Array<string>;
3764
1918
  removed: Array<string>;
3765
1919
  ignored: Array<string>;
3766
1920
  };
3767
- warnings?: {
3768
- undeclaredFields?: Array<string>;
3769
- undeclaredFieldsTruncated?: true;
3770
- totalUndeclared?: number;
3771
- coalescedWrefs?: Array<{
3772
- fieldPath: string;
3773
- wref: string;
3774
- reason: string;
3775
- }>;
3776
- coalescedWrefsTruncated?: true;
3777
- totalCoalescedWrefs?: number;
3778
- ignoredVersionPins?: Array<{
3779
- fieldPath: string;
3780
- wref: string;
3781
- binding: 'identity';
3782
- }>;
3783
- deprecations?: Array<{
3784
- shape: string;
3785
- message: string;
3786
- removalMilestone: string;
3787
- }>;
3788
- };
3789
- } | {
3790
- opIndex?: number;
3791
- name: string;
3792
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3793
- version?: number;
3794
- dataHash?: string;
3795
- status?: 'success' | 'noop' | 'failed';
3796
- error?: {
1921
+ status: 'error';
1922
+ errors: Array<{
3797
1923
  code: string;
3798
1924
  message: string;
1925
+ path?: string;
3799
1926
  details?: {
3800
1927
  reason: 'expected_version_mismatch';
3801
1928
  expectedVersion: number;
@@ -3817,201 +1944,41 @@ type CollectionMutationCompatibilityResult = {
3817
1944
  reason: 'cursor_fence_unavailable';
3818
1945
  cause: 'not_ready' | 'below_floor' | 'above_head';
3819
1946
  retryFromStart: true;
3820
- };
3821
- };
3822
- resolvedName?: string;
3823
- retryable?: boolean;
3824
- warnings?: {
3825
- undeclaredFields?: Array<string>;
3826
- undeclaredFieldsTruncated?: true;
3827
- totalUndeclared?: number;
3828
- coalescedWrefs?: Array<{
3829
- fieldPath: string;
3830
- wref: string;
3831
- reason: string;
3832
- }>;
3833
- coalescedWrefsTruncated?: true;
3834
- totalCoalescedWrefs?: number;
3835
- ignoredVersionPins?: Array<{
3836
- fieldPath: string;
3837
- wref: string;
3838
- binding: 'identity';
3839
- }>;
3840
- deprecations?: Array<{
3841
- shape: string;
3842
- message: string;
3843
- removalMilestone: string;
3844
- }>;
3845
- };
3846
- affirmations?: {
3847
- added: Array<string>;
3848
- removed: Array<string>;
3849
- ignored: Array<string>;
3850
- };
3851
- }>;
3852
- outcome: 'event' | 'no_event';
3853
- requestDigest: string;
3854
- schemaVersion: 'operation-event-receipt/v1';
3855
- submissionId?: string;
3856
- pruned?: true;
3857
- type: 'arc' | 'bond' | 'set' | 'list' | 'pair';
3858
- wref: string;
3859
- version: number;
3860
- memberCount: number;
3861
- dataHash?: string;
3862
- operationCount: number;
3863
- status: 'created' | 'updated' | 'noop';
3864
- warnings?: {
3865
- undeclaredFields?: Array<string>;
3866
- undeclaredFieldsTruncated?: true;
3867
- totalUndeclared?: number;
3868
- coalescedWrefs?: Array<{
3869
- fieldPath: string;
3870
- wref: string;
3871
- reason: string;
3872
- }>;
3873
- coalescedWrefsTruncated?: true;
3874
- totalCoalescedWrefs?: number;
3875
- deprecations?: Array<{
3876
- shape: string;
3877
- message: string;
3878
- removalMilestone: string;
3879
- }>;
3880
- ignoredVersionPins?: Array<{
3881
- fieldPath: string;
3882
- wref: string;
3883
- binding: 'identity';
3884
- }>;
3885
- shapeless?: true;
3886
- };
3887
- receipt: {
3888
- event: {
3889
- committedAt: string;
3890
- eventDigest: string;
3891
- operationCount: number;
3892
- repo: {
3893
- orgName: string;
3894
- repoName: string;
3895
- };
3896
- repoSeq: string;
3897
- } | null;
3898
- eventRequestId: string;
3899
- operations: Array<{
3900
- opIndex?: number;
3901
- name: string;
3902
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3903
- version: number;
3904
- dataHash: string;
3905
- status?: 'applied' | 'noop';
3906
- affirmations?: {
3907
- added: Array<string>;
3908
- removed: Array<string>;
3909
- ignored: Array<string>;
3910
- };
3911
- warnings?: {
3912
- undeclaredFields?: Array<string>;
3913
- undeclaredFieldsTruncated?: true;
3914
- totalUndeclared?: number;
3915
- coalescedWrefs?: Array<{
3916
- fieldPath: string;
3917
- wref: string;
3918
- reason: string;
3919
- }>;
3920
- coalescedWrefsTruncated?: true;
3921
- totalCoalescedWrefs?: number;
3922
- ignoredVersionPins?: Array<{
3923
- fieldPath: string;
3924
- wref: string;
3925
- binding: 'identity';
3926
- }>;
3927
- deprecations?: Array<{
3928
- shape: string;
3929
- message: string;
3930
- removalMilestone: string;
3931
- }>;
3932
- };
3933
- } | {
3934
- opIndex?: number;
3935
- name: string;
3936
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3937
- version?: number;
3938
- dataHash?: string;
3939
- status?: 'success' | 'noop' | 'failed';
3940
- error?: {
3941
- code: string;
3942
- message: string;
3943
- details?: {
3944
- reason: 'expected_version_mismatch';
3945
- expectedVersion: number;
3946
- currentVersion: number;
3947
- } | {
3948
- reason: 'lease_held';
3949
- leaseExpiresAt: string;
3950
- } | {
3951
- reason: 'validation_failed';
3952
- issues: Array<{
3953
- path: string;
3954
- message: string;
3955
- }>;
3956
- } | {
3957
- reason: 'rate_limit_reset';
3958
- retryAfterSeconds: number;
3959
- resetAt: string;
3960
- } | {
3961
- reason: 'cursor_fence_unavailable';
3962
- cause: 'not_ready' | 'below_floor' | 'above_head';
3963
- retryFromStart: true;
3964
- };
3965
- };
3966
- resolvedName?: string;
3967
- retryable?: boolean;
3968
- warnings?: {
3969
- undeclaredFields?: Array<string>;
3970
- undeclaredFieldsTruncated?: true;
3971
- totalUndeclared?: number;
3972
- coalescedWrefs?: Array<{
3973
- fieldPath: string;
3974
- wref: string;
3975
- reason: string;
3976
- }>;
3977
- coalescedWrefsTruncated?: true;
3978
- totalCoalescedWrefs?: number;
3979
- ignoredVersionPins?: Array<{
3980
- fieldPath: string;
3981
- wref: string;
3982
- binding: 'identity';
3983
- }>;
3984
- deprecations?: Array<{
3985
- shape: string;
3986
- message: string;
3987
- removalMilestone: string;
3988
- }>;
3989
- };
3990
- affirmations?: {
3991
- added: Array<string>;
3992
- removed: Array<string>;
3993
- ignored: Array<string>;
3994
- };
3995
- }>;
3996
- outcome: 'event' | 'no_event';
3997
- requestDigest: string;
3998
- schemaVersion: 'operation-event-receipt/v1';
3999
- submissionId?: string;
4000
- pruned?: true;
4001
- };
4002
- } | {
4003
- event: {
4004
- committedAt: string;
4005
- eventDigest: string;
4006
- operationCount: number;
4007
- repo: {
4008
- orgName: string;
4009
- repoName: string;
4010
- };
4011
- repoSeq: string;
4012
- } | null;
4013
- eventRequestId: string;
4014
- 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<{
4015
1982
  opIndex: number;
4016
1983
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
4017
1984
  name: string;
@@ -4133,40 +2100,30 @@ type CollectionMutationCompatibilityResult = {
4133
2100
  retryable?: boolean;
4134
2101
  }>;
4135
2102
  }>;
4136
- outcome: 'event' | 'no_event';
4137
- requestDigest: string;
4138
- schemaVersion: 'operation-event-receipt/v2';
4139
- submissionId?: string;
4140
- pruned?: true;
4141
- type: 'arc' | 'bond' | 'set' | 'list' | 'pair';
4142
- wref: string;
4143
- version: number;
4144
- memberCount: number;
4145
- dataHash?: string;
4146
- operationCount: number;
4147
- status: 'created' | 'updated' | 'noop';
4148
- warnings?: {
4149
- undeclaredFields?: Array<string>;
4150
- undeclaredFieldsTruncated?: true;
4151
- totalUndeclared?: number;
4152
- coalescedWrefs?: Array<{
4153
- fieldPath: string;
4154
- wref: string;
4155
- reason: string;
4156
- }>;
4157
- coalescedWrefsTruncated?: true;
4158
- totalCoalescedWrefs?: number;
4159
- deprecations?: Array<{
4160
- shape: string;
4161
- message: string;
4162
- removalMilestone: string;
4163
- }>;
4164
- ignoredVersionPins?: Array<{
4165
- fieldPath: string;
4166
- wref: string;
4167
- binding: 'identity';
4168
- }>;
4169
- 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;
4170
2127
  };
4171
2128
  receipt: {
4172
2129
  event: {
@@ -4309,7 +2266,178 @@ type CollectionMutationCompatibilityResult = {
4309
2266
  pruned?: true;
4310
2267
  };
4311
2268
  };
4312
- 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 = {
4313
2441
  event: {
4314
2442
  committedAt: string;
4315
2443
  eventDigest: string;
@@ -4321,6 +2449,16 @@ type RemoveCompatibilityResult = {
4321
2449
  repoSeq: string;
4322
2450
  } | null;
4323
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;
4324
2462
  operations: Array<{
4325
2463
  opIndex: number;
4326
2464
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -4443,12 +2581,6 @@ type RemoveCompatibilityResult = {
4443
2581
  retryable?: boolean;
4444
2582
  }>;
4445
2583
  }>;
4446
- outcome: 'event' | 'no_event';
4447
- requestDigest: string;
4448
- schemaVersion: 'operation-event-receipt/v2';
4449
- submissionId?: string;
4450
- pruned?: true;
4451
- removed: true;
4452
2584
  receipt: {
4453
2585
  event: {
4454
2586
  committedAt: string;
@@ -4590,7 +2722,7 @@ type RemoveCompatibilityResult = {
4590
2722
  pruned?: true;
4591
2723
  };
4592
2724
  };
4593
- type RenameCompatibilityResult = {
2725
+ type CollectionMutationCompatibilityResult = {
4594
2726
  event: {
4595
2727
  committedAt: string;
4596
2728
  eventDigest: string;
@@ -4603,17 +2735,11 @@ type RenameCompatibilityResult = {
4603
2735
  } | null;
4604
2736
  eventRequestId: string;
4605
2737
  operations: Array<{
4606
- opIndex?: number;
2738
+ opIndex: number;
2739
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
4607
2740
  name: string;
4608
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4609
- version: number;
4610
- dataHash: string;
4611
- status?: 'applied' | 'noop';
4612
- affirmations?: {
4613
- added: Array<string>;
4614
- removed: Array<string>;
4615
- ignored: Array<string>;
4616
- };
2741
+ submittedName?: string;
2742
+ resolvedName?: string;
4617
2743
  warnings?: {
4618
2744
  undeclaredFields?: Array<string>;
4619
2745
  undeclaredFieldsTruncated?: true;
@@ -4625,27 +2751,65 @@ type RenameCompatibilityResult = {
4625
2751
  }>;
4626
2752
  coalescedWrefsTruncated?: true;
4627
2753
  totalCoalescedWrefs?: number;
2754
+ deprecations?: Array<{
2755
+ shape: string;
2756
+ message: string;
2757
+ removalMilestone: string;
2758
+ }>;
4628
2759
  ignoredVersionPins?: Array<{
4629
2760
  fieldPath: string;
4630
2761
  wref: string;
4631
2762
  binding: 'identity';
4632
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;
4633
2791
  deprecations?: Array<{
4634
2792
  shape: string;
4635
2793
  message: string;
4636
2794
  removalMilestone: string;
4637
2795
  }>;
2796
+ ignoredVersionPins?: Array<{
2797
+ fieldPath: string;
2798
+ wref: string;
2799
+ binding: 'identity';
2800
+ }>;
2801
+ shapeless?: true;
4638
2802
  };
4639
- } | {
4640
- opIndex?: number;
4641
- name: string;
4642
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4643
- version?: number;
4644
- dataHash?: string;
4645
- status?: 'success' | 'noop' | 'failed';
4646
- error?: {
2803
+ affirmations?: {
2804
+ added: Array<string>;
2805
+ removed: Array<string>;
2806
+ ignored: Array<string>;
2807
+ };
2808
+ status: 'error';
2809
+ errors: Array<{
4647
2810
  code: string;
4648
2811
  message: string;
2812
+ path?: string;
4649
2813
  details?: {
4650
2814
  reason: 'expected_version_mismatch';
4651
2815
  expectedVersion: number;
@@ -4667,44 +2831,66 @@ type RenameCompatibilityResult = {
4667
2831
  reason: 'cursor_fence_unavailable';
4668
2832
  cause: 'not_ready' | 'below_floor' | 'above_head';
4669
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';
4670
2855
  };
4671
- };
4672
- resolvedName?: string;
4673
- retryable?: boolean;
4674
- warnings?: {
4675
- undeclaredFields?: Array<string>;
4676
- undeclaredFieldsTruncated?: true;
4677
- totalUndeclared?: number;
4678
- coalescedWrefs?: Array<{
4679
- fieldPath: string;
4680
- wref: string;
4681
- reason: string;
4682
- }>;
4683
- coalescedWrefsTruncated?: true;
4684
- totalCoalescedWrefs?: number;
4685
- ignoredVersionPins?: Array<{
4686
- fieldPath: string;
4687
- wref: string;
4688
- binding: 'identity';
4689
- }>;
4690
- deprecations?: Array<{
4691
- shape: string;
4692
- message: string;
4693
- removalMilestone: string;
4694
- }>;
4695
- };
4696
- affirmations?: {
4697
- added: Array<string>;
4698
- removed: Array<string>;
4699
- ignored: Array<string>;
4700
- };
2856
+ retryable?: boolean;
2857
+ }>;
4701
2858
  }>;
4702
2859
  outcome: 'event' | 'no_event';
4703
2860
  requestDigest: string;
4704
- schemaVersion: 'operation-event-receipt/v1';
2861
+ schemaVersion: 'operation-event-receipt/v2';
4705
2862
  submissionId?: string;
4706
2863
  pruned?: true;
4707
- 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
+ };
4708
2894
  receipt: {
4709
2895
  event: {
4710
2896
  committedAt: string;
@@ -4718,17 +2904,11 @@ type RenameCompatibilityResult = {
4718
2904
  } | null;
4719
2905
  eventRequestId: string;
4720
2906
  operations: Array<{
4721
- opIndex?: number;
2907
+ opIndex: number;
2908
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
4722
2909
  name: string;
4723
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4724
- version: number;
4725
- dataHash: string;
4726
- status?: 'applied' | 'noop';
4727
- affirmations?: {
4728
- added: Array<string>;
4729
- removed: Array<string>;
4730
- ignored: Array<string>;
4731
- };
2910
+ submittedName?: string;
2911
+ resolvedName?: string;
4732
2912
  warnings?: {
4733
2913
  undeclaredFields?: Array<string>;
4734
2914
  undeclaredFieldsTruncated?: true;
@@ -4740,27 +2920,65 @@ type RenameCompatibilityResult = {
4740
2920
  }>;
4741
2921
  coalescedWrefsTruncated?: true;
4742
2922
  totalCoalescedWrefs?: number;
2923
+ deprecations?: Array<{
2924
+ shape: string;
2925
+ message: string;
2926
+ removalMilestone: string;
2927
+ }>;
4743
2928
  ignoredVersionPins?: Array<{
4744
2929
  fieldPath: string;
4745
2930
  wref: string;
4746
2931
  binding: 'identity';
4747
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;
4748
2960
  deprecations?: Array<{
4749
2961
  shape: string;
4750
2962
  message: string;
4751
2963
  removalMilestone: string;
4752
2964
  }>;
2965
+ ignoredVersionPins?: Array<{
2966
+ fieldPath: string;
2967
+ wref: string;
2968
+ binding: 'identity';
2969
+ }>;
2970
+ shapeless?: true;
4753
2971
  };
4754
- } | {
4755
- opIndex?: number;
4756
- name: string;
4757
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4758
- version?: number;
4759
- dataHash?: string;
4760
- status?: 'success' | 'noop' | 'failed';
4761
- error?: {
2972
+ affirmations?: {
2973
+ added: Array<string>;
2974
+ removed: Array<string>;
2975
+ ignored: Array<string>;
2976
+ };
2977
+ status: 'error';
2978
+ errors: Array<{
4762
2979
  code: string;
4763
2980
  message: string;
2981
+ path?: string;
4764
2982
  details?: {
4765
2983
  reason: 'expected_version_mismatch';
4766
2984
  expectedVersion: number;
@@ -4780,47 +2998,41 @@ type RenameCompatibilityResult = {
4780
2998
  resetAt: string;
4781
2999
  } | {
4782
3000
  reason: 'cursor_fence_unavailable';
4783
- cause: 'not_ready' | 'below_floor' | 'above_head';
4784
- retryFromStart: true;
4785
- };
4786
- };
4787
- resolvedName?: string;
4788
- retryable?: boolean;
4789
- warnings?: {
4790
- undeclaredFields?: Array<string>;
4791
- undeclaredFieldsTruncated?: true;
4792
- totalUndeclared?: number;
4793
- coalescedWrefs?: Array<{
4794
- fieldPath: string;
4795
- wref: string;
4796
- reason: string;
4797
- }>;
4798
- coalescedWrefsTruncated?: true;
4799
- totalCoalescedWrefs?: number;
4800
- ignoredVersionPins?: Array<{
4801
- fieldPath: string;
4802
- wref: string;
4803
- binding: 'identity';
4804
- }>;
4805
- deprecations?: Array<{
4806
- shape: string;
4807
- message: string;
4808
- removalMilestone: string;
4809
- }>;
4810
- };
4811
- affirmations?: {
4812
- added: Array<string>;
4813
- removed: Array<string>;
4814
- ignored: Array<string>;
4815
- };
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
+ }>;
4816
3027
  }>;
4817
3028
  outcome: 'event' | 'no_event';
4818
3029
  requestDigest: string;
4819
- schemaVersion: 'operation-event-receipt/v1';
3030
+ schemaVersion: 'operation-event-receipt/v2';
4820
3031
  submissionId?: string;
4821
3032
  pruned?: true;
4822
3033
  };
4823
- } | {
3034
+ };
3035
+ type RemoveCompatibilityResult = {
4824
3036
  event: {
4825
3037
  committedAt: string;
4826
3038
  eventDigest: string;
@@ -4959,7 +3171,7 @@ type RenameCompatibilityResult = {
4959
3171
  schemaVersion: 'operation-event-receipt/v2';
4960
3172
  submissionId?: string;
4961
3173
  pruned?: true;
4962
- renamed: true;
3174
+ removed: true;
4963
3175
  receipt: {
4964
3176
  event: {
4965
3177
  committedAt: string;
@@ -5101,7 +3313,7 @@ type RenameCompatibilityResult = {
5101
3313
  pruned?: true;
5102
3314
  };
5103
3315
  };
5104
- type RewriteCompatibilityResult = {
3316
+ type RenameCompatibilityResult = {
5105
3317
  event: {
5106
3318
  committedAt: string;
5107
3319
  eventDigest: string;
@@ -5240,9 +3452,7 @@ type RewriteCompatibilityResult = {
5240
3452
  schemaVersion: 'operation-event-receipt/v2';
5241
3453
  submissionId?: string;
5242
3454
  pruned?: true;
5243
- status?: 'applied' | 'noop';
5244
- version?: number;
5245
- dataHash?: string;
3455
+ renamed: true;
5246
3456
  receipt: {
5247
3457
  event: {
5248
3458
  committedAt: string;
@@ -5384,240 +3594,7 @@ type RewriteCompatibilityResult = {
5384
3594
  pruned?: true;
5385
3595
  };
5386
3596
  };
5387
- type ShapeChangeCompatibilityResult = {
5388
- event: {
5389
- committedAt: string;
5390
- eventDigest: string;
5391
- operationCount: number;
5392
- repo: {
5393
- orgName: string;
5394
- repoName: string;
5395
- };
5396
- repoSeq: string;
5397
- } | null;
5398
- eventRequestId: string;
5399
- operations: Array<{
5400
- opIndex?: number;
5401
- name: string;
5402
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5403
- version: number;
5404
- dataHash: string;
5405
- status?: 'applied' | 'noop';
5406
- affirmations?: {
5407
- added: Array<string>;
5408
- removed: Array<string>;
5409
- ignored: Array<string>;
5410
- };
5411
- warnings?: {
5412
- undeclaredFields?: Array<string>;
5413
- undeclaredFieldsTruncated?: true;
5414
- totalUndeclared?: number;
5415
- coalescedWrefs?: Array<{
5416
- fieldPath: string;
5417
- wref: string;
5418
- reason: string;
5419
- }>;
5420
- coalescedWrefsTruncated?: true;
5421
- totalCoalescedWrefs?: number;
5422
- ignoredVersionPins?: Array<{
5423
- fieldPath: string;
5424
- wref: string;
5425
- binding: 'identity';
5426
- }>;
5427
- deprecations?: Array<{
5428
- shape: string;
5429
- message: string;
5430
- removalMilestone: string;
5431
- }>;
5432
- };
5433
- } | {
5434
- opIndex?: number;
5435
- name: string;
5436
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5437
- version?: number;
5438
- dataHash?: string;
5439
- status?: 'success' | 'noop' | 'failed';
5440
- error?: {
5441
- code: string;
5442
- message: string;
5443
- details?: {
5444
- reason: 'expected_version_mismatch';
5445
- expectedVersion: number;
5446
- currentVersion: number;
5447
- } | {
5448
- reason: 'lease_held';
5449
- leaseExpiresAt: string;
5450
- } | {
5451
- reason: 'validation_failed';
5452
- issues: Array<{
5453
- path: string;
5454
- message: string;
5455
- }>;
5456
- } | {
5457
- reason: 'rate_limit_reset';
5458
- retryAfterSeconds: number;
5459
- resetAt: string;
5460
- } | {
5461
- reason: 'cursor_fence_unavailable';
5462
- cause: 'not_ready' | 'below_floor' | 'above_head';
5463
- retryFromStart: true;
5464
- };
5465
- };
5466
- resolvedName?: string;
5467
- retryable?: boolean;
5468
- warnings?: {
5469
- undeclaredFields?: Array<string>;
5470
- undeclaredFieldsTruncated?: true;
5471
- totalUndeclared?: number;
5472
- coalescedWrefs?: Array<{
5473
- fieldPath: string;
5474
- wref: string;
5475
- reason: string;
5476
- }>;
5477
- coalescedWrefsTruncated?: true;
5478
- totalCoalescedWrefs?: number;
5479
- ignoredVersionPins?: Array<{
5480
- fieldPath: string;
5481
- wref: string;
5482
- binding: 'identity';
5483
- }>;
5484
- deprecations?: Array<{
5485
- shape: string;
5486
- message: string;
5487
- removalMilestone: string;
5488
- }>;
5489
- };
5490
- affirmations?: {
5491
- added: Array<string>;
5492
- removed: Array<string>;
5493
- ignored: Array<string>;
5494
- };
5495
- }>;
5496
- outcome: 'event' | 'no_event';
5497
- requestDigest: string;
5498
- schemaVersion: 'operation-event-receipt/v1';
5499
- submissionId?: string;
5500
- pruned?: true;
5501
- name: string;
5502
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
5503
- version: number;
5504
- dataHash: string;
5505
- receipt: {
5506
- event: {
5507
- committedAt: string;
5508
- eventDigest: string;
5509
- operationCount: number;
5510
- repo: {
5511
- orgName: string;
5512
- repoName: string;
5513
- };
5514
- repoSeq: string;
5515
- } | null;
5516
- eventRequestId: string;
5517
- operations: Array<{
5518
- opIndex?: number;
5519
- name: string;
5520
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5521
- version: number;
5522
- dataHash: string;
5523
- status?: 'applied' | 'noop';
5524
- affirmations?: {
5525
- added: Array<string>;
5526
- removed: Array<string>;
5527
- ignored: Array<string>;
5528
- };
5529
- warnings?: {
5530
- undeclaredFields?: Array<string>;
5531
- undeclaredFieldsTruncated?: true;
5532
- totalUndeclared?: number;
5533
- coalescedWrefs?: Array<{
5534
- fieldPath: string;
5535
- wref: string;
5536
- reason: string;
5537
- }>;
5538
- coalescedWrefsTruncated?: true;
5539
- totalCoalescedWrefs?: number;
5540
- ignoredVersionPins?: Array<{
5541
- fieldPath: string;
5542
- wref: string;
5543
- binding: 'identity';
5544
- }>;
5545
- deprecations?: Array<{
5546
- shape: string;
5547
- message: string;
5548
- removalMilestone: string;
5549
- }>;
5550
- };
5551
- } | {
5552
- opIndex?: number;
5553
- name: string;
5554
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5555
- version?: number;
5556
- dataHash?: string;
5557
- status?: 'success' | 'noop' | 'failed';
5558
- error?: {
5559
- code: string;
5560
- message: string;
5561
- details?: {
5562
- reason: 'expected_version_mismatch';
5563
- expectedVersion: number;
5564
- currentVersion: number;
5565
- } | {
5566
- reason: 'lease_held';
5567
- leaseExpiresAt: string;
5568
- } | {
5569
- reason: 'validation_failed';
5570
- issues: Array<{
5571
- path: string;
5572
- message: string;
5573
- }>;
5574
- } | {
5575
- reason: 'rate_limit_reset';
5576
- retryAfterSeconds: number;
5577
- resetAt: string;
5578
- } | {
5579
- reason: 'cursor_fence_unavailable';
5580
- cause: 'not_ready' | 'below_floor' | 'above_head';
5581
- retryFromStart: true;
5582
- };
5583
- };
5584
- resolvedName?: string;
5585
- retryable?: boolean;
5586
- warnings?: {
5587
- undeclaredFields?: Array<string>;
5588
- undeclaredFieldsTruncated?: true;
5589
- totalUndeclared?: number;
5590
- coalescedWrefs?: Array<{
5591
- fieldPath: string;
5592
- wref: string;
5593
- reason: string;
5594
- }>;
5595
- coalescedWrefsTruncated?: true;
5596
- totalCoalescedWrefs?: number;
5597
- ignoredVersionPins?: Array<{
5598
- fieldPath: string;
5599
- wref: string;
5600
- binding: 'identity';
5601
- }>;
5602
- deprecations?: Array<{
5603
- shape: string;
5604
- message: string;
5605
- removalMilestone: string;
5606
- }>;
5607
- };
5608
- affirmations?: {
5609
- added: Array<string>;
5610
- removed: Array<string>;
5611
- ignored: Array<string>;
5612
- };
5613
- }>;
5614
- outcome: 'event' | 'no_event';
5615
- requestDigest: string;
5616
- schemaVersion: 'operation-event-receipt/v1';
5617
- submissionId?: string;
5618
- pruned?: true;
5619
- };
5620
- } | {
3597
+ type RewriteCompatibilityResult = {
5621
3598
  event: {
5622
3599
  committedAt: string;
5623
3600
  eventDigest: string;
@@ -5756,10 +3733,9 @@ type ShapeChangeCompatibilityResult = {
5756
3733
  schemaVersion: 'operation-event-receipt/v2';
5757
3734
  submissionId?: string;
5758
3735
  pruned?: true;
5759
- name: string;
5760
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
5761
- version: number;
5762
- dataHash: string;
3736
+ status?: 'applied' | 'noop';
3737
+ version?: number;
3738
+ dataHash?: string;
5763
3739
  receipt: {
5764
3740
  event: {
5765
3741
  committedAt: string;
@@ -5901,7 +3877,7 @@ type ShapeChangeCompatibilityResult = {
5901
3877
  pruned?: true;
5902
3878
  };
5903
3879
  };
5904
- type ShapeRemoveCompatibilityResult = {
3880
+ type ShapeChangeCompatibilityResult = {
5905
3881
  event: {
5906
3882
  committedAt: string;
5907
3883
  eventDigest: string;
@@ -5914,17 +3890,11 @@ type ShapeRemoveCompatibilityResult = {
5914
3890
  } | null;
5915
3891
  eventRequestId: string;
5916
3892
  operations: Array<{
5917
- opIndex?: number;
3893
+ opIndex: number;
3894
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
5918
3895
  name: string;
5919
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5920
- version: number;
5921
- dataHash: string;
5922
- status?: 'applied' | 'noop';
5923
- affirmations?: {
5924
- added: Array<string>;
5925
- removed: Array<string>;
5926
- ignored: Array<string>;
5927
- };
3896
+ submittedName?: string;
3897
+ resolvedName?: string;
5928
3898
  warnings?: {
5929
3899
  undeclaredFields?: Array<string>;
5930
3900
  undeclaredFieldsTruncated?: true;
@@ -5936,27 +3906,65 @@ type ShapeRemoveCompatibilityResult = {
5936
3906
  }>;
5937
3907
  coalescedWrefsTruncated?: true;
5938
3908
  totalCoalescedWrefs?: number;
3909
+ deprecations?: Array<{
3910
+ shape: string;
3911
+ message: string;
3912
+ removalMilestone: string;
3913
+ }>;
5939
3914
  ignoredVersionPins?: Array<{
5940
3915
  fieldPath: string;
5941
3916
  wref: string;
5942
3917
  binding: 'identity';
5943
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;
5944
3946
  deprecations?: Array<{
5945
3947
  shape: string;
5946
3948
  message: string;
5947
3949
  removalMilestone: string;
5948
3950
  }>;
3951
+ ignoredVersionPins?: Array<{
3952
+ fieldPath: string;
3953
+ wref: string;
3954
+ binding: 'identity';
3955
+ }>;
3956
+ shapeless?: true;
5949
3957
  };
5950
- } | {
5951
- opIndex?: number;
5952
- name: string;
5953
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5954
- version?: number;
5955
- dataHash?: string;
5956
- status?: 'success' | 'noop' | 'failed';
5957
- error?: {
3958
+ affirmations?: {
3959
+ added: Array<string>;
3960
+ removed: Array<string>;
3961
+ ignored: Array<string>;
3962
+ };
3963
+ status: 'error';
3964
+ errors: Array<{
5958
3965
  code: string;
5959
3966
  message: string;
3967
+ path?: string;
5960
3968
  details?: {
5961
3969
  reason: 'expected_version_mismatch';
5962
3970
  expectedVersion: number;
@@ -5978,48 +3986,40 @@ type ShapeRemoveCompatibilityResult = {
5978
3986
  reason: 'cursor_fence_unavailable';
5979
3987
  cause: 'not_ready' | 'below_floor' | 'above_head';
5980
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';
5981
4010
  };
5982
- };
5983
- resolvedName?: string;
5984
- retryable?: boolean;
5985
- warnings?: {
5986
- undeclaredFields?: Array<string>;
5987
- undeclaredFieldsTruncated?: true;
5988
- totalUndeclared?: number;
5989
- coalescedWrefs?: Array<{
5990
- fieldPath: string;
5991
- wref: string;
5992
- reason: string;
5993
- }>;
5994
- coalescedWrefsTruncated?: true;
5995
- totalCoalescedWrefs?: number;
5996
- ignoredVersionPins?: Array<{
5997
- fieldPath: string;
5998
- wref: string;
5999
- binding: 'identity';
6000
- }>;
6001
- deprecations?: Array<{
6002
- shape: string;
6003
- message: string;
6004
- removalMilestone: string;
6005
- }>;
6006
- };
6007
- affirmations?: {
6008
- added: Array<string>;
6009
- removed: Array<string>;
6010
- ignored: Array<string>;
6011
- };
4011
+ retryable?: boolean;
4012
+ }>;
6012
4013
  }>;
6013
4014
  outcome: 'event' | 'no_event';
6014
4015
  requestDigest: string;
6015
- schemaVersion: 'operation-event-receipt/v1';
4016
+ schemaVersion: 'operation-event-receipt/v2';
6016
4017
  submissionId?: string;
6017
4018
  pruned?: true;
6018
- name: string;
6019
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
6020
- version: number;
6021
- dataHash: string;
6022
- removed: true;
4019
+ name?: string;
4020
+ operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
4021
+ version?: number;
4022
+ dataHash?: string;
6023
4023
  receipt: {
6024
4024
  event: {
6025
4025
  committedAt: string;
@@ -6033,17 +4033,11 @@ type ShapeRemoveCompatibilityResult = {
6033
4033
  } | null;
6034
4034
  eventRequestId: string;
6035
4035
  operations: Array<{
6036
- opIndex?: number;
4036
+ opIndex: number;
4037
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
6037
4038
  name: string;
6038
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
6039
- version: number;
6040
- dataHash: string;
6041
- status?: 'applied' | 'noop';
6042
- affirmations?: {
6043
- added: Array<string>;
6044
- removed: Array<string>;
6045
- ignored: Array<string>;
6046
- };
4039
+ submittedName?: string;
4040
+ resolvedName?: string;
6047
4041
  warnings?: {
6048
4042
  undeclaredFields?: Array<string>;
6049
4043
  undeclaredFieldsTruncated?: true;
@@ -6055,27 +4049,65 @@ type ShapeRemoveCompatibilityResult = {
6055
4049
  }>;
6056
4050
  coalescedWrefsTruncated?: true;
6057
4051
  totalCoalescedWrefs?: number;
4052
+ deprecations?: Array<{
4053
+ shape: string;
4054
+ message: string;
4055
+ removalMilestone: string;
4056
+ }>;
6058
4057
  ignoredVersionPins?: Array<{
6059
4058
  fieldPath: string;
6060
4059
  wref: string;
6061
4060
  binding: 'identity';
6062
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;
6063
4089
  deprecations?: Array<{
6064
4090
  shape: string;
6065
4091
  message: string;
6066
4092
  removalMilestone: string;
6067
4093
  }>;
4094
+ ignoredVersionPins?: Array<{
4095
+ fieldPath: string;
4096
+ wref: string;
4097
+ binding: 'identity';
4098
+ }>;
4099
+ shapeless?: true;
6068
4100
  };
6069
- } | {
6070
- opIndex?: number;
6071
- name: string;
6072
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
6073
- version?: number;
6074
- dataHash?: string;
6075
- status?: 'success' | 'noop' | 'failed';
6076
- error?: {
4101
+ affirmations?: {
4102
+ added: Array<string>;
4103
+ removed: Array<string>;
4104
+ ignored: Array<string>;
4105
+ };
4106
+ status: 'error';
4107
+ errors: Array<{
6077
4108
  code: string;
6078
4109
  message: string;
4110
+ path?: string;
6079
4111
  details?: {
6080
4112
  reason: 'expected_version_mismatch';
6081
4113
  expectedVersion: number;
@@ -6097,45 +4129,39 @@ type ShapeRemoveCompatibilityResult = {
6097
4129
  reason: 'cursor_fence_unavailable';
6098
4130
  cause: 'not_ready' | 'below_floor' | 'above_head';
6099
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';
6100
4153
  };
6101
- };
6102
- resolvedName?: string;
6103
- retryable?: boolean;
6104
- warnings?: {
6105
- undeclaredFields?: Array<string>;
6106
- undeclaredFieldsTruncated?: true;
6107
- totalUndeclared?: number;
6108
- coalescedWrefs?: Array<{
6109
- fieldPath: string;
6110
- wref: string;
6111
- reason: string;
6112
- }>;
6113
- coalescedWrefsTruncated?: true;
6114
- totalCoalescedWrefs?: number;
6115
- ignoredVersionPins?: Array<{
6116
- fieldPath: string;
6117
- wref: string;
6118
- binding: 'identity';
6119
- }>;
6120
- deprecations?: Array<{
6121
- shape: string;
6122
- message: string;
6123
- removalMilestone: string;
6124
- }>;
6125
- };
6126
- affirmations?: {
6127
- added: Array<string>;
6128
- removed: Array<string>;
6129
- ignored: Array<string>;
6130
- };
4154
+ retryable?: boolean;
4155
+ }>;
6131
4156
  }>;
6132
4157
  outcome: 'event' | 'no_event';
6133
4158
  requestDigest: string;
6134
- schemaVersion: 'operation-event-receipt/v1';
4159
+ schemaVersion: 'operation-event-receipt/v2';
6135
4160
  submissionId?: string;
6136
4161
  pruned?: true;
6137
4162
  };
6138
- } | {
4163
+ };
4164
+ type ShapeRemoveCompatibilityResult = {
6139
4165
  event: {
6140
4166
  committedAt: string;
6141
4167
  eventDigest: string;
@@ -6274,10 +4300,10 @@ type ShapeRemoveCompatibilityResult = {
6274
4300
  schemaVersion: 'operation-event-receipt/v2';
6275
4301
  submissionId?: string;
6276
4302
  pruned?: true;
6277
- name: string;
6278
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
6279
- version: number;
6280
- dataHash: string;
4303
+ name?: string;
4304
+ operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
4305
+ version?: number;
4306
+ dataHash?: string;
6281
4307
  removed: true;
6282
4308
  receipt: {
6283
4309
  event: {
@@ -8110,12 +6136,10 @@ declare class AllStreamOperationsFailedError extends Error {
8110
6136
  /**
8111
6137
  * Running reducer over stream-append chunk outputs.
8112
6138
  *
8113
- * Owns the receipt-era → legacy status projection for streamed submissions.
8114
- * Each chunk is folded in as it is acknowledged, so the only per-operation
8115
- * 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
8116
6141
  * contractually owed — no raw chunk-result array, and no submission-wide copy
8117
- * of the submitted operations. Chunk-local submitted names are read for the
8118
- * `submittedName` echo on failed rows and then released with the chunk.
6142
+ * of the submitted operations.
8119
6143
  *
8120
6144
  * @internal
8121
6145
  */
@@ -8125,19 +6149,10 @@ declare class StreamSubmissionAggregator {
8125
6149
  private readonly statusCounts;
8126
6150
  /** True once at least one row landed and every row failed. */
8127
6151
  get allFailed(): boolean;
8128
- /**
8129
- * Fold one chunk's result rows into the aggregate.
8130
- *
8131
- * `submittedNames` is chunk-local: entry 0 is the operation at
8132
- * `chunkStart`. Pass the chunk that was submitted; it is not retained.
8133
- */
6152
+ /** Fold one chunk's receipt rows into the aggregate. */
8134
6153
  addChunk(input: {
8135
- result: StreamAppendResult$1;
6154
+ receipt: OperationEventReceipt$1;
8136
6155
  chunkStart: number;
8137
- submittedOperations: ReadonlyArray<{
8138
- name?: string;
8139
- operation: CommitRealOperationResult$1['operation'];
8140
- }>;
8141
6156
  }): void;
8142
6157
  addReceipt(receipt: OperationEventReceipt$1): void;
8143
6158
  /** Rows confirmed applied or noop, for partial-submission recovery. */
@@ -9040,11 +7055,6 @@ type OperationEventReceipt = OperationEventReceipt$1;
9040
7055
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationeventreceiptmetadata/
9041
7056
  */
9042
7057
  type OperationEventReceiptMetadata = OperationEventReceiptMetadata$1;
9043
- /**
9044
- * The frozen historical receipt returned only when replaying a v1 request.
9045
- * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationeventreceiptv1/
9046
- */
9047
- type OperationEventReceiptV1 = OperationEventReceiptV1$1;
9048
7058
  /**
9049
7059
  * Structured diagnostic shared by real and preview operation results.
9050
7060
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/commitdiagnostic/
@@ -12875,4 +10885,4 @@ declare class WarmHubClient {
12875
10885
  private watchRepoQuery;
12876
10886
  }
12877
10887
 
12878
- 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 };