@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
package/sdk/types.gen.ts CHANGED
@@ -967,46 +967,6 @@ export type BulkCreateAssociationsRequest = {
967
967
  associations: Array<BulkAssociationItem>;
968
968
  };
969
969
 
970
- /**
971
- * BulkDocumentUploadRequest
972
- *
973
- * Bulk upload multiple markdown documents.
974
- */
975
- export type BulkDocumentUploadRequest = {
976
- /**
977
- * Documents
978
- *
979
- * Documents to upload (max 50)
980
- */
981
- documents: Array<DocumentUploadRequest>;
982
- };
983
-
984
- /**
985
- * BulkDocumentUploadResponse
986
- *
987
- * Response from bulk document upload.
988
- */
989
- export type BulkDocumentUploadResponse = {
990
- /**
991
- * Total Documents
992
- */
993
- total_documents: number;
994
- /**
995
- * Total Sections Indexed
996
- */
997
- total_sections_indexed: number;
998
- /**
999
- * Results
1000
- */
1001
- results: Array<DocumentUploadResponse>;
1002
- /**
1003
- * Errors
1004
- */
1005
- errors?: Array<{
1006
- [key: string]: unknown;
1007
- }> | null;
1008
- };
1009
-
1010
970
  /**
1011
971
  * ChangeTierOp
1012
972
  *
@@ -1421,6 +1381,11 @@ export type CreateCheckoutRequest = {
1421
1381
 
1422
1382
  /**
1423
1383
  * CreateClosingEntryOperation
1384
+ *
1385
+ * CQRS-shaped body for `POST /operations/create-closing-entry`.
1386
+ *
1387
+ * `structure_id` moves into the body so REST + MCP share a single body
1388
+ * type via the registrar.
1424
1389
  */
1425
1390
  export type CreateClosingEntryOperation = {
1426
1391
  /**
@@ -1449,6 +1414,8 @@ export type CreateClosingEntryOperation = {
1449
1414
  memo?: string | null;
1450
1415
  /**
1451
1416
  * Structure Id
1417
+ *
1418
+ * Schedule structure the closing entry is derived from.
1452
1419
  */
1453
1420
  structure_id: string;
1454
1421
  };
@@ -1501,11 +1468,7 @@ export type CreateElementRequest = {
1501
1468
  /**
1502
1469
  * Classification
1503
1470
  */
1504
- classification: 'asset' | 'liability' | 'equity' | 'revenue' | 'expense';
1505
- /**
1506
- * Sub Classification
1507
- */
1508
- sub_classification?: string | null;
1471
+ classification: 'asset' | 'contraAsset' | 'liability' | 'contraLiability' | 'equity' | 'contraEquity' | 'temporaryEquity' | 'revenue' | 'expense' | 'expenseReversal' | 'gain' | 'loss' | 'comprehensiveIncome' | 'investmentByOwners' | 'distributionToOwners';
1509
1472
  /**
1510
1473
  * Balance Type
1511
1474
  */
@@ -1533,7 +1496,7 @@ export type CreateElementRequest = {
1533
1496
  /**
1534
1497
  * Source
1535
1498
  */
1536
- source?: 'native' | 'sfac6' | 'us-gaap' | 'ifrs' | 'quickbooks' | 'xero' | 'plaid' | 'import';
1499
+ source?: 'native' | 'fac' | 'rs-gaap' | 'us-gaap' | 'ifrs' | 'quickbooks' | 'xero' | 'plaid' | 'import';
1537
1500
  /**
1538
1501
  * Currency
1539
1502
  */
@@ -1598,6 +1561,35 @@ export type CreateGraphRequest = {
1598
1561
  tags?: Array<string>;
1599
1562
  };
1600
1563
 
1564
+ /**
1565
+ * CreateInformationBlockRequest
1566
+ *
1567
+ * Generic create request — discriminator + typed-at-dispatch payload.
1568
+ *
1569
+ * ``block_type`` selects the registry entry. ``payload`` is validated
1570
+ * against ``BlockTypeRegistryEntry.create_request_model`` (e.g.
1571
+ * :class:`CreateScheduleRequest` for ``block_type='schedule'``) by the
1572
+ * command dispatcher. Chosen over a Pydantic discriminated union on the
1573
+ * top-level request so adding a block type is one registry line, not a
1574
+ * union-arm edit at the request-model layer.
1575
+ */
1576
+ export type CreateInformationBlockRequest = {
1577
+ /**
1578
+ * Block Type
1579
+ *
1580
+ * Block type discriminator. Must match a registered entry in robosystems.operations.information_block.registry.REGISTRY.
1581
+ */
1582
+ block_type: string;
1583
+ /**
1584
+ * Payload
1585
+ *
1586
+ * 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.
1587
+ */
1588
+ payload?: {
1589
+ [key: string]: unknown;
1590
+ };
1591
+ };
1592
+
1601
1593
  /**
1602
1594
  * CreateJournalEntryRequest
1603
1595
  *
@@ -1671,6 +1663,11 @@ export type CreateManualClosingEntryRequest = {
1671
1663
 
1672
1664
  /**
1673
1665
  * CreateMappingAssociationOperation
1666
+ *
1667
+ * CQRS-shaped body for `POST /operations/create-mapping-association`.
1668
+ *
1669
+ * Bundles the target mapping structure's `mapping_id` with the association
1670
+ * payload so REST + MCP share a single body type via the registrar.
1674
1671
  */
1675
1672
  export type CreateMappingAssociationOperation = {
1676
1673
  /**
@@ -1684,7 +1681,7 @@ export type CreateMappingAssociationOperation = {
1684
1681
  /**
1685
1682
  * Association Type
1686
1683
  */
1687
- association_type?: 'presentation' | 'calculation' | 'mapping';
1684
+ association_type?: 'presentation' | 'calculation' | 'mapping' | 'equivalence';
1688
1685
  /**
1689
1686
  * Order Value
1690
1687
  */
@@ -1703,6 +1700,8 @@ export type CreateMappingAssociationOperation = {
1703
1700
  suggested_by?: string | null;
1704
1701
  /**
1705
1702
  * Mapping Id
1703
+ *
1704
+ * Target mapping structure ID.
1706
1705
  */
1707
1706
  mapping_id: string;
1708
1707
  };
@@ -1869,56 +1868,6 @@ export type CreateRepositorySubscriptionRequest = {
1869
1868
  plan_name: string;
1870
1869
  };
1871
1870
 
1872
- /**
1873
- * CreateScheduleRequest
1874
- */
1875
- export type CreateScheduleRequest = {
1876
- /**
1877
- * Name
1878
- *
1879
- * Schedule name
1880
- */
1881
- name: string;
1882
- /**
1883
- * Taxonomy Id
1884
- *
1885
- * Taxonomy ID (auto-creates if omitted)
1886
- */
1887
- taxonomy_id?: string | null;
1888
- /**
1889
- * Element Ids
1890
- *
1891
- * Element IDs to include
1892
- */
1893
- element_ids: Array<string>;
1894
- /**
1895
- * Period Start
1896
- *
1897
- * First period start
1898
- */
1899
- period_start: string;
1900
- /**
1901
- * Period End
1902
- *
1903
- * Last period end
1904
- */
1905
- period_end: string;
1906
- /**
1907
- * Monthly Amount
1908
- *
1909
- * Monthly amount in cents
1910
- */
1911
- monthly_amount: number;
1912
- entry_template: EntryTemplateRequest;
1913
- schedule_metadata?: ScheduleMetadataRequest | null;
1914
- /**
1915
- * Closed Through
1916
- *
1917
- * 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.
1918
- */
1919
- closed_through?: string | null;
1920
- };
1921
-
1922
1871
  /**
1923
1872
  * CreateSecurityRequest
1924
1873
  */
@@ -2687,6 +2636,31 @@ export type DeleteFileResponse = {
2687
2636
  graph_marked_stale?: boolean;
2688
2637
  };
2689
2638
 
2639
+ /**
2640
+ * DeleteInformationBlockRequest
2641
+ *
2642
+ * Generic delete request — mirrors :class:`CreateInformationBlockRequest`.
2643
+ *
2644
+ * Validated against the registry entry's ``delete_request_model``.
2645
+ * Block types that don't support deletion raise ``NotImplementedError``.
2646
+ */
2647
+ export type DeleteInformationBlockRequest = {
2648
+ /**
2649
+ * Block Type
2650
+ *
2651
+ * Block type discriminator. Must match a registered entry.
2652
+ */
2653
+ block_type: string;
2654
+ /**
2655
+ * Payload
2656
+ *
2657
+ * Block-type-specific delete payload. Typically carries just the structure_id. Shape-validated against the registry entry's `delete_request_model` at dispatch time.
2658
+ */
2659
+ payload?: {
2660
+ [key: string]: unknown;
2661
+ };
2662
+ };
2663
+
2690
2664
  /**
2691
2665
  * DeleteJournalEntryRequest
2692
2666
  *
@@ -2716,20 +2690,28 @@ export type DeleteMappingAssociationOperation = {
2716
2690
 
2717
2691
  /**
2718
2692
  * DeletePortfolioOperation
2693
+ *
2694
+ * CQRS body for `POST /operations/delete-portfolio`.
2719
2695
  */
2720
2696
  export type DeletePortfolioOperation = {
2721
2697
  /**
2722
2698
  * Portfolio Id
2699
+ *
2700
+ * Target portfolio ID.
2723
2701
  */
2724
2702
  portfolio_id: string;
2725
2703
  };
2726
2704
 
2727
2705
  /**
2728
2706
  * DeletePositionOperation
2707
+ *
2708
+ * CQRS body for `POST /operations/delete-position` (soft delete).
2729
2709
  */
2730
2710
  export type DeletePositionOperation = {
2731
2711
  /**
2732
2712
  * Position Id
2713
+ *
2714
+ * Target position ID.
2733
2715
  */
2734
2716
  position_id: string;
2735
2717
  };
@@ -2754,29 +2736,16 @@ export type DeleteReportOperation = {
2754
2736
  report_id: string;
2755
2737
  };
2756
2738
 
2757
- /**
2758
- * DeleteScheduleRequest
2759
- *
2760
- * Delete a schedule — cascades through facts and associations.
2761
- *
2762
- * Hard deletes the Structure, all Facts tied to it, and all
2763
- * Associations tied to it. This is a permanent, irreversible
2764
- * operation. For ending a schedule early without removing history,
2765
- * use truncate-schedule instead.
2766
- */
2767
- export type DeleteScheduleRequest = {
2768
- /**
2769
- * Structure Id
2770
- */
2771
- structure_id: string;
2772
- };
2773
-
2774
2739
  /**
2775
2740
  * DeleteSecurityOperation
2741
+ *
2742
+ * CQRS body for `POST /operations/delete-security` (soft delete).
2776
2743
  */
2777
2744
  export type DeleteSecurityOperation = {
2778
2745
  /**
2779
2746
  * Security Id
2747
+ *
2748
+ * Target security ID.
2780
2749
  */
2781
2750
  security_id: string;
2782
2751
  };
@@ -3280,42 +3249,6 @@ export type EnhancedFileStatusLayers = {
3280
3249
  graph: FileLayerStatus;
3281
3250
  };
3282
3251
 
3283
- /**
3284
- * EntryTemplateRequest
3285
- */
3286
- export type EntryTemplateRequest = {
3287
- /**
3288
- * Debit Element Id
3289
- *
3290
- * Element to debit (e.g., Depreciation Expense)
3291
- */
3292
- debit_element_id: string;
3293
- /**
3294
- * Credit Element Id
3295
- *
3296
- * Element to credit (e.g., Accumulated Depreciation)
3297
- */
3298
- credit_element_id: string;
3299
- /**
3300
- * Entry Type
3301
- *
3302
- * Entry type for generated entries
3303
- */
3304
- entry_type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
3305
- /**
3306
- * Memo Template
3307
- *
3308
- * Memo template ({structure_name} is replaced)
3309
- */
3310
- memo_template?: string;
3311
- /**
3312
- * Auto Reverse
3313
- *
3314
- * Auto-generate a reversing entry on the first day of the next period
3315
- */
3316
- auto_reverse?: boolean;
3317
- };
3318
-
3319
3252
  /**
3320
3253
  * ErrorResponse
3321
3254
  *
@@ -3351,6 +3284,45 @@ export type ErrorResponse = {
3351
3284
  timestamp?: string | null;
3352
3285
  };
3353
3286
 
3287
+ /**
3288
+ * EvaluateRulesRequest
3289
+ *
3290
+ * Request body for the ``evaluate-rules`` operation (Phase delta.3).
3291
+ *
3292
+ * Runs every rule scoped to ``structure_id`` (plus element/association-
3293
+ * scoped rules for the structure's atoms), binds ``$Variable`` references
3294
+ * to facts via qname lookup, and writes one
3295
+ * :class:`VerificationResult` row per rule.
3296
+ *
3297
+ * Optional ``period_start`` / ``period_end`` narrow the fact-binding
3298
+ * window; without them the engine uses the most recent ``in_scope`` fact
3299
+ * for each element regardless of period.
3300
+ */
3301
+ export type EvaluateRulesRequest = {
3302
+ /**
3303
+ * Structure Id
3304
+ */
3305
+ structure_id: string;
3306
+ /**
3307
+ * Fact Set Id
3308
+ *
3309
+ * 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).
3310
+ */
3311
+ fact_set_id?: string | null;
3312
+ /**
3313
+ * Period Start
3314
+ *
3315
+ * Lower bound on the fact period window (inclusive).
3316
+ */
3317
+ period_start?: string | null;
3318
+ /**
3319
+ * Period End
3320
+ *
3321
+ * Upper bound on the fact period window (inclusive).
3322
+ */
3323
+ period_end?: string | null;
3324
+ };
3325
+
3354
3326
  /**
3355
3327
  * FileInfo
3356
3328
  */
@@ -3519,6 +3491,48 @@ export type FileUploadResponse = {
3519
3491
  s3_key: string;
3520
3492
  };
3521
3493
 
3494
+ /**
3495
+ * FinancialStatementAnalysisRequest
3496
+ *
3497
+ * Request for financial-statement-analysis (graph-backed Cypher).
3498
+ */
3499
+ export type FinancialStatementAnalysisRequest = {
3500
+ /**
3501
+ * Statement Type
3502
+ *
3503
+ * income_statement | balance_sheet | cash_flow_statement | equity_statement
3504
+ */
3505
+ statement_type: string;
3506
+ /**
3507
+ * Ticker
3508
+ *
3509
+ * Company ticker (required on shared-repo graphs, ignored otherwise)
3510
+ */
3511
+ ticker?: string | null;
3512
+ /**
3513
+ * Report Id
3514
+ *
3515
+ * Specific report identifier. If omitted, auto-resolves latest by ticker + filters.
3516
+ */
3517
+ report_id?: string | null;
3518
+ /**
3519
+ * Fiscal Year
3520
+ *
3521
+ * Filter by fiscal year focus when auto-resolving the report
3522
+ */
3523
+ fiscal_year?: number | null;
3524
+ /**
3525
+ * Period Type
3526
+ *
3527
+ * annual | quarterly | instant
3528
+ */
3529
+ period_type?: string | null;
3530
+ /**
3531
+ * Limit
3532
+ */
3533
+ limit?: number;
3534
+ };
3535
+
3522
3536
  /**
3523
3537
  * ForgotPasswordRequest
3524
3538
  *
@@ -4858,6 +4872,50 @@ export type ListTableFilesResponse = {
4858
4872
  total_size_bytes: number;
4859
4873
  };
4860
4874
 
4875
+ /**
4876
+ * LiveFinancialStatementRequest
4877
+ *
4878
+ * Request for live-financial-statement (OLTP, entity graphs only).
4879
+ */
4880
+ export type LiveFinancialStatementRequest = {
4881
+ /**
4882
+ * Statement Type
4883
+ *
4884
+ * income_statement | balance_sheet | equity_statement
4885
+ */
4886
+ statement_type: string;
4887
+ /**
4888
+ * Period Start
4889
+ *
4890
+ * Explicit window start. Overrides period_type/fiscal_year.
4891
+ */
4892
+ period_start?: string | null;
4893
+ /**
4894
+ * Period End
4895
+ *
4896
+ * Explicit window end. Overrides period_type/fiscal_year.
4897
+ */
4898
+ period_end?: string | null;
4899
+ /**
4900
+ * Period Type
4901
+ *
4902
+ * annual | quarterly | instant (ignored when dates supplied)
4903
+ */
4904
+ period_type?: string | null;
4905
+ /**
4906
+ * Fiscal Year
4907
+ *
4908
+ * Fiscal year for annual window (anchored on FiscalCalendar)
4909
+ */
4910
+ fiscal_year?: number | null;
4911
+ /**
4912
+ * Limit
4913
+ *
4914
+ * Max fact rows returned
4915
+ */
4916
+ limit?: number;
4917
+ };
4918
+
4861
4919
  /**
4862
4920
  * LoginRequest
4863
4921
  *
@@ -6193,42 +6251,6 @@ export type SsoTokenResponse = {
6193
6251
  apps: Array<string>;
6194
6252
  };
6195
6253
 
6196
- /**
6197
- * ScheduleMetadataRequest
6198
- */
6199
- export type ScheduleMetadataRequest = {
6200
- /**
6201
- * Method
6202
- *
6203
- * Calculation method
6204
- */
6205
- method?: string;
6206
- /**
6207
- * Original Amount
6208
- *
6209
- * Cost basis in cents
6210
- */
6211
- original_amount?: number;
6212
- /**
6213
- * Residual Value
6214
- *
6215
- * Salvage value in cents
6216
- */
6217
- residual_value?: number;
6218
- /**
6219
- * Useful Life Months
6220
- *
6221
- * Useful life in months
6222
- */
6223
- useful_life_months?: number;
6224
- /**
6225
- * Asset Element Id
6226
- *
6227
- * BS asset element for net book value
6228
- */
6229
- asset_element_id?: string | null;
6230
- };
6231
-
6232
6254
  /**
6233
6255
  * SchemaExportResponse
6234
6256
  *
@@ -7209,6 +7231,13 @@ export type TransactionSummaryResponse = {
7209
7231
 
7210
7232
  /**
7211
7233
  * TruncateScheduleOperation
7234
+ *
7235
+ * CQRS-shaped body for `POST /operations/truncate-schedule`.
7236
+ *
7237
+ * Bundles the target schedule's `structure_id` with the update payload so
7238
+ * the single-body signature matches the registrar/MCP contract. The REST
7239
+ * handler, GraphQL resolver, and MCP tool all resolve to the same
7240
+ * `cmd_truncate_schedule(session, body, created_by=...)`.
7212
7241
  */
7213
7242
  export type TruncateScheduleOperation = {
7214
7243
  /**
@@ -7225,6 +7254,8 @@ export type TruncateScheduleOperation = {
7225
7254
  reason: string;
7226
7255
  /**
7227
7256
  * Structure Id
7257
+ *
7258
+ * Target schedule structure ID.
7228
7259
  */
7229
7260
  structure_id: string;
7230
7261
  };
@@ -7330,6 +7361,13 @@ export type UpdateAssociationRequest = {
7330
7361
  * immutable. `parent_id` honors `model_dump(exclude_unset=True)` semantics:
7331
7362
  * omit the field to leave unchanged, pass `null` to clear the parent
7332
7363
  * (make root).
7364
+ *
7365
+ * ``classification`` updates the element's primary FASB
7366
+ * elementsOfFinancialStatements assignment (in ``element_classifications``,
7367
+ * not a direct column on ``elements``). Omit to leave unchanged. Passing a
7368
+ * value replaces the current primary EFS assignment; there is no
7369
+ * set-to-null semantics (use the UI/admin path for full classification
7370
+ * teardown — here we only support correction of a misclassified account).
7333
7371
  */
7334
7372
  export type UpdateElementRequest = {
7335
7373
  /**
@@ -7348,14 +7386,6 @@ export type UpdateElementRequest = {
7348
7386
  * Description
7349
7387
  */
7350
7388
  description?: string | null;
7351
- /**
7352
- * Classification
7353
- */
7354
- classification?: 'asset' | 'liability' | 'equity' | 'revenue' | 'expense' | null;
7355
- /**
7356
- * Sub Classification
7357
- */
7358
- sub_classification?: string | null;
7359
7389
  /**
7360
7390
  * Balance Type
7361
7391
  */
@@ -7372,6 +7402,10 @@ export type UpdateElementRequest = {
7372
7402
  * Currency
7373
7403
  */
7374
7404
  currency?: string | null;
7405
+ /**
7406
+ * Classification
7407
+ */
7408
+ classification?: 'asset' | 'contraAsset' | 'liability' | 'contraLiability' | 'equity' | 'contraEquity' | 'temporaryEquity' | 'revenue' | 'expense' | 'expenseReversal' | 'gain' | 'loss' | 'comprehensiveIncome' | 'investmentByOwners' | 'distributionToOwners' | null;
7375
7409
  };
7376
7410
 
7377
7411
  /**
@@ -7471,17 +7505,44 @@ export type UpdateEntityRequest = {
7471
7505
  };
7472
7506
 
7473
7507
  /**
7474
- * UpdateJournalEntryRequest
7508
+ * UpdateInformationBlockRequest
7475
7509
  *
7476
- * Update a draft journal entry. Posted entries cannot be updated —
7477
- * create a reversal and a corrected entry instead.
7510
+ * Generic update request mirrors :class:`CreateInformationBlockRequest`.
7478
7511
  *
7479
- * Omitted fields are left unchanged. If `line_items` is provided, the
7480
- * existing line items are replaced entirely (atomic delete + insert)
7481
- * and the new set must still balance. If `line_items` is omitted, the
7482
- * existing line items are left untouched.
7512
+ * Validated against the registry entry's ``update_request_model``.
7513
+ * Block types that don't support updates (e.g. the statement family,
7514
+ * whose Structures are library-seeded) surface ``NotImplementedError``
7515
+ * from their dispatch handler, which the registrar maps to HTTP 501.
7483
7516
  */
7484
- export type UpdateJournalEntryRequest = {
7517
+ export type UpdateInformationBlockRequest = {
7518
+ /**
7519
+ * Block Type
7520
+ *
7521
+ * Block type discriminator. Must match a registered entry.
7522
+ */
7523
+ block_type: string;
7524
+ /**
7525
+ * Payload
7526
+ *
7527
+ * 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.
7528
+ */
7529
+ payload?: {
7530
+ [key: string]: unknown;
7531
+ };
7532
+ };
7533
+
7534
+ /**
7535
+ * UpdateJournalEntryRequest
7536
+ *
7537
+ * Update a draft journal entry. Posted entries cannot be updated —
7538
+ * create a reversal and a corrected entry instead.
7539
+ *
7540
+ * Omitted fields are left unchanged. If `line_items` is provided, the
7541
+ * existing line items are replaced entirely (atomic delete + insert)
7542
+ * and the new set must still balance. If `line_items` is omitted, the
7543
+ * existing line items are left untouched.
7544
+ */
7545
+ export type UpdateJournalEntryRequest = {
7485
7546
  /**
7486
7547
  * Entry Id
7487
7548
  */
@@ -7554,6 +7615,11 @@ export type UpdatePasswordRequest = {
7554
7615
 
7555
7616
  /**
7556
7617
  * UpdatePortfolioOperation
7618
+ *
7619
+ * CQRS body for `POST /operations/update-portfolio`.
7620
+ *
7621
+ * Folds `portfolio_id` into the payload so REST + MCP share one body
7622
+ * type via the registrar. Unset fields are ignored (partial update).
7557
7623
  */
7558
7624
  export type UpdatePortfolioOperation = {
7559
7625
  /**
@@ -7578,12 +7644,16 @@ export type UpdatePortfolioOperation = {
7578
7644
  base_currency?: string | null;
7579
7645
  /**
7580
7646
  * Portfolio Id
7647
+ *
7648
+ * Target portfolio ID.
7581
7649
  */
7582
7650
  portfolio_id: string;
7583
7651
  };
7584
7652
 
7585
7653
  /**
7586
7654
  * UpdatePositionOperation
7655
+ *
7656
+ * CQRS body for `POST /operations/update-position`.
7587
7657
  */
7588
7658
  export type UpdatePositionOperation = {
7589
7659
  /**
@@ -7628,6 +7698,8 @@ export type UpdatePositionOperation = {
7628
7698
  notes?: string | null;
7629
7699
  /**
7630
7700
  * Position Id
7701
+ *
7702
+ * Target position ID.
7631
7703
  */
7632
7704
  position_id: string;
7633
7705
  };
@@ -7650,35 +7722,10 @@ export type UpdatePublishListOperation = {
7650
7722
  list_id: string;
7651
7723
  };
7652
7724
 
7653
- /**
7654
- * UpdateScheduleRequest
7655
- *
7656
- * Update mutable fields on a schedule.
7657
- *
7658
- * Editable: name, entry_template, schedule_metadata (all live on the
7659
- * Structure row / its metadata_ JSONB column).
7660
- *
7661
- * NOT editable via this op: period_start, period_end, monthly_amount.
7662
- * Those require fact regeneration — use truncate-schedule (end early)
7663
- * and create-schedule (start new) instead.
7664
- *
7665
- * Omitted fields are left unchanged.
7666
- */
7667
- export type UpdateScheduleRequest = {
7668
- /**
7669
- * Structure Id
7670
- */
7671
- structure_id: string;
7672
- /**
7673
- * Name
7674
- */
7675
- name?: string | null;
7676
- entry_template?: EntryTemplateRequest | null;
7677
- schedule_metadata?: ScheduleMetadataRequest | null;
7678
- };
7679
-
7680
7725
  /**
7681
7726
  * UpdateSecurityOperation
7727
+ *
7728
+ * CQRS body for `POST /operations/update-security`.
7682
7729
  */
7683
7730
  export type UpdateSecurityOperation = {
7684
7731
  /**
@@ -7721,6 +7768,8 @@ export type UpdateSecurityOperation = {
7721
7768
  outstanding_shares?: number | null;
7722
7769
  /**
7723
7770
  * Security Id
7771
+ *
7772
+ * Target security ID.
7724
7773
  */
7725
7774
  security_id: string;
7726
7775
  };
@@ -12255,60 +12304,6 @@ export type UpdateDocumentResponses = {
12255
12304
 
12256
12305
  export type UpdateDocumentResponse = UpdateDocumentResponses[keyof UpdateDocumentResponses];
12257
12306
 
12258
- export type UploadDocumentsBulkData = {
12259
- body: BulkDocumentUploadRequest;
12260
- path: {
12261
- /**
12262
- * Graph Id
12263
- */
12264
- graph_id: string;
12265
- };
12266
- query?: never;
12267
- url: '/v1/graphs/{graph_id}/documents/bulk';
12268
- };
12269
-
12270
- export type UploadDocumentsBulkErrors = {
12271
- /**
12272
- * Invalid request
12273
- */
12274
- 400: ErrorResponse;
12275
- /**
12276
- * Authentication required
12277
- */
12278
- 401: ErrorResponse;
12279
- /**
12280
- * Access denied
12281
- */
12282
- 403: ErrorResponse;
12283
- /**
12284
- * Resource not found
12285
- */
12286
- 404: ErrorResponse;
12287
- /**
12288
- * Validation Error
12289
- */
12290
- 422: HttpValidationError;
12291
- /**
12292
- * Rate limit exceeded
12293
- */
12294
- 429: ErrorResponse;
12295
- /**
12296
- * Internal server error
12297
- */
12298
- 500: ErrorResponse;
12299
- };
12300
-
12301
- export type UploadDocumentsBulkError = UploadDocumentsBulkErrors[keyof UploadDocumentsBulkErrors];
12302
-
12303
- export type UploadDocumentsBulkResponses = {
12304
- /**
12305
- * Successful Response
12306
- */
12307
- 200: BulkDocumentUploadResponse;
12308
- };
12309
-
12310
- export type UploadDocumentsBulkResponse = UploadDocumentsBulkResponses[keyof UploadDocumentsBulkResponses];
12311
-
12312
12307
  export type OpCreateSubgraphData = {
12313
12308
  body: CreateSubgraphRequest;
12314
12309
  headers?: {
@@ -14435,8 +14430,8 @@ export type OpReopenPeriodResponses = {
14435
14430
 
14436
14431
  export type OpReopenPeriodResponse = OpReopenPeriodResponses[keyof OpReopenPeriodResponses];
14437
14432
 
14438
- export type OpCreateScheduleData = {
14439
- body: CreateScheduleRequest;
14433
+ export type OpCreateTaxonomyData = {
14434
+ body: CreateTaxonomyRequest;
14440
14435
  headers?: {
14441
14436
  /**
14442
14437
  * Idempotency-Key
@@ -14450,10 +14445,10 @@ export type OpCreateScheduleData = {
14450
14445
  graph_id: string;
14451
14446
  };
14452
14447
  query?: never;
14453
- url: '/extensions/roboledger/{graph_id}/operations/create-schedule';
14448
+ url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy';
14454
14449
  };
14455
14450
 
14456
- export type OpCreateScheduleErrors = {
14451
+ export type OpCreateTaxonomyErrors = {
14457
14452
  /**
14458
14453
  * Invalid request
14459
14454
  */
@@ -14488,19 +14483,19 @@ export type OpCreateScheduleErrors = {
14488
14483
  500: ErrorResponse;
14489
14484
  };
14490
14485
 
14491
- export type OpCreateScheduleError = OpCreateScheduleErrors[keyof OpCreateScheduleErrors];
14486
+ export type OpCreateTaxonomyError = OpCreateTaxonomyErrors[keyof OpCreateTaxonomyErrors];
14492
14487
 
14493
- export type OpCreateScheduleResponses = {
14488
+ export type OpCreateTaxonomyResponses = {
14494
14489
  /**
14495
14490
  * Successful Response
14496
14491
  */
14497
14492
  200: OperationEnvelope;
14498
14493
  };
14499
14494
 
14500
- export type OpCreateScheduleResponse = OpCreateScheduleResponses[keyof OpCreateScheduleResponses];
14495
+ export type OpCreateTaxonomyResponse = OpCreateTaxonomyResponses[keyof OpCreateTaxonomyResponses];
14501
14496
 
14502
- export type OpTruncateScheduleData = {
14503
- body: TruncateScheduleOperation;
14497
+ export type OpCreateStructureData = {
14498
+ body: CreateStructureRequest;
14504
14499
  headers?: {
14505
14500
  /**
14506
14501
  * Idempotency-Key
@@ -14514,10 +14509,10 @@ export type OpTruncateScheduleData = {
14514
14509
  graph_id: string;
14515
14510
  };
14516
14511
  query?: never;
14517
- url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule';
14512
+ url: '/extensions/roboledger/{graph_id}/operations/create-structure';
14518
14513
  };
14519
14514
 
14520
- export type OpTruncateScheduleErrors = {
14515
+ export type OpCreateStructureErrors = {
14521
14516
  /**
14522
14517
  * Invalid request
14523
14518
  */
@@ -14552,19 +14547,19 @@ export type OpTruncateScheduleErrors = {
14552
14547
  500: ErrorResponse;
14553
14548
  };
14554
14549
 
14555
- export type OpTruncateScheduleError = OpTruncateScheduleErrors[keyof OpTruncateScheduleErrors];
14550
+ export type OpCreateStructureError = OpCreateStructureErrors[keyof OpCreateStructureErrors];
14556
14551
 
14557
- export type OpTruncateScheduleResponses = {
14552
+ export type OpCreateStructureResponses = {
14558
14553
  /**
14559
14554
  * Successful Response
14560
14555
  */
14561
14556
  200: OperationEnvelope;
14562
14557
  };
14563
14558
 
14564
- export type OpTruncateScheduleResponse = OpTruncateScheduleResponses[keyof OpTruncateScheduleResponses];
14559
+ export type OpCreateStructureResponse = OpCreateStructureResponses[keyof OpCreateStructureResponses];
14565
14560
 
14566
- export type OpCreateClosingEntryData = {
14567
- body: CreateClosingEntryOperation;
14561
+ export type OpDeleteMappingAssociationData = {
14562
+ body: DeleteMappingAssociationOperation;
14568
14563
  headers?: {
14569
14564
  /**
14570
14565
  * Idempotency-Key
@@ -14578,10 +14573,10 @@ export type OpCreateClosingEntryData = {
14578
14573
  graph_id: string;
14579
14574
  };
14580
14575
  query?: never;
14581
- url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry';
14576
+ url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association';
14582
14577
  };
14583
14578
 
14584
- export type OpCreateClosingEntryErrors = {
14579
+ export type OpDeleteMappingAssociationErrors = {
14585
14580
  /**
14586
14581
  * Invalid request
14587
14582
  */
@@ -14616,19 +14611,19 @@ export type OpCreateClosingEntryErrors = {
14616
14611
  500: ErrorResponse;
14617
14612
  };
14618
14613
 
14619
- export type OpCreateClosingEntryError = OpCreateClosingEntryErrors[keyof OpCreateClosingEntryErrors];
14614
+ export type OpDeleteMappingAssociationError = OpDeleteMappingAssociationErrors[keyof OpDeleteMappingAssociationErrors];
14620
14615
 
14621
- export type OpCreateClosingEntryResponses = {
14616
+ export type OpDeleteMappingAssociationResponses = {
14622
14617
  /**
14623
14618
  * Successful Response
14624
14619
  */
14625
14620
  200: OperationEnvelope;
14626
14621
  };
14627
14622
 
14628
- export type OpCreateClosingEntryResponse = OpCreateClosingEntryResponses[keyof OpCreateClosingEntryResponses];
14623
+ export type OpDeleteMappingAssociationResponse = OpDeleteMappingAssociationResponses[keyof OpDeleteMappingAssociationResponses];
14629
14624
 
14630
- export type OpCreateManualClosingEntryData = {
14631
- body: CreateManualClosingEntryRequest;
14625
+ export type OpUpdateTaxonomyData = {
14626
+ body: UpdateTaxonomyRequest;
14632
14627
  headers?: {
14633
14628
  /**
14634
14629
  * Idempotency-Key
@@ -14642,30 +14637,30 @@ export type OpCreateManualClosingEntryData = {
14642
14637
  graph_id: string;
14643
14638
  };
14644
14639
  query?: never;
14645
- url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry';
14640
+ url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy';
14646
14641
  };
14647
14642
 
14648
- export type OpCreateManualClosingEntryErrors = {
14643
+ export type OpUpdateTaxonomyErrors = {
14649
14644
  /**
14650
- * Invalid request
14645
+ * Invalid request payload
14651
14646
  */
14652
- 400: ErrorResponse;
14647
+ 400: OperationError;
14653
14648
  /**
14654
- * Authentication required
14649
+ * Unauthorized — missing or invalid credentials
14655
14650
  */
14656
- 401: ErrorResponse;
14651
+ 401: unknown;
14657
14652
  /**
14658
- * Access denied
14653
+ * Forbidden — caller cannot access this graph
14659
14654
  */
14660
- 403: ErrorResponse;
14655
+ 403: unknown;
14661
14656
  /**
14662
- * Resource not found
14657
+ * Resource not found (graph, ledger, report, etc.)
14663
14658
  */
14664
- 404: ErrorResponse;
14659
+ 404: OperationError;
14665
14660
  /**
14666
- * Idempotency-Key conflict — key reused with different body
14661
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
14667
14662
  */
14668
- 409: ErrorResponse;
14663
+ 409: OperationError;
14669
14664
  /**
14670
14665
  * Validation Error
14671
14666
  */
@@ -14673,26 +14668,26 @@ export type OpCreateManualClosingEntryErrors = {
14673
14668
  /**
14674
14669
  * Rate limit exceeded
14675
14670
  */
14676
- 429: ErrorResponse;
14671
+ 429: unknown;
14677
14672
  /**
14678
- * Internal server error
14673
+ * Internal error
14679
14674
  */
14680
- 500: ErrorResponse;
14675
+ 500: unknown;
14681
14676
  };
14682
14677
 
14683
- export type OpCreateManualClosingEntryError = OpCreateManualClosingEntryErrors[keyof OpCreateManualClosingEntryErrors];
14678
+ export type OpUpdateTaxonomyError = OpUpdateTaxonomyErrors[keyof OpUpdateTaxonomyErrors];
14684
14679
 
14685
- export type OpCreateManualClosingEntryResponses = {
14680
+ export type OpUpdateTaxonomyResponses = {
14686
14681
  /**
14687
14682
  * Successful Response
14688
14683
  */
14689
14684
  200: OperationEnvelope;
14690
14685
  };
14691
14686
 
14692
- export type OpCreateManualClosingEntryResponse = OpCreateManualClosingEntryResponses[keyof OpCreateManualClosingEntryResponses];
14687
+ export type OpUpdateTaxonomyResponse = OpUpdateTaxonomyResponses[keyof OpUpdateTaxonomyResponses];
14693
14688
 
14694
- export type OpCreateTaxonomyData = {
14695
- body: CreateTaxonomyRequest;
14689
+ export type OpDeleteTaxonomyData = {
14690
+ body: DeleteTaxonomyRequest;
14696
14691
  headers?: {
14697
14692
  /**
14698
14693
  * Idempotency-Key
@@ -14706,30 +14701,30 @@ export type OpCreateTaxonomyData = {
14706
14701
  graph_id: string;
14707
14702
  };
14708
14703
  query?: never;
14709
- url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy';
14704
+ url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy';
14710
14705
  };
14711
14706
 
14712
- export type OpCreateTaxonomyErrors = {
14707
+ export type OpDeleteTaxonomyErrors = {
14713
14708
  /**
14714
- * Invalid request
14709
+ * Invalid request payload
14715
14710
  */
14716
- 400: ErrorResponse;
14711
+ 400: OperationError;
14717
14712
  /**
14718
- * Authentication required
14713
+ * Unauthorized — missing or invalid credentials
14719
14714
  */
14720
- 401: ErrorResponse;
14715
+ 401: unknown;
14721
14716
  /**
14722
- * Access denied
14717
+ * Forbidden — caller cannot access this graph
14723
14718
  */
14724
- 403: ErrorResponse;
14719
+ 403: unknown;
14725
14720
  /**
14726
- * Resource not found
14721
+ * Resource not found (graph, ledger, report, etc.)
14727
14722
  */
14728
- 404: ErrorResponse;
14723
+ 404: OperationError;
14729
14724
  /**
14730
- * Idempotency-Key conflict — key reused with different body
14725
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
14731
14726
  */
14732
- 409: ErrorResponse;
14727
+ 409: OperationError;
14733
14728
  /**
14734
14729
  * Validation Error
14735
14730
  */
@@ -14737,26 +14732,26 @@ export type OpCreateTaxonomyErrors = {
14737
14732
  /**
14738
14733
  * Rate limit exceeded
14739
14734
  */
14740
- 429: ErrorResponse;
14735
+ 429: unknown;
14741
14736
  /**
14742
- * Internal server error
14737
+ * Internal error
14743
14738
  */
14744
- 500: ErrorResponse;
14739
+ 500: unknown;
14745
14740
  };
14746
14741
 
14747
- export type OpCreateTaxonomyError = OpCreateTaxonomyErrors[keyof OpCreateTaxonomyErrors];
14742
+ export type OpDeleteTaxonomyError = OpDeleteTaxonomyErrors[keyof OpDeleteTaxonomyErrors];
14748
14743
 
14749
- export type OpCreateTaxonomyResponses = {
14744
+ export type OpDeleteTaxonomyResponses = {
14750
14745
  /**
14751
14746
  * Successful Response
14752
14747
  */
14753
14748
  200: OperationEnvelope;
14754
14749
  };
14755
14750
 
14756
- export type OpCreateTaxonomyResponse = OpCreateTaxonomyResponses[keyof OpCreateTaxonomyResponses];
14751
+ export type OpDeleteTaxonomyResponse = OpDeleteTaxonomyResponses[keyof OpDeleteTaxonomyResponses];
14757
14752
 
14758
- export type OpCreateStructureData = {
14759
- body: CreateStructureRequest;
14753
+ export type OpLinkEntityTaxonomyData = {
14754
+ body: LinkEntityTaxonomyRequest;
14760
14755
  headers?: {
14761
14756
  /**
14762
14757
  * Idempotency-Key
@@ -14770,30 +14765,30 @@ export type OpCreateStructureData = {
14770
14765
  graph_id: string;
14771
14766
  };
14772
14767
  query?: never;
14773
- url: '/extensions/roboledger/{graph_id}/operations/create-structure';
14768
+ url: '/extensions/roboledger/{graph_id}/operations/link-entity-taxonomy';
14774
14769
  };
14775
14770
 
14776
- export type OpCreateStructureErrors = {
14771
+ export type OpLinkEntityTaxonomyErrors = {
14777
14772
  /**
14778
- * Invalid request
14773
+ * Invalid request payload
14779
14774
  */
14780
- 400: ErrorResponse;
14775
+ 400: OperationError;
14781
14776
  /**
14782
- * Authentication required
14777
+ * Unauthorized — missing or invalid credentials
14783
14778
  */
14784
- 401: ErrorResponse;
14779
+ 401: unknown;
14785
14780
  /**
14786
- * Access denied
14781
+ * Forbidden — caller cannot access this graph
14787
14782
  */
14788
- 403: ErrorResponse;
14783
+ 403: unknown;
14789
14784
  /**
14790
- * Resource not found
14785
+ * Resource not found (graph, ledger, report, etc.)
14791
14786
  */
14792
- 404: ErrorResponse;
14787
+ 404: OperationError;
14793
14788
  /**
14794
- * Idempotency-Key conflict — key reused with different body
14789
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
14795
14790
  */
14796
- 409: ErrorResponse;
14791
+ 409: OperationError;
14797
14792
  /**
14798
14793
  * Validation Error
14799
14794
  */
@@ -14801,26 +14796,26 @@ export type OpCreateStructureErrors = {
14801
14796
  /**
14802
14797
  * Rate limit exceeded
14803
14798
  */
14804
- 429: ErrorResponse;
14799
+ 429: unknown;
14805
14800
  /**
14806
- * Internal server error
14801
+ * Internal error
14807
14802
  */
14808
- 500: ErrorResponse;
14803
+ 500: unknown;
14809
14804
  };
14810
14805
 
14811
- export type OpCreateStructureError = OpCreateStructureErrors[keyof OpCreateStructureErrors];
14806
+ export type OpLinkEntityTaxonomyError = OpLinkEntityTaxonomyErrors[keyof OpLinkEntityTaxonomyErrors];
14812
14807
 
14813
- export type OpCreateStructureResponses = {
14808
+ export type OpLinkEntityTaxonomyResponses = {
14814
14809
  /**
14815
14810
  * Successful Response
14816
14811
  */
14817
14812
  200: OperationEnvelope;
14818
14813
  };
14819
14814
 
14820
- export type OpCreateStructureResponse = OpCreateStructureResponses[keyof OpCreateStructureResponses];
14815
+ export type OpLinkEntityTaxonomyResponse = OpLinkEntityTaxonomyResponses[keyof OpLinkEntityTaxonomyResponses];
14821
14816
 
14822
- export type OpCreateMappingAssociationData = {
14823
- body: CreateMappingAssociationOperation;
14817
+ export type OpUpdateStructureData = {
14818
+ body: UpdateStructureRequest;
14824
14819
  headers?: {
14825
14820
  /**
14826
14821
  * Idempotency-Key
@@ -14834,30 +14829,30 @@ export type OpCreateMappingAssociationData = {
14834
14829
  graph_id: string;
14835
14830
  };
14836
14831
  query?: never;
14837
- url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association';
14832
+ url: '/extensions/roboledger/{graph_id}/operations/update-structure';
14838
14833
  };
14839
14834
 
14840
- export type OpCreateMappingAssociationErrors = {
14835
+ export type OpUpdateStructureErrors = {
14841
14836
  /**
14842
- * Invalid request
14837
+ * Invalid request payload
14843
14838
  */
14844
- 400: ErrorResponse;
14839
+ 400: OperationError;
14845
14840
  /**
14846
- * Authentication required
14841
+ * Unauthorized — missing or invalid credentials
14847
14842
  */
14848
- 401: ErrorResponse;
14843
+ 401: unknown;
14849
14844
  /**
14850
- * Access denied
14845
+ * Forbidden — caller cannot access this graph
14851
14846
  */
14852
- 403: ErrorResponse;
14847
+ 403: unknown;
14853
14848
  /**
14854
- * Resource not found
14849
+ * Resource not found (graph, ledger, report, etc.)
14855
14850
  */
14856
- 404: ErrorResponse;
14851
+ 404: OperationError;
14857
14852
  /**
14858
- * Idempotency-Key conflict — key reused with different body
14853
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
14859
14854
  */
14860
- 409: ErrorResponse;
14855
+ 409: OperationError;
14861
14856
  /**
14862
14857
  * Validation Error
14863
14858
  */
@@ -14865,26 +14860,26 @@ export type OpCreateMappingAssociationErrors = {
14865
14860
  /**
14866
14861
  * Rate limit exceeded
14867
14862
  */
14868
- 429: ErrorResponse;
14863
+ 429: unknown;
14869
14864
  /**
14870
- * Internal server error
14865
+ * Internal error
14871
14866
  */
14872
- 500: ErrorResponse;
14867
+ 500: unknown;
14873
14868
  };
14874
14869
 
14875
- export type OpCreateMappingAssociationError = OpCreateMappingAssociationErrors[keyof OpCreateMappingAssociationErrors];
14870
+ export type OpUpdateStructureError = OpUpdateStructureErrors[keyof OpUpdateStructureErrors];
14876
14871
 
14877
- export type OpCreateMappingAssociationResponses = {
14872
+ export type OpUpdateStructureResponses = {
14878
14873
  /**
14879
14874
  * Successful Response
14880
14875
  */
14881
14876
  200: OperationEnvelope;
14882
14877
  };
14883
14878
 
14884
- export type OpCreateMappingAssociationResponse = OpCreateMappingAssociationResponses[keyof OpCreateMappingAssociationResponses];
14879
+ export type OpUpdateStructureResponse = OpUpdateStructureResponses[keyof OpUpdateStructureResponses];
14885
14880
 
14886
- export type OpDeleteMappingAssociationData = {
14887
- body: DeleteMappingAssociationOperation;
14881
+ export type OpDeleteStructureData = {
14882
+ body: DeleteStructureRequest;
14888
14883
  headers?: {
14889
14884
  /**
14890
14885
  * Idempotency-Key
@@ -14898,30 +14893,30 @@ export type OpDeleteMappingAssociationData = {
14898
14893
  graph_id: string;
14899
14894
  };
14900
14895
  query?: never;
14901
- url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association';
14896
+ url: '/extensions/roboledger/{graph_id}/operations/delete-structure';
14902
14897
  };
14903
14898
 
14904
- export type OpDeleteMappingAssociationErrors = {
14899
+ export type OpDeleteStructureErrors = {
14905
14900
  /**
14906
- * Invalid request
14901
+ * Invalid request payload
14907
14902
  */
14908
- 400: ErrorResponse;
14903
+ 400: OperationError;
14909
14904
  /**
14910
- * Authentication required
14905
+ * Unauthorized — missing or invalid credentials
14911
14906
  */
14912
- 401: ErrorResponse;
14907
+ 401: unknown;
14913
14908
  /**
14914
- * Access denied
14909
+ * Forbidden — caller cannot access this graph
14915
14910
  */
14916
- 403: ErrorResponse;
14911
+ 403: unknown;
14917
14912
  /**
14918
- * Resource not found
14913
+ * Resource not found (graph, ledger, report, etc.)
14919
14914
  */
14920
- 404: ErrorResponse;
14915
+ 404: OperationError;
14921
14916
  /**
14922
- * Idempotency-Key conflict — key reused with different body
14917
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
14923
14918
  */
14924
- 409: ErrorResponse;
14919
+ 409: OperationError;
14925
14920
  /**
14926
14921
  * Validation Error
14927
14922
  */
@@ -14929,26 +14924,26 @@ export type OpDeleteMappingAssociationErrors = {
14929
14924
  /**
14930
14925
  * Rate limit exceeded
14931
14926
  */
14932
- 429: ErrorResponse;
14927
+ 429: unknown;
14933
14928
  /**
14934
- * Internal server error
14929
+ * Internal error
14935
14930
  */
14936
- 500: ErrorResponse;
14931
+ 500: unknown;
14937
14932
  };
14938
14933
 
14939
- export type OpDeleteMappingAssociationError = OpDeleteMappingAssociationErrors[keyof OpDeleteMappingAssociationErrors];
14934
+ export type OpDeleteStructureError = OpDeleteStructureErrors[keyof OpDeleteStructureErrors];
14940
14935
 
14941
- export type OpDeleteMappingAssociationResponses = {
14936
+ export type OpDeleteStructureResponses = {
14942
14937
  /**
14943
14938
  * Successful Response
14944
14939
  */
14945
14940
  200: OperationEnvelope;
14946
14941
  };
14947
14942
 
14948
- export type OpDeleteMappingAssociationResponse = OpDeleteMappingAssociationResponses[keyof OpDeleteMappingAssociationResponses];
14943
+ export type OpDeleteStructureResponse = OpDeleteStructureResponses[keyof OpDeleteStructureResponses];
14949
14944
 
14950
- export type OpUpdateTaxonomyData = {
14951
- body: UpdateTaxonomyRequest;
14945
+ export type OpCreateElementData = {
14946
+ body: CreateElementRequest;
14952
14947
  headers?: {
14953
14948
  /**
14954
14949
  * Idempotency-Key
@@ -14962,10 +14957,10 @@ export type OpUpdateTaxonomyData = {
14962
14957
  graph_id: string;
14963
14958
  };
14964
14959
  query?: never;
14965
- url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy';
14960
+ url: '/extensions/roboledger/{graph_id}/operations/create-element';
14966
14961
  };
14967
14962
 
14968
- export type OpUpdateTaxonomyErrors = {
14963
+ export type OpCreateElementErrors = {
14969
14964
  /**
14970
14965
  * Invalid request payload
14971
14966
  */
@@ -15000,19 +14995,19 @@ export type OpUpdateTaxonomyErrors = {
15000
14995
  500: unknown;
15001
14996
  };
15002
14997
 
15003
- export type OpUpdateTaxonomyError = OpUpdateTaxonomyErrors[keyof OpUpdateTaxonomyErrors];
14998
+ export type OpCreateElementError = OpCreateElementErrors[keyof OpCreateElementErrors];
15004
14999
 
15005
- export type OpUpdateTaxonomyResponses = {
15000
+ export type OpCreateElementResponses = {
15006
15001
  /**
15007
15002
  * Successful Response
15008
15003
  */
15009
15004
  200: OperationEnvelope;
15010
15005
  };
15011
15006
 
15012
- export type OpUpdateTaxonomyResponse = OpUpdateTaxonomyResponses[keyof OpUpdateTaxonomyResponses];
15007
+ export type OpCreateElementResponse = OpCreateElementResponses[keyof OpCreateElementResponses];
15013
15008
 
15014
- export type OpDeleteTaxonomyData = {
15015
- body: DeleteTaxonomyRequest;
15009
+ export type OpUpdateElementData = {
15010
+ body: UpdateElementRequest;
15016
15011
  headers?: {
15017
15012
  /**
15018
15013
  * Idempotency-Key
@@ -15026,10 +15021,10 @@ export type OpDeleteTaxonomyData = {
15026
15021
  graph_id: string;
15027
15022
  };
15028
15023
  query?: never;
15029
- url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy';
15024
+ url: '/extensions/roboledger/{graph_id}/operations/update-element';
15030
15025
  };
15031
15026
 
15032
- export type OpDeleteTaxonomyErrors = {
15027
+ export type OpUpdateElementErrors = {
15033
15028
  /**
15034
15029
  * Invalid request payload
15035
15030
  */
@@ -15064,19 +15059,19 @@ export type OpDeleteTaxonomyErrors = {
15064
15059
  500: unknown;
15065
15060
  };
15066
15061
 
15067
- export type OpDeleteTaxonomyError = OpDeleteTaxonomyErrors[keyof OpDeleteTaxonomyErrors];
15062
+ export type OpUpdateElementError = OpUpdateElementErrors[keyof OpUpdateElementErrors];
15068
15063
 
15069
- export type OpDeleteTaxonomyResponses = {
15064
+ export type OpUpdateElementResponses = {
15070
15065
  /**
15071
15066
  * Successful Response
15072
15067
  */
15073
15068
  200: OperationEnvelope;
15074
15069
  };
15075
15070
 
15076
- export type OpDeleteTaxonomyResponse = OpDeleteTaxonomyResponses[keyof OpDeleteTaxonomyResponses];
15071
+ export type OpUpdateElementResponse = OpUpdateElementResponses[keyof OpUpdateElementResponses];
15077
15072
 
15078
- export type OpLinkEntityTaxonomyData = {
15079
- body: LinkEntityTaxonomyRequest;
15073
+ export type OpDeleteElementData = {
15074
+ body: DeleteElementRequest;
15080
15075
  headers?: {
15081
15076
  /**
15082
15077
  * Idempotency-Key
@@ -15090,10 +15085,10 @@ export type OpLinkEntityTaxonomyData = {
15090
15085
  graph_id: string;
15091
15086
  };
15092
15087
  query?: never;
15093
- url: '/extensions/roboledger/{graph_id}/operations/link-entity-taxonomy';
15088
+ url: '/extensions/roboledger/{graph_id}/operations/delete-element';
15094
15089
  };
15095
15090
 
15096
- export type OpLinkEntityTaxonomyErrors = {
15091
+ export type OpDeleteElementErrors = {
15097
15092
  /**
15098
15093
  * Invalid request payload
15099
15094
  */
@@ -15128,19 +15123,19 @@ export type OpLinkEntityTaxonomyErrors = {
15128
15123
  500: unknown;
15129
15124
  };
15130
15125
 
15131
- export type OpLinkEntityTaxonomyError = OpLinkEntityTaxonomyErrors[keyof OpLinkEntityTaxonomyErrors];
15126
+ export type OpDeleteElementError = OpDeleteElementErrors[keyof OpDeleteElementErrors];
15132
15127
 
15133
- export type OpLinkEntityTaxonomyResponses = {
15128
+ export type OpDeleteElementResponses = {
15134
15129
  /**
15135
15130
  * Successful Response
15136
15131
  */
15137
15132
  200: OperationEnvelope;
15138
15133
  };
15139
15134
 
15140
- export type OpLinkEntityTaxonomyResponse = OpLinkEntityTaxonomyResponses[keyof OpLinkEntityTaxonomyResponses];
15135
+ export type OpDeleteElementResponse = OpDeleteElementResponses[keyof OpDeleteElementResponses];
15141
15136
 
15142
- export type OpUpdateStructureData = {
15143
- body: UpdateStructureRequest;
15137
+ export type OpCreateAssociationsData = {
15138
+ body: BulkCreateAssociationsRequest;
15144
15139
  headers?: {
15145
15140
  /**
15146
15141
  * Idempotency-Key
@@ -15154,10 +15149,10 @@ export type OpUpdateStructureData = {
15154
15149
  graph_id: string;
15155
15150
  };
15156
15151
  query?: never;
15157
- url: '/extensions/roboledger/{graph_id}/operations/update-structure';
15152
+ url: '/extensions/roboledger/{graph_id}/operations/create-associations';
15158
15153
  };
15159
15154
 
15160
- export type OpUpdateStructureErrors = {
15155
+ export type OpCreateAssociationsErrors = {
15161
15156
  /**
15162
15157
  * Invalid request payload
15163
15158
  */
@@ -15192,19 +15187,19 @@ export type OpUpdateStructureErrors = {
15192
15187
  500: unknown;
15193
15188
  };
15194
15189
 
15195
- export type OpUpdateStructureError = OpUpdateStructureErrors[keyof OpUpdateStructureErrors];
15190
+ export type OpCreateAssociationsError = OpCreateAssociationsErrors[keyof OpCreateAssociationsErrors];
15196
15191
 
15197
- export type OpUpdateStructureResponses = {
15192
+ export type OpCreateAssociationsResponses = {
15198
15193
  /**
15199
15194
  * Successful Response
15200
15195
  */
15201
15196
  200: OperationEnvelope;
15202
15197
  };
15203
15198
 
15204
- export type OpUpdateStructureResponse = OpUpdateStructureResponses[keyof OpUpdateStructureResponses];
15199
+ export type OpCreateAssociationsResponse = OpCreateAssociationsResponses[keyof OpCreateAssociationsResponses];
15205
15200
 
15206
- export type OpDeleteStructureData = {
15207
- body: DeleteStructureRequest;
15201
+ export type OpUpdateAssociationData = {
15202
+ body: UpdateAssociationRequest;
15208
15203
  headers?: {
15209
15204
  /**
15210
15205
  * Idempotency-Key
@@ -15218,10 +15213,10 @@ export type OpDeleteStructureData = {
15218
15213
  graph_id: string;
15219
15214
  };
15220
15215
  query?: never;
15221
- url: '/extensions/roboledger/{graph_id}/operations/delete-structure';
15216
+ url: '/extensions/roboledger/{graph_id}/operations/update-association';
15222
15217
  };
15223
15218
 
15224
- export type OpDeleteStructureErrors = {
15219
+ export type OpUpdateAssociationErrors = {
15225
15220
  /**
15226
15221
  * Invalid request payload
15227
15222
  */
@@ -15256,19 +15251,19 @@ export type OpDeleteStructureErrors = {
15256
15251
  500: unknown;
15257
15252
  };
15258
15253
 
15259
- export type OpDeleteStructureError = OpDeleteStructureErrors[keyof OpDeleteStructureErrors];
15254
+ export type OpUpdateAssociationError = OpUpdateAssociationErrors[keyof OpUpdateAssociationErrors];
15260
15255
 
15261
- export type OpDeleteStructureResponses = {
15256
+ export type OpUpdateAssociationResponses = {
15262
15257
  /**
15263
15258
  * Successful Response
15264
15259
  */
15265
15260
  200: OperationEnvelope;
15266
15261
  };
15267
15262
 
15268
- export type OpDeleteStructureResponse = OpDeleteStructureResponses[keyof OpDeleteStructureResponses];
15263
+ export type OpUpdateAssociationResponse = OpUpdateAssociationResponses[keyof OpUpdateAssociationResponses];
15269
15264
 
15270
- export type OpCreateElementData = {
15271
- body: CreateElementRequest;
15265
+ export type OpDeleteAssociationData = {
15266
+ body: DeleteAssociationRequest;
15272
15267
  headers?: {
15273
15268
  /**
15274
15269
  * Idempotency-Key
@@ -15282,10 +15277,10 @@ export type OpCreateElementData = {
15282
15277
  graph_id: string;
15283
15278
  };
15284
15279
  query?: never;
15285
- url: '/extensions/roboledger/{graph_id}/operations/create-element';
15280
+ url: '/extensions/roboledger/{graph_id}/operations/delete-association';
15286
15281
  };
15287
15282
 
15288
- export type OpCreateElementErrors = {
15283
+ export type OpDeleteAssociationErrors = {
15289
15284
  /**
15290
15285
  * Invalid request payload
15291
15286
  */
@@ -15320,19 +15315,19 @@ export type OpCreateElementErrors = {
15320
15315
  500: unknown;
15321
15316
  };
15322
15317
 
15323
- export type OpCreateElementError = OpCreateElementErrors[keyof OpCreateElementErrors];
15318
+ export type OpDeleteAssociationError = OpDeleteAssociationErrors[keyof OpDeleteAssociationErrors];
15324
15319
 
15325
- export type OpCreateElementResponses = {
15320
+ export type OpDeleteAssociationResponses = {
15326
15321
  /**
15327
15322
  * Successful Response
15328
15323
  */
15329
15324
  200: OperationEnvelope;
15330
15325
  };
15331
15326
 
15332
- export type OpCreateElementResponse = OpCreateElementResponses[keyof OpCreateElementResponses];
15327
+ export type OpDeleteAssociationResponse = OpDeleteAssociationResponses[keyof OpDeleteAssociationResponses];
15333
15328
 
15334
- export type OpUpdateElementData = {
15335
- body: UpdateElementRequest;
15329
+ export type OpCreateTransactionData = {
15330
+ body: CreateTransactionRequest;
15336
15331
  headers?: {
15337
15332
  /**
15338
15333
  * Idempotency-Key
@@ -15346,10 +15341,10 @@ export type OpUpdateElementData = {
15346
15341
  graph_id: string;
15347
15342
  };
15348
15343
  query?: never;
15349
- url: '/extensions/roboledger/{graph_id}/operations/update-element';
15344
+ url: '/extensions/roboledger/{graph_id}/operations/create-transaction';
15350
15345
  };
15351
15346
 
15352
- export type OpUpdateElementErrors = {
15347
+ export type OpCreateTransactionErrors = {
15353
15348
  /**
15354
15349
  * Invalid request payload
15355
15350
  */
@@ -15384,19 +15379,19 @@ export type OpUpdateElementErrors = {
15384
15379
  500: unknown;
15385
15380
  };
15386
15381
 
15387
- export type OpUpdateElementError = OpUpdateElementErrors[keyof OpUpdateElementErrors];
15382
+ export type OpCreateTransactionError = OpCreateTransactionErrors[keyof OpCreateTransactionErrors];
15388
15383
 
15389
- export type OpUpdateElementResponses = {
15384
+ export type OpCreateTransactionResponses = {
15390
15385
  /**
15391
15386
  * Successful Response
15392
15387
  */
15393
15388
  200: OperationEnvelope;
15394
15389
  };
15395
15390
 
15396
- export type OpUpdateElementResponse = OpUpdateElementResponses[keyof OpUpdateElementResponses];
15391
+ export type OpCreateTransactionResponse = OpCreateTransactionResponses[keyof OpCreateTransactionResponses];
15397
15392
 
15398
- export type OpDeleteElementData = {
15399
- body: DeleteElementRequest;
15393
+ export type OpCreateJournalEntryData = {
15394
+ body: CreateJournalEntryRequest;
15400
15395
  headers?: {
15401
15396
  /**
15402
15397
  * Idempotency-Key
@@ -15410,10 +15405,10 @@ export type OpDeleteElementData = {
15410
15405
  graph_id: string;
15411
15406
  };
15412
15407
  query?: never;
15413
- url: '/extensions/roboledger/{graph_id}/operations/delete-element';
15408
+ url: '/extensions/roboledger/{graph_id}/operations/create-journal-entry';
15414
15409
  };
15415
15410
 
15416
- export type OpDeleteElementErrors = {
15411
+ export type OpCreateJournalEntryErrors = {
15417
15412
  /**
15418
15413
  * Invalid request payload
15419
15414
  */
@@ -15448,19 +15443,19 @@ export type OpDeleteElementErrors = {
15448
15443
  500: unknown;
15449
15444
  };
15450
15445
 
15451
- export type OpDeleteElementError = OpDeleteElementErrors[keyof OpDeleteElementErrors];
15446
+ export type OpCreateJournalEntryError = OpCreateJournalEntryErrors[keyof OpCreateJournalEntryErrors];
15452
15447
 
15453
- export type OpDeleteElementResponses = {
15448
+ export type OpCreateJournalEntryResponses = {
15454
15449
  /**
15455
15450
  * Successful Response
15456
15451
  */
15457
15452
  200: OperationEnvelope;
15458
15453
  };
15459
15454
 
15460
- export type OpDeleteElementResponse = OpDeleteElementResponses[keyof OpDeleteElementResponses];
15455
+ export type OpCreateJournalEntryResponse = OpCreateJournalEntryResponses[keyof OpCreateJournalEntryResponses];
15461
15456
 
15462
- export type OpCreateAssociationsData = {
15463
- body: BulkCreateAssociationsRequest;
15457
+ export type OpUpdateJournalEntryData = {
15458
+ body: UpdateJournalEntryRequest;
15464
15459
  headers?: {
15465
15460
  /**
15466
15461
  * Idempotency-Key
@@ -15474,10 +15469,10 @@ export type OpCreateAssociationsData = {
15474
15469
  graph_id: string;
15475
15470
  };
15476
15471
  query?: never;
15477
- url: '/extensions/roboledger/{graph_id}/operations/create-associations';
15472
+ url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry';
15478
15473
  };
15479
15474
 
15480
- export type OpCreateAssociationsErrors = {
15475
+ export type OpUpdateJournalEntryErrors = {
15481
15476
  /**
15482
15477
  * Invalid request payload
15483
15478
  */
@@ -15512,19 +15507,19 @@ export type OpCreateAssociationsErrors = {
15512
15507
  500: unknown;
15513
15508
  };
15514
15509
 
15515
- export type OpCreateAssociationsError = OpCreateAssociationsErrors[keyof OpCreateAssociationsErrors];
15510
+ export type OpUpdateJournalEntryError = OpUpdateJournalEntryErrors[keyof OpUpdateJournalEntryErrors];
15516
15511
 
15517
- export type OpCreateAssociationsResponses = {
15512
+ export type OpUpdateJournalEntryResponses = {
15518
15513
  /**
15519
15514
  * Successful Response
15520
15515
  */
15521
15516
  200: OperationEnvelope;
15522
15517
  };
15523
15518
 
15524
- export type OpCreateAssociationsResponse = OpCreateAssociationsResponses[keyof OpCreateAssociationsResponses];
15519
+ export type OpUpdateJournalEntryResponse = OpUpdateJournalEntryResponses[keyof OpUpdateJournalEntryResponses];
15525
15520
 
15526
- export type OpUpdateAssociationData = {
15527
- body: UpdateAssociationRequest;
15521
+ export type OpDeleteJournalEntryData = {
15522
+ body: DeleteJournalEntryRequest;
15528
15523
  headers?: {
15529
15524
  /**
15530
15525
  * Idempotency-Key
@@ -15538,10 +15533,10 @@ export type OpUpdateAssociationData = {
15538
15533
  graph_id: string;
15539
15534
  };
15540
15535
  query?: never;
15541
- url: '/extensions/roboledger/{graph_id}/operations/update-association';
15536
+ url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry';
15542
15537
  };
15543
15538
 
15544
- export type OpUpdateAssociationErrors = {
15539
+ export type OpDeleteJournalEntryErrors = {
15545
15540
  /**
15546
15541
  * Invalid request payload
15547
15542
  */
@@ -15576,19 +15571,19 @@ export type OpUpdateAssociationErrors = {
15576
15571
  500: unknown;
15577
15572
  };
15578
15573
 
15579
- export type OpUpdateAssociationError = OpUpdateAssociationErrors[keyof OpUpdateAssociationErrors];
15574
+ export type OpDeleteJournalEntryError = OpDeleteJournalEntryErrors[keyof OpDeleteJournalEntryErrors];
15580
15575
 
15581
- export type OpUpdateAssociationResponses = {
15576
+ export type OpDeleteJournalEntryResponses = {
15582
15577
  /**
15583
15578
  * Successful Response
15584
15579
  */
15585
15580
  200: OperationEnvelope;
15586
15581
  };
15587
15582
 
15588
- export type OpUpdateAssociationResponse = OpUpdateAssociationResponses[keyof OpUpdateAssociationResponses];
15583
+ export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
15589
15584
 
15590
- export type OpDeleteAssociationData = {
15591
- body: DeleteAssociationRequest;
15585
+ export type OpReverseJournalEntryData = {
15586
+ body: ReverseJournalEntryRequest;
15592
15587
  headers?: {
15593
15588
  /**
15594
15589
  * Idempotency-Key
@@ -15602,10 +15597,10 @@ export type OpDeleteAssociationData = {
15602
15597
  graph_id: string;
15603
15598
  };
15604
15599
  query?: never;
15605
- url: '/extensions/roboledger/{graph_id}/operations/delete-association';
15600
+ url: '/extensions/roboledger/{graph_id}/operations/reverse-journal-entry';
15606
15601
  };
15607
15602
 
15608
- export type OpDeleteAssociationErrors = {
15603
+ export type OpReverseJournalEntryErrors = {
15609
15604
  /**
15610
15605
  * Invalid request payload
15611
15606
  */
@@ -15640,19 +15635,19 @@ export type OpDeleteAssociationErrors = {
15640
15635
  500: unknown;
15641
15636
  };
15642
15637
 
15643
- export type OpDeleteAssociationError = OpDeleteAssociationErrors[keyof OpDeleteAssociationErrors];
15638
+ export type OpReverseJournalEntryError = OpReverseJournalEntryErrors[keyof OpReverseJournalEntryErrors];
15644
15639
 
15645
- export type OpDeleteAssociationResponses = {
15640
+ export type OpReverseJournalEntryResponses = {
15646
15641
  /**
15647
15642
  * Successful Response
15648
15643
  */
15649
15644
  200: OperationEnvelope;
15650
15645
  };
15651
15646
 
15652
- export type OpDeleteAssociationResponse = OpDeleteAssociationResponses[keyof OpDeleteAssociationResponses];
15647
+ export type OpReverseJournalEntryResponse = OpReverseJournalEntryResponses[keyof OpReverseJournalEntryResponses];
15653
15648
 
15654
- export type OpCreateTransactionData = {
15655
- body: CreateTransactionRequest;
15649
+ export type OpTruncateScheduleData = {
15650
+ body: TruncateScheduleOperation;
15656
15651
  headers?: {
15657
15652
  /**
15658
15653
  * Idempotency-Key
@@ -15666,10 +15661,10 @@ export type OpCreateTransactionData = {
15666
15661
  graph_id: string;
15667
15662
  };
15668
15663
  query?: never;
15669
- url: '/extensions/roboledger/{graph_id}/operations/create-transaction';
15664
+ url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule';
15670
15665
  };
15671
15666
 
15672
- export type OpCreateTransactionErrors = {
15667
+ export type OpTruncateScheduleErrors = {
15673
15668
  /**
15674
15669
  * Invalid request payload
15675
15670
  */
@@ -15704,19 +15699,19 @@ export type OpCreateTransactionErrors = {
15704
15699
  500: unknown;
15705
15700
  };
15706
15701
 
15707
- export type OpCreateTransactionError = OpCreateTransactionErrors[keyof OpCreateTransactionErrors];
15702
+ export type OpTruncateScheduleError = OpTruncateScheduleErrors[keyof OpTruncateScheduleErrors];
15708
15703
 
15709
- export type OpCreateTransactionResponses = {
15704
+ export type OpTruncateScheduleResponses = {
15710
15705
  /**
15711
15706
  * Successful Response
15712
15707
  */
15713
15708
  200: OperationEnvelope;
15714
15709
  };
15715
15710
 
15716
- export type OpCreateTransactionResponse = OpCreateTransactionResponses[keyof OpCreateTransactionResponses];
15711
+ export type OpTruncateScheduleResponse = OpTruncateScheduleResponses[keyof OpTruncateScheduleResponses];
15717
15712
 
15718
- export type OpCreateJournalEntryData = {
15719
- body: CreateJournalEntryRequest;
15713
+ export type OpCreateClosingEntryData = {
15714
+ body: CreateClosingEntryOperation;
15720
15715
  headers?: {
15721
15716
  /**
15722
15717
  * Idempotency-Key
@@ -15730,10 +15725,10 @@ export type OpCreateJournalEntryData = {
15730
15725
  graph_id: string;
15731
15726
  };
15732
15727
  query?: never;
15733
- url: '/extensions/roboledger/{graph_id}/operations/create-journal-entry';
15728
+ url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry';
15734
15729
  };
15735
15730
 
15736
- export type OpCreateJournalEntryErrors = {
15731
+ export type OpCreateClosingEntryErrors = {
15737
15732
  /**
15738
15733
  * Invalid request payload
15739
15734
  */
@@ -15768,19 +15763,19 @@ export type OpCreateJournalEntryErrors = {
15768
15763
  500: unknown;
15769
15764
  };
15770
15765
 
15771
- export type OpCreateJournalEntryError = OpCreateJournalEntryErrors[keyof OpCreateJournalEntryErrors];
15766
+ export type OpCreateClosingEntryError = OpCreateClosingEntryErrors[keyof OpCreateClosingEntryErrors];
15772
15767
 
15773
- export type OpCreateJournalEntryResponses = {
15768
+ export type OpCreateClosingEntryResponses = {
15774
15769
  /**
15775
15770
  * Successful Response
15776
15771
  */
15777
15772
  200: OperationEnvelope;
15778
15773
  };
15779
15774
 
15780
- export type OpCreateJournalEntryResponse = OpCreateJournalEntryResponses[keyof OpCreateJournalEntryResponses];
15775
+ export type OpCreateClosingEntryResponse = OpCreateClosingEntryResponses[keyof OpCreateClosingEntryResponses];
15781
15776
 
15782
- export type OpUpdateJournalEntryData = {
15783
- body: UpdateJournalEntryRequest;
15777
+ export type OpCreateManualClosingEntryData = {
15778
+ body: CreateManualClosingEntryRequest;
15784
15779
  headers?: {
15785
15780
  /**
15786
15781
  * Idempotency-Key
@@ -15794,10 +15789,10 @@ export type OpUpdateJournalEntryData = {
15794
15789
  graph_id: string;
15795
15790
  };
15796
15791
  query?: never;
15797
- url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry';
15792
+ url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry';
15798
15793
  };
15799
15794
 
15800
- export type OpUpdateJournalEntryErrors = {
15795
+ export type OpCreateManualClosingEntryErrors = {
15801
15796
  /**
15802
15797
  * Invalid request payload
15803
15798
  */
@@ -15832,19 +15827,19 @@ export type OpUpdateJournalEntryErrors = {
15832
15827
  500: unknown;
15833
15828
  };
15834
15829
 
15835
- export type OpUpdateJournalEntryError = OpUpdateJournalEntryErrors[keyof OpUpdateJournalEntryErrors];
15830
+ export type OpCreateManualClosingEntryError = OpCreateManualClosingEntryErrors[keyof OpCreateManualClosingEntryErrors];
15836
15831
 
15837
- export type OpUpdateJournalEntryResponses = {
15832
+ export type OpCreateManualClosingEntryResponses = {
15838
15833
  /**
15839
15834
  * Successful Response
15840
15835
  */
15841
15836
  200: OperationEnvelope;
15842
15837
  };
15843
15838
 
15844
- export type OpUpdateJournalEntryResponse = OpUpdateJournalEntryResponses[keyof OpUpdateJournalEntryResponses];
15839
+ export type OpCreateManualClosingEntryResponse = OpCreateManualClosingEntryResponses[keyof OpCreateManualClosingEntryResponses];
15845
15840
 
15846
- export type OpDeleteJournalEntryData = {
15847
- body: DeleteJournalEntryRequest;
15841
+ export type OpCreateInformationBlockData = {
15842
+ body: CreateInformationBlockRequest;
15848
15843
  headers?: {
15849
15844
  /**
15850
15845
  * Idempotency-Key
@@ -15858,10 +15853,10 @@ export type OpDeleteJournalEntryData = {
15858
15853
  graph_id: string;
15859
15854
  };
15860
15855
  query?: never;
15861
- url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry';
15856
+ url: '/extensions/roboledger/{graph_id}/operations/create-information-block';
15862
15857
  };
15863
15858
 
15864
- export type OpDeleteJournalEntryErrors = {
15859
+ export type OpCreateInformationBlockErrors = {
15865
15860
  /**
15866
15861
  * Invalid request payload
15867
15862
  */
@@ -15896,19 +15891,19 @@ export type OpDeleteJournalEntryErrors = {
15896
15891
  500: unknown;
15897
15892
  };
15898
15893
 
15899
- export type OpDeleteJournalEntryError = OpDeleteJournalEntryErrors[keyof OpDeleteJournalEntryErrors];
15894
+ export type OpCreateInformationBlockError = OpCreateInformationBlockErrors[keyof OpCreateInformationBlockErrors];
15900
15895
 
15901
- export type OpDeleteJournalEntryResponses = {
15896
+ export type OpCreateInformationBlockResponses = {
15902
15897
  /**
15903
15898
  * Successful Response
15904
15899
  */
15905
15900
  200: OperationEnvelope;
15906
15901
  };
15907
15902
 
15908
- export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
15903
+ export type OpCreateInformationBlockResponse = OpCreateInformationBlockResponses[keyof OpCreateInformationBlockResponses];
15909
15904
 
15910
- export type OpReverseJournalEntryData = {
15911
- body: ReverseJournalEntryRequest;
15905
+ export type OpUpdateInformationBlockData = {
15906
+ body: UpdateInformationBlockRequest;
15912
15907
  headers?: {
15913
15908
  /**
15914
15909
  * Idempotency-Key
@@ -15922,10 +15917,10 @@ export type OpReverseJournalEntryData = {
15922
15917
  graph_id: string;
15923
15918
  };
15924
15919
  query?: never;
15925
- url: '/extensions/roboledger/{graph_id}/operations/reverse-journal-entry';
15920
+ url: '/extensions/roboledger/{graph_id}/operations/update-information-block';
15926
15921
  };
15927
15922
 
15928
- export type OpReverseJournalEntryErrors = {
15923
+ export type OpUpdateInformationBlockErrors = {
15929
15924
  /**
15930
15925
  * Invalid request payload
15931
15926
  */
@@ -15960,19 +15955,19 @@ export type OpReverseJournalEntryErrors = {
15960
15955
  500: unknown;
15961
15956
  };
15962
15957
 
15963
- export type OpReverseJournalEntryError = OpReverseJournalEntryErrors[keyof OpReverseJournalEntryErrors];
15958
+ export type OpUpdateInformationBlockError = OpUpdateInformationBlockErrors[keyof OpUpdateInformationBlockErrors];
15964
15959
 
15965
- export type OpReverseJournalEntryResponses = {
15960
+ export type OpUpdateInformationBlockResponses = {
15966
15961
  /**
15967
15962
  * Successful Response
15968
15963
  */
15969
15964
  200: OperationEnvelope;
15970
15965
  };
15971
15966
 
15972
- export type OpReverseJournalEntryResponse = OpReverseJournalEntryResponses[keyof OpReverseJournalEntryResponses];
15967
+ export type OpUpdateInformationBlockResponse = OpUpdateInformationBlockResponses[keyof OpUpdateInformationBlockResponses];
15973
15968
 
15974
- export type OpUpdateScheduleData = {
15975
- body: UpdateScheduleRequest;
15969
+ export type OpDeleteInformationBlockData = {
15970
+ body: DeleteInformationBlockRequest;
15976
15971
  headers?: {
15977
15972
  /**
15978
15973
  * Idempotency-Key
@@ -15986,10 +15981,10 @@ export type OpUpdateScheduleData = {
15986
15981
  graph_id: string;
15987
15982
  };
15988
15983
  query?: never;
15989
- url: '/extensions/roboledger/{graph_id}/operations/update-schedule';
15984
+ url: '/extensions/roboledger/{graph_id}/operations/delete-information-block';
15990
15985
  };
15991
15986
 
15992
- export type OpUpdateScheduleErrors = {
15987
+ export type OpDeleteInformationBlockErrors = {
15993
15988
  /**
15994
15989
  * Invalid request payload
15995
15990
  */
@@ -16024,19 +16019,19 @@ export type OpUpdateScheduleErrors = {
16024
16019
  500: unknown;
16025
16020
  };
16026
16021
 
16027
- export type OpUpdateScheduleError = OpUpdateScheduleErrors[keyof OpUpdateScheduleErrors];
16022
+ export type OpDeleteInformationBlockError = OpDeleteInformationBlockErrors[keyof OpDeleteInformationBlockErrors];
16028
16023
 
16029
- export type OpUpdateScheduleResponses = {
16024
+ export type OpDeleteInformationBlockResponses = {
16030
16025
  /**
16031
16026
  * Successful Response
16032
16027
  */
16033
16028
  200: OperationEnvelope;
16034
16029
  };
16035
16030
 
16036
- export type OpUpdateScheduleResponse = OpUpdateScheduleResponses[keyof OpUpdateScheduleResponses];
16031
+ export type OpDeleteInformationBlockResponse = OpDeleteInformationBlockResponses[keyof OpDeleteInformationBlockResponses];
16037
16032
 
16038
- export type OpDeleteScheduleData = {
16039
- body: DeleteScheduleRequest;
16033
+ export type OpEvaluateRulesData = {
16034
+ body: EvaluateRulesRequest;
16040
16035
  headers?: {
16041
16036
  /**
16042
16037
  * Idempotency-Key
@@ -16050,10 +16045,10 @@ export type OpDeleteScheduleData = {
16050
16045
  graph_id: string;
16051
16046
  };
16052
16047
  query?: never;
16053
- url: '/extensions/roboledger/{graph_id}/operations/delete-schedule';
16048
+ url: '/extensions/roboledger/{graph_id}/operations/evaluate-rules';
16054
16049
  };
16055
16050
 
16056
- export type OpDeleteScheduleErrors = {
16051
+ export type OpEvaluateRulesErrors = {
16057
16052
  /**
16058
16053
  * Invalid request payload
16059
16054
  */
@@ -16088,16 +16083,80 @@ export type OpDeleteScheduleErrors = {
16088
16083
  500: unknown;
16089
16084
  };
16090
16085
 
16091
- export type OpDeleteScheduleError = OpDeleteScheduleErrors[keyof OpDeleteScheduleErrors];
16086
+ export type OpEvaluateRulesError = OpEvaluateRulesErrors[keyof OpEvaluateRulesErrors];
16092
16087
 
16093
- export type OpDeleteScheduleResponses = {
16088
+ export type OpEvaluateRulesResponses = {
16094
16089
  /**
16095
16090
  * Successful Response
16096
16091
  */
16097
16092
  200: OperationEnvelope;
16098
16093
  };
16099
16094
 
16100
- export type OpDeleteScheduleResponse = OpDeleteScheduleResponses[keyof OpDeleteScheduleResponses];
16095
+ export type OpEvaluateRulesResponse = OpEvaluateRulesResponses[keyof OpEvaluateRulesResponses];
16096
+
16097
+ export type OpCreateMappingAssociationData = {
16098
+ body: CreateMappingAssociationOperation;
16099
+ headers?: {
16100
+ /**
16101
+ * Idempotency-Key
16102
+ */
16103
+ 'Idempotency-Key'?: string | null;
16104
+ };
16105
+ path: {
16106
+ /**
16107
+ * Graph Id
16108
+ */
16109
+ graph_id: string;
16110
+ };
16111
+ query?: never;
16112
+ url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association';
16113
+ };
16114
+
16115
+ export type OpCreateMappingAssociationErrors = {
16116
+ /**
16117
+ * Invalid request payload
16118
+ */
16119
+ 400: OperationError;
16120
+ /**
16121
+ * Unauthorized — missing or invalid credentials
16122
+ */
16123
+ 401: unknown;
16124
+ /**
16125
+ * Forbidden — caller cannot access this graph
16126
+ */
16127
+ 403: unknown;
16128
+ /**
16129
+ * Resource not found (graph, ledger, report, etc.)
16130
+ */
16131
+ 404: OperationError;
16132
+ /**
16133
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
16134
+ */
16135
+ 409: OperationError;
16136
+ /**
16137
+ * Validation Error
16138
+ */
16139
+ 422: HttpValidationError;
16140
+ /**
16141
+ * Rate limit exceeded
16142
+ */
16143
+ 429: unknown;
16144
+ /**
16145
+ * Internal error
16146
+ */
16147
+ 500: unknown;
16148
+ };
16149
+
16150
+ export type OpCreateMappingAssociationError = OpCreateMappingAssociationErrors[keyof OpCreateMappingAssociationErrors];
16151
+
16152
+ export type OpCreateMappingAssociationResponses = {
16153
+ /**
16154
+ * Successful Response
16155
+ */
16156
+ 200: OperationEnvelope;
16157
+ };
16158
+
16159
+ export type OpCreateMappingAssociationResponse = OpCreateMappingAssociationResponses[keyof OpCreateMappingAssociationResponses];
16101
16160
 
16102
16161
  export type OpAutoMapElementsData = {
16103
16162
  body: AutoMapElementsOperation;
@@ -16739,6 +16798,70 @@ export type OpRemovePublishListMemberResponses = {
16739
16798
 
16740
16799
  export type OpRemovePublishListMemberResponse = OpRemovePublishListMemberResponses[keyof OpRemovePublishListMemberResponses];
16741
16800
 
16801
+ export type OpLiveFinancialStatementData = {
16802
+ body: LiveFinancialStatementRequest;
16803
+ headers?: {
16804
+ /**
16805
+ * Idempotency-Key
16806
+ */
16807
+ 'Idempotency-Key'?: string | null;
16808
+ };
16809
+ path: {
16810
+ /**
16811
+ * Graph Id
16812
+ */
16813
+ graph_id: string;
16814
+ };
16815
+ query?: never;
16816
+ url: '/extensions/roboledger/{graph_id}/operations/live-financial-statement';
16817
+ };
16818
+
16819
+ export type OpLiveFinancialStatementErrors = {
16820
+ /**
16821
+ * Invalid request
16822
+ */
16823
+ 400: ErrorResponse;
16824
+ /**
16825
+ * Authentication required
16826
+ */
16827
+ 401: ErrorResponse;
16828
+ /**
16829
+ * Access denied
16830
+ */
16831
+ 403: ErrorResponse;
16832
+ /**
16833
+ * Resource not found
16834
+ */
16835
+ 404: ErrorResponse;
16836
+ /**
16837
+ * Idempotency-Key conflict — key reused with different body
16838
+ */
16839
+ 409: ErrorResponse;
16840
+ /**
16841
+ * Validation Error
16842
+ */
16843
+ 422: HttpValidationError;
16844
+ /**
16845
+ * Rate limit exceeded
16846
+ */
16847
+ 429: ErrorResponse;
16848
+ /**
16849
+ * Internal server error
16850
+ */
16851
+ 500: ErrorResponse;
16852
+ };
16853
+
16854
+ export type OpLiveFinancialStatementError = OpLiveFinancialStatementErrors[keyof OpLiveFinancialStatementErrors];
16855
+
16856
+ export type OpLiveFinancialStatementResponses = {
16857
+ /**
16858
+ * Successful Response
16859
+ */
16860
+ 200: OperationEnvelope;
16861
+ };
16862
+
16863
+ export type OpLiveFinancialStatementResponse = OpLiveFinancialStatementResponses[keyof OpLiveFinancialStatementResponses];
16864
+
16742
16865
  export type OpBuildFactGridData = {
16743
16866
  body: CreateViewRequest;
16744
16867
  headers?: {
@@ -16803,8 +16926,8 @@ export type OpBuildFactGridResponses = {
16803
16926
 
16804
16927
  export type OpBuildFactGridResponse = OpBuildFactGridResponses[keyof OpBuildFactGridResponses];
16805
16928
 
16806
- export type OpCreatePortfolioData = {
16807
- body: CreatePortfolioRequest;
16929
+ export type OpFinancialStatementAnalysisData = {
16930
+ body: FinancialStatementAnalysisRequest;
16808
16931
  headers?: {
16809
16932
  /**
16810
16933
  * Idempotency-Key
@@ -16818,10 +16941,10 @@ export type OpCreatePortfolioData = {
16818
16941
  graph_id: string;
16819
16942
  };
16820
16943
  query?: never;
16821
- url: '/extensions/roboinvestor/{graph_id}/operations/create-portfolio';
16944
+ url: '/extensions/roboledger/{graph_id}/operations/financial-statement-analysis';
16822
16945
  };
16823
16946
 
16824
- export type OpCreatePortfolioErrors = {
16947
+ export type OpFinancialStatementAnalysisErrors = {
16825
16948
  /**
16826
16949
  * Invalid request
16827
16950
  */
@@ -16856,6 +16979,70 @@ export type OpCreatePortfolioErrors = {
16856
16979
  500: ErrorResponse;
16857
16980
  };
16858
16981
 
16982
+ export type OpFinancialStatementAnalysisError = OpFinancialStatementAnalysisErrors[keyof OpFinancialStatementAnalysisErrors];
16983
+
16984
+ export type OpFinancialStatementAnalysisResponses = {
16985
+ /**
16986
+ * Successful Response
16987
+ */
16988
+ 200: OperationEnvelope;
16989
+ };
16990
+
16991
+ export type OpFinancialStatementAnalysisResponse = OpFinancialStatementAnalysisResponses[keyof OpFinancialStatementAnalysisResponses];
16992
+
16993
+ export type OpCreatePortfolioData = {
16994
+ body: CreatePortfolioRequest;
16995
+ headers?: {
16996
+ /**
16997
+ * Idempotency-Key
16998
+ */
16999
+ 'Idempotency-Key'?: string | null;
17000
+ };
17001
+ path: {
17002
+ /**
17003
+ * Graph Id
17004
+ */
17005
+ graph_id: string;
17006
+ };
17007
+ query?: never;
17008
+ url: '/extensions/roboinvestor/{graph_id}/operations/create-portfolio';
17009
+ };
17010
+
17011
+ export type OpCreatePortfolioErrors = {
17012
+ /**
17013
+ * Invalid request payload
17014
+ */
17015
+ 400: OperationError;
17016
+ /**
17017
+ * Unauthorized — missing or invalid credentials
17018
+ */
17019
+ 401: unknown;
17020
+ /**
17021
+ * Forbidden — caller cannot access this graph
17022
+ */
17023
+ 403: unknown;
17024
+ /**
17025
+ * Resource not found (graph, ledger, report, etc.)
17026
+ */
17027
+ 404: OperationError;
17028
+ /**
17029
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
17030
+ */
17031
+ 409: OperationError;
17032
+ /**
17033
+ * Validation Error
17034
+ */
17035
+ 422: HttpValidationError;
17036
+ /**
17037
+ * Rate limit exceeded
17038
+ */
17039
+ 429: unknown;
17040
+ /**
17041
+ * Internal error
17042
+ */
17043
+ 500: unknown;
17044
+ };
17045
+
16859
17046
  export type OpCreatePortfolioError = OpCreatePortfolioErrors[keyof OpCreatePortfolioErrors];
16860
17047
 
16861
17048
  export type OpCreatePortfolioResponses = {
@@ -16887,25 +17074,25 @@ export type OpUpdatePortfolioData = {
16887
17074
 
16888
17075
  export type OpUpdatePortfolioErrors = {
16889
17076
  /**
16890
- * Invalid request
17077
+ * Invalid request payload
16891
17078
  */
16892
- 400: ErrorResponse;
17079
+ 400: OperationError;
16893
17080
  /**
16894
- * Authentication required
17081
+ * Unauthorized — missing or invalid credentials
16895
17082
  */
16896
- 401: ErrorResponse;
17083
+ 401: unknown;
16897
17084
  /**
16898
- * Access denied
17085
+ * Forbidden — caller cannot access this graph
16899
17086
  */
16900
- 403: ErrorResponse;
17087
+ 403: unknown;
16901
17088
  /**
16902
- * Resource not found
17089
+ * Resource not found (graph, ledger, report, etc.)
16903
17090
  */
16904
- 404: ErrorResponse;
17091
+ 404: OperationError;
16905
17092
  /**
16906
- * Idempotency-Key conflict — key reused with different body
17093
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
16907
17094
  */
16908
- 409: ErrorResponse;
17095
+ 409: OperationError;
16909
17096
  /**
16910
17097
  * Validation Error
16911
17098
  */
@@ -16913,11 +17100,11 @@ export type OpUpdatePortfolioErrors = {
16913
17100
  /**
16914
17101
  * Rate limit exceeded
16915
17102
  */
16916
- 429: ErrorResponse;
17103
+ 429: unknown;
16917
17104
  /**
16918
- * Internal server error
17105
+ * Internal error
16919
17106
  */
16920
- 500: ErrorResponse;
17107
+ 500: unknown;
16921
17108
  };
16922
17109
 
16923
17110
  export type OpUpdatePortfolioError = OpUpdatePortfolioErrors[keyof OpUpdatePortfolioErrors];
@@ -16951,25 +17138,25 @@ export type OpDeletePortfolioData = {
16951
17138
 
16952
17139
  export type OpDeletePortfolioErrors = {
16953
17140
  /**
16954
- * Invalid request
17141
+ * Invalid request payload
16955
17142
  */
16956
- 400: ErrorResponse;
17143
+ 400: OperationError;
16957
17144
  /**
16958
- * Authentication required
17145
+ * Unauthorized — missing or invalid credentials
16959
17146
  */
16960
- 401: ErrorResponse;
17147
+ 401: unknown;
16961
17148
  /**
16962
- * Access denied
17149
+ * Forbidden — caller cannot access this graph
16963
17150
  */
16964
- 403: ErrorResponse;
17151
+ 403: unknown;
16965
17152
  /**
16966
- * Resource not found
17153
+ * Resource not found (graph, ledger, report, etc.)
16967
17154
  */
16968
- 404: ErrorResponse;
17155
+ 404: OperationError;
16969
17156
  /**
16970
- * Idempotency-Key conflict — key reused with different body
17157
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
16971
17158
  */
16972
- 409: ErrorResponse;
17159
+ 409: OperationError;
16973
17160
  /**
16974
17161
  * Validation Error
16975
17162
  */
@@ -16977,11 +17164,11 @@ export type OpDeletePortfolioErrors = {
16977
17164
  /**
16978
17165
  * Rate limit exceeded
16979
17166
  */
16980
- 429: ErrorResponse;
17167
+ 429: unknown;
16981
17168
  /**
16982
- * Internal server error
17169
+ * Internal error
16983
17170
  */
16984
- 500: ErrorResponse;
17171
+ 500: unknown;
16985
17172
  };
16986
17173
 
16987
17174
  export type OpDeletePortfolioError = OpDeletePortfolioErrors[keyof OpDeletePortfolioErrors];
@@ -17015,25 +17202,25 @@ export type OpCreateSecurityData = {
17015
17202
 
17016
17203
  export type OpCreateSecurityErrors = {
17017
17204
  /**
17018
- * Invalid request
17205
+ * Invalid request payload
17019
17206
  */
17020
- 400: ErrorResponse;
17207
+ 400: OperationError;
17021
17208
  /**
17022
- * Authentication required
17209
+ * Unauthorized — missing or invalid credentials
17023
17210
  */
17024
- 401: ErrorResponse;
17211
+ 401: unknown;
17025
17212
  /**
17026
- * Access denied
17213
+ * Forbidden — caller cannot access this graph
17027
17214
  */
17028
- 403: ErrorResponse;
17215
+ 403: unknown;
17029
17216
  /**
17030
- * Resource not found
17217
+ * Resource not found (graph, ledger, report, etc.)
17031
17218
  */
17032
- 404: ErrorResponse;
17219
+ 404: OperationError;
17033
17220
  /**
17034
- * Idempotency-Key conflict — key reused with different body
17221
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
17035
17222
  */
17036
- 409: ErrorResponse;
17223
+ 409: OperationError;
17037
17224
  /**
17038
17225
  * Validation Error
17039
17226
  */
@@ -17041,11 +17228,11 @@ export type OpCreateSecurityErrors = {
17041
17228
  /**
17042
17229
  * Rate limit exceeded
17043
17230
  */
17044
- 429: ErrorResponse;
17231
+ 429: unknown;
17045
17232
  /**
17046
- * Internal server error
17233
+ * Internal error
17047
17234
  */
17048
- 500: ErrorResponse;
17235
+ 500: unknown;
17049
17236
  };
17050
17237
 
17051
17238
  export type OpCreateSecurityError = OpCreateSecurityErrors[keyof OpCreateSecurityErrors];
@@ -17079,25 +17266,25 @@ export type OpUpdateSecurityData = {
17079
17266
 
17080
17267
  export type OpUpdateSecurityErrors = {
17081
17268
  /**
17082
- * Invalid request
17269
+ * Invalid request payload
17083
17270
  */
17084
- 400: ErrorResponse;
17271
+ 400: OperationError;
17085
17272
  /**
17086
- * Authentication required
17273
+ * Unauthorized — missing or invalid credentials
17087
17274
  */
17088
- 401: ErrorResponse;
17275
+ 401: unknown;
17089
17276
  /**
17090
- * Access denied
17277
+ * Forbidden — caller cannot access this graph
17091
17278
  */
17092
- 403: ErrorResponse;
17279
+ 403: unknown;
17093
17280
  /**
17094
- * Resource not found
17281
+ * Resource not found (graph, ledger, report, etc.)
17095
17282
  */
17096
- 404: ErrorResponse;
17283
+ 404: OperationError;
17097
17284
  /**
17098
- * Idempotency-Key conflict — key reused with different body
17285
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
17099
17286
  */
17100
- 409: ErrorResponse;
17287
+ 409: OperationError;
17101
17288
  /**
17102
17289
  * Validation Error
17103
17290
  */
@@ -17105,11 +17292,11 @@ export type OpUpdateSecurityErrors = {
17105
17292
  /**
17106
17293
  * Rate limit exceeded
17107
17294
  */
17108
- 429: ErrorResponse;
17295
+ 429: unknown;
17109
17296
  /**
17110
- * Internal server error
17297
+ * Internal error
17111
17298
  */
17112
- 500: ErrorResponse;
17299
+ 500: unknown;
17113
17300
  };
17114
17301
 
17115
17302
  export type OpUpdateSecurityError = OpUpdateSecurityErrors[keyof OpUpdateSecurityErrors];
@@ -17143,25 +17330,25 @@ export type OpDeleteSecurityData = {
17143
17330
 
17144
17331
  export type OpDeleteSecurityErrors = {
17145
17332
  /**
17146
- * Invalid request
17333
+ * Invalid request payload
17147
17334
  */
17148
- 400: ErrorResponse;
17335
+ 400: OperationError;
17149
17336
  /**
17150
- * Authentication required
17337
+ * Unauthorized — missing or invalid credentials
17151
17338
  */
17152
- 401: ErrorResponse;
17339
+ 401: unknown;
17153
17340
  /**
17154
- * Access denied
17341
+ * Forbidden — caller cannot access this graph
17155
17342
  */
17156
- 403: ErrorResponse;
17343
+ 403: unknown;
17157
17344
  /**
17158
- * Resource not found
17345
+ * Resource not found (graph, ledger, report, etc.)
17159
17346
  */
17160
- 404: ErrorResponse;
17347
+ 404: OperationError;
17161
17348
  /**
17162
- * Idempotency-Key conflict — key reused with different body
17349
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
17163
17350
  */
17164
- 409: ErrorResponse;
17351
+ 409: OperationError;
17165
17352
  /**
17166
17353
  * Validation Error
17167
17354
  */
@@ -17169,11 +17356,11 @@ export type OpDeleteSecurityErrors = {
17169
17356
  /**
17170
17357
  * Rate limit exceeded
17171
17358
  */
17172
- 429: ErrorResponse;
17359
+ 429: unknown;
17173
17360
  /**
17174
- * Internal server error
17361
+ * Internal error
17175
17362
  */
17176
- 500: ErrorResponse;
17363
+ 500: unknown;
17177
17364
  };
17178
17365
 
17179
17366
  export type OpDeleteSecurityError = OpDeleteSecurityErrors[keyof OpDeleteSecurityErrors];
@@ -17207,25 +17394,25 @@ export type OpCreatePositionData = {
17207
17394
 
17208
17395
  export type OpCreatePositionErrors = {
17209
17396
  /**
17210
- * Invalid request
17397
+ * Invalid request payload
17211
17398
  */
17212
- 400: ErrorResponse;
17399
+ 400: OperationError;
17213
17400
  /**
17214
- * Authentication required
17401
+ * Unauthorized — missing or invalid credentials
17215
17402
  */
17216
- 401: ErrorResponse;
17403
+ 401: unknown;
17217
17404
  /**
17218
- * Access denied
17405
+ * Forbidden — caller cannot access this graph
17219
17406
  */
17220
- 403: ErrorResponse;
17407
+ 403: unknown;
17221
17408
  /**
17222
- * Resource not found
17409
+ * Resource not found (graph, ledger, report, etc.)
17223
17410
  */
17224
- 404: ErrorResponse;
17411
+ 404: OperationError;
17225
17412
  /**
17226
- * Idempotency-Key conflict — key reused with different body
17413
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
17227
17414
  */
17228
- 409: ErrorResponse;
17415
+ 409: OperationError;
17229
17416
  /**
17230
17417
  * Validation Error
17231
17418
  */
@@ -17233,11 +17420,11 @@ export type OpCreatePositionErrors = {
17233
17420
  /**
17234
17421
  * Rate limit exceeded
17235
17422
  */
17236
- 429: ErrorResponse;
17423
+ 429: unknown;
17237
17424
  /**
17238
- * Internal server error
17425
+ * Internal error
17239
17426
  */
17240
- 500: ErrorResponse;
17427
+ 500: unknown;
17241
17428
  };
17242
17429
 
17243
17430
  export type OpCreatePositionError = OpCreatePositionErrors[keyof OpCreatePositionErrors];
@@ -17271,25 +17458,25 @@ export type OpUpdatePositionData = {
17271
17458
 
17272
17459
  export type OpUpdatePositionErrors = {
17273
17460
  /**
17274
- * Invalid request
17461
+ * Invalid request payload
17275
17462
  */
17276
- 400: ErrorResponse;
17463
+ 400: OperationError;
17277
17464
  /**
17278
- * Authentication required
17465
+ * Unauthorized — missing or invalid credentials
17279
17466
  */
17280
- 401: ErrorResponse;
17467
+ 401: unknown;
17281
17468
  /**
17282
- * Access denied
17469
+ * Forbidden — caller cannot access this graph
17283
17470
  */
17284
- 403: ErrorResponse;
17471
+ 403: unknown;
17285
17472
  /**
17286
- * Resource not found
17473
+ * Resource not found (graph, ledger, report, etc.)
17287
17474
  */
17288
- 404: ErrorResponse;
17475
+ 404: OperationError;
17289
17476
  /**
17290
- * Idempotency-Key conflict — key reused with different body
17477
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
17291
17478
  */
17292
- 409: ErrorResponse;
17479
+ 409: OperationError;
17293
17480
  /**
17294
17481
  * Validation Error
17295
17482
  */
@@ -17297,11 +17484,11 @@ export type OpUpdatePositionErrors = {
17297
17484
  /**
17298
17485
  * Rate limit exceeded
17299
17486
  */
17300
- 429: ErrorResponse;
17487
+ 429: unknown;
17301
17488
  /**
17302
- * Internal server error
17489
+ * Internal error
17303
17490
  */
17304
- 500: ErrorResponse;
17491
+ 500: unknown;
17305
17492
  };
17306
17493
 
17307
17494
  export type OpUpdatePositionError = OpUpdatePositionErrors[keyof OpUpdatePositionErrors];
@@ -17335,25 +17522,25 @@ export type OpDeletePositionData = {
17335
17522
 
17336
17523
  export type OpDeletePositionErrors = {
17337
17524
  /**
17338
- * Invalid request
17525
+ * Invalid request payload
17339
17526
  */
17340
- 400: ErrorResponse;
17527
+ 400: OperationError;
17341
17528
  /**
17342
- * Authentication required
17529
+ * Unauthorized — missing or invalid credentials
17343
17530
  */
17344
- 401: ErrorResponse;
17531
+ 401: unknown;
17345
17532
  /**
17346
- * Access denied
17533
+ * Forbidden — caller cannot access this graph
17347
17534
  */
17348
- 403: ErrorResponse;
17535
+ 403: unknown;
17349
17536
  /**
17350
- * Resource not found
17537
+ * Resource not found (graph, ledger, report, etc.)
17351
17538
  */
17352
- 404: ErrorResponse;
17539
+ 404: OperationError;
17353
17540
  /**
17354
- * Idempotency-Key conflict — key reused with different body
17541
+ * Idempotency-Key reused with a different request body, or other operation-level conflict
17355
17542
  */
17356
- 409: ErrorResponse;
17543
+ 409: OperationError;
17357
17544
  /**
17358
17545
  * Validation Error
17359
17546
  */
@@ -17361,11 +17548,11 @@ export type OpDeletePositionErrors = {
17361
17548
  /**
17362
17549
  * Rate limit exceeded
17363
17550
  */
17364
- 429: ErrorResponse;
17551
+ 429: unknown;
17365
17552
  /**
17366
- * Internal server error
17553
+ * Internal error
17367
17554
  */
17368
- 500: ErrorResponse;
17555
+ 500: unknown;
17369
17556
  };
17370
17557
 
17371
17558
  export type OpDeletePositionError = OpDeletePositionErrors[keyof OpDeletePositionErrors];