@robosystems/client 0.2.43 → 0.2.45

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 (73) hide show
  1. package/extensions/LedgerClient.d.ts +88 -0
  2. package/extensions/LedgerClient.js +143 -0
  3. package/extensions/LedgerClient.ts +267 -0
  4. package/extensions/ReportClient.d.ts +14 -6
  5. package/extensions/ReportClient.js +19 -15
  6. package/extensions/ReportClient.ts +37 -21
  7. package/extensions/hooks.d.ts +1 -40
  8. package/extensions/hooks.js +0 -134
  9. package/extensions/hooks.ts +0 -156
  10. package/extensions/index.d.ts +2 -24
  11. package/extensions/index.js +1 -65
  12. package/extensions/index.test.ts +4 -38
  13. package/extensions/index.ts +0 -78
  14. package/index.ts +2 -2
  15. package/package.json +1 -1
  16. package/sdk/index.d.ts +2 -2
  17. package/sdk/index.js +9 -6
  18. package/sdk/index.ts +2 -2
  19. package/sdk/sdk.gen.d.ts +33 -34
  20. package/sdk/sdk.gen.js +68 -46
  21. package/sdk/sdk.gen.ts +66 -44
  22. package/sdk/types.gen.d.ts +709 -278
  23. package/sdk/types.gen.ts +730 -270
  24. package/sdk-extensions/LedgerClient.d.ts +88 -0
  25. package/sdk-extensions/LedgerClient.js +143 -0
  26. package/sdk-extensions/LedgerClient.ts +267 -0
  27. package/sdk-extensions/ReportClient.d.ts +14 -6
  28. package/sdk-extensions/ReportClient.js +19 -15
  29. package/sdk-extensions/ReportClient.ts +37 -21
  30. package/sdk-extensions/hooks.d.ts +1 -40
  31. package/sdk-extensions/hooks.js +0 -134
  32. package/sdk-extensions/hooks.ts +0 -156
  33. package/sdk-extensions/index.d.ts +2 -24
  34. package/sdk-extensions/index.js +1 -65
  35. package/sdk-extensions/index.test.ts +4 -38
  36. package/sdk-extensions/index.ts +0 -78
  37. package/sdk.gen.d.ts +33 -34
  38. package/sdk.gen.js +68 -46
  39. package/sdk.gen.ts +66 -44
  40. package/types.gen.d.ts +709 -278
  41. package/types.gen.ts +730 -270
  42. package/extensions/DocumentClient.d.ts +0 -102
  43. package/extensions/DocumentClient.js +0 -176
  44. package/extensions/DocumentClient.ts +0 -297
  45. package/extensions/FileClient.d.ts +0 -57
  46. package/extensions/FileClient.js +0 -246
  47. package/extensions/FileClient.ts +0 -330
  48. package/extensions/GraphClient.d.ts +0 -91
  49. package/extensions/GraphClient.js +0 -244
  50. package/extensions/GraphClient.test.ts +0 -455
  51. package/extensions/GraphClient.ts +0 -371
  52. package/extensions/MaterializationClient.d.ts +0 -61
  53. package/extensions/MaterializationClient.js +0 -157
  54. package/extensions/MaterializationClient.ts +0 -223
  55. package/extensions/TableClient.d.ts +0 -38
  56. package/extensions/TableClient.js +0 -92
  57. package/extensions/TableClient.ts +0 -132
  58. package/sdk-extensions/DocumentClient.d.ts +0 -102
  59. package/sdk-extensions/DocumentClient.js +0 -176
  60. package/sdk-extensions/DocumentClient.ts +0 -297
  61. package/sdk-extensions/FileClient.d.ts +0 -57
  62. package/sdk-extensions/FileClient.js +0 -246
  63. package/sdk-extensions/FileClient.ts +0 -330
  64. package/sdk-extensions/GraphClient.d.ts +0 -91
  65. package/sdk-extensions/GraphClient.js +0 -244
  66. package/sdk-extensions/GraphClient.test.ts +0 -455
  67. package/sdk-extensions/GraphClient.ts +0 -371
  68. package/sdk-extensions/MaterializationClient.d.ts +0 -61
  69. package/sdk-extensions/MaterializationClient.js +0 -157
  70. package/sdk-extensions/MaterializationClient.ts +0 -223
  71. package/sdk-extensions/TableClient.d.ts +0 -38
  72. package/sdk-extensions/TableClient.js +0 -92
  73. package/sdk-extensions/TableClient.ts +0 -132
package/types.gen.ts CHANGED
@@ -576,6 +576,68 @@ export type AgentResponse = {
576
576
  timestamp?: string;
577
577
  };
578
578
 
579
+ /**
580
+ * AssociationResponse
581
+ */
582
+ export type AssociationResponse = {
583
+ /**
584
+ * Id
585
+ */
586
+ id: string;
587
+ /**
588
+ * Structure Id
589
+ */
590
+ structure_id: string;
591
+ /**
592
+ * From Element Id
593
+ */
594
+ from_element_id: string;
595
+ /**
596
+ * From Element Name
597
+ */
598
+ from_element_name?: string | null;
599
+ /**
600
+ * From Element Qname
601
+ */
602
+ from_element_qname?: string | null;
603
+ /**
604
+ * To Element Id
605
+ */
606
+ to_element_id: string;
607
+ /**
608
+ * To Element Name
609
+ */
610
+ to_element_name?: string | null;
611
+ /**
612
+ * To Element Qname
613
+ */
614
+ to_element_qname?: string | null;
615
+ /**
616
+ * Association Type
617
+ */
618
+ association_type: string;
619
+ /**
620
+ * Order Value
621
+ */
622
+ order_value?: number | null;
623
+ /**
624
+ * Weight
625
+ */
626
+ weight?: number | null;
627
+ /**
628
+ * Confidence
629
+ */
630
+ confidence?: number | null;
631
+ /**
632
+ * Suggested By
633
+ */
634
+ suggested_by?: string | null;
635
+ /**
636
+ * Approved By
637
+ */
638
+ approved_by?: string | null;
639
+ };
640
+
579
641
  /**
580
642
  * AuthResponse
581
643
  *
@@ -1160,6 +1222,40 @@ export type CheckoutStatusResponse = {
1160
1222
  error?: string | null;
1161
1223
  };
1162
1224
 
1225
+ /**
1226
+ * ClosingEntryResponse
1227
+ */
1228
+ export type ClosingEntryResponse = {
1229
+ /**
1230
+ * Entry Id
1231
+ */
1232
+ entry_id: string;
1233
+ /**
1234
+ * Status
1235
+ */
1236
+ status: string;
1237
+ /**
1238
+ * Posting Date
1239
+ */
1240
+ posting_date: string;
1241
+ /**
1242
+ * Memo
1243
+ */
1244
+ memo: string;
1245
+ /**
1246
+ * Debit Element Id
1247
+ */
1248
+ debit_element_id: string;
1249
+ /**
1250
+ * Credit Element Id
1251
+ */
1252
+ credit_element_id: string;
1253
+ /**
1254
+ * Amount
1255
+ */
1256
+ amount: number;
1257
+ };
1258
+
1163
1259
  /**
1164
1260
  * ConnectionOptionsResponse
1165
1261
  *
@@ -1321,33 +1417,9 @@ export type ConnectionResponse = {
1321
1417
  /**
1322
1418
  * ContentLimits
1323
1419
  *
1324
- * Graph content limits (nodes, relationships, rows).
1420
+ * Per-operation materialization limits.
1325
1421
  */
1326
1422
  export type ContentLimits = {
1327
- /**
1328
- * Max Nodes
1329
- *
1330
- * Maximum nodes allowed
1331
- */
1332
- max_nodes: number;
1333
- /**
1334
- * Current Nodes
1335
- *
1336
- * Current node count
1337
- */
1338
- current_nodes?: number | null;
1339
- /**
1340
- * Max Relationships
1341
- *
1342
- * Maximum relationships allowed
1343
- */
1344
- max_relationships: number;
1345
- /**
1346
- * Current Relationships
1347
- *
1348
- * Current relationship count
1349
- */
1350
- current_relationships?: number | null;
1351
1423
  /**
1352
1424
  * Max Rows Per Copy
1353
1425
  *
@@ -1366,12 +1438,6 @@ export type ContentLimits = {
1366
1438
  * Rows per materialization chunk
1367
1439
  */
1368
1440
  chunk_size_rows: number;
1369
- /**
1370
- * Approaching Limits
1371
- *
1372
- * List of limits being approached (>80%)
1373
- */
1374
- approaching_limits?: Array<string>;
1375
1441
  };
1376
1442
 
1377
1443
  /**
@@ -1524,6 +1590,36 @@ export type CreateCheckoutRequest = {
1524
1590
  };
1525
1591
  };
1526
1592
 
1593
+ /**
1594
+ * CreateClosingEntryRequest
1595
+ */
1596
+ export type CreateClosingEntryRequest = {
1597
+ /**
1598
+ * Posting Date
1599
+ *
1600
+ * Posting date for the entry
1601
+ */
1602
+ posting_date: string;
1603
+ /**
1604
+ * Period Start
1605
+ *
1606
+ * Period start
1607
+ */
1608
+ period_start: string;
1609
+ /**
1610
+ * Period End
1611
+ *
1612
+ * Period end
1613
+ */
1614
+ period_end: string;
1615
+ /**
1616
+ * Memo
1617
+ *
1618
+ * Override memo
1619
+ */
1620
+ memo?: string | null;
1621
+ };
1622
+
1527
1623
  /**
1528
1624
  * CreateConnectionRequest
1529
1625
  *
@@ -1728,6 +1824,12 @@ export type CreateReportRequest = {
1728
1824
  * Include prior period comparison
1729
1825
  */
1730
1826
  comparative?: boolean;
1827
+ /**
1828
+ * Periods
1829
+ *
1830
+ * Multi-period columns. Overrides period_start/period_end/comparative when set.
1831
+ */
1832
+ periods?: Array<PeriodSpec> | null;
1731
1833
  };
1732
1834
 
1733
1835
  /**
@@ -1744,6 +1846,50 @@ export type CreateRepositorySubscriptionRequest = {
1744
1846
  plan_name: string;
1745
1847
  };
1746
1848
 
1849
+ /**
1850
+ * CreateScheduleRequest
1851
+ */
1852
+ export type CreateScheduleRequest = {
1853
+ /**
1854
+ * Name
1855
+ *
1856
+ * Schedule name
1857
+ */
1858
+ name: string;
1859
+ /**
1860
+ * Taxonomy Id
1861
+ *
1862
+ * Taxonomy ID (auto-creates if omitted)
1863
+ */
1864
+ taxonomy_id?: string | null;
1865
+ /**
1866
+ * Element Ids
1867
+ *
1868
+ * Element IDs to include
1869
+ */
1870
+ element_ids: Array<string>;
1871
+ /**
1872
+ * Period Start
1873
+ *
1874
+ * First period start
1875
+ */
1876
+ period_start: string;
1877
+ /**
1878
+ * Period End
1879
+ *
1880
+ * Last period end
1881
+ */
1882
+ period_end: string;
1883
+ /**
1884
+ * Monthly Amount
1885
+ *
1886
+ * Monthly amount in cents
1887
+ */
1888
+ monthly_amount: number;
1889
+ entry_template: EntryTemplateRequest;
1890
+ schedule_metadata?: ScheduleMetadataRequest | null;
1891
+ };
1892
+
1747
1893
  /**
1748
1894
  * CreateSecurityRequest
1749
1895
  */
@@ -1799,7 +1945,7 @@ export type CreateStructureRequest = {
1799
1945
  /**
1800
1946
  * Structure Type
1801
1947
  */
1802
- structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'custom';
1948
+ structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'custom';
1803
1949
  /**
1804
1950
  * Taxonomy Id
1805
1951
  */
@@ -1871,7 +2017,7 @@ export type CreateTaxonomyRequest = {
1871
2017
  /**
1872
2018
  * Taxonomy Type
1873
2019
  */
1874
- taxonomy_type: 'chart_of_accounts' | 'reporting' | 'mapping';
2020
+ taxonomy_type: 'chart_of_accounts' | 'reporting' | 'mapping' | 'schedule';
1875
2021
  /**
1876
2022
  * Version
1877
2023
  */
@@ -2322,6 +2468,32 @@ export type DatabaseInfoResponse = {
2322
2468
  last_backup_date?: string | null;
2323
2469
  };
2324
2470
 
2471
+ /**
2472
+ * DatabaseStorageEntry
2473
+ *
2474
+ * Storage for a single database on the instance.
2475
+ */
2476
+ export type DatabaseStorageEntry = {
2477
+ /**
2478
+ * Graph Id
2479
+ *
2480
+ * Database identifier
2481
+ */
2482
+ graph_id: string;
2483
+ /**
2484
+ * Is Parent
2485
+ *
2486
+ * Whether this is the parent graph
2487
+ */
2488
+ is_parent?: boolean;
2489
+ /**
2490
+ * Size Mb
2491
+ *
2492
+ * Database size in MB
2493
+ */
2494
+ size_mb?: number | null;
2495
+ };
2496
+
2325
2497
  /**
2326
2498
  * DeleteFileResponse
2327
2499
  */
@@ -2800,68 +2972,6 @@ export type DownloadQuota = {
2800
2972
  resets_at: string;
2801
2973
  };
2802
2974
 
2803
- /**
2804
- * ElementAssociationResponse
2805
- */
2806
- export type ElementAssociationResponse = {
2807
- /**
2808
- * Id
2809
- */
2810
- id: string;
2811
- /**
2812
- * Structure Id
2813
- */
2814
- structure_id: string;
2815
- /**
2816
- * From Element Id
2817
- */
2818
- from_element_id: string;
2819
- /**
2820
- * From Element Name
2821
- */
2822
- from_element_name?: string | null;
2823
- /**
2824
- * From Element Qname
2825
- */
2826
- from_element_qname?: string | null;
2827
- /**
2828
- * To Element Id
2829
- */
2830
- to_element_id: string;
2831
- /**
2832
- * To Element Name
2833
- */
2834
- to_element_name?: string | null;
2835
- /**
2836
- * To Element Qname
2837
- */
2838
- to_element_qname?: string | null;
2839
- /**
2840
- * Association Type
2841
- */
2842
- association_type: string;
2843
- /**
2844
- * Order Value
2845
- */
2846
- order_value?: number | null;
2847
- /**
2848
- * Weight
2849
- */
2850
- weight?: number | null;
2851
- /**
2852
- * Confidence
2853
- */
2854
- confidence?: number | null;
2855
- /**
2856
- * Suggested By
2857
- */
2858
- suggested_by?: string | null;
2859
- /**
2860
- * Approved By
2861
- */
2862
- approved_by?: string | null;
2863
- };
2864
-
2865
2975
  /**
2866
2976
  * ElementListResponse
2867
2977
  */
@@ -3039,6 +3149,36 @@ export type EnhancedFileStatusLayers = {
3039
3149
  graph: FileLayerStatus;
3040
3150
  };
3041
3151
 
3152
+ /**
3153
+ * EntryTemplateRequest
3154
+ */
3155
+ export type EntryTemplateRequest = {
3156
+ /**
3157
+ * Debit Element Id
3158
+ *
3159
+ * Element to debit (e.g., Depreciation Expense)
3160
+ */
3161
+ debit_element_id: string;
3162
+ /**
3163
+ * Credit Element Id
3164
+ *
3165
+ * Element to credit (e.g., Accumulated Depreciation)
3166
+ */
3167
+ credit_element_id: string;
3168
+ /**
3169
+ * Entry Type
3170
+ *
3171
+ * Entry type for generated entries
3172
+ */
3173
+ entry_type?: string;
3174
+ /**
3175
+ * Memo Template
3176
+ *
3177
+ * Memo template ({structure_name} is replaced)
3178
+ */
3179
+ memo_template?: string;
3180
+ };
3181
+
3042
3182
  /**
3043
3183
  * ErrorResponse
3044
3184
  *
@@ -3095,13 +3235,9 @@ export type FactRowResponse = {
3095
3235
  */
3096
3236
  classification: string;
3097
3237
  /**
3098
- * Current Value
3099
- */
3100
- current_value: number;
3101
- /**
3102
- * Prior Value
3238
+ * Values
3103
3239
  */
3104
- prior_value?: number | null;
3240
+ values?: Array<number | null>;
3105
3241
  /**
3106
3242
  * Is Subtotal
3107
3243
  */
@@ -3471,7 +3607,7 @@ export type GraphInfo = {
3471
3607
  /**
3472
3608
  * Status
3473
3609
  *
3474
- * Graph lifecycle status: queued, provisioning, active, suspended
3610
+ * Graph lifecycle status: active, suspended, deprovisioned
3475
3611
  */
3476
3612
  status?: string;
3477
3613
  };
@@ -3531,9 +3667,13 @@ export type GraphLimitsResponse = {
3531
3667
  */
3532
3668
  credits?: CreditLimits | null;
3533
3669
  /**
3534
- * Graph content limits (if applicable)
3670
+ * Per-operation materialization limits (if applicable)
3535
3671
  */
3536
3672
  content?: ContentLimits | null;
3673
+ /**
3674
+ * Aggregate instance storage usage (user graphs only)
3675
+ */
3676
+ instance?: InstanceUsage | null;
3537
3677
  };
3538
3678
 
3539
3679
  /**
@@ -3799,12 +3939,6 @@ export type GraphSubscriptionTier = {
3799
3939
  * Whether priority support is included
3800
3940
  */
3801
3941
  priority_support: boolean;
3802
- /**
3803
- * Max Queries Per Hour
3804
- *
3805
- * Maximum queries per hour
3806
- */
3807
- max_queries_per_hour?: number | null;
3808
3942
  /**
3809
3943
  * Max Subgraphs
3810
3944
  *
@@ -4302,6 +4436,53 @@ export type InitialEntityData = {
4302
4436
  ein?: string | null;
4303
4437
  };
4304
4438
 
4439
+ /**
4440
+ * InstanceUsage
4441
+ *
4442
+ * Aggregate storage usage across the dedicated instance.
4443
+ *
4444
+ * Covers the parent graph, all subgraphs, DuckDB staging, and
4445
+ * future LanceDB vector indexes.
4446
+ */
4447
+ export type InstanceUsage = {
4448
+ /**
4449
+ * Node Count
4450
+ *
4451
+ * Current node count (informational, no limit enforced)
4452
+ */
4453
+ node_count?: number | null;
4454
+ /**
4455
+ * Total Storage Gb
4456
+ *
4457
+ * Total storage used across all databases in GB
4458
+ */
4459
+ total_storage_gb?: number | null;
4460
+ /**
4461
+ * Limit Gb
4462
+ *
4463
+ * Soft storage limit for this tier in GB
4464
+ */
4465
+ limit_gb: number;
4466
+ /**
4467
+ * Usage Percentage
4468
+ *
4469
+ * Storage usage as percentage of limit (e.g. 105.2)
4470
+ */
4471
+ usage_percentage?: number | null;
4472
+ /**
4473
+ * Status
4474
+ *
4475
+ * Instance status: 'healthy' (<80%), 'approaching' (80-100%), 'over_limit' (>100%)
4476
+ */
4477
+ status: string;
4478
+ /**
4479
+ * Databases
4480
+ *
4481
+ * Per-database storage breakdown
4482
+ */
4483
+ databases?: Array<DatabaseStorageEntry>;
4484
+ };
4485
+
4305
4486
  /**
4306
4487
  * InviteMemberRequest
4307
4488
  *
@@ -5073,7 +5254,7 @@ export type MappingDetailResponse = {
5073
5254
  /**
5074
5255
  * Associations
5075
5256
  */
5076
- associations: Array<ElementAssociationResponse>;
5257
+ associations: Array<AssociationResponse>;
5077
5258
  /**
5078
5259
  * Total Associations
5079
5260
  */
@@ -5874,6 +6055,82 @@ export type PerformanceInsights = {
5874
6055
  performance_score: number;
5875
6056
  };
5876
6057
 
6058
+ /**
6059
+ * PeriodCloseItemResponse
6060
+ */
6061
+ export type PeriodCloseItemResponse = {
6062
+ /**
6063
+ * Structure Id
6064
+ */
6065
+ structure_id: string;
6066
+ /**
6067
+ * Structure Name
6068
+ */
6069
+ structure_name: string;
6070
+ /**
6071
+ * Amount
6072
+ */
6073
+ amount: number;
6074
+ /**
6075
+ * Status
6076
+ */
6077
+ status: string;
6078
+ /**
6079
+ * Entry Id
6080
+ */
6081
+ entry_id?: string | null;
6082
+ };
6083
+
6084
+ /**
6085
+ * PeriodCloseStatusResponse
6086
+ */
6087
+ export type PeriodCloseStatusResponse = {
6088
+ /**
6089
+ * Fiscal Period Start
6090
+ */
6091
+ fiscal_period_start: string;
6092
+ /**
6093
+ * Fiscal Period End
6094
+ */
6095
+ fiscal_period_end: string;
6096
+ /**
6097
+ * Period Status
6098
+ */
6099
+ period_status: string;
6100
+ /**
6101
+ * Schedules
6102
+ */
6103
+ schedules: Array<PeriodCloseItemResponse>;
6104
+ /**
6105
+ * Total Draft
6106
+ */
6107
+ total_draft: number;
6108
+ /**
6109
+ * Total Posted
6110
+ */
6111
+ total_posted: number;
6112
+ };
6113
+
6114
+ /**
6115
+ * PeriodSpec
6116
+ *
6117
+ * A reporting period column.
6118
+ */
6119
+ export type PeriodSpec = {
6120
+ /**
6121
+ * Start
6122
+ */
6123
+ start: string;
6124
+ /**
6125
+ * End
6126
+ */
6127
+ end: string;
6128
+ /**
6129
+ * Label
6130
+ */
6131
+ label: string;
6132
+ };
6133
+
5877
6134
  /**
5878
6135
  * PortalSessionResponse
5879
6136
  *
@@ -6236,13 +6493,19 @@ export type RegenerateReportRequest = {
6236
6493
  *
6237
6494
  * New period start date
6238
6495
  */
6239
- period_start: string;
6496
+ period_start?: string | null;
6240
6497
  /**
6241
6498
  * Period End
6242
6499
  *
6243
6500
  * New period end date
6244
6501
  */
6245
- period_end: string;
6502
+ period_end?: string | null;
6503
+ /**
6504
+ * Periods
6505
+ *
6506
+ * New period columns. Overrides period_start/period_end.
6507
+ */
6508
+ periods?: Array<PeriodSpec> | null;
6246
6509
  };
6247
6510
 
6248
6511
  /**
@@ -6325,6 +6588,10 @@ export type ReportResponse = {
6325
6588
  * Comparative
6326
6589
  */
6327
6590
  comparative: boolean;
6591
+ /**
6592
+ * Periods
6593
+ */
6594
+ periods?: Array<PeriodSpec> | null;
6328
6595
  /**
6329
6596
  * Mapping Id
6330
6597
  */
@@ -6588,11 +6855,161 @@ export type SsoTokenResponse = {
6588
6855
  */
6589
6856
  expires_at: string;
6590
6857
  /**
6591
- * Apps
6592
- *
6593
- * Available apps for this user
6858
+ * Apps
6859
+ *
6860
+ * Available apps for this user
6861
+ */
6862
+ apps: Array<string>;
6863
+ };
6864
+
6865
+ /**
6866
+ * ScheduleCreatedResponse
6867
+ */
6868
+ export type ScheduleCreatedResponse = {
6869
+ /**
6870
+ * Structure Id
6871
+ */
6872
+ structure_id: string;
6873
+ /**
6874
+ * Name
6875
+ */
6876
+ name: string;
6877
+ /**
6878
+ * Taxonomy Id
6879
+ */
6880
+ taxonomy_id: string;
6881
+ /**
6882
+ * Total Periods
6883
+ */
6884
+ total_periods: number;
6885
+ /**
6886
+ * Total Facts
6887
+ */
6888
+ total_facts: number;
6889
+ };
6890
+
6891
+ /**
6892
+ * ScheduleFactResponse
6893
+ */
6894
+ export type ScheduleFactResponse = {
6895
+ /**
6896
+ * Element Id
6897
+ */
6898
+ element_id: string;
6899
+ /**
6900
+ * Element Name
6901
+ */
6902
+ element_name: string;
6903
+ /**
6904
+ * Value
6905
+ */
6906
+ value: number;
6907
+ /**
6908
+ * Period Start
6909
+ */
6910
+ period_start: string;
6911
+ /**
6912
+ * Period End
6913
+ */
6914
+ period_end: string;
6915
+ };
6916
+
6917
+ /**
6918
+ * ScheduleFactsResponse
6919
+ */
6920
+ export type ScheduleFactsResponse = {
6921
+ /**
6922
+ * Structure Id
6923
+ */
6924
+ structure_id: string;
6925
+ /**
6926
+ * Facts
6927
+ */
6928
+ facts: Array<ScheduleFactResponse>;
6929
+ };
6930
+
6931
+ /**
6932
+ * ScheduleListResponse
6933
+ */
6934
+ export type ScheduleListResponse = {
6935
+ /**
6936
+ * Schedules
6937
+ */
6938
+ schedules: Array<ScheduleSummaryResponse>;
6939
+ };
6940
+
6941
+ /**
6942
+ * ScheduleMetadataRequest
6943
+ */
6944
+ export type ScheduleMetadataRequest = {
6945
+ /**
6946
+ * Method
6947
+ *
6948
+ * Calculation method
6949
+ */
6950
+ method?: string;
6951
+ /**
6952
+ * Original Amount
6953
+ *
6954
+ * Cost basis in cents
6955
+ */
6956
+ original_amount?: number;
6957
+ /**
6958
+ * Residual Value
6959
+ *
6960
+ * Salvage value in cents
6961
+ */
6962
+ residual_value?: number;
6963
+ /**
6964
+ * Useful Life Months
6965
+ *
6966
+ * Useful life in months
6967
+ */
6968
+ useful_life_months?: number;
6969
+ /**
6970
+ * Asset Element Id
6971
+ *
6972
+ * BS asset element for net book value
6973
+ */
6974
+ asset_element_id?: string | null;
6975
+ };
6976
+
6977
+ /**
6978
+ * ScheduleSummaryResponse
6979
+ */
6980
+ export type ScheduleSummaryResponse = {
6981
+ /**
6982
+ * Structure Id
6983
+ */
6984
+ structure_id: string;
6985
+ /**
6986
+ * Name
6987
+ */
6988
+ name: string;
6989
+ /**
6990
+ * Taxonomy Name
6991
+ */
6992
+ taxonomy_name: string;
6993
+ /**
6994
+ * Entry Template
6995
+ */
6996
+ entry_template?: {
6997
+ [key: string]: unknown;
6998
+ } | null;
6999
+ /**
7000
+ * Schedule Metadata
7001
+ */
7002
+ schedule_metadata?: {
7003
+ [key: string]: unknown;
7004
+ } | null;
7005
+ /**
7006
+ * Total Periods
7007
+ */
7008
+ total_periods: number;
7009
+ /**
7010
+ * Periods With Entries
6594
7011
  */
6595
- apps: Array<string>;
7012
+ periods_with_entries: number;
6596
7013
  };
6597
7014
 
6598
7015
  /**
@@ -6878,6 +7295,12 @@ export type SearchRequest = {
6878
7295
  * Filter filings on or before date (YYYY-MM-DD)
6879
7296
  */
6880
7297
  date_to?: string | null;
7298
+ /**
7299
+ * Semantic
7300
+ *
7301
+ * Enable hybrid semantic search (BM25 + KNN). Default is BM25-only for speed.
7302
+ */
7303
+ semantic?: boolean;
6881
7304
  /**
6882
7305
  * Size
6883
7306
  *
@@ -7156,21 +7579,9 @@ export type StatementResponse = {
7156
7579
  */
7157
7580
  structure_type: string;
7158
7581
  /**
7159
- * Period Start
7160
- */
7161
- period_start: string;
7162
- /**
7163
- * Period End
7164
- */
7165
- period_end: string;
7166
- /**
7167
- * Comparative Period Start
7168
- */
7169
- comparative_period_start?: string | null;
7170
- /**
7171
- * Comparative Period End
7582
+ * Periods
7172
7583
  */
7173
- comparative_period_end?: string | null;
7584
+ periods?: Array<PeriodSpec>;
7174
7585
  /**
7175
7586
  * Rows
7176
7587
  */
@@ -7182,50 +7593,6 @@ export type StatementResponse = {
7182
7593
  unmapped_count?: number;
7183
7594
  };
7184
7595
 
7185
- /**
7186
- * StorageLimitResponse
7187
- *
7188
- * Storage limit information response.
7189
- */
7190
- export type StorageLimitResponse = {
7191
- /**
7192
- * Graph Id
7193
- */
7194
- graph_id: string;
7195
- /**
7196
- * Current Storage Gb
7197
- */
7198
- current_storage_gb: number;
7199
- /**
7200
- * Effective Limit Gb
7201
- */
7202
- effective_limit_gb: number;
7203
- /**
7204
- * Usage Percentage
7205
- */
7206
- usage_percentage: number;
7207
- /**
7208
- * Within Limit
7209
- */
7210
- within_limit: boolean;
7211
- /**
7212
- * Approaching Limit
7213
- */
7214
- approaching_limit: boolean;
7215
- /**
7216
- * Needs Warning
7217
- */
7218
- needs_warning: boolean;
7219
- /**
7220
- * Has Override
7221
- */
7222
- has_override: boolean;
7223
- /**
7224
- * Recommendations
7225
- */
7226
- recommendations?: Array<string> | null;
7227
- };
7228
-
7229
7596
  /**
7230
7597
  * StorageLimits
7231
7598
  *
@@ -11014,101 +11381,6 @@ export type CheckCreditBalanceResponses = {
11014
11381
 
11015
11382
  export type CheckCreditBalanceResponse = CheckCreditBalanceResponses[keyof CheckCreditBalanceResponses];
11016
11383
 
11017
- export type GetStorageUsageData = {
11018
- body?: never;
11019
- path: {
11020
- /**
11021
- * Graph Id
11022
- *
11023
- * Graph database identifier
11024
- */
11025
- graph_id: string;
11026
- };
11027
- query?: {
11028
- /**
11029
- * Days
11030
- *
11031
- * Number of days of history to return
11032
- */
11033
- days?: number;
11034
- };
11035
- url: '/v1/graphs/{graph_id}/credits/storage/usage';
11036
- };
11037
-
11038
- export type GetStorageUsageErrors = {
11039
- /**
11040
- * Access denied to graph
11041
- */
11042
- 403: ErrorResponse;
11043
- /**
11044
- * Validation Error
11045
- */
11046
- 422: HttpValidationError;
11047
- /**
11048
- * Failed to retrieve storage usage
11049
- */
11050
- 500: ErrorResponse;
11051
- };
11052
-
11053
- export type GetStorageUsageError = GetStorageUsageErrors[keyof GetStorageUsageErrors];
11054
-
11055
- export type GetStorageUsageResponses = {
11056
- /**
11057
- * Response Getstorageusage
11058
- *
11059
- * Storage usage retrieved successfully
11060
- */
11061
- 200: {
11062
- [key: string]: unknown;
11063
- };
11064
- };
11065
-
11066
- export type GetStorageUsageResponse = GetStorageUsageResponses[keyof GetStorageUsageResponses];
11067
-
11068
- export type CheckStorageLimitsData = {
11069
- body?: never;
11070
- path: {
11071
- /**
11072
- * Graph Id
11073
- *
11074
- * Graph database identifier
11075
- */
11076
- graph_id: string;
11077
- };
11078
- query?: never;
11079
- url: '/v1/graphs/{graph_id}/credits/storage/limits';
11080
- };
11081
-
11082
- export type CheckStorageLimitsErrors = {
11083
- /**
11084
- * Access denied to graph
11085
- */
11086
- 403: ErrorResponse;
11087
- /**
11088
- * No credit pool found for graph
11089
- */
11090
- 404: ErrorResponse;
11091
- /**
11092
- * Validation Error
11093
- */
11094
- 422: HttpValidationError;
11095
- /**
11096
- * Failed to retrieve storage limits
11097
- */
11098
- 500: ErrorResponse;
11099
- };
11100
-
11101
- export type CheckStorageLimitsError = CheckStorageLimitsErrors[keyof CheckStorageLimitsErrors];
11102
-
11103
- export type CheckStorageLimitsResponses = {
11104
- /**
11105
- * Storage limit information retrieved successfully
11106
- */
11107
- 200: StorageLimitResponse;
11108
- };
11109
-
11110
- export type CheckStorageLimitsResponse = CheckStorageLimitsResponses[keyof CheckStorageLimitsResponses];
11111
-
11112
11384
  export type GetDatabaseHealthData = {
11113
11385
  body?: never;
11114
11386
  path: {
@@ -13512,7 +13784,7 @@ export type CreateMappingAssociationResponses = {
13512
13784
  /**
13513
13785
  * Successful Response
13514
13786
  */
13515
- 201: ElementAssociationResponse;
13787
+ 201: AssociationResponse;
13516
13788
  };
13517
13789
 
13518
13790
  export type CreateMappingAssociationResponse = CreateMappingAssociationResponses[keyof CreateMappingAssociationResponses];
@@ -14076,6 +14348,194 @@ export type ShareReportResponses = {
14076
14348
 
14077
14349
  export type ShareReportResponse2 = ShareReportResponses[keyof ShareReportResponses];
14078
14350
 
14351
+ export type ListSchedulesData = {
14352
+ body?: never;
14353
+ path: {
14354
+ /**
14355
+ * Graph Id
14356
+ */
14357
+ graph_id: string;
14358
+ };
14359
+ query?: never;
14360
+ url: '/v1/ledger/{graph_id}/schedules';
14361
+ };
14362
+
14363
+ export type ListSchedulesErrors = {
14364
+ /**
14365
+ * Validation Error
14366
+ */
14367
+ 422: HttpValidationError;
14368
+ };
14369
+
14370
+ export type ListSchedulesError = ListSchedulesErrors[keyof ListSchedulesErrors];
14371
+
14372
+ export type ListSchedulesResponses = {
14373
+ /**
14374
+ * Successful Response
14375
+ */
14376
+ 200: ScheduleListResponse;
14377
+ };
14378
+
14379
+ export type ListSchedulesResponse = ListSchedulesResponses[keyof ListSchedulesResponses];
14380
+
14381
+ export type CreateScheduleData = {
14382
+ body: CreateScheduleRequest;
14383
+ path: {
14384
+ /**
14385
+ * Graph Id
14386
+ */
14387
+ graph_id: string;
14388
+ };
14389
+ query?: never;
14390
+ url: '/v1/ledger/{graph_id}/schedules';
14391
+ };
14392
+
14393
+ export type CreateScheduleErrors = {
14394
+ /**
14395
+ * Validation Error
14396
+ */
14397
+ 422: HttpValidationError;
14398
+ };
14399
+
14400
+ export type CreateScheduleError = CreateScheduleErrors[keyof CreateScheduleErrors];
14401
+
14402
+ export type CreateScheduleResponses = {
14403
+ /**
14404
+ * Successful Response
14405
+ */
14406
+ 201: ScheduleCreatedResponse;
14407
+ };
14408
+
14409
+ export type CreateScheduleResponse = CreateScheduleResponses[keyof CreateScheduleResponses];
14410
+
14411
+ export type GetScheduleFactsData = {
14412
+ body?: never;
14413
+ path: {
14414
+ /**
14415
+ * Graph Id
14416
+ */
14417
+ graph_id: string;
14418
+ /**
14419
+ * Structure Id
14420
+ *
14421
+ * Schedule structure ID
14422
+ */
14423
+ structure_id: string;
14424
+ };
14425
+ query?: {
14426
+ /**
14427
+ * Period Start
14428
+ *
14429
+ * Filter: period start
14430
+ */
14431
+ period_start?: string | null;
14432
+ /**
14433
+ * Period End
14434
+ *
14435
+ * Filter: period end
14436
+ */
14437
+ period_end?: string | null;
14438
+ };
14439
+ url: '/v1/ledger/{graph_id}/schedules/{structure_id}/facts';
14440
+ };
14441
+
14442
+ export type GetScheduleFactsErrors = {
14443
+ /**
14444
+ * Validation Error
14445
+ */
14446
+ 422: HttpValidationError;
14447
+ };
14448
+
14449
+ export type GetScheduleFactsError = GetScheduleFactsErrors[keyof GetScheduleFactsErrors];
14450
+
14451
+ export type GetScheduleFactsResponses = {
14452
+ /**
14453
+ * Successful Response
14454
+ */
14455
+ 200: ScheduleFactsResponse;
14456
+ };
14457
+
14458
+ export type GetScheduleFactsResponse = GetScheduleFactsResponses[keyof GetScheduleFactsResponses];
14459
+
14460
+ export type GetPeriodCloseStatusData = {
14461
+ body?: never;
14462
+ path: {
14463
+ /**
14464
+ * Graph Id
14465
+ */
14466
+ graph_id: string;
14467
+ };
14468
+ query: {
14469
+ /**
14470
+ * Period Start
14471
+ *
14472
+ * Fiscal period start
14473
+ */
14474
+ period_start: string;
14475
+ /**
14476
+ * Period End
14477
+ *
14478
+ * Fiscal period end
14479
+ */
14480
+ period_end: string;
14481
+ };
14482
+ url: '/v1/ledger/{graph_id}/schedules/close-status';
14483
+ };
14484
+
14485
+ export type GetPeriodCloseStatusErrors = {
14486
+ /**
14487
+ * Validation Error
14488
+ */
14489
+ 422: HttpValidationError;
14490
+ };
14491
+
14492
+ export type GetPeriodCloseStatusError = GetPeriodCloseStatusErrors[keyof GetPeriodCloseStatusErrors];
14493
+
14494
+ export type GetPeriodCloseStatusResponses = {
14495
+ /**
14496
+ * Successful Response
14497
+ */
14498
+ 200: PeriodCloseStatusResponse;
14499
+ };
14500
+
14501
+ export type GetPeriodCloseStatusResponse = GetPeriodCloseStatusResponses[keyof GetPeriodCloseStatusResponses];
14502
+
14503
+ export type CreateClosingEntryData = {
14504
+ body: CreateClosingEntryRequest;
14505
+ path: {
14506
+ /**
14507
+ * Graph Id
14508
+ */
14509
+ graph_id: string;
14510
+ /**
14511
+ * Structure Id
14512
+ *
14513
+ * Schedule structure ID
14514
+ */
14515
+ structure_id: string;
14516
+ };
14517
+ query?: never;
14518
+ url: '/v1/ledger/{graph_id}/schedules/{structure_id}/closing-entry';
14519
+ };
14520
+
14521
+ export type CreateClosingEntryErrors = {
14522
+ /**
14523
+ * Validation Error
14524
+ */
14525
+ 422: HttpValidationError;
14526
+ };
14527
+
14528
+ export type CreateClosingEntryError = CreateClosingEntryErrors[keyof CreateClosingEntryErrors];
14529
+
14530
+ export type CreateClosingEntryResponses = {
14531
+ /**
14532
+ * Successful Response
14533
+ */
14534
+ 201: ClosingEntryResponse;
14535
+ };
14536
+
14537
+ export type CreateClosingEntryResponse = CreateClosingEntryResponses[keyof CreateClosingEntryResponses];
14538
+
14079
14539
  export type ListPublishListsData = {
14080
14540
  body?: never;
14081
14541
  path: {