@robosystems/client 0.3.7 → 0.3.9

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.
Files changed (45) hide show
  1. package/artifacts/LedgerClient.d.ts +27 -14
  2. package/artifacts/LedgerClient.js +59 -39
  3. package/artifacts/LedgerClient.ts +89 -62
  4. package/artifacts/LibraryClient.d.ts +117 -0
  5. package/artifacts/LibraryClient.js +132 -0
  6. package/artifacts/LibraryClient.ts +358 -0
  7. package/artifacts/graphql/generated/graphql.d.ts +686 -79
  8. package/artifacts/graphql/generated/graphql.js +1121 -135
  9. package/artifacts/graphql/generated/graphql.ts +1887 -281
  10. package/artifacts/graphql/queries/ledger/informationBlock.d.ts +15 -0
  11. package/artifacts/graphql/queries/ledger/informationBlock.js +125 -0
  12. package/artifacts/graphql/queries/ledger/informationBlock.ts +124 -0
  13. package/artifacts/graphql/queries/library/arcs.d.ts +24 -0
  14. package/artifacts/graphql/queries/library/arcs.js +106 -0
  15. package/artifacts/graphql/queries/library/arcs.ts +107 -0
  16. package/artifacts/graphql/queries/library/elements.d.ts +24 -0
  17. package/artifacts/graphql/queries/library/elements.js +134 -0
  18. package/artifacts/graphql/queries/library/elements.ts +134 -0
  19. package/artifacts/graphql/queries/library/taxonomies.d.ts +15 -0
  20. package/artifacts/graphql/queries/library/taxonomies.js +61 -0
  21. package/artifacts/graphql/queries/library/taxonomies.ts +60 -0
  22. package/artifacts/index.d.ts +5 -1
  23. package/artifacts/index.js +17 -1
  24. package/artifacts/index.ts +26 -1
  25. package/index.ts +2 -2
  26. package/package.json +7 -1
  27. package/sdk/index.d.ts +2 -2
  28. package/sdk/index.js +9 -7
  29. package/sdk/index.ts +2 -2
  30. package/sdk/sdk.gen.d.ts +80 -62
  31. package/sdk/sdk.gen.js +158 -122
  32. package/sdk/sdk.gen.ts +154 -118
  33. package/sdk/types.gen.d.ts +801 -623
  34. package/sdk/types.gen.ts +825 -638
  35. package/sdk.gen.d.ts +80 -62
  36. package/sdk.gen.js +158 -122
  37. package/sdk.gen.ts +154 -118
  38. package/types.gen.d.ts +801 -623
  39. package/types.gen.ts +825 -638
  40. package/artifacts/graphql/queries/ledger/scheduleFacts.d.ts +0 -7
  41. package/artifacts/graphql/queries/ledger/scheduleFacts.js +0 -24
  42. package/artifacts/graphql/queries/ledger/scheduleFacts.ts +0 -22
  43. package/artifacts/graphql/queries/ledger/schedules.d.ts +0 -6
  44. package/artifacts/graphql/queries/ledger/schedules.js +0 -24
  45. package/artifacts/graphql/queries/ledger/schedules.ts +0 -22
@@ -935,44 +935,6 @@ export type BulkCreateAssociationsRequest = {
935
935
  */
936
936
  associations: Array<BulkAssociationItem>;
937
937
  };
938
- /**
939
- * BulkDocumentUploadRequest
940
- *
941
- * Bulk upload multiple markdown documents.
942
- */
943
- export type BulkDocumentUploadRequest = {
944
- /**
945
- * Documents
946
- *
947
- * Documents to upload (max 50)
948
- */
949
- documents: Array<DocumentUploadRequest>;
950
- };
951
- /**
952
- * BulkDocumentUploadResponse
953
- *
954
- * Response from bulk document upload.
955
- */
956
- export type BulkDocumentUploadResponse = {
957
- /**
958
- * Total Documents
959
- */
960
- total_documents: number;
961
- /**
962
- * Total Sections Indexed
963
- */
964
- total_sections_indexed: number;
965
- /**
966
- * Results
967
- */
968
- results: Array<DocumentUploadResponse>;
969
- /**
970
- * Errors
971
- */
972
- errors?: Array<{
973
- [key: string]: unknown;
974
- }> | null;
975
- };
976
938
  /**
977
939
  * ChangeTierOp
978
940
  *
@@ -1375,6 +1337,11 @@ export type CreateCheckoutRequest = {
1375
1337
  };
1376
1338
  /**
1377
1339
  * CreateClosingEntryOperation
1340
+ *
1341
+ * CQRS-shaped body for `POST /operations/create-closing-entry`.
1342
+ *
1343
+ * `structure_id` moves into the body so REST + MCP share a single body
1344
+ * type via the registrar.
1378
1345
  */
1379
1346
  export type CreateClosingEntryOperation = {
1380
1347
  /**
@@ -1403,6 +1370,8 @@ export type CreateClosingEntryOperation = {
1403
1370
  memo?: string | null;
1404
1371
  /**
1405
1372
  * Structure Id
1373
+ *
1374
+ * Schedule structure the closing entry is derived from.
1406
1375
  */
1407
1376
  structure_id: string;
1408
1377
  };
@@ -1453,11 +1422,7 @@ export type CreateElementRequest = {
1453
1422
  /**
1454
1423
  * Classification
1455
1424
  */
1456
- classification: 'asset' | 'liability' | 'equity' | 'revenue' | 'expense';
1457
- /**
1458
- * Sub Classification
1459
- */
1460
- sub_classification?: string | null;
1425
+ classification: 'asset' | 'contraAsset' | 'liability' | 'contraLiability' | 'equity' | 'contraEquity' | 'temporaryEquity' | 'revenue' | 'expense' | 'expenseReversal' | 'gain' | 'loss' | 'comprehensiveIncome' | 'investmentByOwners' | 'distributionToOwners';
1461
1426
  /**
1462
1427
  * Balance Type
1463
1428
  */
@@ -1485,7 +1450,7 @@ export type CreateElementRequest = {
1485
1450
  /**
1486
1451
  * Source
1487
1452
  */
1488
- source?: 'native' | 'sfac6' | 'us-gaap' | 'ifrs' | 'quickbooks' | 'xero' | 'plaid' | 'import';
1453
+ source?: 'native' | 'fac' | 'rs-gaap' | 'us-gaap' | 'ifrs' | 'quickbooks' | 'xero' | 'plaid' | 'import';
1489
1454
  /**
1490
1455
  * Currency
1491
1456
  */
@@ -1548,6 +1513,34 @@ export type CreateGraphRequest = {
1548
1513
  */
1549
1514
  tags?: Array<string>;
1550
1515
  };
1516
+ /**
1517
+ * CreateInformationBlockRequest
1518
+ *
1519
+ * Generic create request — discriminator + typed-at-dispatch payload.
1520
+ *
1521
+ * ``block_type`` selects the registry entry. ``payload`` is validated
1522
+ * against ``BlockTypeRegistryEntry.create_request_model`` (e.g.
1523
+ * :class:`CreateScheduleRequest` for ``block_type='schedule'``) by the
1524
+ * command dispatcher. Chosen over a Pydantic discriminated union on the
1525
+ * top-level request so adding a block type is one registry line, not a
1526
+ * union-arm edit at the request-model layer.
1527
+ */
1528
+ export type CreateInformationBlockRequest = {
1529
+ /**
1530
+ * Block Type
1531
+ *
1532
+ * Block type discriminator. Must match a registered entry in robosystems.operations.information_block.registry.REGISTRY.
1533
+ */
1534
+ block_type: string;
1535
+ /**
1536
+ * Payload
1537
+ *
1538
+ * Block-type-specific creation payload. Shape-validated against the registry entry's `create_request_model` at dispatch time; the validation error surfaces as a 422 at the API boundary.
1539
+ */
1540
+ payload?: {
1541
+ [key: string]: unknown;
1542
+ };
1543
+ };
1551
1544
  /**
1552
1545
  * CreateJournalEntryRequest
1553
1546
  *
@@ -1619,6 +1612,11 @@ export type CreateManualClosingEntryRequest = {
1619
1612
  };
1620
1613
  /**
1621
1614
  * CreateMappingAssociationOperation
1615
+ *
1616
+ * CQRS-shaped body for `POST /operations/create-mapping-association`.
1617
+ *
1618
+ * Bundles the target mapping structure's `mapping_id` with the association
1619
+ * payload so REST + MCP share a single body type via the registrar.
1622
1620
  */
1623
1621
  export type CreateMappingAssociationOperation = {
1624
1622
  /**
@@ -1632,7 +1630,7 @@ export type CreateMappingAssociationOperation = {
1632
1630
  /**
1633
1631
  * Association Type
1634
1632
  */
1635
- association_type?: 'presentation' | 'calculation' | 'mapping';
1633
+ association_type?: 'presentation' | 'calculation' | 'mapping' | 'equivalence';
1636
1634
  /**
1637
1635
  * Order Value
1638
1636
  */
@@ -1651,6 +1649,8 @@ export type CreateMappingAssociationOperation = {
1651
1649
  suggested_by?: string | null;
1652
1650
  /**
1653
1651
  * Mapping Id
1652
+ *
1653
+ * Target mapping structure ID.
1654
1654
  */
1655
1655
  mapping_id: string;
1656
1656
  };
@@ -1811,55 +1811,6 @@ export type CreateRepositorySubscriptionRequest = {
1811
1811
  */
1812
1812
  plan_name: string;
1813
1813
  };
1814
- /**
1815
- * CreateScheduleRequest
1816
- */
1817
- export type CreateScheduleRequest = {
1818
- /**
1819
- * Name
1820
- *
1821
- * Schedule name
1822
- */
1823
- name: string;
1824
- /**
1825
- * Taxonomy Id
1826
- *
1827
- * Taxonomy ID (auto-creates if omitted)
1828
- */
1829
- taxonomy_id?: string | null;
1830
- /**
1831
- * Element Ids
1832
- *
1833
- * Element IDs to include
1834
- */
1835
- element_ids: Array<string>;
1836
- /**
1837
- * Period Start
1838
- *
1839
- * First period start
1840
- */
1841
- period_start: string;
1842
- /**
1843
- * Period End
1844
- *
1845
- * Last period end
1846
- */
1847
- period_end: string;
1848
- /**
1849
- * Monthly Amount
1850
- *
1851
- * Monthly amount in cents
1852
- */
1853
- monthly_amount: number;
1854
- entry_template: EntryTemplateRequest;
1855
- schedule_metadata?: ScheduleMetadataRequest | null;
1856
- /**
1857
- * Closed Through
1858
- *
1859
- * If provided, facts with period_end ≤ this date are flagged as 'historical' (already reflected in opening balances, ignored by the close workflow). Used during initial ledger setup to create schedules whose early facts have already been captured elsewhere.
1860
- */
1861
- closed_through?: string | null;
1862
- };
1863
1814
  /**
1864
1815
  * CreateSecurityRequest
1865
1816
  */
@@ -2611,6 +2562,30 @@ export type DeleteFileResponse = {
2611
2562
  */
2612
2563
  graph_marked_stale?: boolean;
2613
2564
  };
2565
+ /**
2566
+ * DeleteInformationBlockRequest
2567
+ *
2568
+ * Generic delete request — mirrors :class:`CreateInformationBlockRequest`.
2569
+ *
2570
+ * Validated against the registry entry's ``delete_request_model``.
2571
+ * Block types that don't support deletion raise ``NotImplementedError``.
2572
+ */
2573
+ export type DeleteInformationBlockRequest = {
2574
+ /**
2575
+ * Block Type
2576
+ *
2577
+ * Block type discriminator. Must match a registered entry.
2578
+ */
2579
+ block_type: string;
2580
+ /**
2581
+ * Payload
2582
+ *
2583
+ * Block-type-specific delete payload. Typically carries just the structure_id. Shape-validated against the registry entry's `delete_request_model` at dispatch time.
2584
+ */
2585
+ payload?: {
2586
+ [key: string]: unknown;
2587
+ };
2588
+ };
2614
2589
  /**
2615
2590
  * DeleteJournalEntryRequest
2616
2591
  *
@@ -2638,19 +2613,27 @@ export type DeleteMappingAssociationOperation = {
2638
2613
  };
2639
2614
  /**
2640
2615
  * DeletePortfolioOperation
2616
+ *
2617
+ * CQRS body for `POST /operations/delete-portfolio`.
2641
2618
  */
2642
2619
  export type DeletePortfolioOperation = {
2643
2620
  /**
2644
2621
  * Portfolio Id
2622
+ *
2623
+ * Target portfolio ID.
2645
2624
  */
2646
2625
  portfolio_id: string;
2647
2626
  };
2648
2627
  /**
2649
2628
  * DeletePositionOperation
2629
+ *
2630
+ * CQRS body for `POST /operations/delete-position` (soft delete).
2650
2631
  */
2651
2632
  export type DeletePositionOperation = {
2652
2633
  /**
2653
2634
  * Position Id
2635
+ *
2636
+ * Target position ID.
2654
2637
  */
2655
2638
  position_id: string;
2656
2639
  };
@@ -2672,28 +2655,16 @@ export type DeleteReportOperation = {
2672
2655
  */
2673
2656
  report_id: string;
2674
2657
  };
2675
- /**
2676
- * DeleteScheduleRequest
2677
- *
2678
- * Delete a schedule — cascades through facts and associations.
2679
- *
2680
- * Hard deletes the Structure, all Facts tied to it, and all
2681
- * Associations tied to it. This is a permanent, irreversible
2682
- * operation. For ending a schedule early without removing history,
2683
- * use truncate-schedule instead.
2684
- */
2685
- export type DeleteScheduleRequest = {
2686
- /**
2687
- * Structure Id
2688
- */
2689
- structure_id: string;
2690
- };
2691
2658
  /**
2692
2659
  * DeleteSecurityOperation
2660
+ *
2661
+ * CQRS body for `POST /operations/delete-security` (soft delete).
2693
2662
  */
2694
2663
  export type DeleteSecurityOperation = {
2695
2664
  /**
2696
2665
  * Security Id
2666
+ *
2667
+ * Target security ID.
2697
2668
  */
2698
2669
  security_id: string;
2699
2670
  };
@@ -3181,41 +3152,6 @@ export type EnhancedFileStatusLayers = {
3181
3152
  */
3182
3153
  graph: FileLayerStatus;
3183
3154
  };
3184
- /**
3185
- * EntryTemplateRequest
3186
- */
3187
- export type EntryTemplateRequest = {
3188
- /**
3189
- * Debit Element Id
3190
- *
3191
- * Element to debit (e.g., Depreciation Expense)
3192
- */
3193
- debit_element_id: string;
3194
- /**
3195
- * Credit Element Id
3196
- *
3197
- * Element to credit (e.g., Accumulated Depreciation)
3198
- */
3199
- credit_element_id: string;
3200
- /**
3201
- * Entry Type
3202
- *
3203
- * Entry type for generated entries
3204
- */
3205
- entry_type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
3206
- /**
3207
- * Memo Template
3208
- *
3209
- * Memo template ({structure_name} is replaced)
3210
- */
3211
- memo_template?: string;
3212
- /**
3213
- * Auto Reverse
3214
- *
3215
- * Auto-generate a reversing entry on the first day of the next period
3216
- */
3217
- auto_reverse?: boolean;
3218
- };
3219
3155
  /**
3220
3156
  * ErrorResponse
3221
3157
  *
@@ -3250,6 +3186,44 @@ export type ErrorResponse = {
3250
3186
  */
3251
3187
  timestamp?: string | null;
3252
3188
  };
3189
+ /**
3190
+ * EvaluateRulesRequest
3191
+ *
3192
+ * Request body for the ``evaluate-rules`` operation (Phase delta.3).
3193
+ *
3194
+ * Runs every rule scoped to ``structure_id`` (plus element/association-
3195
+ * scoped rules for the structure's atoms), binds ``$Variable`` references
3196
+ * to facts via qname lookup, and writes one
3197
+ * :class:`VerificationResult` row per rule.
3198
+ *
3199
+ * Optional ``period_start`` / ``period_end`` narrow the fact-binding
3200
+ * window; without them the engine uses the most recent ``in_scope`` fact
3201
+ * for each element regardless of period.
3202
+ */
3203
+ export type EvaluateRulesRequest = {
3204
+ /**
3205
+ * Structure Id
3206
+ */
3207
+ structure_id: string;
3208
+ /**
3209
+ * Fact Set Id
3210
+ *
3211
+ * Optional FactSet id to stamp on each VerificationResult row. Allows results to be scoped to a specific period run when the FactSet table is populated (Phase zeta expand pass).
3212
+ */
3213
+ fact_set_id?: string | null;
3214
+ /**
3215
+ * Period Start
3216
+ *
3217
+ * Lower bound on the fact period window (inclusive).
3218
+ */
3219
+ period_start?: string | null;
3220
+ /**
3221
+ * Period End
3222
+ *
3223
+ * Upper bound on the fact period window (inclusive).
3224
+ */
3225
+ period_end?: string | null;
3226
+ };
3253
3227
  /**
3254
3228
  * FileInfo
3255
3229
  */
@@ -3413,6 +3387,47 @@ export type FileUploadResponse = {
3413
3387
  */
3414
3388
  s3_key: string;
3415
3389
  };
3390
+ /**
3391
+ * FinancialStatementAnalysisRequest
3392
+ *
3393
+ * Request for financial-statement-analysis (graph-backed Cypher).
3394
+ */
3395
+ export type FinancialStatementAnalysisRequest = {
3396
+ /**
3397
+ * Statement Type
3398
+ *
3399
+ * income_statement | balance_sheet | cash_flow_statement | equity_statement
3400
+ */
3401
+ statement_type: string;
3402
+ /**
3403
+ * Ticker
3404
+ *
3405
+ * Company ticker (required on shared-repo graphs, ignored otherwise)
3406
+ */
3407
+ ticker?: string | null;
3408
+ /**
3409
+ * Report Id
3410
+ *
3411
+ * Specific report identifier. If omitted, auto-resolves latest by ticker + filters.
3412
+ */
3413
+ report_id?: string | null;
3414
+ /**
3415
+ * Fiscal Year
3416
+ *
3417
+ * Filter by fiscal year focus when auto-resolving the report
3418
+ */
3419
+ fiscal_year?: number | null;
3420
+ /**
3421
+ * Period Type
3422
+ *
3423
+ * annual | quarterly | instant
3424
+ */
3425
+ period_type?: string | null;
3426
+ /**
3427
+ * Limit
3428
+ */
3429
+ limit?: number;
3430
+ };
3416
3431
  /**
3417
3432
  * ForgotPasswordRequest
3418
3433
  *
@@ -4723,6 +4738,49 @@ export type ListTableFilesResponse = {
4723
4738
  */
4724
4739
  total_size_bytes: number;
4725
4740
  };
4741
+ /**
4742
+ * LiveFinancialStatementRequest
4743
+ *
4744
+ * Request for live-financial-statement (OLTP, entity graphs only).
4745
+ */
4746
+ export type LiveFinancialStatementRequest = {
4747
+ /**
4748
+ * Statement Type
4749
+ *
4750
+ * income_statement | balance_sheet | equity_statement
4751
+ */
4752
+ statement_type: string;
4753
+ /**
4754
+ * Period Start
4755
+ *
4756
+ * Explicit window start. Overrides period_type/fiscal_year.
4757
+ */
4758
+ period_start?: string | null;
4759
+ /**
4760
+ * Period End
4761
+ *
4762
+ * Explicit window end. Overrides period_type/fiscal_year.
4763
+ */
4764
+ period_end?: string | null;
4765
+ /**
4766
+ * Period Type
4767
+ *
4768
+ * annual | quarterly | instant (ignored when dates supplied)
4769
+ */
4770
+ period_type?: string | null;
4771
+ /**
4772
+ * Fiscal Year
4773
+ *
4774
+ * Fiscal year for annual window (anchored on FiscalCalendar)
4775
+ */
4776
+ fiscal_year?: number | null;
4777
+ /**
4778
+ * Limit
4779
+ *
4780
+ * Max fact rows returned
4781
+ */
4782
+ limit?: number;
4783
+ };
4726
4784
  /**
4727
4785
  * LoginRequest
4728
4786
  *
@@ -6011,41 +6069,6 @@ export type SsoTokenResponse = {
6011
6069
  */
6012
6070
  apps: Array<string>;
6013
6071
  };
6014
- /**
6015
- * ScheduleMetadataRequest
6016
- */
6017
- export type ScheduleMetadataRequest = {
6018
- /**
6019
- * Method
6020
- *
6021
- * Calculation method
6022
- */
6023
- method?: string;
6024
- /**
6025
- * Original Amount
6026
- *
6027
- * Cost basis in cents
6028
- */
6029
- original_amount?: number;
6030
- /**
6031
- * Residual Value
6032
- *
6033
- * Salvage value in cents
6034
- */
6035
- residual_value?: number;
6036
- /**
6037
- * Useful Life Months
6038
- *
6039
- * Useful life in months
6040
- */
6041
- useful_life_months?: number;
6042
- /**
6043
- * Asset Element Id
6044
- *
6045
- * BS asset element for net book value
6046
- */
6047
- asset_element_id?: string | null;
6048
- };
6049
6072
  /**
6050
6073
  * SchemaExportResponse
6051
6074
  *
@@ -6999,6 +7022,13 @@ export type TransactionSummaryResponse = {
6999
7022
  };
7000
7023
  /**
7001
7024
  * TruncateScheduleOperation
7025
+ *
7026
+ * CQRS-shaped body for `POST /operations/truncate-schedule`.
7027
+ *
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=...)`.
7002
7032
  */
7003
7033
  export type TruncateScheduleOperation = {
7004
7034
  /**
@@ -7015,6 +7045,8 @@ export type TruncateScheduleOperation = {
7015
7045
  reason: string;
7016
7046
  /**
7017
7047
  * Structure Id
7048
+ *
7049
+ * Target schedule structure ID.
7018
7050
  */
7019
7051
  structure_id: string;
7020
7052
  };
@@ -7116,6 +7148,13 @@ export type UpdateAssociationRequest = {
7116
7148
  * immutable. `parent_id` honors `model_dump(exclude_unset=True)` semantics:
7117
7149
  * omit the field to leave unchanged, pass `null` to clear the parent
7118
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).
7119
7158
  */
7120
7159
  export type UpdateElementRequest = {
7121
7160
  /**
@@ -7134,14 +7173,6 @@ export type UpdateElementRequest = {
7134
7173
  * Description
7135
7174
  */
7136
7175
  description?: string | null;
7137
- /**
7138
- * Classification
7139
- */
7140
- classification?: 'asset' | 'liability' | 'equity' | 'revenue' | 'expense' | null;
7141
- /**
7142
- * Sub Classification
7143
- */
7144
- sub_classification?: string | null;
7145
7176
  /**
7146
7177
  * Balance Type
7147
7178
  */
@@ -7158,6 +7189,10 @@ export type UpdateElementRequest = {
7158
7189
  * Currency
7159
7190
  */
7160
7191
  currency?: string | null;
7192
+ /**
7193
+ * Classification
7194
+ */
7195
+ classification?: 'asset' | 'contraAsset' | 'liability' | 'contraLiability' | 'equity' | 'contraEquity' | 'temporaryEquity' | 'revenue' | 'expense' | 'expenseReversal' | 'gain' | 'loss' | 'comprehensiveIncome' | 'investmentByOwners' | 'distributionToOwners' | null;
7161
7196
  };
7162
7197
  /**
7163
7198
  * UpdateEntityRequest
@@ -7254,6 +7289,32 @@ export type UpdateEntityRequest = {
7254
7289
  */
7255
7290
  address_country?: string | null;
7256
7291
  };
7292
+ /**
7293
+ * UpdateInformationBlockRequest
7294
+ *
7295
+ * Generic update request — mirrors :class:`CreateInformationBlockRequest`.
7296
+ *
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.
7301
+ */
7302
+ export type UpdateInformationBlockRequest = {
7303
+ /**
7304
+ * Block Type
7305
+ *
7306
+ * Block type discriminator. Must match a registered entry.
7307
+ */
7308
+ block_type: string;
7309
+ /**
7310
+ * Payload
7311
+ *
7312
+ * Block-type-specific update payload. Typically carries the structure_id plus whichever fields are editable for this block type. Shape-validated against the registry entry's `update_request_model` at dispatch time.
7313
+ */
7314
+ payload?: {
7315
+ [key: string]: unknown;
7316
+ };
7317
+ };
7257
7318
  /**
7258
7319
  * UpdateJournalEntryRequest
7259
7320
  *
@@ -7334,6 +7395,11 @@ export type UpdatePasswordRequest = {
7334
7395
  };
7335
7396
  /**
7336
7397
  * UpdatePortfolioOperation
7398
+ *
7399
+ * CQRS body for `POST /operations/update-portfolio`.
7400
+ *
7401
+ * Folds `portfolio_id` into the payload so REST + MCP share one body
7402
+ * type via the registrar. Unset fields are ignored (partial update).
7337
7403
  */
7338
7404
  export type UpdatePortfolioOperation = {
7339
7405
  /**
@@ -7358,11 +7424,15 @@ export type UpdatePortfolioOperation = {
7358
7424
  base_currency?: string | null;
7359
7425
  /**
7360
7426
  * Portfolio Id
7427
+ *
7428
+ * Target portfolio ID.
7361
7429
  */
7362
7430
  portfolio_id: string;
7363
7431
  };
7364
7432
  /**
7365
7433
  * UpdatePositionOperation
7434
+ *
7435
+ * CQRS body for `POST /operations/update-position`.
7366
7436
  */
7367
7437
  export type UpdatePositionOperation = {
7368
7438
  /**
@@ -7407,6 +7477,8 @@ export type UpdatePositionOperation = {
7407
7477
  notes?: string | null;
7408
7478
  /**
7409
7479
  * Position Id
7480
+ *
7481
+ * Target position ID.
7410
7482
  */
7411
7483
  position_id: string;
7412
7484
  };
@@ -7428,33 +7500,9 @@ export type UpdatePublishListOperation = {
7428
7500
  list_id: string;
7429
7501
  };
7430
7502
  /**
7431
- * UpdateScheduleRequest
7503
+ * UpdateSecurityOperation
7432
7504
  *
7433
- * Update mutable fields on a schedule.
7434
- *
7435
- * Editable: name, entry_template, schedule_metadata (all live on the
7436
- * Structure row / its metadata_ JSONB column).
7437
- *
7438
- * NOT editable via this op: period_start, period_end, monthly_amount.
7439
- * Those require fact regeneration — use truncate-schedule (end early)
7440
- * and create-schedule (start new) instead.
7441
- *
7442
- * Omitted fields are left unchanged.
7443
- */
7444
- export type UpdateScheduleRequest = {
7445
- /**
7446
- * Structure Id
7447
- */
7448
- structure_id: string;
7449
- /**
7450
- * Name
7451
- */
7452
- name?: string | null;
7453
- entry_template?: EntryTemplateRequest | null;
7454
- schedule_metadata?: ScheduleMetadataRequest | null;
7455
- };
7456
- /**
7457
- * UpdateSecurityOperation
7505
+ * CQRS body for `POST /operations/update-security`.
7458
7506
  */
7459
7507
  export type UpdateSecurityOperation = {
7460
7508
  /**
@@ -7497,6 +7545,8 @@ export type UpdateSecurityOperation = {
7497
7545
  outstanding_shares?: number | null;
7498
7546
  /**
7499
7547
  * Security Id
7548
+ *
7549
+ * Target security ID.
7500
7550
  */
7501
7551
  security_id: string;
7502
7552
  };
@@ -11631,55 +11681,6 @@ export type UpdateDocumentResponses = {
11631
11681
  200: DocumentUploadResponse;
11632
11682
  };
11633
11683
  export type UpdateDocumentResponse = UpdateDocumentResponses[keyof UpdateDocumentResponses];
11634
- export type UploadDocumentsBulkData = {
11635
- body: BulkDocumentUploadRequest;
11636
- path: {
11637
- /**
11638
- * Graph Id
11639
- */
11640
- graph_id: string;
11641
- };
11642
- query?: never;
11643
- url: '/v1/graphs/{graph_id}/documents/bulk';
11644
- };
11645
- export type UploadDocumentsBulkErrors = {
11646
- /**
11647
- * Invalid request
11648
- */
11649
- 400: ErrorResponse;
11650
- /**
11651
- * Authentication required
11652
- */
11653
- 401: ErrorResponse;
11654
- /**
11655
- * Access denied
11656
- */
11657
- 403: ErrorResponse;
11658
- /**
11659
- * Resource not found
11660
- */
11661
- 404: ErrorResponse;
11662
- /**
11663
- * Validation Error
11664
- */
11665
- 422: HttpValidationError;
11666
- /**
11667
- * Rate limit exceeded
11668
- */
11669
- 429: ErrorResponse;
11670
- /**
11671
- * Internal server error
11672
- */
11673
- 500: ErrorResponse;
11674
- };
11675
- export type UploadDocumentsBulkError = UploadDocumentsBulkErrors[keyof UploadDocumentsBulkErrors];
11676
- export type UploadDocumentsBulkResponses = {
11677
- /**
11678
- * Successful Response
11679
- */
11680
- 200: BulkDocumentUploadResponse;
11681
- };
11682
- export type UploadDocumentsBulkResponse = UploadDocumentsBulkResponses[keyof UploadDocumentsBulkResponses];
11683
11684
  export type OpCreateSubgraphData = {
11684
11685
  body: CreateSubgraphRequest;
11685
11686
  headers?: {
@@ -13624,8 +13625,8 @@ export type OpReopenPeriodResponses = {
13624
13625
  200: OperationEnvelope;
13625
13626
  };
13626
13627
  export type OpReopenPeriodResponse = OpReopenPeriodResponses[keyof OpReopenPeriodResponses];
13627
- export type OpCreateScheduleData = {
13628
- body: CreateScheduleRequest;
13628
+ export type OpCreateTaxonomyData = {
13629
+ body: CreateTaxonomyRequest;
13629
13630
  headers?: {
13630
13631
  /**
13631
13632
  * Idempotency-Key
@@ -13639,9 +13640,9 @@ export type OpCreateScheduleData = {
13639
13640
  graph_id: string;
13640
13641
  };
13641
13642
  query?: never;
13642
- url: '/extensions/roboledger/{graph_id}/operations/create-schedule';
13643
+ url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy';
13643
13644
  };
13644
- export type OpCreateScheduleErrors = {
13645
+ export type OpCreateTaxonomyErrors = {
13645
13646
  /**
13646
13647
  * Invalid request
13647
13648
  */
@@ -13675,16 +13676,16 @@ export type OpCreateScheduleErrors = {
13675
13676
  */
13676
13677
  500: ErrorResponse;
13677
13678
  };
13678
- export type OpCreateScheduleError = OpCreateScheduleErrors[keyof OpCreateScheduleErrors];
13679
- export type OpCreateScheduleResponses = {
13679
+ export type OpCreateTaxonomyError = OpCreateTaxonomyErrors[keyof OpCreateTaxonomyErrors];
13680
+ export type OpCreateTaxonomyResponses = {
13680
13681
  /**
13681
13682
  * Successful Response
13682
13683
  */
13683
13684
  200: OperationEnvelope;
13684
13685
  };
13685
- export type OpCreateScheduleResponse = OpCreateScheduleResponses[keyof OpCreateScheduleResponses];
13686
- export type OpTruncateScheduleData = {
13687
- body: TruncateScheduleOperation;
13686
+ export type OpCreateTaxonomyResponse = OpCreateTaxonomyResponses[keyof OpCreateTaxonomyResponses];
13687
+ export type OpCreateStructureData = {
13688
+ body: CreateStructureRequest;
13688
13689
  headers?: {
13689
13690
  /**
13690
13691
  * Idempotency-Key
@@ -13698,9 +13699,9 @@ export type OpTruncateScheduleData = {
13698
13699
  graph_id: string;
13699
13700
  };
13700
13701
  query?: never;
13701
- url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule';
13702
+ url: '/extensions/roboledger/{graph_id}/operations/create-structure';
13702
13703
  };
13703
- export type OpTruncateScheduleErrors = {
13704
+ export type OpCreateStructureErrors = {
13704
13705
  /**
13705
13706
  * Invalid request
13706
13707
  */
@@ -13734,16 +13735,16 @@ export type OpTruncateScheduleErrors = {
13734
13735
  */
13735
13736
  500: ErrorResponse;
13736
13737
  };
13737
- export type OpTruncateScheduleError = OpTruncateScheduleErrors[keyof OpTruncateScheduleErrors];
13738
- export type OpTruncateScheduleResponses = {
13738
+ export type OpCreateStructureError = OpCreateStructureErrors[keyof OpCreateStructureErrors];
13739
+ export type OpCreateStructureResponses = {
13739
13740
  /**
13740
13741
  * Successful Response
13741
13742
  */
13742
13743
  200: OperationEnvelope;
13743
13744
  };
13744
- export type OpTruncateScheduleResponse = OpTruncateScheduleResponses[keyof OpTruncateScheduleResponses];
13745
- export type OpCreateClosingEntryData = {
13746
- body: CreateClosingEntryOperation;
13745
+ export type OpCreateStructureResponse = OpCreateStructureResponses[keyof OpCreateStructureResponses];
13746
+ export type OpDeleteMappingAssociationData = {
13747
+ body: DeleteMappingAssociationOperation;
13747
13748
  headers?: {
13748
13749
  /**
13749
13750
  * Idempotency-Key
@@ -13757,9 +13758,9 @@ export type OpCreateClosingEntryData = {
13757
13758
  graph_id: string;
13758
13759
  };
13759
13760
  query?: never;
13760
- url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry';
13761
+ url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association';
13761
13762
  };
13762
- export type OpCreateClosingEntryErrors = {
13763
+ export type OpDeleteMappingAssociationErrors = {
13763
13764
  /**
13764
13765
  * Invalid request
13765
13766
  */
@@ -13793,16 +13794,16 @@ export type OpCreateClosingEntryErrors = {
13793
13794
  */
13794
13795
  500: ErrorResponse;
13795
13796
  };
13796
- export type OpCreateClosingEntryError = OpCreateClosingEntryErrors[keyof OpCreateClosingEntryErrors];
13797
- export type OpCreateClosingEntryResponses = {
13797
+ export type OpDeleteMappingAssociationError = OpDeleteMappingAssociationErrors[keyof OpDeleteMappingAssociationErrors];
13798
+ export type OpDeleteMappingAssociationResponses = {
13798
13799
  /**
13799
13800
  * Successful Response
13800
13801
  */
13801
13802
  200: OperationEnvelope;
13802
13803
  };
13803
- export type OpCreateClosingEntryResponse = OpCreateClosingEntryResponses[keyof OpCreateClosingEntryResponses];
13804
- export type OpCreateManualClosingEntryData = {
13805
- body: CreateManualClosingEntryRequest;
13804
+ export type OpDeleteMappingAssociationResponse = OpDeleteMappingAssociationResponses[keyof OpDeleteMappingAssociationResponses];
13805
+ export type OpUpdateTaxonomyData = {
13806
+ body: UpdateTaxonomyRequest;
13806
13807
  headers?: {
13807
13808
  /**
13808
13809
  * Idempotency-Key
@@ -13816,29 +13817,29 @@ export type OpCreateManualClosingEntryData = {
13816
13817
  graph_id: string;
13817
13818
  };
13818
13819
  query?: never;
13819
- url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry';
13820
+ url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy';
13820
13821
  };
13821
- export type OpCreateManualClosingEntryErrors = {
13822
+ export type OpUpdateTaxonomyErrors = {
13822
13823
  /**
13823
- * Invalid request
13824
+ * Invalid request payload
13824
13825
  */
13825
- 400: ErrorResponse;
13826
+ 400: OperationError;
13826
13827
  /**
13827
- * Authentication required
13828
+ * Unauthorized — missing or invalid credentials
13828
13829
  */
13829
- 401: ErrorResponse;
13830
+ 401: unknown;
13830
13831
  /**
13831
- * Access denied
13832
+ * Forbidden — caller cannot access this graph
13832
13833
  */
13833
- 403: ErrorResponse;
13834
+ 403: unknown;
13834
13835
  /**
13835
- * Resource not found
13836
+ * Resource not found (graph, ledger, report, etc.)
13836
13837
  */
13837
- 404: ErrorResponse;
13838
+ 404: OperationError;
13838
13839
  /**
13839
- * Idempotency-Key conflict — key reused with different body
13840
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
13840
13841
  */
13841
- 409: ErrorResponse;
13842
+ 409: OperationError;
13842
13843
  /**
13843
13844
  * Validation Error
13844
13845
  */
@@ -13846,22 +13847,22 @@ export type OpCreateManualClosingEntryErrors = {
13846
13847
  /**
13847
13848
  * Rate limit exceeded
13848
13849
  */
13849
- 429: ErrorResponse;
13850
+ 429: unknown;
13850
13851
  /**
13851
- * Internal server error
13852
+ * Internal error
13852
13853
  */
13853
- 500: ErrorResponse;
13854
+ 500: unknown;
13854
13855
  };
13855
- export type OpCreateManualClosingEntryError = OpCreateManualClosingEntryErrors[keyof OpCreateManualClosingEntryErrors];
13856
- export type OpCreateManualClosingEntryResponses = {
13856
+ export type OpUpdateTaxonomyError = OpUpdateTaxonomyErrors[keyof OpUpdateTaxonomyErrors];
13857
+ export type OpUpdateTaxonomyResponses = {
13857
13858
  /**
13858
13859
  * Successful Response
13859
13860
  */
13860
13861
  200: OperationEnvelope;
13861
13862
  };
13862
- export type OpCreateManualClosingEntryResponse = OpCreateManualClosingEntryResponses[keyof OpCreateManualClosingEntryResponses];
13863
- export type OpCreateTaxonomyData = {
13864
- body: CreateTaxonomyRequest;
13863
+ export type OpUpdateTaxonomyResponse = OpUpdateTaxonomyResponses[keyof OpUpdateTaxonomyResponses];
13864
+ export type OpDeleteTaxonomyData = {
13865
+ body: DeleteTaxonomyRequest;
13865
13866
  headers?: {
13866
13867
  /**
13867
13868
  * Idempotency-Key
@@ -13875,29 +13876,29 @@ export type OpCreateTaxonomyData = {
13875
13876
  graph_id: string;
13876
13877
  };
13877
13878
  query?: never;
13878
- url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy';
13879
+ url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy';
13879
13880
  };
13880
- export type OpCreateTaxonomyErrors = {
13881
+ export type OpDeleteTaxonomyErrors = {
13881
13882
  /**
13882
- * Invalid request
13883
+ * Invalid request payload
13883
13884
  */
13884
- 400: ErrorResponse;
13885
+ 400: OperationError;
13885
13886
  /**
13886
- * Authentication required
13887
+ * Unauthorized — missing or invalid credentials
13887
13888
  */
13888
- 401: ErrorResponse;
13889
+ 401: unknown;
13889
13890
  /**
13890
- * Access denied
13891
+ * Forbidden — caller cannot access this graph
13891
13892
  */
13892
- 403: ErrorResponse;
13893
+ 403: unknown;
13893
13894
  /**
13894
- * Resource not found
13895
+ * Resource not found (graph, ledger, report, etc.)
13895
13896
  */
13896
- 404: ErrorResponse;
13897
+ 404: OperationError;
13897
13898
  /**
13898
- * Idempotency-Key conflict — key reused with different body
13899
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
13899
13900
  */
13900
- 409: ErrorResponse;
13901
+ 409: OperationError;
13901
13902
  /**
13902
13903
  * Validation Error
13903
13904
  */
@@ -13905,22 +13906,22 @@ export type OpCreateTaxonomyErrors = {
13905
13906
  /**
13906
13907
  * Rate limit exceeded
13907
13908
  */
13908
- 429: ErrorResponse;
13909
+ 429: unknown;
13909
13910
  /**
13910
- * Internal server error
13911
+ * Internal error
13911
13912
  */
13912
- 500: ErrorResponse;
13913
+ 500: unknown;
13913
13914
  };
13914
- export type OpCreateTaxonomyError = OpCreateTaxonomyErrors[keyof OpCreateTaxonomyErrors];
13915
- export type OpCreateTaxonomyResponses = {
13915
+ export type OpDeleteTaxonomyError = OpDeleteTaxonomyErrors[keyof OpDeleteTaxonomyErrors];
13916
+ export type OpDeleteTaxonomyResponses = {
13916
13917
  /**
13917
13918
  * Successful Response
13918
13919
  */
13919
13920
  200: OperationEnvelope;
13920
13921
  };
13921
- export type OpCreateTaxonomyResponse = OpCreateTaxonomyResponses[keyof OpCreateTaxonomyResponses];
13922
- export type OpCreateStructureData = {
13923
- body: CreateStructureRequest;
13922
+ export type OpDeleteTaxonomyResponse = OpDeleteTaxonomyResponses[keyof OpDeleteTaxonomyResponses];
13923
+ export type OpLinkEntityTaxonomyData = {
13924
+ body: LinkEntityTaxonomyRequest;
13924
13925
  headers?: {
13925
13926
  /**
13926
13927
  * Idempotency-Key
@@ -13934,29 +13935,29 @@ export type OpCreateStructureData = {
13934
13935
  graph_id: string;
13935
13936
  };
13936
13937
  query?: never;
13937
- url: '/extensions/roboledger/{graph_id}/operations/create-structure';
13938
+ url: '/extensions/roboledger/{graph_id}/operations/link-entity-taxonomy';
13938
13939
  };
13939
- export type OpCreateStructureErrors = {
13940
+ export type OpLinkEntityTaxonomyErrors = {
13940
13941
  /**
13941
- * Invalid request
13942
+ * Invalid request payload
13942
13943
  */
13943
- 400: ErrorResponse;
13944
+ 400: OperationError;
13944
13945
  /**
13945
- * Authentication required
13946
+ * Unauthorized — missing or invalid credentials
13946
13947
  */
13947
- 401: ErrorResponse;
13948
+ 401: unknown;
13948
13949
  /**
13949
- * Access denied
13950
+ * Forbidden — caller cannot access this graph
13950
13951
  */
13951
- 403: ErrorResponse;
13952
+ 403: unknown;
13952
13953
  /**
13953
- * Resource not found
13954
+ * Resource not found (graph, ledger, report, etc.)
13954
13955
  */
13955
- 404: ErrorResponse;
13956
+ 404: OperationError;
13956
13957
  /**
13957
- * Idempotency-Key conflict — key reused with different body
13958
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
13958
13959
  */
13959
- 409: ErrorResponse;
13960
+ 409: OperationError;
13960
13961
  /**
13961
13962
  * Validation Error
13962
13963
  */
@@ -13964,22 +13965,22 @@ export type OpCreateStructureErrors = {
13964
13965
  /**
13965
13966
  * Rate limit exceeded
13966
13967
  */
13967
- 429: ErrorResponse;
13968
+ 429: unknown;
13968
13969
  /**
13969
- * Internal server error
13970
+ * Internal error
13970
13971
  */
13971
- 500: ErrorResponse;
13972
+ 500: unknown;
13972
13973
  };
13973
- export type OpCreateStructureError = OpCreateStructureErrors[keyof OpCreateStructureErrors];
13974
- export type OpCreateStructureResponses = {
13974
+ export type OpLinkEntityTaxonomyError = OpLinkEntityTaxonomyErrors[keyof OpLinkEntityTaxonomyErrors];
13975
+ export type OpLinkEntityTaxonomyResponses = {
13975
13976
  /**
13976
13977
  * Successful Response
13977
13978
  */
13978
13979
  200: OperationEnvelope;
13979
13980
  };
13980
- export type OpCreateStructureResponse = OpCreateStructureResponses[keyof OpCreateStructureResponses];
13981
- export type OpCreateMappingAssociationData = {
13982
- body: CreateMappingAssociationOperation;
13981
+ export type OpLinkEntityTaxonomyResponse = OpLinkEntityTaxonomyResponses[keyof OpLinkEntityTaxonomyResponses];
13982
+ export type OpUpdateStructureData = {
13983
+ body: UpdateStructureRequest;
13983
13984
  headers?: {
13984
13985
  /**
13985
13986
  * Idempotency-Key
@@ -13993,29 +13994,29 @@ export type OpCreateMappingAssociationData = {
13993
13994
  graph_id: string;
13994
13995
  };
13995
13996
  query?: never;
13996
- url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association';
13997
+ url: '/extensions/roboledger/{graph_id}/operations/update-structure';
13997
13998
  };
13998
- export type OpCreateMappingAssociationErrors = {
13999
+ export type OpUpdateStructureErrors = {
13999
14000
  /**
14000
- * Invalid request
14001
+ * Invalid request payload
14001
14002
  */
14002
- 400: ErrorResponse;
14003
+ 400: OperationError;
14003
14004
  /**
14004
- * Authentication required
14005
+ * Unauthorized — missing or invalid credentials
14005
14006
  */
14006
- 401: ErrorResponse;
14007
+ 401: unknown;
14007
14008
  /**
14008
- * Access denied
14009
+ * Forbidden — caller cannot access this graph
14009
14010
  */
14010
- 403: ErrorResponse;
14011
+ 403: unknown;
14011
14012
  /**
14012
- * Resource not found
14013
+ * Resource not found (graph, ledger, report, etc.)
14013
14014
  */
14014
- 404: ErrorResponse;
14015
+ 404: OperationError;
14015
14016
  /**
14016
- * Idempotency-Key conflict — key reused with different body
14017
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
14017
14018
  */
14018
- 409: ErrorResponse;
14019
+ 409: OperationError;
14019
14020
  /**
14020
14021
  * Validation Error
14021
14022
  */
@@ -14023,22 +14024,22 @@ export type OpCreateMappingAssociationErrors = {
14023
14024
  /**
14024
14025
  * Rate limit exceeded
14025
14026
  */
14026
- 429: ErrorResponse;
14027
+ 429: unknown;
14027
14028
  /**
14028
- * Internal server error
14029
+ * Internal error
14029
14030
  */
14030
- 500: ErrorResponse;
14031
+ 500: unknown;
14031
14032
  };
14032
- export type OpCreateMappingAssociationError = OpCreateMappingAssociationErrors[keyof OpCreateMappingAssociationErrors];
14033
- export type OpCreateMappingAssociationResponses = {
14033
+ export type OpUpdateStructureError = OpUpdateStructureErrors[keyof OpUpdateStructureErrors];
14034
+ export type OpUpdateStructureResponses = {
14034
14035
  /**
14035
14036
  * Successful Response
14036
14037
  */
14037
14038
  200: OperationEnvelope;
14038
14039
  };
14039
- export type OpCreateMappingAssociationResponse = OpCreateMappingAssociationResponses[keyof OpCreateMappingAssociationResponses];
14040
- export type OpDeleteMappingAssociationData = {
14041
- body: DeleteMappingAssociationOperation;
14040
+ export type OpUpdateStructureResponse = OpUpdateStructureResponses[keyof OpUpdateStructureResponses];
14041
+ export type OpDeleteStructureData = {
14042
+ body: DeleteStructureRequest;
14042
14043
  headers?: {
14043
14044
  /**
14044
14045
  * Idempotency-Key
@@ -14052,29 +14053,29 @@ export type OpDeleteMappingAssociationData = {
14052
14053
  graph_id: string;
14053
14054
  };
14054
14055
  query?: never;
14055
- url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association';
14056
+ url: '/extensions/roboledger/{graph_id}/operations/delete-structure';
14056
14057
  };
14057
- export type OpDeleteMappingAssociationErrors = {
14058
+ export type OpDeleteStructureErrors = {
14058
14059
  /**
14059
- * Invalid request
14060
+ * Invalid request payload
14060
14061
  */
14061
- 400: ErrorResponse;
14062
+ 400: OperationError;
14062
14063
  /**
14063
- * Authentication required
14064
+ * Unauthorized — missing or invalid credentials
14064
14065
  */
14065
- 401: ErrorResponse;
14066
+ 401: unknown;
14066
14067
  /**
14067
- * Access denied
14068
+ * Forbidden — caller cannot access this graph
14068
14069
  */
14069
- 403: ErrorResponse;
14070
+ 403: unknown;
14070
14071
  /**
14071
- * Resource not found
14072
+ * Resource not found (graph, ledger, report, etc.)
14072
14073
  */
14073
- 404: ErrorResponse;
14074
+ 404: OperationError;
14074
14075
  /**
14075
- * Idempotency-Key conflict — key reused with different body
14076
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
14076
14077
  */
14077
- 409: ErrorResponse;
14078
+ 409: OperationError;
14078
14079
  /**
14079
14080
  * Validation Error
14080
14081
  */
@@ -14082,22 +14083,22 @@ export type OpDeleteMappingAssociationErrors = {
14082
14083
  /**
14083
14084
  * Rate limit exceeded
14084
14085
  */
14085
- 429: ErrorResponse;
14086
+ 429: unknown;
14086
14087
  /**
14087
- * Internal server error
14088
+ * Internal error
14088
14089
  */
14089
- 500: ErrorResponse;
14090
+ 500: unknown;
14090
14091
  };
14091
- export type OpDeleteMappingAssociationError = OpDeleteMappingAssociationErrors[keyof OpDeleteMappingAssociationErrors];
14092
- export type OpDeleteMappingAssociationResponses = {
14092
+ export type OpDeleteStructureError = OpDeleteStructureErrors[keyof OpDeleteStructureErrors];
14093
+ export type OpDeleteStructureResponses = {
14093
14094
  /**
14094
14095
  * Successful Response
14095
14096
  */
14096
14097
  200: OperationEnvelope;
14097
14098
  };
14098
- export type OpDeleteMappingAssociationResponse = OpDeleteMappingAssociationResponses[keyof OpDeleteMappingAssociationResponses];
14099
- export type OpUpdateTaxonomyData = {
14100
- body: UpdateTaxonomyRequest;
14099
+ export type OpDeleteStructureResponse = OpDeleteStructureResponses[keyof OpDeleteStructureResponses];
14100
+ export type OpCreateElementData = {
14101
+ body: CreateElementRequest;
14101
14102
  headers?: {
14102
14103
  /**
14103
14104
  * Idempotency-Key
@@ -14111,9 +14112,9 @@ export type OpUpdateTaxonomyData = {
14111
14112
  graph_id: string;
14112
14113
  };
14113
14114
  query?: never;
14114
- url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy';
14115
+ url: '/extensions/roboledger/{graph_id}/operations/create-element';
14115
14116
  };
14116
- export type OpUpdateTaxonomyErrors = {
14117
+ export type OpCreateElementErrors = {
14117
14118
  /**
14118
14119
  * Invalid request payload
14119
14120
  */
@@ -14147,16 +14148,16 @@ export type OpUpdateTaxonomyErrors = {
14147
14148
  */
14148
14149
  500: unknown;
14149
14150
  };
14150
- export type OpUpdateTaxonomyError = OpUpdateTaxonomyErrors[keyof OpUpdateTaxonomyErrors];
14151
- export type OpUpdateTaxonomyResponses = {
14151
+ export type OpCreateElementError = OpCreateElementErrors[keyof OpCreateElementErrors];
14152
+ export type OpCreateElementResponses = {
14152
14153
  /**
14153
14154
  * Successful Response
14154
14155
  */
14155
14156
  200: OperationEnvelope;
14156
14157
  };
14157
- export type OpUpdateTaxonomyResponse = OpUpdateTaxonomyResponses[keyof OpUpdateTaxonomyResponses];
14158
- export type OpDeleteTaxonomyData = {
14159
- body: DeleteTaxonomyRequest;
14158
+ export type OpCreateElementResponse = OpCreateElementResponses[keyof OpCreateElementResponses];
14159
+ export type OpUpdateElementData = {
14160
+ body: UpdateElementRequest;
14160
14161
  headers?: {
14161
14162
  /**
14162
14163
  * Idempotency-Key
@@ -14170,9 +14171,9 @@ export type OpDeleteTaxonomyData = {
14170
14171
  graph_id: string;
14171
14172
  };
14172
14173
  query?: never;
14173
- url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy';
14174
+ url: '/extensions/roboledger/{graph_id}/operations/update-element';
14174
14175
  };
14175
- export type OpDeleteTaxonomyErrors = {
14176
+ export type OpUpdateElementErrors = {
14176
14177
  /**
14177
14178
  * Invalid request payload
14178
14179
  */
@@ -14206,16 +14207,16 @@ export type OpDeleteTaxonomyErrors = {
14206
14207
  */
14207
14208
  500: unknown;
14208
14209
  };
14209
- export type OpDeleteTaxonomyError = OpDeleteTaxonomyErrors[keyof OpDeleteTaxonomyErrors];
14210
- export type OpDeleteTaxonomyResponses = {
14210
+ export type OpUpdateElementError = OpUpdateElementErrors[keyof OpUpdateElementErrors];
14211
+ export type OpUpdateElementResponses = {
14211
14212
  /**
14212
14213
  * Successful Response
14213
14214
  */
14214
14215
  200: OperationEnvelope;
14215
14216
  };
14216
- export type OpDeleteTaxonomyResponse = OpDeleteTaxonomyResponses[keyof OpDeleteTaxonomyResponses];
14217
- export type OpLinkEntityTaxonomyData = {
14218
- body: LinkEntityTaxonomyRequest;
14217
+ export type OpUpdateElementResponse = OpUpdateElementResponses[keyof OpUpdateElementResponses];
14218
+ export type OpDeleteElementData = {
14219
+ body: DeleteElementRequest;
14219
14220
  headers?: {
14220
14221
  /**
14221
14222
  * Idempotency-Key
@@ -14229,9 +14230,9 @@ export type OpLinkEntityTaxonomyData = {
14229
14230
  graph_id: string;
14230
14231
  };
14231
14232
  query?: never;
14232
- url: '/extensions/roboledger/{graph_id}/operations/link-entity-taxonomy';
14233
+ url: '/extensions/roboledger/{graph_id}/operations/delete-element';
14233
14234
  };
14234
- export type OpLinkEntityTaxonomyErrors = {
14235
+ export type OpDeleteElementErrors = {
14235
14236
  /**
14236
14237
  * Invalid request payload
14237
14238
  */
@@ -14265,16 +14266,16 @@ export type OpLinkEntityTaxonomyErrors = {
14265
14266
  */
14266
14267
  500: unknown;
14267
14268
  };
14268
- export type OpLinkEntityTaxonomyError = OpLinkEntityTaxonomyErrors[keyof OpLinkEntityTaxonomyErrors];
14269
- export type OpLinkEntityTaxonomyResponses = {
14269
+ export type OpDeleteElementError = OpDeleteElementErrors[keyof OpDeleteElementErrors];
14270
+ export type OpDeleteElementResponses = {
14270
14271
  /**
14271
14272
  * Successful Response
14272
14273
  */
14273
14274
  200: OperationEnvelope;
14274
14275
  };
14275
- export type OpLinkEntityTaxonomyResponse = OpLinkEntityTaxonomyResponses[keyof OpLinkEntityTaxonomyResponses];
14276
- export type OpUpdateStructureData = {
14277
- body: UpdateStructureRequest;
14276
+ export type OpDeleteElementResponse = OpDeleteElementResponses[keyof OpDeleteElementResponses];
14277
+ export type OpCreateAssociationsData = {
14278
+ body: BulkCreateAssociationsRequest;
14278
14279
  headers?: {
14279
14280
  /**
14280
14281
  * Idempotency-Key
@@ -14288,9 +14289,9 @@ export type OpUpdateStructureData = {
14288
14289
  graph_id: string;
14289
14290
  };
14290
14291
  query?: never;
14291
- url: '/extensions/roboledger/{graph_id}/operations/update-structure';
14292
+ url: '/extensions/roboledger/{graph_id}/operations/create-associations';
14292
14293
  };
14293
- export type OpUpdateStructureErrors = {
14294
+ export type OpCreateAssociationsErrors = {
14294
14295
  /**
14295
14296
  * Invalid request payload
14296
14297
  */
@@ -14324,16 +14325,16 @@ export type OpUpdateStructureErrors = {
14324
14325
  */
14325
14326
  500: unknown;
14326
14327
  };
14327
- export type OpUpdateStructureError = OpUpdateStructureErrors[keyof OpUpdateStructureErrors];
14328
- export type OpUpdateStructureResponses = {
14328
+ export type OpCreateAssociationsError = OpCreateAssociationsErrors[keyof OpCreateAssociationsErrors];
14329
+ export type OpCreateAssociationsResponses = {
14329
14330
  /**
14330
14331
  * Successful Response
14331
14332
  */
14332
14333
  200: OperationEnvelope;
14333
14334
  };
14334
- export type OpUpdateStructureResponse = OpUpdateStructureResponses[keyof OpUpdateStructureResponses];
14335
- export type OpDeleteStructureData = {
14336
- body: DeleteStructureRequest;
14335
+ export type OpCreateAssociationsResponse = OpCreateAssociationsResponses[keyof OpCreateAssociationsResponses];
14336
+ export type OpUpdateAssociationData = {
14337
+ body: UpdateAssociationRequest;
14337
14338
  headers?: {
14338
14339
  /**
14339
14340
  * Idempotency-Key
@@ -14347,9 +14348,9 @@ export type OpDeleteStructureData = {
14347
14348
  graph_id: string;
14348
14349
  };
14349
14350
  query?: never;
14350
- url: '/extensions/roboledger/{graph_id}/operations/delete-structure';
14351
+ url: '/extensions/roboledger/{graph_id}/operations/update-association';
14351
14352
  };
14352
- export type OpDeleteStructureErrors = {
14353
+ export type OpUpdateAssociationErrors = {
14353
14354
  /**
14354
14355
  * Invalid request payload
14355
14356
  */
@@ -14383,16 +14384,16 @@ export type OpDeleteStructureErrors = {
14383
14384
  */
14384
14385
  500: unknown;
14385
14386
  };
14386
- export type OpDeleteStructureError = OpDeleteStructureErrors[keyof OpDeleteStructureErrors];
14387
- export type OpDeleteStructureResponses = {
14387
+ export type OpUpdateAssociationError = OpUpdateAssociationErrors[keyof OpUpdateAssociationErrors];
14388
+ export type OpUpdateAssociationResponses = {
14388
14389
  /**
14389
14390
  * Successful Response
14390
14391
  */
14391
14392
  200: OperationEnvelope;
14392
14393
  };
14393
- export type OpDeleteStructureResponse = OpDeleteStructureResponses[keyof OpDeleteStructureResponses];
14394
- export type OpCreateElementData = {
14395
- body: CreateElementRequest;
14394
+ export type OpUpdateAssociationResponse = OpUpdateAssociationResponses[keyof OpUpdateAssociationResponses];
14395
+ export type OpDeleteAssociationData = {
14396
+ body: DeleteAssociationRequest;
14396
14397
  headers?: {
14397
14398
  /**
14398
14399
  * Idempotency-Key
@@ -14406,9 +14407,9 @@ export type OpCreateElementData = {
14406
14407
  graph_id: string;
14407
14408
  };
14408
14409
  query?: never;
14409
- url: '/extensions/roboledger/{graph_id}/operations/create-element';
14410
+ url: '/extensions/roboledger/{graph_id}/operations/delete-association';
14410
14411
  };
14411
- export type OpCreateElementErrors = {
14412
+ export type OpDeleteAssociationErrors = {
14412
14413
  /**
14413
14414
  * Invalid request payload
14414
14415
  */
@@ -14442,16 +14443,16 @@ export type OpCreateElementErrors = {
14442
14443
  */
14443
14444
  500: unknown;
14444
14445
  };
14445
- export type OpCreateElementError = OpCreateElementErrors[keyof OpCreateElementErrors];
14446
- export type OpCreateElementResponses = {
14446
+ export type OpDeleteAssociationError = OpDeleteAssociationErrors[keyof OpDeleteAssociationErrors];
14447
+ export type OpDeleteAssociationResponses = {
14447
14448
  /**
14448
14449
  * Successful Response
14449
14450
  */
14450
14451
  200: OperationEnvelope;
14451
14452
  };
14452
- export type OpCreateElementResponse = OpCreateElementResponses[keyof OpCreateElementResponses];
14453
- export type OpUpdateElementData = {
14454
- body: UpdateElementRequest;
14453
+ export type OpDeleteAssociationResponse = OpDeleteAssociationResponses[keyof OpDeleteAssociationResponses];
14454
+ export type OpCreateTransactionData = {
14455
+ body: CreateTransactionRequest;
14455
14456
  headers?: {
14456
14457
  /**
14457
14458
  * Idempotency-Key
@@ -14465,9 +14466,9 @@ export type OpUpdateElementData = {
14465
14466
  graph_id: string;
14466
14467
  };
14467
14468
  query?: never;
14468
- url: '/extensions/roboledger/{graph_id}/operations/update-element';
14469
+ url: '/extensions/roboledger/{graph_id}/operations/create-transaction';
14469
14470
  };
14470
- export type OpUpdateElementErrors = {
14471
+ export type OpCreateTransactionErrors = {
14471
14472
  /**
14472
14473
  * Invalid request payload
14473
14474
  */
@@ -14501,16 +14502,16 @@ export type OpUpdateElementErrors = {
14501
14502
  */
14502
14503
  500: unknown;
14503
14504
  };
14504
- export type OpUpdateElementError = OpUpdateElementErrors[keyof OpUpdateElementErrors];
14505
- export type OpUpdateElementResponses = {
14505
+ export type OpCreateTransactionError = OpCreateTransactionErrors[keyof OpCreateTransactionErrors];
14506
+ export type OpCreateTransactionResponses = {
14506
14507
  /**
14507
14508
  * Successful Response
14508
14509
  */
14509
14510
  200: OperationEnvelope;
14510
14511
  };
14511
- export type OpUpdateElementResponse = OpUpdateElementResponses[keyof OpUpdateElementResponses];
14512
- export type OpDeleteElementData = {
14513
- body: DeleteElementRequest;
14512
+ export type OpCreateTransactionResponse = OpCreateTransactionResponses[keyof OpCreateTransactionResponses];
14513
+ export type OpCreateJournalEntryData = {
14514
+ body: CreateJournalEntryRequest;
14514
14515
  headers?: {
14515
14516
  /**
14516
14517
  * Idempotency-Key
@@ -14524,9 +14525,9 @@ export type OpDeleteElementData = {
14524
14525
  graph_id: string;
14525
14526
  };
14526
14527
  query?: never;
14527
- url: '/extensions/roboledger/{graph_id}/operations/delete-element';
14528
+ url: '/extensions/roboledger/{graph_id}/operations/create-journal-entry';
14528
14529
  };
14529
- export type OpDeleteElementErrors = {
14530
+ export type OpCreateJournalEntryErrors = {
14530
14531
  /**
14531
14532
  * Invalid request payload
14532
14533
  */
@@ -14560,16 +14561,16 @@ export type OpDeleteElementErrors = {
14560
14561
  */
14561
14562
  500: unknown;
14562
14563
  };
14563
- export type OpDeleteElementError = OpDeleteElementErrors[keyof OpDeleteElementErrors];
14564
- export type OpDeleteElementResponses = {
14564
+ export type OpCreateJournalEntryError = OpCreateJournalEntryErrors[keyof OpCreateJournalEntryErrors];
14565
+ export type OpCreateJournalEntryResponses = {
14565
14566
  /**
14566
14567
  * Successful Response
14567
14568
  */
14568
14569
  200: OperationEnvelope;
14569
14570
  };
14570
- export type OpDeleteElementResponse = OpDeleteElementResponses[keyof OpDeleteElementResponses];
14571
- export type OpCreateAssociationsData = {
14572
- body: BulkCreateAssociationsRequest;
14571
+ export type OpCreateJournalEntryResponse = OpCreateJournalEntryResponses[keyof OpCreateJournalEntryResponses];
14572
+ export type OpUpdateJournalEntryData = {
14573
+ body: UpdateJournalEntryRequest;
14573
14574
  headers?: {
14574
14575
  /**
14575
14576
  * Idempotency-Key
@@ -14583,9 +14584,9 @@ export type OpCreateAssociationsData = {
14583
14584
  graph_id: string;
14584
14585
  };
14585
14586
  query?: never;
14586
- url: '/extensions/roboledger/{graph_id}/operations/create-associations';
14587
+ url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry';
14587
14588
  };
14588
- export type OpCreateAssociationsErrors = {
14589
+ export type OpUpdateJournalEntryErrors = {
14589
14590
  /**
14590
14591
  * Invalid request payload
14591
14592
  */
@@ -14619,16 +14620,16 @@ export type OpCreateAssociationsErrors = {
14619
14620
  */
14620
14621
  500: unknown;
14621
14622
  };
14622
- export type OpCreateAssociationsError = OpCreateAssociationsErrors[keyof OpCreateAssociationsErrors];
14623
- export type OpCreateAssociationsResponses = {
14623
+ export type OpUpdateJournalEntryError = OpUpdateJournalEntryErrors[keyof OpUpdateJournalEntryErrors];
14624
+ export type OpUpdateJournalEntryResponses = {
14624
14625
  /**
14625
14626
  * Successful Response
14626
14627
  */
14627
14628
  200: OperationEnvelope;
14628
14629
  };
14629
- export type OpCreateAssociationsResponse = OpCreateAssociationsResponses[keyof OpCreateAssociationsResponses];
14630
- export type OpUpdateAssociationData = {
14631
- body: UpdateAssociationRequest;
14630
+ export type OpUpdateJournalEntryResponse = OpUpdateJournalEntryResponses[keyof OpUpdateJournalEntryResponses];
14631
+ export type OpDeleteJournalEntryData = {
14632
+ body: DeleteJournalEntryRequest;
14632
14633
  headers?: {
14633
14634
  /**
14634
14635
  * Idempotency-Key
@@ -14642,9 +14643,9 @@ export type OpUpdateAssociationData = {
14642
14643
  graph_id: string;
14643
14644
  };
14644
14645
  query?: never;
14645
- url: '/extensions/roboledger/{graph_id}/operations/update-association';
14646
+ url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry';
14646
14647
  };
14647
- export type OpUpdateAssociationErrors = {
14648
+ export type OpDeleteJournalEntryErrors = {
14648
14649
  /**
14649
14650
  * Invalid request payload
14650
14651
  */
@@ -14678,16 +14679,16 @@ export type OpUpdateAssociationErrors = {
14678
14679
  */
14679
14680
  500: unknown;
14680
14681
  };
14681
- export type OpUpdateAssociationError = OpUpdateAssociationErrors[keyof OpUpdateAssociationErrors];
14682
- export type OpUpdateAssociationResponses = {
14682
+ export type OpDeleteJournalEntryError = OpDeleteJournalEntryErrors[keyof OpDeleteJournalEntryErrors];
14683
+ export type OpDeleteJournalEntryResponses = {
14683
14684
  /**
14684
14685
  * Successful Response
14685
14686
  */
14686
14687
  200: OperationEnvelope;
14687
14688
  };
14688
- export type OpUpdateAssociationResponse = OpUpdateAssociationResponses[keyof OpUpdateAssociationResponses];
14689
- export type OpDeleteAssociationData = {
14690
- body: DeleteAssociationRequest;
14689
+ export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
14690
+ export type OpReverseJournalEntryData = {
14691
+ body: ReverseJournalEntryRequest;
14691
14692
  headers?: {
14692
14693
  /**
14693
14694
  * Idempotency-Key
@@ -14701,9 +14702,9 @@ export type OpDeleteAssociationData = {
14701
14702
  graph_id: string;
14702
14703
  };
14703
14704
  query?: never;
14704
- url: '/extensions/roboledger/{graph_id}/operations/delete-association';
14705
+ url: '/extensions/roboledger/{graph_id}/operations/reverse-journal-entry';
14705
14706
  };
14706
- export type OpDeleteAssociationErrors = {
14707
+ export type OpReverseJournalEntryErrors = {
14707
14708
  /**
14708
14709
  * Invalid request payload
14709
14710
  */
@@ -14737,16 +14738,16 @@ export type OpDeleteAssociationErrors = {
14737
14738
  */
14738
14739
  500: unknown;
14739
14740
  };
14740
- export type OpDeleteAssociationError = OpDeleteAssociationErrors[keyof OpDeleteAssociationErrors];
14741
- export type OpDeleteAssociationResponses = {
14741
+ export type OpReverseJournalEntryError = OpReverseJournalEntryErrors[keyof OpReverseJournalEntryErrors];
14742
+ export type OpReverseJournalEntryResponses = {
14742
14743
  /**
14743
14744
  * Successful Response
14744
14745
  */
14745
14746
  200: OperationEnvelope;
14746
14747
  };
14747
- export type OpDeleteAssociationResponse = OpDeleteAssociationResponses[keyof OpDeleteAssociationResponses];
14748
- export type OpCreateTransactionData = {
14749
- body: CreateTransactionRequest;
14748
+ export type OpReverseJournalEntryResponse = OpReverseJournalEntryResponses[keyof OpReverseJournalEntryResponses];
14749
+ export type OpTruncateScheduleData = {
14750
+ body: TruncateScheduleOperation;
14750
14751
  headers?: {
14751
14752
  /**
14752
14753
  * Idempotency-Key
@@ -14760,9 +14761,9 @@ export type OpCreateTransactionData = {
14760
14761
  graph_id: string;
14761
14762
  };
14762
14763
  query?: never;
14763
- url: '/extensions/roboledger/{graph_id}/operations/create-transaction';
14764
+ url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule';
14764
14765
  };
14765
- export type OpCreateTransactionErrors = {
14766
+ export type OpTruncateScheduleErrors = {
14766
14767
  /**
14767
14768
  * Invalid request payload
14768
14769
  */
@@ -14796,16 +14797,16 @@ export type OpCreateTransactionErrors = {
14796
14797
  */
14797
14798
  500: unknown;
14798
14799
  };
14799
- export type OpCreateTransactionError = OpCreateTransactionErrors[keyof OpCreateTransactionErrors];
14800
- export type OpCreateTransactionResponses = {
14800
+ export type OpTruncateScheduleError = OpTruncateScheduleErrors[keyof OpTruncateScheduleErrors];
14801
+ export type OpTruncateScheduleResponses = {
14801
14802
  /**
14802
14803
  * Successful Response
14803
14804
  */
14804
14805
  200: OperationEnvelope;
14805
14806
  };
14806
- export type OpCreateTransactionResponse = OpCreateTransactionResponses[keyof OpCreateTransactionResponses];
14807
- export type OpCreateJournalEntryData = {
14808
- body: CreateJournalEntryRequest;
14807
+ export type OpTruncateScheduleResponse = OpTruncateScheduleResponses[keyof OpTruncateScheduleResponses];
14808
+ export type OpCreateClosingEntryData = {
14809
+ body: CreateClosingEntryOperation;
14809
14810
  headers?: {
14810
14811
  /**
14811
14812
  * Idempotency-Key
@@ -14819,9 +14820,9 @@ export type OpCreateJournalEntryData = {
14819
14820
  graph_id: string;
14820
14821
  };
14821
14822
  query?: never;
14822
- url: '/extensions/roboledger/{graph_id}/operations/create-journal-entry';
14823
+ url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry';
14823
14824
  };
14824
- export type OpCreateJournalEntryErrors = {
14825
+ export type OpCreateClosingEntryErrors = {
14825
14826
  /**
14826
14827
  * Invalid request payload
14827
14828
  */
@@ -14855,16 +14856,16 @@ export type OpCreateJournalEntryErrors = {
14855
14856
  */
14856
14857
  500: unknown;
14857
14858
  };
14858
- export type OpCreateJournalEntryError = OpCreateJournalEntryErrors[keyof OpCreateJournalEntryErrors];
14859
- export type OpCreateJournalEntryResponses = {
14859
+ export type OpCreateClosingEntryError = OpCreateClosingEntryErrors[keyof OpCreateClosingEntryErrors];
14860
+ export type OpCreateClosingEntryResponses = {
14860
14861
  /**
14861
14862
  * Successful Response
14862
14863
  */
14863
14864
  200: OperationEnvelope;
14864
14865
  };
14865
- export type OpCreateJournalEntryResponse = OpCreateJournalEntryResponses[keyof OpCreateJournalEntryResponses];
14866
- export type OpUpdateJournalEntryData = {
14867
- body: UpdateJournalEntryRequest;
14866
+ export type OpCreateClosingEntryResponse = OpCreateClosingEntryResponses[keyof OpCreateClosingEntryResponses];
14867
+ export type OpCreateManualClosingEntryData = {
14868
+ body: CreateManualClosingEntryRequest;
14868
14869
  headers?: {
14869
14870
  /**
14870
14871
  * Idempotency-Key
@@ -14878,9 +14879,9 @@ export type OpUpdateJournalEntryData = {
14878
14879
  graph_id: string;
14879
14880
  };
14880
14881
  query?: never;
14881
- url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry';
14882
+ url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry';
14882
14883
  };
14883
- export type OpUpdateJournalEntryErrors = {
14884
+ export type OpCreateManualClosingEntryErrors = {
14884
14885
  /**
14885
14886
  * Invalid request payload
14886
14887
  */
@@ -14914,16 +14915,16 @@ export type OpUpdateJournalEntryErrors = {
14914
14915
  */
14915
14916
  500: unknown;
14916
14917
  };
14917
- export type OpUpdateJournalEntryError = OpUpdateJournalEntryErrors[keyof OpUpdateJournalEntryErrors];
14918
- export type OpUpdateJournalEntryResponses = {
14918
+ export type OpCreateManualClosingEntryError = OpCreateManualClosingEntryErrors[keyof OpCreateManualClosingEntryErrors];
14919
+ export type OpCreateManualClosingEntryResponses = {
14919
14920
  /**
14920
14921
  * Successful Response
14921
14922
  */
14922
14923
  200: OperationEnvelope;
14923
14924
  };
14924
- export type OpUpdateJournalEntryResponse = OpUpdateJournalEntryResponses[keyof OpUpdateJournalEntryResponses];
14925
- export type OpDeleteJournalEntryData = {
14926
- body: DeleteJournalEntryRequest;
14925
+ export type OpCreateManualClosingEntryResponse = OpCreateManualClosingEntryResponses[keyof OpCreateManualClosingEntryResponses];
14926
+ export type OpCreateInformationBlockData = {
14927
+ body: CreateInformationBlockRequest;
14927
14928
  headers?: {
14928
14929
  /**
14929
14930
  * Idempotency-Key
@@ -14937,9 +14938,9 @@ export type OpDeleteJournalEntryData = {
14937
14938
  graph_id: string;
14938
14939
  };
14939
14940
  query?: never;
14940
- url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry';
14941
+ url: '/extensions/roboledger/{graph_id}/operations/create-information-block';
14941
14942
  };
14942
- export type OpDeleteJournalEntryErrors = {
14943
+ export type OpCreateInformationBlockErrors = {
14943
14944
  /**
14944
14945
  * Invalid request payload
14945
14946
  */
@@ -14973,16 +14974,16 @@ export type OpDeleteJournalEntryErrors = {
14973
14974
  */
14974
14975
  500: unknown;
14975
14976
  };
14976
- export type OpDeleteJournalEntryError = OpDeleteJournalEntryErrors[keyof OpDeleteJournalEntryErrors];
14977
- export type OpDeleteJournalEntryResponses = {
14977
+ export type OpCreateInformationBlockError = OpCreateInformationBlockErrors[keyof OpCreateInformationBlockErrors];
14978
+ export type OpCreateInformationBlockResponses = {
14978
14979
  /**
14979
14980
  * Successful Response
14980
14981
  */
14981
14982
  200: OperationEnvelope;
14982
14983
  };
14983
- export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
14984
- export type OpReverseJournalEntryData = {
14985
- body: ReverseJournalEntryRequest;
14984
+ export type OpCreateInformationBlockResponse = OpCreateInformationBlockResponses[keyof OpCreateInformationBlockResponses];
14985
+ export type OpUpdateInformationBlockData = {
14986
+ body: UpdateInformationBlockRequest;
14986
14987
  headers?: {
14987
14988
  /**
14988
14989
  * Idempotency-Key
@@ -14996,9 +14997,9 @@ export type OpReverseJournalEntryData = {
14996
14997
  graph_id: string;
14997
14998
  };
14998
14999
  query?: never;
14999
- url: '/extensions/roboledger/{graph_id}/operations/reverse-journal-entry';
15000
+ url: '/extensions/roboledger/{graph_id}/operations/update-information-block';
15000
15001
  };
15001
- export type OpReverseJournalEntryErrors = {
15002
+ export type OpUpdateInformationBlockErrors = {
15002
15003
  /**
15003
15004
  * Invalid request payload
15004
15005
  */
@@ -15032,16 +15033,16 @@ export type OpReverseJournalEntryErrors = {
15032
15033
  */
15033
15034
  500: unknown;
15034
15035
  };
15035
- export type OpReverseJournalEntryError = OpReverseJournalEntryErrors[keyof OpReverseJournalEntryErrors];
15036
- export type OpReverseJournalEntryResponses = {
15036
+ export type OpUpdateInformationBlockError = OpUpdateInformationBlockErrors[keyof OpUpdateInformationBlockErrors];
15037
+ export type OpUpdateInformationBlockResponses = {
15037
15038
  /**
15038
15039
  * Successful Response
15039
15040
  */
15040
15041
  200: OperationEnvelope;
15041
15042
  };
15042
- export type OpReverseJournalEntryResponse = OpReverseJournalEntryResponses[keyof OpReverseJournalEntryResponses];
15043
- export type OpUpdateScheduleData = {
15044
- body: UpdateScheduleRequest;
15043
+ export type OpUpdateInformationBlockResponse = OpUpdateInformationBlockResponses[keyof OpUpdateInformationBlockResponses];
15044
+ export type OpDeleteInformationBlockData = {
15045
+ body: DeleteInformationBlockRequest;
15045
15046
  headers?: {
15046
15047
  /**
15047
15048
  * Idempotency-Key
@@ -15055,9 +15056,9 @@ export type OpUpdateScheduleData = {
15055
15056
  graph_id: string;
15056
15057
  };
15057
15058
  query?: never;
15058
- url: '/extensions/roboledger/{graph_id}/operations/update-schedule';
15059
+ url: '/extensions/roboledger/{graph_id}/operations/delete-information-block';
15059
15060
  };
15060
- export type OpUpdateScheduleErrors = {
15061
+ export type OpDeleteInformationBlockErrors = {
15061
15062
  /**
15062
15063
  * Invalid request payload
15063
15064
  */
@@ -15091,16 +15092,16 @@ export type OpUpdateScheduleErrors = {
15091
15092
  */
15092
15093
  500: unknown;
15093
15094
  };
15094
- export type OpUpdateScheduleError = OpUpdateScheduleErrors[keyof OpUpdateScheduleErrors];
15095
- export type OpUpdateScheduleResponses = {
15095
+ export type OpDeleteInformationBlockError = OpDeleteInformationBlockErrors[keyof OpDeleteInformationBlockErrors];
15096
+ export type OpDeleteInformationBlockResponses = {
15096
15097
  /**
15097
15098
  * Successful Response
15098
15099
  */
15099
15100
  200: OperationEnvelope;
15100
15101
  };
15101
- export type OpUpdateScheduleResponse = OpUpdateScheduleResponses[keyof OpUpdateScheduleResponses];
15102
- export type OpDeleteScheduleData = {
15103
- body: DeleteScheduleRequest;
15102
+ export type OpDeleteInformationBlockResponse = OpDeleteInformationBlockResponses[keyof OpDeleteInformationBlockResponses];
15103
+ export type OpEvaluateRulesData = {
15104
+ body: EvaluateRulesRequest;
15104
15105
  headers?: {
15105
15106
  /**
15106
15107
  * Idempotency-Key
@@ -15114,9 +15115,9 @@ export type OpDeleteScheduleData = {
15114
15115
  graph_id: string;
15115
15116
  };
15116
15117
  query?: never;
15117
- url: '/extensions/roboledger/{graph_id}/operations/delete-schedule';
15118
+ url: '/extensions/roboledger/{graph_id}/operations/evaluate-rules';
15118
15119
  };
15119
- export type OpDeleteScheduleErrors = {
15120
+ export type OpEvaluateRulesErrors = {
15120
15121
  /**
15121
15122
  * Invalid request payload
15122
15123
  */
@@ -15150,16 +15151,16 @@ export type OpDeleteScheduleErrors = {
15150
15151
  */
15151
15152
  500: unknown;
15152
15153
  };
15153
- export type OpDeleteScheduleError = OpDeleteScheduleErrors[keyof OpDeleteScheduleErrors];
15154
- export type OpDeleteScheduleResponses = {
15154
+ export type OpEvaluateRulesError = OpEvaluateRulesErrors[keyof OpEvaluateRulesErrors];
15155
+ export type OpEvaluateRulesResponses = {
15155
15156
  /**
15156
15157
  * Successful Response
15157
15158
  */
15158
15159
  200: OperationEnvelope;
15159
15160
  };
15160
- export type OpDeleteScheduleResponse = OpDeleteScheduleResponses[keyof OpDeleteScheduleResponses];
15161
- export type OpAutoMapElementsData = {
15162
- body: AutoMapElementsOperation;
15161
+ export type OpEvaluateRulesResponse = OpEvaluateRulesResponses[keyof OpEvaluateRulesResponses];
15162
+ export type OpCreateMappingAssociationData = {
15163
+ body: CreateMappingAssociationOperation;
15163
15164
  headers?: {
15164
15165
  /**
15165
15166
  * Idempotency-Key
@@ -15173,11 +15174,70 @@ export type OpAutoMapElementsData = {
15173
15174
  graph_id: string;
15174
15175
  };
15175
15176
  query?: never;
15176
- url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements';
15177
+ url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association';
15177
15178
  };
15178
- export type OpAutoMapElementsErrors = {
15179
+ export type OpCreateMappingAssociationErrors = {
15179
15180
  /**
15180
- * Invalid request
15181
+ * Invalid request payload
15182
+ */
15183
+ 400: OperationError;
15184
+ /**
15185
+ * Unauthorized — missing or invalid credentials
15186
+ */
15187
+ 401: unknown;
15188
+ /**
15189
+ * Forbidden — caller cannot access this graph
15190
+ */
15191
+ 403: unknown;
15192
+ /**
15193
+ * Resource not found (graph, ledger, report, etc.)
15194
+ */
15195
+ 404: OperationError;
15196
+ /**
15197
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
15198
+ */
15199
+ 409: OperationError;
15200
+ /**
15201
+ * Validation Error
15202
+ */
15203
+ 422: HttpValidationError;
15204
+ /**
15205
+ * Rate limit exceeded
15206
+ */
15207
+ 429: unknown;
15208
+ /**
15209
+ * Internal error
15210
+ */
15211
+ 500: unknown;
15212
+ };
15213
+ export type OpCreateMappingAssociationError = OpCreateMappingAssociationErrors[keyof OpCreateMappingAssociationErrors];
15214
+ export type OpCreateMappingAssociationResponses = {
15215
+ /**
15216
+ * Successful Response
15217
+ */
15218
+ 200: OperationEnvelope;
15219
+ };
15220
+ export type OpCreateMappingAssociationResponse = OpCreateMappingAssociationResponses[keyof OpCreateMappingAssociationResponses];
15221
+ export type OpAutoMapElementsData = {
15222
+ body: AutoMapElementsOperation;
15223
+ headers?: {
15224
+ /**
15225
+ * Idempotency-Key
15226
+ */
15227
+ 'Idempotency-Key'?: string | null;
15228
+ };
15229
+ path: {
15230
+ /**
15231
+ * Graph Id
15232
+ */
15233
+ graph_id: string;
15234
+ };
15235
+ query?: never;
15236
+ url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements';
15237
+ };
15238
+ export type OpAutoMapElementsErrors = {
15239
+ /**
15240
+ * Invalid request
15181
15241
  */
15182
15242
  400: ErrorResponse;
15183
15243
  /**
@@ -15748,6 +15808,65 @@ export type OpRemovePublishListMemberResponses = {
15748
15808
  200: OperationEnvelope;
15749
15809
  };
15750
15810
  export type OpRemovePublishListMemberResponse = OpRemovePublishListMemberResponses[keyof OpRemovePublishListMemberResponses];
15811
+ export type OpLiveFinancialStatementData = {
15812
+ body: LiveFinancialStatementRequest;
15813
+ headers?: {
15814
+ /**
15815
+ * Idempotency-Key
15816
+ */
15817
+ 'Idempotency-Key'?: string | null;
15818
+ };
15819
+ path: {
15820
+ /**
15821
+ * Graph Id
15822
+ */
15823
+ graph_id: string;
15824
+ };
15825
+ query?: never;
15826
+ url: '/extensions/roboledger/{graph_id}/operations/live-financial-statement';
15827
+ };
15828
+ export type OpLiveFinancialStatementErrors = {
15829
+ /**
15830
+ * Invalid request
15831
+ */
15832
+ 400: ErrorResponse;
15833
+ /**
15834
+ * Authentication required
15835
+ */
15836
+ 401: ErrorResponse;
15837
+ /**
15838
+ * Access denied
15839
+ */
15840
+ 403: ErrorResponse;
15841
+ /**
15842
+ * Resource not found
15843
+ */
15844
+ 404: ErrorResponse;
15845
+ /**
15846
+ * Idempotency-Key conflict — key reused with different body
15847
+ */
15848
+ 409: ErrorResponse;
15849
+ /**
15850
+ * Validation Error
15851
+ */
15852
+ 422: HttpValidationError;
15853
+ /**
15854
+ * Rate limit exceeded
15855
+ */
15856
+ 429: ErrorResponse;
15857
+ /**
15858
+ * Internal server error
15859
+ */
15860
+ 500: ErrorResponse;
15861
+ };
15862
+ export type OpLiveFinancialStatementError = OpLiveFinancialStatementErrors[keyof OpLiveFinancialStatementErrors];
15863
+ export type OpLiveFinancialStatementResponses = {
15864
+ /**
15865
+ * Successful Response
15866
+ */
15867
+ 200: OperationEnvelope;
15868
+ };
15869
+ export type OpLiveFinancialStatementResponse = OpLiveFinancialStatementResponses[keyof OpLiveFinancialStatementResponses];
15751
15870
  export type OpBuildFactGridData = {
15752
15871
  body: CreateViewRequest;
15753
15872
  headers?: {
@@ -15807,8 +15926,8 @@ export type OpBuildFactGridResponses = {
15807
15926
  200: OperationEnvelope;
15808
15927
  };
15809
15928
  export type OpBuildFactGridResponse = OpBuildFactGridResponses[keyof OpBuildFactGridResponses];
15810
- export type OpCreatePortfolioData = {
15811
- body: CreatePortfolioRequest;
15929
+ export type OpFinancialStatementAnalysisData = {
15930
+ body: FinancialStatementAnalysisRequest;
15812
15931
  headers?: {
15813
15932
  /**
15814
15933
  * Idempotency-Key
@@ -15822,9 +15941,9 @@ export type OpCreatePortfolioData = {
15822
15941
  graph_id: string;
15823
15942
  };
15824
15943
  query?: never;
15825
- url: '/extensions/roboinvestor/{graph_id}/operations/create-portfolio';
15944
+ url: '/extensions/roboledger/{graph_id}/operations/financial-statement-analysis';
15826
15945
  };
15827
- export type OpCreatePortfolioErrors = {
15946
+ export type OpFinancialStatementAnalysisErrors = {
15828
15947
  /**
15829
15948
  * Invalid request
15830
15949
  */
@@ -15858,6 +15977,65 @@ export type OpCreatePortfolioErrors = {
15858
15977
  */
15859
15978
  500: ErrorResponse;
15860
15979
  };
15980
+ export type OpFinancialStatementAnalysisError = OpFinancialStatementAnalysisErrors[keyof OpFinancialStatementAnalysisErrors];
15981
+ export type OpFinancialStatementAnalysisResponses = {
15982
+ /**
15983
+ * Successful Response
15984
+ */
15985
+ 200: OperationEnvelope;
15986
+ };
15987
+ export type OpFinancialStatementAnalysisResponse = OpFinancialStatementAnalysisResponses[keyof OpFinancialStatementAnalysisResponses];
15988
+ export type OpCreatePortfolioData = {
15989
+ body: CreatePortfolioRequest;
15990
+ headers?: {
15991
+ /**
15992
+ * Idempotency-Key
15993
+ */
15994
+ 'Idempotency-Key'?: string | null;
15995
+ };
15996
+ path: {
15997
+ /**
15998
+ * Graph Id
15999
+ */
16000
+ graph_id: string;
16001
+ };
16002
+ query?: never;
16003
+ url: '/extensions/roboinvestor/{graph_id}/operations/create-portfolio';
16004
+ };
16005
+ export type OpCreatePortfolioErrors = {
16006
+ /**
16007
+ * Invalid request payload
16008
+ */
16009
+ 400: OperationError;
16010
+ /**
16011
+ * Unauthorized — missing or invalid credentials
16012
+ */
16013
+ 401: unknown;
16014
+ /**
16015
+ * Forbidden — caller cannot access this graph
16016
+ */
16017
+ 403: unknown;
16018
+ /**
16019
+ * Resource not found (graph, ledger, report, etc.)
16020
+ */
16021
+ 404: OperationError;
16022
+ /**
16023
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
16024
+ */
16025
+ 409: OperationError;
16026
+ /**
16027
+ * Validation Error
16028
+ */
16029
+ 422: HttpValidationError;
16030
+ /**
16031
+ * Rate limit exceeded
16032
+ */
16033
+ 429: unknown;
16034
+ /**
16035
+ * Internal error
16036
+ */
16037
+ 500: unknown;
16038
+ };
15861
16039
  export type OpCreatePortfolioError = OpCreatePortfolioErrors[keyof OpCreatePortfolioErrors];
15862
16040
  export type OpCreatePortfolioResponses = {
15863
16041
  /**
@@ -15885,25 +16063,25 @@ export type OpUpdatePortfolioData = {
15885
16063
  };
15886
16064
  export type OpUpdatePortfolioErrors = {
15887
16065
  /**
15888
- * Invalid request
16066
+ * Invalid request payload
15889
16067
  */
15890
- 400: ErrorResponse;
16068
+ 400: OperationError;
15891
16069
  /**
15892
- * Authentication required
16070
+ * Unauthorized — missing or invalid credentials
15893
16071
  */
15894
- 401: ErrorResponse;
16072
+ 401: unknown;
15895
16073
  /**
15896
- * Access denied
16074
+ * Forbidden — caller cannot access this graph
15897
16075
  */
15898
- 403: ErrorResponse;
16076
+ 403: unknown;
15899
16077
  /**
15900
- * Resource not found
16078
+ * Resource not found (graph, ledger, report, etc.)
15901
16079
  */
15902
- 404: ErrorResponse;
16080
+ 404: OperationError;
15903
16081
  /**
15904
- * Idempotency-Key conflict — key reused with different body
16082
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
15905
16083
  */
15906
- 409: ErrorResponse;
16084
+ 409: OperationError;
15907
16085
  /**
15908
16086
  * Validation Error
15909
16087
  */
@@ -15911,11 +16089,11 @@ export type OpUpdatePortfolioErrors = {
15911
16089
  /**
15912
16090
  * Rate limit exceeded
15913
16091
  */
15914
- 429: ErrorResponse;
16092
+ 429: unknown;
15915
16093
  /**
15916
- * Internal server error
16094
+ * Internal error
15917
16095
  */
15918
- 500: ErrorResponse;
16096
+ 500: unknown;
15919
16097
  };
15920
16098
  export type OpUpdatePortfolioError = OpUpdatePortfolioErrors[keyof OpUpdatePortfolioErrors];
15921
16099
  export type OpUpdatePortfolioResponses = {
@@ -15944,25 +16122,25 @@ export type OpDeletePortfolioData = {
15944
16122
  };
15945
16123
  export type OpDeletePortfolioErrors = {
15946
16124
  /**
15947
- * Invalid request
16125
+ * Invalid request payload
15948
16126
  */
15949
- 400: ErrorResponse;
16127
+ 400: OperationError;
15950
16128
  /**
15951
- * Authentication required
16129
+ * Unauthorized — missing or invalid credentials
15952
16130
  */
15953
- 401: ErrorResponse;
16131
+ 401: unknown;
15954
16132
  /**
15955
- * Access denied
16133
+ * Forbidden — caller cannot access this graph
15956
16134
  */
15957
- 403: ErrorResponse;
16135
+ 403: unknown;
15958
16136
  /**
15959
- * Resource not found
16137
+ * Resource not found (graph, ledger, report, etc.)
15960
16138
  */
15961
- 404: ErrorResponse;
16139
+ 404: OperationError;
15962
16140
  /**
15963
- * Idempotency-Key conflict — key reused with different body
16141
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
15964
16142
  */
15965
- 409: ErrorResponse;
16143
+ 409: OperationError;
15966
16144
  /**
15967
16145
  * Validation Error
15968
16146
  */
@@ -15970,11 +16148,11 @@ export type OpDeletePortfolioErrors = {
15970
16148
  /**
15971
16149
  * Rate limit exceeded
15972
16150
  */
15973
- 429: ErrorResponse;
16151
+ 429: unknown;
15974
16152
  /**
15975
- * Internal server error
16153
+ * Internal error
15976
16154
  */
15977
- 500: ErrorResponse;
16155
+ 500: unknown;
15978
16156
  };
15979
16157
  export type OpDeletePortfolioError = OpDeletePortfolioErrors[keyof OpDeletePortfolioErrors];
15980
16158
  export type OpDeletePortfolioResponses = {
@@ -16003,25 +16181,25 @@ export type OpCreateSecurityData = {
16003
16181
  };
16004
16182
  export type OpCreateSecurityErrors = {
16005
16183
  /**
16006
- * Invalid request
16184
+ * Invalid request payload
16007
16185
  */
16008
- 400: ErrorResponse;
16186
+ 400: OperationError;
16009
16187
  /**
16010
- * Authentication required
16188
+ * Unauthorized — missing or invalid credentials
16011
16189
  */
16012
- 401: ErrorResponse;
16190
+ 401: unknown;
16013
16191
  /**
16014
- * Access denied
16192
+ * Forbidden — caller cannot access this graph
16015
16193
  */
16016
- 403: ErrorResponse;
16194
+ 403: unknown;
16017
16195
  /**
16018
- * Resource not found
16196
+ * Resource not found (graph, ledger, report, etc.)
16019
16197
  */
16020
- 404: ErrorResponse;
16198
+ 404: OperationError;
16021
16199
  /**
16022
- * Idempotency-Key conflict — key reused with different body
16200
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
16023
16201
  */
16024
- 409: ErrorResponse;
16202
+ 409: OperationError;
16025
16203
  /**
16026
16204
  * Validation Error
16027
16205
  */
@@ -16029,11 +16207,11 @@ export type OpCreateSecurityErrors = {
16029
16207
  /**
16030
16208
  * Rate limit exceeded
16031
16209
  */
16032
- 429: ErrorResponse;
16210
+ 429: unknown;
16033
16211
  /**
16034
- * Internal server error
16212
+ * Internal error
16035
16213
  */
16036
- 500: ErrorResponse;
16214
+ 500: unknown;
16037
16215
  };
16038
16216
  export type OpCreateSecurityError = OpCreateSecurityErrors[keyof OpCreateSecurityErrors];
16039
16217
  export type OpCreateSecurityResponses = {
@@ -16062,25 +16240,25 @@ export type OpUpdateSecurityData = {
16062
16240
  };
16063
16241
  export type OpUpdateSecurityErrors = {
16064
16242
  /**
16065
- * Invalid request
16243
+ * Invalid request payload
16066
16244
  */
16067
- 400: ErrorResponse;
16245
+ 400: OperationError;
16068
16246
  /**
16069
- * Authentication required
16247
+ * Unauthorized — missing or invalid credentials
16070
16248
  */
16071
- 401: ErrorResponse;
16249
+ 401: unknown;
16072
16250
  /**
16073
- * Access denied
16251
+ * Forbidden — caller cannot access this graph
16074
16252
  */
16075
- 403: ErrorResponse;
16253
+ 403: unknown;
16076
16254
  /**
16077
- * Resource not found
16255
+ * Resource not found (graph, ledger, report, etc.)
16078
16256
  */
16079
- 404: ErrorResponse;
16257
+ 404: OperationError;
16080
16258
  /**
16081
- * Idempotency-Key conflict — key reused with different body
16259
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
16082
16260
  */
16083
- 409: ErrorResponse;
16261
+ 409: OperationError;
16084
16262
  /**
16085
16263
  * Validation Error
16086
16264
  */
@@ -16088,11 +16266,11 @@ export type OpUpdateSecurityErrors = {
16088
16266
  /**
16089
16267
  * Rate limit exceeded
16090
16268
  */
16091
- 429: ErrorResponse;
16269
+ 429: unknown;
16092
16270
  /**
16093
- * Internal server error
16271
+ * Internal error
16094
16272
  */
16095
- 500: ErrorResponse;
16273
+ 500: unknown;
16096
16274
  };
16097
16275
  export type OpUpdateSecurityError = OpUpdateSecurityErrors[keyof OpUpdateSecurityErrors];
16098
16276
  export type OpUpdateSecurityResponses = {
@@ -16121,25 +16299,25 @@ export type OpDeleteSecurityData = {
16121
16299
  };
16122
16300
  export type OpDeleteSecurityErrors = {
16123
16301
  /**
16124
- * Invalid request
16302
+ * Invalid request payload
16125
16303
  */
16126
- 400: ErrorResponse;
16304
+ 400: OperationError;
16127
16305
  /**
16128
- * Authentication required
16306
+ * Unauthorized — missing or invalid credentials
16129
16307
  */
16130
- 401: ErrorResponse;
16308
+ 401: unknown;
16131
16309
  /**
16132
- * Access denied
16310
+ * Forbidden — caller cannot access this graph
16133
16311
  */
16134
- 403: ErrorResponse;
16312
+ 403: unknown;
16135
16313
  /**
16136
- * Resource not found
16314
+ * Resource not found (graph, ledger, report, etc.)
16137
16315
  */
16138
- 404: ErrorResponse;
16316
+ 404: OperationError;
16139
16317
  /**
16140
- * Idempotency-Key conflict — key reused with different body
16318
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
16141
16319
  */
16142
- 409: ErrorResponse;
16320
+ 409: OperationError;
16143
16321
  /**
16144
16322
  * Validation Error
16145
16323
  */
@@ -16147,11 +16325,11 @@ export type OpDeleteSecurityErrors = {
16147
16325
  /**
16148
16326
  * Rate limit exceeded
16149
16327
  */
16150
- 429: ErrorResponse;
16328
+ 429: unknown;
16151
16329
  /**
16152
- * Internal server error
16330
+ * Internal error
16153
16331
  */
16154
- 500: ErrorResponse;
16332
+ 500: unknown;
16155
16333
  };
16156
16334
  export type OpDeleteSecurityError = OpDeleteSecurityErrors[keyof OpDeleteSecurityErrors];
16157
16335
  export type OpDeleteSecurityResponses = {
@@ -16180,25 +16358,25 @@ export type OpCreatePositionData = {
16180
16358
  };
16181
16359
  export type OpCreatePositionErrors = {
16182
16360
  /**
16183
- * Invalid request
16361
+ * Invalid request payload
16184
16362
  */
16185
- 400: ErrorResponse;
16363
+ 400: OperationError;
16186
16364
  /**
16187
- * Authentication required
16365
+ * Unauthorized — missing or invalid credentials
16188
16366
  */
16189
- 401: ErrorResponse;
16367
+ 401: unknown;
16190
16368
  /**
16191
- * Access denied
16369
+ * Forbidden — caller cannot access this graph
16192
16370
  */
16193
- 403: ErrorResponse;
16371
+ 403: unknown;
16194
16372
  /**
16195
- * Resource not found
16373
+ * Resource not found (graph, ledger, report, etc.)
16196
16374
  */
16197
- 404: ErrorResponse;
16375
+ 404: OperationError;
16198
16376
  /**
16199
- * Idempotency-Key conflict — key reused with different body
16377
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
16200
16378
  */
16201
- 409: ErrorResponse;
16379
+ 409: OperationError;
16202
16380
  /**
16203
16381
  * Validation Error
16204
16382
  */
@@ -16206,11 +16384,11 @@ export type OpCreatePositionErrors = {
16206
16384
  /**
16207
16385
  * Rate limit exceeded
16208
16386
  */
16209
- 429: ErrorResponse;
16387
+ 429: unknown;
16210
16388
  /**
16211
- * Internal server error
16389
+ * Internal error
16212
16390
  */
16213
- 500: ErrorResponse;
16391
+ 500: unknown;
16214
16392
  };
16215
16393
  export type OpCreatePositionError = OpCreatePositionErrors[keyof OpCreatePositionErrors];
16216
16394
  export type OpCreatePositionResponses = {
@@ -16239,25 +16417,25 @@ export type OpUpdatePositionData = {
16239
16417
  };
16240
16418
  export type OpUpdatePositionErrors = {
16241
16419
  /**
16242
- * Invalid request
16420
+ * Invalid request payload
16243
16421
  */
16244
- 400: ErrorResponse;
16422
+ 400: OperationError;
16245
16423
  /**
16246
- * Authentication required
16424
+ * Unauthorized — missing or invalid credentials
16247
16425
  */
16248
- 401: ErrorResponse;
16426
+ 401: unknown;
16249
16427
  /**
16250
- * Access denied
16428
+ * Forbidden — caller cannot access this graph
16251
16429
  */
16252
- 403: ErrorResponse;
16430
+ 403: unknown;
16253
16431
  /**
16254
- * Resource not found
16432
+ * Resource not found (graph, ledger, report, etc.)
16255
16433
  */
16256
- 404: ErrorResponse;
16434
+ 404: OperationError;
16257
16435
  /**
16258
- * Idempotency-Key conflict — key reused with different body
16436
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
16259
16437
  */
16260
- 409: ErrorResponse;
16438
+ 409: OperationError;
16261
16439
  /**
16262
16440
  * Validation Error
16263
16441
  */
@@ -16265,11 +16443,11 @@ export type OpUpdatePositionErrors = {
16265
16443
  /**
16266
16444
  * Rate limit exceeded
16267
16445
  */
16268
- 429: ErrorResponse;
16446
+ 429: unknown;
16269
16447
  /**
16270
- * Internal server error
16448
+ * Internal error
16271
16449
  */
16272
- 500: ErrorResponse;
16450
+ 500: unknown;
16273
16451
  };
16274
16452
  export type OpUpdatePositionError = OpUpdatePositionErrors[keyof OpUpdatePositionErrors];
16275
16453
  export type OpUpdatePositionResponses = {
@@ -16298,25 +16476,25 @@ export type OpDeletePositionData = {
16298
16476
  };
16299
16477
  export type OpDeletePositionErrors = {
16300
16478
  /**
16301
- * Invalid request
16479
+ * Invalid request payload
16302
16480
  */
16303
- 400: ErrorResponse;
16481
+ 400: OperationError;
16304
16482
  /**
16305
- * Authentication required
16483
+ * Unauthorized — missing or invalid credentials
16306
16484
  */
16307
- 401: ErrorResponse;
16485
+ 401: unknown;
16308
16486
  /**
16309
- * Access denied
16487
+ * Forbidden — caller cannot access this graph
16310
16488
  */
16311
- 403: ErrorResponse;
16489
+ 403: unknown;
16312
16490
  /**
16313
- * Resource not found
16491
+ * Resource not found (graph, ledger, report, etc.)
16314
16492
  */
16315
- 404: ErrorResponse;
16493
+ 404: OperationError;
16316
16494
  /**
16317
- * Idempotency-Key conflict — key reused with different body
16495
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
16318
16496
  */
16319
- 409: ErrorResponse;
16497
+ 409: OperationError;
16320
16498
  /**
16321
16499
  * Validation Error
16322
16500
  */
@@ -16324,11 +16502,11 @@ export type OpDeletePositionErrors = {
16324
16502
  /**
16325
16503
  * Rate limit exceeded
16326
16504
  */
16327
- 429: ErrorResponse;
16505
+ 429: unknown;
16328
16506
  /**
16329
- * Internal server error
16507
+ * Internal error
16330
16508
  */
16331
- 500: ErrorResponse;
16509
+ 500: unknown;
16332
16510
  };
16333
16511
  export type OpDeletePositionError = OpDeletePositionErrors[keyof OpDeletePositionErrors];
16334
16512
  export type OpDeletePositionResponses = {