@robosystems/client 0.3.9 → 0.3.11

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/types.gen.ts CHANGED
@@ -907,66 +907,6 @@ export type BillingCustomer = {
907
907
  created_at: string;
908
908
  };
909
909
 
910
- /**
911
- * BulkAssociationItem
912
- *
913
- * A single association within a bulk-create payload. The parent
914
- * `structure_id` is set once on the request envelope, not repeated
915
- * per item.
916
- */
917
- export type BulkAssociationItem = {
918
- /**
919
- * From Element Id
920
- */
921
- from_element_id: string;
922
- /**
923
- * To Element Id
924
- */
925
- to_element_id: string;
926
- /**
927
- * Association Type
928
- */
929
- association_type?: 'presentation' | 'calculation' | 'mapping';
930
- /**
931
- * Arcrole
932
- */
933
- arcrole?: string | null;
934
- /**
935
- * Order Value
936
- */
937
- order_value?: number | null;
938
- /**
939
- * Weight
940
- */
941
- weight?: number | null;
942
- /**
943
- * Confidence
944
- */
945
- confidence?: number | null;
946
- /**
947
- * Suggested By
948
- */
949
- suggested_by?: string | null;
950
- };
951
-
952
- /**
953
- * BulkCreateAssociationsRequest
954
- *
955
- * Bulk create associations within a single structure. Atomic — any
956
- * failed row rolls back the whole batch. Handles 50+ presentation arcs,
957
- * 25+ calculation arcs, or a full table linkbase in one call.
958
- */
959
- export type BulkCreateAssociationsRequest = {
960
- /**
961
- * Structure Id
962
- */
963
- structure_id: string;
964
- /**
965
- * Associations
966
- */
967
- associations: Array<BulkAssociationItem>;
968
- };
969
-
970
910
  /**
971
911
  * ChangeTierOp
972
912
  *
@@ -1352,72 +1292,105 @@ export type CreateApiKeyResponse = {
1352
1292
  };
1353
1293
 
1354
1294
  /**
1355
- * CreateCheckoutRequest
1356
- *
1357
- * Request to create a checkout session for payment collection.
1295
+ * CreateAgentRequest
1358
1296
  */
1359
- export type CreateCheckoutRequest = {
1297
+ export type CreateAgentRequest = {
1360
1298
  /**
1361
- * Plan Name
1299
+ * Agent Type
1362
1300
  *
1363
- * Billing plan name (e.g., 'ladybug-standard')
1301
+ * 'customer' | 'vendor' | 'employee' | 'owner' | 'supplier' | 'government' | 'lender' | 'self' | 'other'
1364
1302
  */
1365
- plan_name: string;
1303
+ agent_type: string;
1366
1304
  /**
1367
- * Resource Type
1368
- *
1369
- * Resource type ('graph' or 'repository')
1305
+ * Name
1370
1306
  */
1371
- resource_type: string;
1307
+ name: string;
1372
1308
  /**
1373
- * Resource Config
1309
+ * Legal Name
1310
+ */
1311
+ legal_name?: string | null;
1312
+ /**
1313
+ * Tax Id
1314
+ */
1315
+ tax_id?: string | null;
1316
+ /**
1317
+ * Registration Number
1318
+ */
1319
+ registration_number?: string | null;
1320
+ /**
1321
+ * Duns
1322
+ */
1323
+ duns?: string | null;
1324
+ /**
1325
+ * Lei
1326
+ */
1327
+ lei?: string | null;
1328
+ /**
1329
+ * Email
1330
+ */
1331
+ email?: string | null;
1332
+ /**
1333
+ * Phone
1334
+ */
1335
+ phone?: string | null;
1336
+ /**
1337
+ * Address
1338
+ */
1339
+ address?: {
1340
+ [key: string]: unknown;
1341
+ } | null;
1342
+ /**
1343
+ * Source
1374
1344
  *
1375
- * Configuration for the resource to be provisioned. For repositories: {'repository_name': 'graph_id'} where graph_id is the repository slug (e.g., 'sec')
1345
+ * 'quickbooks' | 'xero' | 'plaid' | 'native'
1376
1346
  */
1377
- resource_config: {
1347
+ source?: string;
1348
+ /**
1349
+ * External Id
1350
+ */
1351
+ external_id?: string | null;
1352
+ /**
1353
+ * Is Active
1354
+ */
1355
+ is_active?: boolean;
1356
+ /**
1357
+ * Is 1099 Recipient
1358
+ */
1359
+ is_1099_recipient?: boolean;
1360
+ /**
1361
+ * Metadata
1362
+ */
1363
+ metadata?: {
1378
1364
  [key: string]: unknown;
1379
1365
  };
1380
1366
  };
1381
1367
 
1382
1368
  /**
1383
- * CreateClosingEntryOperation
1384
- *
1385
- * CQRS-shaped body for `POST /operations/create-closing-entry`.
1369
+ * CreateCheckoutRequest
1386
1370
  *
1387
- * `structure_id` moves into the body so REST + MCP share a single body
1388
- * type via the registrar.
1371
+ * Request to create a checkout session for payment collection.
1389
1372
  */
1390
- export type CreateClosingEntryOperation = {
1391
- /**
1392
- * Posting Date
1393
- *
1394
- * Posting date for the entry
1395
- */
1396
- posting_date: string;
1397
- /**
1398
- * Period Start
1399
- *
1400
- * Period start
1401
- */
1402
- period_start: string;
1373
+ export type CreateCheckoutRequest = {
1403
1374
  /**
1404
- * Period End
1375
+ * Plan Name
1405
1376
  *
1406
- * Period end
1377
+ * Billing plan name (e.g., 'ladybug-standard')
1407
1378
  */
1408
- period_end: string;
1379
+ plan_name: string;
1409
1380
  /**
1410
- * Memo
1381
+ * Resource Type
1411
1382
  *
1412
- * Override memo
1383
+ * Resource type ('graph' or 'repository')
1413
1384
  */
1414
- memo?: string | null;
1385
+ resource_type: string;
1415
1386
  /**
1416
- * Structure Id
1387
+ * Resource Config
1417
1388
  *
1418
- * Schedule structure the closing entry is derived from.
1389
+ * Configuration for the resource to be provisioned. For repositories: {'repository_name': 'graph_id'} where graph_id is the repository slug (e.g., 'sec')
1419
1390
  */
1420
- structure_id: string;
1391
+ resource_config: {
1392
+ [key: string]: unknown;
1393
+ };
1421
1394
  };
1422
1395
 
1423
1396
  /**
@@ -1443,80 +1416,166 @@ export type CreateConnectionRequest = {
1443
1416
  };
1444
1417
 
1445
1418
  /**
1446
- * CreateElementRequest
1419
+ * CreateEventBlockRequest
1447
1420
  *
1448
- * Create a new Element within a taxonomy. For chart-of-accounts
1449
- * taxonomies this is how native accounts are added.
1421
+ * Write surface for a single business event.
1450
1422
  */
1451
- export type CreateElementRequest = {
1423
+ export type CreateEventBlockRequest = {
1452
1424
  /**
1453
- * Taxonomy Id
1425
+ * Event Type
1426
+ *
1427
+ * Open vocabulary: 'invoice_issued' | 'contract_signed' | 'bank_transaction' | ...
1454
1428
  */
1455
- taxonomy_id: string;
1429
+ event_type: string;
1456
1430
  /**
1457
- * Code
1431
+ * Event Category
1432
+ *
1433
+ * REA economic classification. One of: sales, purchase, financing, payroll, treasury, adjustment, recognition, other.
1458
1434
  */
1459
- code?: string | null;
1435
+ event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other';
1460
1436
  /**
1461
- * Name
1437
+ * Agent Id
1438
+ *
1439
+ * Counterparty agent id
1462
1440
  */
1463
- name: string;
1441
+ agent_id?: string | null;
1442
+ /**
1443
+ * Resource Type
1444
+ *
1445
+ * REA resource kind. One of: goods, services, money, right, obligation, information, labor.
1446
+ */
1447
+ resource_type?: 'goods' | 'services' | 'money' | 'right' | 'obligation' | 'information' | 'labor' | null;
1448
+ /**
1449
+ * Resource Element Id
1450
+ *
1451
+ * Specific element being exchanged, if applicable
1452
+ */
1453
+ resource_element_id?: string | null;
1454
+ /**
1455
+ * Occurred At
1456
+ *
1457
+ * When the event happened in the real world
1458
+ */
1459
+ occurred_at: string;
1460
+ /**
1461
+ * Effective At
1462
+ *
1463
+ * Accounting recognition date, if different from occurred_at
1464
+ */
1465
+ effective_at?: string | null;
1466
+ /**
1467
+ * Source
1468
+ *
1469
+ * 'quickbooks' | 'xero' | 'plaid' | 'native' | 'scheduled' | ...
1470
+ */
1471
+ source: string;
1472
+ /**
1473
+ * External Id
1474
+ *
1475
+ * Source-system dedup key. (source, external_id) is enforced unique when external_id is provided, so retries from external adapters are idempotent at the DB level.
1476
+ */
1477
+ external_id?: string | null;
1478
+ /**
1479
+ * External Url
1480
+ *
1481
+ * Deep link back to source-system record
1482
+ */
1483
+ external_url?: string | null;
1484
+ /**
1485
+ * Amount
1486
+ *
1487
+ * Cents, signed
1488
+ */
1489
+ amount?: number | null;
1490
+ /**
1491
+ * Currency
1492
+ *
1493
+ * ISO 4217 currency code
1494
+ */
1495
+ currency?: string;
1464
1496
  /**
1465
1497
  * Description
1466
1498
  */
1467
1499
  description?: string | null;
1468
1500
  /**
1469
- * Classification
1501
+ * Metadata
1502
+ *
1503
+ * Event-type-specific payload
1470
1504
  */
1471
- classification: 'asset' | 'contraAsset' | 'liability' | 'contraLiability' | 'equity' | 'contraEquity' | 'temporaryEquity' | 'revenue' | 'expense' | 'expenseReversal' | 'gain' | 'loss' | 'comprehensiveIncome' | 'investmentByOwners' | 'distributionToOwners';
1505
+ metadata?: {
1506
+ [key: string]: unknown;
1507
+ };
1472
1508
  /**
1473
- * Balance Type
1509
+ * Dimension Ids
1474
1510
  */
1475
- balance_type?: 'debit' | 'credit';
1511
+ dimension_ids?: Array<string>;
1476
1512
  /**
1477
- * Period Type
1513
+ * Apply Handlers
1514
+ *
1515
+ * When True, resolves the event_type to a handler (Python registry first, then DSL) and fires it atomically with event creation.
1516
+ */
1517
+ apply_handlers?: boolean;
1518
+ };
1519
+
1520
+ /**
1521
+ * CreateEventHandlerRequest
1522
+ */
1523
+ export type CreateEventHandlerRequest = {
1524
+ /**
1525
+ * Name
1478
1526
  */
1479
- period_type?: 'duration' | 'instant';
1527
+ name: string;
1480
1528
  /**
1481
- * Element Type
1529
+ * Description
1482
1530
  */
1483
- element_type?: 'concept' | 'abstract' | 'axis' | 'member' | 'hypercube';
1531
+ description?: string | null;
1484
1532
  /**
1485
- * Is Abstract
1533
+ * Event Type
1486
1534
  */
1487
- is_abstract?: boolean;
1535
+ event_type: string;
1488
1536
  /**
1489
- * Is Monetary
1537
+ * Event Category
1490
1538
  */
1491
- is_monetary?: boolean;
1539
+ event_category?: string | null;
1492
1540
  /**
1493
- * Parent Id
1541
+ * Match Source
1494
1542
  */
1495
- parent_id?: string | null;
1543
+ match_source?: string | null;
1496
1544
  /**
1497
- * Source
1545
+ * Match Agent Type
1498
1546
  */
1499
- source?: 'native' | 'fac' | 'rs-gaap' | 'us-gaap' | 'ifrs' | 'quickbooks' | 'xero' | 'plaid' | 'import';
1547
+ match_agent_type?: string | null;
1500
1548
  /**
1501
- * Currency
1549
+ * Match Resource Type
1502
1550
  */
1503
- currency?: string;
1551
+ match_resource_type?: string | null;
1504
1552
  /**
1505
- * Qname
1553
+ * Match Metadata Expression
1554
+ *
1555
+ * JSONPath-style equality map, e.g. {"metadata.category": "payroll"}
1506
1556
  */
1507
- qname?: string | null;
1557
+ match_metadata_expression?: {
1558
+ [key: string]: unknown;
1559
+ } | null;
1560
+ transaction_template: TransactionTemplate;
1508
1561
  /**
1509
- * Namespace
1562
+ * Priority
1510
1563
  */
1511
- namespace?: string | null;
1564
+ priority?: number;
1512
1565
  /**
1513
- * External Id
1566
+ * Is Active
1514
1567
  */
1515
- external_id?: string | null;
1568
+ is_active?: boolean;
1569
+ /**
1570
+ * Origin
1571
+ */
1572
+ origin?: 'hub' | 'tenant';
1516
1573
  /**
1517
- * External Source
1574
+ * Metadata
1518
1575
  */
1519
- external_source?: string | null;
1576
+ metadata?: {
1577
+ [key: string]: unknown;
1578
+ };
1520
1579
  };
1521
1580
 
1522
1581
  /**
@@ -1591,117 +1650,46 @@ export type CreateInformationBlockRequest = {
1591
1650
  };
1592
1651
 
1593
1652
  /**
1594
- * CreateJournalEntryRequest
1595
- *
1596
- * Create a new journal entry with balanced line items.
1653
+ * CreateMappingAssociationOperation
1597
1654
  *
1598
- * Defaults to `status='draft'` for ongoing native writes (the normal
1599
- * workflow: draft → review → post via close-period). Pass
1600
- * `status='posted'` for historical data import where entries represent
1601
- * already-happened business events that don't need review.
1655
+ * CQRS-shaped body for `POST /operations/create-mapping-association`.
1602
1656
  *
1603
- * Total debit amount must equal total credit amount or the request
1604
- * is rejected with 422. `line_items` must contain at least two rows
1605
- * (at least one debit, at least one credit).
1657
+ * Bundles the target mapping structure's `mapping_id` with the association
1658
+ * payload so REST + MCP share a single body type via the registrar.
1606
1659
  */
1607
- export type CreateJournalEntryRequest = {
1660
+ export type CreateMappingAssociationOperation = {
1608
1661
  /**
1609
- * Posting Date
1662
+ * From Element Id
1610
1663
  */
1611
- posting_date: string;
1664
+ from_element_id: string;
1612
1665
  /**
1613
- * Memo
1666
+ * To Element Id
1614
1667
  */
1615
- memo: string;
1668
+ to_element_id: string;
1616
1669
  /**
1617
- * Line Items
1670
+ * Association Type
1618
1671
  */
1619
- line_items: Array<JournalEntryLineItemInput>;
1672
+ association_type?: 'presentation' | 'calculation' | 'mapping' | 'equivalence';
1620
1673
  /**
1621
- * Type
1674
+ * Order Value
1622
1675
  */
1623
- type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
1676
+ order_value?: number | null;
1624
1677
  /**
1625
- * Status
1678
+ * Weight
1626
1679
  */
1627
- status?: 'draft' | 'posted';
1680
+ weight?: number | null;
1628
1681
  /**
1629
- * Transaction Id
1682
+ * Confidence
1630
1683
  */
1631
- transaction_id?: string | null;
1632
- };
1633
-
1634
- /**
1635
- * CreateManualClosingEntryRequest
1636
- */
1637
- export type CreateManualClosingEntryRequest = {
1684
+ confidence?: number | null;
1638
1685
  /**
1639
- * Posting Date
1640
- *
1641
- * Posting date for the entry
1686
+ * Suggested By
1642
1687
  */
1643
- posting_date: string;
1688
+ suggested_by?: string | null;
1644
1689
  /**
1645
- * Memo
1690
+ * Mapping Id
1646
1691
  *
1647
- * Memo describing the business event (e.g., 'Sale of computer to Vendor X on 3/15')
1648
- */
1649
- memo: string;
1650
- /**
1651
- * Line Items
1652
- *
1653
- * Line items; must balance (total DR = total CR)
1654
- */
1655
- line_items: Array<ManualLineItemRequest>;
1656
- /**
1657
- * Entry Type
1658
- *
1659
- * Entry type: 'closing' (default), 'adjusting', 'standard', 'reversing'
1660
- */
1661
- entry_type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
1662
- };
1663
-
1664
- /**
1665
- * CreateMappingAssociationOperation
1666
- *
1667
- * CQRS-shaped body for `POST /operations/create-mapping-association`.
1668
- *
1669
- * Bundles the target mapping structure's `mapping_id` with the association
1670
- * payload so REST + MCP share a single body type via the registrar.
1671
- */
1672
- export type CreateMappingAssociationOperation = {
1673
- /**
1674
- * From Element Id
1675
- */
1676
- from_element_id: string;
1677
- /**
1678
- * To Element Id
1679
- */
1680
- to_element_id: string;
1681
- /**
1682
- * Association Type
1683
- */
1684
- association_type?: 'presentation' | 'calculation' | 'mapping' | 'equivalence';
1685
- /**
1686
- * Order Value
1687
- */
1688
- order_value?: number | null;
1689
- /**
1690
- * Weight
1691
- */
1692
- weight?: number | null;
1693
- /**
1694
- * Confidence
1695
- */
1696
- confidence?: number | null;
1697
- /**
1698
- * Suggested By
1699
- */
1700
- suggested_by?: string | null;
1701
- /**
1702
- * Mapping Id
1703
- *
1704
- * Target mapping structure ID.
1692
+ * Target mapping structure ID.
1705
1693
  */
1706
1694
  mapping_id: string;
1707
1695
  };
@@ -1908,28 +1896,6 @@ export type CreateSecurityRequest = {
1908
1896
  outstanding_shares?: number | null;
1909
1897
  };
1910
1898
 
1911
- /**
1912
- * CreateStructureRequest
1913
- */
1914
- export type CreateStructureRequest = {
1915
- /**
1916
- * Name
1917
- */
1918
- name: string;
1919
- /**
1920
- * Description
1921
- */
1922
- description?: string | null;
1923
- /**
1924
- * Structure Type
1925
- */
1926
- structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'custom';
1927
- /**
1928
- * Taxonomy Id
1929
- */
1930
- taxonomy_id: string;
1931
- };
1932
-
1933
1899
  /**
1934
1900
  * CreateSubgraphRequest
1935
1901
  *
@@ -1981,93 +1947,76 @@ export type CreateSubgraphRequest = {
1981
1947
  };
1982
1948
 
1983
1949
  /**
1984
- * CreateTaxonomyRequest
1950
+ * CreateTaxonomyBlockRequest
1951
+ *
1952
+ * Request body for the ``create-taxonomy-block`` operation.
1953
+ *
1954
+ * One envelope per taxonomy instance. ``taxonomy_type`` discriminates
1955
+ * which block-type handler the command dispatcher routes to.
1956
+ * ``parent_taxonomy_id`` is required for ``reporting_extension`` (which
1957
+ * extends a library taxonomy) and ignored otherwise.
1958
+ *
1959
+ * The library path (seeding ``reporting_standard`` rows) does NOT flow
1960
+ * through this envelope — it uses a dedicated library writer that bypasses
1961
+ * these caps and tenant scoping.
1985
1962
  */
1986
- export type CreateTaxonomyRequest = {
1963
+ export type CreateTaxonomyBlockRequest = {
1987
1964
  /**
1988
1965
  * Name
1966
+ *
1967
+ * Taxonomy display name.
1989
1968
  */
1990
1969
  name: string;
1991
1970
  /**
1992
- * Description
1971
+ * Taxonomy Type
1972
+ *
1973
+ * Block-type discriminator. ``chart_of_accounts`` and ``custom_ontology`` construct from scratch; ``reporting_extension`` extends an existing library ``reporting_standard``.
1993
1974
  */
1994
- description?: string | null;
1975
+ taxonomy_type: 'reporting_standard' | 'reporting_extension' | 'custom_ontology' | 'chart_of_accounts' | 'schedule';
1995
1976
  /**
1996
- * Taxonomy Type
1977
+ * Parent Taxonomy Id
1978
+ *
1979
+ * Required when ``taxonomy_type == 'reporting_extension'`` — the id of the library ``reporting_standard`` being extended.
1997
1980
  */
1998
- taxonomy_type: 'chart_of_accounts' | 'reporting' | 'mapping' | 'schedule';
1981
+ parent_taxonomy_id?: string | null;
1999
1982
  /**
2000
1983
  * Version
2001
1984
  */
2002
1985
  version?: string | null;
2003
- /**
2004
- * Source Taxonomy Id
2005
- */
2006
- source_taxonomy_id?: string | null;
2007
- /**
2008
- * Target Taxonomy Id
2009
- */
2010
- target_taxonomy_id?: string | null;
2011
- };
2012
-
2013
- /**
2014
- * CreateTransactionRequest
2015
- *
2016
- * Create a standalone business-event Transaction.
2017
- *
2018
- * Use this when you want to record a real-world event (invoice, payment,
2019
- * deposit, expense) first and then attach one or more journal entries to
2020
- * it via `create-journal-entry` with the returned `transaction_id`.
2021
- *
2022
- * `amount` is in minor currency units (cents). `type` is free-form but
2023
- * common values are: invoice, payment, bill, expense, deposit, transfer,
2024
- * journal_entry.
2025
- */
2026
- export type CreateTransactionRequest = {
2027
- /**
2028
- * Type
2029
- */
2030
- type: string;
2031
- /**
2032
- * Date
2033
- */
2034
- date: string;
2035
- /**
2036
- * Amount
2037
- */
2038
- amount: number;
2039
- /**
2040
- * Currency
2041
- */
2042
- currency?: string;
2043
1986
  /**
2044
1987
  * Description
2045
1988
  */
2046
1989
  description?: string | null;
2047
1990
  /**
2048
- * Merchant Name
1991
+ * Standard
2049
1992
  */
2050
- merchant_name?: string | null;
1993
+ standard?: string | null;
2051
1994
  /**
2052
- * Reference Number
1995
+ * Namespace Uri
2053
1996
  */
2054
- reference_number?: string | null;
1997
+ namespace_uri?: string | null;
2055
1998
  /**
2056
- * Number
1999
+ * Elements
2057
2000
  */
2058
- number?: string | null;
2001
+ elements?: Array<TaxonomyBlockElementRequest>;
2059
2002
  /**
2060
- * Category
2003
+ * Structures
2061
2004
  */
2062
- category?: string | null;
2005
+ structures?: Array<TaxonomyBlockStructureRequest>;
2063
2006
  /**
2064
- * Due Date
2007
+ * Associations
2065
2008
  */
2066
- due_date?: string | null;
2009
+ associations?: Array<TaxonomyBlockAssociationRequest>;
2067
2010
  /**
2068
- * Status
2011
+ * Rules
2012
+ */
2013
+ rules?: Array<TaxonomyBlockRuleRequest>;
2014
+ /**
2015
+ * Metadata
2069
2016
  */
2070
- status?: 'pending' | 'posted';
2017
+ metadata?: {
2018
+ [key: string]: unknown;
2019
+ };
2071
2020
  };
2072
2021
 
2073
2022
  /**
@@ -2562,32 +2511,6 @@ export type DatabaseStorageEntry = {
2562
2511
  size_mb?: number | null;
2563
2512
  };
2564
2513
 
2565
- /**
2566
- * DeleteAssociationRequest
2567
- *
2568
- * Hard delete — associations are edges and are cheap to recreate.
2569
- */
2570
- export type DeleteAssociationRequest = {
2571
- /**
2572
- * Association Id
2573
- */
2574
- association_id: string;
2575
- };
2576
-
2577
- /**
2578
- * DeleteElementRequest
2579
- *
2580
- * Soft delete — sets `is_active=false`. Historical line items
2581
- * referencing this element remain valid; new line items cannot use an
2582
- * inactive element.
2583
- */
2584
- export type DeleteElementRequest = {
2585
- /**
2586
- * Element Id
2587
- */
2588
- element_id: string;
2589
- };
2590
-
2591
2514
  /**
2592
2515
  * DeleteFileResponse
2593
2516
  */
@@ -2750,18 +2673,6 @@ export type DeleteSecurityOperation = {
2750
2673
  security_id: string;
2751
2674
  };
2752
2675
 
2753
- /**
2754
- * DeleteStructureRequest
2755
- *
2756
- * Soft delete — sets `is_active=false`.
2757
- */
2758
- export type DeleteStructureRequest = {
2759
- /**
2760
- * Structure Id
2761
- */
2762
- structure_id: string;
2763
- };
2764
-
2765
2676
  /**
2766
2677
  * DeleteSubgraphOp
2767
2678
  *
@@ -2789,16 +2700,30 @@ export type DeleteSubgraphOp = {
2789
2700
  };
2790
2701
 
2791
2702
  /**
2792
- * DeleteTaxonomyRequest
2703
+ * DeleteTaxonomyBlockRequest
2793
2704
  *
2794
- * Soft delete sets `is_active=false`. Historical references remain
2795
- * valid.
2705
+ * Request body for the ``delete-taxonomy-block`` operation.
2706
+ *
2707
+ * ``cascade_facts=False`` (default) fails the delete if any Fact rows
2708
+ * reference elements in this taxonomy. ``cascade_facts=True`` deletes the
2709
+ * referencing facts alongside the taxonomy; the response reports
2710
+ * ``facts_deleted``.
2796
2711
  */
2797
- export type DeleteTaxonomyRequest = {
2712
+ export type DeleteTaxonomyBlockRequest = {
2798
2713
  /**
2799
2714
  * Taxonomy Id
2800
2715
  */
2801
2716
  taxonomy_id: string;
2717
+ /**
2718
+ * Cascade Facts
2719
+ */
2720
+ cascade_facts?: boolean;
2721
+ /**
2722
+ * Reason
2723
+ *
2724
+ * Human-readable justification (audit log).
2725
+ */
2726
+ reason: string;
2802
2727
  };
2803
2728
 
2804
2729
  /**
@@ -3167,6 +3092,58 @@ export type DownloadQuota = {
3167
3092
  resets_at: string;
3168
3093
  };
3169
3094
 
3095
+ /**
3096
+ * ElementUpdatePatch
3097
+ *
3098
+ * Partial-update patch for a single element, keyed by qname.
3099
+ */
3100
+ export type ElementUpdatePatch = {
3101
+ /**
3102
+ * Qname
3103
+ *
3104
+ * qname identifier of the element to update.
3105
+ */
3106
+ qname: string;
3107
+ /**
3108
+ * Name
3109
+ */
3110
+ name?: string | null;
3111
+ /**
3112
+ * Description
3113
+ */
3114
+ description?: string | null;
3115
+ /**
3116
+ * Classification
3117
+ */
3118
+ classification?: string | null;
3119
+ /**
3120
+ * Balance Type
3121
+ */
3122
+ balance_type?: string | null;
3123
+ /**
3124
+ * Period Type
3125
+ */
3126
+ period_type?: string | null;
3127
+ /**
3128
+ * Is Monetary
3129
+ */
3130
+ is_monetary?: boolean | null;
3131
+ /**
3132
+ * Code
3133
+ */
3134
+ code?: string | null;
3135
+ /**
3136
+ * Parent Ref
3137
+ */
3138
+ parent_ref?: string | null;
3139
+ /**
3140
+ * Metadata
3141
+ */
3142
+ metadata?: {
3143
+ [key: string]: unknown;
3144
+ } | null;
3145
+ };
3146
+
3170
3147
  /**
3171
3148
  * EmailVerificationRequest
3172
3149
  *
@@ -4974,34 +4951,6 @@ export type McpToolsResponse = {
4974
4951
  }>;
4975
4952
  };
4976
4953
 
4977
- /**
4978
- * ManualLineItemRequest
4979
- */
4980
- export type ManualLineItemRequest = {
4981
- /**
4982
- * Element Id
4983
- *
4984
- * Element ID (chart of accounts)
4985
- */
4986
- element_id: string;
4987
- /**
4988
- * Debit Amount
4989
- *
4990
- * Debit in cents
4991
- */
4992
- debit_amount?: number;
4993
- /**
4994
- * Credit Amount
4995
- *
4996
- * Credit in cents
4997
- */
4998
- credit_amount?: number;
4999
- /**
5000
- * Description
5001
- */
5002
- description?: string | null;
5003
- };
5004
-
5005
4954
  /**
5006
4955
  * MaterializeOp
5007
4956
  *
@@ -6116,35 +6065,6 @@ export type RestoreBackupOp = {
6116
6065
  verify_after_restore?: boolean;
6117
6066
  };
6118
6067
 
6119
- /**
6120
- * ReverseJournalEntryRequest
6121
- *
6122
- * Reverse a posted journal entry.
6123
- *
6124
- * Creates a new entry whose line items flip the originals
6125
- * (debits → credits, credits → debits), sets `reversal_of` on the new
6126
- * entry to the original's id, marks the original as
6127
- * `status='reversed'`, and posts the reversing entry immediately.
6128
- *
6129
- * This is how accountants correct posted entries — the original stays
6130
- * in the audit trail, the reversal cancels its effect, and a
6131
- * corrected entry can be created separately.
6132
- */
6133
- export type ReverseJournalEntryRequest = {
6134
- /**
6135
- * Entry Id
6136
- */
6137
- entry_id: string;
6138
- /**
6139
- * Posting Date
6140
- */
6141
- posting_date?: string | null;
6142
- /**
6143
- * Memo
6144
- */
6145
- memo?: string | null;
6146
- };
6147
-
6148
6068
  /**
6149
6069
  * SECConnectionConfig
6150
6070
  *
@@ -6785,29 +6705,61 @@ export type StorageSummary = {
6785
6705
  };
6786
6706
 
6787
6707
  /**
6788
- * SubgraphQuotaResponse
6708
+ * StructureUpdatePatch
6789
6709
  *
6790
- * Response model for subgraph quota information.
6710
+ * Partial-update patch for a single structure, keyed by structure_id.
6791
6711
  */
6792
- export type SubgraphQuotaResponse = {
6712
+ export type StructureUpdatePatch = {
6793
6713
  /**
6794
- * Parent Graph Id
6714
+ * Structure Id
6795
6715
  *
6796
- * Parent graph identifier
6716
+ * Structure id to update.
6797
6717
  */
6798
- parent_graph_id: string;
6718
+ structure_id: string;
6799
6719
  /**
6800
- * Tier
6801
- *
6802
- * Graph tier
6720
+ * Name
6803
6721
  */
6804
- tier: string;
6722
+ name?: string | null;
6805
6723
  /**
6806
- * Current Count
6807
- *
6808
- * Current number of subgraphs
6724
+ * Description
6809
6725
  */
6810
- current_count: number;
6726
+ description?: string | null;
6727
+ /**
6728
+ * Role Uri
6729
+ */
6730
+ role_uri?: string | null;
6731
+ /**
6732
+ * Metadata
6733
+ */
6734
+ metadata?: {
6735
+ [key: string]: unknown;
6736
+ } | null;
6737
+ };
6738
+
6739
+ /**
6740
+ * SubgraphQuotaResponse
6741
+ *
6742
+ * Response model for subgraph quota information.
6743
+ */
6744
+ export type SubgraphQuotaResponse = {
6745
+ /**
6746
+ * Parent Graph Id
6747
+ *
6748
+ * Parent graph identifier
6749
+ */
6750
+ parent_graph_id: string;
6751
+ /**
6752
+ * Tier
6753
+ *
6754
+ * Graph tier
6755
+ */
6756
+ tier: string;
6757
+ /**
6758
+ * Current Count
6759
+ *
6760
+ * Current number of subgraphs
6761
+ */
6762
+ current_count: number;
6811
6763
  /**
6812
6764
  * Max Allowed
6813
6765
  *
@@ -7145,6 +7097,254 @@ export type TableQueryResponse = {
7145
7097
  execution_time_ms: number;
7146
7098
  };
7147
7099
 
7100
+ /**
7101
+ * TaxonomyBlockAssociationRequest
7102
+ *
7103
+ * Association (arc) between two elements, scoped to a structure.
7104
+ */
7105
+ export type TaxonomyBlockAssociationRequest = {
7106
+ /**
7107
+ * Structure Ref
7108
+ *
7109
+ * Envelope-local structure name (references a structure declared in the same envelope).
7110
+ */
7111
+ structure_ref: string;
7112
+ /**
7113
+ * From Ref
7114
+ *
7115
+ * qname of the source element.
7116
+ */
7117
+ from_ref: string;
7118
+ /**
7119
+ * To Ref
7120
+ *
7121
+ * qname of the target element.
7122
+ */
7123
+ to_ref: string;
7124
+ /**
7125
+ * Association Type
7126
+ *
7127
+ * DB ``associations.association_type`` enum. ``presentation`` = parent-child hierarchy; ``calculation`` = summation arc.
7128
+ */
7129
+ association_type: 'presentation' | 'calculation' | 'mapping' | 'equivalence' | 'general-special' | 'essence-alias';
7130
+ /**
7131
+ * Order Value
7132
+ */
7133
+ order_value?: number | null;
7134
+ /**
7135
+ * Arcrole
7136
+ */
7137
+ arcrole?: string | null;
7138
+ /**
7139
+ * Weight
7140
+ *
7141
+ * Calculation-arc coefficient (+1 / -1 for summation, other values for weighted rollups). Null for non-calculation arcs.
7142
+ */
7143
+ weight?: number | null;
7144
+ /**
7145
+ * Metadata
7146
+ */
7147
+ metadata?: {
7148
+ [key: string]: unknown;
7149
+ };
7150
+ };
7151
+
7152
+ /**
7153
+ * TaxonomyBlockElementRequest
7154
+ *
7155
+ * Element definition inside a Taxonomy Block envelope.
7156
+ *
7157
+ * ``qname`` is the envelope-local identifier — must be unique within the
7158
+ * envelope's ``elements`` list and is used by association / rule / patch
7159
+ * payloads as the reference token. ``parent_ref`` may reference another
7160
+ * envelope-local qname or, for ``reporting_extension`` blocks, a library
7161
+ * element qname.
7162
+ */
7163
+ export type TaxonomyBlockElementRequest = {
7164
+ /**
7165
+ * Qname
7166
+ *
7167
+ * Envelope-local element identifier. Must be unique within the envelope's ``elements`` list. Used as the reference token for associations, rules, and update patches.
7168
+ */
7169
+ qname: string;
7170
+ /**
7171
+ * Name
7172
+ *
7173
+ * Human-readable element name (e.g. 'Total Assets').
7174
+ */
7175
+ name: string;
7176
+ /**
7177
+ * Classification
7178
+ *
7179
+ * FASB metamodel trait for the element. Required for ``chart_of_accounts`` blocks; optional for ``custom_ontology``.
7180
+ */
7181
+ classification?: string | null;
7182
+ /**
7183
+ * Balance Type
7184
+ *
7185
+ * 'debit' | 'credit' | null for non-monetary concepts.
7186
+ */
7187
+ balance_type?: string | null;
7188
+ /**
7189
+ * Element Type
7190
+ *
7191
+ * 'concept' | 'abstract' | 'axis' | 'member' | 'hypercube'.
7192
+ */
7193
+ element_type?: string;
7194
+ /**
7195
+ * Period Type
7196
+ *
7197
+ * 'instant' | 'duration' | null (null = derive from classification during validation).
7198
+ */
7199
+ period_type?: string | null;
7200
+ /**
7201
+ * Is Monetary
7202
+ *
7203
+ * True for dollar-denominated concepts.
7204
+ */
7205
+ is_monetary?: boolean;
7206
+ /**
7207
+ * Description
7208
+ */
7209
+ description?: string | null;
7210
+ /**
7211
+ * Code
7212
+ *
7213
+ * Optional chart-of-accounts code (e.g. '1000', '4100-02'). Only meaningful for ``chart_of_accounts`` blocks.
7214
+ */
7215
+ code?: string | null;
7216
+ /**
7217
+ * Sub Classification
7218
+ */
7219
+ sub_classification?: string | null;
7220
+ /**
7221
+ * Parent Ref
7222
+ *
7223
+ * qname of the parent element — either another envelope-local qname or, for ``reporting_extension`` blocks, a library element qname.
7224
+ */
7225
+ parent_ref?: string | null;
7226
+ /**
7227
+ * Metadata
7228
+ */
7229
+ metadata?: {
7230
+ [key: string]: unknown;
7231
+ };
7232
+ };
7233
+
7234
+ /**
7235
+ * TaxonomyBlockRuleRequest
7236
+ *
7237
+ * Rule definition inside a Taxonomy Block envelope.
7238
+ *
7239
+ * Exactly one of ``target_structure_ref``, ``target_element_qname``, or
7240
+ * ``target_taxonomy_self`` must be set (or all null for a global rule).
7241
+ * The ``model_validator`` enforces this contract at the Pydantic layer.
7242
+ */
7243
+ export type TaxonomyBlockRuleRequest = {
7244
+ /**
7245
+ * Name
7246
+ *
7247
+ * Rule identifier, unique within envelope.
7248
+ */
7249
+ name: string;
7250
+ /**
7251
+ * Description
7252
+ */
7253
+ description?: string | null;
7254
+ /**
7255
+ * Rule Category
7256
+ *
7257
+ * One of 8 cm:VerificationRule subclasses.
7258
+ */
7259
+ rule_category: 'AutomatedAccountingAndReportingChecks' | 'DisclosureMechanicsRule' | 'FundamentalAccountingConceptRelation' | 'PeerConsistencyRule' | 'PriorPeriodConsistencyRule' | 'ReportLevelModelStructureRule' | 'ReportingSystemSpecificRule' | 'ToDoManualTask' | 'XBRLTechnicalSyntaxRule';
7260
+ /**
7261
+ * Rule Pattern
7262
+ *
7263
+ * One of 11 cm:BusinessRulePattern mechanisms.
7264
+ */
7265
+ rule_pattern: 'Adjustment' | 'CoExists' | 'EqualTo' | 'Exists' | 'GreaterThan' | 'GreaterThanOrEqualToZero' | 'LessThan' | 'RollForward' | 'RollUp' | 'SumEquals' | 'Variance';
7266
+ /**
7267
+ * Expression
7268
+ *
7269
+ * XPath-flavored predicate body (the rule expression).
7270
+ */
7271
+ expression: string;
7272
+ /**
7273
+ * Variables
7274
+ *
7275
+ * ``$Variable`` → qname bindings. Each entry is ``{'variable_name': str, 'variable_qname': str}``.
7276
+ */
7277
+ variables?: Array<{
7278
+ [key: string]: unknown;
7279
+ }>;
7280
+ /**
7281
+ * Severity
7282
+ */
7283
+ severity?: 'info' | 'warning' | 'error';
7284
+ /**
7285
+ * Target Structure Ref
7286
+ *
7287
+ * Envelope-local structure name this rule targets (for structure-scoped rules). Mutually exclusive with the other target_* fields.
7288
+ */
7289
+ target_structure_ref?: string | null;
7290
+ /**
7291
+ * Target Element Qname
7292
+ *
7293
+ * qname of the element this rule targets. Mutually exclusive with the other target_* fields.
7294
+ */
7295
+ target_element_qname?: string | null;
7296
+ /**
7297
+ * Target Taxonomy Self
7298
+ *
7299
+ * True iff the rule targets the envelope's own taxonomy row (``target_kind='taxonomy'``). Mutually exclusive with the other target_* fields.
7300
+ */
7301
+ target_taxonomy_self?: boolean;
7302
+ /**
7303
+ * Message
7304
+ */
7305
+ message?: string | null;
7306
+ /**
7307
+ * Metadata
7308
+ */
7309
+ metadata?: {
7310
+ [key: string]: unknown;
7311
+ };
7312
+ };
7313
+
7314
+ /**
7315
+ * TaxonomyBlockStructureRequest
7316
+ *
7317
+ * Structure definition inside a Taxonomy Block envelope.
7318
+ */
7319
+ export type TaxonomyBlockStructureRequest = {
7320
+ /**
7321
+ * Name
7322
+ *
7323
+ * Envelope-local structure name (unique within envelope).
7324
+ */
7325
+ name: string;
7326
+ /**
7327
+ * Structure Type
7328
+ *
7329
+ * DB ``structures.structure_type`` enum. CoA blocks use ``chart_of_accounts``; reporting extensions use the statement family or ``custom``; custom ontology uses ``custom``.
7330
+ */
7331
+ structure_type: 'chart_of_accounts' | 'custom' | 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'rollforward' | 'reconciliation' | 'policy' | 'metric';
7332
+ /**
7333
+ * Description
7334
+ */
7335
+ description?: string | null;
7336
+ /**
7337
+ * Role Uri
7338
+ */
7339
+ role_uri?: string | null;
7340
+ /**
7341
+ * Metadata
7342
+ */
7343
+ metadata?: {
7344
+ [key: string]: unknown;
7345
+ };
7346
+ };
7347
+
7148
7348
  /**
7149
7349
  * TierCapacity
7150
7350
  *
@@ -7230,34 +7430,67 @@ export type TransactionSummaryResponse = {
7230
7430
  };
7231
7431
 
7232
7432
  /**
7233
- * TruncateScheduleOperation
7433
+ * TransactionTemplate
7434
+ *
7435
+ * The handler's output spec — one or more balanced entries to post.
7234
7436
  *
7235
- * CQRS-shaped body for `POST /operations/truncate-schedule`.
7437
+ * Wire shape::
7236
7438
  *
7237
- * Bundles the target schedule's `structure_id` with the update payload so
7238
- * the single-body signature matches the registrar/MCP contract. The REST
7239
- * handler, GraphQL resolver, and MCP tool all resolve to the same
7240
- * `cmd_truncate_schedule(session, body, created_by=...)`.
7439
+ * {
7440
+ * "transactions": [{
7441
+ * "entry_template": {
7442
+ * "debit": {"element_id": "elem_...", "amount": "{{ event.amount }}"},
7443
+ * "credit": {"element_id": "elem_...", "amount": "{{ event.amount }}"}
7444
+ * }
7445
+ * }]
7446
+ * }
7241
7447
  */
7242
- export type TruncateScheduleOperation = {
7448
+ export type TransactionTemplate = {
7243
7449
  /**
7244
- * New End Date
7450
+ * Transactions
7245
7451
  *
7246
- * New last-covered date for the schedule. Facts with period_start > this date are deleted (along with any stale draft entries they produced). Historical facts (already posted) are preserved.
7452
+ * At least one debit/credit entry pair
7247
7453
  */
7248
- new_end_date: string;
7454
+ transactions: Array<TransactionTemplateItem>;
7455
+ };
7456
+
7457
+ /**
7458
+ * TransactionTemplateEntry
7459
+ *
7460
+ * One balanced entry (debit + credit pair) — the inner shape of entry_template.
7461
+ */
7462
+ export type TransactionTemplateEntry = {
7463
+ debit: TransactionTemplateLeg;
7464
+ credit: TransactionTemplateLeg;
7465
+ };
7466
+
7467
+ /**
7468
+ * TransactionTemplateItem
7469
+ *
7470
+ * One item in the transactions list — wraps entry_template to match the DSL shape.
7471
+ */
7472
+ export type TransactionTemplateItem = {
7473
+ entry_template: TransactionTemplateEntry;
7474
+ };
7475
+
7476
+ /**
7477
+ * TransactionTemplateLeg
7478
+ *
7479
+ * One side of a journal entry leg (debit or credit).
7480
+ */
7481
+ export type TransactionTemplateLeg = {
7249
7482
  /**
7250
- * Reason
7483
+ * Element Id
7251
7484
  *
7252
- * Required reason for the truncation (captured in audit log).
7485
+ * Element ULID (elem_ prefixed) identifying the account to post to
7253
7486
  */
7254
- reason: string;
7487
+ element_id: string;
7255
7488
  /**
7256
- * Structure Id
7489
+ * Amount
7257
7490
  *
7258
- * Target schedule structure ID.
7491
+ * Amount expression. Supports: '{{ event.amount }}' — raw event amount (cents); '{{ event.amount }} / 2' — half of event amount; '{{ event.metadata.fee_cents }}' — field from event metadata
7259
7492
  */
7260
- structure_id: string;
7493
+ amount: string;
7261
7494
  };
7262
7495
 
7263
7496
  /**
@@ -7325,87 +7558,65 @@ export type UpdateApiKeyRequest = {
7325
7558
  };
7326
7559
 
7327
7560
  /**
7328
- * UpdateAssociationRequest
7329
- *
7330
- * Update mutable fields on an association. `from_element_id`,
7331
- * `to_element_id`, and `association_type` are immutable — delete and
7332
- * recreate instead.
7561
+ * UpdateAgentRequest
7333
7562
  */
7334
- export type UpdateAssociationRequest = {
7563
+ export type UpdateAgentRequest = {
7335
7564
  /**
7336
- * Association Id
7565
+ * Agent Id
7337
7566
  */
7338
- association_id: string;
7567
+ agent_id: string;
7339
7568
  /**
7340
- * Order Value
7569
+ * Name
7341
7570
  */
7342
- order_value?: number | null;
7571
+ name?: string | null;
7343
7572
  /**
7344
- * Weight
7573
+ * Legal Name
7345
7574
  */
7346
- weight?: number | null;
7575
+ legal_name?: string | null;
7347
7576
  /**
7348
- * Confidence
7577
+ * Tax Id
7349
7578
  */
7350
- confidence?: number | null;
7579
+ tax_id?: string | null;
7351
7580
  /**
7352
- * Approved By
7581
+ * Registration Number
7353
7582
  */
7354
- approved_by?: string | null;
7355
- };
7356
-
7357
- /**
7358
- * UpdateElementRequest
7359
- *
7360
- * Update mutable fields on an element. `taxonomy_id` and `source` are
7361
- * immutable. `parent_id` honors `model_dump(exclude_unset=True)` semantics:
7362
- * omit the field to leave unchanged, pass `null` to clear the parent
7363
- * (make root).
7364
- *
7365
- * ``classification`` updates the element's primary FASB
7366
- * elementsOfFinancialStatements assignment (in ``element_classifications``,
7367
- * not a direct column on ``elements``). Omit to leave unchanged. Passing a
7368
- * value replaces the current primary EFS assignment; there is no
7369
- * set-to-null semantics (use the UI/admin path for full classification
7370
- * teardown — here we only support correction of a misclassified account).
7371
- */
7372
- export type UpdateElementRequest = {
7583
+ registration_number?: string | null;
7373
7584
  /**
7374
- * Element Id
7585
+ * Duns
7375
7586
  */
7376
- element_id: string;
7587
+ duns?: string | null;
7377
7588
  /**
7378
- * Code
7589
+ * Lei
7379
7590
  */
7380
- code?: string | null;
7591
+ lei?: string | null;
7381
7592
  /**
7382
- * Name
7593
+ * Email
7383
7594
  */
7384
- name?: string | null;
7385
- /**
7386
- * Description
7387
- */
7388
- description?: string | null;
7595
+ email?: string | null;
7389
7596
  /**
7390
- * Balance Type
7597
+ * Phone
7391
7598
  */
7392
- balance_type?: 'debit' | 'credit' | null;
7599
+ phone?: string | null;
7393
7600
  /**
7394
- * Period Type
7601
+ * Address
7395
7602
  */
7396
- period_type?: 'duration' | 'instant' | null;
7603
+ address?: {
7604
+ [key: string]: unknown;
7605
+ } | null;
7397
7606
  /**
7398
- * Parent Id
7607
+ * Is Active
7399
7608
  */
7400
- parent_id?: string | null;
7609
+ is_active?: boolean | null;
7401
7610
  /**
7402
- * Currency
7611
+ * Is 1099 Recipient
7403
7612
  */
7404
- currency?: string | null;
7613
+ is_1099_recipient?: boolean | null;
7405
7614
  /**
7406
- * Classification
7615
+ * Metadata Patch
7407
7616
  */
7408
- classification?: 'asset' | 'contraAsset' | 'liability' | 'contraLiability' | 'equity' | 'contraEquity' | 'temporaryEquity' | 'revenue' | 'expense' | 'expenseReversal' | 'gain' | 'loss' | 'comprehensiveIncome' | 'investmentByOwners' | 'distributionToOwners' | null;
7617
+ metadata_patch?: {
7618
+ [key: string]: unknown;
7619
+ };
7409
7620
  };
7410
7621
 
7411
7622
  /**
@@ -7504,6 +7715,107 @@ export type UpdateEntityRequest = {
7504
7715
  address_country?: string | null;
7505
7716
  };
7506
7717
 
7718
+ /**
7719
+ * UpdateEventBlockRequest
7720
+ *
7721
+ * Status transitions and field corrections for an event block.
7722
+ *
7723
+ * All fields except event_id are optional — only supplied fields are updated.
7724
+ */
7725
+ export type UpdateEventBlockRequest = {
7726
+ /**
7727
+ * Event Id
7728
+ */
7729
+ event_id: string;
7730
+ /**
7731
+ * Transition To
7732
+ *
7733
+ * Status transition. Valid moves depend on current status: captured → committed | voided; classified → committed | pending | fulfilled | voided; committed → pending | fulfilled | voided; pending → fulfilled | voided. Terminal states (fulfilled, voided, superseded) accept no further transitions. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
7734
+ */
7735
+ transition_to?: 'committed' | 'pending' | 'fulfilled' | 'voided' | 'superseded' | null;
7736
+ /**
7737
+ * Superseded By Id
7738
+ *
7739
+ * New event id that replaces this one. Required when transition_to='superseded'.
7740
+ */
7741
+ superseded_by_id?: string | null;
7742
+ /**
7743
+ * Description
7744
+ */
7745
+ description?: string | null;
7746
+ /**
7747
+ * Effective At
7748
+ */
7749
+ effective_at?: string | null;
7750
+ /**
7751
+ * Metadata Patch
7752
+ *
7753
+ * Key-value pairs merged into existing metadata (additive patch, not replace).
7754
+ */
7755
+ metadata_patch?: {
7756
+ [key: string]: unknown;
7757
+ };
7758
+ };
7759
+
7760
+ /**
7761
+ * UpdateEventHandlerRequest
7762
+ */
7763
+ export type UpdateEventHandlerRequest = {
7764
+ /**
7765
+ * Event Handler Id
7766
+ */
7767
+ event_handler_id: string;
7768
+ /**
7769
+ * Name
7770
+ */
7771
+ name?: string | null;
7772
+ /**
7773
+ * Description
7774
+ */
7775
+ description?: string | null;
7776
+ /**
7777
+ * Event Category
7778
+ */
7779
+ event_category?: string | null;
7780
+ /**
7781
+ * Match Source
7782
+ */
7783
+ match_source?: string | null;
7784
+ /**
7785
+ * Match Agent Type
7786
+ */
7787
+ match_agent_type?: string | null;
7788
+ /**
7789
+ * Match Resource Type
7790
+ */
7791
+ match_resource_type?: string | null;
7792
+ /**
7793
+ * Match Metadata Expression
7794
+ */
7795
+ match_metadata_expression?: {
7796
+ [key: string]: unknown;
7797
+ } | null;
7798
+ transaction_template?: TransactionTemplate | null;
7799
+ /**
7800
+ * Priority
7801
+ */
7802
+ priority?: number | null;
7803
+ /**
7804
+ * Is Active
7805
+ */
7806
+ is_active?: boolean | null;
7807
+ /**
7808
+ * Approve
7809
+ */
7810
+ approve?: boolean | null;
7811
+ /**
7812
+ * Metadata Patch
7813
+ */
7814
+ metadata_patch?: {
7815
+ [key: string]: unknown;
7816
+ };
7817
+ };
7818
+
7507
7819
  /**
7508
7820
  * UpdateInformationBlockRequest
7509
7821
  *
@@ -7775,16 +8087,20 @@ export type UpdateSecurityOperation = {
7775
8087
  };
7776
8088
 
7777
8089
  /**
7778
- * UpdateStructureRequest
8090
+ * UpdateTaxonomyBlockRequest
8091
+ *
8092
+ * Request body for the ``update-taxonomy-block`` operation.
7779
8093
  *
7780
- * Update mutable fields on a structure. `structure_type` and
7781
- * `taxonomy_id` are immutable.
8094
+ * Top-level fields (name / description / version) apply to the taxonomy
8095
+ * row itself. The delta lists mutate atoms incrementally — the validator
8096
+ * (Phase 2.3) re-runs the seven-phase check across the projected post-
8097
+ * update state before anything commits.
7782
8098
  */
7783
- export type UpdateStructureRequest = {
8099
+ export type UpdateTaxonomyBlockRequest = {
7784
8100
  /**
7785
- * Structure Id
8101
+ * Taxonomy Id
7786
8102
  */
7787
- structure_id: string;
8103
+ taxonomy_id: string;
7788
8104
  /**
7789
8105
  * Name
7790
8106
  */
@@ -7793,33 +8109,58 @@ export type UpdateStructureRequest = {
7793
8109
  * Description
7794
8110
  */
7795
8111
  description?: string | null;
7796
- };
7797
-
7798
- /**
7799
- * UpdateTaxonomyRequest
7800
- *
7801
- * Update mutable fields on a taxonomy. `taxonomy_type` is immutable —
7802
- * changing it is not the same operation as editing a taxonomy; deactivate
7803
- * and create a new one instead. Only provided (non-null) fields are
7804
- * applied.
7805
- */
7806
- export type UpdateTaxonomyRequest = {
7807
8112
  /**
7808
- * Taxonomy Id
8113
+ * Version
7809
8114
  */
7810
- taxonomy_id: string;
8115
+ version?: string | null;
7811
8116
  /**
7812
- * Name
8117
+ * Elements To Add
7813
8118
  */
7814
- name?: string | null;
8119
+ elements_to_add?: Array<TaxonomyBlockElementRequest>;
7815
8120
  /**
7816
- * Description
8121
+ * Elements To Update
7817
8122
  */
7818
- description?: string | null;
8123
+ elements_to_update?: Array<ElementUpdatePatch>;
7819
8124
  /**
7820
- * Version
8125
+ * Elements To Remove
8126
+ *
8127
+ * qnames of elements to remove.
7821
8128
  */
7822
- version?: string | null;
8129
+ elements_to_remove?: Array<string>;
8130
+ /**
8131
+ * Structures To Add
8132
+ */
8133
+ structures_to_add?: Array<TaxonomyBlockStructureRequest>;
8134
+ /**
8135
+ * Structures To Update
8136
+ */
8137
+ structures_to_update?: Array<StructureUpdatePatch>;
8138
+ /**
8139
+ * Structures To Remove
8140
+ *
8141
+ * Structure ids to remove.
8142
+ */
8143
+ structures_to_remove?: Array<string>;
8144
+ /**
8145
+ * Associations To Add
8146
+ */
8147
+ associations_to_add?: Array<TaxonomyBlockAssociationRequest>;
8148
+ /**
8149
+ * Associations To Remove
8150
+ *
8151
+ * Association ids to remove.
8152
+ */
8153
+ associations_to_remove?: Array<string>;
8154
+ /**
8155
+ * Rules To Add
8156
+ */
8157
+ rules_to_add?: Array<TaxonomyBlockRuleRequest>;
8158
+ /**
8159
+ * Rules To Remove
8160
+ *
8161
+ * Rule ids to remove.
8162
+ */
8163
+ rules_to_remove?: Array<string>;
7823
8164
  };
7824
8165
 
7825
8166
  /**
@@ -14110,70 +14451,6 @@ export type HandleHttpPostExtensionsGraphIdGraphqlPostResponses = {
14110
14451
  200: unknown;
14111
14452
  };
14112
14453
 
14113
- export type OpUpdateEntityData = {
14114
- body: UpdateEntityRequest;
14115
- headers?: {
14116
- /**
14117
- * Idempotency-Key
14118
- */
14119
- 'Idempotency-Key'?: string | null;
14120
- };
14121
- path: {
14122
- /**
14123
- * Graph Id
14124
- */
14125
- graph_id: string;
14126
- };
14127
- query?: never;
14128
- url: '/extensions/roboledger/{graph_id}/operations/update-entity';
14129
- };
14130
-
14131
- export type OpUpdateEntityErrors = {
14132
- /**
14133
- * Invalid request
14134
- */
14135
- 400: ErrorResponse;
14136
- /**
14137
- * Authentication required
14138
- */
14139
- 401: ErrorResponse;
14140
- /**
14141
- * Access denied
14142
- */
14143
- 403: ErrorResponse;
14144
- /**
14145
- * Resource not found
14146
- */
14147
- 404: ErrorResponse;
14148
- /**
14149
- * Idempotency-Key conflict — key reused with different body
14150
- */
14151
- 409: ErrorResponse;
14152
- /**
14153
- * Validation Error
14154
- */
14155
- 422: HttpValidationError;
14156
- /**
14157
- * Rate limit exceeded
14158
- */
14159
- 429: ErrorResponse;
14160
- /**
14161
- * Internal server error
14162
- */
14163
- 500: ErrorResponse;
14164
- };
14165
-
14166
- export type OpUpdateEntityError = OpUpdateEntityErrors[keyof OpUpdateEntityErrors];
14167
-
14168
- export type OpUpdateEntityResponses = {
14169
- /**
14170
- * Successful Response
14171
- */
14172
- 200: OperationEnvelope;
14173
- };
14174
-
14175
- export type OpUpdateEntityResponse = OpUpdateEntityResponses[keyof OpUpdateEntityResponses];
14176
-
14177
14454
  export type OpInitializeLedgerData = {
14178
14455
  body: InitializeLedgerRequest;
14179
14456
  headers?: {
@@ -14238,8 +14515,8 @@ export type OpInitializeLedgerResponses = {
14238
14515
 
14239
14516
  export type OpInitializeLedgerResponse = OpInitializeLedgerResponses[keyof OpInitializeLedgerResponses];
14240
14517
 
14241
- export type OpSetCloseTargetData = {
14242
- body: SetCloseTargetOperation;
14518
+ export type OpUpdateEntityData = {
14519
+ body: UpdateEntityRequest;
14243
14520
  headers?: {
14244
14521
  /**
14245
14522
  * Idempotency-Key
@@ -14253,10 +14530,10 @@ export type OpSetCloseTargetData = {
14253
14530
  graph_id: string;
14254
14531
  };
14255
14532
  query?: never;
14256
- url: '/extensions/roboledger/{graph_id}/operations/set-close-target';
14533
+ url: '/extensions/roboledger/{graph_id}/operations/update-entity';
14257
14534
  };
14258
14535
 
14259
- export type OpSetCloseTargetErrors = {
14536
+ export type OpUpdateEntityErrors = {
14260
14537
  /**
14261
14538
  * Invalid request
14262
14539
  */
@@ -14291,19 +14568,19 @@ export type OpSetCloseTargetErrors = {
14291
14568
  500: ErrorResponse;
14292
14569
  };
14293
14570
 
14294
- export type OpSetCloseTargetError = OpSetCloseTargetErrors[keyof OpSetCloseTargetErrors];
14571
+ export type OpUpdateEntityError = OpUpdateEntityErrors[keyof OpUpdateEntityErrors];
14295
14572
 
14296
- export type OpSetCloseTargetResponses = {
14573
+ export type OpUpdateEntityResponses = {
14297
14574
  /**
14298
14575
  * Successful Response
14299
14576
  */
14300
14577
  200: OperationEnvelope;
14301
14578
  };
14302
14579
 
14303
- export type OpSetCloseTargetResponse = OpSetCloseTargetResponses[keyof OpSetCloseTargetResponses];
14580
+ export type OpUpdateEntityResponse = OpUpdateEntityResponses[keyof OpUpdateEntityResponses];
14304
14581
 
14305
- export type OpClosePeriodData = {
14306
- body: ClosePeriodOperation;
14582
+ export type OpCreateTaxonomyBlockData = {
14583
+ body: CreateTaxonomyBlockRequest;
14307
14584
  headers?: {
14308
14585
  /**
14309
14586
  * Idempotency-Key
@@ -14317,30 +14594,30 @@ export type OpClosePeriodData = {
14317
14594
  graph_id: string;
14318
14595
  };
14319
14596
  query?: never;
14320
- url: '/extensions/roboledger/{graph_id}/operations/close-period';
14597
+ url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy-block';
14321
14598
  };
14322
14599
 
14323
- export type OpClosePeriodErrors = {
14600
+ export type OpCreateTaxonomyBlockErrors = {
14324
14601
  /**
14325
- * Invalid request
14602
+ * Invalid request payload
14326
14603
  */
14327
- 400: ErrorResponse;
14604
+ 400: OperationError;
14328
14605
  /**
14329
- * Authentication required
14606
+ * Unauthorized — missing or invalid credentials
14330
14607
  */
14331
- 401: ErrorResponse;
14608
+ 401: unknown;
14332
14609
  /**
14333
- * Access denied
14610
+ * Forbidden — caller cannot access this graph
14334
14611
  */
14335
- 403: ErrorResponse;
14612
+ 403: unknown;
14336
14613
  /**
14337
- * Resource not found
14614
+ * Resource not found (graph, ledger, report, etc.)
14338
14615
  */
14339
- 404: ErrorResponse;
14616
+ 404: OperationError;
14340
14617
  /**
14341
- * Idempotency-Key conflict — key reused with different body
14618
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
14342
14619
  */
14343
- 409: ErrorResponse;
14620
+ 409: OperationError;
14344
14621
  /**
14345
14622
  * Validation Error
14346
14623
  */
@@ -14348,474 +14625,26 @@ export type OpClosePeriodErrors = {
14348
14625
  /**
14349
14626
  * Rate limit exceeded
14350
14627
  */
14351
- 429: ErrorResponse;
14352
- /**
14353
- * Internal server error
14354
- */
14355
- 500: ErrorResponse;
14356
- };
14357
-
14358
- export type OpClosePeriodError = OpClosePeriodErrors[keyof OpClosePeriodErrors];
14359
-
14360
- export type OpClosePeriodResponses = {
14628
+ 429: unknown;
14361
14629
  /**
14362
- * Successful Response
14630
+ * Internal error
14363
14631
  */
14364
- 200: OperationEnvelope;
14632
+ 500: unknown;
14365
14633
  };
14366
14634
 
14367
- export type OpClosePeriodResponse = OpClosePeriodResponses[keyof OpClosePeriodResponses];
14368
-
14369
- export type OpReopenPeriodData = {
14370
- body: ReopenPeriodOperation;
14371
- headers?: {
14372
- /**
14373
- * Idempotency-Key
14374
- */
14375
- 'Idempotency-Key'?: string | null;
14376
- };
14377
- path: {
14378
- /**
14379
- * Graph Id
14380
- */
14381
- graph_id: string;
14382
- };
14383
- query?: never;
14384
- url: '/extensions/roboledger/{graph_id}/operations/reopen-period';
14385
- };
14635
+ export type OpCreateTaxonomyBlockError = OpCreateTaxonomyBlockErrors[keyof OpCreateTaxonomyBlockErrors];
14386
14636
 
14387
- export type OpReopenPeriodErrors = {
14388
- /**
14389
- * Invalid request
14390
- */
14391
- 400: ErrorResponse;
14392
- /**
14393
- * Authentication required
14394
- */
14395
- 401: ErrorResponse;
14396
- /**
14397
- * Access denied
14398
- */
14399
- 403: ErrorResponse;
14400
- /**
14401
- * Resource not found
14402
- */
14403
- 404: ErrorResponse;
14404
- /**
14405
- * Idempotency-Key conflict — key reused with different body
14406
- */
14407
- 409: ErrorResponse;
14408
- /**
14409
- * Validation Error
14410
- */
14411
- 422: HttpValidationError;
14412
- /**
14413
- * Rate limit exceeded
14414
- */
14415
- 429: ErrorResponse;
14416
- /**
14417
- * Internal server error
14418
- */
14419
- 500: ErrorResponse;
14420
- };
14421
-
14422
- export type OpReopenPeriodError = OpReopenPeriodErrors[keyof OpReopenPeriodErrors];
14423
-
14424
- export type OpReopenPeriodResponses = {
14425
- /**
14426
- * Successful Response
14427
- */
14428
- 200: OperationEnvelope;
14429
- };
14430
-
14431
- export type OpReopenPeriodResponse = OpReopenPeriodResponses[keyof OpReopenPeriodResponses];
14432
-
14433
- export type OpCreateTaxonomyData = {
14434
- body: CreateTaxonomyRequest;
14435
- headers?: {
14436
- /**
14437
- * Idempotency-Key
14438
- */
14439
- 'Idempotency-Key'?: string | null;
14440
- };
14441
- path: {
14442
- /**
14443
- * Graph Id
14444
- */
14445
- graph_id: string;
14446
- };
14447
- query?: never;
14448
- url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy';
14449
- };
14450
-
14451
- export type OpCreateTaxonomyErrors = {
14452
- /**
14453
- * Invalid request
14454
- */
14455
- 400: ErrorResponse;
14456
- /**
14457
- * Authentication required
14458
- */
14459
- 401: ErrorResponse;
14460
- /**
14461
- * Access denied
14462
- */
14463
- 403: ErrorResponse;
14464
- /**
14465
- * Resource not found
14466
- */
14467
- 404: ErrorResponse;
14468
- /**
14469
- * Idempotency-Key conflict — key reused with different body
14470
- */
14471
- 409: ErrorResponse;
14472
- /**
14473
- * Validation Error
14474
- */
14475
- 422: HttpValidationError;
14476
- /**
14477
- * Rate limit exceeded
14478
- */
14479
- 429: ErrorResponse;
14480
- /**
14481
- * Internal server error
14482
- */
14483
- 500: ErrorResponse;
14484
- };
14485
-
14486
- export type OpCreateTaxonomyError = OpCreateTaxonomyErrors[keyof OpCreateTaxonomyErrors];
14487
-
14488
- export type OpCreateTaxonomyResponses = {
14489
- /**
14490
- * Successful Response
14491
- */
14492
- 200: OperationEnvelope;
14493
- };
14494
-
14495
- export type OpCreateTaxonomyResponse = OpCreateTaxonomyResponses[keyof OpCreateTaxonomyResponses];
14496
-
14497
- export type OpCreateStructureData = {
14498
- body: CreateStructureRequest;
14499
- headers?: {
14500
- /**
14501
- * Idempotency-Key
14502
- */
14503
- 'Idempotency-Key'?: string | null;
14504
- };
14505
- path: {
14506
- /**
14507
- * Graph Id
14508
- */
14509
- graph_id: string;
14510
- };
14511
- query?: never;
14512
- url: '/extensions/roboledger/{graph_id}/operations/create-structure';
14513
- };
14514
-
14515
- export type OpCreateStructureErrors = {
14516
- /**
14517
- * Invalid request
14518
- */
14519
- 400: ErrorResponse;
14520
- /**
14521
- * Authentication required
14522
- */
14523
- 401: ErrorResponse;
14524
- /**
14525
- * Access denied
14526
- */
14527
- 403: ErrorResponse;
14528
- /**
14529
- * Resource not found
14530
- */
14531
- 404: ErrorResponse;
14532
- /**
14533
- * Idempotency-Key conflict — key reused with different body
14534
- */
14535
- 409: ErrorResponse;
14536
- /**
14537
- * Validation Error
14538
- */
14539
- 422: HttpValidationError;
14540
- /**
14541
- * Rate limit exceeded
14542
- */
14543
- 429: ErrorResponse;
14544
- /**
14545
- * Internal server error
14546
- */
14547
- 500: ErrorResponse;
14548
- };
14549
-
14550
- export type OpCreateStructureError = OpCreateStructureErrors[keyof OpCreateStructureErrors];
14551
-
14552
- export type OpCreateStructureResponses = {
14553
- /**
14554
- * Successful Response
14555
- */
14556
- 200: OperationEnvelope;
14557
- };
14558
-
14559
- export type OpCreateStructureResponse = OpCreateStructureResponses[keyof OpCreateStructureResponses];
14560
-
14561
- export type OpDeleteMappingAssociationData = {
14562
- body: DeleteMappingAssociationOperation;
14563
- headers?: {
14564
- /**
14565
- * Idempotency-Key
14566
- */
14567
- 'Idempotency-Key'?: string | null;
14568
- };
14569
- path: {
14570
- /**
14571
- * Graph Id
14572
- */
14573
- graph_id: string;
14574
- };
14575
- query?: never;
14576
- url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association';
14577
- };
14578
-
14579
- export type OpDeleteMappingAssociationErrors = {
14580
- /**
14581
- * Invalid request
14582
- */
14583
- 400: ErrorResponse;
14584
- /**
14585
- * Authentication required
14586
- */
14587
- 401: ErrorResponse;
14588
- /**
14589
- * Access denied
14590
- */
14591
- 403: ErrorResponse;
14592
- /**
14593
- * Resource not found
14594
- */
14595
- 404: ErrorResponse;
14596
- /**
14597
- * Idempotency-Key conflict — key reused with different body
14598
- */
14599
- 409: ErrorResponse;
14600
- /**
14601
- * Validation Error
14602
- */
14603
- 422: HttpValidationError;
14604
- /**
14605
- * Rate limit exceeded
14606
- */
14607
- 429: ErrorResponse;
14608
- /**
14609
- * Internal server error
14610
- */
14611
- 500: ErrorResponse;
14612
- };
14613
-
14614
- export type OpDeleteMappingAssociationError = OpDeleteMappingAssociationErrors[keyof OpDeleteMappingAssociationErrors];
14615
-
14616
- export type OpDeleteMappingAssociationResponses = {
14617
- /**
14618
- * Successful Response
14619
- */
14620
- 200: OperationEnvelope;
14621
- };
14622
-
14623
- export type OpDeleteMappingAssociationResponse = OpDeleteMappingAssociationResponses[keyof OpDeleteMappingAssociationResponses];
14624
-
14625
- export type OpUpdateTaxonomyData = {
14626
- body: UpdateTaxonomyRequest;
14627
- headers?: {
14628
- /**
14629
- * Idempotency-Key
14630
- */
14631
- 'Idempotency-Key'?: string | null;
14632
- };
14633
- path: {
14634
- /**
14635
- * Graph Id
14636
- */
14637
- graph_id: string;
14638
- };
14639
- query?: never;
14640
- url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy';
14641
- };
14642
-
14643
- export type OpUpdateTaxonomyErrors = {
14644
- /**
14645
- * Invalid request payload
14646
- */
14647
- 400: OperationError;
14648
- /**
14649
- * Unauthorized — missing or invalid credentials
14650
- */
14651
- 401: unknown;
14652
- /**
14653
- * Forbidden — caller cannot access this graph
14654
- */
14655
- 403: unknown;
14656
- /**
14657
- * Resource not found (graph, ledger, report, etc.)
14658
- */
14659
- 404: OperationError;
14660
- /**
14661
- * Idempotency-Key reused with a different request body, or other operation-level conflict
14662
- */
14663
- 409: OperationError;
14664
- /**
14665
- * Validation Error
14666
- */
14667
- 422: HttpValidationError;
14668
- /**
14669
- * Rate limit exceeded
14670
- */
14671
- 429: unknown;
14672
- /**
14673
- * Internal error
14674
- */
14675
- 500: unknown;
14676
- };
14677
-
14678
- export type OpUpdateTaxonomyError = OpUpdateTaxonomyErrors[keyof OpUpdateTaxonomyErrors];
14679
-
14680
- export type OpUpdateTaxonomyResponses = {
14681
- /**
14682
- * Successful Response
14683
- */
14684
- 200: OperationEnvelope;
14685
- };
14686
-
14687
- export type OpUpdateTaxonomyResponse = OpUpdateTaxonomyResponses[keyof OpUpdateTaxonomyResponses];
14688
-
14689
- export type OpDeleteTaxonomyData = {
14690
- body: DeleteTaxonomyRequest;
14691
- headers?: {
14692
- /**
14693
- * Idempotency-Key
14694
- */
14695
- 'Idempotency-Key'?: string | null;
14696
- };
14697
- path: {
14698
- /**
14699
- * Graph Id
14700
- */
14701
- graph_id: string;
14702
- };
14703
- query?: never;
14704
- url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy';
14705
- };
14706
-
14707
- export type OpDeleteTaxonomyErrors = {
14708
- /**
14709
- * Invalid request payload
14710
- */
14711
- 400: OperationError;
14712
- /**
14713
- * Unauthorized — missing or invalid credentials
14714
- */
14715
- 401: unknown;
14716
- /**
14717
- * Forbidden — caller cannot access this graph
14718
- */
14719
- 403: unknown;
14720
- /**
14721
- * Resource not found (graph, ledger, report, etc.)
14722
- */
14723
- 404: OperationError;
14724
- /**
14725
- * Idempotency-Key reused with a different request body, or other operation-level conflict
14726
- */
14727
- 409: OperationError;
14728
- /**
14729
- * Validation Error
14730
- */
14731
- 422: HttpValidationError;
14732
- /**
14733
- * Rate limit exceeded
14734
- */
14735
- 429: unknown;
14736
- /**
14737
- * Internal error
14738
- */
14739
- 500: unknown;
14740
- };
14741
-
14742
- export type OpDeleteTaxonomyError = OpDeleteTaxonomyErrors[keyof OpDeleteTaxonomyErrors];
14743
-
14744
- export type OpDeleteTaxonomyResponses = {
14745
- /**
14746
- * Successful Response
14747
- */
14748
- 200: OperationEnvelope;
14749
- };
14750
-
14751
- export type OpDeleteTaxonomyResponse = OpDeleteTaxonomyResponses[keyof OpDeleteTaxonomyResponses];
14752
-
14753
- export type OpLinkEntityTaxonomyData = {
14754
- body: LinkEntityTaxonomyRequest;
14755
- headers?: {
14756
- /**
14757
- * Idempotency-Key
14758
- */
14759
- 'Idempotency-Key'?: string | null;
14760
- };
14761
- path: {
14762
- /**
14763
- * Graph Id
14764
- */
14765
- graph_id: string;
14766
- };
14767
- query?: never;
14768
- url: '/extensions/roboledger/{graph_id}/operations/link-entity-taxonomy';
14769
- };
14770
-
14771
- export type OpLinkEntityTaxonomyErrors = {
14772
- /**
14773
- * Invalid request payload
14774
- */
14775
- 400: OperationError;
14776
- /**
14777
- * Unauthorized — missing or invalid credentials
14778
- */
14779
- 401: unknown;
14780
- /**
14781
- * Forbidden — caller cannot access this graph
14782
- */
14783
- 403: unknown;
14784
- /**
14785
- * Resource not found (graph, ledger, report, etc.)
14786
- */
14787
- 404: OperationError;
14788
- /**
14789
- * Idempotency-Key reused with a different request body, or other operation-level conflict
14790
- */
14791
- 409: OperationError;
14792
- /**
14793
- * Validation Error
14794
- */
14795
- 422: HttpValidationError;
14796
- /**
14797
- * Rate limit exceeded
14798
- */
14799
- 429: unknown;
14800
- /**
14801
- * Internal error
14802
- */
14803
- 500: unknown;
14804
- };
14805
-
14806
- export type OpLinkEntityTaxonomyError = OpLinkEntityTaxonomyErrors[keyof OpLinkEntityTaxonomyErrors];
14807
-
14808
- export type OpLinkEntityTaxonomyResponses = {
14637
+ export type OpCreateTaxonomyBlockResponses = {
14809
14638
  /**
14810
14639
  * Successful Response
14811
14640
  */
14812
14641
  200: OperationEnvelope;
14813
14642
  };
14814
14643
 
14815
- export type OpLinkEntityTaxonomyResponse = OpLinkEntityTaxonomyResponses[keyof OpLinkEntityTaxonomyResponses];
14644
+ export type OpCreateTaxonomyBlockResponse = OpCreateTaxonomyBlockResponses[keyof OpCreateTaxonomyBlockResponses];
14816
14645
 
14817
- export type OpUpdateStructureData = {
14818
- body: UpdateStructureRequest;
14646
+ export type OpUpdateTaxonomyBlockData = {
14647
+ body: UpdateTaxonomyBlockRequest;
14819
14648
  headers?: {
14820
14649
  /**
14821
14650
  * Idempotency-Key
@@ -14829,10 +14658,10 @@ export type OpUpdateStructureData = {
14829
14658
  graph_id: string;
14830
14659
  };
14831
14660
  query?: never;
14832
- url: '/extensions/roboledger/{graph_id}/operations/update-structure';
14661
+ url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy-block';
14833
14662
  };
14834
14663
 
14835
- export type OpUpdateStructureErrors = {
14664
+ export type OpUpdateTaxonomyBlockErrors = {
14836
14665
  /**
14837
14666
  * Invalid request payload
14838
14667
  */
@@ -14867,19 +14696,19 @@ export type OpUpdateStructureErrors = {
14867
14696
  500: unknown;
14868
14697
  };
14869
14698
 
14870
- export type OpUpdateStructureError = OpUpdateStructureErrors[keyof OpUpdateStructureErrors];
14699
+ export type OpUpdateTaxonomyBlockError = OpUpdateTaxonomyBlockErrors[keyof OpUpdateTaxonomyBlockErrors];
14871
14700
 
14872
- export type OpUpdateStructureResponses = {
14701
+ export type OpUpdateTaxonomyBlockResponses = {
14873
14702
  /**
14874
14703
  * Successful Response
14875
14704
  */
14876
14705
  200: OperationEnvelope;
14877
14706
  };
14878
14707
 
14879
- export type OpUpdateStructureResponse = OpUpdateStructureResponses[keyof OpUpdateStructureResponses];
14708
+ export type OpUpdateTaxonomyBlockResponse = OpUpdateTaxonomyBlockResponses[keyof OpUpdateTaxonomyBlockResponses];
14880
14709
 
14881
- export type OpDeleteStructureData = {
14882
- body: DeleteStructureRequest;
14710
+ export type OpDeleteTaxonomyBlockData = {
14711
+ body: DeleteTaxonomyBlockRequest;
14883
14712
  headers?: {
14884
14713
  /**
14885
14714
  * Idempotency-Key
@@ -14893,10 +14722,10 @@ export type OpDeleteStructureData = {
14893
14722
  graph_id: string;
14894
14723
  };
14895
14724
  query?: never;
14896
- url: '/extensions/roboledger/{graph_id}/operations/delete-structure';
14725
+ url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy-block';
14897
14726
  };
14898
14727
 
14899
- export type OpDeleteStructureErrors = {
14728
+ export type OpDeleteTaxonomyBlockErrors = {
14900
14729
  /**
14901
14730
  * Invalid request payload
14902
14731
  */
@@ -14931,19 +14760,19 @@ export type OpDeleteStructureErrors = {
14931
14760
  500: unknown;
14932
14761
  };
14933
14762
 
14934
- export type OpDeleteStructureError = OpDeleteStructureErrors[keyof OpDeleteStructureErrors];
14763
+ export type OpDeleteTaxonomyBlockError = OpDeleteTaxonomyBlockErrors[keyof OpDeleteTaxonomyBlockErrors];
14935
14764
 
14936
- export type OpDeleteStructureResponses = {
14765
+ export type OpDeleteTaxonomyBlockResponses = {
14937
14766
  /**
14938
14767
  * Successful Response
14939
14768
  */
14940
14769
  200: OperationEnvelope;
14941
14770
  };
14942
14771
 
14943
- export type OpDeleteStructureResponse = OpDeleteStructureResponses[keyof OpDeleteStructureResponses];
14772
+ export type OpDeleteTaxonomyBlockResponse = OpDeleteTaxonomyBlockResponses[keyof OpDeleteTaxonomyBlockResponses];
14944
14773
 
14945
- export type OpCreateElementData = {
14946
- body: CreateElementRequest;
14774
+ export type OpLinkEntityTaxonomyData = {
14775
+ body: LinkEntityTaxonomyRequest;
14947
14776
  headers?: {
14948
14777
  /**
14949
14778
  * Idempotency-Key
@@ -14957,10 +14786,10 @@ export type OpCreateElementData = {
14957
14786
  graph_id: string;
14958
14787
  };
14959
14788
  query?: never;
14960
- url: '/extensions/roboledger/{graph_id}/operations/create-element';
14789
+ url: '/extensions/roboledger/{graph_id}/operations/link-entity-taxonomy';
14961
14790
  };
14962
14791
 
14963
- export type OpCreateElementErrors = {
14792
+ export type OpLinkEntityTaxonomyErrors = {
14964
14793
  /**
14965
14794
  * Invalid request payload
14966
14795
  */
@@ -14995,19 +14824,19 @@ export type OpCreateElementErrors = {
14995
14824
  500: unknown;
14996
14825
  };
14997
14826
 
14998
- export type OpCreateElementError = OpCreateElementErrors[keyof OpCreateElementErrors];
14827
+ export type OpLinkEntityTaxonomyError = OpLinkEntityTaxonomyErrors[keyof OpLinkEntityTaxonomyErrors];
14999
14828
 
15000
- export type OpCreateElementResponses = {
14829
+ export type OpLinkEntityTaxonomyResponses = {
15001
14830
  /**
15002
14831
  * Successful Response
15003
14832
  */
15004
14833
  200: OperationEnvelope;
15005
14834
  };
15006
14835
 
15007
- export type OpCreateElementResponse = OpCreateElementResponses[keyof OpCreateElementResponses];
14836
+ export type OpLinkEntityTaxonomyResponse = OpLinkEntityTaxonomyResponses[keyof OpLinkEntityTaxonomyResponses];
15008
14837
 
15009
- export type OpUpdateElementData = {
15010
- body: UpdateElementRequest;
14838
+ export type OpCreateMappingAssociationData = {
14839
+ body: CreateMappingAssociationOperation;
15011
14840
  headers?: {
15012
14841
  /**
15013
14842
  * Idempotency-Key
@@ -15021,10 +14850,10 @@ export type OpUpdateElementData = {
15021
14850
  graph_id: string;
15022
14851
  };
15023
14852
  query?: never;
15024
- url: '/extensions/roboledger/{graph_id}/operations/update-element';
14853
+ url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association';
15025
14854
  };
15026
14855
 
15027
- export type OpUpdateElementErrors = {
14856
+ export type OpCreateMappingAssociationErrors = {
15028
14857
  /**
15029
14858
  * Invalid request payload
15030
14859
  */
@@ -15059,19 +14888,19 @@ export type OpUpdateElementErrors = {
15059
14888
  500: unknown;
15060
14889
  };
15061
14890
 
15062
- export type OpUpdateElementError = OpUpdateElementErrors[keyof OpUpdateElementErrors];
14891
+ export type OpCreateMappingAssociationError = OpCreateMappingAssociationErrors[keyof OpCreateMappingAssociationErrors];
15063
14892
 
15064
- export type OpUpdateElementResponses = {
14893
+ export type OpCreateMappingAssociationResponses = {
15065
14894
  /**
15066
14895
  * Successful Response
15067
14896
  */
15068
14897
  200: OperationEnvelope;
15069
14898
  };
15070
14899
 
15071
- export type OpUpdateElementResponse = OpUpdateElementResponses[keyof OpUpdateElementResponses];
14900
+ export type OpCreateMappingAssociationResponse = OpCreateMappingAssociationResponses[keyof OpCreateMappingAssociationResponses];
15072
14901
 
15073
- export type OpDeleteElementData = {
15074
- body: DeleteElementRequest;
14902
+ export type OpDeleteMappingAssociationData = {
14903
+ body: DeleteMappingAssociationOperation;
15075
14904
  headers?: {
15076
14905
  /**
15077
14906
  * Idempotency-Key
@@ -15085,30 +14914,30 @@ export type OpDeleteElementData = {
15085
14914
  graph_id: string;
15086
14915
  };
15087
14916
  query?: never;
15088
- url: '/extensions/roboledger/{graph_id}/operations/delete-element';
14917
+ url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association';
15089
14918
  };
15090
14919
 
15091
- export type OpDeleteElementErrors = {
14920
+ export type OpDeleteMappingAssociationErrors = {
15092
14921
  /**
15093
- * Invalid request payload
14922
+ * Invalid request
15094
14923
  */
15095
- 400: OperationError;
14924
+ 400: ErrorResponse;
15096
14925
  /**
15097
- * Unauthorized — missing or invalid credentials
14926
+ * Authentication required
15098
14927
  */
15099
- 401: unknown;
14928
+ 401: ErrorResponse;
15100
14929
  /**
15101
- * Forbidden — caller cannot access this graph
14930
+ * Access denied
15102
14931
  */
15103
- 403: unknown;
14932
+ 403: ErrorResponse;
15104
14933
  /**
15105
- * Resource not found (graph, ledger, report, etc.)
14934
+ * Resource not found
15106
14935
  */
15107
- 404: OperationError;
14936
+ 404: ErrorResponse;
15108
14937
  /**
15109
- * Idempotency-Key reused with a different request body, or other operation-level conflict
14938
+ * Idempotency-Key conflict — key reused with different body
15110
14939
  */
15111
- 409: OperationError;
14940
+ 409: ErrorResponse;
15112
14941
  /**
15113
14942
  * Validation Error
15114
14943
  */
@@ -15116,26 +14945,26 @@ export type OpDeleteElementErrors = {
15116
14945
  /**
15117
14946
  * Rate limit exceeded
15118
14947
  */
15119
- 429: unknown;
14948
+ 429: ErrorResponse;
15120
14949
  /**
15121
- * Internal error
14950
+ * Internal server error
15122
14951
  */
15123
- 500: unknown;
14952
+ 500: ErrorResponse;
15124
14953
  };
15125
14954
 
15126
- export type OpDeleteElementError = OpDeleteElementErrors[keyof OpDeleteElementErrors];
14955
+ export type OpDeleteMappingAssociationError = OpDeleteMappingAssociationErrors[keyof OpDeleteMappingAssociationErrors];
15127
14956
 
15128
- export type OpDeleteElementResponses = {
14957
+ export type OpDeleteMappingAssociationResponses = {
15129
14958
  /**
15130
14959
  * Successful Response
15131
14960
  */
15132
14961
  200: OperationEnvelope;
15133
14962
  };
15134
14963
 
15135
- export type OpDeleteElementResponse = OpDeleteElementResponses[keyof OpDeleteElementResponses];
14964
+ export type OpDeleteMappingAssociationResponse = OpDeleteMappingAssociationResponses[keyof OpDeleteMappingAssociationResponses];
15136
14965
 
15137
- export type OpCreateAssociationsData = {
15138
- body: BulkCreateAssociationsRequest;
14966
+ export type OpAutoMapElementsData = {
14967
+ body: AutoMapElementsOperation;
15139
14968
  headers?: {
15140
14969
  /**
15141
14970
  * Idempotency-Key
@@ -15149,30 +14978,30 @@ export type OpCreateAssociationsData = {
15149
14978
  graph_id: string;
15150
14979
  };
15151
14980
  query?: never;
15152
- url: '/extensions/roboledger/{graph_id}/operations/create-associations';
14981
+ url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements';
15153
14982
  };
15154
14983
 
15155
- export type OpCreateAssociationsErrors = {
14984
+ export type OpAutoMapElementsErrors = {
15156
14985
  /**
15157
- * Invalid request payload
14986
+ * Invalid request
15158
14987
  */
15159
- 400: OperationError;
14988
+ 400: ErrorResponse;
15160
14989
  /**
15161
- * Unauthorized — missing or invalid credentials
14990
+ * Authentication required
15162
14991
  */
15163
- 401: unknown;
14992
+ 401: ErrorResponse;
15164
14993
  /**
15165
- * Forbidden — caller cannot access this graph
14994
+ * Access denied
15166
14995
  */
15167
- 403: unknown;
14996
+ 403: ErrorResponse;
15168
14997
  /**
15169
- * Resource not found (graph, ledger, report, etc.)
14998
+ * Resource not found
15170
14999
  */
15171
- 404: OperationError;
15000
+ 404: ErrorResponse;
15172
15001
  /**
15173
- * Idempotency-Key reused with a different request body, or other operation-level conflict
15002
+ * Idempotency-Key conflict — key reused with different body
15174
15003
  */
15175
- 409: OperationError;
15004
+ 409: ErrorResponse;
15176
15005
  /**
15177
15006
  * Validation Error
15178
15007
  */
@@ -15180,26 +15009,26 @@ export type OpCreateAssociationsErrors = {
15180
15009
  /**
15181
15010
  * Rate limit exceeded
15182
15011
  */
15183
- 429: unknown;
15012
+ 429: ErrorResponse;
15184
15013
  /**
15185
- * Internal error
15014
+ * Internal server error
15186
15015
  */
15187
- 500: unknown;
15016
+ 500: ErrorResponse;
15188
15017
  };
15189
15018
 
15190
- export type OpCreateAssociationsError = OpCreateAssociationsErrors[keyof OpCreateAssociationsErrors];
15019
+ export type OpAutoMapElementsError = OpAutoMapElementsErrors[keyof OpAutoMapElementsErrors];
15191
15020
 
15192
- export type OpCreateAssociationsResponses = {
15021
+ export type OpAutoMapElementsResponses = {
15193
15022
  /**
15194
15023
  * Successful Response
15195
15024
  */
15196
- 200: OperationEnvelope;
15025
+ 202: OperationEnvelope;
15197
15026
  };
15198
15027
 
15199
- export type OpCreateAssociationsResponse = OpCreateAssociationsResponses[keyof OpCreateAssociationsResponses];
15028
+ export type OpAutoMapElementsResponse = OpAutoMapElementsResponses[keyof OpAutoMapElementsResponses];
15200
15029
 
15201
- export type OpUpdateAssociationData = {
15202
- body: UpdateAssociationRequest;
15030
+ export type OpCreateInformationBlockData = {
15031
+ body: CreateInformationBlockRequest;
15203
15032
  headers?: {
15204
15033
  /**
15205
15034
  * Idempotency-Key
@@ -15213,10 +15042,10 @@ export type OpUpdateAssociationData = {
15213
15042
  graph_id: string;
15214
15043
  };
15215
15044
  query?: never;
15216
- url: '/extensions/roboledger/{graph_id}/operations/update-association';
15045
+ url: '/extensions/roboledger/{graph_id}/operations/create-information-block';
15217
15046
  };
15218
15047
 
15219
- export type OpUpdateAssociationErrors = {
15048
+ export type OpCreateInformationBlockErrors = {
15220
15049
  /**
15221
15050
  * Invalid request payload
15222
15051
  */
@@ -15251,19 +15080,19 @@ export type OpUpdateAssociationErrors = {
15251
15080
  500: unknown;
15252
15081
  };
15253
15082
 
15254
- export type OpUpdateAssociationError = OpUpdateAssociationErrors[keyof OpUpdateAssociationErrors];
15083
+ export type OpCreateInformationBlockError = OpCreateInformationBlockErrors[keyof OpCreateInformationBlockErrors];
15255
15084
 
15256
- export type OpUpdateAssociationResponses = {
15085
+ export type OpCreateInformationBlockResponses = {
15257
15086
  /**
15258
15087
  * Successful Response
15259
15088
  */
15260
15089
  200: OperationEnvelope;
15261
15090
  };
15262
15091
 
15263
- export type OpUpdateAssociationResponse = OpUpdateAssociationResponses[keyof OpUpdateAssociationResponses];
15092
+ export type OpCreateInformationBlockResponse = OpCreateInformationBlockResponses[keyof OpCreateInformationBlockResponses];
15264
15093
 
15265
- export type OpDeleteAssociationData = {
15266
- body: DeleteAssociationRequest;
15094
+ export type OpUpdateInformationBlockData = {
15095
+ body: UpdateInformationBlockRequest;
15267
15096
  headers?: {
15268
15097
  /**
15269
15098
  * Idempotency-Key
@@ -15277,10 +15106,10 @@ export type OpDeleteAssociationData = {
15277
15106
  graph_id: string;
15278
15107
  };
15279
15108
  query?: never;
15280
- url: '/extensions/roboledger/{graph_id}/operations/delete-association';
15109
+ url: '/extensions/roboledger/{graph_id}/operations/update-information-block';
15281
15110
  };
15282
15111
 
15283
- export type OpDeleteAssociationErrors = {
15112
+ export type OpUpdateInformationBlockErrors = {
15284
15113
  /**
15285
15114
  * Invalid request payload
15286
15115
  */
@@ -15315,19 +15144,19 @@ export type OpDeleteAssociationErrors = {
15315
15144
  500: unknown;
15316
15145
  };
15317
15146
 
15318
- export type OpDeleteAssociationError = OpDeleteAssociationErrors[keyof OpDeleteAssociationErrors];
15147
+ export type OpUpdateInformationBlockError = OpUpdateInformationBlockErrors[keyof OpUpdateInformationBlockErrors];
15319
15148
 
15320
- export type OpDeleteAssociationResponses = {
15149
+ export type OpUpdateInformationBlockResponses = {
15321
15150
  /**
15322
15151
  * Successful Response
15323
15152
  */
15324
15153
  200: OperationEnvelope;
15325
15154
  };
15326
15155
 
15327
- export type OpDeleteAssociationResponse = OpDeleteAssociationResponses[keyof OpDeleteAssociationResponses];
15156
+ export type OpUpdateInformationBlockResponse = OpUpdateInformationBlockResponses[keyof OpUpdateInformationBlockResponses];
15328
15157
 
15329
- export type OpCreateTransactionData = {
15330
- body: CreateTransactionRequest;
15158
+ export type OpDeleteInformationBlockData = {
15159
+ body: DeleteInformationBlockRequest;
15331
15160
  headers?: {
15332
15161
  /**
15333
15162
  * Idempotency-Key
@@ -15341,10 +15170,10 @@ export type OpCreateTransactionData = {
15341
15170
  graph_id: string;
15342
15171
  };
15343
15172
  query?: never;
15344
- url: '/extensions/roboledger/{graph_id}/operations/create-transaction';
15173
+ url: '/extensions/roboledger/{graph_id}/operations/delete-information-block';
15345
15174
  };
15346
15175
 
15347
- export type OpCreateTransactionErrors = {
15176
+ export type OpDeleteInformationBlockErrors = {
15348
15177
  /**
15349
15178
  * Invalid request payload
15350
15179
  */
@@ -15379,19 +15208,19 @@ export type OpCreateTransactionErrors = {
15379
15208
  500: unknown;
15380
15209
  };
15381
15210
 
15382
- export type OpCreateTransactionError = OpCreateTransactionErrors[keyof OpCreateTransactionErrors];
15211
+ export type OpDeleteInformationBlockError = OpDeleteInformationBlockErrors[keyof OpDeleteInformationBlockErrors];
15383
15212
 
15384
- export type OpCreateTransactionResponses = {
15213
+ export type OpDeleteInformationBlockResponses = {
15385
15214
  /**
15386
15215
  * Successful Response
15387
15216
  */
15388
15217
  200: OperationEnvelope;
15389
15218
  };
15390
15219
 
15391
- export type OpCreateTransactionResponse = OpCreateTransactionResponses[keyof OpCreateTransactionResponses];
15220
+ export type OpDeleteInformationBlockResponse = OpDeleteInformationBlockResponses[keyof OpDeleteInformationBlockResponses];
15392
15221
 
15393
- export type OpCreateJournalEntryData = {
15394
- body: CreateJournalEntryRequest;
15222
+ export type OpEvaluateRulesData = {
15223
+ body: EvaluateRulesRequest;
15395
15224
  headers?: {
15396
15225
  /**
15397
15226
  * Idempotency-Key
@@ -15405,10 +15234,10 @@ export type OpCreateJournalEntryData = {
15405
15234
  graph_id: string;
15406
15235
  };
15407
15236
  query?: never;
15408
- url: '/extensions/roboledger/{graph_id}/operations/create-journal-entry';
15237
+ url: '/extensions/roboledger/{graph_id}/operations/evaluate-rules';
15409
15238
  };
15410
15239
 
15411
- export type OpCreateJournalEntryErrors = {
15240
+ export type OpEvaluateRulesErrors = {
15412
15241
  /**
15413
15242
  * Invalid request payload
15414
15243
  */
@@ -15443,19 +15272,19 @@ export type OpCreateJournalEntryErrors = {
15443
15272
  500: unknown;
15444
15273
  };
15445
15274
 
15446
- export type OpCreateJournalEntryError = OpCreateJournalEntryErrors[keyof OpCreateJournalEntryErrors];
15275
+ export type OpEvaluateRulesError = OpEvaluateRulesErrors[keyof OpEvaluateRulesErrors];
15447
15276
 
15448
- export type OpCreateJournalEntryResponses = {
15277
+ export type OpEvaluateRulesResponses = {
15449
15278
  /**
15450
15279
  * Successful Response
15451
15280
  */
15452
15281
  200: OperationEnvelope;
15453
15282
  };
15454
15283
 
15455
- export type OpCreateJournalEntryResponse = OpCreateJournalEntryResponses[keyof OpCreateJournalEntryResponses];
15284
+ export type OpEvaluateRulesResponse = OpEvaluateRulesResponses[keyof OpEvaluateRulesResponses];
15456
15285
 
15457
- export type OpUpdateJournalEntryData = {
15458
- body: UpdateJournalEntryRequest;
15286
+ export type OpCreateAgentData = {
15287
+ body: CreateAgentRequest;
15459
15288
  headers?: {
15460
15289
  /**
15461
15290
  * Idempotency-Key
@@ -15469,10 +15298,10 @@ export type OpUpdateJournalEntryData = {
15469
15298
  graph_id: string;
15470
15299
  };
15471
15300
  query?: never;
15472
- url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry';
15301
+ url: '/extensions/roboledger/{graph_id}/operations/create-agent';
15473
15302
  };
15474
15303
 
15475
- export type OpUpdateJournalEntryErrors = {
15304
+ export type OpCreateAgentErrors = {
15476
15305
  /**
15477
15306
  * Invalid request payload
15478
15307
  */
@@ -15507,19 +15336,19 @@ export type OpUpdateJournalEntryErrors = {
15507
15336
  500: unknown;
15508
15337
  };
15509
15338
 
15510
- export type OpUpdateJournalEntryError = OpUpdateJournalEntryErrors[keyof OpUpdateJournalEntryErrors];
15339
+ export type OpCreateAgentError = OpCreateAgentErrors[keyof OpCreateAgentErrors];
15511
15340
 
15512
- export type OpUpdateJournalEntryResponses = {
15341
+ export type OpCreateAgentResponses = {
15513
15342
  /**
15514
15343
  * Successful Response
15515
15344
  */
15516
15345
  200: OperationEnvelope;
15517
15346
  };
15518
15347
 
15519
- export type OpUpdateJournalEntryResponse = OpUpdateJournalEntryResponses[keyof OpUpdateJournalEntryResponses];
15348
+ export type OpCreateAgentResponse = OpCreateAgentResponses[keyof OpCreateAgentResponses];
15520
15349
 
15521
- export type OpDeleteJournalEntryData = {
15522
- body: DeleteJournalEntryRequest;
15350
+ export type OpUpdateAgentData = {
15351
+ body: UpdateAgentRequest;
15523
15352
  headers?: {
15524
15353
  /**
15525
15354
  * Idempotency-Key
@@ -15533,10 +15362,10 @@ export type OpDeleteJournalEntryData = {
15533
15362
  graph_id: string;
15534
15363
  };
15535
15364
  query?: never;
15536
- url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry';
15365
+ url: '/extensions/roboledger/{graph_id}/operations/update-agent';
15537
15366
  };
15538
15367
 
15539
- export type OpDeleteJournalEntryErrors = {
15368
+ export type OpUpdateAgentErrors = {
15540
15369
  /**
15541
15370
  * Invalid request payload
15542
15371
  */
@@ -15571,19 +15400,19 @@ export type OpDeleteJournalEntryErrors = {
15571
15400
  500: unknown;
15572
15401
  };
15573
15402
 
15574
- export type OpDeleteJournalEntryError = OpDeleteJournalEntryErrors[keyof OpDeleteJournalEntryErrors];
15403
+ export type OpUpdateAgentError = OpUpdateAgentErrors[keyof OpUpdateAgentErrors];
15575
15404
 
15576
- export type OpDeleteJournalEntryResponses = {
15405
+ export type OpUpdateAgentResponses = {
15577
15406
  /**
15578
15407
  * Successful Response
15579
15408
  */
15580
15409
  200: OperationEnvelope;
15581
15410
  };
15582
15411
 
15583
- export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
15412
+ export type OpUpdateAgentResponse = OpUpdateAgentResponses[keyof OpUpdateAgentResponses];
15584
15413
 
15585
- export type OpReverseJournalEntryData = {
15586
- body: ReverseJournalEntryRequest;
15414
+ export type OpCreateEventBlockData = {
15415
+ body: CreateEventBlockRequest;
15587
15416
  headers?: {
15588
15417
  /**
15589
15418
  * Idempotency-Key
@@ -15597,10 +15426,10 @@ export type OpReverseJournalEntryData = {
15597
15426
  graph_id: string;
15598
15427
  };
15599
15428
  query?: never;
15600
- url: '/extensions/roboledger/{graph_id}/operations/reverse-journal-entry';
15429
+ url: '/extensions/roboledger/{graph_id}/operations/create-event-block';
15601
15430
  };
15602
15431
 
15603
- export type OpReverseJournalEntryErrors = {
15432
+ export type OpCreateEventBlockErrors = {
15604
15433
  /**
15605
15434
  * Invalid request payload
15606
15435
  */
@@ -15635,19 +15464,19 @@ export type OpReverseJournalEntryErrors = {
15635
15464
  500: unknown;
15636
15465
  };
15637
15466
 
15638
- export type OpReverseJournalEntryError = OpReverseJournalEntryErrors[keyof OpReverseJournalEntryErrors];
15467
+ export type OpCreateEventBlockError = OpCreateEventBlockErrors[keyof OpCreateEventBlockErrors];
15639
15468
 
15640
- export type OpReverseJournalEntryResponses = {
15469
+ export type OpCreateEventBlockResponses = {
15641
15470
  /**
15642
15471
  * Successful Response
15643
15472
  */
15644
15473
  200: OperationEnvelope;
15645
15474
  };
15646
15475
 
15647
- export type OpReverseJournalEntryResponse = OpReverseJournalEntryResponses[keyof OpReverseJournalEntryResponses];
15476
+ export type OpCreateEventBlockResponse = OpCreateEventBlockResponses[keyof OpCreateEventBlockResponses];
15648
15477
 
15649
- export type OpTruncateScheduleData = {
15650
- body: TruncateScheduleOperation;
15478
+ export type OpUpdateEventBlockData = {
15479
+ body: UpdateEventBlockRequest;
15651
15480
  headers?: {
15652
15481
  /**
15653
15482
  * Idempotency-Key
@@ -15661,10 +15490,10 @@ export type OpTruncateScheduleData = {
15661
15490
  graph_id: string;
15662
15491
  };
15663
15492
  query?: never;
15664
- url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule';
15493
+ url: '/extensions/roboledger/{graph_id}/operations/update-event-block';
15665
15494
  };
15666
15495
 
15667
- export type OpTruncateScheduleErrors = {
15496
+ export type OpUpdateEventBlockErrors = {
15668
15497
  /**
15669
15498
  * Invalid request payload
15670
15499
  */
@@ -15699,19 +15528,19 @@ export type OpTruncateScheduleErrors = {
15699
15528
  500: unknown;
15700
15529
  };
15701
15530
 
15702
- export type OpTruncateScheduleError = OpTruncateScheduleErrors[keyof OpTruncateScheduleErrors];
15531
+ export type OpUpdateEventBlockError = OpUpdateEventBlockErrors[keyof OpUpdateEventBlockErrors];
15703
15532
 
15704
- export type OpTruncateScheduleResponses = {
15533
+ export type OpUpdateEventBlockResponses = {
15705
15534
  /**
15706
15535
  * Successful Response
15707
15536
  */
15708
15537
  200: OperationEnvelope;
15709
15538
  };
15710
15539
 
15711
- export type OpTruncateScheduleResponse = OpTruncateScheduleResponses[keyof OpTruncateScheduleResponses];
15540
+ export type OpUpdateEventBlockResponse = OpUpdateEventBlockResponses[keyof OpUpdateEventBlockResponses];
15712
15541
 
15713
- export type OpCreateClosingEntryData = {
15714
- body: CreateClosingEntryOperation;
15542
+ export type OpCreateEventHandlerData = {
15543
+ body: CreateEventHandlerRequest;
15715
15544
  headers?: {
15716
15545
  /**
15717
15546
  * Idempotency-Key
@@ -15725,10 +15554,10 @@ export type OpCreateClosingEntryData = {
15725
15554
  graph_id: string;
15726
15555
  };
15727
15556
  query?: never;
15728
- url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry';
15557
+ url: '/extensions/roboledger/{graph_id}/operations/create-event-handler';
15729
15558
  };
15730
15559
 
15731
- export type OpCreateClosingEntryErrors = {
15560
+ export type OpCreateEventHandlerErrors = {
15732
15561
  /**
15733
15562
  * Invalid request payload
15734
15563
  */
@@ -15763,19 +15592,19 @@ export type OpCreateClosingEntryErrors = {
15763
15592
  500: unknown;
15764
15593
  };
15765
15594
 
15766
- export type OpCreateClosingEntryError = OpCreateClosingEntryErrors[keyof OpCreateClosingEntryErrors];
15595
+ export type OpCreateEventHandlerError = OpCreateEventHandlerErrors[keyof OpCreateEventHandlerErrors];
15767
15596
 
15768
- export type OpCreateClosingEntryResponses = {
15597
+ export type OpCreateEventHandlerResponses = {
15769
15598
  /**
15770
15599
  * Successful Response
15771
15600
  */
15772
15601
  200: OperationEnvelope;
15773
15602
  };
15774
15603
 
15775
- export type OpCreateClosingEntryResponse = OpCreateClosingEntryResponses[keyof OpCreateClosingEntryResponses];
15604
+ export type OpCreateEventHandlerResponse = OpCreateEventHandlerResponses[keyof OpCreateEventHandlerResponses];
15776
15605
 
15777
- export type OpCreateManualClosingEntryData = {
15778
- body: CreateManualClosingEntryRequest;
15606
+ export type OpUpdateEventHandlerData = {
15607
+ body: UpdateEventHandlerRequest;
15779
15608
  headers?: {
15780
15609
  /**
15781
15610
  * Idempotency-Key
@@ -15789,10 +15618,10 @@ export type OpCreateManualClosingEntryData = {
15789
15618
  graph_id: string;
15790
15619
  };
15791
15620
  query?: never;
15792
- url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry';
15621
+ url: '/extensions/roboledger/{graph_id}/operations/update-event-handler';
15793
15622
  };
15794
15623
 
15795
- export type OpCreateManualClosingEntryErrors = {
15624
+ export type OpUpdateEventHandlerErrors = {
15796
15625
  /**
15797
15626
  * Invalid request payload
15798
15627
  */
@@ -15827,19 +15656,19 @@ export type OpCreateManualClosingEntryErrors = {
15827
15656
  500: unknown;
15828
15657
  };
15829
15658
 
15830
- export type OpCreateManualClosingEntryError = OpCreateManualClosingEntryErrors[keyof OpCreateManualClosingEntryErrors];
15659
+ export type OpUpdateEventHandlerError = OpUpdateEventHandlerErrors[keyof OpUpdateEventHandlerErrors];
15831
15660
 
15832
- export type OpCreateManualClosingEntryResponses = {
15661
+ export type OpUpdateEventHandlerResponses = {
15833
15662
  /**
15834
15663
  * Successful Response
15835
15664
  */
15836
15665
  200: OperationEnvelope;
15837
15666
  };
15838
15667
 
15839
- export type OpCreateManualClosingEntryResponse = OpCreateManualClosingEntryResponses[keyof OpCreateManualClosingEntryResponses];
15668
+ export type OpUpdateEventHandlerResponse = OpUpdateEventHandlerResponses[keyof OpUpdateEventHandlerResponses];
15840
15669
 
15841
- export type OpCreateInformationBlockData = {
15842
- body: CreateInformationBlockRequest;
15670
+ export type OpPreviewEventBlockData = {
15671
+ body: CreateEventBlockRequest;
15843
15672
  headers?: {
15844
15673
  /**
15845
15674
  * Idempotency-Key
@@ -15853,10 +15682,10 @@ export type OpCreateInformationBlockData = {
15853
15682
  graph_id: string;
15854
15683
  };
15855
15684
  query?: never;
15856
- url: '/extensions/roboledger/{graph_id}/operations/create-information-block';
15685
+ url: '/extensions/roboledger/{graph_id}/operations/preview-event-block';
15857
15686
  };
15858
15687
 
15859
- export type OpCreateInformationBlockErrors = {
15688
+ export type OpPreviewEventBlockErrors = {
15860
15689
  /**
15861
15690
  * Invalid request payload
15862
15691
  */
@@ -15891,19 +15720,19 @@ export type OpCreateInformationBlockErrors = {
15891
15720
  500: unknown;
15892
15721
  };
15893
15722
 
15894
- export type OpCreateInformationBlockError = OpCreateInformationBlockErrors[keyof OpCreateInformationBlockErrors];
15723
+ export type OpPreviewEventBlockError = OpPreviewEventBlockErrors[keyof OpPreviewEventBlockErrors];
15895
15724
 
15896
- export type OpCreateInformationBlockResponses = {
15725
+ export type OpPreviewEventBlockResponses = {
15897
15726
  /**
15898
15727
  * Successful Response
15899
15728
  */
15900
15729
  200: OperationEnvelope;
15901
15730
  };
15902
15731
 
15903
- export type OpCreateInformationBlockResponse = OpCreateInformationBlockResponses[keyof OpCreateInformationBlockResponses];
15732
+ export type OpPreviewEventBlockResponse = OpPreviewEventBlockResponses[keyof OpPreviewEventBlockResponses];
15904
15733
 
15905
- export type OpUpdateInformationBlockData = {
15906
- body: UpdateInformationBlockRequest;
15734
+ export type OpUpdateJournalEntryData = {
15735
+ body: UpdateJournalEntryRequest;
15907
15736
  headers?: {
15908
15737
  /**
15909
15738
  * Idempotency-Key
@@ -15917,10 +15746,10 @@ export type OpUpdateInformationBlockData = {
15917
15746
  graph_id: string;
15918
15747
  };
15919
15748
  query?: never;
15920
- url: '/extensions/roboledger/{graph_id}/operations/update-information-block';
15749
+ url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry';
15921
15750
  };
15922
15751
 
15923
- export type OpUpdateInformationBlockErrors = {
15752
+ export type OpUpdateJournalEntryErrors = {
15924
15753
  /**
15925
15754
  * Invalid request payload
15926
15755
  */
@@ -15955,19 +15784,19 @@ export type OpUpdateInformationBlockErrors = {
15955
15784
  500: unknown;
15956
15785
  };
15957
15786
 
15958
- export type OpUpdateInformationBlockError = OpUpdateInformationBlockErrors[keyof OpUpdateInformationBlockErrors];
15787
+ export type OpUpdateJournalEntryError = OpUpdateJournalEntryErrors[keyof OpUpdateJournalEntryErrors];
15959
15788
 
15960
- export type OpUpdateInformationBlockResponses = {
15789
+ export type OpUpdateJournalEntryResponses = {
15961
15790
  /**
15962
15791
  * Successful Response
15963
15792
  */
15964
15793
  200: OperationEnvelope;
15965
15794
  };
15966
15795
 
15967
- export type OpUpdateInformationBlockResponse = OpUpdateInformationBlockResponses[keyof OpUpdateInformationBlockResponses];
15796
+ export type OpUpdateJournalEntryResponse = OpUpdateJournalEntryResponses[keyof OpUpdateJournalEntryResponses];
15968
15797
 
15969
- export type OpDeleteInformationBlockData = {
15970
- body: DeleteInformationBlockRequest;
15798
+ export type OpDeleteJournalEntryData = {
15799
+ body: DeleteJournalEntryRequest;
15971
15800
  headers?: {
15972
15801
  /**
15973
15802
  * Idempotency-Key
@@ -15981,10 +15810,10 @@ export type OpDeleteInformationBlockData = {
15981
15810
  graph_id: string;
15982
15811
  };
15983
15812
  query?: never;
15984
- url: '/extensions/roboledger/{graph_id}/operations/delete-information-block';
15813
+ url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry';
15985
15814
  };
15986
15815
 
15987
- export type OpDeleteInformationBlockErrors = {
15816
+ export type OpDeleteJournalEntryErrors = {
15988
15817
  /**
15989
15818
  * Invalid request payload
15990
15819
  */
@@ -16019,19 +15848,19 @@ export type OpDeleteInformationBlockErrors = {
16019
15848
  500: unknown;
16020
15849
  };
16021
15850
 
16022
- export type OpDeleteInformationBlockError = OpDeleteInformationBlockErrors[keyof OpDeleteInformationBlockErrors];
15851
+ export type OpDeleteJournalEntryError = OpDeleteJournalEntryErrors[keyof OpDeleteJournalEntryErrors];
16023
15852
 
16024
- export type OpDeleteInformationBlockResponses = {
15853
+ export type OpDeleteJournalEntryResponses = {
16025
15854
  /**
16026
15855
  * Successful Response
16027
15856
  */
16028
15857
  200: OperationEnvelope;
16029
15858
  };
16030
15859
 
16031
- export type OpDeleteInformationBlockResponse = OpDeleteInformationBlockResponses[keyof OpDeleteInformationBlockResponses];
15860
+ export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
16032
15861
 
16033
- export type OpEvaluateRulesData = {
16034
- body: EvaluateRulesRequest;
15862
+ export type OpSetCloseTargetData = {
15863
+ body: SetCloseTargetOperation;
16035
15864
  headers?: {
16036
15865
  /**
16037
15866
  * Idempotency-Key
@@ -16045,30 +15874,30 @@ export type OpEvaluateRulesData = {
16045
15874
  graph_id: string;
16046
15875
  };
16047
15876
  query?: never;
16048
- url: '/extensions/roboledger/{graph_id}/operations/evaluate-rules';
15877
+ url: '/extensions/roboledger/{graph_id}/operations/set-close-target';
16049
15878
  };
16050
15879
 
16051
- export type OpEvaluateRulesErrors = {
15880
+ export type OpSetCloseTargetErrors = {
16052
15881
  /**
16053
- * Invalid request payload
15882
+ * Invalid request
16054
15883
  */
16055
- 400: OperationError;
15884
+ 400: ErrorResponse;
16056
15885
  /**
16057
- * Unauthorized — missing or invalid credentials
15886
+ * Authentication required
16058
15887
  */
16059
- 401: unknown;
15888
+ 401: ErrorResponse;
16060
15889
  /**
16061
- * Forbidden — caller cannot access this graph
15890
+ * Access denied
16062
15891
  */
16063
- 403: unknown;
15892
+ 403: ErrorResponse;
16064
15893
  /**
16065
- * Resource not found (graph, ledger, report, etc.)
15894
+ * Resource not found
16066
15895
  */
16067
- 404: OperationError;
15896
+ 404: ErrorResponse;
16068
15897
  /**
16069
- * Idempotency-Key reused with a different request body, or other operation-level conflict
15898
+ * Idempotency-Key conflict — key reused with different body
16070
15899
  */
16071
- 409: OperationError;
15900
+ 409: ErrorResponse;
16072
15901
  /**
16073
15902
  * Validation Error
16074
15903
  */
@@ -16076,26 +15905,26 @@ export type OpEvaluateRulesErrors = {
16076
15905
  /**
16077
15906
  * Rate limit exceeded
16078
15907
  */
16079
- 429: unknown;
15908
+ 429: ErrorResponse;
16080
15909
  /**
16081
- * Internal error
15910
+ * Internal server error
16082
15911
  */
16083
- 500: unknown;
15912
+ 500: ErrorResponse;
16084
15913
  };
16085
15914
 
16086
- export type OpEvaluateRulesError = OpEvaluateRulesErrors[keyof OpEvaluateRulesErrors];
15915
+ export type OpSetCloseTargetError = OpSetCloseTargetErrors[keyof OpSetCloseTargetErrors];
16087
15916
 
16088
- export type OpEvaluateRulesResponses = {
15917
+ export type OpSetCloseTargetResponses = {
16089
15918
  /**
16090
15919
  * Successful Response
16091
15920
  */
16092
15921
  200: OperationEnvelope;
16093
15922
  };
16094
15923
 
16095
- export type OpEvaluateRulesResponse = OpEvaluateRulesResponses[keyof OpEvaluateRulesResponses];
15924
+ export type OpSetCloseTargetResponse = OpSetCloseTargetResponses[keyof OpSetCloseTargetResponses];
16096
15925
 
16097
- export type OpCreateMappingAssociationData = {
16098
- body: CreateMappingAssociationOperation;
15926
+ export type OpClosePeriodData = {
15927
+ body: ClosePeriodOperation;
16099
15928
  headers?: {
16100
15929
  /**
16101
15930
  * Idempotency-Key
@@ -16109,30 +15938,30 @@ export type OpCreateMappingAssociationData = {
16109
15938
  graph_id: string;
16110
15939
  };
16111
15940
  query?: never;
16112
- url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association';
15941
+ url: '/extensions/roboledger/{graph_id}/operations/close-period';
16113
15942
  };
16114
15943
 
16115
- export type OpCreateMappingAssociationErrors = {
15944
+ export type OpClosePeriodErrors = {
16116
15945
  /**
16117
- * Invalid request payload
15946
+ * Invalid request
16118
15947
  */
16119
- 400: OperationError;
15948
+ 400: ErrorResponse;
16120
15949
  /**
16121
- * Unauthorized — missing or invalid credentials
15950
+ * Authentication required
16122
15951
  */
16123
- 401: unknown;
15952
+ 401: ErrorResponse;
16124
15953
  /**
16125
- * Forbidden — caller cannot access this graph
15954
+ * Access denied
16126
15955
  */
16127
- 403: unknown;
15956
+ 403: ErrorResponse;
16128
15957
  /**
16129
- * Resource not found (graph, ledger, report, etc.)
15958
+ * Resource not found
16130
15959
  */
16131
- 404: OperationError;
15960
+ 404: ErrorResponse;
16132
15961
  /**
16133
- * Idempotency-Key reused with a different request body, or other operation-level conflict
15962
+ * Idempotency-Key conflict — key reused with different body
16134
15963
  */
16135
- 409: OperationError;
15964
+ 409: ErrorResponse;
16136
15965
  /**
16137
15966
  * Validation Error
16138
15967
  */
@@ -16140,26 +15969,26 @@ export type OpCreateMappingAssociationErrors = {
16140
15969
  /**
16141
15970
  * Rate limit exceeded
16142
15971
  */
16143
- 429: unknown;
15972
+ 429: ErrorResponse;
16144
15973
  /**
16145
- * Internal error
15974
+ * Internal server error
16146
15975
  */
16147
- 500: unknown;
15976
+ 500: ErrorResponse;
16148
15977
  };
16149
15978
 
16150
- export type OpCreateMappingAssociationError = OpCreateMappingAssociationErrors[keyof OpCreateMappingAssociationErrors];
15979
+ export type OpClosePeriodError = OpClosePeriodErrors[keyof OpClosePeriodErrors];
16151
15980
 
16152
- export type OpCreateMappingAssociationResponses = {
15981
+ export type OpClosePeriodResponses = {
16153
15982
  /**
16154
15983
  * Successful Response
16155
15984
  */
16156
15985
  200: OperationEnvelope;
16157
15986
  };
16158
15987
 
16159
- export type OpCreateMappingAssociationResponse = OpCreateMappingAssociationResponses[keyof OpCreateMappingAssociationResponses];
15988
+ export type OpClosePeriodResponse = OpClosePeriodResponses[keyof OpClosePeriodResponses];
16160
15989
 
16161
- export type OpAutoMapElementsData = {
16162
- body: AutoMapElementsOperation;
15990
+ export type OpReopenPeriodData = {
15991
+ body: ReopenPeriodOperation;
16163
15992
  headers?: {
16164
15993
  /**
16165
15994
  * Idempotency-Key
@@ -16173,10 +16002,10 @@ export type OpAutoMapElementsData = {
16173
16002
  graph_id: string;
16174
16003
  };
16175
16004
  query?: never;
16176
- url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements';
16005
+ url: '/extensions/roboledger/{graph_id}/operations/reopen-period';
16177
16006
  };
16178
16007
 
16179
- export type OpAutoMapElementsErrors = {
16008
+ export type OpReopenPeriodErrors = {
16180
16009
  /**
16181
16010
  * Invalid request
16182
16011
  */
@@ -16211,16 +16040,16 @@ export type OpAutoMapElementsErrors = {
16211
16040
  500: ErrorResponse;
16212
16041
  };
16213
16042
 
16214
- export type OpAutoMapElementsError = OpAutoMapElementsErrors[keyof OpAutoMapElementsErrors];
16043
+ export type OpReopenPeriodError = OpReopenPeriodErrors[keyof OpReopenPeriodErrors];
16215
16044
 
16216
- export type OpAutoMapElementsResponses = {
16045
+ export type OpReopenPeriodResponses = {
16217
16046
  /**
16218
16047
  * Successful Response
16219
16048
  */
16220
- 202: OperationEnvelope;
16049
+ 200: OperationEnvelope;
16221
16050
  };
16222
16051
 
16223
- export type OpAutoMapElementsResponse = OpAutoMapElementsResponses[keyof OpAutoMapElementsResponses];
16052
+ export type OpReopenPeriodResponse = OpReopenPeriodResponses[keyof OpReopenPeriodResponses];
16224
16053
 
16225
16054
  export type OpCreateReportData = {
16226
16055
  body: CreateReportRequest;