@warmhub/sdk-ts 0.156.0 → 0.158.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
@@ -167,6 +167,7 @@ type CommitRealOperationResult$1 = {
167
167
  status: 'applied' | 'noop';
168
168
  version?: number;
169
169
  dataHash?: string;
170
+ fileId?: string;
170
171
  } | {
171
172
  opIndex: number;
172
173
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -315,6 +316,12 @@ type CommitValidateInput$1 = {
315
316
  data: unknown;
316
317
  affirmedTargets?: Array<string>;
317
318
  skipExisting?: boolean;
319
+ file?: {
320
+ size?: number;
321
+ sha256?: string;
322
+ mediaType?: string;
323
+ filename?: string;
324
+ };
318
325
  kind?: never;
319
326
  shape?: never;
320
327
  } | {
@@ -323,6 +330,12 @@ type CommitValidateInput$1 = {
323
330
  shapes: Array<string>;
324
331
  data: unknown;
325
332
  affirmedTargets?: Array<string>;
333
+ file?: {
334
+ size?: number;
335
+ sha256?: string;
336
+ mediaType?: string;
337
+ filename?: string;
338
+ };
326
339
  expectedVersion?: number;
327
340
  leaseId?: string;
328
341
  kind?: never;
@@ -362,16 +375,19 @@ type CommitValidateInput$1 = {
362
375
  operation: 'redact';
363
376
  name: string;
364
377
  expectedVersion: number;
378
+ file?: never;
365
379
  } | {
366
380
  operation: 'remove';
367
381
  name: string;
368
382
  expectedVersion: number;
383
+ file?: never;
369
384
  } | {
370
385
  operation: 'rewrite';
371
386
  name: string;
372
387
  version: number;
373
388
  shapes: Array<string>;
374
389
  data: unknown;
390
+ file?: never;
375
391
  }>;
376
392
  includeWouldBeBody?: boolean;
377
393
  };
@@ -433,6 +449,11 @@ type CommitValidateResult$1 = {
433
449
  version?: number;
434
450
  dataHash?: string;
435
451
  wouldBeBody?: unknown;
452
+ file?: {
453
+ fileId: '00000000-0000-0000-0000-000000000000';
454
+ status: 'pending';
455
+ generation: 1;
456
+ };
436
457
  effects?: Array<{
437
458
  effectIndex: number;
438
459
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -469,6 +490,11 @@ type CommitValidateResult$1 = {
469
490
  version?: number;
470
491
  dataHash?: string;
471
492
  wouldBeBody?: unknown;
493
+ file?: {
494
+ fileId: '00000000-0000-0000-0000-000000000000';
495
+ status: 'pending';
496
+ generation: 1;
497
+ };
472
498
  } | {
473
499
  effectIndex: number;
474
500
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -706,6 +732,11 @@ type CommitValidateResult$1 = {
706
732
  version?: number;
707
733
  dataHash?: string;
708
734
  wouldBeBody?: unknown;
735
+ file?: {
736
+ fileId: '00000000-0000-0000-0000-000000000000';
737
+ status: 'pending';
738
+ generation: 1;
739
+ };
709
740
  } | {
710
741
  effectIndex: number;
711
742
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -826,120 +857,6 @@ type CommitValidateResult$1 = {
826
857
  }>;
827
858
  };
828
859
  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
860
  event: {
944
861
  committedAt: string;
945
862
  eventDigest: string;
@@ -988,6 +905,7 @@ type OperationEventReceipt$1 = {
988
905
  status: 'applied' | 'noop';
989
906
  version?: number;
990
907
  dataHash?: string;
908
+ fileId?: string;
991
909
  } | {
992
910
  opIndex: number;
993
911
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -1102,121 +1020,6 @@ type OperationEventReceiptMetadata$1 = {
1102
1020
  resultOperationCount?: number;
1103
1021
  pruned?: true;
1104
1022
  };
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
1023
  type OperationEventReceiptV2 = {
1221
1024
  event: {
1222
1025
  committedAt: string;
@@ -1266,6 +1069,7 @@ type OperationEventReceiptV2 = {
1266
1069
  status: 'applied' | 'noop';
1267
1070
  version?: number;
1268
1071
  dataHash?: string;
1072
+ fileId?: string;
1269
1073
  } | {
1270
1074
  opIndex: number;
1271
1075
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -1522,17 +1326,11 @@ type ComponentInstallResult$1 = {
1522
1326
  } | null;
1523
1327
  eventRequestId: string;
1524
1328
  operations: Array<{
1525
- opIndex?: number;
1329
+ opIndex: number;
1330
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
1526
1331
  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
- };
1332
+ submittedName?: string;
1333
+ resolvedName?: string;
1536
1334
  warnings?: {
1537
1335
  undeclaredFields?: Array<string>;
1538
1336
  undeclaredFieldsTruncated?: true;
@@ -1544,134 +1342,27 @@ type ComponentInstallResult$1 = {
1544
1342
  }>;
1545
1343
  coalescedWrefsTruncated?: true;
1546
1344
  totalCoalescedWrefs?: number;
1547
- ignoredVersionPins?: Array<{
1548
- fieldPath: string;
1549
- wref: string;
1550
- binding: 'identity';
1551
- }>;
1552
1345
  deprecations?: Array<{
1553
1346
  shape: string;
1554
1347
  message: string;
1555
1348
  removalMilestone: string;
1556
1349
  }>;
1350
+ ignoredVersionPins?: Array<{
1351
+ fieldPath: string;
1352
+ wref: string;
1353
+ binding: 'identity';
1354
+ }>;
1355
+ shapeless?: true;
1557
1356
  };
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';
1357
+ affirmations?: {
1358
+ added: Array<string>;
1359
+ removed: Array<string>;
1360
+ ignored: Array<string>;
1361
+ };
1362
+ status: 'applied' | 'noop';
1673
1363
  version?: number;
1674
1364
  dataHash?: string;
1365
+ fileId?: string;
1675
1366
  } | {
1676
1367
  opIndex: number;
1677
1368
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -1808,120 +1499,6 @@ type ComponentUninstallResult$1 = {
1808
1499
  warnings: Array<string>;
1809
1500
  submissionId: string;
1810
1501
  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
1502
  event: {
1926
1503
  committedAt: string;
1927
1504
  eventDigest: string;
@@ -1970,6 +1547,7 @@ type ComponentUninstallResult$1 = {
1970
1547
  status: 'applied' | 'noop';
1971
1548
  version?: number;
1972
1549
  dataHash?: string;
1550
+ fileId?: string;
1973
1551
  } | {
1974
1552
  opIndex: number;
1975
1553
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -2087,8 +1665,11 @@ type GrantCreateInput = {
2087
1665
  repoName: string;
2088
1666
  idempotencyKey: string;
2089
1667
  recipient: {
2090
- kind: 'member';
1668
+ kind: 'user';
2091
1669
  email: string;
1670
+ } | {
1671
+ kind: 'user';
1672
+ externalId: string;
2092
1673
  } | {
2093
1674
  kind: 'component';
2094
1675
  orgName: string;
@@ -2245,6 +1826,12 @@ type StreamAppendInput$1 = {
2245
1826
  data: unknown;
2246
1827
  affirmedTargets?: Array<string>;
2247
1828
  skipExisting?: boolean;
1829
+ file?: {
1830
+ size?: number;
1831
+ sha256?: string;
1832
+ mediaType?: string;
1833
+ filename?: string;
1834
+ };
2248
1835
  kind?: never;
2249
1836
  shape?: never;
2250
1837
  } | {
@@ -2253,6 +1840,12 @@ type StreamAppendInput$1 = {
2253
1840
  shapes: Array<string>;
2254
1841
  data: unknown;
2255
1842
  affirmedTargets?: Array<string>;
1843
+ file?: {
1844
+ size?: number;
1845
+ sha256?: string;
1846
+ mediaType?: string;
1847
+ filename?: string;
1848
+ };
2256
1849
  expectedVersion?: number;
2257
1850
  leaseId?: string;
2258
1851
  kind?: never;
@@ -2293,7 +1886,36 @@ type StreamAppendInput$1 = {
2293
1886
  submissionId: string;
2294
1887
  };
2295
1888
  type StreamAppendResult$1 = {
2296
- event: {
1889
+ allocatedTokenRanges: Array<{
1890
+ start: number;
1891
+ end: number;
1892
+ }>;
1893
+ repoSeq?: number;
1894
+ createdByEmail?: string;
1895
+ appendTotalMs?: number;
1896
+ appendResolveRepoMs?: number;
1897
+ appendApplyMs?: number;
1898
+ applySubphases?: {
1899
+ addThingMs?: number;
1900
+ addAssertionMs?: number;
1901
+ addAssertionResolveAboutMs?: number;
1902
+ reviseThingMs?: number;
1903
+ reviseAssertionMs?: number;
1904
+ reviseCollectionMs?: number;
1905
+ preparePinnedLoadShapeFieldsMs?: number;
1906
+ preparePinnedPinWrefsMs?: number;
1907
+ preparePinnedValidateMs?: number;
1908
+ operationLoopMs?: number;
1909
+ persistMs?: number;
1910
+ persistThingsMs?: number;
1911
+ persistVersionsMs?: number;
1912
+ persistAssertionsMs?: number;
1913
+ persistUpdatesMs?: number;
1914
+ persistOutboxMs?: number;
1915
+ refInsertMs?: number;
1916
+ refSourceCount?: number;
1917
+ };
1918
+ event?: {
2297
1919
  committedAt: string;
2298
1920
  eventDigest: string;
2299
1921
  operationCount: number;
@@ -2303,1183 +1925,13 @@ type StreamAppendResult$1 = {
2303
1925
  };
2304
1926
  repoSeq: string;
2305
1927
  } | null;
2306
- eventRequestId: string;
2307
- operations: Array<{
2308
- opIndex?: number;
1928
+ eventRequestId?: string;
1929
+ operations?: Array<{
1930
+ opIndex: number;
1931
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2309
1932
  name: string;
2310
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2311
- version: number;
2312
- dataHash: string;
2313
- status?: 'applied' | 'noop';
2314
- affirmations?: {
2315
- added: Array<string>;
2316
- removed: Array<string>;
2317
- ignored: Array<string>;
2318
- };
2319
- warnings?: {
2320
- undeclaredFields?: Array<string>;
2321
- undeclaredFieldsTruncated?: true;
2322
- totalUndeclared?: number;
2323
- coalescedWrefs?: Array<{
2324
- fieldPath: string;
2325
- wref: string;
2326
- reason: string;
2327
- }>;
2328
- coalescedWrefsTruncated?: true;
2329
- totalCoalescedWrefs?: number;
2330
- ignoredVersionPins?: Array<{
2331
- fieldPath: string;
2332
- wref: string;
2333
- binding: 'identity';
2334
- }>;
2335
- deprecations?: Array<{
2336
- shape: string;
2337
- message: string;
2338
- removalMilestone: string;
2339
- }>;
2340
- };
2341
- } | {
2342
- opIndex?: number;
2343
- name: string;
2344
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2345
- version?: number;
2346
- dataHash?: string;
2347
- status?: 'success' | 'noop' | 'failed';
2348
- error?: {
2349
- code: string;
2350
- message: string;
2351
- details?: {
2352
- reason: 'expected_version_mismatch';
2353
- expectedVersion: number;
2354
- currentVersion: number;
2355
- } | {
2356
- reason: 'lease_held';
2357
- leaseExpiresAt: string;
2358
- } | {
2359
- reason: 'validation_failed';
2360
- issues: Array<{
2361
- path: string;
2362
- message: string;
2363
- }>;
2364
- } | {
2365
- reason: 'rate_limit_reset';
2366
- retryAfterSeconds: number;
2367
- resetAt: string;
2368
- } | {
2369
- reason: 'cursor_fence_unavailable';
2370
- cause: 'not_ready' | 'below_floor' | 'above_head';
2371
- retryFromStart: true;
2372
- };
2373
- };
2374
- resolvedName?: string;
2375
- retryable?: boolean;
2376
- warnings?: {
2377
- undeclaredFields?: Array<string>;
2378
- undeclaredFieldsTruncated?: true;
2379
- totalUndeclared?: number;
2380
- coalescedWrefs?: Array<{
2381
- fieldPath: string;
2382
- wref: string;
2383
- reason: string;
2384
- }>;
2385
- coalescedWrefsTruncated?: true;
2386
- totalCoalescedWrefs?: number;
2387
- ignoredVersionPins?: Array<{
2388
- fieldPath: string;
2389
- wref: string;
2390
- binding: 'identity';
2391
- }>;
2392
- deprecations?: Array<{
2393
- shape: string;
2394
- message: string;
2395
- removalMilestone: string;
2396
- }>;
2397
- };
2398
- affirmations?: {
2399
- added: Array<string>;
2400
- removed: Array<string>;
2401
- ignored: Array<string>;
2402
- };
2403
- }>;
2404
- outcome: 'event' | 'no_event';
2405
- requestDigest: string;
2406
- schemaVersion: 'operation-event-receipt/v1';
2407
- submissionId?: string;
2408
- pruned?: true;
2409
- allocatedTokenRanges: Array<{
2410
- start: number;
2411
- end: number;
2412
- }>;
2413
- results: Array<{
2414
- opIndex?: number;
2415
- name: string;
2416
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2417
- version?: number;
2418
- dataHash?: string;
2419
- status?: 'success' | 'noop' | 'failed';
2420
- error?: {
2421
- code: string;
2422
- message: string;
2423
- details?: {
2424
- reason: 'expected_version_mismatch';
2425
- expectedVersion: number;
2426
- currentVersion: number;
2427
- } | {
2428
- reason: 'lease_held';
2429
- leaseExpiresAt: string;
2430
- } | {
2431
- reason: 'validation_failed';
2432
- issues: Array<{
2433
- path: string;
2434
- message: string;
2435
- }>;
2436
- } | {
2437
- reason: 'rate_limit_reset';
2438
- retryAfterSeconds: number;
2439
- resetAt: string;
2440
- } | {
2441
- reason: 'cursor_fence_unavailable';
2442
- cause: 'not_ready' | 'below_floor' | 'above_head';
2443
- retryFromStart: true;
2444
- };
2445
- };
2446
- resolvedName?: string;
2447
- retryable?: boolean;
2448
- warnings?: {
2449
- undeclaredFields?: Array<string>;
2450
- undeclaredFieldsTruncated?: true;
2451
- totalUndeclared?: number;
2452
- coalescedWrefs?: Array<{
2453
- fieldPath: string;
2454
- wref: string;
2455
- reason: string;
2456
- }>;
2457
- coalescedWrefsTruncated?: true;
2458
- totalCoalescedWrefs?: number;
2459
- ignoredVersionPins?: Array<{
2460
- fieldPath: string;
2461
- wref: string;
2462
- binding: 'identity';
2463
- }>;
2464
- deprecations?: Array<{
2465
- shape: string;
2466
- message: string;
2467
- removalMilestone: string;
2468
- }>;
2469
- };
2470
- affirmations?: {
2471
- added: Array<string>;
2472
- removed: Array<string>;
2473
- ignored: Array<string>;
2474
- };
2475
- }>;
2476
- repoSeq?: number;
2477
- createdByEmail?: string;
2478
- appendTotalMs?: number;
2479
- appendResolveRepoMs?: number;
2480
- appendApplyMs?: number;
2481
- applySubphases?: {
2482
- addThingMs?: number;
2483
- addAssertionMs?: number;
2484
- addAssertionResolveAboutMs?: number;
2485
- reviseThingMs?: number;
2486
- reviseAssertionMs?: number;
2487
- reviseCollectionMs?: number;
2488
- preparePinnedLoadShapeFieldsMs?: number;
2489
- preparePinnedPinWrefsMs?: number;
2490
- preparePinnedValidateMs?: number;
2491
- operationLoopMs?: number;
2492
- persistMs?: number;
2493
- persistThingsMs?: number;
2494
- persistVersionsMs?: number;
2495
- persistAssertionsMs?: number;
2496
- persistUpdatesMs?: number;
2497
- persistOutboxMs?: number;
2498
- refInsertMs?: number;
2499
- refSourceCount?: number;
2500
- };
2501
- receipt: {
2502
- event: {
2503
- committedAt: string;
2504
- eventDigest: string;
2505
- operationCount: number;
2506
- repo: {
2507
- orgName: string;
2508
- repoName: string;
2509
- };
2510
- repoSeq: string;
2511
- } | null;
2512
- eventRequestId: string;
2513
- operations: Array<{
2514
- opIndex?: number;
2515
- name: string;
2516
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2517
- version: number;
2518
- dataHash: string;
2519
- status?: 'applied' | 'noop';
2520
- affirmations?: {
2521
- added: Array<string>;
2522
- removed: Array<string>;
2523
- ignored: Array<string>;
2524
- };
2525
- warnings?: {
2526
- undeclaredFields?: Array<string>;
2527
- undeclaredFieldsTruncated?: true;
2528
- totalUndeclared?: number;
2529
- coalescedWrefs?: Array<{
2530
- fieldPath: string;
2531
- wref: string;
2532
- reason: string;
2533
- }>;
2534
- coalescedWrefsTruncated?: true;
2535
- totalCoalescedWrefs?: number;
2536
- ignoredVersionPins?: Array<{
2537
- fieldPath: string;
2538
- wref: string;
2539
- binding: 'identity';
2540
- }>;
2541
- deprecations?: Array<{
2542
- shape: string;
2543
- message: string;
2544
- removalMilestone: string;
2545
- }>;
2546
- };
2547
- } | {
2548
- opIndex?: number;
2549
- name: string;
2550
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
2551
- version?: number;
2552
- dataHash?: string;
2553
- status?: 'success' | 'noop' | 'failed';
2554
- error?: {
2555
- code: string;
2556
- message: string;
2557
- details?: {
2558
- reason: 'expected_version_mismatch';
2559
- expectedVersion: number;
2560
- currentVersion: number;
2561
- } | {
2562
- reason: 'lease_held';
2563
- leaseExpiresAt: string;
2564
- } | {
2565
- reason: 'validation_failed';
2566
- issues: Array<{
2567
- path: string;
2568
- message: string;
2569
- }>;
2570
- } | {
2571
- reason: 'rate_limit_reset';
2572
- retryAfterSeconds: number;
2573
- resetAt: string;
2574
- } | {
2575
- reason: 'cursor_fence_unavailable';
2576
- cause: 'not_ready' | 'below_floor' | 'above_head';
2577
- retryFromStart: true;
2578
- };
2579
- };
2580
- resolvedName?: string;
2581
- retryable?: boolean;
2582
- warnings?: {
2583
- undeclaredFields?: Array<string>;
2584
- undeclaredFieldsTruncated?: true;
2585
- totalUndeclared?: number;
2586
- coalescedWrefs?: Array<{
2587
- fieldPath: string;
2588
- wref: string;
2589
- reason: string;
2590
- }>;
2591
- coalescedWrefsTruncated?: true;
2592
- totalCoalescedWrefs?: number;
2593
- ignoredVersionPins?: Array<{
2594
- fieldPath: string;
2595
- wref: string;
2596
- binding: 'identity';
2597
- }>;
2598
- deprecations?: Array<{
2599
- shape: string;
2600
- message: string;
2601
- removalMilestone: string;
2602
- }>;
2603
- };
2604
- affirmations?: {
2605
- added: Array<string>;
2606
- removed: Array<string>;
2607
- ignored: Array<string>;
2608
- };
2609
- }>;
2610
- outcome: 'event' | 'no_event';
2611
- requestDigest: string;
2612
- schemaVersion: 'operation-event-receipt/v1';
2613
- submissionId?: string;
2614
- pruned?: true;
2615
- };
2616
- } | {
2617
- event: {
2618
- committedAt: string;
2619
- eventDigest: string;
2620
- operationCount: number;
2621
- repo: {
2622
- orgName: string;
2623
- repoName: string;
2624
- };
2625
- repoSeq: string;
2626
- } | null;
2627
- eventRequestId: string;
2628
- operations: Array<{
2629
- opIndex: number;
2630
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2631
- name: string;
2632
- submittedName?: string;
2633
- resolvedName?: string;
2634
- warnings?: {
2635
- undeclaredFields?: Array<string>;
2636
- undeclaredFieldsTruncated?: true;
2637
- totalUndeclared?: number;
2638
- coalescedWrefs?: Array<{
2639
- fieldPath: string;
2640
- wref: string;
2641
- reason: string;
2642
- }>;
2643
- coalescedWrefsTruncated?: true;
2644
- totalCoalescedWrefs?: number;
2645
- deprecations?: Array<{
2646
- shape: string;
2647
- message: string;
2648
- removalMilestone: string;
2649
- }>;
2650
- ignoredVersionPins?: Array<{
2651
- fieldPath: string;
2652
- wref: string;
2653
- binding: 'identity';
2654
- }>;
2655
- shapeless?: true;
2656
- };
2657
- affirmations?: {
2658
- added: Array<string>;
2659
- removed: Array<string>;
2660
- ignored: Array<string>;
2661
- };
2662
- status: 'applied' | 'noop';
2663
- version?: number;
2664
- dataHash?: string;
2665
- } | {
2666
- opIndex: number;
2667
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2668
- name: string;
2669
- submittedName?: string;
2670
- resolvedName?: string;
2671
- warnings?: {
2672
- undeclaredFields?: Array<string>;
2673
- undeclaredFieldsTruncated?: true;
2674
- totalUndeclared?: number;
2675
- coalescedWrefs?: Array<{
2676
- fieldPath: string;
2677
- wref: string;
2678
- reason: string;
2679
- }>;
2680
- coalescedWrefsTruncated?: true;
2681
- totalCoalescedWrefs?: number;
2682
- deprecations?: Array<{
2683
- shape: string;
2684
- message: string;
2685
- removalMilestone: string;
2686
- }>;
2687
- ignoredVersionPins?: Array<{
2688
- fieldPath: string;
2689
- wref: string;
2690
- binding: 'identity';
2691
- }>;
2692
- shapeless?: true;
2693
- };
2694
- affirmations?: {
2695
- added: Array<string>;
2696
- removed: Array<string>;
2697
- ignored: Array<string>;
2698
- };
2699
- status: 'error';
2700
- errors: Array<{
2701
- code: string;
2702
- message: string;
2703
- path?: string;
2704
- details?: {
2705
- reason: 'expected_version_mismatch';
2706
- expectedVersion: number;
2707
- currentVersion: number;
2708
- } | {
2709
- reason: 'lease_held';
2710
- leaseExpiresAt: string;
2711
- } | {
2712
- reason: 'validation_failed';
2713
- issues: Array<{
2714
- path: string;
2715
- message: string;
2716
- }>;
2717
- } | {
2718
- reason: 'rate_limit_reset';
2719
- retryAfterSeconds: number;
2720
- resetAt: string;
2721
- } | {
2722
- reason: 'cursor_fence_unavailable';
2723
- cause: 'not_ready' | 'below_floor' | 'above_head';
2724
- retryFromStart: true;
2725
- } | {
2726
- reason: 'dependency_failed';
2727
- producerOpIndexes: Array<number>;
2728
- } | {
2729
- reason: 'name_taken';
2730
- name: string;
2731
- takenBy?: {
2732
- durableId: string;
2733
- };
2734
- } | {
2735
- reason: 'target_removed';
2736
- targetDurableId: string;
2737
- fieldPath?: string;
2738
- } | {
2739
- reason: 'target_redacted';
2740
- targetDurableId: string;
2741
- fieldPath?: string;
2742
- } | {
2743
- reason: 'legacy-wrefs-window-ended';
2744
- } | {
2745
- reason: 'invalid_token';
2746
- };
2747
- retryable?: boolean;
2748
- }>;
2749
- }>;
2750
- outcome: 'event' | 'no_event';
2751
- requestDigest: string;
2752
- schemaVersion: 'operation-event-receipt/v2';
2753
- submissionId?: string;
2754
- pruned?: true;
2755
- allocatedTokenRanges: Array<{
2756
- start: number;
2757
- end: number;
2758
- }>;
2759
- results: Array<{
2760
- opIndex: number;
2761
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2762
- name: string;
2763
- submittedName?: string;
2764
- resolvedName?: string;
2765
- warnings?: {
2766
- undeclaredFields?: Array<string>;
2767
- undeclaredFieldsTruncated?: true;
2768
- totalUndeclared?: number;
2769
- coalescedWrefs?: Array<{
2770
- fieldPath: string;
2771
- wref: string;
2772
- reason: string;
2773
- }>;
2774
- coalescedWrefsTruncated?: true;
2775
- totalCoalescedWrefs?: number;
2776
- deprecations?: Array<{
2777
- shape: string;
2778
- message: string;
2779
- removalMilestone: string;
2780
- }>;
2781
- ignoredVersionPins?: Array<{
2782
- fieldPath: string;
2783
- wref: string;
2784
- binding: 'identity';
2785
- }>;
2786
- shapeless?: true;
2787
- };
2788
- affirmations?: {
2789
- added: Array<string>;
2790
- removed: Array<string>;
2791
- ignored: Array<string>;
2792
- };
2793
- status: 'applied' | 'noop';
2794
- version?: number;
2795
- dataHash?: string;
2796
- } | {
2797
- opIndex: number;
2798
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2799
- name: string;
2800
- submittedName?: string;
2801
- resolvedName?: string;
2802
- warnings?: {
2803
- undeclaredFields?: Array<string>;
2804
- undeclaredFieldsTruncated?: true;
2805
- totalUndeclared?: number;
2806
- coalescedWrefs?: Array<{
2807
- fieldPath: string;
2808
- wref: string;
2809
- reason: string;
2810
- }>;
2811
- coalescedWrefsTruncated?: true;
2812
- totalCoalescedWrefs?: number;
2813
- deprecations?: Array<{
2814
- shape: string;
2815
- message: string;
2816
- removalMilestone: string;
2817
- }>;
2818
- ignoredVersionPins?: Array<{
2819
- fieldPath: string;
2820
- wref: string;
2821
- binding: 'identity';
2822
- }>;
2823
- shapeless?: true;
2824
- };
2825
- affirmations?: {
2826
- added: Array<string>;
2827
- removed: Array<string>;
2828
- ignored: Array<string>;
2829
- };
2830
- status: 'error';
2831
- errors: Array<{
2832
- code: string;
2833
- message: string;
2834
- path?: string;
2835
- details?: {
2836
- reason: 'expected_version_mismatch';
2837
- expectedVersion: number;
2838
- currentVersion: number;
2839
- } | {
2840
- reason: 'lease_held';
2841
- leaseExpiresAt: string;
2842
- } | {
2843
- reason: 'validation_failed';
2844
- issues: Array<{
2845
- path: string;
2846
- message: string;
2847
- }>;
2848
- } | {
2849
- reason: 'rate_limit_reset';
2850
- retryAfterSeconds: number;
2851
- resetAt: string;
2852
- } | {
2853
- reason: 'cursor_fence_unavailable';
2854
- cause: 'not_ready' | 'below_floor' | 'above_head';
2855
- retryFromStart: true;
2856
- } | {
2857
- reason: 'dependency_failed';
2858
- producerOpIndexes: Array<number>;
2859
- } | {
2860
- reason: 'name_taken';
2861
- name: string;
2862
- takenBy?: {
2863
- durableId: string;
2864
- };
2865
- } | {
2866
- reason: 'target_removed';
2867
- targetDurableId: string;
2868
- fieldPath?: string;
2869
- } | {
2870
- reason: 'target_redacted';
2871
- targetDurableId: string;
2872
- fieldPath?: string;
2873
- } | {
2874
- reason: 'legacy-wrefs-window-ended';
2875
- } | {
2876
- reason: 'invalid_token';
2877
- };
2878
- retryable?: boolean;
2879
- }>;
2880
- }>;
2881
- repoSeq?: number;
2882
- createdByEmail?: string;
2883
- appendTotalMs?: number;
2884
- appendResolveRepoMs?: number;
2885
- appendApplyMs?: number;
2886
- applySubphases?: {
2887
- addThingMs?: number;
2888
- addAssertionMs?: number;
2889
- addAssertionResolveAboutMs?: number;
2890
- reviseThingMs?: number;
2891
- reviseAssertionMs?: number;
2892
- reviseCollectionMs?: number;
2893
- preparePinnedLoadShapeFieldsMs?: number;
2894
- preparePinnedPinWrefsMs?: number;
2895
- preparePinnedValidateMs?: number;
2896
- operationLoopMs?: number;
2897
- persistMs?: number;
2898
- persistThingsMs?: number;
2899
- persistVersionsMs?: number;
2900
- persistAssertionsMs?: number;
2901
- persistUpdatesMs?: number;
2902
- persistOutboxMs?: number;
2903
- refInsertMs?: number;
2904
- refSourceCount?: number;
2905
- };
2906
- receipt: {
2907
- event: {
2908
- committedAt: string;
2909
- eventDigest: string;
2910
- operationCount: number;
2911
- repo: {
2912
- orgName: string;
2913
- repoName: string;
2914
- };
2915
- repoSeq: string;
2916
- } | null;
2917
- eventRequestId: string;
2918
- operations: Array<{
2919
- opIndex: number;
2920
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2921
- name: string;
2922
- submittedName?: string;
2923
- resolvedName?: string;
2924
- warnings?: {
2925
- undeclaredFields?: Array<string>;
2926
- undeclaredFieldsTruncated?: true;
2927
- totalUndeclared?: number;
2928
- coalescedWrefs?: Array<{
2929
- fieldPath: string;
2930
- wref: string;
2931
- reason: string;
2932
- }>;
2933
- coalescedWrefsTruncated?: true;
2934
- totalCoalescedWrefs?: number;
2935
- deprecations?: Array<{
2936
- shape: string;
2937
- message: string;
2938
- removalMilestone: string;
2939
- }>;
2940
- ignoredVersionPins?: Array<{
2941
- fieldPath: string;
2942
- wref: string;
2943
- binding: 'identity';
2944
- }>;
2945
- shapeless?: true;
2946
- };
2947
- affirmations?: {
2948
- added: Array<string>;
2949
- removed: Array<string>;
2950
- ignored: Array<string>;
2951
- };
2952
- status: 'applied' | 'noop';
2953
- version?: number;
2954
- dataHash?: string;
2955
- } | {
2956
- opIndex: number;
2957
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2958
- name: string;
2959
- submittedName?: string;
2960
- resolvedName?: string;
2961
- warnings?: {
2962
- undeclaredFields?: Array<string>;
2963
- undeclaredFieldsTruncated?: true;
2964
- totalUndeclared?: number;
2965
- coalescedWrefs?: Array<{
2966
- fieldPath: string;
2967
- wref: string;
2968
- reason: string;
2969
- }>;
2970
- coalescedWrefsTruncated?: true;
2971
- totalCoalescedWrefs?: number;
2972
- deprecations?: Array<{
2973
- shape: string;
2974
- message: string;
2975
- removalMilestone: string;
2976
- }>;
2977
- ignoredVersionPins?: Array<{
2978
- fieldPath: string;
2979
- wref: string;
2980
- binding: 'identity';
2981
- }>;
2982
- shapeless?: true;
2983
- };
2984
- affirmations?: {
2985
- added: Array<string>;
2986
- removed: Array<string>;
2987
- ignored: Array<string>;
2988
- };
2989
- status: 'error';
2990
- errors: Array<{
2991
- code: string;
2992
- message: string;
2993
- path?: string;
2994
- details?: {
2995
- reason: 'expected_version_mismatch';
2996
- expectedVersion: number;
2997
- currentVersion: number;
2998
- } | {
2999
- reason: 'lease_held';
3000
- leaseExpiresAt: string;
3001
- } | {
3002
- reason: 'validation_failed';
3003
- issues: Array<{
3004
- path: string;
3005
- message: string;
3006
- }>;
3007
- } | {
3008
- reason: 'rate_limit_reset';
3009
- retryAfterSeconds: number;
3010
- resetAt: string;
3011
- } | {
3012
- reason: 'cursor_fence_unavailable';
3013
- cause: 'not_ready' | 'below_floor' | 'above_head';
3014
- retryFromStart: true;
3015
- } | {
3016
- reason: 'dependency_failed';
3017
- producerOpIndexes: Array<number>;
3018
- } | {
3019
- reason: 'name_taken';
3020
- name: string;
3021
- takenBy?: {
3022
- durableId: string;
3023
- };
3024
- } | {
3025
- reason: 'target_removed';
3026
- targetDurableId: string;
3027
- fieldPath?: string;
3028
- } | {
3029
- reason: 'target_redacted';
3030
- targetDurableId: string;
3031
- fieldPath?: string;
3032
- } | {
3033
- reason: 'legacy-wrefs-window-ended';
3034
- } | {
3035
- reason: 'invalid_token';
3036
- };
3037
- retryable?: boolean;
3038
- }>;
3039
- }>;
3040
- outcome: 'event' | 'no_event';
3041
- requestDigest: string;
3042
- schemaVersion: 'operation-event-receipt/v2';
3043
- submissionId?: string;
3044
- pruned?: true;
3045
- };
3046
- };
3047
- type StreamingSubmissionRow$1 = {
3048
- opIndex: number;
3049
- name: string;
3050
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3051
- version?: number;
3052
- dataHash?: string;
3053
- status?: 'success' | 'noop' | 'failed';
3054
- error?: {
3055
- code: string;
3056
- message: string;
3057
- details?: {
3058
- reason: 'expected_version_mismatch';
3059
- expectedVersion: number;
3060
- currentVersion: number;
3061
- } | {
3062
- reason: 'lease_held';
3063
- leaseExpiresAt: string;
3064
- } | {
3065
- reason: 'validation_failed';
3066
- issues: Array<{
3067
- path: string;
3068
- message: string;
3069
- }>;
3070
- } | {
3071
- reason: 'rate_limit_reset';
3072
- retryAfterSeconds: number;
3073
- resetAt: string;
3074
- } | {
3075
- reason: 'cursor_fence_unavailable';
3076
- cause: 'not_ready' | 'below_floor' | 'above_head';
3077
- retryFromStart: true;
3078
- };
3079
- };
3080
- resolvedName?: string;
3081
- retryable?: boolean;
3082
- warnings?: {
3083
- undeclaredFields?: Array<string>;
3084
- undeclaredFieldsTruncated?: true;
3085
- totalUndeclared?: number;
3086
- coalescedWrefs?: Array<{
3087
- fieldPath: string;
3088
- wref: string;
3089
- reason: string;
3090
- }>;
3091
- coalescedWrefsTruncated?: true;
3092
- totalCoalescedWrefs?: number;
3093
- ignoredVersionPins?: Array<{
3094
- fieldPath: string;
3095
- wref: string;
3096
- binding: 'identity';
3097
- }>;
3098
- deprecations?: Array<{
3099
- shape: string;
3100
- message: string;
3101
- removalMilestone: string;
3102
- }>;
3103
- };
3104
- affirmations?: {
3105
- added: Array<string>;
3106
- removed: Array<string>;
3107
- ignored: Array<string>;
3108
- };
3109
- type: 'result';
3110
- chunkOrdinal: number;
3111
- submissionIndex: number;
3112
- } | {
3113
- opIndex: number;
3114
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3115
- name: string;
3116
- submittedName?: string;
3117
- resolvedName?: string;
3118
- warnings?: {
3119
- undeclaredFields?: Array<string>;
3120
- undeclaredFieldsTruncated?: true;
3121
- totalUndeclared?: number;
3122
- coalescedWrefs?: Array<{
3123
- fieldPath: string;
3124
- wref: string;
3125
- reason: string;
3126
- }>;
3127
- coalescedWrefsTruncated?: true;
3128
- totalCoalescedWrefs?: number;
3129
- deprecations?: Array<{
3130
- shape: string;
3131
- message: string;
3132
- removalMilestone: string;
3133
- }>;
3134
- ignoredVersionPins?: Array<{
3135
- fieldPath: string;
3136
- wref: string;
3137
- binding: 'identity';
3138
- }>;
3139
- shapeless?: true;
3140
- };
3141
- affirmations?: {
3142
- added: Array<string>;
3143
- removed: Array<string>;
3144
- ignored: Array<string>;
3145
- };
3146
- status: 'applied' | 'noop';
3147
- version?: number;
3148
- dataHash?: string;
3149
- type: 'result';
3150
- chunkOrdinal: number;
3151
- submissionIndex: number;
3152
- } | {
3153
- opIndex: number;
3154
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3155
- name: string;
3156
- submittedName?: string;
3157
- resolvedName?: string;
3158
- warnings?: {
3159
- undeclaredFields?: Array<string>;
3160
- undeclaredFieldsTruncated?: true;
3161
- totalUndeclared?: number;
3162
- coalescedWrefs?: Array<{
3163
- fieldPath: string;
3164
- wref: string;
3165
- reason: string;
3166
- }>;
3167
- coalescedWrefsTruncated?: true;
3168
- totalCoalescedWrefs?: number;
3169
- deprecations?: Array<{
3170
- shape: string;
3171
- message: string;
3172
- removalMilestone: string;
3173
- }>;
3174
- ignoredVersionPins?: Array<{
3175
- fieldPath: string;
3176
- wref: string;
3177
- binding: 'identity';
3178
- }>;
3179
- shapeless?: true;
3180
- };
3181
- affirmations?: {
3182
- added: Array<string>;
3183
- removed: Array<string>;
3184
- ignored: Array<string>;
3185
- };
3186
- status: 'error';
3187
- errors: Array<{
3188
- code: string;
3189
- message: string;
3190
- path?: string;
3191
- details?: {
3192
- reason: 'expected_version_mismatch';
3193
- expectedVersion: number;
3194
- currentVersion: number;
3195
- } | {
3196
- reason: 'lease_held';
3197
- leaseExpiresAt: string;
3198
- } | {
3199
- reason: 'validation_failed';
3200
- issues: Array<{
3201
- path: string;
3202
- message: string;
3203
- }>;
3204
- } | {
3205
- reason: 'rate_limit_reset';
3206
- retryAfterSeconds: number;
3207
- resetAt: string;
3208
- } | {
3209
- reason: 'cursor_fence_unavailable';
3210
- cause: 'not_ready' | 'below_floor' | 'above_head';
3211
- retryFromStart: true;
3212
- } | {
3213
- reason: 'dependency_failed';
3214
- producerOpIndexes: Array<number>;
3215
- } | {
3216
- reason: 'name_taken';
3217
- name: string;
3218
- takenBy?: {
3219
- durableId: string;
3220
- };
3221
- } | {
3222
- reason: 'target_removed';
3223
- targetDurableId: string;
3224
- fieldPath?: string;
3225
- } | {
3226
- reason: 'target_redacted';
3227
- targetDurableId: string;
3228
- fieldPath?: string;
3229
- } | {
3230
- reason: 'legacy-wrefs-window-ended';
3231
- } | {
3232
- reason: 'invalid_token';
3233
- };
3234
- retryable?: boolean;
3235
- }>;
3236
- type: 'result';
3237
- chunkOrdinal: number;
3238
- submissionIndex: number;
3239
- } | {
3240
- type: 'group';
3241
- chunkOrdinal: number;
3242
- eventRequestId: string;
3243
- requestDigest: string;
3244
- outcome: 'event' | 'no_event';
3245
- repoSeq?: number;
3246
- operations: {
3247
- applied: number;
3248
- noop: number;
3249
- failed: number;
3250
- };
3251
- manifestDigest: string;
3252
- } | {
3253
- type: 'summary';
3254
- submissionId: string;
3255
- streamId: string;
3256
- groupSize: number;
3257
- groups: number;
3258
- operations: {
3259
- applied: number;
3260
- noop: number;
3261
- failed: number;
3262
- total: number;
3263
- };
3264
- repoSeq: {
3265
- first: number | null;
3266
- last: number | null;
3267
- };
3268
- verdict: string;
3269
- durationMs: number;
3270
- truncatedAt?: {
3271
- lineNumber: number;
3272
- message: string;
3273
- };
3274
- manifest: {
3275
- groups: number;
3276
- digest: string;
3277
- };
3278
- } | {
3279
- type: 'error';
3280
- code: string;
3281
- message?: string;
3282
- };
3283
- type CommitApplyCompatibilityResult$1 = {
3284
- event: {
3285
- committedAt: string;
3286
- eventDigest: string;
3287
- operationCount: number;
3288
- repo: {
3289
- orgName: string;
3290
- repoName: string;
3291
- };
3292
- repoSeq: string;
3293
- } | null;
3294
- eventRequestId: string;
3295
- outcome: 'event' | 'no_event';
3296
- requestDigest: string;
3297
- schemaVersion: 'operation-event-receipt/v1';
3298
- submissionId?: string;
3299
- pruned?: true;
3300
- committer?: string;
3301
- createdByEmail?: string;
3302
- message?: string;
3303
- operationCount: number;
3304
- repoSeq?: number;
3305
- operations: Array<{
3306
- opIndex?: number;
3307
- name: string;
3308
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3309
- version: number;
3310
- dataHash: string;
3311
- status?: 'applied' | 'noop';
3312
- affirmations?: {
3313
- added: Array<string>;
3314
- removed: Array<string>;
3315
- ignored: Array<string>;
3316
- };
3317
- warnings?: {
3318
- undeclaredFields?: Array<string>;
3319
- undeclaredFieldsTruncated?: true;
3320
- totalUndeclared?: number;
3321
- coalescedWrefs?: Array<{
3322
- fieldPath: string;
3323
- wref: string;
3324
- reason: string;
3325
- }>;
3326
- coalescedWrefsTruncated?: true;
3327
- totalCoalescedWrefs?: number;
3328
- ignoredVersionPins?: Array<{
3329
- fieldPath: string;
3330
- wref: string;
3331
- binding: 'identity';
3332
- }>;
3333
- deprecations?: Array<{
3334
- shape: string;
3335
- message: string;
3336
- removalMilestone: string;
3337
- }>;
3338
- };
3339
- }>;
3340
- receipt: {
3341
- event: {
3342
- committedAt: string;
3343
- eventDigest: string;
3344
- operationCount: number;
3345
- repo: {
3346
- orgName: string;
3347
- repoName: string;
3348
- };
3349
- repoSeq: string;
3350
- } | null;
3351
- eventRequestId: string;
3352
- operations: Array<{
3353
- opIndex?: number;
3354
- name: string;
3355
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3356
- version: number;
3357
- dataHash: string;
3358
- status?: 'applied' | 'noop';
3359
- affirmations?: {
3360
- added: Array<string>;
3361
- removed: Array<string>;
3362
- ignored: Array<string>;
3363
- };
3364
- warnings?: {
3365
- undeclaredFields?: Array<string>;
3366
- undeclaredFieldsTruncated?: true;
3367
- totalUndeclared?: number;
3368
- coalescedWrefs?: Array<{
3369
- fieldPath: string;
3370
- wref: string;
3371
- reason: string;
3372
- }>;
3373
- coalescedWrefsTruncated?: true;
3374
- totalCoalescedWrefs?: number;
3375
- ignoredVersionPins?: Array<{
3376
- fieldPath: string;
3377
- wref: string;
3378
- binding: 'identity';
3379
- }>;
3380
- deprecations?: Array<{
3381
- shape: string;
3382
- message: string;
3383
- removalMilestone: string;
3384
- }>;
3385
- };
3386
- } | {
3387
- opIndex?: number;
3388
- name: string;
3389
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3390
- version?: number;
3391
- dataHash?: string;
3392
- status?: 'success' | 'noop' | 'failed';
3393
- error?: {
3394
- code: string;
3395
- message: string;
3396
- details?: {
3397
- reason: 'expected_version_mismatch';
3398
- expectedVersion: number;
3399
- currentVersion: number;
3400
- } | {
3401
- reason: 'lease_held';
3402
- leaseExpiresAt: string;
3403
- } | {
3404
- reason: 'validation_failed';
3405
- issues: Array<{
3406
- path: string;
3407
- message: string;
3408
- }>;
3409
- } | {
3410
- reason: 'rate_limit_reset';
3411
- retryAfterSeconds: number;
3412
- resetAt: string;
3413
- } | {
3414
- reason: 'cursor_fence_unavailable';
3415
- cause: 'not_ready' | 'below_floor' | 'above_head';
3416
- retryFromStart: true;
3417
- };
3418
- };
3419
- resolvedName?: string;
3420
- retryable?: boolean;
3421
- warnings?: {
3422
- undeclaredFields?: Array<string>;
3423
- undeclaredFieldsTruncated?: true;
3424
- totalUndeclared?: number;
3425
- coalescedWrefs?: Array<{
3426
- fieldPath: string;
3427
- wref: string;
3428
- reason: string;
3429
- }>;
3430
- coalescedWrefsTruncated?: true;
3431
- totalCoalescedWrefs?: number;
3432
- ignoredVersionPins?: Array<{
3433
- fieldPath: string;
3434
- wref: string;
3435
- binding: 'identity';
3436
- }>;
3437
- deprecations?: Array<{
3438
- shape: string;
3439
- message: string;
3440
- removalMilestone: string;
3441
- }>;
3442
- };
3443
- affirmations?: {
3444
- added: Array<string>;
3445
- removed: Array<string>;
3446
- ignored: Array<string>;
3447
- };
3448
- }>;
3449
- outcome: 'event' | 'no_event';
3450
- requestDigest: string;
3451
- schemaVersion: 'operation-event-receipt/v1';
3452
- submissionId?: string;
3453
- pruned?: true;
3454
- };
3455
- } | {
3456
- event: {
3457
- committedAt: string;
3458
- eventDigest: string;
3459
- operationCount: number;
3460
- repo: {
3461
- orgName: string;
3462
- repoName: string;
3463
- };
3464
- repoSeq: string;
3465
- } | null;
3466
- eventRequestId: string;
3467
- outcome: 'event' | 'no_event';
3468
- requestDigest: string;
3469
- schemaVersion: 'operation-event-receipt/v2';
3470
- submissionId?: string;
3471
- pruned?: true;
3472
- committer?: string;
3473
- createdByEmail?: string;
3474
- message?: string;
3475
- operationCount: number;
3476
- repoSeq?: number;
3477
- operations: Array<{
3478
- opIndex: number;
3479
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3480
- name: string;
3481
- submittedName?: string;
3482
- resolvedName?: string;
1933
+ submittedName?: string;
1934
+ resolvedName?: string;
3483
1935
  warnings?: {
3484
1936
  undeclaredFields?: Array<string>;
3485
1937
  undeclaredFieldsTruncated?: true;
@@ -3511,6 +1963,7 @@ type CommitApplyCompatibilityResult$1 = {
3511
1963
  status: 'applied' | 'noop';
3512
1964
  version?: number;
3513
1965
  dataHash?: string;
1966
+ fileId?: string;
3514
1967
  } | {
3515
1968
  opIndex: number;
3516
1969
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -3596,6 +2049,11 @@ type CommitApplyCompatibilityResult$1 = {
3596
2049
  retryable?: boolean;
3597
2050
  }>;
3598
2051
  }>;
2052
+ outcome?: 'event' | 'no_event';
2053
+ requestDigest?: string;
2054
+ schemaVersion?: 'operation-event-receipt/v2';
2055
+ submissionId?: string;
2056
+ pruned?: true;
3599
2057
  receipt: {
3600
2058
  event: {
3601
2059
  committedAt: string;
@@ -3645,6 +2103,7 @@ type CommitApplyCompatibilityResult$1 = {
3645
2103
  status: 'applied' | 'noop';
3646
2104
  version?: number;
3647
2105
  dataHash?: string;
2106
+ fileId?: string;
3648
2107
  } | {
3649
2108
  opIndex: number;
3650
2109
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -3736,31 +2195,12 @@ type CommitApplyCompatibilityResult$1 = {
3736
2195
  submissionId?: string;
3737
2196
  pruned?: true;
3738
2197
  };
3739
- };
3740
- type CollectionMutationCompatibilityResult = {
3741
- event: {
3742
- committedAt: string;
3743
- eventDigest: string;
3744
- operationCount: number;
3745
- repo: {
3746
- orgName: string;
3747
- repoName: string;
3748
- };
3749
- repoSeq: string;
3750
- } | null;
3751
- eventRequestId: string;
3752
- operations: Array<{
3753
- opIndex?: number;
2198
+ results?: Array<{
2199
+ opIndex: number;
2200
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3754
2201
  name: string;
3755
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3756
- version: number;
3757
- dataHash: string;
3758
- status?: 'applied' | 'noop';
3759
- affirmations?: {
3760
- added: Array<string>;
3761
- removed: Array<string>;
3762
- ignored: Array<string>;
3763
- };
2202
+ submittedName?: string;
2203
+ resolvedName?: string;
3764
2204
  warnings?: {
3765
2205
  undeclaredFields?: Array<string>;
3766
2206
  undeclaredFieldsTruncated?: true;
@@ -3772,27 +2212,66 @@ type CollectionMutationCompatibilityResult = {
3772
2212
  }>;
3773
2213
  coalescedWrefsTruncated?: true;
3774
2214
  totalCoalescedWrefs?: number;
2215
+ deprecations?: Array<{
2216
+ shape: string;
2217
+ message: string;
2218
+ removalMilestone: string;
2219
+ }>;
3775
2220
  ignoredVersionPins?: Array<{
3776
2221
  fieldPath: string;
3777
2222
  wref: string;
3778
2223
  binding: 'identity';
3779
2224
  }>;
2225
+ shapeless?: true;
2226
+ };
2227
+ affirmations?: {
2228
+ added: Array<string>;
2229
+ removed: Array<string>;
2230
+ ignored: Array<string>;
2231
+ };
2232
+ status: 'applied' | 'noop';
2233
+ version?: number;
2234
+ dataHash?: string;
2235
+ fileId?: string;
2236
+ } | {
2237
+ opIndex: number;
2238
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2239
+ name: string;
2240
+ submittedName?: string;
2241
+ resolvedName?: string;
2242
+ warnings?: {
2243
+ undeclaredFields?: Array<string>;
2244
+ undeclaredFieldsTruncated?: true;
2245
+ totalUndeclared?: number;
2246
+ coalescedWrefs?: Array<{
2247
+ fieldPath: string;
2248
+ wref: string;
2249
+ reason: string;
2250
+ }>;
2251
+ coalescedWrefsTruncated?: true;
2252
+ totalCoalescedWrefs?: number;
3780
2253
  deprecations?: Array<{
3781
2254
  shape: string;
3782
2255
  message: string;
3783
2256
  removalMilestone: string;
3784
2257
  }>;
2258
+ ignoredVersionPins?: Array<{
2259
+ fieldPath: string;
2260
+ wref: string;
2261
+ binding: 'identity';
2262
+ }>;
2263
+ shapeless?: true;
3785
2264
  };
3786
- } | {
3787
- opIndex?: number;
3788
- name: string;
3789
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3790
- version?: number;
3791
- dataHash?: string;
3792
- status?: 'success' | 'noop' | 'failed';
3793
- error?: {
2265
+ affirmations?: {
2266
+ added: Array<string>;
2267
+ removed: Array<string>;
2268
+ ignored: Array<string>;
2269
+ };
2270
+ status: 'error';
2271
+ errors: Array<{
3794
2272
  code: string;
3795
2273
  message: string;
2274
+ path?: string;
3796
2275
  details?: {
3797
2276
  reason: 'expected_version_mismatch';
3798
2277
  expectedVersion: number;
@@ -3814,50 +2293,79 @@ type CollectionMutationCompatibilityResult = {
3814
2293
  reason: 'cursor_fence_unavailable';
3815
2294
  cause: 'not_ready' | 'below_floor' | 'above_head';
3816
2295
  retryFromStart: true;
2296
+ } | {
2297
+ reason: 'dependency_failed';
2298
+ producerOpIndexes: Array<number>;
2299
+ } | {
2300
+ reason: 'name_taken';
2301
+ name: string;
2302
+ takenBy?: {
2303
+ durableId: string;
2304
+ };
2305
+ } | {
2306
+ reason: 'target_removed';
2307
+ targetDurableId: string;
2308
+ fieldPath?: string;
2309
+ } | {
2310
+ reason: 'target_redacted';
2311
+ targetDurableId: string;
2312
+ fieldPath?: string;
2313
+ } | {
2314
+ reason: 'legacy-wrefs-window-ended';
2315
+ } | {
2316
+ reason: 'invalid_token';
3817
2317
  };
3818
- };
3819
- resolvedName?: string;
3820
- retryable?: boolean;
3821
- warnings?: {
3822
- undeclaredFields?: Array<string>;
3823
- undeclaredFieldsTruncated?: true;
3824
- totalUndeclared?: number;
3825
- coalescedWrefs?: Array<{
3826
- fieldPath: string;
3827
- wref: string;
3828
- reason: string;
3829
- }>;
3830
- coalescedWrefsTruncated?: true;
3831
- totalCoalescedWrefs?: number;
3832
- ignoredVersionPins?: Array<{
3833
- fieldPath: string;
3834
- wref: string;
3835
- binding: 'identity';
3836
- }>;
3837
- deprecations?: Array<{
3838
- shape: string;
3839
- message: string;
3840
- removalMilestone: string;
3841
- }>;
3842
- };
3843
- affirmations?: {
3844
- added: Array<string>;
3845
- removed: Array<string>;
3846
- ignored: Array<string>;
3847
- };
2318
+ retryable?: boolean;
2319
+ }>;
3848
2320
  }>;
3849
- outcome: 'event' | 'no_event';
3850
- requestDigest: string;
3851
- schemaVersion: 'operation-event-receipt/v1';
3852
- submissionId?: string;
3853
- pruned?: true;
3854
- type: 'arc' | 'bond' | 'set' | 'list' | 'pair';
3855
- wref: string;
3856
- version: number;
3857
- memberCount: number;
2321
+ };
2322
+ type StreamingSubmissionRow$1 = {
2323
+ opIndex: number;
2324
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2325
+ name: string;
2326
+ submittedName?: string;
2327
+ resolvedName?: string;
2328
+ warnings?: {
2329
+ undeclaredFields?: Array<string>;
2330
+ undeclaredFieldsTruncated?: true;
2331
+ totalUndeclared?: number;
2332
+ coalescedWrefs?: Array<{
2333
+ fieldPath: string;
2334
+ wref: string;
2335
+ reason: string;
2336
+ }>;
2337
+ coalescedWrefsTruncated?: true;
2338
+ totalCoalescedWrefs?: number;
2339
+ deprecations?: Array<{
2340
+ shape: string;
2341
+ message: string;
2342
+ removalMilestone: string;
2343
+ }>;
2344
+ ignoredVersionPins?: Array<{
2345
+ fieldPath: string;
2346
+ wref: string;
2347
+ binding: 'identity';
2348
+ }>;
2349
+ shapeless?: true;
2350
+ };
2351
+ affirmations?: {
2352
+ added: Array<string>;
2353
+ removed: Array<string>;
2354
+ ignored: Array<string>;
2355
+ };
2356
+ status: 'applied' | 'noop';
2357
+ version?: number;
3858
2358
  dataHash?: string;
3859
- operationCount: number;
3860
- status: 'created' | 'updated' | 'noop';
2359
+ fileId?: string;
2360
+ type: 'result';
2361
+ chunkOrdinal: number;
2362
+ submissionIndex: number;
2363
+ } | {
2364
+ opIndex: number;
2365
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
2366
+ name: string;
2367
+ submittedName?: string;
2368
+ resolvedName?: string;
3861
2369
  warnings?: {
3862
2370
  undeclaredFields?: Array<string>;
3863
2371
  undeclaredFieldsTruncated?: true;
@@ -3881,123 +2389,115 @@ type CollectionMutationCompatibilityResult = {
3881
2389
  }>;
3882
2390
  shapeless?: true;
3883
2391
  };
3884
- receipt: {
3885
- event: {
3886
- committedAt: string;
3887
- eventDigest: string;
3888
- operationCount: number;
3889
- repo: {
3890
- orgName: string;
3891
- repoName: string;
3892
- };
3893
- repoSeq: string;
3894
- } | null;
3895
- eventRequestId: string;
3896
- operations: Array<{
3897
- opIndex?: number;
3898
- name: string;
3899
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3900
- version: number;
3901
- dataHash: string;
3902
- status?: 'applied' | 'noop';
3903
- affirmations?: {
3904
- added: Array<string>;
3905
- removed: Array<string>;
3906
- ignored: Array<string>;
3907
- };
3908
- warnings?: {
3909
- undeclaredFields?: Array<string>;
3910
- undeclaredFieldsTruncated?: true;
3911
- totalUndeclared?: number;
3912
- coalescedWrefs?: Array<{
3913
- fieldPath: string;
3914
- wref: string;
3915
- reason: string;
3916
- }>;
3917
- coalescedWrefsTruncated?: true;
3918
- totalCoalescedWrefs?: number;
3919
- ignoredVersionPins?: Array<{
3920
- fieldPath: string;
3921
- wref: string;
3922
- binding: 'identity';
3923
- }>;
3924
- deprecations?: Array<{
3925
- shape: string;
3926
- message: string;
3927
- removalMilestone: string;
3928
- }>;
3929
- };
2392
+ affirmations?: {
2393
+ added: Array<string>;
2394
+ removed: Array<string>;
2395
+ ignored: Array<string>;
2396
+ };
2397
+ status: 'error';
2398
+ errors: Array<{
2399
+ code: string;
2400
+ message: string;
2401
+ path?: string;
2402
+ details?: {
2403
+ reason: 'expected_version_mismatch';
2404
+ expectedVersion: number;
2405
+ currentVersion: number;
3930
2406
  } | {
3931
- opIndex?: number;
3932
- name: string;
3933
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
3934
- version?: number;
3935
- dataHash?: string;
3936
- status?: 'success' | 'noop' | 'failed';
3937
- error?: {
3938
- code: string;
2407
+ reason: 'lease_held';
2408
+ leaseExpiresAt: string;
2409
+ } | {
2410
+ reason: 'validation_failed';
2411
+ issues: Array<{
2412
+ path: string;
3939
2413
  message: string;
3940
- details?: {
3941
- reason: 'expected_version_mismatch';
3942
- expectedVersion: number;
3943
- currentVersion: number;
3944
- } | {
3945
- reason: 'lease_held';
3946
- leaseExpiresAt: string;
3947
- } | {
3948
- reason: 'validation_failed';
3949
- issues: Array<{
3950
- path: string;
3951
- message: string;
3952
- }>;
3953
- } | {
3954
- reason: 'rate_limit_reset';
3955
- retryAfterSeconds: number;
3956
- resetAt: string;
3957
- } | {
3958
- reason: 'cursor_fence_unavailable';
3959
- cause: 'not_ready' | 'below_floor' | 'above_head';
3960
- retryFromStart: true;
3961
- };
3962
- };
3963
- resolvedName?: string;
3964
- retryable?: boolean;
3965
- warnings?: {
3966
- undeclaredFields?: Array<string>;
3967
- undeclaredFieldsTruncated?: true;
3968
- totalUndeclared?: number;
3969
- coalescedWrefs?: Array<{
3970
- fieldPath: string;
3971
- wref: string;
3972
- reason: string;
3973
- }>;
3974
- coalescedWrefsTruncated?: true;
3975
- totalCoalescedWrefs?: number;
3976
- ignoredVersionPins?: Array<{
3977
- fieldPath: string;
3978
- wref: string;
3979
- binding: 'identity';
3980
- }>;
3981
- deprecations?: Array<{
3982
- shape: string;
3983
- message: string;
3984
- removalMilestone: string;
3985
- }>;
3986
- };
3987
- affirmations?: {
3988
- added: Array<string>;
3989
- removed: Array<string>;
3990
- ignored: Array<string>;
2414
+ }>;
2415
+ } | {
2416
+ reason: 'rate_limit_reset';
2417
+ retryAfterSeconds: number;
2418
+ resetAt: string;
2419
+ } | {
2420
+ reason: 'cursor_fence_unavailable';
2421
+ cause: 'not_ready' | 'below_floor' | 'above_head';
2422
+ retryFromStart: true;
2423
+ } | {
2424
+ reason: 'dependency_failed';
2425
+ producerOpIndexes: Array<number>;
2426
+ } | {
2427
+ reason: 'name_taken';
2428
+ name: string;
2429
+ takenBy?: {
2430
+ durableId: string;
3991
2431
  };
3992
- }>;
3993
- outcome: 'event' | 'no_event';
3994
- requestDigest: string;
3995
- schemaVersion: 'operation-event-receipt/v1';
3996
- submissionId?: string;
3997
- pruned?: true;
2432
+ } | {
2433
+ reason: 'target_removed';
2434
+ targetDurableId: string;
2435
+ fieldPath?: string;
2436
+ } | {
2437
+ reason: 'target_redacted';
2438
+ targetDurableId: string;
2439
+ fieldPath?: string;
2440
+ } | {
2441
+ reason: 'legacy-wrefs-window-ended';
2442
+ } | {
2443
+ reason: 'invalid_token';
2444
+ };
2445
+ retryable?: boolean;
2446
+ }>;
2447
+ type: 'result';
2448
+ chunkOrdinal: number;
2449
+ submissionIndex: number;
2450
+ } | {
2451
+ type: 'group';
2452
+ chunkOrdinal: number;
2453
+ eventRequestId: string;
2454
+ requestDigest: string;
2455
+ outcome: 'event' | 'no_event';
2456
+ repoSeq?: number;
2457
+ operations: {
2458
+ applied: number;
2459
+ noop: number;
2460
+ failed: number;
3998
2461
  };
2462
+ manifestDigest: string;
3999
2463
  } | {
4000
- event: {
2464
+ type: 'summary';
2465
+ submissionId: string;
2466
+ streamId: string;
2467
+ groupSize: number;
2468
+ groups: number;
2469
+ operations: {
2470
+ applied: number;
2471
+ noop: number;
2472
+ failed: number;
2473
+ total: number;
2474
+ };
2475
+ repoSeq: {
2476
+ first: number | null;
2477
+ last: number | null;
2478
+ };
2479
+ verdict: string;
2480
+ durationMs: number;
2481
+ truncatedAt?: {
2482
+ lineNumber: number;
2483
+ message: string;
2484
+ };
2485
+ manifest: {
2486
+ groups: number;
2487
+ digest: string;
2488
+ };
2489
+ } | {
2490
+ type: 'error';
2491
+ code: string;
2492
+ message?: string;
2493
+ };
2494
+ type CommitApplyCompatibilityResult$1 = {
2495
+ committer?: string;
2496
+ createdByEmail?: string;
2497
+ message?: string;
2498
+ operationCount: number;
2499
+ repoSeq?: number;
2500
+ event?: {
4001
2501
  committedAt: string;
4002
2502
  eventDigest: string;
4003
2503
  operationCount: number;
@@ -4007,8 +2507,8 @@ type CollectionMutationCompatibilityResult = {
4007
2507
  };
4008
2508
  repoSeq: string;
4009
2509
  } | null;
4010
- eventRequestId: string;
4011
- operations: Array<{
2510
+ eventRequestId?: string;
2511
+ operations?: Array<{
4012
2512
  opIndex: number;
4013
2513
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
4014
2514
  name: string;
@@ -4045,6 +2545,7 @@ type CollectionMutationCompatibilityResult = {
4045
2545
  status: 'applied' | 'noop';
4046
2546
  version?: number;
4047
2547
  dataHash?: string;
2548
+ fileId?: string;
4048
2549
  } | {
4049
2550
  opIndex: number;
4050
2551
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -4130,41 +2631,11 @@ type CollectionMutationCompatibilityResult = {
4130
2631
  retryable?: boolean;
4131
2632
  }>;
4132
2633
  }>;
4133
- outcome: 'event' | 'no_event';
4134
- requestDigest: string;
4135
- schemaVersion: 'operation-event-receipt/v2';
2634
+ outcome?: 'event' | 'no_event';
2635
+ requestDigest?: string;
2636
+ schemaVersion?: 'operation-event-receipt/v2';
4136
2637
  submissionId?: string;
4137
- pruned?: true;
4138
- type: 'arc' | 'bond' | 'set' | 'list' | 'pair';
4139
- wref: string;
4140
- version: number;
4141
- memberCount: number;
4142
- dataHash?: string;
4143
- operationCount: number;
4144
- status: 'created' | 'updated' | 'noop';
4145
- warnings?: {
4146
- undeclaredFields?: Array<string>;
4147
- undeclaredFieldsTruncated?: true;
4148
- totalUndeclared?: number;
4149
- coalescedWrefs?: Array<{
4150
- fieldPath: string;
4151
- wref: string;
4152
- reason: string;
4153
- }>;
4154
- coalescedWrefsTruncated?: true;
4155
- totalCoalescedWrefs?: number;
4156
- deprecations?: Array<{
4157
- shape: string;
4158
- message: string;
4159
- removalMilestone: string;
4160
- }>;
4161
- ignoredVersionPins?: Array<{
4162
- fieldPath: string;
4163
- wref: string;
4164
- binding: 'identity';
4165
- }>;
4166
- shapeless?: true;
4167
- };
2638
+ pruned?: true;
4168
2639
  receipt: {
4169
2640
  event: {
4170
2641
  committedAt: string;
@@ -4214,6 +2685,7 @@ type CollectionMutationCompatibilityResult = {
4214
2685
  status: 'applied' | 'noop';
4215
2686
  version?: number;
4216
2687
  dataHash?: string;
2688
+ fileId?: string;
4217
2689
  } | {
4218
2690
  opIndex: number;
4219
2691
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -4306,8 +2778,38 @@ type CollectionMutationCompatibilityResult = {
4306
2778
  pruned?: true;
4307
2779
  };
4308
2780
  };
4309
- type RemoveCompatibilityResult = {
4310
- event: {
2781
+ type CollectionMutationCompatibilityResult = {
2782
+ type?: 'arc' | 'bond' | 'set' | 'list' | 'pair';
2783
+ wref?: string;
2784
+ version?: number;
2785
+ memberCount?: number;
2786
+ dataHash?: string;
2787
+ operationCount?: number;
2788
+ status?: 'created' | 'updated' | 'noop';
2789
+ warnings?: {
2790
+ undeclaredFields?: Array<string>;
2791
+ undeclaredFieldsTruncated?: true;
2792
+ totalUndeclared?: number;
2793
+ coalescedWrefs?: Array<{
2794
+ fieldPath: string;
2795
+ wref: string;
2796
+ reason: string;
2797
+ }>;
2798
+ coalescedWrefsTruncated?: true;
2799
+ totalCoalescedWrefs?: number;
2800
+ deprecations?: Array<{
2801
+ shape: string;
2802
+ message: string;
2803
+ removalMilestone: string;
2804
+ }>;
2805
+ ignoredVersionPins?: Array<{
2806
+ fieldPath: string;
2807
+ wref: string;
2808
+ binding: 'identity';
2809
+ }>;
2810
+ shapeless?: true;
2811
+ };
2812
+ event?: {
4311
2813
  committedAt: string;
4312
2814
  eventDigest: string;
4313
2815
  operationCount: number;
@@ -4317,8 +2819,8 @@ type RemoveCompatibilityResult = {
4317
2819
  };
4318
2820
  repoSeq: string;
4319
2821
  } | null;
4320
- eventRequestId: string;
4321
- operations: Array<{
2822
+ eventRequestId?: string;
2823
+ operations?: Array<{
4322
2824
  opIndex: number;
4323
2825
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
4324
2826
  name: string;
@@ -4355,6 +2857,7 @@ type RemoveCompatibilityResult = {
4355
2857
  status: 'applied' | 'noop';
4356
2858
  version?: number;
4357
2859
  dataHash?: string;
2860
+ fileId?: string;
4358
2861
  } | {
4359
2862
  opIndex: number;
4360
2863
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -4440,12 +2943,11 @@ type RemoveCompatibilityResult = {
4440
2943
  retryable?: boolean;
4441
2944
  }>;
4442
2945
  }>;
4443
- outcome: 'event' | 'no_event';
4444
- requestDigest: string;
4445
- schemaVersion: 'operation-event-receipt/v2';
2946
+ outcome?: 'event' | 'no_event';
2947
+ requestDigest?: string;
2948
+ schemaVersion?: 'operation-event-receipt/v2';
4446
2949
  submissionId?: string;
4447
2950
  pruned?: true;
4448
- removed: true;
4449
2951
  receipt: {
4450
2952
  event: {
4451
2953
  committedAt: string;
@@ -4495,6 +2997,7 @@ type RemoveCompatibilityResult = {
4495
2997
  status: 'applied' | 'noop';
4496
2998
  version?: number;
4497
2999
  dataHash?: string;
3000
+ fileId?: string;
4498
3001
  } | {
4499
3002
  opIndex: number;
4500
3003
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -4585,240 +3088,11 @@ type RemoveCompatibilityResult = {
4585
3088
  schemaVersion: 'operation-event-receipt/v2';
4586
3089
  submissionId?: string;
4587
3090
  pruned?: true;
4588
- };
4589
- };
4590
- type RenameCompatibilityResult = {
4591
- event: {
4592
- committedAt: string;
4593
- eventDigest: string;
4594
- operationCount: number;
4595
- repo: {
4596
- orgName: string;
4597
- repoName: string;
4598
- };
4599
- repoSeq: string;
4600
- } | null;
4601
- eventRequestId: string;
4602
- operations: Array<{
4603
- opIndex?: number;
4604
- name: string;
4605
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4606
- version: number;
4607
- dataHash: string;
4608
- status?: 'applied' | 'noop';
4609
- affirmations?: {
4610
- added: Array<string>;
4611
- removed: Array<string>;
4612
- ignored: Array<string>;
4613
- };
4614
- warnings?: {
4615
- undeclaredFields?: Array<string>;
4616
- undeclaredFieldsTruncated?: true;
4617
- totalUndeclared?: number;
4618
- coalescedWrefs?: Array<{
4619
- fieldPath: string;
4620
- wref: string;
4621
- reason: string;
4622
- }>;
4623
- coalescedWrefsTruncated?: true;
4624
- totalCoalescedWrefs?: number;
4625
- ignoredVersionPins?: Array<{
4626
- fieldPath: string;
4627
- wref: string;
4628
- binding: 'identity';
4629
- }>;
4630
- deprecations?: Array<{
4631
- shape: string;
4632
- message: string;
4633
- removalMilestone: string;
4634
- }>;
4635
- };
4636
- } | {
4637
- opIndex?: number;
4638
- name: string;
4639
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4640
- version?: number;
4641
- dataHash?: string;
4642
- status?: 'success' | 'noop' | 'failed';
4643
- error?: {
4644
- code: string;
4645
- message: string;
4646
- details?: {
4647
- reason: 'expected_version_mismatch';
4648
- expectedVersion: number;
4649
- currentVersion: number;
4650
- } | {
4651
- reason: 'lease_held';
4652
- leaseExpiresAt: string;
4653
- } | {
4654
- reason: 'validation_failed';
4655
- issues: Array<{
4656
- path: string;
4657
- message: string;
4658
- }>;
4659
- } | {
4660
- reason: 'rate_limit_reset';
4661
- retryAfterSeconds: number;
4662
- resetAt: string;
4663
- } | {
4664
- reason: 'cursor_fence_unavailable';
4665
- cause: 'not_ready' | 'below_floor' | 'above_head';
4666
- retryFromStart: true;
4667
- };
4668
- };
4669
- resolvedName?: string;
4670
- retryable?: boolean;
4671
- warnings?: {
4672
- undeclaredFields?: Array<string>;
4673
- undeclaredFieldsTruncated?: true;
4674
- totalUndeclared?: number;
4675
- coalescedWrefs?: Array<{
4676
- fieldPath: string;
4677
- wref: string;
4678
- reason: string;
4679
- }>;
4680
- coalescedWrefsTruncated?: true;
4681
- totalCoalescedWrefs?: number;
4682
- ignoredVersionPins?: Array<{
4683
- fieldPath: string;
4684
- wref: string;
4685
- binding: 'identity';
4686
- }>;
4687
- deprecations?: Array<{
4688
- shape: string;
4689
- message: string;
4690
- removalMilestone: string;
4691
- }>;
4692
- };
4693
- affirmations?: {
4694
- added: Array<string>;
4695
- removed: Array<string>;
4696
- ignored: Array<string>;
4697
- };
4698
- }>;
4699
- outcome: 'event' | 'no_event';
4700
- requestDigest: string;
4701
- schemaVersion: 'operation-event-receipt/v1';
4702
- submissionId?: string;
4703
- pruned?: true;
4704
- renamed: true;
4705
- receipt: {
4706
- event: {
4707
- committedAt: string;
4708
- eventDigest: string;
4709
- operationCount: number;
4710
- repo: {
4711
- orgName: string;
4712
- repoName: string;
4713
- };
4714
- repoSeq: string;
4715
- } | null;
4716
- eventRequestId: string;
4717
- operations: Array<{
4718
- opIndex?: number;
4719
- name: string;
4720
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4721
- version: number;
4722
- dataHash: string;
4723
- status?: 'applied' | 'noop';
4724
- affirmations?: {
4725
- added: Array<string>;
4726
- removed: Array<string>;
4727
- ignored: Array<string>;
4728
- };
4729
- warnings?: {
4730
- undeclaredFields?: Array<string>;
4731
- undeclaredFieldsTruncated?: true;
4732
- totalUndeclared?: number;
4733
- coalescedWrefs?: Array<{
4734
- fieldPath: string;
4735
- wref: string;
4736
- reason: string;
4737
- }>;
4738
- coalescedWrefsTruncated?: true;
4739
- totalCoalescedWrefs?: number;
4740
- ignoredVersionPins?: Array<{
4741
- fieldPath: string;
4742
- wref: string;
4743
- binding: 'identity';
4744
- }>;
4745
- deprecations?: Array<{
4746
- shape: string;
4747
- message: string;
4748
- removalMilestone: string;
4749
- }>;
4750
- };
4751
- } | {
4752
- opIndex?: number;
4753
- name: string;
4754
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
4755
- version?: number;
4756
- dataHash?: string;
4757
- status?: 'success' | 'noop' | 'failed';
4758
- error?: {
4759
- code: string;
4760
- message: string;
4761
- details?: {
4762
- reason: 'expected_version_mismatch';
4763
- expectedVersion: number;
4764
- currentVersion: number;
4765
- } | {
4766
- reason: 'lease_held';
4767
- leaseExpiresAt: string;
4768
- } | {
4769
- reason: 'validation_failed';
4770
- issues: Array<{
4771
- path: string;
4772
- message: string;
4773
- }>;
4774
- } | {
4775
- reason: 'rate_limit_reset';
4776
- retryAfterSeconds: number;
4777
- resetAt: string;
4778
- } | {
4779
- reason: 'cursor_fence_unavailable';
4780
- cause: 'not_ready' | 'below_floor' | 'above_head';
4781
- retryFromStart: true;
4782
- };
4783
- };
4784
- resolvedName?: string;
4785
- retryable?: boolean;
4786
- warnings?: {
4787
- undeclaredFields?: Array<string>;
4788
- undeclaredFieldsTruncated?: true;
4789
- totalUndeclared?: number;
4790
- coalescedWrefs?: Array<{
4791
- fieldPath: string;
4792
- wref: string;
4793
- reason: string;
4794
- }>;
4795
- coalescedWrefsTruncated?: true;
4796
- totalCoalescedWrefs?: number;
4797
- ignoredVersionPins?: Array<{
4798
- fieldPath: string;
4799
- wref: string;
4800
- binding: 'identity';
4801
- }>;
4802
- deprecations?: Array<{
4803
- shape: string;
4804
- message: string;
4805
- removalMilestone: string;
4806
- }>;
4807
- };
4808
- affirmations?: {
4809
- added: Array<string>;
4810
- removed: Array<string>;
4811
- ignored: Array<string>;
4812
- };
4813
- }>;
4814
- outcome: 'event' | 'no_event';
4815
- requestDigest: string;
4816
- schemaVersion: 'operation-event-receipt/v1';
4817
- submissionId?: string;
4818
- pruned?: true;
4819
- };
4820
- } | {
4821
- event: {
3091
+ };
3092
+ };
3093
+ type RemoveCompatibilityResult = {
3094
+ removed: true;
3095
+ event?: {
4822
3096
  committedAt: string;
4823
3097
  eventDigest: string;
4824
3098
  operationCount: number;
@@ -4828,8 +3102,8 @@ type RenameCompatibilityResult = {
4828
3102
  };
4829
3103
  repoSeq: string;
4830
3104
  } | null;
4831
- eventRequestId: string;
4832
- operations: Array<{
3105
+ eventRequestId?: string;
3106
+ operations?: Array<{
4833
3107
  opIndex: number;
4834
3108
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
4835
3109
  name: string;
@@ -4866,6 +3140,7 @@ type RenameCompatibilityResult = {
4866
3140
  status: 'applied' | 'noop';
4867
3141
  version?: number;
4868
3142
  dataHash?: string;
3143
+ fileId?: string;
4869
3144
  } | {
4870
3145
  opIndex: number;
4871
3146
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -4951,12 +3226,11 @@ type RenameCompatibilityResult = {
4951
3226
  retryable?: boolean;
4952
3227
  }>;
4953
3228
  }>;
4954
- outcome: 'event' | 'no_event';
4955
- requestDigest: string;
4956
- schemaVersion: 'operation-event-receipt/v2';
3229
+ outcome?: 'event' | 'no_event';
3230
+ requestDigest?: string;
3231
+ schemaVersion?: 'operation-event-receipt/v2';
4957
3232
  submissionId?: string;
4958
3233
  pruned?: true;
4959
- renamed: true;
4960
3234
  receipt: {
4961
3235
  event: {
4962
3236
  committedAt: string;
@@ -5006,6 +3280,7 @@ type RenameCompatibilityResult = {
5006
3280
  status: 'applied' | 'noop';
5007
3281
  version?: number;
5008
3282
  dataHash?: string;
3283
+ fileId?: string;
5009
3284
  } | {
5010
3285
  opIndex: number;
5011
3286
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -5098,8 +3373,9 @@ type RenameCompatibilityResult = {
5098
3373
  pruned?: true;
5099
3374
  };
5100
3375
  };
5101
- type RewriteCompatibilityResult = {
5102
- event: {
3376
+ type RenameCompatibilityResult = {
3377
+ renamed: true;
3378
+ event?: {
5103
3379
  committedAt: string;
5104
3380
  eventDigest: string;
5105
3381
  operationCount: number;
@@ -5109,8 +3385,8 @@ type RewriteCompatibilityResult = {
5109
3385
  };
5110
3386
  repoSeq: string;
5111
3387
  } | null;
5112
- eventRequestId: string;
5113
- operations: Array<{
3388
+ eventRequestId?: string;
3389
+ operations?: Array<{
5114
3390
  opIndex: number;
5115
3391
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
5116
3392
  name: string;
@@ -5147,6 +3423,7 @@ type RewriteCompatibilityResult = {
5147
3423
  status: 'applied' | 'noop';
5148
3424
  version?: number;
5149
3425
  dataHash?: string;
3426
+ fileId?: string;
5150
3427
  } | {
5151
3428
  opIndex: number;
5152
3429
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -5232,14 +3509,11 @@ type RewriteCompatibilityResult = {
5232
3509
  retryable?: boolean;
5233
3510
  }>;
5234
3511
  }>;
5235
- outcome: 'event' | 'no_event';
5236
- requestDigest: string;
5237
- schemaVersion: 'operation-event-receipt/v2';
3512
+ outcome?: 'event' | 'no_event';
3513
+ requestDigest?: string;
3514
+ schemaVersion?: 'operation-event-receipt/v2';
5238
3515
  submissionId?: string;
5239
3516
  pruned?: true;
5240
- status?: 'applied' | 'noop';
5241
- version?: number;
5242
- dataHash?: string;
5243
3517
  receipt: {
5244
3518
  event: {
5245
3519
  committedAt: string;
@@ -5289,6 +3563,7 @@ type RewriteCompatibilityResult = {
5289
3563
  status: 'applied' | 'noop';
5290
3564
  version?: number;
5291
3565
  dataHash?: string;
3566
+ fileId?: string;
5292
3567
  } | {
5293
3568
  opIndex: number;
5294
3569
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -5381,8 +3656,11 @@ type RewriteCompatibilityResult = {
5381
3656
  pruned?: true;
5382
3657
  };
5383
3658
  };
5384
- type ShapeChangeCompatibilityResult = {
5385
- event: {
3659
+ type RewriteCompatibilityResult = {
3660
+ status?: 'applied' | 'noop';
3661
+ version?: number;
3662
+ dataHash?: string;
3663
+ event?: {
5386
3664
  committedAt: string;
5387
3665
  eventDigest: string;
5388
3666
  operationCount: number;
@@ -5392,19 +3670,13 @@ type ShapeChangeCompatibilityResult = {
5392
3670
  };
5393
3671
  repoSeq: string;
5394
3672
  } | null;
5395
- eventRequestId: string;
5396
- operations: Array<{
5397
- opIndex?: number;
3673
+ eventRequestId?: string;
3674
+ operations?: Array<{
3675
+ opIndex: number;
3676
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
5398
3677
  name: string;
5399
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5400
- version: number;
5401
- dataHash: string;
5402
- status?: 'applied' | 'noop';
5403
- affirmations?: {
5404
- added: Array<string>;
5405
- removed: Array<string>;
5406
- ignored: Array<string>;
5407
- };
3678
+ submittedName?: string;
3679
+ resolvedName?: string;
5408
3680
  warnings?: {
5409
3681
  undeclaredFields?: Array<string>;
5410
3682
  undeclaredFieldsTruncated?: true;
@@ -5416,27 +3688,66 @@ type ShapeChangeCompatibilityResult = {
5416
3688
  }>;
5417
3689
  coalescedWrefsTruncated?: true;
5418
3690
  totalCoalescedWrefs?: number;
3691
+ deprecations?: Array<{
3692
+ shape: string;
3693
+ message: string;
3694
+ removalMilestone: string;
3695
+ }>;
5419
3696
  ignoredVersionPins?: Array<{
5420
3697
  fieldPath: string;
5421
3698
  wref: string;
5422
3699
  binding: 'identity';
5423
3700
  }>;
3701
+ shapeless?: true;
3702
+ };
3703
+ affirmations?: {
3704
+ added: Array<string>;
3705
+ removed: Array<string>;
3706
+ ignored: Array<string>;
3707
+ };
3708
+ status: 'applied' | 'noop';
3709
+ version?: number;
3710
+ dataHash?: string;
3711
+ fileId?: string;
3712
+ } | {
3713
+ opIndex: number;
3714
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3715
+ name: string;
3716
+ submittedName?: string;
3717
+ resolvedName?: string;
3718
+ warnings?: {
3719
+ undeclaredFields?: Array<string>;
3720
+ undeclaredFieldsTruncated?: true;
3721
+ totalUndeclared?: number;
3722
+ coalescedWrefs?: Array<{
3723
+ fieldPath: string;
3724
+ wref: string;
3725
+ reason: string;
3726
+ }>;
3727
+ coalescedWrefsTruncated?: true;
3728
+ totalCoalescedWrefs?: number;
5424
3729
  deprecations?: Array<{
5425
3730
  shape: string;
5426
3731
  message: string;
5427
3732
  removalMilestone: string;
5428
3733
  }>;
3734
+ ignoredVersionPins?: Array<{
3735
+ fieldPath: string;
3736
+ wref: string;
3737
+ binding: 'identity';
3738
+ }>;
3739
+ shapeless?: true;
5429
3740
  };
5430
- } | {
5431
- opIndex?: number;
5432
- name: string;
5433
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5434
- version?: number;
5435
- dataHash?: string;
5436
- status?: 'success' | 'noop' | 'failed';
5437
- error?: {
3741
+ affirmations?: {
3742
+ added: Array<string>;
3743
+ removed: Array<string>;
3744
+ ignored: Array<string>;
3745
+ };
3746
+ status: 'error';
3747
+ errors: Array<{
5438
3748
  code: string;
5439
3749
  message: string;
3750
+ path?: string;
5440
3751
  details?: {
5441
3752
  reason: 'expected_version_mismatch';
5442
3753
  expectedVersion: number;
@@ -5458,47 +3769,36 @@ type ShapeChangeCompatibilityResult = {
5458
3769
  reason: 'cursor_fence_unavailable';
5459
3770
  cause: 'not_ready' | 'below_floor' | 'above_head';
5460
3771
  retryFromStart: true;
3772
+ } | {
3773
+ reason: 'dependency_failed';
3774
+ producerOpIndexes: Array<number>;
3775
+ } | {
3776
+ reason: 'name_taken';
3777
+ name: string;
3778
+ takenBy?: {
3779
+ durableId: string;
3780
+ };
3781
+ } | {
3782
+ reason: 'target_removed';
3783
+ targetDurableId: string;
3784
+ fieldPath?: string;
3785
+ } | {
3786
+ reason: 'target_redacted';
3787
+ targetDurableId: string;
3788
+ fieldPath?: string;
3789
+ } | {
3790
+ reason: 'legacy-wrefs-window-ended';
3791
+ } | {
3792
+ reason: 'invalid_token';
5461
3793
  };
5462
- };
5463
- resolvedName?: string;
5464
- retryable?: boolean;
5465
- warnings?: {
5466
- undeclaredFields?: Array<string>;
5467
- undeclaredFieldsTruncated?: true;
5468
- totalUndeclared?: number;
5469
- coalescedWrefs?: Array<{
5470
- fieldPath: string;
5471
- wref: string;
5472
- reason: string;
5473
- }>;
5474
- coalescedWrefsTruncated?: true;
5475
- totalCoalescedWrefs?: number;
5476
- ignoredVersionPins?: Array<{
5477
- fieldPath: string;
5478
- wref: string;
5479
- binding: 'identity';
5480
- }>;
5481
- deprecations?: Array<{
5482
- shape: string;
5483
- message: string;
5484
- removalMilestone: string;
5485
- }>;
5486
- };
5487
- affirmations?: {
5488
- added: Array<string>;
5489
- removed: Array<string>;
5490
- ignored: Array<string>;
5491
- };
3794
+ retryable?: boolean;
3795
+ }>;
5492
3796
  }>;
5493
- outcome: 'event' | 'no_event';
5494
- requestDigest: string;
5495
- schemaVersion: 'operation-event-receipt/v1';
3797
+ outcome?: 'event' | 'no_event';
3798
+ requestDigest?: string;
3799
+ schemaVersion?: 'operation-event-receipt/v2';
5496
3800
  submissionId?: string;
5497
3801
  pruned?: true;
5498
- name: string;
5499
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
5500
- version: number;
5501
- dataHash: string;
5502
3802
  receipt: {
5503
3803
  event: {
5504
3804
  committedAt: string;
@@ -5512,17 +3812,11 @@ type ShapeChangeCompatibilityResult = {
5512
3812
  } | null;
5513
3813
  eventRequestId: string;
5514
3814
  operations: Array<{
5515
- opIndex?: number;
3815
+ opIndex: number;
3816
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
5516
3817
  name: string;
5517
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5518
- version: number;
5519
- dataHash: string;
5520
- status?: 'applied' | 'noop';
5521
- affirmations?: {
5522
- added: Array<string>;
5523
- removed: Array<string>;
5524
- ignored: Array<string>;
5525
- };
3818
+ submittedName?: string;
3819
+ resolvedName?: string;
5526
3820
  warnings?: {
5527
3821
  undeclaredFields?: Array<string>;
5528
3822
  undeclaredFieldsTruncated?: true;
@@ -5534,27 +3828,66 @@ type ShapeChangeCompatibilityResult = {
5534
3828
  }>;
5535
3829
  coalescedWrefsTruncated?: true;
5536
3830
  totalCoalescedWrefs?: number;
3831
+ deprecations?: Array<{
3832
+ shape: string;
3833
+ message: string;
3834
+ removalMilestone: string;
3835
+ }>;
5537
3836
  ignoredVersionPins?: Array<{
5538
3837
  fieldPath: string;
5539
3838
  wref: string;
5540
3839
  binding: 'identity';
5541
3840
  }>;
3841
+ shapeless?: true;
3842
+ };
3843
+ affirmations?: {
3844
+ added: Array<string>;
3845
+ removed: Array<string>;
3846
+ ignored: Array<string>;
3847
+ };
3848
+ status: 'applied' | 'noop';
3849
+ version?: number;
3850
+ dataHash?: string;
3851
+ fileId?: string;
3852
+ } | {
3853
+ opIndex: number;
3854
+ operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
3855
+ name: string;
3856
+ submittedName?: string;
3857
+ resolvedName?: string;
3858
+ warnings?: {
3859
+ undeclaredFields?: Array<string>;
3860
+ undeclaredFieldsTruncated?: true;
3861
+ totalUndeclared?: number;
3862
+ coalescedWrefs?: Array<{
3863
+ fieldPath: string;
3864
+ wref: string;
3865
+ reason: string;
3866
+ }>;
3867
+ coalescedWrefsTruncated?: true;
3868
+ totalCoalescedWrefs?: number;
5542
3869
  deprecations?: Array<{
5543
3870
  shape: string;
5544
3871
  message: string;
5545
3872
  removalMilestone: string;
5546
3873
  }>;
3874
+ ignoredVersionPins?: Array<{
3875
+ fieldPath: string;
3876
+ wref: string;
3877
+ binding: 'identity';
3878
+ }>;
3879
+ shapeless?: true;
5547
3880
  };
5548
- } | {
5549
- opIndex?: number;
5550
- name: string;
5551
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5552
- version?: number;
5553
- dataHash?: string;
5554
- status?: 'success' | 'noop' | 'failed';
5555
- error?: {
3881
+ affirmations?: {
3882
+ added: Array<string>;
3883
+ removed: Array<string>;
3884
+ ignored: Array<string>;
3885
+ };
3886
+ status: 'error';
3887
+ errors: Array<{
5556
3888
  code: string;
5557
3889
  message: string;
3890
+ path?: string;
5558
3891
  details?: {
5559
3892
  reason: 'expected_version_mismatch';
5560
3893
  expectedVersion: number;
@@ -5576,46 +3909,44 @@ type ShapeChangeCompatibilityResult = {
5576
3909
  reason: 'cursor_fence_unavailable';
5577
3910
  cause: 'not_ready' | 'below_floor' | 'above_head';
5578
3911
  retryFromStart: true;
5579
- };
5580
- };
5581
- resolvedName?: string;
5582
- retryable?: boolean;
5583
- warnings?: {
5584
- undeclaredFields?: Array<string>;
5585
- undeclaredFieldsTruncated?: true;
5586
- totalUndeclared?: number;
5587
- coalescedWrefs?: Array<{
5588
- fieldPath: string;
5589
- wref: string;
5590
- reason: string;
5591
- }>;
5592
- coalescedWrefsTruncated?: true;
5593
- totalCoalescedWrefs?: number;
5594
- ignoredVersionPins?: Array<{
5595
- fieldPath: string;
5596
- wref: string;
5597
- binding: 'identity';
5598
- }>;
5599
- deprecations?: Array<{
5600
- shape: string;
5601
- message: string;
5602
- removalMilestone: string;
5603
- }>;
5604
- };
5605
- affirmations?: {
5606
- added: Array<string>;
5607
- removed: Array<string>;
5608
- ignored: Array<string>;
5609
- };
3912
+ } | {
3913
+ reason: 'dependency_failed';
3914
+ producerOpIndexes: Array<number>;
3915
+ } | {
3916
+ reason: 'name_taken';
3917
+ name: string;
3918
+ takenBy?: {
3919
+ durableId: string;
3920
+ };
3921
+ } | {
3922
+ reason: 'target_removed';
3923
+ targetDurableId: string;
3924
+ fieldPath?: string;
3925
+ } | {
3926
+ reason: 'target_redacted';
3927
+ targetDurableId: string;
3928
+ fieldPath?: string;
3929
+ } | {
3930
+ reason: 'legacy-wrefs-window-ended';
3931
+ } | {
3932
+ reason: 'invalid_token';
3933
+ };
3934
+ retryable?: boolean;
3935
+ }>;
5610
3936
  }>;
5611
3937
  outcome: 'event' | 'no_event';
5612
3938
  requestDigest: string;
5613
- schemaVersion: 'operation-event-receipt/v1';
3939
+ schemaVersion: 'operation-event-receipt/v2';
5614
3940
  submissionId?: string;
5615
3941
  pruned?: true;
5616
3942
  };
5617
- } | {
5618
- event: {
3943
+ };
3944
+ type ShapeChangeCompatibilityResult = {
3945
+ name?: string;
3946
+ operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
3947
+ version?: number;
3948
+ dataHash?: string;
3949
+ event?: {
5619
3950
  committedAt: string;
5620
3951
  eventDigest: string;
5621
3952
  operationCount: number;
@@ -5625,8 +3956,8 @@ type ShapeChangeCompatibilityResult = {
5625
3956
  };
5626
3957
  repoSeq: string;
5627
3958
  } | null;
5628
- eventRequestId: string;
5629
- operations: Array<{
3959
+ eventRequestId?: string;
3960
+ operations?: Array<{
5630
3961
  opIndex: number;
5631
3962
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
5632
3963
  name: string;
@@ -5663,6 +3994,7 @@ type ShapeChangeCompatibilityResult = {
5663
3994
  status: 'applied' | 'noop';
5664
3995
  version?: number;
5665
3996
  dataHash?: string;
3997
+ fileId?: string;
5666
3998
  } | {
5667
3999
  opIndex: number;
5668
4000
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -5748,15 +4080,11 @@ type ShapeChangeCompatibilityResult = {
5748
4080
  retryable?: boolean;
5749
4081
  }>;
5750
4082
  }>;
5751
- outcome: 'event' | 'no_event';
5752
- requestDigest: string;
5753
- schemaVersion: 'operation-event-receipt/v2';
4083
+ outcome?: 'event' | 'no_event';
4084
+ requestDigest?: string;
4085
+ schemaVersion?: 'operation-event-receipt/v2';
5754
4086
  submissionId?: string;
5755
4087
  pruned?: true;
5756
- name: string;
5757
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
5758
- version: number;
5759
- dataHash: string;
5760
4088
  receipt: {
5761
4089
  event: {
5762
4090
  committedAt: string;
@@ -5806,6 +4134,7 @@ type ShapeChangeCompatibilityResult = {
5806
4134
  status: 'applied' | 'noop';
5807
4135
  version?: number;
5808
4136
  dataHash?: string;
4137
+ fileId?: string;
5809
4138
  } | {
5810
4139
  opIndex: number;
5811
4140
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -5899,241 +4228,12 @@ type ShapeChangeCompatibilityResult = {
5899
4228
  };
5900
4229
  };
5901
4230
  type ShapeRemoveCompatibilityResult = {
5902
- event: {
5903
- committedAt: string;
5904
- eventDigest: string;
5905
- operationCount: number;
5906
- repo: {
5907
- orgName: string;
5908
- repoName: string;
5909
- };
5910
- repoSeq: string;
5911
- } | null;
5912
- eventRequestId: string;
5913
- operations: Array<{
5914
- opIndex?: number;
5915
- name: string;
5916
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5917
- version: number;
5918
- dataHash: string;
5919
- status?: 'applied' | 'noop';
5920
- affirmations?: {
5921
- added: Array<string>;
5922
- removed: Array<string>;
5923
- ignored: Array<string>;
5924
- };
5925
- warnings?: {
5926
- undeclaredFields?: Array<string>;
5927
- undeclaredFieldsTruncated?: true;
5928
- totalUndeclared?: number;
5929
- coalescedWrefs?: Array<{
5930
- fieldPath: string;
5931
- wref: string;
5932
- reason: string;
5933
- }>;
5934
- coalescedWrefsTruncated?: true;
5935
- totalCoalescedWrefs?: number;
5936
- ignoredVersionPins?: Array<{
5937
- fieldPath: string;
5938
- wref: string;
5939
- binding: 'identity';
5940
- }>;
5941
- deprecations?: Array<{
5942
- shape: string;
5943
- message: string;
5944
- removalMilestone: string;
5945
- }>;
5946
- };
5947
- } | {
5948
- opIndex?: number;
5949
- name: string;
5950
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
5951
- version?: number;
5952
- dataHash?: string;
5953
- status?: 'success' | 'noop' | 'failed';
5954
- error?: {
5955
- code: string;
5956
- message: string;
5957
- details?: {
5958
- reason: 'expected_version_mismatch';
5959
- expectedVersion: number;
5960
- currentVersion: number;
5961
- } | {
5962
- reason: 'lease_held';
5963
- leaseExpiresAt: string;
5964
- } | {
5965
- reason: 'validation_failed';
5966
- issues: Array<{
5967
- path: string;
5968
- message: string;
5969
- }>;
5970
- } | {
5971
- reason: 'rate_limit_reset';
5972
- retryAfterSeconds: number;
5973
- resetAt: string;
5974
- } | {
5975
- reason: 'cursor_fence_unavailable';
5976
- cause: 'not_ready' | 'below_floor' | 'above_head';
5977
- retryFromStart: true;
5978
- };
5979
- };
5980
- resolvedName?: string;
5981
- retryable?: boolean;
5982
- warnings?: {
5983
- undeclaredFields?: Array<string>;
5984
- undeclaredFieldsTruncated?: true;
5985
- totalUndeclared?: number;
5986
- coalescedWrefs?: Array<{
5987
- fieldPath: string;
5988
- wref: string;
5989
- reason: string;
5990
- }>;
5991
- coalescedWrefsTruncated?: true;
5992
- totalCoalescedWrefs?: number;
5993
- ignoredVersionPins?: Array<{
5994
- fieldPath: string;
5995
- wref: string;
5996
- binding: 'identity';
5997
- }>;
5998
- deprecations?: Array<{
5999
- shape: string;
6000
- message: string;
6001
- removalMilestone: string;
6002
- }>;
6003
- };
6004
- affirmations?: {
6005
- added: Array<string>;
6006
- removed: Array<string>;
6007
- ignored: Array<string>;
6008
- };
6009
- }>;
6010
- outcome: 'event' | 'no_event';
6011
- requestDigest: string;
6012
- schemaVersion: 'operation-event-receipt/v1';
6013
- submissionId?: string;
6014
- pruned?: true;
6015
- name: string;
6016
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
6017
- version: number;
6018
- dataHash: string;
4231
+ name?: string;
4232
+ operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
4233
+ version?: number;
4234
+ dataHash?: string;
6019
4235
  removed: true;
6020
- receipt: {
6021
- event: {
6022
- committedAt: string;
6023
- eventDigest: string;
6024
- operationCount: number;
6025
- repo: {
6026
- orgName: string;
6027
- repoName: string;
6028
- };
6029
- repoSeq: string;
6030
- } | null;
6031
- eventRequestId: string;
6032
- operations: Array<{
6033
- opIndex?: number;
6034
- name: string;
6035
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
6036
- version: number;
6037
- dataHash: string;
6038
- status?: 'applied' | 'noop';
6039
- affirmations?: {
6040
- added: Array<string>;
6041
- removed: Array<string>;
6042
- ignored: Array<string>;
6043
- };
6044
- warnings?: {
6045
- undeclaredFields?: Array<string>;
6046
- undeclaredFieldsTruncated?: true;
6047
- totalUndeclared?: number;
6048
- coalescedWrefs?: Array<{
6049
- fieldPath: string;
6050
- wref: string;
6051
- reason: string;
6052
- }>;
6053
- coalescedWrefsTruncated?: true;
6054
- totalCoalescedWrefs?: number;
6055
- ignoredVersionPins?: Array<{
6056
- fieldPath: string;
6057
- wref: string;
6058
- binding: 'identity';
6059
- }>;
6060
- deprecations?: Array<{
6061
- shape: string;
6062
- message: string;
6063
- removalMilestone: string;
6064
- }>;
6065
- };
6066
- } | {
6067
- opIndex?: number;
6068
- name: string;
6069
- operation?: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'noop';
6070
- version?: number;
6071
- dataHash?: string;
6072
- status?: 'success' | 'noop' | 'failed';
6073
- error?: {
6074
- code: string;
6075
- message: string;
6076
- details?: {
6077
- reason: 'expected_version_mismatch';
6078
- expectedVersion: number;
6079
- currentVersion: number;
6080
- } | {
6081
- reason: 'lease_held';
6082
- leaseExpiresAt: string;
6083
- } | {
6084
- reason: 'validation_failed';
6085
- issues: Array<{
6086
- path: string;
6087
- message: string;
6088
- }>;
6089
- } | {
6090
- reason: 'rate_limit_reset';
6091
- retryAfterSeconds: number;
6092
- resetAt: string;
6093
- } | {
6094
- reason: 'cursor_fence_unavailable';
6095
- cause: 'not_ready' | 'below_floor' | 'above_head';
6096
- retryFromStart: true;
6097
- };
6098
- };
6099
- resolvedName?: string;
6100
- retryable?: boolean;
6101
- warnings?: {
6102
- undeclaredFields?: Array<string>;
6103
- undeclaredFieldsTruncated?: true;
6104
- totalUndeclared?: number;
6105
- coalescedWrefs?: Array<{
6106
- fieldPath: string;
6107
- wref: string;
6108
- reason: string;
6109
- }>;
6110
- coalescedWrefsTruncated?: true;
6111
- totalCoalescedWrefs?: number;
6112
- ignoredVersionPins?: Array<{
6113
- fieldPath: string;
6114
- wref: string;
6115
- binding: 'identity';
6116
- }>;
6117
- deprecations?: Array<{
6118
- shape: string;
6119
- message: string;
6120
- removalMilestone: string;
6121
- }>;
6122
- };
6123
- affirmations?: {
6124
- added: Array<string>;
6125
- removed: Array<string>;
6126
- ignored: Array<string>;
6127
- };
6128
- }>;
6129
- outcome: 'event' | 'no_event';
6130
- requestDigest: string;
6131
- schemaVersion: 'operation-event-receipt/v1';
6132
- submissionId?: string;
6133
- pruned?: true;
6134
- };
6135
- } | {
6136
- event: {
4236
+ event?: {
6137
4237
  committedAt: string;
6138
4238
  eventDigest: string;
6139
4239
  operationCount: number;
@@ -6143,8 +4243,8 @@ type ShapeRemoveCompatibilityResult = {
6143
4243
  };
6144
4244
  repoSeq: string;
6145
4245
  } | null;
6146
- eventRequestId: string;
6147
- operations: Array<{
4246
+ eventRequestId?: string;
4247
+ operations?: Array<{
6148
4248
  opIndex: number;
6149
4249
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
6150
4250
  name: string;
@@ -6181,6 +4281,7 @@ type ShapeRemoveCompatibilityResult = {
6181
4281
  status: 'applied' | 'noop';
6182
4282
  version?: number;
6183
4283
  dataHash?: string;
4284
+ fileId?: string;
6184
4285
  } | {
6185
4286
  opIndex: number;
6186
4287
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -6266,16 +4367,11 @@ type ShapeRemoveCompatibilityResult = {
6266
4367
  retryable?: boolean;
6267
4368
  }>;
6268
4369
  }>;
6269
- outcome: 'event' | 'no_event';
6270
- requestDigest: string;
6271
- schemaVersion: 'operation-event-receipt/v2';
4370
+ outcome?: 'event' | 'no_event';
4371
+ requestDigest?: string;
4372
+ schemaVersion?: 'operation-event-receipt/v2';
6272
4373
  submissionId?: string;
6273
4374
  pruned?: true;
6274
- name: string;
6275
- operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'noop';
6276
- version: number;
6277
- dataHash: string;
6278
- removed: true;
6279
4375
  receipt: {
6280
4376
  event: {
6281
4377
  committedAt: string;
@@ -6325,6 +4421,7 @@ type ShapeRemoveCompatibilityResult = {
6325
4421
  status: 'applied' | 'noop';
6326
4422
  version?: number;
6327
4423
  dataHash?: string;
4424
+ fileId?: string;
6328
4425
  } | {
6329
4426
  opIndex: number;
6330
4427
  operation: 'add' | 'revise' | 'retract' | 'reaffirm' | 'rename' | 'redact' | 'remove' | 'restore' | 'rewrite';
@@ -8107,12 +6204,10 @@ declare class AllStreamOperationsFailedError extends Error {
8107
6204
  /**
8108
6205
  * Running reducer over stream-append chunk outputs.
8109
6206
  *
8110
- * Owns the receipt-era → legacy status projection for streamed submissions.
8111
- * Each chunk is folded in as it is acknowledged, so the only per-operation
8112
- * state that survives a chunk is the projected result row the caller is
6207
+ * Each chunk's receipt is folded in as it is acknowledged, so the only
6208
+ * per-operation state that survives a chunk is the result row the caller is
8113
6209
  * contractually owed — no raw chunk-result array, and no submission-wide copy
8114
- * of the submitted operations. Chunk-local submitted names are read for the
8115
- * `submittedName` echo on failed rows and then released with the chunk.
6210
+ * of the submitted operations.
8116
6211
  *
8117
6212
  * @internal
8118
6213
  */
@@ -8122,19 +6217,10 @@ declare class StreamSubmissionAggregator {
8122
6217
  private readonly statusCounts;
8123
6218
  /** True once at least one row landed and every row failed. */
8124
6219
  get allFailed(): boolean;
8125
- /**
8126
- * Fold one chunk's result rows into the aggregate.
8127
- *
8128
- * `submittedNames` is chunk-local: entry 0 is the operation at
8129
- * `chunkStart`. Pass the chunk that was submitted; it is not retained.
8130
- */
6220
+ /** Fold one chunk's receipt rows into the aggregate. */
8131
6221
  addChunk(input: {
8132
- result: StreamAppendResult$1;
6222
+ receipt: OperationEventReceipt$1;
8133
6223
  chunkStart: number;
8134
- submittedOperations: ReadonlyArray<{
8135
- name?: string;
8136
- operation: CommitRealOperationResult$1['operation'];
8137
- }>;
8138
6224
  }): void;
8139
6225
  addReceipt(receipt: OperationEventReceipt$1): void;
8140
6226
  /** Rows confirmed applied or noop, for partial-submission recovery. */
@@ -8238,9 +6324,9 @@ declare function createKeepShapesResolver(read: ThingShapesReader): (operations:
8238
6324
  *
8239
6325
  * @internal
8240
6326
  */
8241
- declare function streamAppendResultStatus(result: StreamAppendResult$1['results'][number]): 'applied' | 'noop' | 'error';
6327
+ declare function streamAppendResultStatus(result: StreamAppendResult$1['receipt']['operations'][number]): 'applied' | 'noop' | 'error';
8242
6328
  /** @internal */
8243
- declare function countStreamAppendResultStatuses(results: StreamAppendResult$1['results']): {
6329
+ declare function countStreamAppendResultStatuses(results: StreamAppendResult$1['receipt']['operations']): {
8244
6330
  applied: number;
8245
6331
  noop: number;
8246
6332
  error: number;
@@ -8279,6 +6365,8 @@ type ShapesChoice = {
8279
6365
  readonly shapes?: never;
8280
6366
  readonly keepShapes?: never;
8281
6367
  };
6368
+ /** Marks a write as a file; each hint is pinned for the upload. */
6369
+ type FileInput = NonNullable<AddOperation['file']>;
8282
6370
  /**
8283
6371
  * Input to `OperationBuilder.add(name, input)`.
8284
6372
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/addinput/
@@ -8296,6 +6384,8 @@ type AddInput = ShapesChoice & {
8296
6384
  readonly affirmedTargets?: readonly string[];
8297
6385
  /** When true, an existing target returns `noop` instead of failing. */
8298
6386
  readonly skipExisting?: boolean;
6387
+ /** Marks the write as a file: its version lands pending until upload. */
6388
+ readonly file?: FileInput;
8299
6389
  };
8300
6390
  /**
8301
6391
  * Input to `OperationBuilder.revise(name, input)`.
@@ -8323,6 +6413,8 @@ type ReviseInput = (ShapesChoice | {
8323
6413
  readonly data: unknown;
8324
6414
  /** The complete affirmation set for the changed claim. */
8325
6415
  readonly affirmedTargets?: readonly string[];
6416
+ /** Marks the write as a file: its version lands pending until upload. */
6417
+ readonly file?: FileInput;
8326
6418
  /**
8327
6419
  * Apply only if the Thing is still at this version; a stale value is a
8328
6420
  * `CONFLICT` with `details.reason = 'expected_version_mismatch'`.
@@ -9037,11 +7129,6 @@ type OperationEventReceipt = OperationEventReceipt$1;
9037
7129
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationeventreceiptmetadata/
9038
7130
  */
9039
7131
  type OperationEventReceiptMetadata = OperationEventReceiptMetadata$1;
9040
- /**
9041
- * The frozen historical receipt returned only when replaying a v1 request.
9042
- * @see https://docs.warmhub.ai/sdk-reference/type-aliases/operationeventreceiptv1/
9043
- */
9044
- type OperationEventReceiptV1 = OperationEventReceiptV1$1;
9045
7132
  /**
9046
7133
  * Structured diagnostic shared by real and preview operation results.
9047
7134
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/commitdiagnostic/
@@ -12293,8 +10380,8 @@ declare class WarmHubClient {
12293
10380
  */
12294
10381
  rename: (orgName: string, repoName: string, name: string, newName: string, opts: RenameOptions) => Promise<RenameResult>;
12295
10382
  /**
12296
- * Permanently remove a Thing and all its versions. Requires an
12297
- * unrestricted `things:delete` grant.
10383
+ * Permanently remove a Thing and all its versions. Requires
10384
+ * `things:delete` with a whole-repository selection.
12298
10385
  *
12299
10386
  * `wref` is a local wref (`Shape/name` or `Shape`) or a durable ID in this
12300
10387
  * repo; a retracted Thing is named by its durable ID. References to the
@@ -12304,8 +10391,8 @@ declare class WarmHubClient {
12304
10391
  remove: (orgName: string, repoName: string, wref: string, opts: RemoveOptions) => Promise<RemoveResult>;
12305
10392
  /**
12306
10393
  * Irreversibly erase one Thing's canonical content and former name while
12307
- * preserving its durable identity and inbound references. Requires an
12308
- * unrestricted `things:redact` grant.
10394
+ * preserving its durable identity and inbound references. Requires
10395
+ * `things:redact` with a whole-repository selection.
12309
10396
  *
12310
10397
  * `durableId` must be the bare durable ID from a prior read, never a wref.
12311
10398
  * This core operation does not erase backups, completed exports, logs, or
@@ -12315,8 +10402,9 @@ declare class WarmHubClient {
12315
10402
  redact: (orgName: string, repoName: string, durableId: string, opts: RedactOptions) => Promise<RedactResult>;
12316
10403
  /**
12317
10404
  * Replace the body of one exact version in place, to correct bad data.
12318
- * Requires an unrestricted `things:rewrite` grant. The version number
12319
- * does not change and no version is minted; revise to record a new state.
10405
+ * Requires `things:rewrite` with a whole-repository selection. The version
10406
+ * number does not change and no version is minted; revise to record a new
10407
+ * state.
12320
10408
  *
12321
10409
  * `wref` is the Thing's name or a durable ID in this repo. `opts.shapes`
12322
10410
  * is the version's declared Shapes plus `CorrectedThing`. `opts.data` is
@@ -12872,4 +10960,4 @@ declare class WarmHubClient {
12872
10960
  private watchRepoQuery;
12873
10961
  }
12874
10962
 
12875
- export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionDeliveryTarget, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedItem, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddInput, type AddOperation, AllStreamOperationsFailedError, type Assertion, CHECKPOINT_CONTENT_TYPES, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, COMPONENT_INSTALL_RESULT_STATES, COMPONENT_SUMMARY_STATES, CONTENT_FIELD_LIMIT_ERROR, CREDENTIAL_SCOPES, type CheckpointContentType, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionContainsOptions, type CollectionContainsResult, type CollectionCreateOptions, type CollectionDiffOptions, type CollectionDiffResult, type CollectionMember, type CollectionMembersOptions, type CollectionMembersPage, type CollectionMembershipRole, type CollectionMutationResult, type CollectionQuerySourceOptions, type CollectionReadDataMode, type CollectionReadSummary, type CollectionReviseOptions, type CollectionStatsOptions, type CollectionStatsResult, type CollectionTag, type CollectionType, type CollectionWriteType, type CommitApplyCompatibilityResult, type CommitDiagnostic, type CommitRealOperationResult, type CommitValidateInput, type CommitValidateOperation, type CommitValidateOperations, type CommitValidateOptions, type CommitValidateResult, type ComponentHistory, type ComponentHistoryOptions, type ComponentInfo, type ComponentInstallOptions, type ComponentInstallResult, type ComponentInstallResultState, type ComponentList, type ComponentListOptions, type ComponentSummaryState, type ComponentUninstallOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialScope, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, DEPENDENCY_FAILED, type DeclaredFieldEntry, type ErrorKind, type FieldIndexCarryingMarker, type FieldIndexCarryingShape, type FieldIndexConsistency, type FieldIndexPinResult, type FilterOptions, type FilterResult, type FunctionLogMode, GLOBAL_SEARCH_RESULT_ITEM_KINDS, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type GlobalSearchResultItemKind, type Grant, type GrantCreateOptions, type GrantListOptions, type GrantListResult, type GrantRecipientSelector, type GrantRevokeResult, HOMEPAGE_FEATURED_ITEM_KINDS, type HeadResult, type HistoryResult, type HistoryVersion, type HomepageFeaturedItemKind, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type KeepShapesRevise, LEGACY_WREFS_REFUSAL, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_COMMIT_VALIDATION_ENCODED_BYTES, MAX_COMMIT_VALIDATION_OPERATIONS, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, MAX_WREFS_PER_THING_VERSION, type MemberScopeEntry, ORG_AUTH_SCOPES, ORG_MEMBER_STATUSES, ORG_ROLES, type OldNameDetails, type Operation, OperationBuilder, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationEventReceipt, type OperationEventReceiptMetadata, type OperationEventReceiptV1, type OperationSource, type OperationSubmitResult, type OrgAccessResult, type OrgAuthScope, type OrgDetail, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgMemberStatus, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, REPO_AUTH_SCOPES, type ReaffirmInput, type ReaffirmOperation, type RedactOptions, type RedactResult, type RefLink, type RefsOptions, type RefsResult, type RemoveOperation, type RemoveOptions, type RemoveResult, type RenameOperation, type RenameOptions, type RenameResult, type RepoAccessResult, type RepoAuthScope, type RepoConfigureStatsView, type RepoDescribeResult, type RepoExploreBrowseOptions, type RepoExploreItem, type RepoExploreOptions, type RepoExploreResult, type RepoInfo, type RepoLicense, type RepoList, type RepoListForCallerOptions, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRecentInfo, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RepositoryCheckpointAccess, type RepositoryCheckpointStatus, type RepositoryExportDeltaFormats, RepositoryExportError, type RepositoryExportErrorReason, type RepositoryExportExpectation, type RepositoryExportOptions, type RepositoryExportPreparation, type RepositoryExportPrepareOptions, type RepositoryExportRestoreOptions, type RepositoryExportRowMap, type RepositoryExportRows, type RepositoryExportSegmentOptions, RepositoryExportSession, type RequestEvent, type ResolveWrefResult, type RestoreInput, type RestoreOperation, type RetractInput, type RetractOperation, type RetryPolicyOptions, type ReviseInput, type ReviseOperation, type RewriteOperation, type RewriteOptions, type RewriteResult, SDK_VERSION, SUBSCRIBABLE_EVENT_TYPES, type ScopeAllowedShapes, type SearchOptions, type SearchResult, type ServiceAccountInfo, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeRemoveOptions, type ShapeReviseOptions, type ShapeValidatorResult, type ShapesChoice, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, StreamSubmissionAggregator, type StreamingSubmissionHandle, type StreamingSubmissionOptions, StreamingSubmissionOutcomeUnknownError, type StreamingSubmissionRetryIdentity, type StreamingSubmissionRow, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingChanges, type ThingDetail, type ThingDetailFields, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadChangesOptions, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type ThingNamesResult, type ThingQueryChangesOptions, type ThingShapesReader, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, type ViewEvaluateOptions, type ViewEvaluateResult, WarmHubClient, type WarmHubClientOptions, type WarmHubDecorations, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, type WriteOperation, WriteOperationError, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createKeepShapesResolver, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isAllStreamOperationsFailedError, isConnectionError, isDefiniteStreamAppendRejection, isKnownCheckpointContentType, isKnownComponentInstallResultState, isKnownComponentSummaryState, isKnownCredentialScope, isKnownGlobalSearchResultItemKind, isKnownHomepageFeaturedItemKind, isKnownOrgAuthScope, isKnownOrgMemberStatus, isKnownOrgRole, isKnownRepoAuthScope, isKnownSubscribableEventType, isRetryable, isShapeReference, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, shapeName, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
10963
+ 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 };