@robosystems/client 0.2.42 → 0.2.44

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 +11 -4
  18. package/sdk/index.ts +2 -2
  19. package/sdk/sdk.gen.d.ts +51 -9
  20. package/sdk/sdk.gen.js +105 -16
  21. package/sdk/sdk.gen.ts +101 -12
  22. package/sdk/types.gen.d.ts +812 -146
  23. package/sdk/types.gen.ts +844 -128
  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 +51 -9
  38. package/sdk.gen.js +105 -16
  39. package/sdk.gen.ts +101 -12
  40. package/types.gen.d.ts +812 -146
  41. package/types.gen.ts +844 -128
  42. package/extensions/DocumentClient.d.ts +0 -77
  43. package/extensions/DocumentClient.js +0 -136
  44. package/extensions/DocumentClient.ts +0 -232
  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 -77
  59. package/sdk-extensions/DocumentClient.js +0 -136
  60. package/sdk-extensions/DocumentClient.ts +0 -232
  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
  *
@@ -1477,6 +1571,35 @@ export type CreateCheckoutRequest = {
1477
1571
  [key: string]: unknown;
1478
1572
  };
1479
1573
  };
1574
+ /**
1575
+ * CreateClosingEntryRequest
1576
+ */
1577
+ export type CreateClosingEntryRequest = {
1578
+ /**
1579
+ * Posting Date
1580
+ *
1581
+ * Posting date for the entry
1582
+ */
1583
+ posting_date: string;
1584
+ /**
1585
+ * Period Start
1586
+ *
1587
+ * Period start
1588
+ */
1589
+ period_start: string;
1590
+ /**
1591
+ * Period End
1592
+ *
1593
+ * Period end
1594
+ */
1595
+ period_end: string;
1596
+ /**
1597
+ * Memo
1598
+ *
1599
+ * Override memo
1600
+ */
1601
+ memo?: string | null;
1602
+ };
1480
1603
  /**
1481
1604
  * CreateConnectionRequest
1482
1605
  *
@@ -1676,6 +1799,12 @@ export type CreateReportRequest = {
1676
1799
  * Include prior period comparison
1677
1800
  */
1678
1801
  comparative?: boolean;
1802
+ /**
1803
+ * Periods
1804
+ *
1805
+ * Multi-period columns. Overrides period_start/period_end/comparative when set.
1806
+ */
1807
+ periods?: Array<PeriodSpec> | null;
1679
1808
  };
1680
1809
  /**
1681
1810
  * CreateRepositorySubscriptionRequest
@@ -1690,6 +1819,49 @@ export type CreateRepositorySubscriptionRequest = {
1690
1819
  */
1691
1820
  plan_name: string;
1692
1821
  };
1822
+ /**
1823
+ * CreateScheduleRequest
1824
+ */
1825
+ export type CreateScheduleRequest = {
1826
+ /**
1827
+ * Name
1828
+ *
1829
+ * Schedule name
1830
+ */
1831
+ name: string;
1832
+ /**
1833
+ * Taxonomy Id
1834
+ *
1835
+ * Taxonomy ID (auto-creates if omitted)
1836
+ */
1837
+ taxonomy_id?: string | null;
1838
+ /**
1839
+ * Element Ids
1840
+ *
1841
+ * Element IDs to include
1842
+ */
1843
+ element_ids: Array<string>;
1844
+ /**
1845
+ * Period Start
1846
+ *
1847
+ * First period start
1848
+ */
1849
+ period_start: string;
1850
+ /**
1851
+ * Period End
1852
+ *
1853
+ * Last period end
1854
+ */
1855
+ period_end: string;
1856
+ /**
1857
+ * Monthly Amount
1858
+ *
1859
+ * Monthly amount in cents
1860
+ */
1861
+ monthly_amount: number;
1862
+ entry_template: EntryTemplateRequest;
1863
+ schedule_metadata?: ScheduleMetadataRequest | null;
1864
+ };
1693
1865
  /**
1694
1866
  * CreateSecurityRequest
1695
1867
  */
@@ -1744,7 +1916,7 @@ export type CreateStructureRequest = {
1744
1916
  /**
1745
1917
  * Structure Type
1746
1918
  */
1747
- structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'custom';
1919
+ structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'custom';
1748
1920
  /**
1749
1921
  * Taxonomy Id
1750
1922
  */
@@ -1814,7 +1986,7 @@ export type CreateTaxonomyRequest = {
1814
1986
  /**
1815
1987
  * Taxonomy Type
1816
1988
  */
1817
- taxonomy_type: 'chart_of_accounts' | 'reporting' | 'mapping';
1989
+ taxonomy_type: 'chart_of_accounts' | 'reporting' | 'mapping' | 'schedule';
1818
1990
  /**
1819
1991
  * Version
1820
1992
  */
@@ -2396,12 +2568,75 @@ export type DetailedTransactionsResponse = {
2396
2568
  [key: string]: string;
2397
2569
  };
2398
2570
  };
2571
+ /**
2572
+ * DocumentDetailResponse
2573
+ *
2574
+ * Full document detail with raw content.
2575
+ */
2576
+ export type DocumentDetailResponse = {
2577
+ /**
2578
+ * Id
2579
+ */
2580
+ id: string;
2581
+ /**
2582
+ * Graph Id
2583
+ */
2584
+ graph_id: string;
2585
+ /**
2586
+ * User Id
2587
+ */
2588
+ user_id: string;
2589
+ /**
2590
+ * Title
2591
+ */
2592
+ title: string;
2593
+ /**
2594
+ * Content
2595
+ */
2596
+ content: string;
2597
+ /**
2598
+ * Tags
2599
+ */
2600
+ tags?: Array<string> | null;
2601
+ /**
2602
+ * Folder
2603
+ */
2604
+ folder?: string | null;
2605
+ /**
2606
+ * External Id
2607
+ */
2608
+ external_id?: string | null;
2609
+ /**
2610
+ * Source Type
2611
+ */
2612
+ source_type: string;
2613
+ /**
2614
+ * Source Provider
2615
+ */
2616
+ source_provider?: string | null;
2617
+ /**
2618
+ * Sections Indexed
2619
+ */
2620
+ sections_indexed: number;
2621
+ /**
2622
+ * Created At
2623
+ */
2624
+ created_at: string;
2625
+ /**
2626
+ * Updated At
2627
+ */
2628
+ updated_at: string;
2629
+ };
2399
2630
  /**
2400
2631
  * DocumentListItem
2401
2632
  *
2402
2633
  * A document in the document list.
2403
2634
  */
2404
2635
  export type DocumentListItem = {
2636
+ /**
2637
+ * Id
2638
+ */
2639
+ id: string;
2405
2640
  /**
2406
2641
  * Document Title
2407
2642
  */
@@ -2423,9 +2658,13 @@ export type DocumentListItem = {
2423
2658
  */
2424
2659
  tags?: Array<string> | null;
2425
2660
  /**
2426
- * Last Indexed
2661
+ * Created At
2662
+ */
2663
+ created_at: string;
2664
+ /**
2665
+ * Updated At
2427
2666
  */
2428
- last_indexed?: string | null;
2667
+ updated_at: string;
2429
2668
  };
2430
2669
  /**
2431
2670
  * DocumentListResponse
@@ -2537,6 +2776,29 @@ export type DocumentSection = {
2537
2776
  */
2538
2777
  folder?: string | null;
2539
2778
  };
2779
+ /**
2780
+ * DocumentUpdateRequest
2781
+ *
2782
+ * Update a document's metadata and/or content.
2783
+ */
2784
+ export type DocumentUpdateRequest = {
2785
+ /**
2786
+ * Title
2787
+ */
2788
+ title?: string | null;
2789
+ /**
2790
+ * Content
2791
+ */
2792
+ content?: string | null;
2793
+ /**
2794
+ * Tags
2795
+ */
2796
+ tags?: Array<string> | null;
2797
+ /**
2798
+ * Folder
2799
+ */
2800
+ folder?: string | null;
2801
+ };
2540
2802
  /**
2541
2803
  * DocumentUploadRequest
2542
2804
  *
@@ -2580,6 +2842,10 @@ export type DocumentUploadRequest = {
2580
2842
  * Response from document upload.
2581
2843
  */
2582
2844
  export type DocumentUploadResponse = {
2845
+ /**
2846
+ * Id
2847
+ */
2848
+ id: string;
2583
2849
  /**
2584
2850
  * Document Id
2585
2851
  */
@@ -2628,67 +2894,6 @@ export type DownloadQuota = {
2628
2894
  */
2629
2895
  resets_at: string;
2630
2896
  };
2631
- /**
2632
- * ElementAssociationResponse
2633
- */
2634
- export type ElementAssociationResponse = {
2635
- /**
2636
- * Id
2637
- */
2638
- id: string;
2639
- /**
2640
- * Structure Id
2641
- */
2642
- structure_id: string;
2643
- /**
2644
- * From Element Id
2645
- */
2646
- from_element_id: string;
2647
- /**
2648
- * From Element Name
2649
- */
2650
- from_element_name?: string | null;
2651
- /**
2652
- * From Element Qname
2653
- */
2654
- from_element_qname?: string | null;
2655
- /**
2656
- * To Element Id
2657
- */
2658
- to_element_id: string;
2659
- /**
2660
- * To Element Name
2661
- */
2662
- to_element_name?: string | null;
2663
- /**
2664
- * To Element Qname
2665
- */
2666
- to_element_qname?: string | null;
2667
- /**
2668
- * Association Type
2669
- */
2670
- association_type: string;
2671
- /**
2672
- * Order Value
2673
- */
2674
- order_value?: number | null;
2675
- /**
2676
- * Weight
2677
- */
2678
- weight?: number | null;
2679
- /**
2680
- * Confidence
2681
- */
2682
- confidence?: number | null;
2683
- /**
2684
- * Suggested By
2685
- */
2686
- suggested_by?: string | null;
2687
- /**
2688
- * Approved By
2689
- */
2690
- approved_by?: string | null;
2691
- };
2692
2897
  /**
2693
2898
  * ElementListResponse
2694
2899
  */
@@ -2861,6 +3066,35 @@ export type EnhancedFileStatusLayers = {
2861
3066
  */
2862
3067
  graph: FileLayerStatus;
2863
3068
  };
3069
+ /**
3070
+ * EntryTemplateRequest
3071
+ */
3072
+ export type EntryTemplateRequest = {
3073
+ /**
3074
+ * Debit Element Id
3075
+ *
3076
+ * Element to debit (e.g., Depreciation Expense)
3077
+ */
3078
+ debit_element_id: string;
3079
+ /**
3080
+ * Credit Element Id
3081
+ *
3082
+ * Element to credit (e.g., Accumulated Depreciation)
3083
+ */
3084
+ credit_element_id: string;
3085
+ /**
3086
+ * Entry Type
3087
+ *
3088
+ * Entry type for generated entries
3089
+ */
3090
+ entry_type?: string;
3091
+ /**
3092
+ * Memo Template
3093
+ *
3094
+ * Memo template ({structure_name} is replaced)
3095
+ */
3096
+ memo_template?: string;
3097
+ };
2864
3098
  /**
2865
3099
  * ErrorResponse
2866
3100
  *
@@ -2916,13 +3150,9 @@ export type FactRowResponse = {
2916
3150
  */
2917
3151
  classification: string;
2918
3152
  /**
2919
- * Current Value
2920
- */
2921
- current_value: number;
2922
- /**
2923
- * Prior Value
3153
+ * Values
2924
3154
  */
2925
- prior_value?: number | null;
3155
+ values?: Array<number | null>;
2926
3156
  /**
2927
3157
  * Is Subtotal
2928
3158
  */
@@ -4849,7 +5079,7 @@ export type MappingDetailResponse = {
4849
5079
  /**
4850
5080
  * Associations
4851
5081
  */
4852
- associations: Array<ElementAssociationResponse>;
5082
+ associations: Array<AssociationResponse>;
4853
5083
  /**
4854
5084
  * Total Associations
4855
5085
  */
@@ -5625,6 +5855,79 @@ export type PerformanceInsights = {
5625
5855
  */
5626
5856
  performance_score: number;
5627
5857
  };
5858
+ /**
5859
+ * PeriodCloseItemResponse
5860
+ */
5861
+ export type PeriodCloseItemResponse = {
5862
+ /**
5863
+ * Structure Id
5864
+ */
5865
+ structure_id: string;
5866
+ /**
5867
+ * Structure Name
5868
+ */
5869
+ structure_name: string;
5870
+ /**
5871
+ * Amount
5872
+ */
5873
+ amount: number;
5874
+ /**
5875
+ * Status
5876
+ */
5877
+ status: string;
5878
+ /**
5879
+ * Entry Id
5880
+ */
5881
+ entry_id?: string | null;
5882
+ };
5883
+ /**
5884
+ * PeriodCloseStatusResponse
5885
+ */
5886
+ export type PeriodCloseStatusResponse = {
5887
+ /**
5888
+ * Fiscal Period Start
5889
+ */
5890
+ fiscal_period_start: string;
5891
+ /**
5892
+ * Fiscal Period End
5893
+ */
5894
+ fiscal_period_end: string;
5895
+ /**
5896
+ * Period Status
5897
+ */
5898
+ period_status: string;
5899
+ /**
5900
+ * Schedules
5901
+ */
5902
+ schedules: Array<PeriodCloseItemResponse>;
5903
+ /**
5904
+ * Total Draft
5905
+ */
5906
+ total_draft: number;
5907
+ /**
5908
+ * Total Posted
5909
+ */
5910
+ total_posted: number;
5911
+ };
5912
+ /**
5913
+ * PeriodSpec
5914
+ *
5915
+ * A reporting period column.
5916
+ */
5917
+ export type PeriodSpec = {
5918
+ /**
5919
+ * Start
5920
+ */
5921
+ start: string;
5922
+ /**
5923
+ * End
5924
+ */
5925
+ end: string;
5926
+ /**
5927
+ * Label
5928
+ */
5929
+ label: string;
5930
+ };
5628
5931
  /**
5629
5932
  * PortalSessionResponse
5630
5933
  *
@@ -5975,13 +6278,19 @@ export type RegenerateReportRequest = {
5975
6278
  *
5976
6279
  * New period start date
5977
6280
  */
5978
- period_start: string;
6281
+ period_start?: string | null;
5979
6282
  /**
5980
6283
  * Period End
5981
6284
  *
5982
6285
  * New period end date
5983
6286
  */
5984
- period_end: string;
6287
+ period_end?: string | null;
6288
+ /**
6289
+ * Periods
6290
+ *
6291
+ * New period columns. Overrides period_start/period_end.
6292
+ */
6293
+ periods?: Array<PeriodSpec> | null;
5985
6294
  };
5986
6295
  /**
5987
6296
  * RegisterRequest
@@ -6061,6 +6370,10 @@ export type ReportResponse = {
6061
6370
  * Comparative
6062
6371
  */
6063
6372
  comparative: boolean;
6373
+ /**
6374
+ * Periods
6375
+ */
6376
+ periods?: Array<PeriodSpec> | null;
6064
6377
  /**
6065
6378
  * Mapping Id
6066
6379
  */
@@ -6250,75 +6563,219 @@ export type SsoCompleteRequest = {
6250
6563
  *
6251
6564
  * SSO token exchange request model.
6252
6565
  */
6253
- export type SsoExchangeRequest = {
6566
+ export type SsoExchangeRequest = {
6567
+ /**
6568
+ * Token
6569
+ *
6570
+ * Temporary SSO token
6571
+ */
6572
+ token: string;
6573
+ /**
6574
+ * Target App
6575
+ *
6576
+ * Target application identifier
6577
+ */
6578
+ target_app: string;
6579
+ /**
6580
+ * Return Url
6581
+ *
6582
+ * Optional return URL after authentication
6583
+ */
6584
+ return_url?: string | null;
6585
+ };
6586
+ /**
6587
+ * SSOExchangeResponse
6588
+ *
6589
+ * SSO token exchange response model.
6590
+ */
6591
+ export type SsoExchangeResponse = {
6592
+ /**
6593
+ * Session Id
6594
+ *
6595
+ * Temporary session ID for secure handoff
6596
+ */
6597
+ session_id: string;
6598
+ /**
6599
+ * Redirect Url
6600
+ *
6601
+ * URL to redirect to for authentication
6602
+ */
6603
+ redirect_url: string;
6604
+ /**
6605
+ * Expires At
6606
+ *
6607
+ * Session expiration time
6608
+ */
6609
+ expires_at: string;
6610
+ };
6611
+ /**
6612
+ * SSOTokenResponse
6613
+ *
6614
+ * SSO token response model.
6615
+ */
6616
+ export type SsoTokenResponse = {
6617
+ /**
6618
+ * Token
6619
+ *
6620
+ * Temporary SSO token for cross-app authentication
6621
+ */
6622
+ token: string;
6623
+ /**
6624
+ * Expires At
6625
+ *
6626
+ * Token expiration time
6627
+ */
6628
+ expires_at: string;
6629
+ /**
6630
+ * Apps
6631
+ *
6632
+ * Available apps for this user
6633
+ */
6634
+ apps: Array<string>;
6635
+ };
6636
+ /**
6637
+ * ScheduleCreatedResponse
6638
+ */
6639
+ export type ScheduleCreatedResponse = {
6640
+ /**
6641
+ * Structure Id
6642
+ */
6643
+ structure_id: string;
6644
+ /**
6645
+ * Name
6646
+ */
6647
+ name: string;
6648
+ /**
6649
+ * Taxonomy Id
6650
+ */
6651
+ taxonomy_id: string;
6652
+ /**
6653
+ * Total Periods
6654
+ */
6655
+ total_periods: number;
6656
+ /**
6657
+ * Total Facts
6658
+ */
6659
+ total_facts: number;
6660
+ };
6661
+ /**
6662
+ * ScheduleFactResponse
6663
+ */
6664
+ export type ScheduleFactResponse = {
6665
+ /**
6666
+ * Element Id
6667
+ */
6668
+ element_id: string;
6669
+ /**
6670
+ * Element Name
6671
+ */
6672
+ element_name: string;
6673
+ /**
6674
+ * Value
6675
+ */
6676
+ value: number;
6677
+ /**
6678
+ * Period Start
6679
+ */
6680
+ period_start: string;
6681
+ /**
6682
+ * Period End
6683
+ */
6684
+ period_end: string;
6685
+ };
6686
+ /**
6687
+ * ScheduleFactsResponse
6688
+ */
6689
+ export type ScheduleFactsResponse = {
6690
+ /**
6691
+ * Structure Id
6692
+ */
6693
+ structure_id: string;
6694
+ /**
6695
+ * Facts
6696
+ */
6697
+ facts: Array<ScheduleFactResponse>;
6698
+ };
6699
+ /**
6700
+ * ScheduleListResponse
6701
+ */
6702
+ export type ScheduleListResponse = {
6254
6703
  /**
6255
- * Token
6256
- *
6257
- * Temporary SSO token
6704
+ * Schedules
6258
6705
  */
6259
- token: string;
6706
+ schedules: Array<ScheduleSummaryResponse>;
6707
+ };
6708
+ /**
6709
+ * ScheduleMetadataRequest
6710
+ */
6711
+ export type ScheduleMetadataRequest = {
6260
6712
  /**
6261
- * Target App
6713
+ * Method
6262
6714
  *
6263
- * Target application identifier
6715
+ * Calculation method
6264
6716
  */
6265
- target_app: string;
6717
+ method?: string;
6266
6718
  /**
6267
- * Return Url
6719
+ * Original Amount
6268
6720
  *
6269
- * Optional return URL after authentication
6721
+ * Cost basis in cents
6270
6722
  */
6271
- return_url?: string | null;
6272
- };
6273
- /**
6274
- * SSOExchangeResponse
6275
- *
6276
- * SSO token exchange response model.
6277
- */
6278
- export type SsoExchangeResponse = {
6723
+ original_amount?: number;
6279
6724
  /**
6280
- * Session Id
6725
+ * Residual Value
6281
6726
  *
6282
- * Temporary session ID for secure handoff
6727
+ * Salvage value in cents
6283
6728
  */
6284
- session_id: string;
6729
+ residual_value?: number;
6285
6730
  /**
6286
- * Redirect Url
6731
+ * Useful Life Months
6287
6732
  *
6288
- * URL to redirect to for authentication
6733
+ * Useful life in months
6289
6734
  */
6290
- redirect_url: string;
6735
+ useful_life_months?: number;
6291
6736
  /**
6292
- * Expires At
6737
+ * Asset Element Id
6293
6738
  *
6294
- * Session expiration time
6739
+ * BS asset element for net book value
6295
6740
  */
6296
- expires_at: string;
6741
+ asset_element_id?: string | null;
6297
6742
  };
6298
6743
  /**
6299
- * SSOTokenResponse
6300
- *
6301
- * SSO token response model.
6744
+ * ScheduleSummaryResponse
6302
6745
  */
6303
- export type SsoTokenResponse = {
6746
+ export type ScheduleSummaryResponse = {
6304
6747
  /**
6305
- * Token
6306
- *
6307
- * Temporary SSO token for cross-app authentication
6748
+ * Structure Id
6308
6749
  */
6309
- token: string;
6750
+ structure_id: string;
6310
6751
  /**
6311
- * Expires At
6312
- *
6313
- * Token expiration time
6752
+ * Name
6314
6753
  */
6315
- expires_at: string;
6754
+ name: string;
6316
6755
  /**
6317
- * Apps
6318
- *
6319
- * Available apps for this user
6756
+ * Taxonomy Name
6320
6757
  */
6321
- apps: Array<string>;
6758
+ taxonomy_name: string;
6759
+ /**
6760
+ * Entry Template
6761
+ */
6762
+ entry_template?: {
6763
+ [key: string]: unknown;
6764
+ } | null;
6765
+ /**
6766
+ * Schedule Metadata
6767
+ */
6768
+ schedule_metadata?: {
6769
+ [key: string]: unknown;
6770
+ } | null;
6771
+ /**
6772
+ * Total Periods
6773
+ */
6774
+ total_periods: number;
6775
+ /**
6776
+ * Periods With Entries
6777
+ */
6778
+ periods_with_entries: number;
6322
6779
  };
6323
6780
  /**
6324
6781
  * SchemaExportResponse
@@ -6866,21 +7323,9 @@ export type StatementResponse = {
6866
7323
  */
6867
7324
  structure_type: string;
6868
7325
  /**
6869
- * Period Start
6870
- */
6871
- period_start: string;
6872
- /**
6873
- * Period End
6874
- */
6875
- period_end: string;
6876
- /**
6877
- * Comparative Period Start
6878
- */
6879
- comparative_period_start?: string | null;
6880
- /**
6881
- * Comparative Period End
7326
+ * Periods
6882
7327
  */
6883
- comparative_period_end?: string | null;
7328
+ periods?: Array<PeriodSpec>;
6884
7329
  /**
6885
7330
  * Rows
6886
7331
  */
@@ -11098,32 +11543,36 @@ export type UploadDocumentResponses = {
11098
11543
  200: DocumentUploadResponse;
11099
11544
  };
11100
11545
  export type UploadDocumentResponse = UploadDocumentResponses[keyof UploadDocumentResponses];
11101
- export type UploadDocumentsBulkData = {
11102
- body: BulkDocumentUploadRequest;
11546
+ export type DeleteDocumentData = {
11547
+ body?: never;
11103
11548
  path: {
11104
11549
  /**
11105
11550
  * Graph Id
11106
11551
  */
11107
11552
  graph_id: string;
11553
+ /**
11554
+ * Document Id
11555
+ */
11556
+ document_id: string;
11108
11557
  };
11109
11558
  query?: never;
11110
- url: '/v1/graphs/{graph_id}/documents/bulk';
11559
+ url: '/v1/graphs/{graph_id}/documents/{document_id}';
11111
11560
  };
11112
- export type UploadDocumentsBulkErrors = {
11561
+ export type DeleteDocumentErrors = {
11113
11562
  /**
11114
11563
  * Validation Error
11115
11564
  */
11116
11565
  422: HttpValidationError;
11117
11566
  };
11118
- export type UploadDocumentsBulkError = UploadDocumentsBulkErrors[keyof UploadDocumentsBulkErrors];
11119
- export type UploadDocumentsBulkResponses = {
11567
+ export type DeleteDocumentError = DeleteDocumentErrors[keyof DeleteDocumentErrors];
11568
+ export type DeleteDocumentResponses = {
11120
11569
  /**
11121
11570
  * Successful Response
11122
11571
  */
11123
- 200: BulkDocumentUploadResponse;
11572
+ 204: void;
11124
11573
  };
11125
- export type UploadDocumentsBulkResponse = UploadDocumentsBulkResponses[keyof UploadDocumentsBulkResponses];
11126
- export type DeleteDocumentData = {
11574
+ export type DeleteDocumentResponse = DeleteDocumentResponses[keyof DeleteDocumentResponses];
11575
+ export type GetDocumentData = {
11127
11576
  body?: never;
11128
11577
  path: {
11129
11578
  /**
@@ -11138,20 +11587,74 @@ export type DeleteDocumentData = {
11138
11587
  query?: never;
11139
11588
  url: '/v1/graphs/{graph_id}/documents/{document_id}';
11140
11589
  };
11141
- export type DeleteDocumentErrors = {
11590
+ export type GetDocumentErrors = {
11142
11591
  /**
11143
11592
  * Validation Error
11144
11593
  */
11145
11594
  422: HttpValidationError;
11146
11595
  };
11147
- export type DeleteDocumentError = DeleteDocumentErrors[keyof DeleteDocumentErrors];
11148
- export type DeleteDocumentResponses = {
11596
+ export type GetDocumentError = GetDocumentErrors[keyof GetDocumentErrors];
11597
+ export type GetDocumentResponses = {
11149
11598
  /**
11150
11599
  * Successful Response
11151
11600
  */
11152
- 204: void;
11601
+ 200: DocumentDetailResponse;
11153
11602
  };
11154
- export type DeleteDocumentResponse = DeleteDocumentResponses[keyof DeleteDocumentResponses];
11603
+ export type GetDocumentResponse = GetDocumentResponses[keyof GetDocumentResponses];
11604
+ export type UpdateDocumentData = {
11605
+ body: DocumentUpdateRequest;
11606
+ path: {
11607
+ /**
11608
+ * Graph Id
11609
+ */
11610
+ graph_id: string;
11611
+ /**
11612
+ * Document Id
11613
+ */
11614
+ document_id: string;
11615
+ };
11616
+ query?: never;
11617
+ url: '/v1/graphs/{graph_id}/documents/{document_id}';
11618
+ };
11619
+ export type UpdateDocumentErrors = {
11620
+ /**
11621
+ * Validation Error
11622
+ */
11623
+ 422: HttpValidationError;
11624
+ };
11625
+ export type UpdateDocumentError = UpdateDocumentErrors[keyof UpdateDocumentErrors];
11626
+ export type UpdateDocumentResponses = {
11627
+ /**
11628
+ * Successful Response
11629
+ */
11630
+ 200: DocumentUploadResponse;
11631
+ };
11632
+ export type UpdateDocumentResponse = UpdateDocumentResponses[keyof UpdateDocumentResponses];
11633
+ export type UploadDocumentsBulkData = {
11634
+ body: BulkDocumentUploadRequest;
11635
+ path: {
11636
+ /**
11637
+ * Graph Id
11638
+ */
11639
+ graph_id: string;
11640
+ };
11641
+ query?: never;
11642
+ url: '/v1/graphs/{graph_id}/documents/bulk';
11643
+ };
11644
+ export type UploadDocumentsBulkErrors = {
11645
+ /**
11646
+ * Validation Error
11647
+ */
11648
+ 422: HttpValidationError;
11649
+ };
11650
+ export type UploadDocumentsBulkError = UploadDocumentsBulkErrors[keyof UploadDocumentsBulkErrors];
11651
+ export type UploadDocumentsBulkResponses = {
11652
+ /**
11653
+ * Successful Response
11654
+ */
11655
+ 200: BulkDocumentUploadResponse;
11656
+ };
11657
+ export type UploadDocumentsBulkResponse = UploadDocumentsBulkResponses[keyof UploadDocumentsBulkResponses];
11155
11658
  export type GetMaterializationStatusData = {
11156
11659
  body?: never;
11157
11660
  path: {
@@ -12503,7 +13006,7 @@ export type CreateMappingAssociationResponses = {
12503
13006
  /**
12504
13007
  * Successful Response
12505
13008
  */
12506
- 201: ElementAssociationResponse;
13009
+ 201: AssociationResponse;
12507
13010
  };
12508
13011
  export type CreateMappingAssociationResponse = CreateMappingAssociationResponses[keyof CreateMappingAssociationResponses];
12509
13012
  export type DeleteMappingAssociationData = {
@@ -12992,6 +13495,169 @@ export type ShareReportResponses = {
12992
13495
  200: ShareReportResponse;
12993
13496
  };
12994
13497
  export type ShareReportResponse2 = ShareReportResponses[keyof ShareReportResponses];
13498
+ export type ListSchedulesData = {
13499
+ body?: never;
13500
+ path: {
13501
+ /**
13502
+ * Graph Id
13503
+ */
13504
+ graph_id: string;
13505
+ };
13506
+ query?: never;
13507
+ url: '/v1/ledger/{graph_id}/schedules';
13508
+ };
13509
+ export type ListSchedulesErrors = {
13510
+ /**
13511
+ * Validation Error
13512
+ */
13513
+ 422: HttpValidationError;
13514
+ };
13515
+ export type ListSchedulesError = ListSchedulesErrors[keyof ListSchedulesErrors];
13516
+ export type ListSchedulesResponses = {
13517
+ /**
13518
+ * Successful Response
13519
+ */
13520
+ 200: ScheduleListResponse;
13521
+ };
13522
+ export type ListSchedulesResponse = ListSchedulesResponses[keyof ListSchedulesResponses];
13523
+ export type CreateScheduleData = {
13524
+ body: CreateScheduleRequest;
13525
+ path: {
13526
+ /**
13527
+ * Graph Id
13528
+ */
13529
+ graph_id: string;
13530
+ };
13531
+ query?: never;
13532
+ url: '/v1/ledger/{graph_id}/schedules';
13533
+ };
13534
+ export type CreateScheduleErrors = {
13535
+ /**
13536
+ * Validation Error
13537
+ */
13538
+ 422: HttpValidationError;
13539
+ };
13540
+ export type CreateScheduleError = CreateScheduleErrors[keyof CreateScheduleErrors];
13541
+ export type CreateScheduleResponses = {
13542
+ /**
13543
+ * Successful Response
13544
+ */
13545
+ 201: ScheduleCreatedResponse;
13546
+ };
13547
+ export type CreateScheduleResponse = CreateScheduleResponses[keyof CreateScheduleResponses];
13548
+ export type GetScheduleFactsData = {
13549
+ body?: never;
13550
+ path: {
13551
+ /**
13552
+ * Graph Id
13553
+ */
13554
+ graph_id: string;
13555
+ /**
13556
+ * Structure Id
13557
+ *
13558
+ * Schedule structure ID
13559
+ */
13560
+ structure_id: string;
13561
+ };
13562
+ query?: {
13563
+ /**
13564
+ * Period Start
13565
+ *
13566
+ * Filter: period start
13567
+ */
13568
+ period_start?: string | null;
13569
+ /**
13570
+ * Period End
13571
+ *
13572
+ * Filter: period end
13573
+ */
13574
+ period_end?: string | null;
13575
+ };
13576
+ url: '/v1/ledger/{graph_id}/schedules/{structure_id}/facts';
13577
+ };
13578
+ export type GetScheduleFactsErrors = {
13579
+ /**
13580
+ * Validation Error
13581
+ */
13582
+ 422: HttpValidationError;
13583
+ };
13584
+ export type GetScheduleFactsError = GetScheduleFactsErrors[keyof GetScheduleFactsErrors];
13585
+ export type GetScheduleFactsResponses = {
13586
+ /**
13587
+ * Successful Response
13588
+ */
13589
+ 200: ScheduleFactsResponse;
13590
+ };
13591
+ export type GetScheduleFactsResponse = GetScheduleFactsResponses[keyof GetScheduleFactsResponses];
13592
+ export type GetPeriodCloseStatusData = {
13593
+ body?: never;
13594
+ path: {
13595
+ /**
13596
+ * Graph Id
13597
+ */
13598
+ graph_id: string;
13599
+ };
13600
+ query: {
13601
+ /**
13602
+ * Period Start
13603
+ *
13604
+ * Fiscal period start
13605
+ */
13606
+ period_start: string;
13607
+ /**
13608
+ * Period End
13609
+ *
13610
+ * Fiscal period end
13611
+ */
13612
+ period_end: string;
13613
+ };
13614
+ url: '/v1/ledger/{graph_id}/schedules/close-status';
13615
+ };
13616
+ export type GetPeriodCloseStatusErrors = {
13617
+ /**
13618
+ * Validation Error
13619
+ */
13620
+ 422: HttpValidationError;
13621
+ };
13622
+ export type GetPeriodCloseStatusError = GetPeriodCloseStatusErrors[keyof GetPeriodCloseStatusErrors];
13623
+ export type GetPeriodCloseStatusResponses = {
13624
+ /**
13625
+ * Successful Response
13626
+ */
13627
+ 200: PeriodCloseStatusResponse;
13628
+ };
13629
+ export type GetPeriodCloseStatusResponse = GetPeriodCloseStatusResponses[keyof GetPeriodCloseStatusResponses];
13630
+ export type CreateClosingEntryData = {
13631
+ body: CreateClosingEntryRequest;
13632
+ path: {
13633
+ /**
13634
+ * Graph Id
13635
+ */
13636
+ graph_id: string;
13637
+ /**
13638
+ * Structure Id
13639
+ *
13640
+ * Schedule structure ID
13641
+ */
13642
+ structure_id: string;
13643
+ };
13644
+ query?: never;
13645
+ url: '/v1/ledger/{graph_id}/schedules/{structure_id}/closing-entry';
13646
+ };
13647
+ export type CreateClosingEntryErrors = {
13648
+ /**
13649
+ * Validation Error
13650
+ */
13651
+ 422: HttpValidationError;
13652
+ };
13653
+ export type CreateClosingEntryError = CreateClosingEntryErrors[keyof CreateClosingEntryErrors];
13654
+ export type CreateClosingEntryResponses = {
13655
+ /**
13656
+ * Successful Response
13657
+ */
13658
+ 201: ClosingEntryResponse;
13659
+ };
13660
+ export type CreateClosingEntryResponse = CreateClosingEntryResponses[keyof CreateClosingEntryResponses];
12995
13661
  export type ListPublishListsData = {
12996
13662
  body?: never;
12997
13663
  path: {