@robosystems/client 0.2.47 → 0.2.49

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.
package/types.gen.d.ts CHANGED
@@ -169,6 +169,93 @@ export type AccountResponse = {
169
169
  */
170
170
  external_source?: string | null;
171
171
  };
172
+ /**
173
+ * AccountRollupGroup
174
+ */
175
+ export type AccountRollupGroup = {
176
+ /**
177
+ * Reporting Element Id
178
+ */
179
+ reporting_element_id: string;
180
+ /**
181
+ * Reporting Name
182
+ */
183
+ reporting_name: string;
184
+ /**
185
+ * Reporting Qname
186
+ */
187
+ reporting_qname: string;
188
+ /**
189
+ * Classification
190
+ */
191
+ classification: string;
192
+ /**
193
+ * Balance Type
194
+ */
195
+ balance_type: string;
196
+ /**
197
+ * Total
198
+ */
199
+ total: number;
200
+ /**
201
+ * Accounts
202
+ */
203
+ accounts: Array<AccountRollupRow>;
204
+ };
205
+ /**
206
+ * AccountRollupRow
207
+ */
208
+ export type AccountRollupRow = {
209
+ /**
210
+ * Element Id
211
+ */
212
+ element_id: string;
213
+ /**
214
+ * Account Name
215
+ */
216
+ account_name: string;
217
+ /**
218
+ * Account Code
219
+ */
220
+ account_code?: string | null;
221
+ /**
222
+ * Total Debits
223
+ */
224
+ total_debits: number;
225
+ /**
226
+ * Total Credits
227
+ */
228
+ total_credits: number;
229
+ /**
230
+ * Net Balance
231
+ */
232
+ net_balance: number;
233
+ };
234
+ /**
235
+ * AccountRollupsResponse
236
+ */
237
+ export type AccountRollupsResponse = {
238
+ /**
239
+ * Mapping Id
240
+ */
241
+ mapping_id: string;
242
+ /**
243
+ * Mapping Name
244
+ */
245
+ mapping_name: string;
246
+ /**
247
+ * Groups
248
+ */
249
+ groups: Array<AccountRollupGroup>;
250
+ /**
251
+ * Total Mapped
252
+ */
253
+ total_mapped: number;
254
+ /**
255
+ * Total Unmapped
256
+ */
257
+ total_unmapped: number;
258
+ };
172
259
  /**
173
260
  * AccountTreeNode
174
261
  */
@@ -1183,38 +1270,153 @@ export type CheckoutStatusResponse = {
1183
1270
  */
1184
1271
  error?: string | null;
1185
1272
  };
1273
+ /**
1274
+ * ClosePeriodRequest
1275
+ */
1276
+ export type ClosePeriodRequest = {
1277
+ /**
1278
+ * Note
1279
+ *
1280
+ * Free-form note attached to the close event
1281
+ */
1282
+ note?: string | null;
1283
+ /**
1284
+ * Allow Stale Sync
1285
+ *
1286
+ * Override the sync-currency gate. Only use when you have manually verified that the source data for the period is complete.
1287
+ */
1288
+ allow_stale_sync?: boolean;
1289
+ };
1290
+ /**
1291
+ * ClosePeriodResponse
1292
+ *
1293
+ * Response from a single-period close operation.
1294
+ */
1295
+ export type ClosePeriodResponse = {
1296
+ fiscal_calendar: FiscalCalendarResponse;
1297
+ /**
1298
+ * Period
1299
+ */
1300
+ period: string;
1301
+ /**
1302
+ * Entries Posted
1303
+ *
1304
+ * Number of draft entries transitioned to posted
1305
+ */
1306
+ entries_posted?: number;
1307
+ /**
1308
+ * Target Auto Advanced
1309
+ *
1310
+ * Whether close_target was auto-advanced because it was reached
1311
+ */
1312
+ target_auto_advanced?: boolean;
1313
+ };
1314
+ /**
1315
+ * ClosingBookCategory
1316
+ */
1317
+ export type ClosingBookCategory = {
1318
+ /**
1319
+ * Label
1320
+ */
1321
+ label: string;
1322
+ /**
1323
+ * Items
1324
+ */
1325
+ items: Array<ClosingBookItem>;
1326
+ };
1327
+ /**
1328
+ * ClosingBookItem
1329
+ */
1330
+ export type ClosingBookItem = {
1331
+ /**
1332
+ * Id
1333
+ */
1334
+ id: string;
1335
+ /**
1336
+ * Name
1337
+ */
1338
+ name: string;
1339
+ /**
1340
+ * Item Type
1341
+ */
1342
+ item_type: string;
1343
+ /**
1344
+ * Structure Type
1345
+ */
1346
+ structure_type?: string | null;
1347
+ /**
1348
+ * Report Id
1349
+ */
1350
+ report_id?: string | null;
1351
+ /**
1352
+ * Status
1353
+ */
1354
+ status?: string | null;
1355
+ };
1356
+ /**
1357
+ * ClosingBookStructuresResponse
1358
+ */
1359
+ export type ClosingBookStructuresResponse = {
1360
+ /**
1361
+ * Categories
1362
+ */
1363
+ categories: Array<ClosingBookCategory>;
1364
+ /**
1365
+ * Has Data
1366
+ */
1367
+ has_data: boolean;
1368
+ };
1186
1369
  /**
1187
1370
  * ClosingEntryResponse
1188
1371
  */
1189
1372
  export type ClosingEntryResponse = {
1373
+ /**
1374
+ * Outcome
1375
+ *
1376
+ * What the idempotent call did: 'created' (new draft), 'unchanged' (existing draft still matches), 'regenerated' (stale draft replaced with fresh one), 'removed' (stale draft deleted; schedule no longer covers this period), 'skipped' (nothing to do — no draft and no in-scope fact).
1377
+ */
1378
+ outcome: string;
1190
1379
  /**
1191
1380
  * Entry Id
1381
+ *
1382
+ * The draft entry ID. None for 'removed' and 'skipped' outcomes.
1192
1383
  */
1193
- entry_id: string;
1384
+ entry_id?: string | null;
1194
1385
  /**
1195
1386
  * Status
1387
+ *
1388
+ * Entry status (always 'draft' when present).
1196
1389
  */
1197
- status: string;
1390
+ status?: string | null;
1198
1391
  /**
1199
1392
  * Posting Date
1200
1393
  */
1201
- posting_date: string;
1394
+ posting_date?: string | null;
1202
1395
  /**
1203
1396
  * Memo
1204
1397
  */
1205
- memo: string;
1398
+ memo?: string | null;
1206
1399
  /**
1207
1400
  * Debit Element Id
1208
1401
  */
1209
- debit_element_id: string;
1402
+ debit_element_id?: string | null;
1210
1403
  /**
1211
1404
  * Credit Element Id
1212
1405
  */
1213
- credit_element_id: string;
1406
+ credit_element_id?: string | null;
1214
1407
  /**
1215
1408
  * Amount
1409
+ *
1410
+ * Entry amount in dollars. None for 'removed' and 'skipped'.
1216
1411
  */
1217
- amount: number;
1412
+ amount?: number | null;
1413
+ /**
1414
+ * Reason
1415
+ *
1416
+ * Explanation for 'removed' and 'skipped' outcomes.
1417
+ */
1418
+ reason?: string | null;
1419
+ reversal?: ClosingEntryResponse | null;
1218
1420
  };
1219
1421
  /**
1220
1422
  * ConnectionOptionsResponse
@@ -1632,6 +1834,35 @@ export type CreateGraphRequest = {
1632
1834
  */
1633
1835
  tags?: Array<string>;
1634
1836
  };
1837
+ /**
1838
+ * CreateManualClosingEntryRequest
1839
+ */
1840
+ export type CreateManualClosingEntryRequest = {
1841
+ /**
1842
+ * Posting Date
1843
+ *
1844
+ * Posting date for the entry
1845
+ */
1846
+ posting_date: string;
1847
+ /**
1848
+ * Memo
1849
+ *
1850
+ * Memo describing the business event (e.g., 'Sale of computer to Vendor X on 3/15')
1851
+ */
1852
+ memo: string;
1853
+ /**
1854
+ * Line Items
1855
+ *
1856
+ * Line items; must balance (total DR = total CR)
1857
+ */
1858
+ line_items: Array<ManualLineItemRequest>;
1859
+ /**
1860
+ * Entry Type
1861
+ *
1862
+ * Entry type: 'closing' (default), 'adjusting', 'standard', 'reversing'
1863
+ */
1864
+ entry_type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
1865
+ };
1635
1866
  /**
1636
1867
  * CreatePortfolioRequest
1637
1868
  */
@@ -1831,6 +2062,12 @@ export type CreateScheduleRequest = {
1831
2062
  monthly_amount: number;
1832
2063
  entry_template: EntryTemplateRequest;
1833
2064
  schedule_metadata?: ScheduleMetadataRequest | null;
2065
+ /**
2066
+ * Closed Through
2067
+ *
2068
+ * If provided, facts with period_end ≤ this date are flagged as 'historical' (already reflected in opening balances, ignored by the close workflow). Used during initial ledger setup to create schedules whose early facts have already been captured elsewhere.
2069
+ */
2070
+ closed_through?: string | null;
1834
2071
  };
1835
2072
  /**
1836
2073
  * CreateSecurityRequest
@@ -1886,7 +2123,7 @@ export type CreateStructureRequest = {
1886
2123
  /**
1887
2124
  * Structure Type
1888
2125
  */
1889
- structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'custom';
2126
+ structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'custom';
1890
2127
  /**
1891
2128
  * Taxonomy Id
1892
2129
  */
@@ -2889,6 +3126,110 @@ export type DownloadQuota = {
2889
3126
  */
2890
3127
  resets_at: string;
2891
3128
  };
3129
+ /**
3130
+ * DraftEntryResponse
3131
+ *
3132
+ * A single draft entry with full line item detail for review.
3133
+ */
3134
+ export type DraftEntryResponse = {
3135
+ /**
3136
+ * Entry Id
3137
+ */
3138
+ entry_id: string;
3139
+ /**
3140
+ * Posting Date
3141
+ */
3142
+ posting_date: string;
3143
+ /**
3144
+ * Type
3145
+ *
3146
+ * Entry type (e.g., 'closing', 'adjusting')
3147
+ */
3148
+ type: string;
3149
+ /**
3150
+ * Memo
3151
+ */
3152
+ memo?: string | null;
3153
+ /**
3154
+ * Provenance
3155
+ *
3156
+ * Where the entry came from: 'ai_generated', 'manual_entry', etc.
3157
+ */
3158
+ provenance?: string | null;
3159
+ /**
3160
+ * Source Structure Id
3161
+ *
3162
+ * Schedule structure that generated this entry (if any)
3163
+ */
3164
+ source_structure_id?: string | null;
3165
+ /**
3166
+ * Source Structure Name
3167
+ *
3168
+ * Human-readable name of the source schedule
3169
+ */
3170
+ source_structure_name?: string | null;
3171
+ /**
3172
+ * Line Items
3173
+ */
3174
+ line_items: Array<DraftLineItem>;
3175
+ /**
3176
+ * Total Debit
3177
+ *
3178
+ * Sum of debit amounts in cents
3179
+ */
3180
+ total_debit: number;
3181
+ /**
3182
+ * Total Credit
3183
+ *
3184
+ * Sum of credit amounts in cents
3185
+ */
3186
+ total_credit: number;
3187
+ /**
3188
+ * Balanced
3189
+ *
3190
+ * True if total_debit == total_credit
3191
+ */
3192
+ balanced: boolean;
3193
+ };
3194
+ /**
3195
+ * DraftLineItem
3196
+ *
3197
+ * A single line item within a draft entry.
3198
+ */
3199
+ export type DraftLineItem = {
3200
+ /**
3201
+ * Line Item Id
3202
+ */
3203
+ line_item_id: string;
3204
+ /**
3205
+ * Element Id
3206
+ */
3207
+ element_id: string;
3208
+ /**
3209
+ * Element Code
3210
+ */
3211
+ element_code?: string | null;
3212
+ /**
3213
+ * Element Name
3214
+ */
3215
+ element_name: string;
3216
+ /**
3217
+ * Debit Amount
3218
+ *
3219
+ * Debit amount in cents
3220
+ */
3221
+ debit_amount: number;
3222
+ /**
3223
+ * Credit Amount
3224
+ *
3225
+ * Credit amount in cents
3226
+ */
3227
+ credit_amount: number;
3228
+ /**
3229
+ * Description
3230
+ */
3231
+ description?: string | null;
3232
+ };
2892
3233
  /**
2893
3234
  * ElementListResponse
2894
3235
  */
@@ -3082,13 +3423,19 @@ export type EntryTemplateRequest = {
3082
3423
  *
3083
3424
  * Entry type for generated entries
3084
3425
  */
3085
- entry_type?: string;
3426
+ entry_type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
3086
3427
  /**
3087
3428
  * Memo Template
3088
3429
  *
3089
3430
  * Memo template ({structure_name} is replaced)
3090
3431
  */
3091
3432
  memo_template?: string;
3433
+ /**
3434
+ * Auto Reverse
3435
+ *
3436
+ * Auto-generate a reversing entry on the first day of the next period
3437
+ */
3438
+ auto_reverse?: boolean;
3092
3439
  };
3093
3440
  /**
3094
3441
  * ErrorResponse
@@ -3320,6 +3667,106 @@ export type FileUploadResponse = {
3320
3667
  */
3321
3668
  s3_key: string;
3322
3669
  };
3670
+ /**
3671
+ * FiscalCalendarResponse
3672
+ *
3673
+ * Current fiscal calendar state for a graph.
3674
+ */
3675
+ export type FiscalCalendarResponse = {
3676
+ /**
3677
+ * Graph Id
3678
+ */
3679
+ graph_id: string;
3680
+ /**
3681
+ * Fiscal Year Start Month
3682
+ */
3683
+ fiscal_year_start_month: number;
3684
+ /**
3685
+ * Closed Through
3686
+ *
3687
+ * Latest closed period (YYYY-MM), or null if nothing closed
3688
+ */
3689
+ closed_through?: string | null;
3690
+ /**
3691
+ * Close Target
3692
+ *
3693
+ * Target period the user wants closed through (YYYY-MM)
3694
+ */
3695
+ close_target?: string | null;
3696
+ /**
3697
+ * Gap Periods
3698
+ *
3699
+ * Number of periods between closed_through and close_target (inclusive of close_target). 0 means caught up.
3700
+ */
3701
+ gap_periods?: number;
3702
+ /**
3703
+ * Catch Up Sequence
3704
+ *
3705
+ * Ordered list of periods that a close run would process
3706
+ */
3707
+ catch_up_sequence?: Array<string>;
3708
+ /**
3709
+ * Closeable Now
3710
+ *
3711
+ * Whether the next period in the catch-up sequence passes all closeable gates
3712
+ */
3713
+ closeable_now?: boolean;
3714
+ /**
3715
+ * Blockers
3716
+ *
3717
+ * Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed'
3718
+ */
3719
+ blockers?: Array<string>;
3720
+ /**
3721
+ * Last Close At
3722
+ */
3723
+ last_close_at?: string | null;
3724
+ /**
3725
+ * Initialized At
3726
+ */
3727
+ initialized_at?: string | null;
3728
+ /**
3729
+ * Last Sync At
3730
+ *
3731
+ * Most recent QB sync timestamp (if connected)
3732
+ */
3733
+ last_sync_at?: string | null;
3734
+ /**
3735
+ * Periods
3736
+ *
3737
+ * Fiscal period rows for this graph
3738
+ */
3739
+ periods?: Array<FiscalPeriodSummary>;
3740
+ };
3741
+ /**
3742
+ * FiscalPeriodSummary
3743
+ */
3744
+ export type FiscalPeriodSummary = {
3745
+ /**
3746
+ * Name
3747
+ *
3748
+ * Period name (YYYY-MM)
3749
+ */
3750
+ name: string;
3751
+ /**
3752
+ * Start Date
3753
+ */
3754
+ start_date: string;
3755
+ /**
3756
+ * End Date
3757
+ */
3758
+ end_date: string;
3759
+ /**
3760
+ * Status
3761
+ *
3762
+ * 'open' | 'closing' | 'closed'
3763
+ */
3764
+ status: string;
3765
+ /**
3766
+ * Closed At
3767
+ */
3768
+ closed_at?: string | null;
3769
+ };
3323
3770
  /**
3324
3771
  * ForgotPasswordRequest
3325
3772
  *
@@ -4281,6 +4728,12 @@ export type InitialEntityData = {
4281
4728
  * Entity website or URI
4282
4729
  */
4283
4730
  uri: string;
4731
+ /**
4732
+ * Ticker
4733
+ *
4734
+ * Entity symbol/ticker (e.g., 'HARB', 'NVDA'). Auto-generated from name if not provided.
4735
+ */
4736
+ ticker?: string | null;
4284
4737
  /**
4285
4738
  * Cik
4286
4739
  *
@@ -4324,6 +4777,59 @@ export type InitialEntityData = {
4324
4777
  */
4325
4778
  ein?: string | null;
4326
4779
  };
4780
+ /**
4781
+ * InitializeLedgerRequest
4782
+ */
4783
+ export type InitializeLedgerRequest = {
4784
+ /**
4785
+ * Closed Through
4786
+ *
4787
+ * YYYY-MM period. Periods ≤ this date are treated as historical (already closed before the user joined). Set to null for a fresh business with no prior close state.
4788
+ */
4789
+ closed_through?: string | null;
4790
+ /**
4791
+ * Fiscal Year Start Month
4792
+ *
4793
+ * Fiscal year start month (1-12). Defaults to calendar year.
4794
+ */
4795
+ fiscal_year_start_month?: number;
4796
+ /**
4797
+ * Auto Seed Schedules
4798
+ *
4799
+ * If true, run the SchedulerAgent to create schedules from historical BS activity. NOT YET IMPLEMENTED — returns a warning in v1.
4800
+ */
4801
+ auto_seed_schedules?: boolean;
4802
+ /**
4803
+ * Earliest Data Period
4804
+ *
4805
+ * YYYY-MM period representing the earliest month that has transaction data. Used to create FiscalPeriod rows. Defaults to 24 months before the current month.
4806
+ */
4807
+ earliest_data_period?: string | null;
4808
+ /**
4809
+ * Note
4810
+ *
4811
+ * Free-form note attached to the audit event
4812
+ */
4813
+ note?: string | null;
4814
+ };
4815
+ /**
4816
+ * InitializeLedgerResponse
4817
+ */
4818
+ export type InitializeLedgerResponse = {
4819
+ fiscal_calendar: FiscalCalendarResponse;
4820
+ /**
4821
+ * Periods Created
4822
+ *
4823
+ * Number of FiscalPeriod rows created by initialization
4824
+ */
4825
+ periods_created?: number;
4826
+ /**
4827
+ * Warnings
4828
+ *
4829
+ * Non-fatal warnings (e.g., auto_seed_schedules not implemented)
4830
+ */
4831
+ warnings?: Array<string>;
4832
+ };
4327
4833
  /**
4328
4834
  * InstanceUsage
4329
4835
  *
@@ -5060,6 +5566,33 @@ export type McpToolsResponse = {
5060
5566
  [key: string]: unknown;
5061
5567
  }>;
5062
5568
  };
5569
+ /**
5570
+ * ManualLineItemRequest
5571
+ */
5572
+ export type ManualLineItemRequest = {
5573
+ /**
5574
+ * Element Id
5575
+ *
5576
+ * Element ID (chart of accounts)
5577
+ */
5578
+ element_id: string;
5579
+ /**
5580
+ * Debit Amount
5581
+ *
5582
+ * Debit in cents
5583
+ */
5584
+ debit_amount?: number;
5585
+ /**
5586
+ * Credit Amount
5587
+ *
5588
+ * Credit in cents
5589
+ */
5590
+ credit_amount?: number;
5591
+ /**
5592
+ * Description
5593
+ */
5594
+ description?: string | null;
5595
+ };
5063
5596
  /**
5064
5597
  * MappingCoverageResponse
5065
5598
  *
@@ -5164,6 +5697,12 @@ export type MaterializeRequest = {
5164
5697
  * Data source for materialization. Auto-detected from graph type if not specified. 'staged' materializes from uploaded files (generic graphs). 'extensions' materializes from the extensions OLTP database (entity graphs).
5165
5698
  */
5166
5699
  source?: string | null;
5700
+ /**
5701
+ * Materialize Embeddings
5702
+ *
5703
+ * Include embedding columns in materialization and build HNSW vector indexes in the graph database. When false (default), embedding columns are NULLed out to save space. Set to true for graphs that need vector search.
5704
+ */
5705
+ materialize_embeddings?: boolean;
5167
5706
  };
5168
5707
  /**
5169
5708
  * MaterializeResponse
@@ -5924,6 +6463,14 @@ export type PeriodCloseItemResponse = {
5924
6463
  * Entry Id
5925
6464
  */
5926
6465
  entry_id?: string | null;
6466
+ /**
6467
+ * Reversal Entry Id
6468
+ */
6469
+ reversal_entry_id?: string | null;
6470
+ /**
6471
+ * Reversal Status
6472
+ */
6473
+ reversal_status?: string | null;
5927
6474
  };
5928
6475
  /**
5929
6476
  * PeriodCloseStatusResponse
@@ -5948,11 +6495,58 @@ export type PeriodCloseStatusResponse = {
5948
6495
  /**
5949
6496
  * Total Draft
5950
6497
  */
5951
- total_draft: number;
6498
+ total_draft: number;
6499
+ /**
6500
+ * Total Posted
6501
+ */
6502
+ total_posted: number;
6503
+ };
6504
+ /**
6505
+ * PeriodDraftsResponse
6506
+ *
6507
+ * All draft entries for a fiscal period, ready for review before close.
6508
+ */
6509
+ export type PeriodDraftsResponse = {
6510
+ /**
6511
+ * Period
6512
+ *
6513
+ * YYYY-MM period name
6514
+ */
6515
+ period: string;
6516
+ /**
6517
+ * Period Start
6518
+ */
6519
+ period_start: string;
6520
+ /**
6521
+ * Period End
6522
+ */
6523
+ period_end: string;
6524
+ /**
6525
+ * Draft Count
6526
+ */
6527
+ draft_count: number;
6528
+ /**
6529
+ * Total Debit
6530
+ *
6531
+ * Sum across all drafts, in cents
6532
+ */
6533
+ total_debit: number;
6534
+ /**
6535
+ * Total Credit
6536
+ *
6537
+ * Sum across all drafts, in cents
6538
+ */
6539
+ total_credit: number;
6540
+ /**
6541
+ * All Balanced
6542
+ *
6543
+ * True if every draft entry has debit == credit
6544
+ */
6545
+ all_balanced: boolean;
5952
6546
  /**
5953
- * Total Posted
6547
+ * Drafts
5954
6548
  */
5955
- total_posted: number;
6549
+ drafts: Array<DraftEntryResponse>;
5956
6550
  };
5957
6551
  /**
5958
6552
  * PeriodSpec
@@ -6368,6 +6962,23 @@ export type RegisterRequest = {
6368
6962
  */
6369
6963
  captcha_token?: string | null;
6370
6964
  };
6965
+ /**
6966
+ * ReopenPeriodRequest
6967
+ */
6968
+ export type ReopenPeriodRequest = {
6969
+ /**
6970
+ * Reason
6971
+ *
6972
+ * Required reason for the reopen (captured in audit log)
6973
+ */
6974
+ reason: string;
6975
+ /**
6976
+ * Note
6977
+ *
6978
+ * Additional free-form note
6979
+ */
6980
+ note?: string | null;
6981
+ };
6371
6982
  /**
6372
6983
  * ReportListResponse
6373
6984
  */
@@ -6979,6 +7590,10 @@ export type SearchHit = {
6979
7590
  * Source Type
6980
7591
  */
6981
7592
  source_type: string;
7593
+ /**
7594
+ * Parent Document Id
7595
+ */
7596
+ parent_document_id?: string | null;
6982
7597
  /**
6983
7598
  * Entity Ticker
6984
7599
  */
@@ -7306,6 +7921,23 @@ export type ServiceOfferingsResponse = {
7306
7921
  */
7307
7922
  summary: ServiceOfferingSummary;
7308
7923
  };
7924
+ /**
7925
+ * SetCloseTargetRequest
7926
+ */
7927
+ export type SetCloseTargetRequest = {
7928
+ /**
7929
+ * Period
7930
+ *
7931
+ * Target period in YYYY-MM format
7932
+ */
7933
+ period: string;
7934
+ /**
7935
+ * Note
7936
+ *
7937
+ * Free-form note attached to the audit event
7938
+ */
7939
+ note?: string | null;
7940
+ };
7309
7941
  /**
7310
7942
  * ShareReportRequest
7311
7943
  */
@@ -8083,6 +8715,44 @@ export type TrialBalanceRow = {
8083
8715
  */
8084
8716
  net_balance: number;
8085
8717
  };
8718
+ /**
8719
+ * TruncateScheduleRequest
8720
+ */
8721
+ export type TruncateScheduleRequest = {
8722
+ /**
8723
+ * New End Date
8724
+ *
8725
+ * New last-covered date for the schedule. Facts with period_start > this date are deleted (along with any stale draft entries they produced). Historical facts (already posted) are preserved.
8726
+ */
8727
+ new_end_date: string;
8728
+ /**
8729
+ * Reason
8730
+ *
8731
+ * Required reason for the truncation (captured in audit log).
8732
+ */
8733
+ reason: string;
8734
+ };
8735
+ /**
8736
+ * TruncateScheduleResponse
8737
+ */
8738
+ export type TruncateScheduleResponse = {
8739
+ /**
8740
+ * Structure Id
8741
+ */
8742
+ structure_id: string;
8743
+ /**
8744
+ * New End Date
8745
+ */
8746
+ new_end_date: string;
8747
+ /**
8748
+ * Facts Deleted
8749
+ */
8750
+ facts_deleted: number;
8751
+ /**
8752
+ * Reason
8753
+ */
8754
+ reason: string;
8755
+ };
8086
8756
  /**
8087
8757
  * UnmappedElementResponse
8088
8758
  *
@@ -13279,7 +13949,7 @@ export type GetStatementData = {
13279
13949
  /**
13280
13950
  * Structure Type
13281
13951
  *
13282
- * Structure type: income_statement, balance_sheet, cash_flow_statement
13952
+ * Structure type: income_statement, balance_sheet, equity_statement
13283
13953
  */
13284
13954
  structure_type: string;
13285
13955
  };
@@ -13525,6 +14195,62 @@ export type CreateClosingEntryResponses = {
13525
14195
  201: ClosingEntryResponse;
13526
14196
  };
13527
14197
  export type CreateClosingEntryResponse = CreateClosingEntryResponses[keyof CreateClosingEntryResponses];
14198
+ export type TruncateScheduleData = {
14199
+ body: TruncateScheduleRequest;
14200
+ path: {
14201
+ /**
14202
+ * Graph Id
14203
+ */
14204
+ graph_id: string;
14205
+ /**
14206
+ * Structure Id
14207
+ *
14208
+ * Schedule structure ID
14209
+ */
14210
+ structure_id: string;
14211
+ };
14212
+ query?: never;
14213
+ url: '/v1/ledger/{graph_id}/schedules/{structure_id}/truncate';
14214
+ };
14215
+ export type TruncateScheduleErrors = {
14216
+ /**
14217
+ * Validation Error
14218
+ */
14219
+ 422: HttpValidationError;
14220
+ };
14221
+ export type TruncateScheduleError = TruncateScheduleErrors[keyof TruncateScheduleErrors];
14222
+ export type TruncateScheduleResponses = {
14223
+ /**
14224
+ * Successful Response
14225
+ */
14226
+ 200: TruncateScheduleResponse;
14227
+ };
14228
+ export type TruncateScheduleResponse2 = TruncateScheduleResponses[keyof TruncateScheduleResponses];
14229
+ export type CreateManualClosingEntryData = {
14230
+ body: CreateManualClosingEntryRequest;
14231
+ path: {
14232
+ /**
14233
+ * Graph Id
14234
+ */
14235
+ graph_id: string;
14236
+ };
14237
+ query?: never;
14238
+ url: '/v1/ledger/{graph_id}/manual-closing-entry';
14239
+ };
14240
+ export type CreateManualClosingEntryErrors = {
14241
+ /**
14242
+ * Validation Error
14243
+ */
14244
+ 422: HttpValidationError;
14245
+ };
14246
+ export type CreateManualClosingEntryError = CreateManualClosingEntryErrors[keyof CreateManualClosingEntryErrors];
14247
+ export type CreateManualClosingEntryResponses = {
14248
+ /**
14249
+ * Successful Response
14250
+ */
14251
+ 201: ClosingEntryResponse;
14252
+ };
14253
+ export type CreateManualClosingEntryResponse = CreateManualClosingEntryResponses[keyof CreateManualClosingEntryResponses];
13528
14254
  export type ListPublishListsData = {
13529
14255
  body?: never;
13530
14256
  path: {
@@ -13735,6 +14461,243 @@ export type RemovePublishListMemberResponses = {
13735
14461
  204: void;
13736
14462
  };
13737
14463
  export type RemovePublishListMemberResponse = RemovePublishListMemberResponses[keyof RemovePublishListMemberResponses];
14464
+ export type GetAccountRollupsData = {
14465
+ body?: never;
14466
+ path: {
14467
+ /**
14468
+ * Graph Id
14469
+ */
14470
+ graph_id: string;
14471
+ };
14472
+ query?: {
14473
+ /**
14474
+ * Mapping Id
14475
+ *
14476
+ * Mapping structure ID (auto-discovers if omitted)
14477
+ */
14478
+ mapping_id?: string | null;
14479
+ /**
14480
+ * Start Date
14481
+ *
14482
+ * Start date (inclusive)
14483
+ */
14484
+ start_date?: string | null;
14485
+ /**
14486
+ * End Date
14487
+ *
14488
+ * End date (inclusive)
14489
+ */
14490
+ end_date?: string | null;
14491
+ };
14492
+ url: '/v1/ledger/{graph_id}/account-rollups';
14493
+ };
14494
+ export type GetAccountRollupsErrors = {
14495
+ /**
14496
+ * Validation Error
14497
+ */
14498
+ 422: HttpValidationError;
14499
+ };
14500
+ export type GetAccountRollupsError = GetAccountRollupsErrors[keyof GetAccountRollupsErrors];
14501
+ export type GetAccountRollupsResponses = {
14502
+ /**
14503
+ * Successful Response
14504
+ */
14505
+ 200: AccountRollupsResponse;
14506
+ };
14507
+ export type GetAccountRollupsResponse = GetAccountRollupsResponses[keyof GetAccountRollupsResponses];
14508
+ export type GetClosingBookStructuresData = {
14509
+ body?: never;
14510
+ path: {
14511
+ /**
14512
+ * Graph Id
14513
+ */
14514
+ graph_id: string;
14515
+ };
14516
+ query?: never;
14517
+ url: '/v1/ledger/{graph_id}/closing-book/structures';
14518
+ };
14519
+ export type GetClosingBookStructuresErrors = {
14520
+ /**
14521
+ * Validation Error
14522
+ */
14523
+ 422: HttpValidationError;
14524
+ };
14525
+ export type GetClosingBookStructuresError = GetClosingBookStructuresErrors[keyof GetClosingBookStructuresErrors];
14526
+ export type GetClosingBookStructuresResponses = {
14527
+ /**
14528
+ * Successful Response
14529
+ */
14530
+ 200: ClosingBookStructuresResponse;
14531
+ };
14532
+ export type GetClosingBookStructuresResponse = GetClosingBookStructuresResponses[keyof GetClosingBookStructuresResponses];
14533
+ export type InitializeLedgerData = {
14534
+ body: InitializeLedgerRequest;
14535
+ path: {
14536
+ /**
14537
+ * Graph Id
14538
+ */
14539
+ graph_id: string;
14540
+ };
14541
+ query?: never;
14542
+ url: '/v1/ledger/{graph_id}/initialize';
14543
+ };
14544
+ export type InitializeLedgerErrors = {
14545
+ /**
14546
+ * Validation Error
14547
+ */
14548
+ 422: HttpValidationError;
14549
+ };
14550
+ export type InitializeLedgerError = InitializeLedgerErrors[keyof InitializeLedgerErrors];
14551
+ export type InitializeLedgerResponses = {
14552
+ /**
14553
+ * Successful Response
14554
+ */
14555
+ 201: InitializeLedgerResponse;
14556
+ };
14557
+ export type InitializeLedgerResponse2 = InitializeLedgerResponses[keyof InitializeLedgerResponses];
14558
+ export type GetFiscalCalendarData = {
14559
+ body?: never;
14560
+ path: {
14561
+ /**
14562
+ * Graph Id
14563
+ */
14564
+ graph_id: string;
14565
+ };
14566
+ query?: never;
14567
+ url: '/v1/ledger/{graph_id}/fiscal-calendar';
14568
+ };
14569
+ export type GetFiscalCalendarErrors = {
14570
+ /**
14571
+ * Validation Error
14572
+ */
14573
+ 422: HttpValidationError;
14574
+ };
14575
+ export type GetFiscalCalendarError = GetFiscalCalendarErrors[keyof GetFiscalCalendarErrors];
14576
+ export type GetFiscalCalendarResponses = {
14577
+ /**
14578
+ * Successful Response
14579
+ */
14580
+ 200: FiscalCalendarResponse;
14581
+ };
14582
+ export type GetFiscalCalendarResponse = GetFiscalCalendarResponses[keyof GetFiscalCalendarResponses];
14583
+ export type SetCloseTargetData = {
14584
+ body: SetCloseTargetRequest;
14585
+ path: {
14586
+ /**
14587
+ * Graph Id
14588
+ */
14589
+ graph_id: string;
14590
+ };
14591
+ query?: never;
14592
+ url: '/v1/ledger/{graph_id}/fiscal-calendar/close-target';
14593
+ };
14594
+ export type SetCloseTargetErrors = {
14595
+ /**
14596
+ * Validation Error
14597
+ */
14598
+ 422: HttpValidationError;
14599
+ };
14600
+ export type SetCloseTargetError = SetCloseTargetErrors[keyof SetCloseTargetErrors];
14601
+ export type SetCloseTargetResponses = {
14602
+ /**
14603
+ * Successful Response
14604
+ */
14605
+ 200: FiscalCalendarResponse;
14606
+ };
14607
+ export type SetCloseTargetResponse = SetCloseTargetResponses[keyof SetCloseTargetResponses];
14608
+ export type CloseFiscalPeriodData = {
14609
+ body?: ClosePeriodRequest;
14610
+ path: {
14611
+ /**
14612
+ * Graph Id
14613
+ */
14614
+ graph_id: string;
14615
+ /**
14616
+ * Period
14617
+ *
14618
+ * Target period in YYYY-MM format
14619
+ */
14620
+ period: string;
14621
+ };
14622
+ query?: never;
14623
+ url: '/v1/ledger/{graph_id}/periods/{period}/close';
14624
+ };
14625
+ export type CloseFiscalPeriodErrors = {
14626
+ /**
14627
+ * Validation Error
14628
+ */
14629
+ 422: HttpValidationError;
14630
+ };
14631
+ export type CloseFiscalPeriodError = CloseFiscalPeriodErrors[keyof CloseFiscalPeriodErrors];
14632
+ export type CloseFiscalPeriodResponses = {
14633
+ /**
14634
+ * Successful Response
14635
+ */
14636
+ 200: ClosePeriodResponse;
14637
+ };
14638
+ export type CloseFiscalPeriodResponse = CloseFiscalPeriodResponses[keyof CloseFiscalPeriodResponses];
14639
+ export type ReopenFiscalPeriodData = {
14640
+ body: ReopenPeriodRequest;
14641
+ path: {
14642
+ /**
14643
+ * Graph Id
14644
+ */
14645
+ graph_id: string;
14646
+ /**
14647
+ * Period
14648
+ *
14649
+ * Period to reopen (YYYY-MM)
14650
+ */
14651
+ period: string;
14652
+ };
14653
+ query?: never;
14654
+ url: '/v1/ledger/{graph_id}/periods/{period}/reopen';
14655
+ };
14656
+ export type ReopenFiscalPeriodErrors = {
14657
+ /**
14658
+ * Validation Error
14659
+ */
14660
+ 422: HttpValidationError;
14661
+ };
14662
+ export type ReopenFiscalPeriodError = ReopenFiscalPeriodErrors[keyof ReopenFiscalPeriodErrors];
14663
+ export type ReopenFiscalPeriodResponses = {
14664
+ /**
14665
+ * Successful Response
14666
+ */
14667
+ 200: FiscalCalendarResponse;
14668
+ };
14669
+ export type ReopenFiscalPeriodResponse = ReopenFiscalPeriodResponses[keyof ReopenFiscalPeriodResponses];
14670
+ export type ListPeriodDraftsData = {
14671
+ body?: never;
14672
+ path: {
14673
+ /**
14674
+ * Graph Id
14675
+ */
14676
+ graph_id: string;
14677
+ /**
14678
+ * Period
14679
+ *
14680
+ * Period in YYYY-MM format
14681
+ */
14682
+ period: string;
14683
+ };
14684
+ query?: never;
14685
+ url: '/v1/ledger/{graph_id}/periods/{period}/drafts';
14686
+ };
14687
+ export type ListPeriodDraftsErrors = {
14688
+ /**
14689
+ * Validation Error
14690
+ */
14691
+ 422: HttpValidationError;
14692
+ };
14693
+ export type ListPeriodDraftsError = ListPeriodDraftsErrors[keyof ListPeriodDraftsErrors];
14694
+ export type ListPeriodDraftsResponses = {
14695
+ /**
14696
+ * Successful Response
14697
+ */
14698
+ 200: PeriodDraftsResponse;
14699
+ };
14700
+ export type ListPeriodDraftsResponse = ListPeriodDraftsResponses[keyof ListPeriodDraftsResponses];
13738
14701
  export type ListPortfoliosData = {
13739
14702
  body?: never;
13740
14703
  path: {