@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.
@@ -877,64 +877,6 @@ export type BillingCustomer = {
877
877
  */
878
878
  created_at: string;
879
879
  };
880
- /**
881
- * BulkAssociationItem
882
- *
883
- * A single association within a bulk-create payload. The parent
884
- * `structure_id` is set once on the request envelope, not repeated
885
- * per item.
886
- */
887
- export type BulkAssociationItem = {
888
- /**
889
- * From Element Id
890
- */
891
- from_element_id: string;
892
- /**
893
- * To Element Id
894
- */
895
- to_element_id: string;
896
- /**
897
- * Association Type
898
- */
899
- association_type?: 'presentation' | 'calculation' | 'mapping';
900
- /**
901
- * Arcrole
902
- */
903
- arcrole?: string | null;
904
- /**
905
- * Order Value
906
- */
907
- order_value?: number | null;
908
- /**
909
- * Weight
910
- */
911
- weight?: number | null;
912
- /**
913
- * Confidence
914
- */
915
- confidence?: number | null;
916
- /**
917
- * Suggested By
918
- */
919
- suggested_by?: string | null;
920
- };
921
- /**
922
- * BulkCreateAssociationsRequest
923
- *
924
- * Bulk create associations within a single structure. Atomic — any
925
- * failed row rolls back the whole batch. Handles 50+ presentation arcs,
926
- * 25+ calculation arcs, or a full table linkbase in one call.
927
- */
928
- export type BulkCreateAssociationsRequest = {
929
- /**
930
- * Structure Id
931
- */
932
- structure_id: string;
933
- /**
934
- * Associations
935
- */
936
- associations: Array<BulkAssociationItem>;
937
- };
938
880
  /**
939
881
  * ChangeTierOp
940
882
  *
@@ -1308,6 +1250,79 @@ export type CreateApiKeyResponse = {
1308
1250
  */
1309
1251
  key: string;
1310
1252
  };
1253
+ /**
1254
+ * CreateAgentRequest
1255
+ */
1256
+ export type CreateAgentRequest = {
1257
+ /**
1258
+ * Agent Type
1259
+ *
1260
+ * 'customer' | 'vendor' | 'employee' | 'owner' | 'supplier' | 'government' | 'lender' | 'self' | 'other'
1261
+ */
1262
+ agent_type: string;
1263
+ /**
1264
+ * Name
1265
+ */
1266
+ name: string;
1267
+ /**
1268
+ * Legal Name
1269
+ */
1270
+ legal_name?: string | null;
1271
+ /**
1272
+ * Tax Id
1273
+ */
1274
+ tax_id?: string | null;
1275
+ /**
1276
+ * Registration Number
1277
+ */
1278
+ registration_number?: string | null;
1279
+ /**
1280
+ * Duns
1281
+ */
1282
+ duns?: string | null;
1283
+ /**
1284
+ * Lei
1285
+ */
1286
+ lei?: string | null;
1287
+ /**
1288
+ * Email
1289
+ */
1290
+ email?: string | null;
1291
+ /**
1292
+ * Phone
1293
+ */
1294
+ phone?: string | null;
1295
+ /**
1296
+ * Address
1297
+ */
1298
+ address?: {
1299
+ [key: string]: unknown;
1300
+ } | null;
1301
+ /**
1302
+ * Source
1303
+ *
1304
+ * 'quickbooks' | 'xero' | 'plaid' | 'native'
1305
+ */
1306
+ source?: string;
1307
+ /**
1308
+ * External Id
1309
+ */
1310
+ external_id?: string | null;
1311
+ /**
1312
+ * Is Active
1313
+ */
1314
+ is_active?: boolean;
1315
+ /**
1316
+ * Is 1099 Recipient
1317
+ */
1318
+ is_1099_recipient?: boolean;
1319
+ /**
1320
+ * Metadata
1321
+ */
1322
+ metadata?: {
1323
+ [key: string]: unknown;
1324
+ };
1325
+ };
1311
1326
  /**
1312
1327
  * CreateCheckoutRequest
1313
1328
  *
@@ -1336,141 +1351,186 @@ export type CreateCheckoutRequest = {
1336
1351
  };
1337
1352
  };
1338
1353
  /**
1339
- * CreateClosingEntryOperation
1354
+ * CreateConnectionRequest
1340
1355
  *
1341
- * CQRS-shaped body for `POST /operations/create-closing-entry`.
1356
+ * Request to create a new connection.
1357
+ */
1358
+ export type CreateConnectionRequest = {
1359
+ /**
1360
+ * Provider
1361
+ *
1362
+ * Connection provider type
1363
+ */
1364
+ provider: 'sec' | 'quickbooks';
1365
+ /**
1366
+ * Entity Id
1367
+ *
1368
+ * Entity identifier. Required for QuickBooks, optional for SEC (SEC creates the entity from filing data).
1369
+ */
1370
+ entity_id?: string | null;
1371
+ sec_config?: SecConnectionConfig | null;
1372
+ quickbooks_config?: QuickBooksConnectionConfig | null;
1373
+ };
1374
+ /**
1375
+ * CreateEventBlockRequest
1342
1376
  *
1343
- * `structure_id` moves into the body so REST + MCP share a single body
1344
- * type via the registrar.
1377
+ * Write surface for a single business event.
1345
1378
  */
1346
- export type CreateClosingEntryOperation = {
1379
+ export type CreateEventBlockRequest = {
1347
1380
  /**
1348
- * Posting Date
1381
+ * Event Type
1349
1382
  *
1350
- * Posting date for the entry
1383
+ * Open vocabulary: 'invoice_issued' | 'contract_signed' | 'bank_transaction' | ...
1351
1384
  */
1352
- posting_date: string;
1385
+ event_type: string;
1353
1386
  /**
1354
- * Period Start
1387
+ * Event Category
1355
1388
  *
1356
- * Period start
1389
+ * REA economic classification. One of: sales, purchase, financing, payroll, treasury, adjustment, recognition, other.
1357
1390
  */
1358
- period_start: string;
1391
+ event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other';
1359
1392
  /**
1360
- * Period End
1393
+ * Agent Id
1361
1394
  *
1362
- * Period end
1395
+ * Counterparty agent id
1363
1396
  */
1364
- period_end: string;
1397
+ agent_id?: string | null;
1365
1398
  /**
1366
- * Memo
1399
+ * Resource Type
1367
1400
  *
1368
- * Override memo
1401
+ * REA resource kind. One of: goods, services, money, right, obligation, information, labor.
1369
1402
  */
1370
- memo?: string | null;
1403
+ resource_type?: 'goods' | 'services' | 'money' | 'right' | 'obligation' | 'information' | 'labor' | null;
1371
1404
  /**
1372
- * Structure Id
1405
+ * Resource Element Id
1373
1406
  *
1374
- * Schedule structure the closing entry is derived from.
1407
+ * Specific element being exchanged, if applicable
1375
1408
  */
1376
- structure_id: string;
1377
- };
1378
- /**
1379
- * CreateConnectionRequest
1380
- *
1381
- * Request to create a new connection.
1382
- */
1383
- export type CreateConnectionRequest = {
1409
+ resource_element_id?: string | null;
1384
1410
  /**
1385
- * Provider
1411
+ * Occurred At
1386
1412
  *
1387
- * Connection provider type
1413
+ * When the event happened in the real world
1388
1414
  */
1389
- provider: 'sec' | 'quickbooks';
1415
+ occurred_at: string;
1390
1416
  /**
1391
- * Entity Id
1417
+ * Effective At
1392
1418
  *
1393
- * Entity identifier. Required for QuickBooks, optional for SEC (SEC creates the entity from filing data).
1419
+ * Accounting recognition date, if different from occurred_at
1394
1420
  */
1395
- entity_id?: string | null;
1396
- sec_config?: SecConnectionConfig | null;
1397
- quickbooks_config?: QuickBooksConnectionConfig | null;
1398
- };
1399
- /**
1400
- * CreateElementRequest
1401
- *
1402
- * Create a new Element within a taxonomy. For chart-of-accounts
1403
- * taxonomies this is how native accounts are added.
1404
- */
1405
- export type CreateElementRequest = {
1421
+ effective_at?: string | null;
1406
1422
  /**
1407
- * Taxonomy Id
1423
+ * Source
1424
+ *
1425
+ * 'quickbooks' | 'xero' | 'plaid' | 'native' | 'scheduled' | ...
1408
1426
  */
1409
- taxonomy_id: string;
1427
+ source: string;
1410
1428
  /**
1411
- * Code
1429
+ * External Id
1430
+ *
1431
+ * 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.
1412
1432
  */
1413
- code?: string | null;
1433
+ external_id?: string | null;
1414
1434
  /**
1415
- * Name
1435
+ * External Url
1436
+ *
1437
+ * Deep link back to source-system record
1416
1438
  */
1417
- name: string;
1439
+ external_url?: string | null;
1440
+ /**
1441
+ * Amount
1442
+ *
1443
+ * Cents, signed
1444
+ */
1445
+ amount?: number | null;
1446
+ /**
1447
+ * Currency
1448
+ *
1449
+ * ISO 4217 currency code
1450
+ */
1451
+ currency?: string;
1418
1452
  /**
1419
1453
  * Description
1420
1454
  */
1421
1455
  description?: string | null;
1422
1456
  /**
1423
- * Classification
1457
+ * Metadata
1458
+ *
1459
+ * Event-type-specific payload
1424
1460
  */
1425
- classification: 'asset' | 'contraAsset' | 'liability' | 'contraLiability' | 'equity' | 'contraEquity' | 'temporaryEquity' | 'revenue' | 'expense' | 'expenseReversal' | 'gain' | 'loss' | 'comprehensiveIncome' | 'investmentByOwners' | 'distributionToOwners';
1461
+ metadata?: {
1462
+ [key: string]: unknown;
1463
+ };
1426
1464
  /**
1427
- * Balance Type
1465
+ * Dimension Ids
1428
1466
  */
1429
- balance_type?: 'debit' | 'credit';
1467
+ dimension_ids?: Array<string>;
1430
1468
  /**
1431
- * Period Type
1469
+ * Apply Handlers
1470
+ *
1471
+ * When True, resolves the event_type to a handler (Python registry first, then DSL) and fires it atomically with event creation.
1432
1472
  */
1433
- period_type?: 'duration' | 'instant';
1473
+ apply_handlers?: boolean;
1474
+ };
1475
+ /**
1476
+ * CreateEventHandlerRequest
1477
+ */
1478
+ export type CreateEventHandlerRequest = {
1434
1479
  /**
1435
- * Element Type
1480
+ * Name
1481
+ */
1482
+ name: string;
1483
+ /**
1484
+ * Description
1436
1485
  */
1437
- element_type?: 'concept' | 'abstract' | 'axis' | 'member' | 'hypercube';
1486
+ description?: string | null;
1438
1487
  /**
1439
- * Is Abstract
1488
+ * Event Type
1440
1489
  */
1441
- is_abstract?: boolean;
1490
+ event_type: string;
1442
1491
  /**
1443
- * Is Monetary
1492
+ * Event Category
1444
1493
  */
1445
- is_monetary?: boolean;
1494
+ event_category?: string | null;
1446
1495
  /**
1447
- * Parent Id
1496
+ * Match Source
1448
1497
  */
1449
- parent_id?: string | null;
1498
+ match_source?: string | null;
1450
1499
  /**
1451
- * Source
1500
+ * Match Agent Type
1452
1501
  */
1453
- source?: 'native' | 'fac' | 'rs-gaap' | 'us-gaap' | 'ifrs' | 'quickbooks' | 'xero' | 'plaid' | 'import';
1502
+ match_agent_type?: string | null;
1454
1503
  /**
1455
- * Currency
1504
+ * Match Resource Type
1456
1505
  */
1457
- currency?: string;
1506
+ match_resource_type?: string | null;
1458
1507
  /**
1459
- * Qname
1508
+ * Match Metadata Expression
1509
+ *
1510
+ * JSONPath-style equality map, e.g. {"metadata.category": "payroll"}
1460
1511
  */
1461
- qname?: string | null;
1512
+ match_metadata_expression?: {
1513
+ [key: string]: unknown;
1514
+ } | null;
1515
+ transaction_template: TransactionTemplate;
1462
1516
  /**
1463
- * Namespace
1517
+ * Priority
1464
1518
  */
1465
- namespace?: string | null;
1519
+ priority?: number;
1466
1520
  /**
1467
- * External Id
1521
+ * Is Active
1468
1522
  */
1469
- external_id?: string | null;
1523
+ is_active?: boolean;
1524
+ /**
1525
+ * Origin
1526
+ */
1527
+ origin?: 'hub' | 'tenant';
1470
1528
  /**
1471
- * External Source
1529
+ * Metadata
1472
1530
  */
1473
- external_source?: string | null;
1531
+ metadata?: {
1532
+ [key: string]: unknown;
1533
+ };
1474
1534
  };
1475
1535
  /**
1476
1536
  * CreateGraphRequest
@@ -1541,75 +1601,6 @@ export type CreateInformationBlockRequest = {
1541
1601
  [key: string]: unknown;
1542
1602
  };
1543
1603
  };
1544
- /**
1545
- * CreateJournalEntryRequest
1546
- *
1547
- * Create a new journal entry with balanced line items.
1548
- *
1549
- * Defaults to `status='draft'` for ongoing native writes (the normal
1550
- * workflow: draft → review → post via close-period). Pass
1551
- * `status='posted'` for historical data import where entries represent
1552
- * already-happened business events that don't need review.
1553
- *
1554
- * Total debit amount must equal total credit amount or the request
1555
- * is rejected with 422. `line_items` must contain at least two rows
1556
- * (at least one debit, at least one credit).
1557
- */
1558
- export type CreateJournalEntryRequest = {
1559
- /**
1560
- * Posting Date
1561
- */
1562
- posting_date: string;
1563
- /**
1564
- * Memo
1565
- */
1566
- memo: string;
1567
- /**
1568
- * Line Items
1569
- */
1570
- line_items: Array<JournalEntryLineItemInput>;
1571
- /**
1572
- * Type
1573
- */
1574
- type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
1575
- /**
1576
- * Status
1577
- */
1578
- status?: 'draft' | 'posted';
1579
- /**
1580
- * Transaction Id
1581
- */
1582
- transaction_id?: string | null;
1583
- };
1584
- /**
1585
- * CreateManualClosingEntryRequest
1586
- */
1587
- export type CreateManualClosingEntryRequest = {
1588
- /**
1589
- * Posting Date
1590
- *
1591
- * Posting date for the entry
1592
- */
1593
- posting_date: string;
1594
- /**
1595
- * Memo
1596
- *
1597
- * Memo describing the business event (e.g., 'Sale of computer to Vendor X on 3/15')
1598
- */
1599
- memo: string;
1600
- /**
1601
- * Line Items
1602
- *
1603
- * Line items; must balance (total DR = total CR)
1604
- */
1605
- line_items: Array<ManualLineItemRequest>;
1606
- /**
1607
- * Entry Type
1608
- *
1609
- * Entry type: 'closing' (default), 'adjusting', 'standard', 'reversing'
1610
- */
1611
- entry_type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
1612
- };
1613
1604
  /**
1614
1605
  * CreateMappingAssociationOperation
1615
1606
  *
@@ -1851,30 +1842,9 @@ export type CreateSecurityRequest = {
1851
1842
  outstanding_shares?: number | null;
1852
1843
  };
1853
1844
  /**
1854
- * CreateStructureRequest
1855
- */
1856
- export type CreateStructureRequest = {
1857
- /**
1858
- * Name
1859
- */
1860
- name: string;
1861
- /**
1862
- * Description
1863
- */
1864
- description?: string | null;
1865
- /**
1866
- * Structure Type
1867
- */
1868
- structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'custom';
1869
- /**
1870
- * Taxonomy Id
1871
- */
1872
- taxonomy_id: string;
1873
- };
1874
- /**
1875
- * CreateSubgraphRequest
1876
- *
1877
- * Request model for creating a subgraph.
1845
+ * CreateSubgraphRequest
1846
+ *
1847
+ * Request model for creating a subgraph.
1878
1848
  */
1879
1849
  export type CreateSubgraphRequest = {
1880
1850
  /**
@@ -1921,92 +1891,76 @@ export type CreateSubgraphRequest = {
1921
1891
  fork_parent?: boolean;
1922
1892
  };
1923
1893
  /**
1924
- * CreateTaxonomyRequest
1894
+ * CreateTaxonomyBlockRequest
1895
+ *
1896
+ * Request body for the ``create-taxonomy-block`` operation.
1897
+ *
1898
+ * One envelope per taxonomy instance. ``taxonomy_type`` discriminates
1899
+ * which block-type handler the command dispatcher routes to.
1900
+ * ``parent_taxonomy_id`` is required for ``reporting_extension`` (which
1901
+ * extends a library taxonomy) and ignored otherwise.
1902
+ *
1903
+ * The library path (seeding ``reporting_standard`` rows) does NOT flow
1904
+ * through this envelope — it uses a dedicated library writer that bypasses
1905
+ * these caps and tenant scoping.
1925
1906
  */
1926
- export type CreateTaxonomyRequest = {
1907
+ export type CreateTaxonomyBlockRequest = {
1927
1908
  /**
1928
1909
  * Name
1910
+ *
1911
+ * Taxonomy display name.
1929
1912
  */
1930
1913
  name: string;
1931
1914
  /**
1932
- * Description
1915
+ * Taxonomy Type
1916
+ *
1917
+ * Block-type discriminator. ``chart_of_accounts`` and ``custom_ontology`` construct from scratch; ``reporting_extension`` extends an existing library ``reporting_standard``.
1933
1918
  */
1934
- description?: string | null;
1919
+ taxonomy_type: 'reporting_standard' | 'reporting_extension' | 'custom_ontology' | 'chart_of_accounts' | 'schedule';
1935
1920
  /**
1936
- * Taxonomy Type
1921
+ * Parent Taxonomy Id
1922
+ *
1923
+ * Required when ``taxonomy_type == 'reporting_extension'`` — the id of the library ``reporting_standard`` being extended.
1937
1924
  */
1938
- taxonomy_type: 'chart_of_accounts' | 'reporting' | 'mapping' | 'schedule';
1925
+ parent_taxonomy_id?: string | null;
1939
1926
  /**
1940
1927
  * Version
1941
1928
  */
1942
1929
  version?: string | null;
1943
- /**
1944
- * Source Taxonomy Id
1945
- */
1946
- source_taxonomy_id?: string | null;
1947
- /**
1948
- * Target Taxonomy Id
1949
- */
1950
- target_taxonomy_id?: string | null;
1951
- };
1952
- /**
1953
- * CreateTransactionRequest
1954
- *
1955
- * Create a standalone business-event Transaction.
1956
- *
1957
- * Use this when you want to record a real-world event (invoice, payment,
1958
- * deposit, expense) first and then attach one or more journal entries to
1959
- * it via `create-journal-entry` with the returned `transaction_id`.
1960
- *
1961
- * `amount` is in minor currency units (cents). `type` is free-form but
1962
- * common values are: invoice, payment, bill, expense, deposit, transfer,
1963
- * journal_entry.
1964
- */
1965
- export type CreateTransactionRequest = {
1966
- /**
1967
- * Type
1968
- */
1969
- type: string;
1970
- /**
1971
- * Date
1972
- */
1973
- date: string;
1974
- /**
1975
- * Amount
1976
- */
1977
- amount: number;
1978
- /**
1979
- * Currency
1980
- */
1981
- currency?: string;
1982
1930
  /**
1983
1931
  * Description
1984
1932
  */
1985
1933
  description?: string | null;
1986
1934
  /**
1987
- * Merchant Name
1935
+ * Standard
1988
1936
  */
1989
- merchant_name?: string | null;
1937
+ standard?: string | null;
1990
1938
  /**
1991
- * Reference Number
1939
+ * Namespace Uri
1992
1940
  */
1993
- reference_number?: string | null;
1941
+ namespace_uri?: string | null;
1994
1942
  /**
1995
- * Number
1943
+ * Elements
1996
1944
  */
1997
- number?: string | null;
1945
+ elements?: Array<TaxonomyBlockElementRequest>;
1998
1946
  /**
1999
- * Category
1947
+ * Structures
2000
1948
  */
2001
- category?: string | null;
1949
+ structures?: Array<TaxonomyBlockStructureRequest>;
2002
1950
  /**
2003
- * Due Date
1951
+ * Associations
2004
1952
  */
2005
- due_date?: string | null;
1953
+ associations?: Array<TaxonomyBlockAssociationRequest>;
2006
1954
  /**
2007
- * Status
1955
+ * Rules
2008
1956
  */
2009
- status?: 'pending' | 'posted';
1957
+ rules?: Array<TaxonomyBlockRuleRequest>;
1958
+ /**
1959
+ * Metadata
1960
+ */
1961
+ metadata?: {
1962
+ [key: string]: unknown;
1963
+ };
2010
1964
  };
2011
1965
  /**
2012
1966
  * CreateViewRequest
@@ -2491,30 +2445,6 @@ export type DatabaseStorageEntry = {
2491
2445
  */
2492
2446
  size_mb?: number | null;
2493
2447
  };
2494
- /**
2495
- * DeleteAssociationRequest
2496
- *
2497
- * Hard delete — associations are edges and are cheap to recreate.
2498
- */
2499
- export type DeleteAssociationRequest = {
2500
- /**
2501
- * Association Id
2502
- */
2503
- association_id: string;
2504
- };
2505
- /**
2506
- * DeleteElementRequest
2507
- *
2508
- * Soft delete — sets `is_active=false`. Historical line items
2509
- * referencing this element remain valid; new line items cannot use an
2510
- * inactive element.
2511
- */
2512
- export type DeleteElementRequest = {
2513
- /**
2514
- * Element Id
2515
- */
2516
- element_id: string;
2517
- };
2518
2448
  /**
2519
2449
  * DeleteFileResponse
2520
2450
  */
@@ -2668,17 +2598,6 @@ export type DeleteSecurityOperation = {
2668
2598
  */
2669
2599
  security_id: string;
2670
2600
  };
2671
- /**
2672
- * DeleteStructureRequest
2673
- *
2674
- * Soft delete — sets `is_active=false`.
2675
- */
2676
- export type DeleteStructureRequest = {
2677
- /**
2678
- * Structure Id
2679
- */
2680
- structure_id: string;
2681
- };
2682
2601
  /**
2683
2602
  * DeleteSubgraphOp
2684
2603
  *
@@ -2705,16 +2624,30 @@ export type DeleteSubgraphOp = {
2705
2624
  backup_first?: boolean;
2706
2625
  };
2707
2626
  /**
2708
- * DeleteTaxonomyRequest
2627
+ * DeleteTaxonomyBlockRequest
2709
2628
  *
2710
- * Soft delete sets `is_active=false`. Historical references remain
2711
- * valid.
2629
+ * Request body for the ``delete-taxonomy-block`` operation.
2630
+ *
2631
+ * ``cascade_facts=False`` (default) fails the delete if any Fact rows
2632
+ * reference elements in this taxonomy. ``cascade_facts=True`` deletes the
2633
+ * referencing facts alongside the taxonomy; the response reports
2634
+ * ``facts_deleted``.
2712
2635
  */
2713
- export type DeleteTaxonomyRequest = {
2636
+ export type DeleteTaxonomyBlockRequest = {
2714
2637
  /**
2715
2638
  * Taxonomy Id
2716
2639
  */
2717
2640
  taxonomy_id: string;
2641
+ /**
2642
+ * Cascade Facts
2643
+ */
2644
+ cascade_facts?: boolean;
2645
+ /**
2646
+ * Reason
2647
+ *
2648
+ * Human-readable justification (audit log).
2649
+ */
2650
+ reason: string;
2718
2651
  };
2719
2652
  /**
2720
2653
  * DetailedTransactionsResponse
@@ -3073,6 +3006,57 @@ export type DownloadQuota = {
3073
3006
  */
3074
3007
  resets_at: string;
3075
3008
  };
3009
+ /**
3010
+ * ElementUpdatePatch
3011
+ *
3012
+ * Partial-update patch for a single element, keyed by qname.
3013
+ */
3014
+ export type ElementUpdatePatch = {
3015
+ /**
3016
+ * Qname
3017
+ *
3018
+ * qname identifier of the element to update.
3019
+ */
3020
+ qname: string;
3021
+ /**
3022
+ * Name
3023
+ */
3024
+ name?: string | null;
3025
+ /**
3026
+ * Description
3027
+ */
3028
+ description?: string | null;
3029
+ /**
3030
+ * Classification
3031
+ */
3032
+ classification?: string | null;
3033
+ /**
3034
+ * Balance Type
3035
+ */
3036
+ balance_type?: string | null;
3037
+ /**
3038
+ * Period Type
3039
+ */
3040
+ period_type?: string | null;
3041
+ /**
3042
+ * Is Monetary
3043
+ */
3044
+ is_monetary?: boolean | null;
3045
+ /**
3046
+ * Code
3047
+ */
3048
+ code?: string | null;
3049
+ /**
3050
+ * Parent Ref
3051
+ */
3052
+ parent_ref?: string | null;
3053
+ /**
3054
+ * Metadata
3055
+ */
3056
+ metadata?: {
3057
+ [key: string]: unknown;
3058
+ } | null;
3059
+ };
3076
3060
  /**
3077
3061
  * EmailVerificationRequest
3078
3062
  *
@@ -4836,33 +4820,6 @@ export type McpToolsResponse = {
4836
4820
  [key: string]: unknown;
4837
4821
  }>;
4838
4822
  };
4839
- /**
4840
- * ManualLineItemRequest
4841
- */
4842
- export type ManualLineItemRequest = {
4843
- /**
4844
- * Element Id
4845
- *
4846
- * Element ID (chart of accounts)
4847
- */
4848
- element_id: string;
4849
- /**
4850
- * Debit Amount
4851
- *
4852
- * Debit in cents
4853
- */
4854
- debit_amount?: number;
4855
- /**
4856
- * Credit Amount
4857
- *
4858
- * Credit in cents
4859
- */
4860
- credit_amount?: number;
4861
- /**
4862
- * Description
4863
- */
4864
- description?: string | null;
4865
- };
4866
4823
  /**
4867
4824
  * MaterializeOp
4868
4825
  *
@@ -5940,34 +5897,6 @@ export type RestoreBackupOp = {
5940
5897
  */
5941
5898
  verify_after_restore?: boolean;
5942
5899
  };
5943
- /**
5944
- * ReverseJournalEntryRequest
5945
- *
5946
- * Reverse a posted journal entry.
5947
- *
5948
- * Creates a new entry whose line items flip the originals
5949
- * (debits → credits, credits → debits), sets `reversal_of` on the new
5950
- * entry to the original's id, marks the original as
5951
- * `status='reversed'`, and posts the reversing entry immediately.
5952
- *
5953
- * This is how accountants correct posted entries — the original stays
5954
- * in the audit trail, the reversal cancels its effect, and a
5955
- * corrected entry can be created separately.
5956
- */
5957
- export type ReverseJournalEntryRequest = {
5958
- /**
5959
- * Entry Id
5960
- */
5961
- entry_id: string;
5962
- /**
5963
- * Posting Date
5964
- */
5965
- posting_date?: string | null;
5966
- /**
5967
- * Memo
5968
- */
5969
- memo?: string | null;
5970
- };
5971
5900
  /**
5972
5901
  * SECConnectionConfig
5973
5902
  *
@@ -6588,6 +6517,37 @@ export type StorageSummary = {
6588
6517
  */
6589
6518
  measurement_count: number;
6590
6519
  };
6520
+ /**
6521
+ * StructureUpdatePatch
6522
+ *
6523
+ * Partial-update patch for a single structure, keyed by structure_id.
6524
+ */
6525
+ export type StructureUpdatePatch = {
6526
+ /**
6527
+ * Structure Id
6528
+ *
6529
+ * Structure id to update.
6530
+ */
6531
+ structure_id: string;
6532
+ /**
6533
+ * Name
6534
+ */
6535
+ name?: string | null;
6536
+ /**
6537
+ * Description
6538
+ */
6539
+ description?: string | null;
6540
+ /**
6541
+ * Role Uri
6542
+ */
6543
+ role_uri?: string | null;
6544
+ /**
6545
+ * Metadata
6546
+ */
6547
+ metadata?: {
6548
+ [key: string]: unknown;
6549
+ } | null;
6550
+ };
6591
6551
  /**
6592
6552
  * SubgraphQuotaResponse
6593
6553
  *
@@ -6940,61 +6900,305 @@ export type TableQueryResponse = {
6940
6900
  execution_time_ms: number;
6941
6901
  };
6942
6902
  /**
6943
- * TierCapacity
6903
+ * TaxonomyBlockAssociationRequest
6944
6904
  *
6945
- * Capacity status for a single tier.
6905
+ * Association (arc) between two elements, scoped to a structure.
6946
6906
  */
6947
- export type TierCapacity = {
6907
+ export type TaxonomyBlockAssociationRequest = {
6948
6908
  /**
6949
- * Tier
6909
+ * Structure Ref
6950
6910
  *
6951
- * Tier identifier (e.g. ladybug-standard)
6911
+ * Envelope-local structure name (references a structure declared in the same envelope).
6952
6912
  */
6953
- tier: string;
6913
+ structure_ref: string;
6954
6914
  /**
6955
- * Display Name
6915
+ * From Ref
6956
6916
  *
6957
- * Human-readable tier name
6917
+ * qname of the source element.
6958
6918
  */
6959
- display_name: string;
6919
+ from_ref: string;
6960
6920
  /**
6961
- * Status
6921
+ * To Ref
6962
6922
  *
6963
- * Capacity status: ready, scalable, or at_capacity
6923
+ * qname of the target element.
6964
6924
  */
6965
- status: string;
6925
+ to_ref: string;
6966
6926
  /**
6967
- * Message
6927
+ * Association Type
6968
6928
  *
6969
- * Human-readable status message for frontend display
6929
+ * DB ``associations.association_type`` enum. ``presentation`` = parent-child hierarchy; ``calculation`` = summation arc.
6970
6930
  */
6971
- message: string;
6972
- };
6973
- /**
6974
- * TokenPricing
6975
- *
6976
- * AI token pricing for a specific model.
6977
- */
6978
- export type TokenPricing = {
6931
+ association_type: 'presentation' | 'calculation' | 'mapping' | 'equivalence' | 'general-special' | 'essence-alias';
6979
6932
  /**
6980
- * Input Per 1K Tokens
6981
- *
6982
- * Credits per 1K input tokens
6933
+ * Order Value
6983
6934
  */
6984
- input_per_1k_tokens: number;
6935
+ order_value?: number | null;
6985
6936
  /**
6986
- * Output Per 1K Tokens
6937
+ * Arcrole
6938
+ */
6939
+ arcrole?: string | null;
6940
+ /**
6941
+ * Weight
6987
6942
  *
6988
- * Credits per 1K output tokens
6943
+ * Calculation-arc coefficient (+1 / -1 for summation, other values for weighted rollups). Null for non-calculation arcs.
6989
6944
  */
6990
- output_per_1k_tokens: number;
6945
+ weight?: number | null;
6946
+ /**
6947
+ * Metadata
6948
+ */
6949
+ metadata?: {
6950
+ [key: string]: unknown;
6951
+ };
6991
6952
  };
6992
6953
  /**
6993
- * TransactionSummaryResponse
6954
+ * TaxonomyBlockElementRequest
6994
6955
  *
6995
- * Summary of transactions by operation type.
6956
+ * Element definition inside a Taxonomy Block envelope.
6957
+ *
6958
+ * ``qname`` is the envelope-local identifier — must be unique within the
6959
+ * envelope's ``elements`` list and is used by association / rule / patch
6960
+ * payloads as the reference token. ``parent_ref`` may reference another
6961
+ * envelope-local qname or, for ``reporting_extension`` blocks, a library
6962
+ * element qname.
6996
6963
  */
6997
- export type TransactionSummaryResponse = {
6964
+ export type TaxonomyBlockElementRequest = {
6965
+ /**
6966
+ * Qname
6967
+ *
6968
+ * Envelope-local element identifier. Must be unique within the envelope's ``elements`` list. Used as the reference token for associations, rules, and update patches.
6969
+ */
6970
+ qname: string;
6971
+ /**
6972
+ * Name
6973
+ *
6974
+ * Human-readable element name (e.g. 'Total Assets').
6975
+ */
6976
+ name: string;
6977
+ /**
6978
+ * Classification
6979
+ *
6980
+ * FASB metamodel trait for the element. Required for ``chart_of_accounts`` blocks; optional for ``custom_ontology``.
6981
+ */
6982
+ classification?: string | null;
6983
+ /**
6984
+ * Balance Type
6985
+ *
6986
+ * 'debit' | 'credit' | null for non-monetary concepts.
6987
+ */
6988
+ balance_type?: string | null;
6989
+ /**
6990
+ * Element Type
6991
+ *
6992
+ * 'concept' | 'abstract' | 'axis' | 'member' | 'hypercube'.
6993
+ */
6994
+ element_type?: string;
6995
+ /**
6996
+ * Period Type
6997
+ *
6998
+ * 'instant' | 'duration' | null (null = derive from classification during validation).
6999
+ */
7000
+ period_type?: string | null;
7001
+ /**
7002
+ * Is Monetary
7003
+ *
7004
+ * True for dollar-denominated concepts.
7005
+ */
7006
+ is_monetary?: boolean;
7007
+ /**
7008
+ * Description
7009
+ */
7010
+ description?: string | null;
7011
+ /**
7012
+ * Code
7013
+ *
7014
+ * Optional chart-of-accounts code (e.g. '1000', '4100-02'). Only meaningful for ``chart_of_accounts`` blocks.
7015
+ */
7016
+ code?: string | null;
7017
+ /**
7018
+ * Sub Classification
7019
+ */
7020
+ sub_classification?: string | null;
7021
+ /**
7022
+ * Parent Ref
7023
+ *
7024
+ * qname of the parent element — either another envelope-local qname or, for ``reporting_extension`` blocks, a library element qname.
7025
+ */
7026
+ parent_ref?: string | null;
7027
+ /**
7028
+ * Metadata
7029
+ */
7030
+ metadata?: {
7031
+ [key: string]: unknown;
7032
+ };
7033
+ };
7034
+ /**
7035
+ * TaxonomyBlockRuleRequest
7036
+ *
7037
+ * Rule definition inside a Taxonomy Block envelope.
7038
+ *
7039
+ * Exactly one of ``target_structure_ref``, ``target_element_qname``, or
7040
+ * ``target_taxonomy_self`` must be set (or all null for a global rule).
7041
+ * The ``model_validator`` enforces this contract at the Pydantic layer.
7042
+ */
7043
+ export type TaxonomyBlockRuleRequest = {
7044
+ /**
7045
+ * Name
7046
+ *
7047
+ * Rule identifier, unique within envelope.
7048
+ */
7049
+ name: string;
7050
+ /**
7051
+ * Description
7052
+ */
7053
+ description?: string | null;
7054
+ /**
7055
+ * Rule Category
7056
+ *
7057
+ * One of 8 cm:VerificationRule subclasses.
7058
+ */
7059
+ rule_category: 'AutomatedAccountingAndReportingChecks' | 'DisclosureMechanicsRule' | 'FundamentalAccountingConceptRelation' | 'PeerConsistencyRule' | 'PriorPeriodConsistencyRule' | 'ReportLevelModelStructureRule' | 'ReportingSystemSpecificRule' | 'ToDoManualTask' | 'XBRLTechnicalSyntaxRule';
7060
+ /**
7061
+ * Rule Pattern
7062
+ *
7063
+ * One of 11 cm:BusinessRulePattern mechanisms.
7064
+ */
7065
+ rule_pattern: 'Adjustment' | 'CoExists' | 'EqualTo' | 'Exists' | 'GreaterThan' | 'GreaterThanOrEqualToZero' | 'LessThan' | 'RollForward' | 'RollUp' | 'SumEquals' | 'Variance';
7066
+ /**
7067
+ * Expression
7068
+ *
7069
+ * XPath-flavored predicate body (the rule expression).
7070
+ */
7071
+ expression: string;
7072
+ /**
7073
+ * Variables
7074
+ *
7075
+ * ``$Variable`` → qname bindings. Each entry is ``{'variable_name': str, 'variable_qname': str}``.
7076
+ */
7077
+ variables?: Array<{
7078
+ [key: string]: unknown;
7079
+ }>;
7080
+ /**
7081
+ * Severity
7082
+ */
7083
+ severity?: 'info' | 'warning' | 'error';
7084
+ /**
7085
+ * Target Structure Ref
7086
+ *
7087
+ * Envelope-local structure name this rule targets (for structure-scoped rules). Mutually exclusive with the other target_* fields.
7088
+ */
7089
+ target_structure_ref?: string | null;
7090
+ /**
7091
+ * Target Element Qname
7092
+ *
7093
+ * qname of the element this rule targets. Mutually exclusive with the other target_* fields.
7094
+ */
7095
+ target_element_qname?: string | null;
7096
+ /**
7097
+ * Target Taxonomy Self
7098
+ *
7099
+ * True iff the rule targets the envelope's own taxonomy row (``target_kind='taxonomy'``). Mutually exclusive with the other target_* fields.
7100
+ */
7101
+ target_taxonomy_self?: boolean;
7102
+ /**
7103
+ * Message
7104
+ */
7105
+ message?: string | null;
7106
+ /**
7107
+ * Metadata
7108
+ */
7109
+ metadata?: {
7110
+ [key: string]: unknown;
7111
+ };
7112
+ };
7113
+ /**
7114
+ * TaxonomyBlockStructureRequest
7115
+ *
7116
+ * Structure definition inside a Taxonomy Block envelope.
7117
+ */
7118
+ export type TaxonomyBlockStructureRequest = {
7119
+ /**
7120
+ * Name
7121
+ *
7122
+ * Envelope-local structure name (unique within envelope).
7123
+ */
7124
+ name: string;
7125
+ /**
7126
+ * Structure Type
7127
+ *
7128
+ * DB ``structures.structure_type`` enum. CoA blocks use ``chart_of_accounts``; reporting extensions use the statement family or ``custom``; custom ontology uses ``custom``.
7129
+ */
7130
+ structure_type: 'chart_of_accounts' | 'custom' | 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'rollforward' | 'reconciliation' | 'policy' | 'metric';
7131
+ /**
7132
+ * Description
7133
+ */
7134
+ description?: string | null;
7135
+ /**
7136
+ * Role Uri
7137
+ */
7138
+ role_uri?: string | null;
7139
+ /**
7140
+ * Metadata
7141
+ */
7142
+ metadata?: {
7143
+ [key: string]: unknown;
7144
+ };
7145
+ };
7146
+ /**
7147
+ * TierCapacity
7148
+ *
7149
+ * Capacity status for a single tier.
7150
+ */
7151
+ export type TierCapacity = {
7152
+ /**
7153
+ * Tier
7154
+ *
7155
+ * Tier identifier (e.g. ladybug-standard)
7156
+ */
7157
+ tier: string;
7158
+ /**
7159
+ * Display Name
7160
+ *
7161
+ * Human-readable tier name
7162
+ */
7163
+ display_name: string;
7164
+ /**
7165
+ * Status
7166
+ *
7167
+ * Capacity status: ready, scalable, or at_capacity
7168
+ */
7169
+ status: string;
7170
+ /**
7171
+ * Message
7172
+ *
7173
+ * Human-readable status message for frontend display
7174
+ */
7175
+ message: string;
7176
+ };
7177
+ /**
7178
+ * TokenPricing
7179
+ *
7180
+ * AI token pricing for a specific model.
7181
+ */
7182
+ export type TokenPricing = {
7183
+ /**
7184
+ * Input Per 1K Tokens
7185
+ *
7186
+ * Credits per 1K input tokens
7187
+ */
7188
+ input_per_1k_tokens: number;
7189
+ /**
7190
+ * Output Per 1K Tokens
7191
+ *
7192
+ * Credits per 1K output tokens
7193
+ */
7194
+ output_per_1k_tokens: number;
7195
+ };
7196
+ /**
7197
+ * TransactionSummaryResponse
7198
+ *
7199
+ * Summary of transactions by operation type.
7200
+ */
7201
+ export type TransactionSummaryResponse = {
6998
7202
  /**
6999
7203
  * Operation Type
7000
7204
  */
@@ -7021,34 +7225,64 @@ export type TransactionSummaryResponse = {
7021
7225
  last_transaction?: string | null;
7022
7226
  };
7023
7227
  /**
7024
- * TruncateScheduleOperation
7228
+ * TransactionTemplate
7229
+ *
7230
+ * The handler's output spec — one or more balanced entries to post.
7025
7231
  *
7026
- * CQRS-shaped body for `POST /operations/truncate-schedule`.
7232
+ * Wire shape::
7027
7233
  *
7028
- * Bundles the target schedule's `structure_id` with the update payload so
7029
- * the single-body signature matches the registrar/MCP contract. The REST
7030
- * handler, GraphQL resolver, and MCP tool all resolve to the same
7031
- * `cmd_truncate_schedule(session, body, created_by=...)`.
7234
+ * {
7235
+ * "transactions": [{
7236
+ * "entry_template": {
7237
+ * "debit": {"element_id": "elem_...", "amount": "{{ event.amount }}"},
7238
+ * "credit": {"element_id": "elem_...", "amount": "{{ event.amount }}"}
7239
+ * }
7240
+ * }]
7241
+ * }
7032
7242
  */
7033
- export type TruncateScheduleOperation = {
7243
+ export type TransactionTemplate = {
7034
7244
  /**
7035
- * New End Date
7245
+ * Transactions
7036
7246
  *
7037
- * 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.
7247
+ * At least one debit/credit entry pair
7038
7248
  */
7039
- new_end_date: string;
7249
+ transactions: Array<TransactionTemplateItem>;
7250
+ };
7251
+ /**
7252
+ * TransactionTemplateEntry
7253
+ *
7254
+ * One balanced entry (debit + credit pair) — the inner shape of entry_template.
7255
+ */
7256
+ export type TransactionTemplateEntry = {
7257
+ debit: TransactionTemplateLeg;
7258
+ credit: TransactionTemplateLeg;
7259
+ };
7260
+ /**
7261
+ * TransactionTemplateItem
7262
+ *
7263
+ * One item in the transactions list — wraps entry_template to match the DSL shape.
7264
+ */
7265
+ export type TransactionTemplateItem = {
7266
+ entry_template: TransactionTemplateEntry;
7267
+ };
7268
+ /**
7269
+ * TransactionTemplateLeg
7270
+ *
7271
+ * One side of a journal entry leg (debit or credit).
7272
+ */
7273
+ export type TransactionTemplateLeg = {
7040
7274
  /**
7041
- * Reason
7275
+ * Element Id
7042
7276
  *
7043
- * Required reason for the truncation (captured in audit log).
7277
+ * Element ULID (elem_ prefixed) identifying the account to post to
7044
7278
  */
7045
- reason: string;
7279
+ element_id: string;
7046
7280
  /**
7047
- * Structure Id
7281
+ * Amount
7048
7282
  *
7049
- * Target schedule structure ID.
7283
+ * Amount expression. Supports: '{{ event.amount }}' — raw event amount (cents); '{{ event.amount }} / 2' — half of event amount; '{{ event.metadata.fee_cents }}' — field from event metadata
7050
7284
  */
7051
- structure_id: string;
7285
+ amount: string;
7052
7286
  };
7053
7287
  /**
7054
7288
  * UpcomingInvoice
@@ -7113,86 +7347,65 @@ export type UpdateApiKeyRequest = {
7113
7347
  description?: string | null;
7114
7348
  };
7115
7349
  /**
7116
- * UpdateAssociationRequest
7117
- *
7118
- * Update mutable fields on an association. `from_element_id`,
7119
- * `to_element_id`, and `association_type` are immutable — delete and
7120
- * recreate instead.
7350
+ * UpdateAgentRequest
7121
7351
  */
7122
- export type UpdateAssociationRequest = {
7123
- /**
7124
- * Association Id
7125
- */
7126
- association_id: string;
7352
+ export type UpdateAgentRequest = {
7127
7353
  /**
7128
- * Order Value
7354
+ * Agent Id
7129
7355
  */
7130
- order_value?: number | null;
7356
+ agent_id: string;
7131
7357
  /**
7132
- * Weight
7358
+ * Name
7133
7359
  */
7134
- weight?: number | null;
7360
+ name?: string | null;
7135
7361
  /**
7136
- * Confidence
7362
+ * Legal Name
7137
7363
  */
7138
- confidence?: number | null;
7364
+ legal_name?: string | null;
7139
7365
  /**
7140
- * Approved By
7366
+ * Tax Id
7141
7367
  */
7142
- approved_by?: string | null;
7143
- };
7144
- /**
7145
- * UpdateElementRequest
7146
- *
7147
- * Update mutable fields on an element. `taxonomy_id` and `source` are
7148
- * immutable. `parent_id` honors `model_dump(exclude_unset=True)` semantics:
7149
- * omit the field to leave unchanged, pass `null` to clear the parent
7150
- * (make root).
7151
- *
7152
- * ``classification`` updates the element's primary FASB
7153
- * elementsOfFinancialStatements assignment (in ``element_classifications``,
7154
- * not a direct column on ``elements``). Omit to leave unchanged. Passing a
7155
- * value replaces the current primary EFS assignment; there is no
7156
- * set-to-null semantics (use the UI/admin path for full classification
7157
- * teardown — here we only support correction of a misclassified account).
7158
- */
7159
- export type UpdateElementRequest = {
7368
+ tax_id?: string | null;
7160
7369
  /**
7161
- * Element Id
7370
+ * Registration Number
7162
7371
  */
7163
- element_id: string;
7372
+ registration_number?: string | null;
7164
7373
  /**
7165
- * Code
7374
+ * Duns
7166
7375
  */
7167
- code?: string | null;
7376
+ duns?: string | null;
7168
7377
  /**
7169
- * Name
7378
+ * Lei
7170
7379
  */
7171
- name?: string | null;
7380
+ lei?: string | null;
7172
7381
  /**
7173
- * Description
7382
+ * Email
7174
7383
  */
7175
- description?: string | null;
7384
+ email?: string | null;
7176
7385
  /**
7177
- * Balance Type
7386
+ * Phone
7178
7387
  */
7179
- balance_type?: 'debit' | 'credit' | null;
7388
+ phone?: string | null;
7180
7389
  /**
7181
- * Period Type
7390
+ * Address
7182
7391
  */
7183
- period_type?: 'duration' | 'instant' | null;
7392
+ address?: {
7393
+ [key: string]: unknown;
7394
+ } | null;
7184
7395
  /**
7185
- * Parent Id
7396
+ * Is Active
7186
7397
  */
7187
- parent_id?: string | null;
7398
+ is_active?: boolean | null;
7188
7399
  /**
7189
- * Currency
7400
+ * Is 1099 Recipient
7190
7401
  */
7191
- currency?: string | null;
7402
+ is_1099_recipient?: boolean | null;
7192
7403
  /**
7193
- * Classification
7404
+ * Metadata Patch
7194
7405
  */
7195
- classification?: 'asset' | 'contraAsset' | 'liability' | 'contraLiability' | 'equity' | 'contraEquity' | 'temporaryEquity' | 'revenue' | 'expense' | 'expenseReversal' | 'gain' | 'loss' | 'comprehensiveIncome' | 'investmentByOwners' | 'distributionToOwners' | null;
7406
+ metadata_patch?: {
7407
+ [key: string]: unknown;
7408
+ };
7196
7409
  };
7197
7410
  /**
7198
7411
  * UpdateEntityRequest
@@ -7290,18 +7503,117 @@ export type UpdateEntityRequest = {
7290
7503
  address_country?: string | null;
7291
7504
  };
7292
7505
  /**
7293
- * UpdateInformationBlockRequest
7506
+ * UpdateEventBlockRequest
7294
7507
  *
7295
- * Generic update request mirrors :class:`CreateInformationBlockRequest`.
7508
+ * Status transitions and field corrections for an event block.
7296
7509
  *
7297
- * Validated against the registry entry's ``update_request_model``.
7298
- * Block types that don't support updates (e.g. the statement family,
7299
- * whose Structures are library-seeded) surface ``NotImplementedError``
7300
- * from their dispatch handler, which the registrar maps to HTTP 501.
7510
+ * All fields except event_id are optional — only supplied fields are updated.
7301
7511
  */
7302
- export type UpdateInformationBlockRequest = {
7512
+ export type UpdateEventBlockRequest = {
7303
7513
  /**
7304
- * Block Type
7514
+ * Event Id
7515
+ */
7516
+ event_id: string;
7517
+ /**
7518
+ * Transition To
7519
+ *
7520
+ * 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.
7521
+ */
7522
+ transition_to?: 'committed' | 'pending' | 'fulfilled' | 'voided' | 'superseded' | null;
7523
+ /**
7524
+ * Superseded By Id
7525
+ *
7526
+ * New event id that replaces this one. Required when transition_to='superseded'.
7527
+ */
7528
+ superseded_by_id?: string | null;
7529
+ /**
7530
+ * Description
7531
+ */
7532
+ description?: string | null;
7533
+ /**
7534
+ * Effective At
7535
+ */
7536
+ effective_at?: string | null;
7537
+ /**
7538
+ * Metadata Patch
7539
+ *
7540
+ * Key-value pairs merged into existing metadata (additive patch, not replace).
7541
+ */
7542
+ metadata_patch?: {
7543
+ [key: string]: unknown;
7544
+ };
7545
+ };
7546
+ /**
7547
+ * UpdateEventHandlerRequest
7548
+ */
7549
+ export type UpdateEventHandlerRequest = {
7550
+ /**
7551
+ * Event Handler Id
7552
+ */
7553
+ event_handler_id: string;
7554
+ /**
7555
+ * Name
7556
+ */
7557
+ name?: string | null;
7558
+ /**
7559
+ * Description
7560
+ */
7561
+ description?: string | null;
7562
+ /**
7563
+ * Event Category
7564
+ */
7565
+ event_category?: string | null;
7566
+ /**
7567
+ * Match Source
7568
+ */
7569
+ match_source?: string | null;
7570
+ /**
7571
+ * Match Agent Type
7572
+ */
7573
+ match_agent_type?: string | null;
7574
+ /**
7575
+ * Match Resource Type
7576
+ */
7577
+ match_resource_type?: string | null;
7578
+ /**
7579
+ * Match Metadata Expression
7580
+ */
7581
+ match_metadata_expression?: {
7582
+ [key: string]: unknown;
7583
+ } | null;
7584
+ transaction_template?: TransactionTemplate | null;
7585
+ /**
7586
+ * Priority
7587
+ */
7588
+ priority?: number | null;
7589
+ /**
7590
+ * Is Active
7591
+ */
7592
+ is_active?: boolean | null;
7593
+ /**
7594
+ * Approve
7595
+ */
7596
+ approve?: boolean | null;
7597
+ /**
7598
+ * Metadata Patch
7599
+ */
7600
+ metadata_patch?: {
7601
+ [key: string]: unknown;
7602
+ };
7603
+ };
7604
+ /**
7605
+ * UpdateInformationBlockRequest
7606
+ *
7607
+ * Generic update request — mirrors :class:`CreateInformationBlockRequest`.
7608
+ *
7609
+ * Validated against the registry entry's ``update_request_model``.
7610
+ * Block types that don't support updates (e.g. the statement family,
7611
+ * whose Structures are library-seeded) surface ``NotImplementedError``
7612
+ * from their dispatch handler, which the registrar maps to HTTP 501.
7613
+ */
7614
+ export type UpdateInformationBlockRequest = {
7615
+ /**
7616
+ * Block Type
7305
7617
  *
7306
7618
  * Block type discriminator. Must match a registered entry.
7307
7619
  */
@@ -7551,16 +7863,20 @@ export type UpdateSecurityOperation = {
7551
7863
  security_id: string;
7552
7864
  };
7553
7865
  /**
7554
- * UpdateStructureRequest
7866
+ * UpdateTaxonomyBlockRequest
7555
7867
  *
7556
- * Update mutable fields on a structure. `structure_type` and
7557
- * `taxonomy_id` are immutable.
7868
+ * Request body for the ``update-taxonomy-block`` operation.
7869
+ *
7870
+ * Top-level fields (name / description / version) apply to the taxonomy
7871
+ * row itself. The delta lists mutate atoms incrementally — the validator
7872
+ * (Phase 2.3) re-runs the seven-phase check across the projected post-
7873
+ * update state before anything commits.
7558
7874
  */
7559
- export type UpdateStructureRequest = {
7875
+ export type UpdateTaxonomyBlockRequest = {
7560
7876
  /**
7561
- * Structure Id
7877
+ * Taxonomy Id
7562
7878
  */
7563
- structure_id: string;
7879
+ taxonomy_id: string;
7564
7880
  /**
7565
7881
  * Name
7566
7882
  */
@@ -7569,32 +7885,58 @@ export type UpdateStructureRequest = {
7569
7885
  * Description
7570
7886
  */
7571
7887
  description?: string | null;
7572
- };
7573
- /**
7574
- * UpdateTaxonomyRequest
7575
- *
7576
- * Update mutable fields on a taxonomy. `taxonomy_type` is immutable —
7577
- * changing it is not the same operation as editing a taxonomy; deactivate
7578
- * and create a new one instead. Only provided (non-null) fields are
7579
- * applied.
7580
- */
7581
- export type UpdateTaxonomyRequest = {
7582
7888
  /**
7583
- * Taxonomy Id
7889
+ * Version
7584
7890
  */
7585
- taxonomy_id: string;
7891
+ version?: string | null;
7586
7892
  /**
7587
- * Name
7893
+ * Elements To Add
7588
7894
  */
7589
- name?: string | null;
7895
+ elements_to_add?: Array<TaxonomyBlockElementRequest>;
7590
7896
  /**
7591
- * Description
7897
+ * Elements To Update
7592
7898
  */
7593
- description?: string | null;
7899
+ elements_to_update?: Array<ElementUpdatePatch>;
7594
7900
  /**
7595
- * Version
7901
+ * Elements To Remove
7902
+ *
7903
+ * qnames of elements to remove.
7596
7904
  */
7597
- version?: string | null;
7905
+ elements_to_remove?: Array<string>;
7906
+ /**
7907
+ * Structures To Add
7908
+ */
7909
+ structures_to_add?: Array<TaxonomyBlockStructureRequest>;
7910
+ /**
7911
+ * Structures To Update
7912
+ */
7913
+ structures_to_update?: Array<StructureUpdatePatch>;
7914
+ /**
7915
+ * Structures To Remove
7916
+ *
7917
+ * Structure ids to remove.
7918
+ */
7919
+ structures_to_remove?: Array<string>;
7920
+ /**
7921
+ * Associations To Add
7922
+ */
7923
+ associations_to_add?: Array<TaxonomyBlockAssociationRequest>;
7924
+ /**
7925
+ * Associations To Remove
7926
+ *
7927
+ * Association ids to remove.
7928
+ */
7929
+ associations_to_remove?: Array<string>;
7930
+ /**
7931
+ * Rules To Add
7932
+ */
7933
+ rules_to_add?: Array<TaxonomyBlockRuleRequest>;
7934
+ /**
7935
+ * Rules To Remove
7936
+ *
7937
+ * Rule ids to remove.
7938
+ */
7939
+ rules_to_remove?: Array<string>;
7598
7940
  };
7599
7941
  /**
7600
7942
  * UpdateUserRequest
@@ -12334,371 +12676,7 @@ export type GetGraphsData = {
12334
12676
  query?: never;
12335
12677
  url: '/v1/graphs';
12336
12678
  };
12337
- export type GetGraphsErrors = {
12338
- /**
12339
- * Invalid request
12340
- */
12341
- 400: ErrorResponse;
12342
- /**
12343
- * Authentication required
12344
- */
12345
- 401: ErrorResponse;
12346
- /**
12347
- * Access denied
12348
- */
12349
- 403: ErrorResponse;
12350
- /**
12351
- * Rate limit exceeded
12352
- */
12353
- 429: ErrorResponse;
12354
- /**
12355
- * Internal server error
12356
- */
12357
- 500: ErrorResponse;
12358
- };
12359
- export type GetGraphsError = GetGraphsErrors[keyof GetGraphsErrors];
12360
- export type GetGraphsResponses = {
12361
- /**
12362
- * Successful Response
12363
- */
12364
- 200: UserGraphsResponse;
12365
- };
12366
- export type GetGraphsResponse = GetGraphsResponses[keyof GetGraphsResponses];
12367
- export type CreateGraphData = {
12368
- body: CreateGraphRequest;
12369
- headers?: {
12370
- /**
12371
- * Idempotency-Key
12372
- */
12373
- 'Idempotency-Key'?: string | null;
12374
- };
12375
- path?: never;
12376
- query?: never;
12377
- url: '/v1/graphs';
12378
- };
12379
- export type CreateGraphErrors = {
12380
- /**
12381
- * Invalid request
12382
- */
12383
- 400: ErrorResponse;
12384
- /**
12385
- * Authentication required
12386
- */
12387
- 401: ErrorResponse;
12388
- /**
12389
- * Payment required — add a payment method or check org graph limit
12390
- */
12391
- 402: unknown;
12392
- /**
12393
- * Access denied
12394
- */
12395
- 403: ErrorResponse;
12396
- /**
12397
- * Resource not found
12398
- */
12399
- 404: ErrorResponse;
12400
- /**
12401
- * Idempotency-Key conflict — key reused with different body
12402
- */
12403
- 409: ErrorResponse;
12404
- /**
12405
- * Validation Error
12406
- */
12407
- 422: HttpValidationError;
12408
- /**
12409
- * Rate limit exceeded
12410
- */
12411
- 429: ErrorResponse;
12412
- /**
12413
- * Internal server error
12414
- */
12415
- 500: ErrorResponse;
12416
- };
12417
- export type CreateGraphError = CreateGraphErrors[keyof CreateGraphErrors];
12418
- export type CreateGraphResponses = {
12419
- /**
12420
- * Successful Response
12421
- */
12422
- 202: OperationEnvelope;
12423
- };
12424
- export type CreateGraphResponse = CreateGraphResponses[keyof CreateGraphResponses];
12425
- export type GetAvailableExtensionsData = {
12426
- body?: never;
12427
- path?: never;
12428
- query?: never;
12429
- url: '/v1/graphs/extensions';
12430
- };
12431
- export type GetAvailableExtensionsErrors = {
12432
- /**
12433
- * Invalid request
12434
- */
12435
- 400: ErrorResponse;
12436
- /**
12437
- * Authentication required
12438
- */
12439
- 401: ErrorResponse;
12440
- /**
12441
- * Access denied
12442
- */
12443
- 403: ErrorResponse;
12444
- /**
12445
- * Rate limit exceeded
12446
- */
12447
- 429: ErrorResponse;
12448
- /**
12449
- * Internal server error
12450
- */
12451
- 500: ErrorResponse;
12452
- };
12453
- export type GetAvailableExtensionsError = GetAvailableExtensionsErrors[keyof GetAvailableExtensionsErrors];
12454
- export type GetAvailableExtensionsResponses = {
12455
- /**
12456
- * Successful Response
12457
- */
12458
- 200: AvailableExtensionsResponse;
12459
- };
12460
- export type GetAvailableExtensionsResponse = GetAvailableExtensionsResponses[keyof GetAvailableExtensionsResponses];
12461
- export type GetAvailableGraphTiersData = {
12462
- body?: never;
12463
- path?: never;
12464
- query?: {
12465
- /**
12466
- * Include Disabled
12467
- */
12468
- include_disabled?: boolean;
12469
- };
12470
- url: '/v1/graphs/tiers';
12471
- };
12472
- export type GetAvailableGraphTiersErrors = {
12473
- /**
12474
- * Invalid request
12475
- */
12476
- 400: ErrorResponse;
12477
- /**
12478
- * Authentication required
12479
- */
12480
- 401: ErrorResponse;
12481
- /**
12482
- * Access denied
12483
- */
12484
- 403: ErrorResponse;
12485
- /**
12486
- * Validation Error
12487
- */
12488
- 422: HttpValidationError;
12489
- /**
12490
- * Rate limit exceeded
12491
- */
12492
- 429: ErrorResponse;
12493
- /**
12494
- * Internal server error
12495
- */
12496
- 500: ErrorResponse;
12497
- };
12498
- export type GetAvailableGraphTiersError = GetAvailableGraphTiersErrors[keyof GetAvailableGraphTiersErrors];
12499
- export type GetAvailableGraphTiersResponses = {
12500
- /**
12501
- * Successful Response
12502
- */
12503
- 200: AvailableGraphTiersResponse;
12504
- };
12505
- export type GetAvailableGraphTiersResponse = GetAvailableGraphTiersResponses[keyof GetAvailableGraphTiersResponses];
12506
- export type GetGraphCapacityData = {
12507
- body?: never;
12508
- path?: never;
12509
- query?: never;
12510
- url: '/v1/graphs/capacity';
12511
- };
12512
- export type GetGraphCapacityErrors = {
12513
- /**
12514
- * Invalid request
12515
- */
12516
- 400: ErrorResponse;
12517
- /**
12518
- * Authentication required
12519
- */
12520
- 401: ErrorResponse;
12521
- /**
12522
- * Access denied
12523
- */
12524
- 403: ErrorResponse;
12525
- /**
12526
- * Rate limit exceeded
12527
- */
12528
- 429: ErrorResponse;
12529
- /**
12530
- * Internal server error
12531
- */
12532
- 500: ErrorResponse;
12533
- };
12534
- export type GetGraphCapacityError = GetGraphCapacityErrors[keyof GetGraphCapacityErrors];
12535
- export type GetGraphCapacityResponses = {
12536
- /**
12537
- * Successful Response
12538
- */
12539
- 200: GraphCapacityResponse;
12540
- };
12541
- export type GetGraphCapacityResponse = GetGraphCapacityResponses[keyof GetGraphCapacityResponses];
12542
- export type SelectGraphData = {
12543
- body?: never;
12544
- path: {
12545
- /**
12546
- * Graph Id
12547
- */
12548
- graph_id: string;
12549
- };
12550
- query?: never;
12551
- url: '/v1/graphs/{graph_id}/select';
12552
- };
12553
- export type SelectGraphErrors = {
12554
- /**
12555
- * Invalid request
12556
- */
12557
- 400: ErrorResponse;
12558
- /**
12559
- * Authentication required
12560
- */
12561
- 401: ErrorResponse;
12562
- /**
12563
- * Access denied
12564
- */
12565
- 403: ErrorResponse;
12566
- /**
12567
- * Resource not found
12568
- */
12569
- 404: ErrorResponse;
12570
- /**
12571
- * Validation Error
12572
- */
12573
- 422: HttpValidationError;
12574
- /**
12575
- * Rate limit exceeded
12576
- */
12577
- 429: ErrorResponse;
12578
- /**
12579
- * Internal server error
12580
- */
12581
- 500: ErrorResponse;
12582
- };
12583
- export type SelectGraphError = SelectGraphErrors[keyof SelectGraphErrors];
12584
- export type SelectGraphResponses = {
12585
- /**
12586
- * Successful Response
12587
- */
12588
- 200: SuccessResponse;
12589
- };
12590
- export type SelectGraphResponse = SelectGraphResponses[keyof SelectGraphResponses];
12591
- export type GetServiceOfferingsData = {
12592
- body?: never;
12593
- path?: never;
12594
- query?: never;
12595
- url: '/v1/offering';
12596
- };
12597
- export type GetServiceOfferingsErrors = {
12598
- /**
12599
- * Invalid request
12600
- */
12601
- 400: ErrorResponse;
12602
- /**
12603
- * Rate limit exceeded
12604
- */
12605
- 429: ErrorResponse;
12606
- /**
12607
- * Internal server error
12608
- */
12609
- 500: ErrorResponse;
12610
- };
12611
- export type GetServiceOfferingsError = GetServiceOfferingsErrors[keyof GetServiceOfferingsErrors];
12612
- export type GetServiceOfferingsResponses = {
12613
- /**
12614
- * Successful Response
12615
- */
12616
- 200: ServiceOfferingsResponse;
12617
- };
12618
- export type GetServiceOfferingsResponse = GetServiceOfferingsResponses[keyof GetServiceOfferingsResponses];
12619
- export type StreamOperationEventsData = {
12620
- body?: never;
12621
- headers?: {
12622
- /**
12623
- * Authorization
12624
- */
12625
- authorization?: string | null;
12626
- };
12627
- path: {
12628
- /**
12629
- * Operation Id
12630
- *
12631
- * Operation identifier from initial submission
12632
- */
12633
- operation_id: string;
12634
- };
12635
- query?: {
12636
- /**
12637
- * From Sequence
12638
- *
12639
- * Start streaming from this sequence number (0 = from beginning)
12640
- */
12641
- from_sequence?: number;
12642
- /**
12643
- * Token
12644
- *
12645
- * JWT token for SSE authentication
12646
- */
12647
- token?: string | null;
12648
- };
12649
- url: '/v1/operations/{operation_id}/stream';
12650
- };
12651
- export type StreamOperationEventsErrors = {
12652
- /**
12653
- * Invalid request
12654
- */
12655
- 400: ErrorResponse;
12656
- /**
12657
- * Authentication required
12658
- */
12659
- 401: ErrorResponse;
12660
- /**
12661
- * Access denied
12662
- */
12663
- 403: ErrorResponse;
12664
- /**
12665
- * Resource not found
12666
- */
12667
- 404: ErrorResponse;
12668
- /**
12669
- * Validation Error
12670
- */
12671
- 422: HttpValidationError;
12672
- /**
12673
- * Rate limit exceeded
12674
- */
12675
- 429: ErrorResponse;
12676
- /**
12677
- * Internal server error
12678
- */
12679
- 500: ErrorResponse;
12680
- };
12681
- export type StreamOperationEventsError = StreamOperationEventsErrors[keyof StreamOperationEventsErrors];
12682
- export type StreamOperationEventsResponses = {
12683
- /**
12684
- * SSE stream — Content-Type: text/event-stream
12685
- */
12686
- 200: unknown;
12687
- };
12688
- export type GetOperationStatusData = {
12689
- body?: never;
12690
- path: {
12691
- /**
12692
- * Operation Id
12693
- *
12694
- * Operation identifier
12695
- */
12696
- operation_id: string;
12697
- };
12698
- query?: never;
12699
- url: '/v1/operations/{operation_id}/status';
12700
- };
12701
- export type GetOperationStatusErrors = {
12679
+ export type GetGraphsErrors = {
12702
12680
  /**
12703
12681
  * Invalid request
12704
12682
  */
@@ -12711,14 +12689,6 @@ export type GetOperationStatusErrors = {
12711
12689
  * Access denied
12712
12690
  */
12713
12691
  403: ErrorResponse;
12714
- /**
12715
- * Resource not found
12716
- */
12717
- 404: ErrorResponse;
12718
- /**
12719
- * Validation Error
12720
- */
12721
- 422: HttpValidationError;
12722
12692
  /**
12723
12693
  * Rate limit exceeded
12724
12694
  */
@@ -12728,32 +12698,27 @@ export type GetOperationStatusErrors = {
12728
12698
  */
12729
12699
  500: ErrorResponse;
12730
12700
  };
12731
- export type GetOperationStatusError = GetOperationStatusErrors[keyof GetOperationStatusErrors];
12732
- export type GetOperationStatusResponses = {
12701
+ export type GetGraphsError = GetGraphsErrors[keyof GetGraphsErrors];
12702
+ export type GetGraphsResponses = {
12733
12703
  /**
12734
- * Response Getoperationstatus
12735
- *
12736
12704
  * Successful Response
12737
12705
  */
12738
- 200: {
12739
- [key: string]: unknown;
12740
- };
12706
+ 200: UserGraphsResponse;
12741
12707
  };
12742
- export type GetOperationStatusResponse = GetOperationStatusResponses[keyof GetOperationStatusResponses];
12743
- export type CancelOperationData = {
12744
- body?: never;
12745
- path: {
12708
+ export type GetGraphsResponse = GetGraphsResponses[keyof GetGraphsResponses];
12709
+ export type CreateGraphData = {
12710
+ body: CreateGraphRequest;
12711
+ headers?: {
12746
12712
  /**
12747
- * Operation Id
12748
- *
12749
- * Operation identifier
12713
+ * Idempotency-Key
12750
12714
  */
12751
- operation_id: string;
12715
+ 'Idempotency-Key'?: string | null;
12752
12716
  };
12717
+ path?: never;
12753
12718
  query?: never;
12754
- url: '/v1/operations/{operation_id}';
12719
+ url: '/v1/graphs';
12755
12720
  };
12756
- export type CancelOperationErrors = {
12721
+ export type CreateGraphErrors = {
12757
12722
  /**
12758
12723
  * Invalid request
12759
12724
  */
@@ -12762,6 +12727,10 @@ export type CancelOperationErrors = {
12762
12727
  * Authentication required
12763
12728
  */
12764
12729
  401: ErrorResponse;
12730
+ /**
12731
+ * Payment required — add a payment method or check org graph limit
12732
+ */
12733
+ 402: unknown;
12765
12734
  /**
12766
12735
  * Access denied
12767
12736
  */
@@ -12771,9 +12740,9 @@ export type CancelOperationErrors = {
12771
12740
  */
12772
12741
  404: ErrorResponse;
12773
12742
  /**
12774
- * Operation already completed or failed cannot cancel
12743
+ * Idempotency-Key conflict key reused with different body
12775
12744
  */
12776
- 409: unknown;
12745
+ 409: ErrorResponse;
12777
12746
  /**
12778
12747
  * Validation Error
12779
12748
  */
@@ -12787,30 +12756,21 @@ export type CancelOperationErrors = {
12787
12756
  */
12788
12757
  500: ErrorResponse;
12789
12758
  };
12790
- export type CancelOperationError = CancelOperationErrors[keyof CancelOperationErrors];
12791
- export type CancelOperationResponses = {
12759
+ export type CreateGraphError = CreateGraphErrors[keyof CreateGraphErrors];
12760
+ export type CreateGraphResponses = {
12792
12761
  /**
12793
- * Response Canceloperation
12794
- *
12795
12762
  * Successful Response
12796
12763
  */
12797
- 200: {
12798
- [key: string]: unknown;
12799
- };
12764
+ 202: OperationEnvelope;
12800
12765
  };
12801
- export type CancelOperationResponse = CancelOperationResponses[keyof CancelOperationResponses];
12802
- export type GetOrgBillingCustomerData = {
12766
+ export type CreateGraphResponse = CreateGraphResponses[keyof CreateGraphResponses];
12767
+ export type GetAvailableExtensionsData = {
12803
12768
  body?: never;
12804
- path: {
12805
- /**
12806
- * Org Id
12807
- */
12808
- org_id: string;
12809
- };
12769
+ path?: never;
12810
12770
  query?: never;
12811
- url: '/v1/billing/customer/{org_id}';
12771
+ url: '/v1/graphs/extensions';
12812
12772
  };
12813
- export type GetOrgBillingCustomerErrors = {
12773
+ export type GetAvailableExtensionsErrors = {
12814
12774
  /**
12815
12775
  * Invalid request
12816
12776
  */
@@ -12823,14 +12783,6 @@ export type GetOrgBillingCustomerErrors = {
12823
12783
  * Access denied
12824
12784
  */
12825
12785
  403: ErrorResponse;
12826
- /**
12827
- * Resource not found
12828
- */
12829
- 404: ErrorResponse;
12830
- /**
12831
- * Validation Error
12832
- */
12833
- 422: HttpValidationError;
12834
12786
  /**
12835
12787
  * Rate limit exceeded
12836
12788
  */
@@ -12840,26 +12792,26 @@ export type GetOrgBillingCustomerErrors = {
12840
12792
  */
12841
12793
  500: ErrorResponse;
12842
12794
  };
12843
- export type GetOrgBillingCustomerError = GetOrgBillingCustomerErrors[keyof GetOrgBillingCustomerErrors];
12844
- export type GetOrgBillingCustomerResponses = {
12795
+ export type GetAvailableExtensionsError = GetAvailableExtensionsErrors[keyof GetAvailableExtensionsErrors];
12796
+ export type GetAvailableExtensionsResponses = {
12845
12797
  /**
12846
12798
  * Successful Response
12847
12799
  */
12848
- 200: BillingCustomer;
12800
+ 200: AvailableExtensionsResponse;
12849
12801
  };
12850
- export type GetOrgBillingCustomerResponse = GetOrgBillingCustomerResponses[keyof GetOrgBillingCustomerResponses];
12851
- export type CreatePortalSessionData = {
12802
+ export type GetAvailableExtensionsResponse = GetAvailableExtensionsResponses[keyof GetAvailableExtensionsResponses];
12803
+ export type GetAvailableGraphTiersData = {
12852
12804
  body?: never;
12853
- path: {
12805
+ path?: never;
12806
+ query?: {
12854
12807
  /**
12855
- * Org Id
12808
+ * Include Disabled
12856
12809
  */
12857
- org_id: string;
12810
+ include_disabled?: boolean;
12858
12811
  };
12859
- query?: never;
12860
- url: '/v1/billing/customer/{org_id}/portal';
12812
+ url: '/v1/graphs/tiers';
12861
12813
  };
12862
- export type CreatePortalSessionErrors = {
12814
+ export type GetAvailableGraphTiersErrors = {
12863
12815
  /**
12864
12816
  * Invalid request
12865
12817
  */
@@ -12872,10 +12824,6 @@ export type CreatePortalSessionErrors = {
12872
12824
  * Access denied
12873
12825
  */
12874
12826
  403: ErrorResponse;
12875
- /**
12876
- * Resource not found
12877
- */
12878
- 404: ErrorResponse;
12879
12827
  /**
12880
12828
  * Validation Error
12881
12829
  */
@@ -12889,26 +12837,21 @@ export type CreatePortalSessionErrors = {
12889
12837
  */
12890
12838
  500: ErrorResponse;
12891
12839
  };
12892
- export type CreatePortalSessionError = CreatePortalSessionErrors[keyof CreatePortalSessionErrors];
12893
- export type CreatePortalSessionResponses = {
12840
+ export type GetAvailableGraphTiersError = GetAvailableGraphTiersErrors[keyof GetAvailableGraphTiersErrors];
12841
+ export type GetAvailableGraphTiersResponses = {
12894
12842
  /**
12895
12843
  * Successful Response
12896
12844
  */
12897
- 200: PortalSessionResponse;
12845
+ 200: AvailableGraphTiersResponse;
12898
12846
  };
12899
- export type CreatePortalSessionResponse = CreatePortalSessionResponses[keyof CreatePortalSessionResponses];
12900
- export type ListOrgSubscriptionsData = {
12847
+ export type GetAvailableGraphTiersResponse = GetAvailableGraphTiersResponses[keyof GetAvailableGraphTiersResponses];
12848
+ export type GetGraphCapacityData = {
12901
12849
  body?: never;
12902
- path: {
12903
- /**
12904
- * Org Id
12905
- */
12906
- org_id: string;
12907
- };
12850
+ path?: never;
12908
12851
  query?: never;
12909
- url: '/v1/billing/subscriptions/{org_id}';
12852
+ url: '/v1/graphs/capacity';
12910
12853
  };
12911
- export type ListOrgSubscriptionsErrors = {
12854
+ export type GetGraphCapacityErrors = {
12912
12855
  /**
12913
12856
  * Invalid request
12914
12857
  */
@@ -12921,14 +12864,6 @@ export type ListOrgSubscriptionsErrors = {
12921
12864
  * Access denied
12922
12865
  */
12923
12866
  403: ErrorResponse;
12924
- /**
12925
- * Resource not found
12926
- */
12927
- 404: ErrorResponse;
12928
- /**
12929
- * Validation Error
12930
- */
12931
- 422: HttpValidationError;
12932
12867
  /**
12933
12868
  * Rate limit exceeded
12934
12869
  */
@@ -12938,32 +12873,26 @@ export type ListOrgSubscriptionsErrors = {
12938
12873
  */
12939
12874
  500: ErrorResponse;
12940
12875
  };
12941
- export type ListOrgSubscriptionsError = ListOrgSubscriptionsErrors[keyof ListOrgSubscriptionsErrors];
12942
- export type ListOrgSubscriptionsResponses = {
12876
+ export type GetGraphCapacityError = GetGraphCapacityErrors[keyof GetGraphCapacityErrors];
12877
+ export type GetGraphCapacityResponses = {
12943
12878
  /**
12944
- * Response Listorgsubscriptions
12945
- *
12946
12879
  * Successful Response
12947
12880
  */
12948
- 200: Array<GraphSubscriptionResponse>;
12881
+ 200: GraphCapacityResponse;
12949
12882
  };
12950
- export type ListOrgSubscriptionsResponse = ListOrgSubscriptionsResponses[keyof ListOrgSubscriptionsResponses];
12951
- export type GetOrgSubscriptionData = {
12883
+ export type GetGraphCapacityResponse = GetGraphCapacityResponses[keyof GetGraphCapacityResponses];
12884
+ export type SelectGraphData = {
12952
12885
  body?: never;
12953
12886
  path: {
12954
12887
  /**
12955
- * Org Id
12956
- */
12957
- org_id: string;
12958
- /**
12959
- * Subscription Id
12888
+ * Graph Id
12960
12889
  */
12961
- subscription_id: string;
12890
+ graph_id: string;
12962
12891
  };
12963
12892
  query?: never;
12964
- url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}';
12893
+ url: '/v1/graphs/{graph_id}/select';
12965
12894
  };
12966
- export type GetOrgSubscriptionErrors = {
12895
+ export type SelectGraphErrors = {
12967
12896
  /**
12968
12897
  * Invalid request
12969
12898
  */
@@ -12993,50 +12922,25 @@ export type GetOrgSubscriptionErrors = {
12993
12922
  */
12994
12923
  500: ErrorResponse;
12995
12924
  };
12996
- export type GetOrgSubscriptionError = GetOrgSubscriptionErrors[keyof GetOrgSubscriptionErrors];
12997
- export type GetOrgSubscriptionResponses = {
12925
+ export type SelectGraphError = SelectGraphErrors[keyof SelectGraphErrors];
12926
+ export type SelectGraphResponses = {
12998
12927
  /**
12999
12928
  * Successful Response
13000
12929
  */
13001
- 200: GraphSubscriptionResponse;
12930
+ 200: SuccessResponse;
13002
12931
  };
13003
- export type GetOrgSubscriptionResponse = GetOrgSubscriptionResponses[keyof GetOrgSubscriptionResponses];
13004
- export type CancelOrgSubscriptionData = {
12932
+ export type SelectGraphResponse = SelectGraphResponses[keyof SelectGraphResponses];
12933
+ export type GetServiceOfferingsData = {
13005
12934
  body?: never;
13006
- path: {
13007
- /**
13008
- * Org Id
13009
- */
13010
- org_id: string;
13011
- /**
13012
- * Subscription Id
13013
- */
13014
- subscription_id: string;
13015
- };
12935
+ path?: never;
13016
12936
  query?: never;
13017
- url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}/cancel';
12937
+ url: '/v1/offering';
13018
12938
  };
13019
- export type CancelOrgSubscriptionErrors = {
12939
+ export type GetServiceOfferingsErrors = {
13020
12940
  /**
13021
12941
  * Invalid request
13022
12942
  */
13023
12943
  400: ErrorResponse;
13024
- /**
13025
- * Authentication required
13026
- */
13027
- 401: ErrorResponse;
13028
- /**
13029
- * Access denied
13030
- */
13031
- 403: ErrorResponse;
13032
- /**
13033
- * Resource not found
13034
- */
13035
- 404: ErrorResponse;
13036
- /**
13037
- * Validation Error
13038
- */
13039
- 422: HttpValidationError;
13040
12944
  /**
13041
12945
  * Rate limit exceeded
13042
12946
  */
@@ -13046,33 +12950,47 @@ export type CancelOrgSubscriptionErrors = {
13046
12950
  */
13047
12951
  500: ErrorResponse;
13048
12952
  };
13049
- export type CancelOrgSubscriptionError = CancelOrgSubscriptionErrors[keyof CancelOrgSubscriptionErrors];
13050
- export type CancelOrgSubscriptionResponses = {
12953
+ export type GetServiceOfferingsError = GetServiceOfferingsErrors[keyof GetServiceOfferingsErrors];
12954
+ export type GetServiceOfferingsResponses = {
13051
12955
  /**
13052
12956
  * Successful Response
13053
12957
  */
13054
- 200: GraphSubscriptionResponse;
12958
+ 200: ServiceOfferingsResponse;
13055
12959
  };
13056
- export type CancelOrgSubscriptionResponse = CancelOrgSubscriptionResponses[keyof CancelOrgSubscriptionResponses];
13057
- export type ListOrgInvoicesData = {
12960
+ export type GetServiceOfferingsResponse = GetServiceOfferingsResponses[keyof GetServiceOfferingsResponses];
12961
+ export type StreamOperationEventsData = {
13058
12962
  body?: never;
12963
+ headers?: {
12964
+ /**
12965
+ * Authorization
12966
+ */
12967
+ authorization?: string | null;
12968
+ };
13059
12969
  path: {
13060
12970
  /**
13061
- * Org Id
12971
+ * Operation Id
12972
+ *
12973
+ * Operation identifier from initial submission
13062
12974
  */
13063
- org_id: string;
12975
+ operation_id: string;
13064
12976
  };
13065
12977
  query?: {
13066
12978
  /**
13067
- * Limit
12979
+ * From Sequence
13068
12980
  *
13069
- * Number of invoices to return
12981
+ * Start streaming from this sequence number (0 = from beginning)
13070
12982
  */
13071
- limit?: number;
12983
+ from_sequence?: number;
12984
+ /**
12985
+ * Token
12986
+ *
12987
+ * JWT token for SSE authentication
12988
+ */
12989
+ token?: string | null;
13072
12990
  };
13073
- url: '/v1/billing/invoices/{org_id}';
12991
+ url: '/v1/operations/{operation_id}/stream';
13074
12992
  };
13075
- export type ListOrgInvoicesErrors = {
12993
+ export type StreamOperationEventsErrors = {
13076
12994
  /**
13077
12995
  * Invalid request
13078
12996
  */
@@ -13102,26 +13020,27 @@ export type ListOrgInvoicesErrors = {
13102
13020
  */
13103
13021
  500: ErrorResponse;
13104
13022
  };
13105
- export type ListOrgInvoicesError = ListOrgInvoicesErrors[keyof ListOrgInvoicesErrors];
13106
- export type ListOrgInvoicesResponses = {
13023
+ export type StreamOperationEventsError = StreamOperationEventsErrors[keyof StreamOperationEventsErrors];
13024
+ export type StreamOperationEventsResponses = {
13107
13025
  /**
13108
- * Successful Response
13026
+ * SSE stream — Content-Type: text/event-stream
13109
13027
  */
13110
- 200: InvoicesResponse;
13028
+ 200: unknown;
13111
13029
  };
13112
- export type ListOrgInvoicesResponse = ListOrgInvoicesResponses[keyof ListOrgInvoicesResponses];
13113
- export type GetOrgUpcomingInvoiceData = {
13030
+ export type GetOperationStatusData = {
13114
13031
  body?: never;
13115
13032
  path: {
13116
13033
  /**
13117
- * Org Id
13034
+ * Operation Id
13035
+ *
13036
+ * Operation identifier
13118
13037
  */
13119
- org_id: string;
13038
+ operation_id: string;
13120
13039
  };
13121
13040
  query?: never;
13122
- url: '/v1/billing/invoices/{org_id}/upcoming';
13041
+ url: '/v1/operations/{operation_id}/status';
13123
13042
  };
13124
- export type GetOrgUpcomingInvoiceErrors = {
13043
+ export type GetOperationStatusErrors = {
13125
13044
  /**
13126
13045
  * Invalid request
13127
13046
  */
@@ -13151,23 +13070,32 @@ export type GetOrgUpcomingInvoiceErrors = {
13151
13070
  */
13152
13071
  500: ErrorResponse;
13153
13072
  };
13154
- export type GetOrgUpcomingInvoiceError = GetOrgUpcomingInvoiceErrors[keyof GetOrgUpcomingInvoiceErrors];
13155
- export type GetOrgUpcomingInvoiceResponses = {
13073
+ export type GetOperationStatusError = GetOperationStatusErrors[keyof GetOperationStatusErrors];
13074
+ export type GetOperationStatusResponses = {
13156
13075
  /**
13157
- * Response Getorgupcominginvoice
13076
+ * Response Getoperationstatus
13158
13077
  *
13159
13078
  * Successful Response
13160
13079
  */
13161
- 200: UpcomingInvoice | null;
13080
+ 200: {
13081
+ [key: string]: unknown;
13082
+ };
13162
13083
  };
13163
- export type GetOrgUpcomingInvoiceResponse = GetOrgUpcomingInvoiceResponses[keyof GetOrgUpcomingInvoiceResponses];
13164
- export type CreateCheckoutSessionData = {
13165
- body: CreateCheckoutRequest;
13166
- path?: never;
13084
+ export type GetOperationStatusResponse = GetOperationStatusResponses[keyof GetOperationStatusResponses];
13085
+ export type CancelOperationData = {
13086
+ body?: never;
13087
+ path: {
13088
+ /**
13089
+ * Operation Id
13090
+ *
13091
+ * Operation identifier
13092
+ */
13093
+ operation_id: string;
13094
+ };
13167
13095
  query?: never;
13168
- url: '/v1/billing/checkout';
13096
+ url: '/v1/operations/{operation_id}';
13169
13097
  };
13170
- export type CreateCheckoutSessionErrors = {
13098
+ export type CancelOperationErrors = {
13171
13099
  /**
13172
13100
  * Invalid request
13173
13101
  */
@@ -13176,14 +13104,18 @@ export type CreateCheckoutSessionErrors = {
13176
13104
  * Authentication required
13177
13105
  */
13178
13106
  401: ErrorResponse;
13179
- /**
13180
- * Payment required
13181
- */
13182
- 402: unknown;
13183
13107
  /**
13184
13108
  * Access denied
13185
13109
  */
13186
13110
  403: ErrorResponse;
13111
+ /**
13112
+ * Resource not found
13113
+ */
13114
+ 404: ErrorResponse;
13115
+ /**
13116
+ * Operation already completed or failed — cannot cancel
13117
+ */
13118
+ 409: unknown;
13187
13119
  /**
13188
13120
  * Validation Error
13189
13121
  */
@@ -13197,26 +13129,30 @@ export type CreateCheckoutSessionErrors = {
13197
13129
  */
13198
13130
  500: ErrorResponse;
13199
13131
  };
13200
- export type CreateCheckoutSessionError = CreateCheckoutSessionErrors[keyof CreateCheckoutSessionErrors];
13201
- export type CreateCheckoutSessionResponses = {
13132
+ export type CancelOperationError = CancelOperationErrors[keyof CancelOperationErrors];
13133
+ export type CancelOperationResponses = {
13202
13134
  /**
13135
+ * Response Canceloperation
13136
+ *
13203
13137
  * Successful Response
13204
13138
  */
13205
- 201: CheckoutResponse;
13139
+ 200: {
13140
+ [key: string]: unknown;
13141
+ };
13206
13142
  };
13207
- export type CreateCheckoutSessionResponse = CreateCheckoutSessionResponses[keyof CreateCheckoutSessionResponses];
13208
- export type GetCheckoutStatusData = {
13143
+ export type CancelOperationResponse = CancelOperationResponses[keyof CancelOperationResponses];
13144
+ export type GetOrgBillingCustomerData = {
13209
13145
  body?: never;
13210
13146
  path: {
13211
13147
  /**
13212
- * Session Id
13148
+ * Org Id
13213
13149
  */
13214
- session_id: string;
13150
+ org_id: string;
13215
13151
  };
13216
13152
  query?: never;
13217
- url: '/v1/billing/checkout/{session_id}/status';
13153
+ url: '/v1/billing/customer/{org_id}';
13218
13154
  };
13219
- export type GetCheckoutStatusErrors = {
13155
+ export type GetOrgBillingCustomerErrors = {
13220
13156
  /**
13221
13157
  * Invalid request
13222
13158
  */
@@ -13246,74 +13182,42 @@ export type GetCheckoutStatusErrors = {
13246
13182
  */
13247
13183
  500: ErrorResponse;
13248
13184
  };
13249
- export type GetCheckoutStatusError = GetCheckoutStatusErrors[keyof GetCheckoutStatusErrors];
13250
- export type GetCheckoutStatusResponses = {
13185
+ export type GetOrgBillingCustomerError = GetOrgBillingCustomerErrors[keyof GetOrgBillingCustomerErrors];
13186
+ export type GetOrgBillingCustomerResponses = {
13251
13187
  /**
13252
13188
  * Successful Response
13253
13189
  */
13254
- 200: CheckoutStatusResponse;
13190
+ 200: BillingCustomer;
13255
13191
  };
13256
- export type GetCheckoutStatusResponse = GetCheckoutStatusResponses[keyof GetCheckoutStatusResponses];
13257
- export type HandleHttpGetExtensionsGraphIdGraphqlGetData = {
13192
+ export type GetOrgBillingCustomerResponse = GetOrgBillingCustomerResponses[keyof GetOrgBillingCustomerResponses];
13193
+ export type CreatePortalSessionData = {
13258
13194
  body?: never;
13259
13195
  path: {
13260
13196
  /**
13261
- * Graph Id
13197
+ * Org Id
13262
13198
  */
13263
- graph_id: string;
13199
+ org_id: string;
13264
13200
  };
13265
13201
  query?: never;
13266
- url: '/extensions/{graph_id}/graphql';
13202
+ url: '/v1/billing/customer/{org_id}/portal';
13267
13203
  };
13268
- export type HandleHttpGetExtensionsGraphIdGraphqlGetErrors = {
13269
- /**
13270
- * Unauthorized — credentials presented but invalid
13271
- */
13272
- 401: unknown;
13273
- /**
13274
- * Forbidden — caller cannot access this graph
13275
- */
13276
- 403: unknown;
13277
- /**
13278
- * Not found if GraphiQL or query via GET are not enabled.
13279
- */
13280
- 404: unknown;
13281
- /**
13282
- * Validation Error
13283
- */
13284
- 422: HttpValidationError;
13204
+ export type CreatePortalSessionErrors = {
13285
13205
  /**
13286
- * Rate limit exceeded
13206
+ * Invalid request
13287
13207
  */
13288
- 429: unknown;
13289
- };
13290
- export type HandleHttpGetExtensionsGraphIdGraphqlGetError = HandleHttpGetExtensionsGraphIdGraphqlGetErrors[keyof HandleHttpGetExtensionsGraphIdGraphqlGetErrors];
13291
- export type HandleHttpGetExtensionsGraphIdGraphqlGetResponses = {
13208
+ 400: ErrorResponse;
13292
13209
  /**
13293
- * The GraphiQL integrated development environment.
13210
+ * Authentication required
13294
13211
  */
13295
- 200: unknown;
13296
- };
13297
- export type HandleHttpPostExtensionsGraphIdGraphqlPostData = {
13298
- body?: never;
13299
- path: {
13300
- /**
13301
- * Graph Id
13302
- */
13303
- graph_id: string;
13304
- };
13305
- query?: never;
13306
- url: '/extensions/{graph_id}/graphql';
13307
- };
13308
- export type HandleHttpPostExtensionsGraphIdGraphqlPostErrors = {
13212
+ 401: ErrorResponse;
13309
13213
  /**
13310
- * Unauthorized — credentials presented but invalid
13214
+ * Access denied
13311
13215
  */
13312
- 401: unknown;
13216
+ 403: ErrorResponse;
13313
13217
  /**
13314
- * Forbidden caller cannot access this graph
13218
+ * Resource not found
13315
13219
  */
13316
- 403: unknown;
13220
+ 404: ErrorResponse;
13317
13221
  /**
13318
13222
  * Validation Error
13319
13223
  */
@@ -13321,33 +13225,32 @@ export type HandleHttpPostExtensionsGraphIdGraphqlPostErrors = {
13321
13225
  /**
13322
13226
  * Rate limit exceeded
13323
13227
  */
13324
- 429: unknown;
13228
+ 429: ErrorResponse;
13229
+ /**
13230
+ * Internal server error
13231
+ */
13232
+ 500: ErrorResponse;
13325
13233
  };
13326
- export type HandleHttpPostExtensionsGraphIdGraphqlPostError = HandleHttpPostExtensionsGraphIdGraphqlPostErrors[keyof HandleHttpPostExtensionsGraphIdGraphqlPostErrors];
13327
- export type HandleHttpPostExtensionsGraphIdGraphqlPostResponses = {
13234
+ export type CreatePortalSessionError = CreatePortalSessionErrors[keyof CreatePortalSessionErrors];
13235
+ export type CreatePortalSessionResponses = {
13328
13236
  /**
13329
13237
  * Successful Response
13330
13238
  */
13331
- 200: unknown;
13239
+ 200: PortalSessionResponse;
13332
13240
  };
13333
- export type OpUpdateEntityData = {
13334
- body: UpdateEntityRequest;
13335
- headers?: {
13336
- /**
13337
- * Idempotency-Key
13338
- */
13339
- 'Idempotency-Key'?: string | null;
13340
- };
13241
+ export type CreatePortalSessionResponse = CreatePortalSessionResponses[keyof CreatePortalSessionResponses];
13242
+ export type ListOrgSubscriptionsData = {
13243
+ body?: never;
13341
13244
  path: {
13342
13245
  /**
13343
- * Graph Id
13246
+ * Org Id
13344
13247
  */
13345
- graph_id: string;
13248
+ org_id: string;
13346
13249
  };
13347
13250
  query?: never;
13348
- url: '/extensions/roboledger/{graph_id}/operations/update-entity';
13251
+ url: '/v1/billing/subscriptions/{org_id}';
13349
13252
  };
13350
- export type OpUpdateEntityErrors = {
13253
+ export type ListOrgSubscriptionsErrors = {
13351
13254
  /**
13352
13255
  * Invalid request
13353
13256
  */
@@ -13364,10 +13267,6 @@ export type OpUpdateEntityErrors = {
13364
13267
  * Resource not found
13365
13268
  */
13366
13269
  404: ErrorResponse;
13367
- /**
13368
- * Idempotency-Key conflict — key reused with different body
13369
- */
13370
- 409: ErrorResponse;
13371
13270
  /**
13372
13271
  * Validation Error
13373
13272
  */
@@ -13381,32 +13280,32 @@ export type OpUpdateEntityErrors = {
13381
13280
  */
13382
13281
  500: ErrorResponse;
13383
13282
  };
13384
- export type OpUpdateEntityError = OpUpdateEntityErrors[keyof OpUpdateEntityErrors];
13385
- export type OpUpdateEntityResponses = {
13283
+ export type ListOrgSubscriptionsError = ListOrgSubscriptionsErrors[keyof ListOrgSubscriptionsErrors];
13284
+ export type ListOrgSubscriptionsResponses = {
13386
13285
  /**
13286
+ * Response Listorgsubscriptions
13287
+ *
13387
13288
  * Successful Response
13388
13289
  */
13389
- 200: OperationEnvelope;
13290
+ 200: Array<GraphSubscriptionResponse>;
13390
13291
  };
13391
- export type OpUpdateEntityResponse = OpUpdateEntityResponses[keyof OpUpdateEntityResponses];
13392
- export type OpInitializeLedgerData = {
13393
- body: InitializeLedgerRequest;
13394
- headers?: {
13292
+ export type ListOrgSubscriptionsResponse = ListOrgSubscriptionsResponses[keyof ListOrgSubscriptionsResponses];
13293
+ export type GetOrgSubscriptionData = {
13294
+ body?: never;
13295
+ path: {
13395
13296
  /**
13396
- * Idempotency-Key
13297
+ * Org Id
13397
13298
  */
13398
- 'Idempotency-Key'?: string | null;
13399
- };
13400
- path: {
13299
+ org_id: string;
13401
13300
  /**
13402
- * Graph Id
13301
+ * Subscription Id
13403
13302
  */
13404
- graph_id: string;
13303
+ subscription_id: string;
13405
13304
  };
13406
13305
  query?: never;
13407
- url: '/extensions/roboledger/{graph_id}/operations/initialize';
13306
+ url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}';
13408
13307
  };
13409
- export type OpInitializeLedgerErrors = {
13308
+ export type GetOrgSubscriptionErrors = {
13410
13309
  /**
13411
13310
  * Invalid request
13412
13311
  */
@@ -13423,10 +13322,6 @@ export type OpInitializeLedgerErrors = {
13423
13322
  * Resource not found
13424
13323
  */
13425
13324
  404: ErrorResponse;
13426
- /**
13427
- * Idempotency-Key conflict — key reused with different body
13428
- */
13429
- 409: ErrorResponse;
13430
13325
  /**
13431
13326
  * Validation Error
13432
13327
  */
@@ -13440,32 +13335,30 @@ export type OpInitializeLedgerErrors = {
13440
13335
  */
13441
13336
  500: ErrorResponse;
13442
13337
  };
13443
- export type OpInitializeLedgerError = OpInitializeLedgerErrors[keyof OpInitializeLedgerErrors];
13444
- export type OpInitializeLedgerResponses = {
13338
+ export type GetOrgSubscriptionError = GetOrgSubscriptionErrors[keyof GetOrgSubscriptionErrors];
13339
+ export type GetOrgSubscriptionResponses = {
13445
13340
  /**
13446
13341
  * Successful Response
13447
13342
  */
13448
- 200: OperationEnvelope;
13343
+ 200: GraphSubscriptionResponse;
13449
13344
  };
13450
- export type OpInitializeLedgerResponse = OpInitializeLedgerResponses[keyof OpInitializeLedgerResponses];
13451
- export type OpSetCloseTargetData = {
13452
- body: SetCloseTargetOperation;
13453
- headers?: {
13345
+ export type GetOrgSubscriptionResponse = GetOrgSubscriptionResponses[keyof GetOrgSubscriptionResponses];
13346
+ export type CancelOrgSubscriptionData = {
13347
+ body?: never;
13348
+ path: {
13454
13349
  /**
13455
- * Idempotency-Key
13350
+ * Org Id
13456
13351
  */
13457
- 'Idempotency-Key'?: string | null;
13458
- };
13459
- path: {
13352
+ org_id: string;
13460
13353
  /**
13461
- * Graph Id
13354
+ * Subscription Id
13462
13355
  */
13463
- graph_id: string;
13356
+ subscription_id: string;
13464
13357
  };
13465
13358
  query?: never;
13466
- url: '/extensions/roboledger/{graph_id}/operations/set-close-target';
13359
+ url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}/cancel';
13467
13360
  };
13468
- export type OpSetCloseTargetErrors = {
13361
+ export type CancelOrgSubscriptionErrors = {
13469
13362
  /**
13470
13363
  * Invalid request
13471
13364
  */
@@ -13482,10 +13375,6 @@ export type OpSetCloseTargetErrors = {
13482
13375
  * Resource not found
13483
13376
  */
13484
13377
  404: ErrorResponse;
13485
- /**
13486
- * Idempotency-Key conflict — key reused with different body
13487
- */
13488
- 409: ErrorResponse;
13489
13378
  /**
13490
13379
  * Validation Error
13491
13380
  */
@@ -13499,32 +13388,33 @@ export type OpSetCloseTargetErrors = {
13499
13388
  */
13500
13389
  500: ErrorResponse;
13501
13390
  };
13502
- export type OpSetCloseTargetError = OpSetCloseTargetErrors[keyof OpSetCloseTargetErrors];
13503
- export type OpSetCloseTargetResponses = {
13391
+ export type CancelOrgSubscriptionError = CancelOrgSubscriptionErrors[keyof CancelOrgSubscriptionErrors];
13392
+ export type CancelOrgSubscriptionResponses = {
13504
13393
  /**
13505
13394
  * Successful Response
13506
13395
  */
13507
- 200: OperationEnvelope;
13396
+ 200: GraphSubscriptionResponse;
13508
13397
  };
13509
- export type OpSetCloseTargetResponse = OpSetCloseTargetResponses[keyof OpSetCloseTargetResponses];
13510
- export type OpClosePeriodData = {
13511
- body: ClosePeriodOperation;
13512
- headers?: {
13398
+ export type CancelOrgSubscriptionResponse = CancelOrgSubscriptionResponses[keyof CancelOrgSubscriptionResponses];
13399
+ export type ListOrgInvoicesData = {
13400
+ body?: never;
13401
+ path: {
13513
13402
  /**
13514
- * Idempotency-Key
13403
+ * Org Id
13515
13404
  */
13516
- 'Idempotency-Key'?: string | null;
13405
+ org_id: string;
13517
13406
  };
13518
- path: {
13407
+ query?: {
13519
13408
  /**
13520
- * Graph Id
13409
+ * Limit
13410
+ *
13411
+ * Number of invoices to return
13521
13412
  */
13522
- graph_id: string;
13413
+ limit?: number;
13523
13414
  };
13524
- query?: never;
13525
- url: '/extensions/roboledger/{graph_id}/operations/close-period';
13415
+ url: '/v1/billing/invoices/{org_id}';
13526
13416
  };
13527
- export type OpClosePeriodErrors = {
13417
+ export type ListOrgInvoicesErrors = {
13528
13418
  /**
13529
13419
  * Invalid request
13530
13420
  */
@@ -13541,10 +13431,6 @@ export type OpClosePeriodErrors = {
13541
13431
  * Resource not found
13542
13432
  */
13543
13433
  404: ErrorResponse;
13544
- /**
13545
- * Idempotency-Key conflict — key reused with different body
13546
- */
13547
- 409: ErrorResponse;
13548
13434
  /**
13549
13435
  * Validation Error
13550
13436
  */
@@ -13558,32 +13444,26 @@ export type OpClosePeriodErrors = {
13558
13444
  */
13559
13445
  500: ErrorResponse;
13560
13446
  };
13561
- export type OpClosePeriodError = OpClosePeriodErrors[keyof OpClosePeriodErrors];
13562
- export type OpClosePeriodResponses = {
13447
+ export type ListOrgInvoicesError = ListOrgInvoicesErrors[keyof ListOrgInvoicesErrors];
13448
+ export type ListOrgInvoicesResponses = {
13563
13449
  /**
13564
13450
  * Successful Response
13565
13451
  */
13566
- 200: OperationEnvelope;
13452
+ 200: InvoicesResponse;
13567
13453
  };
13568
- export type OpClosePeriodResponse = OpClosePeriodResponses[keyof OpClosePeriodResponses];
13569
- export type OpReopenPeriodData = {
13570
- body: ReopenPeriodOperation;
13571
- headers?: {
13572
- /**
13573
- * Idempotency-Key
13574
- */
13575
- 'Idempotency-Key'?: string | null;
13576
- };
13454
+ export type ListOrgInvoicesResponse = ListOrgInvoicesResponses[keyof ListOrgInvoicesResponses];
13455
+ export type GetOrgUpcomingInvoiceData = {
13456
+ body?: never;
13577
13457
  path: {
13578
13458
  /**
13579
- * Graph Id
13459
+ * Org Id
13580
13460
  */
13581
- graph_id: string;
13461
+ org_id: string;
13582
13462
  };
13583
13463
  query?: never;
13584
- url: '/extensions/roboledger/{graph_id}/operations/reopen-period';
13464
+ url: '/v1/billing/invoices/{org_id}/upcoming';
13585
13465
  };
13586
- export type OpReopenPeriodErrors = {
13466
+ export type GetOrgUpcomingInvoiceErrors = {
13587
13467
  /**
13588
13468
  * Invalid request
13589
13469
  */
@@ -13600,10 +13480,6 @@ export type OpReopenPeriodErrors = {
13600
13480
  * Resource not found
13601
13481
  */
13602
13482
  404: ErrorResponse;
13603
- /**
13604
- * Idempotency-Key conflict — key reused with different body
13605
- */
13606
- 409: ErrorResponse;
13607
13483
  /**
13608
13484
  * Validation Error
13609
13485
  */
@@ -13617,32 +13493,23 @@ export type OpReopenPeriodErrors = {
13617
13493
  */
13618
13494
  500: ErrorResponse;
13619
13495
  };
13620
- export type OpReopenPeriodError = OpReopenPeriodErrors[keyof OpReopenPeriodErrors];
13621
- export type OpReopenPeriodResponses = {
13496
+ export type GetOrgUpcomingInvoiceError = GetOrgUpcomingInvoiceErrors[keyof GetOrgUpcomingInvoiceErrors];
13497
+ export type GetOrgUpcomingInvoiceResponses = {
13622
13498
  /**
13499
+ * Response Getorgupcominginvoice
13500
+ *
13623
13501
  * Successful Response
13624
13502
  */
13625
- 200: OperationEnvelope;
13503
+ 200: UpcomingInvoice | null;
13626
13504
  };
13627
- export type OpReopenPeriodResponse = OpReopenPeriodResponses[keyof OpReopenPeriodResponses];
13628
- export type OpCreateTaxonomyData = {
13629
- body: CreateTaxonomyRequest;
13630
- headers?: {
13631
- /**
13632
- * Idempotency-Key
13633
- */
13634
- 'Idempotency-Key'?: string | null;
13635
- };
13636
- path: {
13637
- /**
13638
- * Graph Id
13639
- */
13640
- graph_id: string;
13641
- };
13505
+ export type GetOrgUpcomingInvoiceResponse = GetOrgUpcomingInvoiceResponses[keyof GetOrgUpcomingInvoiceResponses];
13506
+ export type CreateCheckoutSessionData = {
13507
+ body: CreateCheckoutRequest;
13508
+ path?: never;
13642
13509
  query?: never;
13643
- url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy';
13510
+ url: '/v1/billing/checkout';
13644
13511
  };
13645
- export type OpCreateTaxonomyErrors = {
13512
+ export type CreateCheckoutSessionErrors = {
13646
13513
  /**
13647
13514
  * Invalid request
13648
13515
  */
@@ -13652,17 +13519,13 @@ export type OpCreateTaxonomyErrors = {
13652
13519
  */
13653
13520
  401: ErrorResponse;
13654
13521
  /**
13655
- * Access denied
13656
- */
13657
- 403: ErrorResponse;
13658
- /**
13659
- * Resource not found
13522
+ * Payment required
13660
13523
  */
13661
- 404: ErrorResponse;
13524
+ 402: unknown;
13662
13525
  /**
13663
- * Idempotency-Key conflict — key reused with different body
13526
+ * Access denied
13664
13527
  */
13665
- 409: ErrorResponse;
13528
+ 403: ErrorResponse;
13666
13529
  /**
13667
13530
  * Validation Error
13668
13531
  */
@@ -13676,32 +13539,26 @@ export type OpCreateTaxonomyErrors = {
13676
13539
  */
13677
13540
  500: ErrorResponse;
13678
13541
  };
13679
- export type OpCreateTaxonomyError = OpCreateTaxonomyErrors[keyof OpCreateTaxonomyErrors];
13680
- export type OpCreateTaxonomyResponses = {
13542
+ export type CreateCheckoutSessionError = CreateCheckoutSessionErrors[keyof CreateCheckoutSessionErrors];
13543
+ export type CreateCheckoutSessionResponses = {
13681
13544
  /**
13682
13545
  * Successful Response
13683
13546
  */
13684
- 200: OperationEnvelope;
13547
+ 201: CheckoutResponse;
13685
13548
  };
13686
- export type OpCreateTaxonomyResponse = OpCreateTaxonomyResponses[keyof OpCreateTaxonomyResponses];
13687
- export type OpCreateStructureData = {
13688
- body: CreateStructureRequest;
13689
- headers?: {
13690
- /**
13691
- * Idempotency-Key
13692
- */
13693
- 'Idempotency-Key'?: string | null;
13694
- };
13549
+ export type CreateCheckoutSessionResponse = CreateCheckoutSessionResponses[keyof CreateCheckoutSessionResponses];
13550
+ export type GetCheckoutStatusData = {
13551
+ body?: never;
13695
13552
  path: {
13696
13553
  /**
13697
- * Graph Id
13554
+ * Session Id
13698
13555
  */
13699
- graph_id: string;
13556
+ session_id: string;
13700
13557
  };
13701
13558
  query?: never;
13702
- url: '/extensions/roboledger/{graph_id}/operations/create-structure';
13559
+ url: '/v1/billing/checkout/{session_id}/status';
13703
13560
  };
13704
- export type OpCreateStructureErrors = {
13561
+ export type GetCheckoutStatusErrors = {
13705
13562
  /**
13706
13563
  * Invalid request
13707
13564
  */
@@ -13718,10 +13575,6 @@ export type OpCreateStructureErrors = {
13718
13575
  * Resource not found
13719
13576
  */
13720
13577
  404: ErrorResponse;
13721
- /**
13722
- * Idempotency-Key conflict — key reused with different body
13723
- */
13724
- 409: ErrorResponse;
13725
13578
  /**
13726
13579
  * Validation Error
13727
13580
  */
@@ -13735,22 +13588,16 @@ export type OpCreateStructureErrors = {
13735
13588
  */
13736
13589
  500: ErrorResponse;
13737
13590
  };
13738
- export type OpCreateStructureError = OpCreateStructureErrors[keyof OpCreateStructureErrors];
13739
- export type OpCreateStructureResponses = {
13591
+ export type GetCheckoutStatusError = GetCheckoutStatusErrors[keyof GetCheckoutStatusErrors];
13592
+ export type GetCheckoutStatusResponses = {
13740
13593
  /**
13741
13594
  * Successful Response
13742
13595
  */
13743
- 200: OperationEnvelope;
13596
+ 200: CheckoutStatusResponse;
13744
13597
  };
13745
- export type OpCreateStructureResponse = OpCreateStructureResponses[keyof OpCreateStructureResponses];
13746
- export type OpDeleteMappingAssociationData = {
13747
- body: DeleteMappingAssociationOperation;
13748
- headers?: {
13749
- /**
13750
- * Idempotency-Key
13751
- */
13752
- 'Idempotency-Key'?: string | null;
13753
- };
13598
+ export type GetCheckoutStatusResponse = GetCheckoutStatusResponses[keyof GetCheckoutStatusResponses];
13599
+ export type HandleHttpGetExtensionsGraphIdGraphqlGetData = {
13600
+ body?: never;
13754
13601
  path: {
13755
13602
  /**
13756
13603
  * Graph Id
@@ -13758,29 +13605,57 @@ export type OpDeleteMappingAssociationData = {
13758
13605
  graph_id: string;
13759
13606
  };
13760
13607
  query?: never;
13761
- url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association';
13608
+ url: '/extensions/{graph_id}/graphql';
13762
13609
  };
13763
- export type OpDeleteMappingAssociationErrors = {
13610
+ export type HandleHttpGetExtensionsGraphIdGraphqlGetErrors = {
13764
13611
  /**
13765
- * Invalid request
13612
+ * Unauthorized — credentials presented but invalid
13766
13613
  */
13767
- 400: ErrorResponse;
13614
+ 401: unknown;
13768
13615
  /**
13769
- * Authentication required
13616
+ * Forbidden — caller cannot access this graph
13770
13617
  */
13771
- 401: ErrorResponse;
13618
+ 403: unknown;
13772
13619
  /**
13773
- * Access denied
13620
+ * Not found if GraphiQL or query via GET are not enabled.
13774
13621
  */
13775
- 403: ErrorResponse;
13622
+ 404: unknown;
13776
13623
  /**
13777
- * Resource not found
13624
+ * Validation Error
13778
13625
  */
13779
- 404: ErrorResponse;
13626
+ 422: HttpValidationError;
13780
13627
  /**
13781
- * Idempotency-Key conflict — key reused with different body
13628
+ * Rate limit exceeded
13782
13629
  */
13783
- 409: ErrorResponse;
13630
+ 429: unknown;
13631
+ };
13632
+ export type HandleHttpGetExtensionsGraphIdGraphqlGetError = HandleHttpGetExtensionsGraphIdGraphqlGetErrors[keyof HandleHttpGetExtensionsGraphIdGraphqlGetErrors];
13633
+ export type HandleHttpGetExtensionsGraphIdGraphqlGetResponses = {
13634
+ /**
13635
+ * The GraphiQL integrated development environment.
13636
+ */
13637
+ 200: unknown;
13638
+ };
13639
+ export type HandleHttpPostExtensionsGraphIdGraphqlPostData = {
13640
+ body?: never;
13641
+ path: {
13642
+ /**
13643
+ * Graph Id
13644
+ */
13645
+ graph_id: string;
13646
+ };
13647
+ query?: never;
13648
+ url: '/extensions/{graph_id}/graphql';
13649
+ };
13650
+ export type HandleHttpPostExtensionsGraphIdGraphqlPostErrors = {
13651
+ /**
13652
+ * Unauthorized — credentials presented but invalid
13653
+ */
13654
+ 401: unknown;
13655
+ /**
13656
+ * Forbidden — caller cannot access this graph
13657
+ */
13658
+ 403: unknown;
13784
13659
  /**
13785
13660
  * Validation Error
13786
13661
  */
@@ -13788,22 +13663,17 @@ export type OpDeleteMappingAssociationErrors = {
13788
13663
  /**
13789
13664
  * Rate limit exceeded
13790
13665
  */
13791
- 429: ErrorResponse;
13792
- /**
13793
- * Internal server error
13794
- */
13795
- 500: ErrorResponse;
13666
+ 429: unknown;
13796
13667
  };
13797
- export type OpDeleteMappingAssociationError = OpDeleteMappingAssociationErrors[keyof OpDeleteMappingAssociationErrors];
13798
- export type OpDeleteMappingAssociationResponses = {
13668
+ export type HandleHttpPostExtensionsGraphIdGraphqlPostError = HandleHttpPostExtensionsGraphIdGraphqlPostErrors[keyof HandleHttpPostExtensionsGraphIdGraphqlPostErrors];
13669
+ export type HandleHttpPostExtensionsGraphIdGraphqlPostResponses = {
13799
13670
  /**
13800
13671
  * Successful Response
13801
13672
  */
13802
- 200: OperationEnvelope;
13673
+ 200: unknown;
13803
13674
  };
13804
- export type OpDeleteMappingAssociationResponse = OpDeleteMappingAssociationResponses[keyof OpDeleteMappingAssociationResponses];
13805
- export type OpUpdateTaxonomyData = {
13806
- body: UpdateTaxonomyRequest;
13675
+ export type OpInitializeLedgerData = {
13676
+ body: InitializeLedgerRequest;
13807
13677
  headers?: {
13808
13678
  /**
13809
13679
  * Idempotency-Key
@@ -13817,29 +13687,29 @@ export type OpUpdateTaxonomyData = {
13817
13687
  graph_id: string;
13818
13688
  };
13819
13689
  query?: never;
13820
- url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy';
13690
+ url: '/extensions/roboledger/{graph_id}/operations/initialize';
13821
13691
  };
13822
- export type OpUpdateTaxonomyErrors = {
13692
+ export type OpInitializeLedgerErrors = {
13823
13693
  /**
13824
- * Invalid request payload
13694
+ * Invalid request
13825
13695
  */
13826
- 400: OperationError;
13696
+ 400: ErrorResponse;
13827
13697
  /**
13828
- * Unauthorized — missing or invalid credentials
13698
+ * Authentication required
13829
13699
  */
13830
- 401: unknown;
13700
+ 401: ErrorResponse;
13831
13701
  /**
13832
- * Forbidden — caller cannot access this graph
13702
+ * Access denied
13833
13703
  */
13834
- 403: unknown;
13704
+ 403: ErrorResponse;
13835
13705
  /**
13836
- * Resource not found (graph, ledger, report, etc.)
13706
+ * Resource not found
13837
13707
  */
13838
- 404: OperationError;
13708
+ 404: ErrorResponse;
13839
13709
  /**
13840
- * Idempotency-Key reused with a different request body, or other operation-level conflict
13710
+ * Idempotency-Key conflict — key reused with different body
13841
13711
  */
13842
- 409: OperationError;
13712
+ 409: ErrorResponse;
13843
13713
  /**
13844
13714
  * Validation Error
13845
13715
  */
@@ -13847,22 +13717,22 @@ export type OpUpdateTaxonomyErrors = {
13847
13717
  /**
13848
13718
  * Rate limit exceeded
13849
13719
  */
13850
- 429: unknown;
13720
+ 429: ErrorResponse;
13851
13721
  /**
13852
- * Internal error
13722
+ * Internal server error
13853
13723
  */
13854
- 500: unknown;
13724
+ 500: ErrorResponse;
13855
13725
  };
13856
- export type OpUpdateTaxonomyError = OpUpdateTaxonomyErrors[keyof OpUpdateTaxonomyErrors];
13857
- export type OpUpdateTaxonomyResponses = {
13726
+ export type OpInitializeLedgerError = OpInitializeLedgerErrors[keyof OpInitializeLedgerErrors];
13727
+ export type OpInitializeLedgerResponses = {
13858
13728
  /**
13859
13729
  * Successful Response
13860
13730
  */
13861
13731
  200: OperationEnvelope;
13862
13732
  };
13863
- export type OpUpdateTaxonomyResponse = OpUpdateTaxonomyResponses[keyof OpUpdateTaxonomyResponses];
13864
- export type OpDeleteTaxonomyData = {
13865
- body: DeleteTaxonomyRequest;
13733
+ export type OpInitializeLedgerResponse = OpInitializeLedgerResponses[keyof OpInitializeLedgerResponses];
13734
+ export type OpUpdateEntityData = {
13735
+ body: UpdateEntityRequest;
13866
13736
  headers?: {
13867
13737
  /**
13868
13738
  * Idempotency-Key
@@ -13876,29 +13746,29 @@ export type OpDeleteTaxonomyData = {
13876
13746
  graph_id: string;
13877
13747
  };
13878
13748
  query?: never;
13879
- url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy';
13749
+ url: '/extensions/roboledger/{graph_id}/operations/update-entity';
13880
13750
  };
13881
- export type OpDeleteTaxonomyErrors = {
13751
+ export type OpUpdateEntityErrors = {
13882
13752
  /**
13883
- * Invalid request payload
13753
+ * Invalid request
13884
13754
  */
13885
- 400: OperationError;
13755
+ 400: ErrorResponse;
13886
13756
  /**
13887
- * Unauthorized — missing or invalid credentials
13757
+ * Authentication required
13888
13758
  */
13889
- 401: unknown;
13759
+ 401: ErrorResponse;
13890
13760
  /**
13891
- * Forbidden — caller cannot access this graph
13761
+ * Access denied
13892
13762
  */
13893
- 403: unknown;
13763
+ 403: ErrorResponse;
13894
13764
  /**
13895
- * Resource not found (graph, ledger, report, etc.)
13765
+ * Resource not found
13896
13766
  */
13897
- 404: OperationError;
13767
+ 404: ErrorResponse;
13898
13768
  /**
13899
- * Idempotency-Key reused with a different request body, or other operation-level conflict
13769
+ * Idempotency-Key conflict — key reused with different body
13900
13770
  */
13901
- 409: OperationError;
13771
+ 409: ErrorResponse;
13902
13772
  /**
13903
13773
  * Validation Error
13904
13774
  */
@@ -13906,22 +13776,22 @@ export type OpDeleteTaxonomyErrors = {
13906
13776
  /**
13907
13777
  * Rate limit exceeded
13908
13778
  */
13909
- 429: unknown;
13779
+ 429: ErrorResponse;
13910
13780
  /**
13911
- * Internal error
13781
+ * Internal server error
13912
13782
  */
13913
- 500: unknown;
13783
+ 500: ErrorResponse;
13914
13784
  };
13915
- export type OpDeleteTaxonomyError = OpDeleteTaxonomyErrors[keyof OpDeleteTaxonomyErrors];
13916
- export type OpDeleteTaxonomyResponses = {
13785
+ export type OpUpdateEntityError = OpUpdateEntityErrors[keyof OpUpdateEntityErrors];
13786
+ export type OpUpdateEntityResponses = {
13917
13787
  /**
13918
13788
  * Successful Response
13919
13789
  */
13920
13790
  200: OperationEnvelope;
13921
13791
  };
13922
- export type OpDeleteTaxonomyResponse = OpDeleteTaxonomyResponses[keyof OpDeleteTaxonomyResponses];
13923
- export type OpLinkEntityTaxonomyData = {
13924
- body: LinkEntityTaxonomyRequest;
13792
+ export type OpUpdateEntityResponse = OpUpdateEntityResponses[keyof OpUpdateEntityResponses];
13793
+ export type OpCreateTaxonomyBlockData = {
13794
+ body: CreateTaxonomyBlockRequest;
13925
13795
  headers?: {
13926
13796
  /**
13927
13797
  * Idempotency-Key
@@ -13935,9 +13805,9 @@ export type OpLinkEntityTaxonomyData = {
13935
13805
  graph_id: string;
13936
13806
  };
13937
13807
  query?: never;
13938
- url: '/extensions/roboledger/{graph_id}/operations/link-entity-taxonomy';
13808
+ url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy-block';
13939
13809
  };
13940
- export type OpLinkEntityTaxonomyErrors = {
13810
+ export type OpCreateTaxonomyBlockErrors = {
13941
13811
  /**
13942
13812
  * Invalid request payload
13943
13813
  */
@@ -13971,16 +13841,16 @@ export type OpLinkEntityTaxonomyErrors = {
13971
13841
  */
13972
13842
  500: unknown;
13973
13843
  };
13974
- export type OpLinkEntityTaxonomyError = OpLinkEntityTaxonomyErrors[keyof OpLinkEntityTaxonomyErrors];
13975
- export type OpLinkEntityTaxonomyResponses = {
13844
+ export type OpCreateTaxonomyBlockError = OpCreateTaxonomyBlockErrors[keyof OpCreateTaxonomyBlockErrors];
13845
+ export type OpCreateTaxonomyBlockResponses = {
13976
13846
  /**
13977
13847
  * Successful Response
13978
13848
  */
13979
13849
  200: OperationEnvelope;
13980
13850
  };
13981
- export type OpLinkEntityTaxonomyResponse = OpLinkEntityTaxonomyResponses[keyof OpLinkEntityTaxonomyResponses];
13982
- export type OpUpdateStructureData = {
13983
- body: UpdateStructureRequest;
13851
+ export type OpCreateTaxonomyBlockResponse = OpCreateTaxonomyBlockResponses[keyof OpCreateTaxonomyBlockResponses];
13852
+ export type OpUpdateTaxonomyBlockData = {
13853
+ body: UpdateTaxonomyBlockRequest;
13984
13854
  headers?: {
13985
13855
  /**
13986
13856
  * Idempotency-Key
@@ -13994,9 +13864,9 @@ export type OpUpdateStructureData = {
13994
13864
  graph_id: string;
13995
13865
  };
13996
13866
  query?: never;
13997
- url: '/extensions/roboledger/{graph_id}/operations/update-structure';
13867
+ url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy-block';
13998
13868
  };
13999
- export type OpUpdateStructureErrors = {
13869
+ export type OpUpdateTaxonomyBlockErrors = {
14000
13870
  /**
14001
13871
  * Invalid request payload
14002
13872
  */
@@ -14030,16 +13900,16 @@ export type OpUpdateStructureErrors = {
14030
13900
  */
14031
13901
  500: unknown;
14032
13902
  };
14033
- export type OpUpdateStructureError = OpUpdateStructureErrors[keyof OpUpdateStructureErrors];
14034
- export type OpUpdateStructureResponses = {
13903
+ export type OpUpdateTaxonomyBlockError = OpUpdateTaxonomyBlockErrors[keyof OpUpdateTaxonomyBlockErrors];
13904
+ export type OpUpdateTaxonomyBlockResponses = {
14035
13905
  /**
14036
13906
  * Successful Response
14037
13907
  */
14038
13908
  200: OperationEnvelope;
14039
13909
  };
14040
- export type OpUpdateStructureResponse = OpUpdateStructureResponses[keyof OpUpdateStructureResponses];
14041
- export type OpDeleteStructureData = {
14042
- body: DeleteStructureRequest;
13910
+ export type OpUpdateTaxonomyBlockResponse = OpUpdateTaxonomyBlockResponses[keyof OpUpdateTaxonomyBlockResponses];
13911
+ export type OpDeleteTaxonomyBlockData = {
13912
+ body: DeleteTaxonomyBlockRequest;
14043
13913
  headers?: {
14044
13914
  /**
14045
13915
  * Idempotency-Key
@@ -14053,9 +13923,9 @@ export type OpDeleteStructureData = {
14053
13923
  graph_id: string;
14054
13924
  };
14055
13925
  query?: never;
14056
- url: '/extensions/roboledger/{graph_id}/operations/delete-structure';
13926
+ url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy-block';
14057
13927
  };
14058
- export type OpDeleteStructureErrors = {
13928
+ export type OpDeleteTaxonomyBlockErrors = {
14059
13929
  /**
14060
13930
  * Invalid request payload
14061
13931
  */
@@ -14089,16 +13959,16 @@ export type OpDeleteStructureErrors = {
14089
13959
  */
14090
13960
  500: unknown;
14091
13961
  };
14092
- export type OpDeleteStructureError = OpDeleteStructureErrors[keyof OpDeleteStructureErrors];
14093
- export type OpDeleteStructureResponses = {
13962
+ export type OpDeleteTaxonomyBlockError = OpDeleteTaxonomyBlockErrors[keyof OpDeleteTaxonomyBlockErrors];
13963
+ export type OpDeleteTaxonomyBlockResponses = {
14094
13964
  /**
14095
13965
  * Successful Response
14096
13966
  */
14097
13967
  200: OperationEnvelope;
14098
13968
  };
14099
- export type OpDeleteStructureResponse = OpDeleteStructureResponses[keyof OpDeleteStructureResponses];
14100
- export type OpCreateElementData = {
14101
- body: CreateElementRequest;
13969
+ export type OpDeleteTaxonomyBlockResponse = OpDeleteTaxonomyBlockResponses[keyof OpDeleteTaxonomyBlockResponses];
13970
+ export type OpLinkEntityTaxonomyData = {
13971
+ body: LinkEntityTaxonomyRequest;
14102
13972
  headers?: {
14103
13973
  /**
14104
13974
  * Idempotency-Key
@@ -14112,9 +13982,9 @@ export type OpCreateElementData = {
14112
13982
  graph_id: string;
14113
13983
  };
14114
13984
  query?: never;
14115
- url: '/extensions/roboledger/{graph_id}/operations/create-element';
13985
+ url: '/extensions/roboledger/{graph_id}/operations/link-entity-taxonomy';
14116
13986
  };
14117
- export type OpCreateElementErrors = {
13987
+ export type OpLinkEntityTaxonomyErrors = {
14118
13988
  /**
14119
13989
  * Invalid request payload
14120
13990
  */
@@ -14148,16 +14018,16 @@ export type OpCreateElementErrors = {
14148
14018
  */
14149
14019
  500: unknown;
14150
14020
  };
14151
- export type OpCreateElementError = OpCreateElementErrors[keyof OpCreateElementErrors];
14152
- export type OpCreateElementResponses = {
14021
+ export type OpLinkEntityTaxonomyError = OpLinkEntityTaxonomyErrors[keyof OpLinkEntityTaxonomyErrors];
14022
+ export type OpLinkEntityTaxonomyResponses = {
14153
14023
  /**
14154
14024
  * Successful Response
14155
14025
  */
14156
14026
  200: OperationEnvelope;
14157
14027
  };
14158
- export type OpCreateElementResponse = OpCreateElementResponses[keyof OpCreateElementResponses];
14159
- export type OpUpdateElementData = {
14160
- body: UpdateElementRequest;
14028
+ export type OpLinkEntityTaxonomyResponse = OpLinkEntityTaxonomyResponses[keyof OpLinkEntityTaxonomyResponses];
14029
+ export type OpCreateMappingAssociationData = {
14030
+ body: CreateMappingAssociationOperation;
14161
14031
  headers?: {
14162
14032
  /**
14163
14033
  * Idempotency-Key
@@ -14171,9 +14041,9 @@ export type OpUpdateElementData = {
14171
14041
  graph_id: string;
14172
14042
  };
14173
14043
  query?: never;
14174
- url: '/extensions/roboledger/{graph_id}/operations/update-element';
14044
+ url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association';
14175
14045
  };
14176
- export type OpUpdateElementErrors = {
14046
+ export type OpCreateMappingAssociationErrors = {
14177
14047
  /**
14178
14048
  * Invalid request payload
14179
14049
  */
@@ -14207,16 +14077,16 @@ export type OpUpdateElementErrors = {
14207
14077
  */
14208
14078
  500: unknown;
14209
14079
  };
14210
- export type OpUpdateElementError = OpUpdateElementErrors[keyof OpUpdateElementErrors];
14211
- export type OpUpdateElementResponses = {
14080
+ export type OpCreateMappingAssociationError = OpCreateMappingAssociationErrors[keyof OpCreateMappingAssociationErrors];
14081
+ export type OpCreateMappingAssociationResponses = {
14212
14082
  /**
14213
14083
  * Successful Response
14214
14084
  */
14215
14085
  200: OperationEnvelope;
14216
14086
  };
14217
- export type OpUpdateElementResponse = OpUpdateElementResponses[keyof OpUpdateElementResponses];
14218
- export type OpDeleteElementData = {
14219
- body: DeleteElementRequest;
14087
+ export type OpCreateMappingAssociationResponse = OpCreateMappingAssociationResponses[keyof OpCreateMappingAssociationResponses];
14088
+ export type OpDeleteMappingAssociationData = {
14089
+ body: DeleteMappingAssociationOperation;
14220
14090
  headers?: {
14221
14091
  /**
14222
14092
  * Idempotency-Key
@@ -14230,29 +14100,29 @@ export type OpDeleteElementData = {
14230
14100
  graph_id: string;
14231
14101
  };
14232
14102
  query?: never;
14233
- url: '/extensions/roboledger/{graph_id}/operations/delete-element';
14103
+ url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association';
14234
14104
  };
14235
- export type OpDeleteElementErrors = {
14105
+ export type OpDeleteMappingAssociationErrors = {
14236
14106
  /**
14237
- * Invalid request payload
14107
+ * Invalid request
14238
14108
  */
14239
- 400: OperationError;
14109
+ 400: ErrorResponse;
14240
14110
  /**
14241
- * Unauthorized — missing or invalid credentials
14111
+ * Authentication required
14242
14112
  */
14243
- 401: unknown;
14113
+ 401: ErrorResponse;
14244
14114
  /**
14245
- * Forbidden — caller cannot access this graph
14115
+ * Access denied
14246
14116
  */
14247
- 403: unknown;
14117
+ 403: ErrorResponse;
14248
14118
  /**
14249
- * Resource not found (graph, ledger, report, etc.)
14119
+ * Resource not found
14250
14120
  */
14251
- 404: OperationError;
14121
+ 404: ErrorResponse;
14252
14122
  /**
14253
- * Idempotency-Key reused with a different request body, or other operation-level conflict
14123
+ * Idempotency-Key conflict — key reused with different body
14254
14124
  */
14255
- 409: OperationError;
14125
+ 409: ErrorResponse;
14256
14126
  /**
14257
14127
  * Validation Error
14258
14128
  */
@@ -14260,22 +14130,22 @@ export type OpDeleteElementErrors = {
14260
14130
  /**
14261
14131
  * Rate limit exceeded
14262
14132
  */
14263
- 429: unknown;
14133
+ 429: ErrorResponse;
14264
14134
  /**
14265
- * Internal error
14135
+ * Internal server error
14266
14136
  */
14267
- 500: unknown;
14137
+ 500: ErrorResponse;
14268
14138
  };
14269
- export type OpDeleteElementError = OpDeleteElementErrors[keyof OpDeleteElementErrors];
14270
- export type OpDeleteElementResponses = {
14139
+ export type OpDeleteMappingAssociationError = OpDeleteMappingAssociationErrors[keyof OpDeleteMappingAssociationErrors];
14140
+ export type OpDeleteMappingAssociationResponses = {
14271
14141
  /**
14272
14142
  * Successful Response
14273
14143
  */
14274
14144
  200: OperationEnvelope;
14275
14145
  };
14276
- export type OpDeleteElementResponse = OpDeleteElementResponses[keyof OpDeleteElementResponses];
14277
- export type OpCreateAssociationsData = {
14278
- body: BulkCreateAssociationsRequest;
14146
+ export type OpDeleteMappingAssociationResponse = OpDeleteMappingAssociationResponses[keyof OpDeleteMappingAssociationResponses];
14147
+ export type OpAutoMapElementsData = {
14148
+ body: AutoMapElementsOperation;
14279
14149
  headers?: {
14280
14150
  /**
14281
14151
  * Idempotency-Key
@@ -14289,29 +14159,29 @@ export type OpCreateAssociationsData = {
14289
14159
  graph_id: string;
14290
14160
  };
14291
14161
  query?: never;
14292
- url: '/extensions/roboledger/{graph_id}/operations/create-associations';
14162
+ url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements';
14293
14163
  };
14294
- export type OpCreateAssociationsErrors = {
14164
+ export type OpAutoMapElementsErrors = {
14295
14165
  /**
14296
- * Invalid request payload
14166
+ * Invalid request
14297
14167
  */
14298
- 400: OperationError;
14168
+ 400: ErrorResponse;
14299
14169
  /**
14300
- * Unauthorized — missing or invalid credentials
14170
+ * Authentication required
14301
14171
  */
14302
- 401: unknown;
14172
+ 401: ErrorResponse;
14303
14173
  /**
14304
- * Forbidden — caller cannot access this graph
14174
+ * Access denied
14305
14175
  */
14306
- 403: unknown;
14176
+ 403: ErrorResponse;
14307
14177
  /**
14308
- * Resource not found (graph, ledger, report, etc.)
14178
+ * Resource not found
14309
14179
  */
14310
- 404: OperationError;
14180
+ 404: ErrorResponse;
14311
14181
  /**
14312
- * Idempotency-Key reused with a different request body, or other operation-level conflict
14182
+ * Idempotency-Key conflict — key reused with different body
14313
14183
  */
14314
- 409: OperationError;
14184
+ 409: ErrorResponse;
14315
14185
  /**
14316
14186
  * Validation Error
14317
14187
  */
@@ -14319,22 +14189,22 @@ export type OpCreateAssociationsErrors = {
14319
14189
  /**
14320
14190
  * Rate limit exceeded
14321
14191
  */
14322
- 429: unknown;
14192
+ 429: ErrorResponse;
14323
14193
  /**
14324
- * Internal error
14194
+ * Internal server error
14325
14195
  */
14326
- 500: unknown;
14196
+ 500: ErrorResponse;
14327
14197
  };
14328
- export type OpCreateAssociationsError = OpCreateAssociationsErrors[keyof OpCreateAssociationsErrors];
14329
- export type OpCreateAssociationsResponses = {
14198
+ export type OpAutoMapElementsError = OpAutoMapElementsErrors[keyof OpAutoMapElementsErrors];
14199
+ export type OpAutoMapElementsResponses = {
14330
14200
  /**
14331
14201
  * Successful Response
14332
14202
  */
14333
- 200: OperationEnvelope;
14203
+ 202: OperationEnvelope;
14334
14204
  };
14335
- export type OpCreateAssociationsResponse = OpCreateAssociationsResponses[keyof OpCreateAssociationsResponses];
14336
- export type OpUpdateAssociationData = {
14337
- body: UpdateAssociationRequest;
14205
+ export type OpAutoMapElementsResponse = OpAutoMapElementsResponses[keyof OpAutoMapElementsResponses];
14206
+ export type OpCreateInformationBlockData = {
14207
+ body: CreateInformationBlockRequest;
14338
14208
  headers?: {
14339
14209
  /**
14340
14210
  * Idempotency-Key
@@ -14348,9 +14218,9 @@ export type OpUpdateAssociationData = {
14348
14218
  graph_id: string;
14349
14219
  };
14350
14220
  query?: never;
14351
- url: '/extensions/roboledger/{graph_id}/operations/update-association';
14221
+ url: '/extensions/roboledger/{graph_id}/operations/create-information-block';
14352
14222
  };
14353
- export type OpUpdateAssociationErrors = {
14223
+ export type OpCreateInformationBlockErrors = {
14354
14224
  /**
14355
14225
  * Invalid request payload
14356
14226
  */
@@ -14384,16 +14254,16 @@ export type OpUpdateAssociationErrors = {
14384
14254
  */
14385
14255
  500: unknown;
14386
14256
  };
14387
- export type OpUpdateAssociationError = OpUpdateAssociationErrors[keyof OpUpdateAssociationErrors];
14388
- export type OpUpdateAssociationResponses = {
14257
+ export type OpCreateInformationBlockError = OpCreateInformationBlockErrors[keyof OpCreateInformationBlockErrors];
14258
+ export type OpCreateInformationBlockResponses = {
14389
14259
  /**
14390
14260
  * Successful Response
14391
14261
  */
14392
14262
  200: OperationEnvelope;
14393
14263
  };
14394
- export type OpUpdateAssociationResponse = OpUpdateAssociationResponses[keyof OpUpdateAssociationResponses];
14395
- export type OpDeleteAssociationData = {
14396
- body: DeleteAssociationRequest;
14264
+ export type OpCreateInformationBlockResponse = OpCreateInformationBlockResponses[keyof OpCreateInformationBlockResponses];
14265
+ export type OpUpdateInformationBlockData = {
14266
+ body: UpdateInformationBlockRequest;
14397
14267
  headers?: {
14398
14268
  /**
14399
14269
  * Idempotency-Key
@@ -14407,9 +14277,9 @@ export type OpDeleteAssociationData = {
14407
14277
  graph_id: string;
14408
14278
  };
14409
14279
  query?: never;
14410
- url: '/extensions/roboledger/{graph_id}/operations/delete-association';
14280
+ url: '/extensions/roboledger/{graph_id}/operations/update-information-block';
14411
14281
  };
14412
- export type OpDeleteAssociationErrors = {
14282
+ export type OpUpdateInformationBlockErrors = {
14413
14283
  /**
14414
14284
  * Invalid request payload
14415
14285
  */
@@ -14443,16 +14313,16 @@ export type OpDeleteAssociationErrors = {
14443
14313
  */
14444
14314
  500: unknown;
14445
14315
  };
14446
- export type OpDeleteAssociationError = OpDeleteAssociationErrors[keyof OpDeleteAssociationErrors];
14447
- export type OpDeleteAssociationResponses = {
14316
+ export type OpUpdateInformationBlockError = OpUpdateInformationBlockErrors[keyof OpUpdateInformationBlockErrors];
14317
+ export type OpUpdateInformationBlockResponses = {
14448
14318
  /**
14449
14319
  * Successful Response
14450
14320
  */
14451
14321
  200: OperationEnvelope;
14452
14322
  };
14453
- export type OpDeleteAssociationResponse = OpDeleteAssociationResponses[keyof OpDeleteAssociationResponses];
14454
- export type OpCreateTransactionData = {
14455
- body: CreateTransactionRequest;
14323
+ export type OpUpdateInformationBlockResponse = OpUpdateInformationBlockResponses[keyof OpUpdateInformationBlockResponses];
14324
+ export type OpDeleteInformationBlockData = {
14325
+ body: DeleteInformationBlockRequest;
14456
14326
  headers?: {
14457
14327
  /**
14458
14328
  * Idempotency-Key
@@ -14466,9 +14336,9 @@ export type OpCreateTransactionData = {
14466
14336
  graph_id: string;
14467
14337
  };
14468
14338
  query?: never;
14469
- url: '/extensions/roboledger/{graph_id}/operations/create-transaction';
14339
+ url: '/extensions/roboledger/{graph_id}/operations/delete-information-block';
14470
14340
  };
14471
- export type OpCreateTransactionErrors = {
14341
+ export type OpDeleteInformationBlockErrors = {
14472
14342
  /**
14473
14343
  * Invalid request payload
14474
14344
  */
@@ -14502,16 +14372,16 @@ export type OpCreateTransactionErrors = {
14502
14372
  */
14503
14373
  500: unknown;
14504
14374
  };
14505
- export type OpCreateTransactionError = OpCreateTransactionErrors[keyof OpCreateTransactionErrors];
14506
- export type OpCreateTransactionResponses = {
14375
+ export type OpDeleteInformationBlockError = OpDeleteInformationBlockErrors[keyof OpDeleteInformationBlockErrors];
14376
+ export type OpDeleteInformationBlockResponses = {
14507
14377
  /**
14508
14378
  * Successful Response
14509
14379
  */
14510
14380
  200: OperationEnvelope;
14511
14381
  };
14512
- export type OpCreateTransactionResponse = OpCreateTransactionResponses[keyof OpCreateTransactionResponses];
14513
- export type OpCreateJournalEntryData = {
14514
- body: CreateJournalEntryRequest;
14382
+ export type OpDeleteInformationBlockResponse = OpDeleteInformationBlockResponses[keyof OpDeleteInformationBlockResponses];
14383
+ export type OpEvaluateRulesData = {
14384
+ body: EvaluateRulesRequest;
14515
14385
  headers?: {
14516
14386
  /**
14517
14387
  * Idempotency-Key
@@ -14525,9 +14395,9 @@ export type OpCreateJournalEntryData = {
14525
14395
  graph_id: string;
14526
14396
  };
14527
14397
  query?: never;
14528
- url: '/extensions/roboledger/{graph_id}/operations/create-journal-entry';
14398
+ url: '/extensions/roboledger/{graph_id}/operations/evaluate-rules';
14529
14399
  };
14530
- export type OpCreateJournalEntryErrors = {
14400
+ export type OpEvaluateRulesErrors = {
14531
14401
  /**
14532
14402
  * Invalid request payload
14533
14403
  */
@@ -14561,16 +14431,16 @@ export type OpCreateJournalEntryErrors = {
14561
14431
  */
14562
14432
  500: unknown;
14563
14433
  };
14564
- export type OpCreateJournalEntryError = OpCreateJournalEntryErrors[keyof OpCreateJournalEntryErrors];
14565
- export type OpCreateJournalEntryResponses = {
14434
+ export type OpEvaluateRulesError = OpEvaluateRulesErrors[keyof OpEvaluateRulesErrors];
14435
+ export type OpEvaluateRulesResponses = {
14566
14436
  /**
14567
14437
  * Successful Response
14568
14438
  */
14569
14439
  200: OperationEnvelope;
14570
14440
  };
14571
- export type OpCreateJournalEntryResponse = OpCreateJournalEntryResponses[keyof OpCreateJournalEntryResponses];
14572
- export type OpUpdateJournalEntryData = {
14573
- body: UpdateJournalEntryRequest;
14441
+ export type OpEvaluateRulesResponse = OpEvaluateRulesResponses[keyof OpEvaluateRulesResponses];
14442
+ export type OpCreateAgentData = {
14443
+ body: CreateAgentRequest;
14574
14444
  headers?: {
14575
14445
  /**
14576
14446
  * Idempotency-Key
@@ -14584,9 +14454,9 @@ export type OpUpdateJournalEntryData = {
14584
14454
  graph_id: string;
14585
14455
  };
14586
14456
  query?: never;
14587
- url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry';
14457
+ url: '/extensions/roboledger/{graph_id}/operations/create-agent';
14588
14458
  };
14589
- export type OpUpdateJournalEntryErrors = {
14459
+ export type OpCreateAgentErrors = {
14590
14460
  /**
14591
14461
  * Invalid request payload
14592
14462
  */
@@ -14620,16 +14490,16 @@ export type OpUpdateJournalEntryErrors = {
14620
14490
  */
14621
14491
  500: unknown;
14622
14492
  };
14623
- export type OpUpdateJournalEntryError = OpUpdateJournalEntryErrors[keyof OpUpdateJournalEntryErrors];
14624
- export type OpUpdateJournalEntryResponses = {
14493
+ export type OpCreateAgentError = OpCreateAgentErrors[keyof OpCreateAgentErrors];
14494
+ export type OpCreateAgentResponses = {
14625
14495
  /**
14626
14496
  * Successful Response
14627
14497
  */
14628
14498
  200: OperationEnvelope;
14629
14499
  };
14630
- export type OpUpdateJournalEntryResponse = OpUpdateJournalEntryResponses[keyof OpUpdateJournalEntryResponses];
14631
- export type OpDeleteJournalEntryData = {
14632
- body: DeleteJournalEntryRequest;
14500
+ export type OpCreateAgentResponse = OpCreateAgentResponses[keyof OpCreateAgentResponses];
14501
+ export type OpUpdateAgentData = {
14502
+ body: UpdateAgentRequest;
14633
14503
  headers?: {
14634
14504
  /**
14635
14505
  * Idempotency-Key
@@ -14643,9 +14513,9 @@ export type OpDeleteJournalEntryData = {
14643
14513
  graph_id: string;
14644
14514
  };
14645
14515
  query?: never;
14646
- url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry';
14516
+ url: '/extensions/roboledger/{graph_id}/operations/update-agent';
14647
14517
  };
14648
- export type OpDeleteJournalEntryErrors = {
14518
+ export type OpUpdateAgentErrors = {
14649
14519
  /**
14650
14520
  * Invalid request payload
14651
14521
  */
@@ -14679,16 +14549,16 @@ export type OpDeleteJournalEntryErrors = {
14679
14549
  */
14680
14550
  500: unknown;
14681
14551
  };
14682
- export type OpDeleteJournalEntryError = OpDeleteJournalEntryErrors[keyof OpDeleteJournalEntryErrors];
14683
- export type OpDeleteJournalEntryResponses = {
14552
+ export type OpUpdateAgentError = OpUpdateAgentErrors[keyof OpUpdateAgentErrors];
14553
+ export type OpUpdateAgentResponses = {
14684
14554
  /**
14685
14555
  * Successful Response
14686
14556
  */
14687
14557
  200: OperationEnvelope;
14688
14558
  };
14689
- export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
14690
- export type OpReverseJournalEntryData = {
14691
- body: ReverseJournalEntryRequest;
14559
+ export type OpUpdateAgentResponse = OpUpdateAgentResponses[keyof OpUpdateAgentResponses];
14560
+ export type OpCreateEventBlockData = {
14561
+ body: CreateEventBlockRequest;
14692
14562
  headers?: {
14693
14563
  /**
14694
14564
  * Idempotency-Key
@@ -14702,9 +14572,9 @@ export type OpReverseJournalEntryData = {
14702
14572
  graph_id: string;
14703
14573
  };
14704
14574
  query?: never;
14705
- url: '/extensions/roboledger/{graph_id}/operations/reverse-journal-entry';
14575
+ url: '/extensions/roboledger/{graph_id}/operations/create-event-block';
14706
14576
  };
14707
- export type OpReverseJournalEntryErrors = {
14577
+ export type OpCreateEventBlockErrors = {
14708
14578
  /**
14709
14579
  * Invalid request payload
14710
14580
  */
@@ -14738,16 +14608,16 @@ export type OpReverseJournalEntryErrors = {
14738
14608
  */
14739
14609
  500: unknown;
14740
14610
  };
14741
- export type OpReverseJournalEntryError = OpReverseJournalEntryErrors[keyof OpReverseJournalEntryErrors];
14742
- export type OpReverseJournalEntryResponses = {
14611
+ export type OpCreateEventBlockError = OpCreateEventBlockErrors[keyof OpCreateEventBlockErrors];
14612
+ export type OpCreateEventBlockResponses = {
14743
14613
  /**
14744
14614
  * Successful Response
14745
14615
  */
14746
14616
  200: OperationEnvelope;
14747
14617
  };
14748
- export type OpReverseJournalEntryResponse = OpReverseJournalEntryResponses[keyof OpReverseJournalEntryResponses];
14749
- export type OpTruncateScheduleData = {
14750
- body: TruncateScheduleOperation;
14618
+ export type OpCreateEventBlockResponse = OpCreateEventBlockResponses[keyof OpCreateEventBlockResponses];
14619
+ export type OpUpdateEventBlockData = {
14620
+ body: UpdateEventBlockRequest;
14751
14621
  headers?: {
14752
14622
  /**
14753
14623
  * Idempotency-Key
@@ -14761,9 +14631,9 @@ export type OpTruncateScheduleData = {
14761
14631
  graph_id: string;
14762
14632
  };
14763
14633
  query?: never;
14764
- url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule';
14634
+ url: '/extensions/roboledger/{graph_id}/operations/update-event-block';
14765
14635
  };
14766
- export type OpTruncateScheduleErrors = {
14636
+ export type OpUpdateEventBlockErrors = {
14767
14637
  /**
14768
14638
  * Invalid request payload
14769
14639
  */
@@ -14797,16 +14667,16 @@ export type OpTruncateScheduleErrors = {
14797
14667
  */
14798
14668
  500: unknown;
14799
14669
  };
14800
- export type OpTruncateScheduleError = OpTruncateScheduleErrors[keyof OpTruncateScheduleErrors];
14801
- export type OpTruncateScheduleResponses = {
14670
+ export type OpUpdateEventBlockError = OpUpdateEventBlockErrors[keyof OpUpdateEventBlockErrors];
14671
+ export type OpUpdateEventBlockResponses = {
14802
14672
  /**
14803
14673
  * Successful Response
14804
14674
  */
14805
14675
  200: OperationEnvelope;
14806
14676
  };
14807
- export type OpTruncateScheduleResponse = OpTruncateScheduleResponses[keyof OpTruncateScheduleResponses];
14808
- export type OpCreateClosingEntryData = {
14809
- body: CreateClosingEntryOperation;
14677
+ export type OpUpdateEventBlockResponse = OpUpdateEventBlockResponses[keyof OpUpdateEventBlockResponses];
14678
+ export type OpCreateEventHandlerData = {
14679
+ body: CreateEventHandlerRequest;
14810
14680
  headers?: {
14811
14681
  /**
14812
14682
  * Idempotency-Key
@@ -14820,9 +14690,9 @@ export type OpCreateClosingEntryData = {
14820
14690
  graph_id: string;
14821
14691
  };
14822
14692
  query?: never;
14823
- url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry';
14693
+ url: '/extensions/roboledger/{graph_id}/operations/create-event-handler';
14824
14694
  };
14825
- export type OpCreateClosingEntryErrors = {
14695
+ export type OpCreateEventHandlerErrors = {
14826
14696
  /**
14827
14697
  * Invalid request payload
14828
14698
  */
@@ -14856,16 +14726,16 @@ export type OpCreateClosingEntryErrors = {
14856
14726
  */
14857
14727
  500: unknown;
14858
14728
  };
14859
- export type OpCreateClosingEntryError = OpCreateClosingEntryErrors[keyof OpCreateClosingEntryErrors];
14860
- export type OpCreateClosingEntryResponses = {
14729
+ export type OpCreateEventHandlerError = OpCreateEventHandlerErrors[keyof OpCreateEventHandlerErrors];
14730
+ export type OpCreateEventHandlerResponses = {
14861
14731
  /**
14862
14732
  * Successful Response
14863
14733
  */
14864
14734
  200: OperationEnvelope;
14865
14735
  };
14866
- export type OpCreateClosingEntryResponse = OpCreateClosingEntryResponses[keyof OpCreateClosingEntryResponses];
14867
- export type OpCreateManualClosingEntryData = {
14868
- body: CreateManualClosingEntryRequest;
14736
+ export type OpCreateEventHandlerResponse = OpCreateEventHandlerResponses[keyof OpCreateEventHandlerResponses];
14737
+ export type OpUpdateEventHandlerData = {
14738
+ body: UpdateEventHandlerRequest;
14869
14739
  headers?: {
14870
14740
  /**
14871
14741
  * Idempotency-Key
@@ -14879,9 +14749,9 @@ export type OpCreateManualClosingEntryData = {
14879
14749
  graph_id: string;
14880
14750
  };
14881
14751
  query?: never;
14882
- url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry';
14752
+ url: '/extensions/roboledger/{graph_id}/operations/update-event-handler';
14883
14753
  };
14884
- export type OpCreateManualClosingEntryErrors = {
14754
+ export type OpUpdateEventHandlerErrors = {
14885
14755
  /**
14886
14756
  * Invalid request payload
14887
14757
  */
@@ -14915,16 +14785,16 @@ export type OpCreateManualClosingEntryErrors = {
14915
14785
  */
14916
14786
  500: unknown;
14917
14787
  };
14918
- export type OpCreateManualClosingEntryError = OpCreateManualClosingEntryErrors[keyof OpCreateManualClosingEntryErrors];
14919
- export type OpCreateManualClosingEntryResponses = {
14788
+ export type OpUpdateEventHandlerError = OpUpdateEventHandlerErrors[keyof OpUpdateEventHandlerErrors];
14789
+ export type OpUpdateEventHandlerResponses = {
14920
14790
  /**
14921
14791
  * Successful Response
14922
14792
  */
14923
14793
  200: OperationEnvelope;
14924
14794
  };
14925
- export type OpCreateManualClosingEntryResponse = OpCreateManualClosingEntryResponses[keyof OpCreateManualClosingEntryResponses];
14926
- export type OpCreateInformationBlockData = {
14927
- body: CreateInformationBlockRequest;
14795
+ export type OpUpdateEventHandlerResponse = OpUpdateEventHandlerResponses[keyof OpUpdateEventHandlerResponses];
14796
+ export type OpPreviewEventBlockData = {
14797
+ body: CreateEventBlockRequest;
14928
14798
  headers?: {
14929
14799
  /**
14930
14800
  * Idempotency-Key
@@ -14938,9 +14808,9 @@ export type OpCreateInformationBlockData = {
14938
14808
  graph_id: string;
14939
14809
  };
14940
14810
  query?: never;
14941
- url: '/extensions/roboledger/{graph_id}/operations/create-information-block';
14811
+ url: '/extensions/roboledger/{graph_id}/operations/preview-event-block';
14942
14812
  };
14943
- export type OpCreateInformationBlockErrors = {
14813
+ export type OpPreviewEventBlockErrors = {
14944
14814
  /**
14945
14815
  * Invalid request payload
14946
14816
  */
@@ -14974,16 +14844,16 @@ export type OpCreateInformationBlockErrors = {
14974
14844
  */
14975
14845
  500: unknown;
14976
14846
  };
14977
- export type OpCreateInformationBlockError = OpCreateInformationBlockErrors[keyof OpCreateInformationBlockErrors];
14978
- export type OpCreateInformationBlockResponses = {
14847
+ export type OpPreviewEventBlockError = OpPreviewEventBlockErrors[keyof OpPreviewEventBlockErrors];
14848
+ export type OpPreviewEventBlockResponses = {
14979
14849
  /**
14980
14850
  * Successful Response
14981
14851
  */
14982
14852
  200: OperationEnvelope;
14983
14853
  };
14984
- export type OpCreateInformationBlockResponse = OpCreateInformationBlockResponses[keyof OpCreateInformationBlockResponses];
14985
- export type OpUpdateInformationBlockData = {
14986
- body: UpdateInformationBlockRequest;
14854
+ export type OpPreviewEventBlockResponse = OpPreviewEventBlockResponses[keyof OpPreviewEventBlockResponses];
14855
+ export type OpUpdateJournalEntryData = {
14856
+ body: UpdateJournalEntryRequest;
14987
14857
  headers?: {
14988
14858
  /**
14989
14859
  * Idempotency-Key
@@ -14997,9 +14867,9 @@ export type OpUpdateInformationBlockData = {
14997
14867
  graph_id: string;
14998
14868
  };
14999
14869
  query?: never;
15000
- url: '/extensions/roboledger/{graph_id}/operations/update-information-block';
14870
+ url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry';
15001
14871
  };
15002
- export type OpUpdateInformationBlockErrors = {
14872
+ export type OpUpdateJournalEntryErrors = {
15003
14873
  /**
15004
14874
  * Invalid request payload
15005
14875
  */
@@ -15033,16 +14903,16 @@ export type OpUpdateInformationBlockErrors = {
15033
14903
  */
15034
14904
  500: unknown;
15035
14905
  };
15036
- export type OpUpdateInformationBlockError = OpUpdateInformationBlockErrors[keyof OpUpdateInformationBlockErrors];
15037
- export type OpUpdateInformationBlockResponses = {
14906
+ export type OpUpdateJournalEntryError = OpUpdateJournalEntryErrors[keyof OpUpdateJournalEntryErrors];
14907
+ export type OpUpdateJournalEntryResponses = {
15038
14908
  /**
15039
14909
  * Successful Response
15040
14910
  */
15041
14911
  200: OperationEnvelope;
15042
14912
  };
15043
- export type OpUpdateInformationBlockResponse = OpUpdateInformationBlockResponses[keyof OpUpdateInformationBlockResponses];
15044
- export type OpDeleteInformationBlockData = {
15045
- body: DeleteInformationBlockRequest;
14913
+ export type OpUpdateJournalEntryResponse = OpUpdateJournalEntryResponses[keyof OpUpdateJournalEntryResponses];
14914
+ export type OpDeleteJournalEntryData = {
14915
+ body: DeleteJournalEntryRequest;
15046
14916
  headers?: {
15047
14917
  /**
15048
14918
  * Idempotency-Key
@@ -15056,9 +14926,9 @@ export type OpDeleteInformationBlockData = {
15056
14926
  graph_id: string;
15057
14927
  };
15058
14928
  query?: never;
15059
- url: '/extensions/roboledger/{graph_id}/operations/delete-information-block';
14929
+ url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry';
15060
14930
  };
15061
- export type OpDeleteInformationBlockErrors = {
14931
+ export type OpDeleteJournalEntryErrors = {
15062
14932
  /**
15063
14933
  * Invalid request payload
15064
14934
  */
@@ -15092,16 +14962,16 @@ export type OpDeleteInformationBlockErrors = {
15092
14962
  */
15093
14963
  500: unknown;
15094
14964
  };
15095
- export type OpDeleteInformationBlockError = OpDeleteInformationBlockErrors[keyof OpDeleteInformationBlockErrors];
15096
- export type OpDeleteInformationBlockResponses = {
14965
+ export type OpDeleteJournalEntryError = OpDeleteJournalEntryErrors[keyof OpDeleteJournalEntryErrors];
14966
+ export type OpDeleteJournalEntryResponses = {
15097
14967
  /**
15098
14968
  * Successful Response
15099
14969
  */
15100
14970
  200: OperationEnvelope;
15101
14971
  };
15102
- export type OpDeleteInformationBlockResponse = OpDeleteInformationBlockResponses[keyof OpDeleteInformationBlockResponses];
15103
- export type OpEvaluateRulesData = {
15104
- body: EvaluateRulesRequest;
14972
+ export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
14973
+ export type OpSetCloseTargetData = {
14974
+ body: SetCloseTargetOperation;
15105
14975
  headers?: {
15106
14976
  /**
15107
14977
  * Idempotency-Key
@@ -15115,29 +14985,29 @@ export type OpEvaluateRulesData = {
15115
14985
  graph_id: string;
15116
14986
  };
15117
14987
  query?: never;
15118
- url: '/extensions/roboledger/{graph_id}/operations/evaluate-rules';
14988
+ url: '/extensions/roboledger/{graph_id}/operations/set-close-target';
15119
14989
  };
15120
- export type OpEvaluateRulesErrors = {
14990
+ export type OpSetCloseTargetErrors = {
15121
14991
  /**
15122
- * Invalid request payload
14992
+ * Invalid request
15123
14993
  */
15124
- 400: OperationError;
14994
+ 400: ErrorResponse;
15125
14995
  /**
15126
- * Unauthorized — missing or invalid credentials
14996
+ * Authentication required
15127
14997
  */
15128
- 401: unknown;
14998
+ 401: ErrorResponse;
15129
14999
  /**
15130
- * Forbidden — caller cannot access this graph
15000
+ * Access denied
15131
15001
  */
15132
- 403: unknown;
15002
+ 403: ErrorResponse;
15133
15003
  /**
15134
- * Resource not found (graph, ledger, report, etc.)
15004
+ * Resource not found
15135
15005
  */
15136
- 404: OperationError;
15006
+ 404: ErrorResponse;
15137
15007
  /**
15138
- * Idempotency-Key reused with a different request body, or other operation-level conflict
15008
+ * Idempotency-Key conflict — key reused with different body
15139
15009
  */
15140
- 409: OperationError;
15010
+ 409: ErrorResponse;
15141
15011
  /**
15142
15012
  * Validation Error
15143
15013
  */
@@ -15145,22 +15015,22 @@ export type OpEvaluateRulesErrors = {
15145
15015
  /**
15146
15016
  * Rate limit exceeded
15147
15017
  */
15148
- 429: unknown;
15018
+ 429: ErrorResponse;
15149
15019
  /**
15150
- * Internal error
15020
+ * Internal server error
15151
15021
  */
15152
- 500: unknown;
15022
+ 500: ErrorResponse;
15153
15023
  };
15154
- export type OpEvaluateRulesError = OpEvaluateRulesErrors[keyof OpEvaluateRulesErrors];
15155
- export type OpEvaluateRulesResponses = {
15024
+ export type OpSetCloseTargetError = OpSetCloseTargetErrors[keyof OpSetCloseTargetErrors];
15025
+ export type OpSetCloseTargetResponses = {
15156
15026
  /**
15157
15027
  * Successful Response
15158
15028
  */
15159
15029
  200: OperationEnvelope;
15160
15030
  };
15161
- export type OpEvaluateRulesResponse = OpEvaluateRulesResponses[keyof OpEvaluateRulesResponses];
15162
- export type OpCreateMappingAssociationData = {
15163
- body: CreateMappingAssociationOperation;
15031
+ export type OpSetCloseTargetResponse = OpSetCloseTargetResponses[keyof OpSetCloseTargetResponses];
15032
+ export type OpClosePeriodData = {
15033
+ body: ClosePeriodOperation;
15164
15034
  headers?: {
15165
15035
  /**
15166
15036
  * Idempotency-Key
@@ -15174,29 +15044,29 @@ export type OpCreateMappingAssociationData = {
15174
15044
  graph_id: string;
15175
15045
  };
15176
15046
  query?: never;
15177
- url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association';
15047
+ url: '/extensions/roboledger/{graph_id}/operations/close-period';
15178
15048
  };
15179
- export type OpCreateMappingAssociationErrors = {
15049
+ export type OpClosePeriodErrors = {
15180
15050
  /**
15181
- * Invalid request payload
15051
+ * Invalid request
15182
15052
  */
15183
- 400: OperationError;
15053
+ 400: ErrorResponse;
15184
15054
  /**
15185
- * Unauthorized — missing or invalid credentials
15055
+ * Authentication required
15186
15056
  */
15187
- 401: unknown;
15057
+ 401: ErrorResponse;
15188
15058
  /**
15189
- * Forbidden — caller cannot access this graph
15059
+ * Access denied
15190
15060
  */
15191
- 403: unknown;
15061
+ 403: ErrorResponse;
15192
15062
  /**
15193
- * Resource not found (graph, ledger, report, etc.)
15063
+ * Resource not found
15194
15064
  */
15195
- 404: OperationError;
15065
+ 404: ErrorResponse;
15196
15066
  /**
15197
- * Idempotency-Key reused with a different request body, or other operation-level conflict
15067
+ * Idempotency-Key conflict — key reused with different body
15198
15068
  */
15199
- 409: OperationError;
15069
+ 409: ErrorResponse;
15200
15070
  /**
15201
15071
  * Validation Error
15202
15072
  */
@@ -15204,22 +15074,22 @@ export type OpCreateMappingAssociationErrors = {
15204
15074
  /**
15205
15075
  * Rate limit exceeded
15206
15076
  */
15207
- 429: unknown;
15077
+ 429: ErrorResponse;
15208
15078
  /**
15209
- * Internal error
15079
+ * Internal server error
15210
15080
  */
15211
- 500: unknown;
15081
+ 500: ErrorResponse;
15212
15082
  };
15213
- export type OpCreateMappingAssociationError = OpCreateMappingAssociationErrors[keyof OpCreateMappingAssociationErrors];
15214
- export type OpCreateMappingAssociationResponses = {
15083
+ export type OpClosePeriodError = OpClosePeriodErrors[keyof OpClosePeriodErrors];
15084
+ export type OpClosePeriodResponses = {
15215
15085
  /**
15216
15086
  * Successful Response
15217
15087
  */
15218
15088
  200: OperationEnvelope;
15219
15089
  };
15220
- export type OpCreateMappingAssociationResponse = OpCreateMappingAssociationResponses[keyof OpCreateMappingAssociationResponses];
15221
- export type OpAutoMapElementsData = {
15222
- body: AutoMapElementsOperation;
15090
+ export type OpClosePeriodResponse = OpClosePeriodResponses[keyof OpClosePeriodResponses];
15091
+ export type OpReopenPeriodData = {
15092
+ body: ReopenPeriodOperation;
15223
15093
  headers?: {
15224
15094
  /**
15225
15095
  * Idempotency-Key
@@ -15233,9 +15103,9 @@ export type OpAutoMapElementsData = {
15233
15103
  graph_id: string;
15234
15104
  };
15235
15105
  query?: never;
15236
- url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements';
15106
+ url: '/extensions/roboledger/{graph_id}/operations/reopen-period';
15237
15107
  };
15238
- export type OpAutoMapElementsErrors = {
15108
+ export type OpReopenPeriodErrors = {
15239
15109
  /**
15240
15110
  * Invalid request
15241
15111
  */
@@ -15269,14 +15139,14 @@ export type OpAutoMapElementsErrors = {
15269
15139
  */
15270
15140
  500: ErrorResponse;
15271
15141
  };
15272
- export type OpAutoMapElementsError = OpAutoMapElementsErrors[keyof OpAutoMapElementsErrors];
15273
- export type OpAutoMapElementsResponses = {
15142
+ export type OpReopenPeriodError = OpReopenPeriodErrors[keyof OpReopenPeriodErrors];
15143
+ export type OpReopenPeriodResponses = {
15274
15144
  /**
15275
15145
  * Successful Response
15276
15146
  */
15277
- 202: OperationEnvelope;
15147
+ 200: OperationEnvelope;
15278
15148
  };
15279
- export type OpAutoMapElementsResponse = OpAutoMapElementsResponses[keyof OpAutoMapElementsResponses];
15149
+ export type OpReopenPeriodResponse = OpReopenPeriodResponses[keyof OpReopenPeriodResponses];
15280
15150
  export type OpCreateReportData = {
15281
15151
  body: CreateReportRequest;
15282
15152
  headers?: {