@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.d.ts CHANGED
@@ -556,6 +556,67 @@ export type AgentResponse = {
556
556
  */
557
557
  timestamp?: string;
558
558
  };
559
+ /**
560
+ * AssociationResponse
561
+ */
562
+ export type AssociationResponse = {
563
+ /**
564
+ * Id
565
+ */
566
+ id: string;
567
+ /**
568
+ * Structure Id
569
+ */
570
+ structure_id: string;
571
+ /**
572
+ * From Element Id
573
+ */
574
+ from_element_id: string;
575
+ /**
576
+ * From Element Name
577
+ */
578
+ from_element_name?: string | null;
579
+ /**
580
+ * From Element Qname
581
+ */
582
+ from_element_qname?: string | null;
583
+ /**
584
+ * To Element Id
585
+ */
586
+ to_element_id: string;
587
+ /**
588
+ * To Element Name
589
+ */
590
+ to_element_name?: string | null;
591
+ /**
592
+ * To Element Qname
593
+ */
594
+ to_element_qname?: string | null;
595
+ /**
596
+ * Association Type
597
+ */
598
+ association_type: string;
599
+ /**
600
+ * Order Value
601
+ */
602
+ order_value?: number | null;
603
+ /**
604
+ * Weight
605
+ */
606
+ weight?: number | null;
607
+ /**
608
+ * Confidence
609
+ */
610
+ confidence?: number | null;
611
+ /**
612
+ * Suggested By
613
+ */
614
+ suggested_by?: string | null;
615
+ /**
616
+ * Approved By
617
+ */
618
+ approved_by?: string | null;
619
+ };
559
620
  /**
560
621
  * AuthResponse
561
622
  *
@@ -1122,6 +1183,39 @@ export type CheckoutStatusResponse = {
1122
1183
  */
1123
1184
  error?: string | null;
1124
1185
  };
1186
+ /**
1187
+ * ClosingEntryResponse
1188
+ */
1189
+ export type ClosingEntryResponse = {
1190
+ /**
1191
+ * Entry Id
1192
+ */
1193
+ entry_id: string;
1194
+ /**
1195
+ * Status
1196
+ */
1197
+ status: string;
1198
+ /**
1199
+ * Posting Date
1200
+ */
1201
+ posting_date: string;
1202
+ /**
1203
+ * Memo
1204
+ */
1205
+ memo: string;
1206
+ /**
1207
+ * Debit Element Id
1208
+ */
1209
+ debit_element_id: string;
1210
+ /**
1211
+ * Credit Element Id
1212
+ */
1213
+ credit_element_id: string;
1214
+ /**
1215
+ * Amount
1216
+ */
1217
+ amount: number;
1218
+ };
1125
1219
  /**
1126
1220
  * ConnectionOptionsResponse
1127
1221
  *
@@ -1280,33 +1374,9 @@ export type ConnectionResponse = {
1280
1374
  /**
1281
1375
  * ContentLimits
1282
1376
  *
1283
- * Graph content limits (nodes, relationships, rows).
1377
+ * Per-operation materialization limits.
1284
1378
  */
1285
1379
  export type ContentLimits = {
1286
- /**
1287
- * Max Nodes
1288
- *
1289
- * Maximum nodes allowed
1290
- */
1291
- max_nodes: number;
1292
- /**
1293
- * Current Nodes
1294
- *
1295
- * Current node count
1296
- */
1297
- current_nodes?: number | null;
1298
- /**
1299
- * Max Relationships
1300
- *
1301
- * Maximum relationships allowed
1302
- */
1303
- max_relationships: number;
1304
- /**
1305
- * Current Relationships
1306
- *
1307
- * Current relationship count
1308
- */
1309
- current_relationships?: number | null;
1310
1380
  /**
1311
1381
  * Max Rows Per Copy
1312
1382
  *
@@ -1325,12 +1395,6 @@ export type ContentLimits = {
1325
1395
  * Rows per materialization chunk
1326
1396
  */
1327
1397
  chunk_size_rows: number;
1328
- /**
1329
- * Approaching Limits
1330
- *
1331
- * List of limits being approached (>80%)
1332
- */
1333
- approaching_limits?: Array<string>;
1334
1398
  };
1335
1399
  /**
1336
1400
  * CopyOperationLimits
@@ -1477,6 +1541,35 @@ export type CreateCheckoutRequest = {
1477
1541
  [key: string]: unknown;
1478
1542
  };
1479
1543
  };
1544
+ /**
1545
+ * CreateClosingEntryRequest
1546
+ */
1547
+ export type CreateClosingEntryRequest = {
1548
+ /**
1549
+ * Posting Date
1550
+ *
1551
+ * Posting date for the entry
1552
+ */
1553
+ posting_date: string;
1554
+ /**
1555
+ * Period Start
1556
+ *
1557
+ * Period start
1558
+ */
1559
+ period_start: string;
1560
+ /**
1561
+ * Period End
1562
+ *
1563
+ * Period end
1564
+ */
1565
+ period_end: string;
1566
+ /**
1567
+ * Memo
1568
+ *
1569
+ * Override memo
1570
+ */
1571
+ memo?: string | null;
1572
+ };
1480
1573
  /**
1481
1574
  * CreateConnectionRequest
1482
1575
  *
@@ -1676,6 +1769,12 @@ export type CreateReportRequest = {
1676
1769
  * Include prior period comparison
1677
1770
  */
1678
1771
  comparative?: boolean;
1772
+ /**
1773
+ * Periods
1774
+ *
1775
+ * Multi-period columns. Overrides period_start/period_end/comparative when set.
1776
+ */
1777
+ periods?: Array<PeriodSpec> | null;
1679
1778
  };
1680
1779
  /**
1681
1780
  * CreateRepositorySubscriptionRequest
@@ -1690,6 +1789,49 @@ export type CreateRepositorySubscriptionRequest = {
1690
1789
  */
1691
1790
  plan_name: string;
1692
1791
  };
1792
+ /**
1793
+ * CreateScheduleRequest
1794
+ */
1795
+ export type CreateScheduleRequest = {
1796
+ /**
1797
+ * Name
1798
+ *
1799
+ * Schedule name
1800
+ */
1801
+ name: string;
1802
+ /**
1803
+ * Taxonomy Id
1804
+ *
1805
+ * Taxonomy ID (auto-creates if omitted)
1806
+ */
1807
+ taxonomy_id?: string | null;
1808
+ /**
1809
+ * Element Ids
1810
+ *
1811
+ * Element IDs to include
1812
+ */
1813
+ element_ids: Array<string>;
1814
+ /**
1815
+ * Period Start
1816
+ *
1817
+ * First period start
1818
+ */
1819
+ period_start: string;
1820
+ /**
1821
+ * Period End
1822
+ *
1823
+ * Last period end
1824
+ */
1825
+ period_end: string;
1826
+ /**
1827
+ * Monthly Amount
1828
+ *
1829
+ * Monthly amount in cents
1830
+ */
1831
+ monthly_amount: number;
1832
+ entry_template: EntryTemplateRequest;
1833
+ schedule_metadata?: ScheduleMetadataRequest | null;
1834
+ };
1693
1835
  /**
1694
1836
  * CreateSecurityRequest
1695
1837
  */
@@ -1744,7 +1886,7 @@ export type CreateStructureRequest = {
1744
1886
  /**
1745
1887
  * Structure Type
1746
1888
  */
1747
- structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'custom';
1889
+ structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'custom';
1748
1890
  /**
1749
1891
  * Taxonomy Id
1750
1892
  */
@@ -1814,7 +1956,7 @@ export type CreateTaxonomyRequest = {
1814
1956
  /**
1815
1957
  * Taxonomy Type
1816
1958
  */
1817
- taxonomy_type: 'chart_of_accounts' | 'reporting' | 'mapping';
1959
+ taxonomy_type: 'chart_of_accounts' | 'reporting' | 'mapping' | 'schedule';
1818
1960
  /**
1819
1961
  * Version
1820
1962
  */
@@ -2256,6 +2398,31 @@ export type DatabaseInfoResponse = {
2256
2398
  */
2257
2399
  last_backup_date?: string | null;
2258
2400
  };
2401
+ /**
2402
+ * DatabaseStorageEntry
2403
+ *
2404
+ * Storage for a single database on the instance.
2405
+ */
2406
+ export type DatabaseStorageEntry = {
2407
+ /**
2408
+ * Graph Id
2409
+ *
2410
+ * Database identifier
2411
+ */
2412
+ graph_id: string;
2413
+ /**
2414
+ * Is Parent
2415
+ *
2416
+ * Whether this is the parent graph
2417
+ */
2418
+ is_parent?: boolean;
2419
+ /**
2420
+ * Size Mb
2421
+ *
2422
+ * Database size in MB
2423
+ */
2424
+ size_mb?: number | null;
2425
+ };
2259
2426
  /**
2260
2427
  * DeleteFileResponse
2261
2428
  */
@@ -2722,67 +2889,6 @@ export type DownloadQuota = {
2722
2889
  */
2723
2890
  resets_at: string;
2724
2891
  };
2725
- /**
2726
- * ElementAssociationResponse
2727
- */
2728
- export type ElementAssociationResponse = {
2729
- /**
2730
- * Id
2731
- */
2732
- id: string;
2733
- /**
2734
- * Structure Id
2735
- */
2736
- structure_id: string;
2737
- /**
2738
- * From Element Id
2739
- */
2740
- from_element_id: string;
2741
- /**
2742
- * From Element Name
2743
- */
2744
- from_element_name?: string | null;
2745
- /**
2746
- * From Element Qname
2747
- */
2748
- from_element_qname?: string | null;
2749
- /**
2750
- * To Element Id
2751
- */
2752
- to_element_id: string;
2753
- /**
2754
- * To Element Name
2755
- */
2756
- to_element_name?: string | null;
2757
- /**
2758
- * To Element Qname
2759
- */
2760
- to_element_qname?: string | null;
2761
- /**
2762
- * Association Type
2763
- */
2764
- association_type: string;
2765
- /**
2766
- * Order Value
2767
- */
2768
- order_value?: number | null;
2769
- /**
2770
- * Weight
2771
- */
2772
- weight?: number | null;
2773
- /**
2774
- * Confidence
2775
- */
2776
- confidence?: number | null;
2777
- /**
2778
- * Suggested By
2779
- */
2780
- suggested_by?: string | null;
2781
- /**
2782
- * Approved By
2783
- */
2784
- approved_by?: string | null;
2785
- };
2786
2892
  /**
2787
2893
  * ElementListResponse
2788
2894
  */
@@ -2955,6 +3061,35 @@ export type EnhancedFileStatusLayers = {
2955
3061
  */
2956
3062
  graph: FileLayerStatus;
2957
3063
  };
3064
+ /**
3065
+ * EntryTemplateRequest
3066
+ */
3067
+ export type EntryTemplateRequest = {
3068
+ /**
3069
+ * Debit Element Id
3070
+ *
3071
+ * Element to debit (e.g., Depreciation Expense)
3072
+ */
3073
+ debit_element_id: string;
3074
+ /**
3075
+ * Credit Element Id
3076
+ *
3077
+ * Element to credit (e.g., Accumulated Depreciation)
3078
+ */
3079
+ credit_element_id: string;
3080
+ /**
3081
+ * Entry Type
3082
+ *
3083
+ * Entry type for generated entries
3084
+ */
3085
+ entry_type?: string;
3086
+ /**
3087
+ * Memo Template
3088
+ *
3089
+ * Memo template ({structure_name} is replaced)
3090
+ */
3091
+ memo_template?: string;
3092
+ };
2958
3093
  /**
2959
3094
  * ErrorResponse
2960
3095
  *
@@ -3010,13 +3145,9 @@ export type FactRowResponse = {
3010
3145
  */
3011
3146
  classification: string;
3012
3147
  /**
3013
- * Current Value
3014
- */
3015
- current_value: number;
3016
- /**
3017
- * Prior Value
3148
+ * Values
3018
3149
  */
3019
- prior_value?: number | null;
3150
+ values?: Array<number | null>;
3020
3151
  /**
3021
3152
  * Is Subtotal
3022
3153
  */
@@ -3377,7 +3508,7 @@ export type GraphInfo = {
3377
3508
  /**
3378
3509
  * Status
3379
3510
  *
3380
- * Graph lifecycle status: queued, provisioning, active, suspended
3511
+ * Graph lifecycle status: active, suspended, deprovisioned
3381
3512
  */
3382
3513
  status?: string;
3383
3514
  };
@@ -3436,9 +3567,13 @@ export type GraphLimitsResponse = {
3436
3567
  */
3437
3568
  credits?: CreditLimits | null;
3438
3569
  /**
3439
- * Graph content limits (if applicable)
3570
+ * Per-operation materialization limits (if applicable)
3440
3571
  */
3441
3572
  content?: ContentLimits | null;
3573
+ /**
3574
+ * Aggregate instance storage usage (user graphs only)
3575
+ */
3576
+ instance?: InstanceUsage | null;
3442
3577
  };
3443
3578
  /**
3444
3579
  * GraphMetadata
@@ -3700,12 +3835,6 @@ export type GraphSubscriptionTier = {
3700
3835
  * Whether priority support is included
3701
3836
  */
3702
3837
  priority_support: boolean;
3703
- /**
3704
- * Max Queries Per Hour
3705
- *
3706
- * Maximum queries per hour
3707
- */
3708
- max_queries_per_hour?: number | null;
3709
3838
  /**
3710
3839
  * Max Subgraphs
3711
3840
  *
@@ -4189,6 +4318,52 @@ export type InitialEntityData = {
4189
4318
  */
4190
4319
  ein?: string | null;
4191
4320
  };
4321
+ /**
4322
+ * InstanceUsage
4323
+ *
4324
+ * Aggregate storage usage across the dedicated instance.
4325
+ *
4326
+ * Covers the parent graph, all subgraphs, DuckDB staging, and
4327
+ * future LanceDB vector indexes.
4328
+ */
4329
+ export type InstanceUsage = {
4330
+ /**
4331
+ * Node Count
4332
+ *
4333
+ * Current node count (informational, no limit enforced)
4334
+ */
4335
+ node_count?: number | null;
4336
+ /**
4337
+ * Total Storage Gb
4338
+ *
4339
+ * Total storage used across all databases in GB
4340
+ */
4341
+ total_storage_gb?: number | null;
4342
+ /**
4343
+ * Limit Gb
4344
+ *
4345
+ * Soft storage limit for this tier in GB
4346
+ */
4347
+ limit_gb: number;
4348
+ /**
4349
+ * Usage Percentage
4350
+ *
4351
+ * Storage usage as percentage of limit (e.g. 105.2)
4352
+ */
4353
+ usage_percentage?: number | null;
4354
+ /**
4355
+ * Status
4356
+ *
4357
+ * Instance status: 'healthy' (<80%), 'approaching' (80-100%), 'over_limit' (>100%)
4358
+ */
4359
+ status: string;
4360
+ /**
4361
+ * Databases
4362
+ *
4363
+ * Per-database storage breakdown
4364
+ */
4365
+ databases?: Array<DatabaseStorageEntry>;
4366
+ };
4192
4367
  /**
4193
4368
  * InviteMemberRequest
4194
4369
  *
@@ -4943,7 +5118,7 @@ export type MappingDetailResponse = {
4943
5118
  /**
4944
5119
  * Associations
4945
5120
  */
4946
- associations: Array<ElementAssociationResponse>;
5121
+ associations: Array<AssociationResponse>;
4947
5122
  /**
4948
5123
  * Total Associations
4949
5124
  */
@@ -5719,6 +5894,79 @@ export type PerformanceInsights = {
5719
5894
  */
5720
5895
  performance_score: number;
5721
5896
  };
5897
+ /**
5898
+ * PeriodCloseItemResponse
5899
+ */
5900
+ export type PeriodCloseItemResponse = {
5901
+ /**
5902
+ * Structure Id
5903
+ */
5904
+ structure_id: string;
5905
+ /**
5906
+ * Structure Name
5907
+ */
5908
+ structure_name: string;
5909
+ /**
5910
+ * Amount
5911
+ */
5912
+ amount: number;
5913
+ /**
5914
+ * Status
5915
+ */
5916
+ status: string;
5917
+ /**
5918
+ * Entry Id
5919
+ */
5920
+ entry_id?: string | null;
5921
+ };
5922
+ /**
5923
+ * PeriodCloseStatusResponse
5924
+ */
5925
+ export type PeriodCloseStatusResponse = {
5926
+ /**
5927
+ * Fiscal Period Start
5928
+ */
5929
+ fiscal_period_start: string;
5930
+ /**
5931
+ * Fiscal Period End
5932
+ */
5933
+ fiscal_period_end: string;
5934
+ /**
5935
+ * Period Status
5936
+ */
5937
+ period_status: string;
5938
+ /**
5939
+ * Schedules
5940
+ */
5941
+ schedules: Array<PeriodCloseItemResponse>;
5942
+ /**
5943
+ * Total Draft
5944
+ */
5945
+ total_draft: number;
5946
+ /**
5947
+ * Total Posted
5948
+ */
5949
+ total_posted: number;
5950
+ };
5951
+ /**
5952
+ * PeriodSpec
5953
+ *
5954
+ * A reporting period column.
5955
+ */
5956
+ export type PeriodSpec = {
5957
+ /**
5958
+ * Start
5959
+ */
5960
+ start: string;
5961
+ /**
5962
+ * End
5963
+ */
5964
+ end: string;
5965
+ /**
5966
+ * Label
5967
+ */
5968
+ label: string;
5969
+ };
5722
5970
  /**
5723
5971
  * PortalSessionResponse
5724
5972
  *
@@ -6069,13 +6317,19 @@ export type RegenerateReportRequest = {
6069
6317
  *
6070
6318
  * New period start date
6071
6319
  */
6072
- period_start: string;
6320
+ period_start?: string | null;
6073
6321
  /**
6074
6322
  * Period End
6075
6323
  *
6076
6324
  * New period end date
6077
6325
  */
6078
- period_end: string;
6326
+ period_end?: string | null;
6327
+ /**
6328
+ * Periods
6329
+ *
6330
+ * New period columns. Overrides period_start/period_end.
6331
+ */
6332
+ periods?: Array<PeriodSpec> | null;
6079
6333
  };
6080
6334
  /**
6081
6335
  * RegisterRequest
@@ -6155,6 +6409,10 @@ export type ReportResponse = {
6155
6409
  * Comparative
6156
6410
  */
6157
6411
  comparative: boolean;
6412
+ /**
6413
+ * Periods
6414
+ */
6415
+ periods?: Array<PeriodSpec> | null;
6158
6416
  /**
6159
6417
  * Mapping Id
6160
6418
  */
@@ -6373,46 +6631,190 @@ export type SsoExchangeResponse = {
6373
6631
  /**
6374
6632
  * Session Id
6375
6633
  *
6376
- * Temporary session ID for secure handoff
6634
+ * Temporary session ID for secure handoff
6635
+ */
6636
+ session_id: string;
6637
+ /**
6638
+ * Redirect Url
6639
+ *
6640
+ * URL to redirect to for authentication
6641
+ */
6642
+ redirect_url: string;
6643
+ /**
6644
+ * Expires At
6645
+ *
6646
+ * Session expiration time
6647
+ */
6648
+ expires_at: string;
6649
+ };
6650
+ /**
6651
+ * SSOTokenResponse
6652
+ *
6653
+ * SSO token response model.
6654
+ */
6655
+ export type SsoTokenResponse = {
6656
+ /**
6657
+ * Token
6658
+ *
6659
+ * Temporary SSO token for cross-app authentication
6660
+ */
6661
+ token: string;
6662
+ /**
6663
+ * Expires At
6664
+ *
6665
+ * Token expiration time
6666
+ */
6667
+ expires_at: string;
6668
+ /**
6669
+ * Apps
6670
+ *
6671
+ * Available apps for this user
6672
+ */
6673
+ apps: Array<string>;
6674
+ };
6675
+ /**
6676
+ * ScheduleCreatedResponse
6677
+ */
6678
+ export type ScheduleCreatedResponse = {
6679
+ /**
6680
+ * Structure Id
6681
+ */
6682
+ structure_id: string;
6683
+ /**
6684
+ * Name
6685
+ */
6686
+ name: string;
6687
+ /**
6688
+ * Taxonomy Id
6689
+ */
6690
+ taxonomy_id: string;
6691
+ /**
6692
+ * Total Periods
6693
+ */
6694
+ total_periods: number;
6695
+ /**
6696
+ * Total Facts
6697
+ */
6698
+ total_facts: number;
6699
+ };
6700
+ /**
6701
+ * ScheduleFactResponse
6702
+ */
6703
+ export type ScheduleFactResponse = {
6704
+ /**
6705
+ * Element Id
6706
+ */
6707
+ element_id: string;
6708
+ /**
6709
+ * Element Name
6710
+ */
6711
+ element_name: string;
6712
+ /**
6713
+ * Value
6714
+ */
6715
+ value: number;
6716
+ /**
6717
+ * Period Start
6718
+ */
6719
+ period_start: string;
6720
+ /**
6721
+ * Period End
6722
+ */
6723
+ period_end: string;
6724
+ };
6725
+ /**
6726
+ * ScheduleFactsResponse
6727
+ */
6728
+ export type ScheduleFactsResponse = {
6729
+ /**
6730
+ * Structure Id
6731
+ */
6732
+ structure_id: string;
6733
+ /**
6734
+ * Facts
6735
+ */
6736
+ facts: Array<ScheduleFactResponse>;
6737
+ };
6738
+ /**
6739
+ * ScheduleListResponse
6740
+ */
6741
+ export type ScheduleListResponse = {
6742
+ /**
6743
+ * Schedules
6744
+ */
6745
+ schedules: Array<ScheduleSummaryResponse>;
6746
+ };
6747
+ /**
6748
+ * ScheduleMetadataRequest
6749
+ */
6750
+ export type ScheduleMetadataRequest = {
6751
+ /**
6752
+ * Method
6753
+ *
6754
+ * Calculation method
6755
+ */
6756
+ method?: string;
6757
+ /**
6758
+ * Original Amount
6759
+ *
6760
+ * Cost basis in cents
6761
+ */
6762
+ original_amount?: number;
6763
+ /**
6764
+ * Residual Value
6765
+ *
6766
+ * Salvage value in cents
6377
6767
  */
6378
- session_id: string;
6768
+ residual_value?: number;
6379
6769
  /**
6380
- * Redirect Url
6770
+ * Useful Life Months
6381
6771
  *
6382
- * URL to redirect to for authentication
6772
+ * Useful life in months
6383
6773
  */
6384
- redirect_url: string;
6774
+ useful_life_months?: number;
6385
6775
  /**
6386
- * Expires At
6776
+ * Asset Element Id
6387
6777
  *
6388
- * Session expiration time
6778
+ * BS asset element for net book value
6389
6779
  */
6390
- expires_at: string;
6780
+ asset_element_id?: string | null;
6391
6781
  };
6392
6782
  /**
6393
- * SSOTokenResponse
6394
- *
6395
- * SSO token response model.
6783
+ * ScheduleSummaryResponse
6396
6784
  */
6397
- export type SsoTokenResponse = {
6785
+ export type ScheduleSummaryResponse = {
6398
6786
  /**
6399
- * Token
6400
- *
6401
- * Temporary SSO token for cross-app authentication
6787
+ * Structure Id
6402
6788
  */
6403
- token: string;
6789
+ structure_id: string;
6404
6790
  /**
6405
- * Expires At
6406
- *
6407
- * Token expiration time
6791
+ * Name
6408
6792
  */
6409
- expires_at: string;
6793
+ name: string;
6410
6794
  /**
6411
- * Apps
6412
- *
6413
- * Available apps for this user
6795
+ * Taxonomy Name
6414
6796
  */
6415
- apps: Array<string>;
6797
+ taxonomy_name: string;
6798
+ /**
6799
+ * Entry Template
6800
+ */
6801
+ entry_template?: {
6802
+ [key: string]: unknown;
6803
+ } | null;
6804
+ /**
6805
+ * Schedule Metadata
6806
+ */
6807
+ schedule_metadata?: {
6808
+ [key: string]: unknown;
6809
+ } | null;
6810
+ /**
6811
+ * Total Periods
6812
+ */
6813
+ total_periods: number;
6814
+ /**
6815
+ * Periods With Entries
6816
+ */
6817
+ periods_with_entries: number;
6416
6818
  };
6417
6819
  /**
6418
6820
  * SchemaExportResponse
@@ -6692,6 +7094,12 @@ export type SearchRequest = {
6692
7094
  * Filter filings on or before date (YYYY-MM-DD)
6693
7095
  */
6694
7096
  date_to?: string | null;
7097
+ /**
7098
+ * Semantic
7099
+ *
7100
+ * Enable hybrid semantic search (BM25 + KNN). Default is BM25-only for speed.
7101
+ */
7102
+ semantic?: boolean;
6695
7103
  /**
6696
7104
  * Size
6697
7105
  *
@@ -6960,21 +7368,9 @@ export type StatementResponse = {
6960
7368
  */
6961
7369
  structure_type: string;
6962
7370
  /**
6963
- * Period Start
6964
- */
6965
- period_start: string;
6966
- /**
6967
- * Period End
6968
- */
6969
- period_end: string;
6970
- /**
6971
- * Comparative Period Start
6972
- */
6973
- comparative_period_start?: string | null;
6974
- /**
6975
- * Comparative Period End
7371
+ * Periods
6976
7372
  */
6977
- comparative_period_end?: string | null;
7373
+ periods?: Array<PeriodSpec>;
6978
7374
  /**
6979
7375
  * Rows
6980
7376
  */
@@ -6985,49 +7381,6 @@ export type StatementResponse = {
6985
7381
  */
6986
7382
  unmapped_count?: number;
6987
7383
  };
6988
- /**
6989
- * StorageLimitResponse
6990
- *
6991
- * Storage limit information response.
6992
- */
6993
- export type StorageLimitResponse = {
6994
- /**
6995
- * Graph Id
6996
- */
6997
- graph_id: string;
6998
- /**
6999
- * Current Storage Gb
7000
- */
7001
- current_storage_gb: number;
7002
- /**
7003
- * Effective Limit Gb
7004
- */
7005
- effective_limit_gb: number;
7006
- /**
7007
- * Usage Percentage
7008
- */
7009
- usage_percentage: number;
7010
- /**
7011
- * Within Limit
7012
- */
7013
- within_limit: boolean;
7014
- /**
7015
- * Approaching Limit
7016
- */
7017
- approaching_limit: boolean;
7018
- /**
7019
- * Needs Warning
7020
- */
7021
- needs_warning: boolean;
7022
- /**
7023
- * Has Override
7024
- */
7025
- has_override: boolean;
7026
- /**
7027
- * Recommendations
7028
- */
7029
- recommendations?: Array<string> | null;
7030
- };
7031
7384
  /**
7032
7385
  * StorageLimits
7033
7386
  *
@@ -10473,91 +10826,6 @@ export type CheckCreditBalanceResponses = {
10473
10826
  };
10474
10827
  };
10475
10828
  export type CheckCreditBalanceResponse = CheckCreditBalanceResponses[keyof CheckCreditBalanceResponses];
10476
- export type GetStorageUsageData = {
10477
- body?: never;
10478
- path: {
10479
- /**
10480
- * Graph Id
10481
- *
10482
- * Graph database identifier
10483
- */
10484
- graph_id: string;
10485
- };
10486
- query?: {
10487
- /**
10488
- * Days
10489
- *
10490
- * Number of days of history to return
10491
- */
10492
- days?: number;
10493
- };
10494
- url: '/v1/graphs/{graph_id}/credits/storage/usage';
10495
- };
10496
- export type GetStorageUsageErrors = {
10497
- /**
10498
- * Access denied to graph
10499
- */
10500
- 403: ErrorResponse;
10501
- /**
10502
- * Validation Error
10503
- */
10504
- 422: HttpValidationError;
10505
- /**
10506
- * Failed to retrieve storage usage
10507
- */
10508
- 500: ErrorResponse;
10509
- };
10510
- export type GetStorageUsageError = GetStorageUsageErrors[keyof GetStorageUsageErrors];
10511
- export type GetStorageUsageResponses = {
10512
- /**
10513
- * Response Getstorageusage
10514
- *
10515
- * Storage usage retrieved successfully
10516
- */
10517
- 200: {
10518
- [key: string]: unknown;
10519
- };
10520
- };
10521
- export type GetStorageUsageResponse = GetStorageUsageResponses[keyof GetStorageUsageResponses];
10522
- export type CheckStorageLimitsData = {
10523
- body?: never;
10524
- path: {
10525
- /**
10526
- * Graph Id
10527
- *
10528
- * Graph database identifier
10529
- */
10530
- graph_id: string;
10531
- };
10532
- query?: never;
10533
- url: '/v1/graphs/{graph_id}/credits/storage/limits';
10534
- };
10535
- export type CheckStorageLimitsErrors = {
10536
- /**
10537
- * Access denied to graph
10538
- */
10539
- 403: ErrorResponse;
10540
- /**
10541
- * No credit pool found for graph
10542
- */
10543
- 404: ErrorResponse;
10544
- /**
10545
- * Validation Error
10546
- */
10547
- 422: HttpValidationError;
10548
- /**
10549
- * Failed to retrieve storage limits
10550
- */
10551
- 500: ErrorResponse;
10552
- };
10553
- export type CheckStorageLimitsError = CheckStorageLimitsErrors[keyof CheckStorageLimitsErrors];
10554
- export type CheckStorageLimitsResponses = {
10555
- /**
10556
- * Storage limit information retrieved successfully
10557
- */
10558
- 200: StorageLimitResponse;
10559
- };
10560
- export type CheckStorageLimitsResponse = CheckStorageLimitsResponses[keyof CheckStorageLimitsResponses];
10561
10829
  export type GetDatabaseHealthData = {
10562
10830
  body?: never;
10563
10831
  path: {
@@ -12655,7 +12923,7 @@ export type CreateMappingAssociationResponses = {
12655
12923
  /**
12656
12924
  * Successful Response
12657
12925
  */
12658
- 201: ElementAssociationResponse;
12926
+ 201: AssociationResponse;
12659
12927
  };
12660
12928
  export type CreateMappingAssociationResponse = CreateMappingAssociationResponses[keyof CreateMappingAssociationResponses];
12661
12929
  export type DeleteMappingAssociationData = {
@@ -13144,6 +13412,169 @@ export type ShareReportResponses = {
13144
13412
  200: ShareReportResponse;
13145
13413
  };
13146
13414
  export type ShareReportResponse2 = ShareReportResponses[keyof ShareReportResponses];
13415
+ export type ListSchedulesData = {
13416
+ body?: never;
13417
+ path: {
13418
+ /**
13419
+ * Graph Id
13420
+ */
13421
+ graph_id: string;
13422
+ };
13423
+ query?: never;
13424
+ url: '/v1/ledger/{graph_id}/schedules';
13425
+ };
13426
+ export type ListSchedulesErrors = {
13427
+ /**
13428
+ * Validation Error
13429
+ */
13430
+ 422: HttpValidationError;
13431
+ };
13432
+ export type ListSchedulesError = ListSchedulesErrors[keyof ListSchedulesErrors];
13433
+ export type ListSchedulesResponses = {
13434
+ /**
13435
+ * Successful Response
13436
+ */
13437
+ 200: ScheduleListResponse;
13438
+ };
13439
+ export type ListSchedulesResponse = ListSchedulesResponses[keyof ListSchedulesResponses];
13440
+ export type CreateScheduleData = {
13441
+ body: CreateScheduleRequest;
13442
+ path: {
13443
+ /**
13444
+ * Graph Id
13445
+ */
13446
+ graph_id: string;
13447
+ };
13448
+ query?: never;
13449
+ url: '/v1/ledger/{graph_id}/schedules';
13450
+ };
13451
+ export type CreateScheduleErrors = {
13452
+ /**
13453
+ * Validation Error
13454
+ */
13455
+ 422: HttpValidationError;
13456
+ };
13457
+ export type CreateScheduleError = CreateScheduleErrors[keyof CreateScheduleErrors];
13458
+ export type CreateScheduleResponses = {
13459
+ /**
13460
+ * Successful Response
13461
+ */
13462
+ 201: ScheduleCreatedResponse;
13463
+ };
13464
+ export type CreateScheduleResponse = CreateScheduleResponses[keyof CreateScheduleResponses];
13465
+ export type GetScheduleFactsData = {
13466
+ body?: never;
13467
+ path: {
13468
+ /**
13469
+ * Graph Id
13470
+ */
13471
+ graph_id: string;
13472
+ /**
13473
+ * Structure Id
13474
+ *
13475
+ * Schedule structure ID
13476
+ */
13477
+ structure_id: string;
13478
+ };
13479
+ query?: {
13480
+ /**
13481
+ * Period Start
13482
+ *
13483
+ * Filter: period start
13484
+ */
13485
+ period_start?: string | null;
13486
+ /**
13487
+ * Period End
13488
+ *
13489
+ * Filter: period end
13490
+ */
13491
+ period_end?: string | null;
13492
+ };
13493
+ url: '/v1/ledger/{graph_id}/schedules/{structure_id}/facts';
13494
+ };
13495
+ export type GetScheduleFactsErrors = {
13496
+ /**
13497
+ * Validation Error
13498
+ */
13499
+ 422: HttpValidationError;
13500
+ };
13501
+ export type GetScheduleFactsError = GetScheduleFactsErrors[keyof GetScheduleFactsErrors];
13502
+ export type GetScheduleFactsResponses = {
13503
+ /**
13504
+ * Successful Response
13505
+ */
13506
+ 200: ScheduleFactsResponse;
13507
+ };
13508
+ export type GetScheduleFactsResponse = GetScheduleFactsResponses[keyof GetScheduleFactsResponses];
13509
+ export type GetPeriodCloseStatusData = {
13510
+ body?: never;
13511
+ path: {
13512
+ /**
13513
+ * Graph Id
13514
+ */
13515
+ graph_id: string;
13516
+ };
13517
+ query: {
13518
+ /**
13519
+ * Period Start
13520
+ *
13521
+ * Fiscal period start
13522
+ */
13523
+ period_start: string;
13524
+ /**
13525
+ * Period End
13526
+ *
13527
+ * Fiscal period end
13528
+ */
13529
+ period_end: string;
13530
+ };
13531
+ url: '/v1/ledger/{graph_id}/schedules/close-status';
13532
+ };
13533
+ export type GetPeriodCloseStatusErrors = {
13534
+ /**
13535
+ * Validation Error
13536
+ */
13537
+ 422: HttpValidationError;
13538
+ };
13539
+ export type GetPeriodCloseStatusError = GetPeriodCloseStatusErrors[keyof GetPeriodCloseStatusErrors];
13540
+ export type GetPeriodCloseStatusResponses = {
13541
+ /**
13542
+ * Successful Response
13543
+ */
13544
+ 200: PeriodCloseStatusResponse;
13545
+ };
13546
+ export type GetPeriodCloseStatusResponse = GetPeriodCloseStatusResponses[keyof GetPeriodCloseStatusResponses];
13547
+ export type CreateClosingEntryData = {
13548
+ body: CreateClosingEntryRequest;
13549
+ path: {
13550
+ /**
13551
+ * Graph Id
13552
+ */
13553
+ graph_id: string;
13554
+ /**
13555
+ * Structure Id
13556
+ *
13557
+ * Schedule structure ID
13558
+ */
13559
+ structure_id: string;
13560
+ };
13561
+ query?: never;
13562
+ url: '/v1/ledger/{graph_id}/schedules/{structure_id}/closing-entry';
13563
+ };
13564
+ export type CreateClosingEntryErrors = {
13565
+ /**
13566
+ * Validation Error
13567
+ */
13568
+ 422: HttpValidationError;
13569
+ };
13570
+ export type CreateClosingEntryError = CreateClosingEntryErrors[keyof CreateClosingEntryErrors];
13571
+ export type CreateClosingEntryResponses = {
13572
+ /**
13573
+ * Successful Response
13574
+ */
13575
+ 201: ClosingEntryResponse;
13576
+ };
13577
+ export type CreateClosingEntryResponse = CreateClosingEntryResponses[keyof CreateClosingEntryResponses];
13147
13578
  export type ListPublishListsData = {
13148
13579
  body?: never;
13149
13580
  path: {