@robosystems/client 0.3.19 → 0.3.20
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/artifacts/InvestorClient.js +7 -2
- package/artifacts/InvestorClient.ts +10 -6
- package/artifacts/LedgerClient.d.ts +57 -48
- package/artifacts/LedgerClient.js +44 -25
- package/artifacts/LedgerClient.ts +122 -75
- package/artifacts/graphql/generated/graphql.d.ts +558 -0
- package/artifacts/graphql/generated/graphql.ts +558 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/sdk/index.d.ts +1 -1
- package/sdk/index.ts +1 -1
- package/sdk/sdk.gen.d.ts +13 -13
- package/sdk/sdk.gen.js +13 -13
- package/sdk/sdk.gen.ts +13 -13
- package/sdk/types.gen.d.ts +5834 -1314
- package/sdk/types.gen.ts +5908 -1298
- package/sdk.gen.d.ts +13 -13
- package/sdk.gen.js +13 -13
- package/sdk.gen.ts +13 -13
- package/types.gen.d.ts +5834 -1314
- package/types.gen.ts +5908 -1298
|
@@ -22,6 +22,15 @@ export type Scalars = {
|
|
|
22
22
|
JSON: { input: any; output: any }
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* One CoA account (Element) — the basic chart-of-accounts row.
|
|
27
|
+
*
|
|
28
|
+
* ``trait`` carries the FASB classification (asset/liability/equity/
|
|
29
|
+
* revenue/expense/etc.); ``balance_type`` is the natural side
|
|
30
|
+
* ('debit' or 'credit'). ``account_type`` is a free-form sub-grouping
|
|
31
|
+
* (e.g. 'cash', 'inventory') used by some integrations. Hierarchy is
|
|
32
|
+
* expressed via ``parent_id`` + ``depth``.
|
|
33
|
+
*/
|
|
25
34
|
export type Account = {
|
|
26
35
|
accountType: Maybe<Scalars['String']['output']>
|
|
27
36
|
balanceType: Scalars['String']['output']
|
|
@@ -40,11 +49,19 @@ export type Account = {
|
|
|
40
49
|
trait: Maybe<Scalars['String']['output']>
|
|
41
50
|
}
|
|
42
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Paginated chart-of-accounts listing — flat (use the tree endpoint
|
|
54
|
+
* for parent/child structure).
|
|
55
|
+
*/
|
|
43
56
|
export type AccountList = {
|
|
44
57
|
accounts: Array<Account>
|
|
45
58
|
pagination: PaginationInfo
|
|
46
59
|
}
|
|
47
60
|
|
|
61
|
+
/**
|
|
62
|
+
* All CoA accounts that roll up into a single reporting concept,
|
|
63
|
+
* with the group total and per-account contributions.
|
|
64
|
+
*/
|
|
48
65
|
export type AccountRollupGroup = {
|
|
49
66
|
accounts: Array<AccountRollupRow>
|
|
50
67
|
balanceType: Scalars['String']['output']
|
|
@@ -55,6 +72,7 @@ export type AccountRollupGroup = {
|
|
|
55
72
|
trait: Scalars['String']['output']
|
|
56
73
|
}
|
|
57
74
|
|
|
75
|
+
/** One CoA account contributing to a reporting concept's rollup. */
|
|
58
76
|
export type AccountRollupRow = {
|
|
59
77
|
accountCode: Maybe<Scalars['String']['output']>
|
|
60
78
|
accountName: Scalars['String']['output']
|
|
@@ -64,6 +82,11 @@ export type AccountRollupRow = {
|
|
|
64
82
|
totalDebits: Scalars['Float']['output']
|
|
65
83
|
}
|
|
66
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Mapping rendered as account rollups — every reporting concept the
|
|
87
|
+
* mapping defines, with the CoA accounts that contribute to it and the
|
|
88
|
+
* current balance for each. ``total_unmapped`` tracks gaps for UI.
|
|
89
|
+
*/
|
|
67
90
|
export type AccountRollups = {
|
|
68
91
|
groups: Array<AccountRollupGroup>
|
|
69
92
|
mappingId: Scalars['String']['output']
|
|
@@ -117,6 +140,16 @@ export type Artifact = {
|
|
|
117
140
|
topic: Maybe<Scalars['String']['output']>
|
|
118
141
|
}
|
|
119
142
|
|
|
143
|
+
/**
|
|
144
|
+
* One edge between two elements within a structure (parent/child
|
|
145
|
+
* presentation, calculation rollup, mapping, equivalence).
|
|
146
|
+
*
|
|
147
|
+
* ``association_type`` discriminates the edge semantics. Mapping edges
|
|
148
|
+
* are the user-facing path (CoA → reporting concept); presentation /
|
|
149
|
+
* calculation edges express structure layout and roll-ups.
|
|
150
|
+
* ``confidence`` is set on AI-suggested mappings (≥0.90 auto-approved,
|
|
151
|
+
* 0.70-0.89 flagged for review).
|
|
152
|
+
*/
|
|
120
153
|
export type Association = {
|
|
121
154
|
approvedBy: Maybe<Scalars['String']['output']>
|
|
122
155
|
associationType: Scalars['String']['output']
|
|
@@ -134,11 +167,24 @@ export type Association = {
|
|
|
134
167
|
weight: Maybe<Scalars['Float']['output']>
|
|
135
168
|
}
|
|
136
169
|
|
|
170
|
+
/**
|
|
171
|
+
* A grouping of closing-book items shown as a sidebar section
|
|
172
|
+
* (e.g. Statements, Account Rollups, Schedules, Period Close).
|
|
173
|
+
*/
|
|
137
174
|
export type ClosingBookCategory = {
|
|
138
175
|
items: Array<ClosingBookItem>
|
|
139
176
|
label: Scalars['String']['output']
|
|
140
177
|
}
|
|
141
178
|
|
|
179
|
+
/**
|
|
180
|
+
* One row in the closing book — a navigable artifact for the
|
|
181
|
+
* period (statement, schedule, rollup, etc.).
|
|
182
|
+
*
|
|
183
|
+
* ``item_type`` discriminates: 'statement', 'schedule',
|
|
184
|
+
* 'account_rollups', 'period_close', 'trial_balance'. Statement items
|
|
185
|
+
* carry ``report_id`` to fetch the rendered facts; schedule items
|
|
186
|
+
* carry ``status`` ('complete' | 'draft' | 'pending').
|
|
187
|
+
*/
|
|
142
188
|
export type ClosingBookItem = {
|
|
143
189
|
id: Scalars['String']['output']
|
|
144
190
|
itemType: Scalars['String']['output']
|
|
@@ -148,11 +194,17 @@ export type ClosingBookItem = {
|
|
|
148
194
|
structureType: Maybe<Scalars['String']['output']>
|
|
149
195
|
}
|
|
150
196
|
|
|
197
|
+
/**
|
|
198
|
+
* The closing book navigation tree — categories + items the UI
|
|
199
|
+
* uses to render the period-close workspace. ``has_data=False`` when
|
|
200
|
+
* the graph has no posted entries yet.
|
|
201
|
+
*/
|
|
151
202
|
export type ClosingBookStructures = {
|
|
152
203
|
categories: Array<ClosingBookCategory>
|
|
153
204
|
hasData: Scalars['Boolean']['output']
|
|
154
205
|
}
|
|
155
206
|
|
|
207
|
+
/** A single draft entry with full line item detail for review. */
|
|
156
208
|
export type DraftEntry = {
|
|
157
209
|
/** True if total_debit == total_credit */
|
|
158
210
|
balanced: Scalars['Boolean']['output']
|
|
@@ -174,6 +226,7 @@ export type DraftEntry = {
|
|
|
174
226
|
type: Scalars['String']['output']
|
|
175
227
|
}
|
|
176
228
|
|
|
229
|
+
/** A single line item within a draft entry. */
|
|
177
230
|
export type DraftLineItem = {
|
|
178
231
|
/** Credit amount in cents */
|
|
179
232
|
creditAmount: Scalars['Int']['output']
|
|
@@ -186,6 +239,7 @@ export type DraftLineItem = {
|
|
|
186
239
|
lineItemId: Scalars['String']['output']
|
|
187
240
|
}
|
|
188
241
|
|
|
242
|
+
/** Element with taxonomy context — extends AccountResponse. */
|
|
189
243
|
export type Element = {
|
|
190
244
|
balanceType: Scalars['String']['output']
|
|
191
245
|
code: Maybe<Scalars['String']['output']>
|
|
@@ -208,14 +262,23 @@ export type Element = {
|
|
|
208
262
|
trait: Maybe<Scalars['String']['output']>
|
|
209
263
|
}
|
|
210
264
|
|
|
265
|
+
/** Paginated element listing with taxonomy context. */
|
|
211
266
|
export type ElementList = {
|
|
212
267
|
elements: Array<Element>
|
|
213
268
|
pagination: PaginationInfo
|
|
214
269
|
}
|
|
215
270
|
|
|
271
|
+
/**
|
|
272
|
+
* Lightweight entity projection for embedding in portfolio-block /
|
|
273
|
+
* position envelopes. Carries identity-only fields; full entity data
|
|
274
|
+
* lives behind the Master Data entity APIs.
|
|
275
|
+
*/
|
|
216
276
|
export type EntityLite = {
|
|
277
|
+
/** Entity ID (`ent_*` ULID). */
|
|
217
278
|
id: Scalars['ID']['output']
|
|
279
|
+
/** Display name of the entity. */
|
|
218
280
|
name: Scalars['String']['output']
|
|
281
|
+
/** Tenant graph this entity is anchored to, when known. `null` for entities not yet linked to a graph. */
|
|
219
282
|
sourceGraphId: Maybe<Scalars['String']['output']>
|
|
220
283
|
}
|
|
221
284
|
|
|
@@ -246,16 +309,30 @@ export type EventBlock = {
|
|
|
246
309
|
status: Scalars['String']['output']
|
|
247
310
|
}
|
|
248
311
|
|
|
312
|
+
/**
|
|
313
|
+
* A single fact row inside a rendered statement.
|
|
314
|
+
*
|
|
315
|
+
* One row per concept, with one value per period column. Subtotals and
|
|
316
|
+
* hierarchy depth come from the structure being projected.
|
|
317
|
+
*/
|
|
249
318
|
export type FactRow = {
|
|
319
|
+
/** Indentation depth in the structure hierarchy (0 = root). */
|
|
250
320
|
depth: Scalars['Int']['output']
|
|
321
|
+
/** Internal element identifier. */
|
|
251
322
|
elementId: Scalars['String']['output']
|
|
323
|
+
/** Human-readable concept label. */
|
|
252
324
|
elementName: Scalars['String']['output']
|
|
325
|
+
/** QName of the reporting concept (e.g. 'us-gaap:Revenues'). */
|
|
253
326
|
elementQname: Scalars['String']['output']
|
|
327
|
+
/** True when the row should render as a subtotal line. */
|
|
254
328
|
isSubtotal: Scalars['Boolean']['output']
|
|
329
|
+
/** Concept trait flag from the structure (e.g. 'total', 'subtotal', 'header'). Drives presentation. */
|
|
255
330
|
trait: Maybe<Scalars['String']['output']>
|
|
331
|
+
/** One value per period column, in the same order as `periods`. Null when the concept had no facts in that window. */
|
|
256
332
|
values: Array<Maybe<Scalars['Float']['output']>>
|
|
257
333
|
}
|
|
258
334
|
|
|
335
|
+
/** Current fiscal calendar state for a graph. */
|
|
259
336
|
export type FiscalCalendar = {
|
|
260
337
|
/** Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed' */
|
|
261
338
|
blockers: Array<Scalars['String']['output']>
|
|
@@ -279,6 +356,13 @@ export type FiscalCalendar = {
|
|
|
279
356
|
periods: Array<FiscalPeriodSummary>
|
|
280
357
|
}
|
|
281
358
|
|
|
359
|
+
/**
|
|
360
|
+
* One fiscal period row — header view used in calendar listings.
|
|
361
|
+
*
|
|
362
|
+
* Status lifecycle: ``open`` → ``closing`` → ``closed``. ``closing``
|
|
363
|
+
* is the transient state during a close run; ``closed_at`` stamps when
|
|
364
|
+
* the lock landed.
|
|
365
|
+
*/
|
|
282
366
|
export type FiscalPeriodSummary = {
|
|
283
367
|
closedAt: Maybe<Scalars['DateTime']['output']>
|
|
284
368
|
endDate: Scalars['Date']['output']
|
|
@@ -289,29 +373,52 @@ export type FiscalPeriodSummary = {
|
|
|
289
373
|
status: Scalars['String']['output']
|
|
290
374
|
}
|
|
291
375
|
|
|
376
|
+
/**
|
|
377
|
+
* All securities held in a single entity, rolled up across the
|
|
378
|
+
* caller's portfolios.
|
|
379
|
+
*/
|
|
292
380
|
export type Holding = {
|
|
381
|
+
/** Issuing entity ID. */
|
|
293
382
|
entityId: Scalars['String']['output']
|
|
383
|
+
/** Display name of the entity. */
|
|
294
384
|
entityName: Scalars['String']['output']
|
|
385
|
+
/** Number of distinct active positions backing these holdings. */
|
|
295
386
|
positionCount: Scalars['Int']['output']
|
|
387
|
+
/** One row per security held in this entity. */
|
|
296
388
|
securities: Array<HoldingSecuritySummary>
|
|
389
|
+
/** Pre-association tenant graph, when set on the securities. */
|
|
297
390
|
sourceGraphId: Maybe<Scalars['String']['output']>
|
|
391
|
+
/** Sum of cost basis across all securities, in dollars. */
|
|
298
392
|
totalCostBasisDollars: Scalars['Float']['output']
|
|
393
|
+
/** Sum of current value across all securities, in dollars. `null` if any security lacks a mark. */
|
|
299
394
|
totalCurrentValueDollars: Maybe<Scalars['Float']['output']>
|
|
300
395
|
}
|
|
301
396
|
|
|
397
|
+
/** One security held by an entity, rolled up across portfolios. */
|
|
302
398
|
export type HoldingSecuritySummary = {
|
|
399
|
+
/** Aggregate cost basis in dollars, summed across all positions. */
|
|
303
400
|
costBasisDollars: Scalars['Float']['output']
|
|
401
|
+
/** Aggregate current value in dollars, or `null` if any underlying position lacks a mark. */
|
|
304
402
|
currentValueDollars: Maybe<Scalars['Float']['output']>
|
|
403
|
+
/** Total quantity held in `quantity_type` units. */
|
|
305
404
|
quantity: Scalars['Float']['output']
|
|
405
|
+
/** Unit basis (`shares`, `units`, `principal`). */
|
|
306
406
|
quantityType: Scalars['String']['output']
|
|
407
|
+
/** Security ID. */
|
|
307
408
|
securityId: Scalars['String']['output']
|
|
409
|
+
/** Display name of the security. */
|
|
308
410
|
securityName: Scalars['String']['output']
|
|
411
|
+
/** Instrument family (e.g. `common_stock`, `warrant`). */
|
|
309
412
|
securityType: Scalars['String']['output']
|
|
310
413
|
}
|
|
311
414
|
|
|
415
|
+
/** Aggregated holdings across all of the caller's portfolios. */
|
|
312
416
|
export type HoldingsList = {
|
|
417
|
+
/** One row per issuing entity. */
|
|
313
418
|
holdings: Array<Holding>
|
|
419
|
+
/** Count of entities represented. */
|
|
314
420
|
totalEntities: Scalars['Int']['output']
|
|
421
|
+
/** Total active positions backing these holdings. */
|
|
315
422
|
totalPositions: Scalars['Int']['output']
|
|
316
423
|
}
|
|
317
424
|
|
|
@@ -335,6 +442,19 @@ export type InformationBlock = {
|
|
|
335
442
|
view: InformationBlockViewProjections
|
|
336
443
|
}
|
|
337
444
|
|
|
445
|
+
/**
|
|
446
|
+
* Classification projection — one row per `association_classifications`
|
|
447
|
+
* junction entry.
|
|
448
|
+
*
|
|
449
|
+
* Association-side only: concept_arrangement, member_arrangement,
|
|
450
|
+
* named_disclosure. Element-side FASB metamodel traits (asset, current,
|
|
451
|
+
* operating, …) live in `TraitLite` via `element_traits`.
|
|
452
|
+
*
|
|
453
|
+
* Carries enough for the envelope caller to render / filter by category +
|
|
454
|
+
* identifier without a follow-up lookup. The full `public.classifications`
|
|
455
|
+
* vocabulary catalog (name / description / metadata) is available via the
|
|
456
|
+
* library GraphQL surface when callers need the details.
|
|
457
|
+
*/
|
|
338
458
|
export type InformationBlockClassification = {
|
|
339
459
|
/** One of the 3 association-level categories in the `public.classifications` CHECK constraint: 'concept_arrangement', 'member_arrangement', or 'named_disclosure'. */
|
|
340
460
|
category: Scalars['String']['output']
|
|
@@ -350,6 +470,12 @@ export type InformationBlockClassification = {
|
|
|
350
470
|
source: Maybe<Scalars['String']['output']>
|
|
351
471
|
}
|
|
352
472
|
|
|
473
|
+
/**
|
|
474
|
+
* Connection (= Association) projection.
|
|
475
|
+
*
|
|
476
|
+
* Renamed at the API boundary to match Charlie's ontology vocabulary.
|
|
477
|
+
* The underlying storage table is still ``associations``.
|
|
478
|
+
*/
|
|
353
479
|
export type InformationBlockConnection = {
|
|
354
480
|
arcrole: Maybe<Scalars['String']['output']>
|
|
355
481
|
/** presentation | calculation | mapping | equivalence | general-special | essence-alias */
|
|
@@ -363,6 +489,14 @@ export type InformationBlockConnection = {
|
|
|
363
489
|
weight: Maybe<Scalars['Float']['output']>
|
|
364
490
|
}
|
|
365
491
|
|
|
492
|
+
/**
|
|
493
|
+
* Element projection for bundling inside an Information Block envelope.
|
|
494
|
+
*
|
|
495
|
+
* Narrower than :class:`LibraryElementResponse` — excludes the heavy fields
|
|
496
|
+
* (labels, references, classifications) that library browsing needs but
|
|
497
|
+
* block consumers don't. Agents + frontends ask for those on demand via
|
|
498
|
+
* the full library GraphQL fields when they need them.
|
|
499
|
+
*/
|
|
366
500
|
export type InformationBlockElement = {
|
|
367
501
|
balanceType: Maybe<Scalars['String']['output']>
|
|
368
502
|
code: Maybe<Scalars['String']['output']>
|
|
@@ -376,6 +510,7 @@ export type InformationBlockElement = {
|
|
|
376
510
|
qname: Maybe<Scalars['String']['output']>
|
|
377
511
|
}
|
|
378
512
|
|
|
513
|
+
/** Fact projection — just the values the envelope caller cares about. */
|
|
379
514
|
export type InformationBlockFact = {
|
|
380
515
|
elementId: Scalars['String']['output']
|
|
381
516
|
/** historical | in_scope */
|
|
@@ -389,6 +524,14 @@ export type InformationBlockFact = {
|
|
|
389
524
|
value: Scalars['Float']['output']
|
|
390
525
|
}
|
|
391
526
|
|
|
527
|
+
/**
|
|
528
|
+
* FactSet projection — period-specific instantiation of the Structure.
|
|
529
|
+
*
|
|
530
|
+
* The envelope carries one ``FactSetLite`` per block when a FactSet row
|
|
531
|
+
* exists for the requested period; legacy writes that pre-date FactSet
|
|
532
|
+
* stamping leave ``fact_set`` null until the expand pass starts
|
|
533
|
+
* populating those rows.
|
|
534
|
+
*/
|
|
392
535
|
export type InformationBlockFactSet = {
|
|
393
536
|
entityId: Scalars['String']['output']
|
|
394
537
|
/** 'report' | 'schedule' | 'custom'. Enum closure enforced by the ``public.fact_sets`` CHECK constraint. */
|
|
@@ -401,6 +544,15 @@ export type InformationBlockFactSet = {
|
|
|
401
544
|
structureId: Maybe<Scalars['String']['output']>
|
|
402
545
|
}
|
|
403
546
|
|
|
547
|
+
/**
|
|
548
|
+
* Pre-computed rendering projection of an Information Block.
|
|
549
|
+
*
|
|
550
|
+
* Computed server-side at envelope-build time for blocks where rendering
|
|
551
|
+
* is deterministic (the statement family today; future block types add
|
|
552
|
+
* their own rendering builders). The frontend's ``BlockView``
|
|
553
|
+
* ``Rendering`` projection consumes this directly — no client-side
|
|
554
|
+
* rollup, depth computation, or calculation walk needed.
|
|
555
|
+
*/
|
|
404
556
|
export type InformationBlockRendering = {
|
|
405
557
|
periods: Array<InformationBlockRenderingPeriod>
|
|
406
558
|
rows: Array<InformationBlockRenderingRow>
|
|
@@ -408,12 +560,22 @@ export type InformationBlockRendering = {
|
|
|
408
560
|
validation: Maybe<InformationBlockValidation>
|
|
409
561
|
}
|
|
410
562
|
|
|
563
|
+
/** One period column in a rendered statement. */
|
|
411
564
|
export type InformationBlockRenderingPeriod = {
|
|
412
565
|
end: Scalars['Date']['output']
|
|
413
566
|
label: Maybe<Scalars['String']['output']>
|
|
414
567
|
start: Scalars['Date']['output']
|
|
415
568
|
}
|
|
416
569
|
|
|
570
|
+
/**
|
|
571
|
+
* One row of a server-side rendered statement.
|
|
572
|
+
*
|
|
573
|
+
* Mirrors :class:`FactRow` from the legacy
|
|
574
|
+
* :mod:`robosystems.operations.roboledger.reports.fact_grid` but lives at
|
|
575
|
+
* the API boundary so envelope consumers don't depend on the
|
|
576
|
+
* fact-grid module. ``values`` is one entry per period column in
|
|
577
|
+
* :class:`RenderingLite.periods`.
|
|
578
|
+
*/
|
|
417
579
|
export type InformationBlockRenderingRow = {
|
|
418
580
|
balanceType: Maybe<Scalars['String']['output']>
|
|
419
581
|
/** FASB elementsOfFinancialStatements trait identifier — 'asset', 'liability', 'equity', 'revenue', 'expense'. Surfaced so the viewer can color-code or group rows without a follow-up trait lookup. */
|
|
@@ -426,6 +588,15 @@ export type InformationBlockRenderingRow = {
|
|
|
426
588
|
values: Array<Maybe<Scalars['Float']['output']>>
|
|
427
589
|
}
|
|
428
590
|
|
|
591
|
+
/**
|
|
592
|
+
* Rule projection for the Information Block envelope.
|
|
593
|
+
*
|
|
594
|
+
* One row per ``public.rules`` entry scoped to this block. The rule
|
|
595
|
+
* engine consumes ``rule_expression`` + ``rule_variables`` to evaluate
|
|
596
|
+
* against the in-scope fact set; the envelope surfaces the rules so
|
|
597
|
+
* the UI can render them as a checklist alongside any persisted
|
|
598
|
+
* verification results.
|
|
599
|
+
*/
|
|
429
600
|
export type InformationBlockRule = {
|
|
430
601
|
id: Scalars['String']['output']
|
|
431
602
|
/** One of 8 cm:VerificationRule subclasses — AutomatedAccountingAndReportingChecks, FundamentalAccountingConceptRelation, PeerConsistencyRule, PriorPeriodConsistencyRule, ReportLevelModelStructureRule, ReportingSystemSpecificRule, ToDoManualTask, XBRLTechnicalSyntaxRule. */
|
|
@@ -442,6 +613,7 @@ export type InformationBlockRule = {
|
|
|
442
613
|
ruleVariables: Array<InformationBlockRuleVariable>
|
|
443
614
|
}
|
|
444
615
|
|
|
616
|
+
/** Polymorphic rule target — points at the atom the rule is scoped to. */
|
|
445
617
|
export type InformationBlockRuleTarget = {
|
|
446
618
|
/** Which atom type the rule targets — 'structure' | 'element' | 'association' | 'taxonomy'. Enum closure enforced by the ``public.rules`` CHECK constraint. */
|
|
447
619
|
targetKind: Scalars['String']['output']
|
|
@@ -449,6 +621,7 @@ export type InformationBlockRuleTarget = {
|
|
|
449
621
|
targetRefId: Scalars['String']['output']
|
|
450
622
|
}
|
|
451
623
|
|
|
624
|
+
/** `$Variable` → concept qname binding for a rule expression. */
|
|
452
625
|
export type InformationBlockRuleVariable = {
|
|
453
626
|
/** Local name in the rule expression, e.g. 'Assets'. */
|
|
454
627
|
variableName: Scalars['String']['output']
|
|
@@ -456,6 +629,14 @@ export type InformationBlockRuleVariable = {
|
|
|
456
629
|
variableQname: Scalars['String']['output']
|
|
457
630
|
}
|
|
458
631
|
|
|
632
|
+
/**
|
|
633
|
+
* Outcome of guard-rail validation on a rendered statement.
|
|
634
|
+
*
|
|
635
|
+
* Distinct from :class:`VerificationResultLite` (which surfaces the
|
|
636
|
+
* rule-engine outcomes from ``public.verification_results``). This lite
|
|
637
|
+
* type carries the synchronous guard-rail checks computed at
|
|
638
|
+
* envelope-build time — accounting equation, totals foot, etc.
|
|
639
|
+
*/
|
|
459
640
|
export type InformationBlockValidation = {
|
|
460
641
|
checks: Array<Scalars['String']['output']>
|
|
461
642
|
failures: Array<Scalars['String']['output']>
|
|
@@ -463,6 +644,14 @@ export type InformationBlockValidation = {
|
|
|
463
644
|
warnings: Array<Scalars['String']['output']>
|
|
464
645
|
}
|
|
465
646
|
|
|
647
|
+
/**
|
|
648
|
+
* Persisted outcome of one Rule evaluation.
|
|
649
|
+
*
|
|
650
|
+
* One row per ``public.verification_results`` entry the rule engine
|
|
651
|
+
* writes. The envelope surfaces them so the block viewer's
|
|
652
|
+
* "Verification Results" tab and MCP ``list-verification-failures``
|
|
653
|
+
* tool can render + aggregate without a second round-trip.
|
|
654
|
+
*/
|
|
466
655
|
export type InformationBlockVerificationResult = {
|
|
467
656
|
evaluatedAt: Maybe<Scalars['DateTime']['output']>
|
|
468
657
|
factSetId: Maybe<Scalars['String']['output']>
|
|
@@ -476,10 +665,27 @@ export type InformationBlockVerificationResult = {
|
|
|
476
665
|
structureId: Maybe<Scalars['String']['output']>
|
|
477
666
|
}
|
|
478
667
|
|
|
668
|
+
/**
|
|
669
|
+
* Charlie's six ``type-of View`` arms, surfaced at the envelope boundary.
|
|
670
|
+
*
|
|
671
|
+
* Each projection is computed server-side at envelope-build time when
|
|
672
|
+
* its source data is available. The frontend's ``BlockView`` dispatcher
|
|
673
|
+
* routes to the projection component matching the user's selected view
|
|
674
|
+
* mode; missing projections (those still in backlog) render as empty
|
|
675
|
+
* states without breaking the dispatcher.
|
|
676
|
+
*
|
|
677
|
+
* Today: ``rendering`` is computed for the statement family.
|
|
678
|
+
* Other arms (``fact_table``, ``model_structure``, ``verification_results``,
|
|
679
|
+
* ``report_elements``, ``business_rules``) come online as their backend
|
|
680
|
+
* support lands; ``fact_table`` is trivially derivable from
|
|
681
|
+
* ``InformationBlockEnvelope.facts`` and may stay as a frontend-only
|
|
682
|
+
* projection.
|
|
683
|
+
*/
|
|
479
684
|
export type InformationBlockViewProjections = {
|
|
480
685
|
rendering: Maybe<InformationBlockRendering>
|
|
481
686
|
}
|
|
482
687
|
|
|
688
|
+
/** The block's intrinsic shape — concept + member arrangement patterns. */
|
|
483
689
|
export type InformationModel = {
|
|
484
690
|
/** roll_up | roll_forward | variance | adjustment | set | arithmetic | textblock. Null for block types where the concept arrangement is implicit in their mechanics. */
|
|
485
691
|
conceptArrangement: Maybe<Scalars['String']['output']>
|
|
@@ -487,41 +693,81 @@ export type InformationModel = {
|
|
|
487
693
|
memberArrangement: Maybe<Scalars['String']['output']>
|
|
488
694
|
}
|
|
489
695
|
|
|
696
|
+
/**
|
|
697
|
+
* Entity details from the extensions OLTP database.
|
|
698
|
+
*
|
|
699
|
+
* Returned by entity reads and `update-entity`. Identifiers
|
|
700
|
+
* (CIK / ticker / SIC / LEI / tax_id) are present when sourced from
|
|
701
|
+
* SEC or registry data; many are null for private companies. The
|
|
702
|
+
* address fields are flattened (no nested object) to make them easy
|
|
703
|
+
* to project into reporting forms.
|
|
704
|
+
*/
|
|
490
705
|
export type LedgerEntity = {
|
|
491
706
|
addressCity: Maybe<Scalars['String']['output']>
|
|
492
707
|
addressCountry: Maybe<Scalars['String']['output']>
|
|
493
708
|
addressLine1: Maybe<Scalars['String']['output']>
|
|
494
709
|
addressPostalCode: Maybe<Scalars['String']['output']>
|
|
495
710
|
addressState: Maybe<Scalars['String']['output']>
|
|
711
|
+
/** Filer category (e.g. 'Large Accelerated Filer'). */
|
|
496
712
|
category: Maybe<Scalars['String']['output']>
|
|
713
|
+
/** SEC CIK (Central Index Key). */
|
|
497
714
|
cik: Maybe<Scalars['String']['output']>
|
|
715
|
+
/** Source connection that ingested this row. */
|
|
498
716
|
connectionId: Maybe<Scalars['String']['output']>
|
|
499
717
|
createdAt: Maybe<Scalars['String']['output']>
|
|
718
|
+
/** Legal form (e.g. 'corporation', 'llc', 'lp'). */
|
|
500
719
|
entityType: Maybe<Scalars['String']['output']>
|
|
720
|
+
/** Listing exchange (e.g. 'NASDAQ', 'NYSE'). */
|
|
501
721
|
exchange: Maybe<Scalars['String']['output']>
|
|
722
|
+
/** Fiscal year-end as MM-DD (e.g. '12-31', '06-30'). */
|
|
502
723
|
fiscalYearEnd: Maybe<Scalars['String']['output']>
|
|
724
|
+
/** Entity identifier (ULID). */
|
|
503
725
|
id: Scalars['String']['output']
|
|
726
|
+
/** Free-form industry label. */
|
|
504
727
|
industry: Maybe<Scalars['String']['output']>
|
|
728
|
+
/** True for top-level entities; False for subsidiaries. */
|
|
505
729
|
isParent: Scalars['Boolean']['output']
|
|
730
|
+
/** Full registered legal name (when different from `name`). */
|
|
506
731
|
legalName: Maybe<Scalars['String']['output']>
|
|
732
|
+
/** Legal Entity Identifier (ISO 17442). */
|
|
507
733
|
lei: Maybe<Scalars['String']['output']>
|
|
734
|
+
/** Display name shown in UI. */
|
|
508
735
|
name: Scalars['String']['output']
|
|
736
|
+
/** Parent entity ID for subsidiaries; null for top-level. */
|
|
509
737
|
parentEntityId: Maybe<Scalars['String']['output']>
|
|
510
738
|
phone: Maybe<Scalars['String']['output']>
|
|
739
|
+
/** SIC industry code. */
|
|
511
740
|
sic: Maybe<Scalars['String']['output']>
|
|
741
|
+
/** SIC code description. */
|
|
512
742
|
sicDescription: Maybe<Scalars['String']['output']>
|
|
743
|
+
/** Provenance: 'native' | 'sec' | 'quickbooks' | 'xero' | 'plaid'. */
|
|
513
744
|
source: Scalars['String']['output']
|
|
745
|
+
/** Origin graph for received entities (cross-graph linking, e.g. RoboInvestor portfolio holdings). */
|
|
514
746
|
sourceGraphId: Maybe<Scalars['String']['output']>
|
|
747
|
+
/** Source-system primary key for sync reconciliation. */
|
|
515
748
|
sourceId: Maybe<Scalars['String']['output']>
|
|
749
|
+
/** US state or country of incorporation. */
|
|
516
750
|
stateOfIncorporation: Maybe<Scalars['String']['output']>
|
|
751
|
+
/** Operational status: 'active' | 'inactive' | 'dissolved'. */
|
|
517
752
|
status: Scalars['String']['output']
|
|
753
|
+
/** Tax ID (EIN / SSN). */
|
|
518
754
|
taxId: Maybe<Scalars['String']['output']>
|
|
755
|
+
/** Stock ticker symbol. */
|
|
519
756
|
ticker: Maybe<Scalars['String']['output']>
|
|
520
757
|
updatedAt: Maybe<Scalars['String']['output']>
|
|
758
|
+
/** Canonical URL / external identifier. */
|
|
521
759
|
uri: Maybe<Scalars['String']['output']>
|
|
522
760
|
website: Maybe<Scalars['String']['output']>
|
|
523
761
|
}
|
|
524
762
|
|
|
763
|
+
/**
|
|
764
|
+
* A journal entry — accounting interpretation of a transaction.
|
|
765
|
+
*
|
|
766
|
+
* Each transaction has 1+ entries; each entry has 2+ line items that
|
|
767
|
+
* must balance. ``status`` is the draft/posted/reversed lifecycle;
|
|
768
|
+
* ``type`` is the entry classification ('standard' | 'adjusting' |
|
|
769
|
+
* 'closing' | 'reversing').
|
|
770
|
+
*/
|
|
525
771
|
export type LedgerEntry = {
|
|
526
772
|
id: Scalars['String']['output']
|
|
527
773
|
lineItems: Array<LedgerLineItem>
|
|
@@ -533,6 +779,10 @@ export type LedgerEntry = {
|
|
|
533
779
|
type: Scalars['String']['output']
|
|
534
780
|
}
|
|
535
781
|
|
|
782
|
+
/**
|
|
783
|
+
* One debit/credit line within a journal entry. Always exactly one
|
|
784
|
+
* side has a non-zero amount.
|
|
785
|
+
*/
|
|
536
786
|
export type LedgerLineItem = {
|
|
537
787
|
accountCode: Maybe<Scalars['String']['output']>
|
|
538
788
|
accountId: Scalars['String']['output']
|
|
@@ -544,6 +794,15 @@ export type LedgerLineItem = {
|
|
|
544
794
|
lineOrder: Scalars['Int']['output']
|
|
545
795
|
}
|
|
546
796
|
|
|
797
|
+
/**
|
|
798
|
+
* High-level rollup of a graph's ledger state — counts plus the
|
|
799
|
+
* date-range bookends and integration sync timestamp.
|
|
800
|
+
*
|
|
801
|
+
* Used by dashboards and the onboarding wizard to answer "is this
|
|
802
|
+
* graph populated yet?" without walking every transaction. ``connection_count``
|
|
803
|
+
* reflects active integrations (QuickBooks / Plaid / etc.); a non-null
|
|
804
|
+
* ``last_sync_at`` means at least one connection has run.
|
|
805
|
+
*/
|
|
547
806
|
export type LedgerSummary = {
|
|
548
807
|
accountCount: Scalars['Int']['output']
|
|
549
808
|
connectionCount: Scalars['Int']['output']
|
|
@@ -556,6 +815,10 @@ export type LedgerSummary = {
|
|
|
556
815
|
transactionCount: Scalars['Int']['output']
|
|
557
816
|
}
|
|
558
817
|
|
|
818
|
+
/**
|
|
819
|
+
* Full transaction detail — header + every journal entry + every
|
|
820
|
+
* line item underneath. Used by the transaction detail page.
|
|
821
|
+
*/
|
|
559
822
|
export type LedgerTransactionDetail = {
|
|
560
823
|
amount: Scalars['Float']['output']
|
|
561
824
|
category: Maybe<Scalars['String']['output']>
|
|
@@ -575,11 +838,20 @@ export type LedgerTransactionDetail = {
|
|
|
575
838
|
type: Scalars['String']['output']
|
|
576
839
|
}
|
|
577
840
|
|
|
841
|
+
/** Paginated transaction listing — header view. */
|
|
578
842
|
export type LedgerTransactionList = {
|
|
579
843
|
pagination: PaginationInfo
|
|
580
844
|
transactions: Array<LedgerTransactionSummary>
|
|
581
845
|
}
|
|
582
846
|
|
|
847
|
+
/**
|
|
848
|
+
* Transaction header — list/grid view without entries.
|
|
849
|
+
*
|
|
850
|
+
* Transaction is the business-event level (what happened in the real
|
|
851
|
+
* world). Entries (journal entries) live one level down and are loaded
|
|
852
|
+
* in the detail view. ``source`` distinguishes integration-imported
|
|
853
|
+
* rows (quickbooks / xero / plaid) from native-created ones.
|
|
854
|
+
*/
|
|
583
855
|
export type LedgerTransactionSummary = {
|
|
584
856
|
amount: Scalars['Float']['output']
|
|
585
857
|
category: Maybe<Scalars['String']['output']>
|
|
@@ -596,6 +868,7 @@ export type LedgerTransactionSummary = {
|
|
|
596
868
|
type: Scalars['String']['output']
|
|
597
869
|
}
|
|
598
870
|
|
|
871
|
+
/** An arc between two library elements (parent-child, equivalence, etc). */
|
|
599
872
|
export type LibraryAssociation = {
|
|
600
873
|
arcrole: Maybe<Scalars['String']['output']>
|
|
601
874
|
/** presentation | calculation | mapping | equivalence | general-special | essence-alias */
|
|
@@ -613,6 +886,7 @@ export type LibraryAssociation = {
|
|
|
613
886
|
weight: Maybe<Scalars['Float']['output']>
|
|
614
887
|
}
|
|
615
888
|
|
|
889
|
+
/** A library element (concept, abstract, axis, member, or hypercube). */
|
|
616
890
|
export type LibraryElement = {
|
|
617
891
|
/** debit | credit */
|
|
618
892
|
balanceType: Scalars['String']['output']
|
|
@@ -637,6 +911,18 @@ export type LibraryElement = {
|
|
|
637
911
|
trait: Maybe<Scalars['String']['output']>
|
|
638
912
|
}
|
|
639
913
|
|
|
914
|
+
/**
|
|
915
|
+
* A mapping arc involving a specific element.
|
|
916
|
+
*
|
|
917
|
+
* Flat row view: one arc, oriented from the perspective of the element
|
|
918
|
+
* being inspected. `peer` is the other end; `direction` says whether
|
|
919
|
+
* this element is the source ('outgoing') or the target ('incoming').
|
|
920
|
+
*
|
|
921
|
+
* Scoped to arcs whose structure belongs to a `taxonomy_type='mapping'`
|
|
922
|
+
* taxonomy — the cross-taxonomy bridges (equivalence, general-special,
|
|
923
|
+
* type-subtype). Hierarchical arcs inside a single reporting taxonomy
|
|
924
|
+
* are out of scope.
|
|
925
|
+
*/
|
|
640
926
|
export type LibraryElementArc = {
|
|
641
927
|
arcrole: Maybe<Scalars['String']['output']>
|
|
642
928
|
associationType: Scalars['String']['output']
|
|
@@ -651,6 +937,13 @@ export type LibraryElementArc = {
|
|
|
651
937
|
taxonomyStandard: Maybe<Scalars['String']['output']>
|
|
652
938
|
}
|
|
653
939
|
|
|
940
|
+
/**
|
|
941
|
+
* One FASB metamodel trait assigned to a library element.
|
|
942
|
+
*
|
|
943
|
+
* A single element can carry multiple traits across multiple categories
|
|
944
|
+
* (e.g. elementsOfFinancialStatements=expense AND
|
|
945
|
+
* operatingNonoperating=operating AND liquidity=current).
|
|
946
|
+
*/
|
|
654
947
|
export type LibraryElementClassification = {
|
|
655
948
|
/** Trait axis (e.g. elementsOfFinancialStatements) */
|
|
656
949
|
category: Scalars['String']['output']
|
|
@@ -667,11 +960,18 @@ export type LibraryElementTreeNode = {
|
|
|
667
960
|
element: LibraryElement
|
|
668
961
|
}
|
|
669
962
|
|
|
963
|
+
/**
|
|
964
|
+
* An element and its equivalence peers.
|
|
965
|
+
*
|
|
966
|
+
* Answers "what other concepts mean the same thing as this one" — the
|
|
967
|
+
* FAC→us-gaap collapse pattern rendered as an API shape.
|
|
968
|
+
*/
|
|
670
969
|
export type LibraryEquivalence = {
|
|
671
970
|
element: LibraryElement
|
|
672
971
|
equivalents: Array<LibraryElement>
|
|
673
972
|
}
|
|
674
973
|
|
|
974
|
+
/** A label on a library element. */
|
|
675
975
|
export type LibraryLabel = {
|
|
676
976
|
/** Language code */
|
|
677
977
|
language: Scalars['String']['output']
|
|
@@ -681,6 +981,7 @@ export type LibraryLabel = {
|
|
|
681
981
|
text: Scalars['String']['output']
|
|
682
982
|
}
|
|
683
983
|
|
|
984
|
+
/** A cross-reference on a library element (FASB ASC, SEC, etc). */
|
|
684
985
|
export type LibraryReference = {
|
|
685
986
|
/** Full citation text */
|
|
686
987
|
citation: Scalars['String']['output']
|
|
@@ -690,6 +991,7 @@ export type LibraryReference = {
|
|
|
690
991
|
uri: Maybe<Scalars['String']['output']>
|
|
691
992
|
}
|
|
692
993
|
|
|
994
|
+
/** A named structure (extended link role) within a library taxonomy. */
|
|
693
995
|
export type LibraryStructure = {
|
|
694
996
|
id: Scalars['String']['output']
|
|
695
997
|
isActive: Scalars['Boolean']['output']
|
|
@@ -701,6 +1003,7 @@ export type LibraryStructure = {
|
|
|
701
1003
|
taxonomyId: Scalars['String']['output']
|
|
702
1004
|
}
|
|
703
1005
|
|
|
1006
|
+
/** A library taxonomy (fac, us-gaap, rs-gaap, …). */
|
|
704
1007
|
export type LibraryTaxonomy = {
|
|
705
1008
|
description: Maybe<Scalars['String']['output']>
|
|
706
1009
|
/** Total elements in this taxonomy (computed on demand) */
|
|
@@ -718,11 +1021,13 @@ export type LibraryTaxonomy = {
|
|
|
718
1021
|
version: Maybe<Scalars['String']['output']>
|
|
719
1022
|
}
|
|
720
1023
|
|
|
1024
|
+
/** Trial balance rolled up to reporting concepts via mapping associations. */
|
|
721
1025
|
export type MappedTrialBalance = {
|
|
722
1026
|
mappingId: Scalars['String']['output']
|
|
723
1027
|
rows: Array<MappedTrialBalanceRow>
|
|
724
1028
|
}
|
|
725
1029
|
|
|
1030
|
+
/** One reporting-concept row in the mapped trial balance. */
|
|
726
1031
|
export type MappedTrialBalanceRow = {
|
|
727
1032
|
balanceType: Maybe<Scalars['String']['output']>
|
|
728
1033
|
netBalance: Scalars['Float']['output']
|
|
@@ -734,6 +1039,7 @@ export type MappedTrialBalanceRow = {
|
|
|
734
1039
|
trait: Maybe<Scalars['String']['output']>
|
|
735
1040
|
}
|
|
736
1041
|
|
|
1042
|
+
/** Coverage stats for a mapping. */
|
|
737
1043
|
export type MappingCoverage = {
|
|
738
1044
|
coveragePercent: Scalars['Float']['output']
|
|
739
1045
|
highConfidence: Scalars['Int']['output']
|
|
@@ -745,6 +1051,7 @@ export type MappingCoverage = {
|
|
|
745
1051
|
unmappedCount: Scalars['Int']['output']
|
|
746
1052
|
}
|
|
747
1053
|
|
|
1054
|
+
/** A mapping structure with all its associations. */
|
|
748
1055
|
export type MappingDetail = {
|
|
749
1056
|
associations: Array<Association>
|
|
750
1057
|
id: Scalars['String']['output']
|
|
@@ -754,6 +1061,7 @@ export type MappingDetail = {
|
|
|
754
1061
|
totalAssociations: Scalars['Int']['output']
|
|
755
1062
|
}
|
|
756
1063
|
|
|
1064
|
+
/** Pagination information for list responses. */
|
|
757
1065
|
export type PaginationInfo = {
|
|
758
1066
|
/** Whether more items are available */
|
|
759
1067
|
hasMore: Scalars['Boolean']['output']
|
|
@@ -765,6 +1073,13 @@ export type PaginationInfo = {
|
|
|
765
1073
|
total: Scalars['Int']['output']
|
|
766
1074
|
}
|
|
767
1075
|
|
|
1076
|
+
/**
|
|
1077
|
+
* One schedule's contribution to a period close — drafted closing
|
|
1078
|
+
* entry plus its reversal (when ``auto_reverse=True``).
|
|
1079
|
+
*
|
|
1080
|
+
* ``status`` is the closing entry's draft/posted lifecycle. The
|
|
1081
|
+
* reversal mirrors the same shape with ``reversal_*`` fields.
|
|
1082
|
+
*/
|
|
768
1083
|
export type PeriodCloseItem = {
|
|
769
1084
|
amount: Scalars['Float']['output']
|
|
770
1085
|
entryId: Maybe<Scalars['String']['output']>
|
|
@@ -775,6 +1090,14 @@ export type PeriodCloseItem = {
|
|
|
775
1090
|
structureName: Scalars['String']['output']
|
|
776
1091
|
}
|
|
777
1092
|
|
|
1093
|
+
/**
|
|
1094
|
+
* Period-close dashboard view — every schedule in scope for the
|
|
1095
|
+
* period plus drafted/posted entry totals.
|
|
1096
|
+
*
|
|
1097
|
+
* Use to drive the close-period UI: schedules with ``status='draft'``
|
|
1098
|
+
* are pending close; ``period_status`` reflects the calendar's lock
|
|
1099
|
+
* state for the period.
|
|
1100
|
+
*/
|
|
778
1101
|
export type PeriodCloseStatus = {
|
|
779
1102
|
fiscalPeriodEnd: Scalars['Date']['output']
|
|
780
1103
|
fiscalPeriodStart: Scalars['Date']['output']
|
|
@@ -784,6 +1107,7 @@ export type PeriodCloseStatus = {
|
|
|
784
1107
|
totalPosted: Scalars['Int']['output']
|
|
785
1108
|
}
|
|
786
1109
|
|
|
1110
|
+
/** All draft entries for a fiscal period, ready for review before close. */
|
|
787
1111
|
export type PeriodDrafts = {
|
|
788
1112
|
/** True if every draft entry has debit == credit */
|
|
789
1113
|
allBalanced: Scalars['Boolean']['output']
|
|
@@ -799,118 +1123,244 @@ export type PeriodDrafts = {
|
|
|
799
1123
|
totalDebit: Scalars['Int']['output']
|
|
800
1124
|
}
|
|
801
1125
|
|
|
1126
|
+
/**
|
|
1127
|
+
* A single reporting period column.
|
|
1128
|
+
*
|
|
1129
|
+
* Reports render facts in N period columns side-by-side. Each
|
|
1130
|
+
* ``PeriodSpec`` is one column — its ``start``/``end`` define the
|
|
1131
|
+
* window the report's facts roll up into; ``label`` is what the renderer
|
|
1132
|
+
* prints in the column header. For year-over-year statements, supply two
|
|
1133
|
+
* PeriodSpecs (current + comparative); for YTD by quarter, supply four.
|
|
1134
|
+
*/
|
|
802
1135
|
export type PeriodSpec = {
|
|
1136
|
+
/** Period end date (inclusive). Window the column rolls up. */
|
|
803
1137
|
end: Scalars['Date']['output']
|
|
1138
|
+
/** Column header label (e.g. 'FY2025 Q3', '2024', 'YTD'). */
|
|
804
1139
|
label: Scalars['String']['output']
|
|
1140
|
+
/** Period start date (inclusive). Window the column rolls up. */
|
|
805
1141
|
start: Scalars['Date']['output']
|
|
806
1142
|
}
|
|
807
1143
|
|
|
1144
|
+
/**
|
|
1145
|
+
* Read projection for a single portfolio — core fields only.
|
|
1146
|
+
*
|
|
1147
|
+
* Position-level holdings live on the dedicated portfolio-block envelope
|
|
1148
|
+
* (`PortfolioBlockEnvelope`) returned by molecular operations.
|
|
1149
|
+
*/
|
|
808
1150
|
export type Portfolio = {
|
|
1151
|
+
/** ISO 4217 currency code used for portfolio-level aggregates. */
|
|
809
1152
|
baseCurrency: Scalars['String']['output']
|
|
1153
|
+
/** Row creation timestamp (UTC). */
|
|
810
1154
|
createdAt: Scalars['DateTime']['output']
|
|
1155
|
+
/** Free-text description. */
|
|
811
1156
|
description: Maybe<Scalars['String']['output']>
|
|
1157
|
+
/** Portfolio ID (`port_*` ULID). */
|
|
812
1158
|
id: Scalars['String']['output']
|
|
1159
|
+
/** Date the portfolio was established (YYYY-MM-DD). */
|
|
813
1160
|
inceptionDate: Maybe<Scalars['Date']['output']>
|
|
1161
|
+
/** Display name. */
|
|
814
1162
|
name: Scalars['String']['output']
|
|
1163
|
+
/** Free-text strategy classification (e.g. `value`, `growth`, `income`). Open vocabulary. */
|
|
815
1164
|
strategy: Maybe<Scalars['String']['output']>
|
|
1165
|
+
/** Last-modified timestamp (UTC). */
|
|
816
1166
|
updatedAt: Scalars['DateTime']['output']
|
|
817
1167
|
}
|
|
818
1168
|
|
|
1169
|
+
/**
|
|
1170
|
+
* Molecular response shape for portfolio-block operations.
|
|
1171
|
+
*
|
|
1172
|
+
* Bundles the portfolio core, its embedded positions, and pre-computed
|
|
1173
|
+
* totals into a single payload — the contract for `create-portfolio-block`,
|
|
1174
|
+
* `update-portfolio-block`, and the read-side `get-portfolio-block`.
|
|
1175
|
+
* Cents-precision values aren't surfaced here; use `PositionResponse`
|
|
1176
|
+
* / `PortfolioResponse` for those.
|
|
1177
|
+
*/
|
|
819
1178
|
export type PortfolioBlock = {
|
|
1179
|
+
/** Count of positions with `status='active'`. */
|
|
820
1180
|
activePositionCount: Scalars['Int']['output']
|
|
1181
|
+
/** ISO 4217 currency code for portfolio aggregates. */
|
|
821
1182
|
baseCurrency: Scalars['String']['output']
|
|
1183
|
+
/** Row creation timestamp (UTC). */
|
|
822
1184
|
createdAt: Scalars['DateTime']['output']
|
|
1185
|
+
/** Free-text description. */
|
|
823
1186
|
description: Maybe<Scalars['String']['output']>
|
|
1187
|
+
/** Portfolio ID (`port_*` ULID). */
|
|
824
1188
|
id: Scalars['ID']['output']
|
|
1189
|
+
/** Date the portfolio was established. */
|
|
825
1190
|
inceptionDate: Maybe<Scalars['Date']['output']>
|
|
1191
|
+
/** Display name. */
|
|
826
1192
|
name: Scalars['String']['output']
|
|
1193
|
+
/** Embedded owning entity, when set. `null` for unattributed portfolios. */
|
|
827
1194
|
owner: Maybe<EntityLite>
|
|
1195
|
+
/** All positions in this portfolio, including disposed ones (filter by `status` for active-only display). */
|
|
828
1196
|
positions: Array<PositionBlock>
|
|
1197
|
+
/** Free-text strategy classification. */
|
|
829
1198
|
strategy: Maybe<Scalars['String']['output']>
|
|
1199
|
+
/** Sum of `cost_basis_dollars` across every position. */
|
|
830
1200
|
totalCostBasisDollars: Scalars['Float']['output']
|
|
1201
|
+
/** Sum of `current_value_dollars` across every position. `null` when any active position lacks a mark. */
|
|
831
1202
|
totalCurrentValueDollars: Maybe<Scalars['Float']['output']>
|
|
1203
|
+
/** Last-modified timestamp (UTC). */
|
|
832
1204
|
updatedAt: Scalars['DateTime']['output']
|
|
833
1205
|
}
|
|
834
1206
|
|
|
1207
|
+
/** Paginated list of portfolios. */
|
|
835
1208
|
export type PortfolioList = {
|
|
1209
|
+
/** Pagination cursor and totals. */
|
|
836
1210
|
pagination: PaginationInfo
|
|
1211
|
+
/** Portfolios on this page. */
|
|
837
1212
|
portfolios: Array<Portfolio>
|
|
838
1213
|
}
|
|
839
1214
|
|
|
1215
|
+
/**
|
|
1216
|
+
* Read projection for a single position.
|
|
1217
|
+
*
|
|
1218
|
+
* Pairs cents-precision fields (`cost_basis`, `current_value`) with
|
|
1219
|
+
* pre-computed dollar floats (`*_dollars`) to spare clients the
|
|
1220
|
+
* conversion. The cents fields are authoritative.
|
|
1221
|
+
*/
|
|
840
1222
|
export type Position = {
|
|
1223
|
+
/** Date the position was acquired (YYYY-MM-DD). */
|
|
841
1224
|
acquisitionDate: Maybe<Scalars['Date']['output']>
|
|
1225
|
+
/** Cost basis in **cents** of `currency`. Authoritative. */
|
|
842
1226
|
costBasis: Scalars['Int']['output']
|
|
1227
|
+
/** Cost basis pre-converted to dollars (`cost_basis / 100`). Convenience for display; `cost_basis` is the source of truth. */
|
|
843
1228
|
costBasisDollars: Scalars['Float']['output']
|
|
1229
|
+
/** Row creation timestamp (UTC). */
|
|
844
1230
|
createdAt: Scalars['DateTime']['output']
|
|
1231
|
+
/** ISO 4217 currency code for `cost_basis` and `current_value`. */
|
|
845
1232
|
currency: Scalars['String']['output']
|
|
1233
|
+
/** Latest mark-to-market value in **cents**, or `null` if unmarked. */
|
|
846
1234
|
currentValue: Maybe<Scalars['Int']['output']>
|
|
1235
|
+
/** Current value in dollars (`current_value / 100`). `null` when `current_value` is null. */
|
|
847
1236
|
currentValueDollars: Maybe<Scalars['Float']['output']>
|
|
1237
|
+
/** Date the position was disposed, if `status='disposed'`. `null` for active positions. */
|
|
848
1238
|
dispositionDate: Maybe<Scalars['Date']['output']>
|
|
1239
|
+
/** Cached display name of the security's issuing entity. */
|
|
849
1240
|
entityName: Maybe<Scalars['String']['output']>
|
|
1241
|
+
/** Position ID (`pos_*` ULID). */
|
|
850
1242
|
id: Scalars['String']['output']
|
|
1243
|
+
/** Free-text notes attached to the position. */
|
|
851
1244
|
notes: Maybe<Scalars['String']['output']>
|
|
1245
|
+
/** Owning portfolio ID. */
|
|
852
1246
|
portfolioId: Scalars['String']['output']
|
|
1247
|
+
/** Quantity held in units defined by `quantity_type`. */
|
|
853
1248
|
quantity: Scalars['Float']['output']
|
|
1249
|
+
/** Unit basis (`shares`, `units`, `principal`). */
|
|
854
1250
|
quantityType: Scalars['String']['output']
|
|
1251
|
+
/** Held security ID. */
|
|
855
1252
|
securityId: Scalars['String']['output']
|
|
1253
|
+
/** Cached display name of the held security, denormalized for list rendering. May lag the security row's current name briefly. */
|
|
856
1254
|
securityName: Maybe<Scalars['String']['output']>
|
|
1255
|
+
/** Lifecycle state. One of: `active` (currently held), `disposed` (soft-deleted via `update-portfolio-block` dispose), `archived` (historical record only). */
|
|
857
1256
|
status: Scalars['String']['output']
|
|
1257
|
+
/** Last-modified timestamp (UTC). */
|
|
858
1258
|
updatedAt: Scalars['DateTime']['output']
|
|
1259
|
+
/** Date `current_value` was sourced (YYYY-MM-DD). */
|
|
859
1260
|
valuationDate: Maybe<Scalars['Date']['output']>
|
|
1261
|
+
/** Free-text source attribution for the current valuation. */
|
|
860
1262
|
valuationSource: Maybe<Scalars['String']['output']>
|
|
861
1263
|
}
|
|
862
1264
|
|
|
1265
|
+
/**
|
|
1266
|
+
* Position projection embedded inside a `PortfolioBlockEnvelope`.
|
|
1267
|
+
*
|
|
1268
|
+
* Pre-converts cents fields to dollars (`cost_basis_dollars`,
|
|
1269
|
+
* `current_value_dollars`) for display; the cents-precision fields
|
|
1270
|
+
* live on the standalone `PositionResponse`. Embeds a `SecurityLite`
|
|
1271
|
+
* so callers can render the security name without a follow-up fetch.
|
|
1272
|
+
*/
|
|
863
1273
|
export type PositionBlock = {
|
|
1274
|
+
/** Date the position was acquired. */
|
|
864
1275
|
acquisitionDate: Maybe<Scalars['Date']['output']>
|
|
1276
|
+
/** Cost basis in dollars (pre-converted from cents). */
|
|
865
1277
|
costBasisDollars: Scalars['Float']['output']
|
|
1278
|
+
/** Latest mark-to-market value in dollars. `null` when the position has not been marked. */
|
|
866
1279
|
currentValueDollars: Maybe<Scalars['Float']['output']>
|
|
1280
|
+
/** Position ID (`pos_*` ULID). */
|
|
867
1281
|
id: Scalars['ID']['output']
|
|
1282
|
+
/** Free-text notes attached to the position. */
|
|
868
1283
|
notes: Maybe<Scalars['String']['output']>
|
|
1284
|
+
/** Quantity held in `quantity_type` units. */
|
|
869
1285
|
quantity: Scalars['Float']['output']
|
|
1286
|
+
/** Unit basis (`shares`, `units`, `principal`). */
|
|
870
1287
|
quantityType: Scalars['String']['output']
|
|
1288
|
+
/** Embedded security details — name, type, issuer. */
|
|
871
1289
|
security: SecurityLite
|
|
1290
|
+
/** Lifecycle state (`active`, `disposed`, `archived`). See `PositionResponse.status` for the full vocabulary. */
|
|
872
1291
|
status: Scalars['String']['output']
|
|
1292
|
+
/** Date the current value was sourced. */
|
|
873
1293
|
valuationDate: Maybe<Scalars['Date']['output']>
|
|
1294
|
+
/** Free-text source attribution for the valuation. */
|
|
874
1295
|
valuationSource: Maybe<Scalars['String']['output']>
|
|
875
1296
|
}
|
|
876
1297
|
|
|
1298
|
+
/** Paginated list of positions. */
|
|
877
1299
|
export type PositionList = {
|
|
1300
|
+
/** Pagination cursor and totals. */
|
|
878
1301
|
pagination: PaginationInfo
|
|
1302
|
+
/** Positions on this page. */
|
|
879
1303
|
positions: Array<Position>
|
|
880
1304
|
}
|
|
881
1305
|
|
|
1306
|
+
/** Publish list summary — header metadata, no members. */
|
|
882
1307
|
export type PublishList = {
|
|
1308
|
+
/** When the list was created. */
|
|
883
1309
|
createdAt: Scalars['DateTime']['output']
|
|
1310
|
+
/** User ID that created the list. */
|
|
884
1311
|
createdBy: Scalars['String']['output']
|
|
1312
|
+
/** Free-form description. */
|
|
885
1313
|
description: Maybe<Scalars['String']['output']>
|
|
1314
|
+
/** List identifier (ULID). */
|
|
886
1315
|
id: Scalars['String']['output']
|
|
1316
|
+
/** Number of recipient graphs currently on the list. */
|
|
887
1317
|
memberCount: Scalars['Int']['output']
|
|
1318
|
+
/** Human-readable list name. */
|
|
888
1319
|
name: Scalars['String']['output']
|
|
1320
|
+
/** Last metadata update (name/description). */
|
|
889
1321
|
updatedAt: Scalars['DateTime']['output']
|
|
890
1322
|
}
|
|
891
1323
|
|
|
1324
|
+
/** Full detail including members. */
|
|
892
1325
|
export type PublishListDetail = {
|
|
1326
|
+
/** When the list was created. */
|
|
893
1327
|
createdAt: Scalars['DateTime']['output']
|
|
1328
|
+
/** User ID that created the list. */
|
|
894
1329
|
createdBy: Scalars['String']['output']
|
|
1330
|
+
/** Free-form description. */
|
|
895
1331
|
description: Maybe<Scalars['String']['output']>
|
|
1332
|
+
/** List identifier (ULID). */
|
|
896
1333
|
id: Scalars['String']['output']
|
|
1334
|
+
/** Number of recipient graphs currently on the list. */
|
|
897
1335
|
memberCount: Scalars['Int']['output']
|
|
1336
|
+
/** All recipient graphs on the list. */
|
|
898
1337
|
members: Array<PublishListMember>
|
|
1338
|
+
/** Human-readable list name. */
|
|
899
1339
|
name: Scalars['String']['output']
|
|
1340
|
+
/** Last metadata update (name/description). */
|
|
900
1341
|
updatedAt: Scalars['DateTime']['output']
|
|
901
1342
|
}
|
|
902
1343
|
|
|
1344
|
+
/** Paginated list of publish lists owned by the current graph. */
|
|
903
1345
|
export type PublishListList = {
|
|
904
1346
|
pagination: PaginationInfo
|
|
1347
|
+
/** Publish list summaries, newest first. */
|
|
905
1348
|
publishLists: Array<PublishList>
|
|
906
1349
|
}
|
|
907
1350
|
|
|
1351
|
+
/** One recipient graph in a publish list. */
|
|
908
1352
|
export type PublishListMember = {
|
|
1353
|
+
/** When the member was added. */
|
|
909
1354
|
addedAt: Scalars['DateTime']['output']
|
|
1355
|
+
/** User ID that added this member. */
|
|
910
1356
|
addedBy: Scalars['String']['output']
|
|
1357
|
+
/** Membership row identifier (ULID). */
|
|
911
1358
|
id: Scalars['String']['output']
|
|
1359
|
+
/** Recipient graph ID. */
|
|
912
1360
|
targetGraphId: Scalars['String']['output']
|
|
1361
|
+
/** Display name of the recipient graph (if known). */
|
|
913
1362
|
targetGraphName: Maybe<Scalars['String']['output']>
|
|
1363
|
+
/** Display name of the org that owns the recipient graph. */
|
|
914
1364
|
targetOrgName: Maybe<Scalars['String']['output']>
|
|
915
1365
|
}
|
|
916
1366
|
|
|
@@ -1235,34 +1685,68 @@ export type QueryUnmappedElementsArgs = {
|
|
|
1235
1685
|
mappingId?: InputMaybe<Scalars['String']['input']>
|
|
1236
1686
|
}
|
|
1237
1687
|
|
|
1688
|
+
/**
|
|
1689
|
+
* Report definition summary — header metadata, no facts.
|
|
1690
|
+
*
|
|
1691
|
+
* Returned by ``create-report``, ``regenerate-report``,
|
|
1692
|
+
* ``file-report``, and ``transition-filing-status``. Use the package
|
|
1693
|
+
* read endpoint to retrieve a Report rehydrated with its rendered
|
|
1694
|
+
* ``InformationBlockEnvelope`` items.
|
|
1695
|
+
*/
|
|
1238
1696
|
export type Report = {
|
|
1697
|
+
/** True when the report was created by an AI agent rather than a user. */
|
|
1239
1698
|
aiGenerated: Scalars['Boolean']['output']
|
|
1699
|
+
/** True when an auto-generated prior-period column is included. */
|
|
1240
1700
|
comparative: Scalars['Boolean']['output']
|
|
1701
|
+
/** When the report row was created. */
|
|
1241
1702
|
createdAt: Scalars['DateTime']['output']
|
|
1703
|
+
/** Display name of the primary entity the report is tagged to. */
|
|
1242
1704
|
entityName: Maybe<Scalars['String']['output']>
|
|
1705
|
+
/** When the report was transitioned to `filed`. */
|
|
1243
1706
|
filedAt: Maybe<Scalars['DateTime']['output']>
|
|
1707
|
+
/** User ID that transitioned the report to `filed`. */
|
|
1244
1708
|
filedBy: Maybe<Scalars['String']['output']>
|
|
1709
|
+
/** Filing lifecycle (orthogonal to `generation_status`): `draft`, `under_review`, `filed`, `archived`. */
|
|
1245
1710
|
filingStatus: Scalars['String']['output']
|
|
1711
|
+
/** Computation lifecycle: `generating`, `published`, `failed`. Orthogonal to `filing_status`. */
|
|
1246
1712
|
generationStatus: Scalars['String']['output']
|
|
1713
|
+
/** Report identifier (ULID). */
|
|
1247
1714
|
id: Scalars['String']['output']
|
|
1715
|
+
/** When the facts were last (re)generated. */
|
|
1248
1716
|
lastGenerated: Maybe<Scalars['DateTime']['output']>
|
|
1717
|
+
/** CoA → taxonomy mapping the facts were rolled up through. */
|
|
1249
1718
|
mappingId: Maybe<Scalars['String']['output']>
|
|
1719
|
+
/** Human-readable report name. */
|
|
1250
1720
|
name: Scalars['String']['output']
|
|
1721
|
+
/** Current-period end. */
|
|
1251
1722
|
periodEnd: Maybe<Scalars['Date']['output']>
|
|
1723
|
+
/** Current-period start. */
|
|
1252
1724
|
periodStart: Maybe<Scalars['Date']['output']>
|
|
1725
|
+
/** Period cadence: `monthly`, `quarterly`, `annual`. */
|
|
1253
1726
|
periodType: Scalars['String']['output']
|
|
1727
|
+
/** Explicit period columns when the report was created with a multi-period layout. */
|
|
1254
1728
|
periods: Maybe<Array<PeriodSpec>>
|
|
1729
|
+
/** Counts by rule outcome (e.g. `{'passed': 12, 'failed': 1}`) from the most recent evaluation. Null until rules run. */
|
|
1255
1730
|
ruleSummary: Maybe<Scalars['JSON']['output']>
|
|
1731
|
+
/** When the report was shared into this graph (recipient side). */
|
|
1256
1732
|
sharedAt: Maybe<Scalars['DateTime']['output']>
|
|
1733
|
+
/** Origin graph for received (shared) reports — populated only on the recipient's copy. */
|
|
1257
1734
|
sourceGraphId: Maybe<Scalars['String']['output']>
|
|
1735
|
+
/** Origin report ID for received (shared) reports — populated only on the recipient's copy. */
|
|
1258
1736
|
sourceReportId: Maybe<Scalars['String']['output']>
|
|
1737
|
+
/** Structures available for this report's taxonomy — renderable sections (BS / IS / CF / Equity / Schedules). */
|
|
1259
1738
|
structures: Array<StructureSummary>
|
|
1739
|
+
/** When this report has been restated, the successor's report ID. */
|
|
1260
1740
|
supersededById: Maybe<Scalars['String']['output']>
|
|
1741
|
+
/** When this report restates an earlier filing, the predecessor's report ID. */
|
|
1261
1742
|
supersedesId: Maybe<Scalars['String']['output']>
|
|
1743
|
+
/** Taxonomy this report renders against. */
|
|
1262
1744
|
taxonomyId: Scalars['String']['output']
|
|
1263
1745
|
}
|
|
1264
1746
|
|
|
1747
|
+
/** List of report header summaries (used by report list reads). */
|
|
1265
1748
|
export type ReportList = {
|
|
1749
|
+
/** Report definitions, newest first. */
|
|
1266
1750
|
reports: Array<Report>
|
|
1267
1751
|
}
|
|
1268
1752
|
|
|
@@ -1319,27 +1803,62 @@ export type SecurityList = {
|
|
|
1319
1803
|
securities: Array<Security>
|
|
1320
1804
|
}
|
|
1321
1805
|
|
|
1806
|
+
/**
|
|
1807
|
+
* Lightweight security projection for embedding in position
|
|
1808
|
+
* envelopes. Skips `terms`, `outstanding_shares`, etc. — fetch the
|
|
1809
|
+
* full `SecurityResponse` when those are needed.
|
|
1810
|
+
*/
|
|
1322
1811
|
export type SecurityLite = {
|
|
1812
|
+
/** Security ID (`sec_*` ULID). */
|
|
1323
1813
|
id: Scalars['ID']['output']
|
|
1814
|
+
/** `true` when the security is in active status. */
|
|
1324
1815
|
isActive: Scalars['Boolean']['output']
|
|
1816
|
+
/** Embedded issuer entity, when one is linked. `null` for pre-issuer securities. */
|
|
1325
1817
|
issuer: Maybe<EntityLite>
|
|
1818
|
+
/** Display name of the security. */
|
|
1326
1819
|
name: Scalars['String']['output']
|
|
1820
|
+
/** Optional subtype refinement (e.g. `class_a`). */
|
|
1327
1821
|
securitySubtype: Maybe<Scalars['String']['output']>
|
|
1822
|
+
/** Instrument family (e.g. `common_stock`, `preferred_stock`, `warrant`). */
|
|
1328
1823
|
securityType: Scalars['String']['output']
|
|
1824
|
+
/** Tenant graph the security is pre-associated to, if any. */
|
|
1329
1825
|
sourceGraphId: Maybe<Scalars['String']['output']>
|
|
1330
1826
|
}
|
|
1331
1827
|
|
|
1828
|
+
/**
|
|
1829
|
+
* Rendered financial statement — facts viewed through a structure.
|
|
1830
|
+
*
|
|
1831
|
+
* Returned by report read endpoints when a single statement is
|
|
1832
|
+
* requested. The package mode endpoint returns a list of these
|
|
1833
|
+
* rehydrated as ``InformationBlockEnvelope`` items instead.
|
|
1834
|
+
*/
|
|
1332
1835
|
export type Statement = {
|
|
1836
|
+
/** Period columns rendered in this statement, in display order. */
|
|
1333
1837
|
periods: Array<PeriodSpec>
|
|
1838
|
+
/** The Report this statement was rendered from. */
|
|
1334
1839
|
reportId: Scalars['String']['output']
|
|
1840
|
+
/** One row per concept in the structure, in tree order. */
|
|
1335
1841
|
rows: Array<FactRow>
|
|
1842
|
+
/** Structure projected for this statement. */
|
|
1336
1843
|
structureId: Scalars['String']['output']
|
|
1844
|
+
/** Human-readable structure name. */
|
|
1337
1845
|
structureName: Scalars['String']['output']
|
|
1846
|
+
/** Structure category: `balance_sheet`, `income_statement`, `cash_flow_statement`, `equity_statement`, `schedule`. */
|
|
1338
1847
|
structureType: Scalars['String']['output']
|
|
1848
|
+
/** Number of GL elements that fell through the mapping with no destination concept. Indicates mapping gaps. */
|
|
1339
1849
|
unmappedCount: Scalars['Int']['output']
|
|
1850
|
+
/** Outcome of running reporting rules over this structure. Null when the structure has no rules attached. */
|
|
1340
1851
|
validation: Maybe<ValidationCheck>
|
|
1341
1852
|
}
|
|
1342
1853
|
|
|
1854
|
+
/**
|
|
1855
|
+
* One structure header — a renderable section within a taxonomy
|
|
1856
|
+
* (balance sheet, income statement, schedule, etc.).
|
|
1857
|
+
*
|
|
1858
|
+
* ``structure_type`` drives presentation: 'balance_sheet',
|
|
1859
|
+
* 'income_statement', 'cash_flow_statement', 'equity_statement',
|
|
1860
|
+
* 'schedule', 'chart_of_accounts', 'coa_mapping', 'rollforward', etc.
|
|
1861
|
+
*/
|
|
1343
1862
|
export type Structure = {
|
|
1344
1863
|
description: Maybe<Scalars['String']['output']>
|
|
1345
1864
|
id: Scalars['String']['output']
|
|
@@ -1349,16 +1868,28 @@ export type Structure = {
|
|
|
1349
1868
|
taxonomyId: Scalars['String']['output']
|
|
1350
1869
|
}
|
|
1351
1870
|
|
|
1871
|
+
/** Flat list of structures within a taxonomy. */
|
|
1352
1872
|
export type StructureList = {
|
|
1353
1873
|
structures: Array<Structure>
|
|
1354
1874
|
}
|
|
1355
1875
|
|
|
1876
|
+
/**
|
|
1877
|
+
* A structure available within this report's taxonomy.
|
|
1878
|
+
*
|
|
1879
|
+
* Each structure is a renderable section (Balance Sheet, Income
|
|
1880
|
+
* Statement, Cash Flow Statement, Equity, or a Schedule). The Report
|
|
1881
|
+
* row owns the facts; structures are the lenses that project them.
|
|
1882
|
+
*/
|
|
1356
1883
|
export type StructureSummary = {
|
|
1884
|
+
/** Structure identifier. */
|
|
1357
1885
|
id: Scalars['String']['output']
|
|
1886
|
+
/** Human-readable structure name. */
|
|
1358
1887
|
name: Scalars['String']['output']
|
|
1888
|
+
/** Structure category: `balance_sheet`, `income_statement`, `cash_flow_statement`, `equity_statement`, `schedule`. */
|
|
1359
1889
|
structureType: Scalars['String']['output']
|
|
1360
1890
|
}
|
|
1361
1891
|
|
|
1892
|
+
/** A suggested mapping target from the reporting taxonomy. */
|
|
1362
1893
|
export type SuggestedTarget = {
|
|
1363
1894
|
confidence: Maybe<Scalars['Float']['output']>
|
|
1364
1895
|
elementId: Scalars['String']['output']
|
|
@@ -1366,6 +1897,17 @@ export type SuggestedTarget = {
|
|
|
1366
1897
|
qname: Scalars['String']['output']
|
|
1367
1898
|
}
|
|
1368
1899
|
|
|
1900
|
+
/**
|
|
1901
|
+
* One taxonomy header — identity + lifecycle flags. Atoms
|
|
1902
|
+
* (elements, structures, associations, rules) are exposed via the
|
|
1903
|
+
* Taxonomy Block envelope.
|
|
1904
|
+
*
|
|
1905
|
+
* ``taxonomy_type`` discriminates: ``chart_of_accounts``,
|
|
1906
|
+
* ``reporting_standard``, ``reporting_extension``, ``custom_ontology``,
|
|
1907
|
+
* ``mapping``, ``schedule``. ``is_locked=True`` means library-origin
|
|
1908
|
+
* (immutable for tenants); ``is_shared=True`` means visible to multiple
|
|
1909
|
+
* graphs from a shared registry.
|
|
1910
|
+
*/
|
|
1369
1911
|
export type Taxonomy = {
|
|
1370
1912
|
description: Maybe<Scalars['String']['output']>
|
|
1371
1913
|
id: Scalars['String']['output']
|
|
@@ -1448,16 +1990,26 @@ export type TaxonomyBlockStructure = {
|
|
|
1448
1990
|
structureType: Scalars['String']['output']
|
|
1449
1991
|
}
|
|
1450
1992
|
|
|
1993
|
+
/** Flat list of taxonomy headers. Used by the catalog/picker UIs. */
|
|
1451
1994
|
export type TaxonomyList = {
|
|
1452
1995
|
taxonomies: Array<Taxonomy>
|
|
1453
1996
|
}
|
|
1454
1997
|
|
|
1998
|
+
/**
|
|
1999
|
+
* Trial balance for posted entries in a date range — every CoA
|
|
2000
|
+
* account that had activity, plus aggregate totals.
|
|
2001
|
+
*
|
|
2002
|
+
* Ledger is balanced when ``total_debits == total_credits``. Used as
|
|
2003
|
+
* a sanity check before close-period; failure means an unposted /
|
|
2004
|
+
* malformed entry slipped through.
|
|
2005
|
+
*/
|
|
1455
2006
|
export type TrialBalance = {
|
|
1456
2007
|
rows: Array<TrialBalanceRow>
|
|
1457
2008
|
totalCredits: Scalars['Float']['output']
|
|
1458
2009
|
totalDebits: Scalars['Float']['output']
|
|
1459
2010
|
}
|
|
1460
2011
|
|
|
2012
|
+
/** One CoA account's debit/credit totals over the trial-balance window. */
|
|
1461
2013
|
export type TrialBalanceRow = {
|
|
1462
2014
|
accountCode: Scalars['String']['output']
|
|
1463
2015
|
accountId: Scalars['String']['output']
|
|
@@ -1469,6 +2021,7 @@ export type TrialBalanceRow = {
|
|
|
1469
2021
|
trait: Maybe<Scalars['String']['output']>
|
|
1470
2022
|
}
|
|
1471
2023
|
|
|
2024
|
+
/** An element not yet mapped to the reporting taxonomy. */
|
|
1472
2025
|
export type UnmappedElement = {
|
|
1473
2026
|
balanceType: Scalars['String']['output']
|
|
1474
2027
|
code: Maybe<Scalars['String']['output']>
|
|
@@ -1479,10 +2032,15 @@ export type UnmappedElement = {
|
|
|
1479
2032
|
trait: Maybe<Scalars['String']['output']>
|
|
1480
2033
|
}
|
|
1481
2034
|
|
|
2035
|
+
/** Aggregate result of running reporting rules over a structure. */
|
|
1482
2036
|
export type ValidationCheck = {
|
|
2037
|
+
/** Names of rules that were evaluated. */
|
|
1483
2038
|
checks: Array<Scalars['String']['output']>
|
|
2039
|
+
/** Human-readable descriptions of rule failures. */
|
|
1484
2040
|
failures: Array<Scalars['String']['output']>
|
|
2041
|
+
/** True iff every rule produced zero failures. */
|
|
1485
2042
|
passed: Scalars['Boolean']['output']
|
|
2043
|
+
/** Non-blocking advisories from rule evaluation. */
|
|
1486
2044
|
warnings: Array<Scalars['String']['output']>
|
|
1487
2045
|
}
|
|
1488
2046
|
|