@robosystems/client 0.5.8 → 0.5.10
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/LedgerClient.d.ts +10 -0
- package/artifacts/LedgerClient.js +22 -5
- package/artifacts/LedgerClient.ts +41 -12
- package/artifacts/graphql/generated/graphql.d.ts +163 -0
- package/artifacts/graphql/generated/graphql.js +380 -2
- package/artifacts/graphql/generated/graphql.ts +527 -0
- package/artifacts/graphql/queries/ledger/informationBlock.d.ts +12 -0
- package/artifacts/graphql/queries/ledger/informationBlock.js +177 -1
- package/artifacts/graphql/queries/ledger/informationBlock.ts +177 -0
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +6 -5
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +13 -5
- package/sdk/sdk.gen.js +26 -9
- package/sdk/sdk.gen.ts +24 -7
- package/sdk/types.gen.d.ts +536 -18
- package/sdk/types.gen.ts +549 -18
- package/sdk.gen.d.ts +13 -5
- package/sdk.gen.js +26 -9
- package/sdk.gen.ts +24 -7
- package/types.gen.d.ts +536 -18
- package/types.gen.ts +549 -18
package/types.gen.ts
CHANGED
|
@@ -379,6 +379,135 @@ export type AvailableGraphTiersResponse = {
|
|
|
379
379
|
tiers: Array<GraphTierInfo>;
|
|
380
380
|
};
|
|
381
381
|
|
|
382
|
+
/**
|
|
383
|
+
* BackfillPeriodOutcome
|
|
384
|
+
*
|
|
385
|
+
* Per-month result of a plan-history backfill pass.
|
|
386
|
+
*/
|
|
387
|
+
export type BackfillPeriodOutcome = {
|
|
388
|
+
/**
|
|
389
|
+
* Period
|
|
390
|
+
*
|
|
391
|
+
* The month, in YYYY-MM
|
|
392
|
+
*/
|
|
393
|
+
period: string;
|
|
394
|
+
/**
|
|
395
|
+
* Status
|
|
396
|
+
*
|
|
397
|
+
* stamped: reopen → reclose completed. skipped_drafts: the month holds draft entries the backfill refuses to post — review via list-period-drafts, then close-period or re-run. failed: the reclose raised; processing halted (see detail).
|
|
398
|
+
*/
|
|
399
|
+
status: string;
|
|
400
|
+
/**
|
|
401
|
+
* Statements Stamped
|
|
402
|
+
*
|
|
403
|
+
* Whether the reclose stamped canonical statement FactSets. False with a statement_stamp_note soft-skip when reporting isn't set up.
|
|
404
|
+
*/
|
|
405
|
+
statements_stamped?: boolean;
|
|
406
|
+
/**
|
|
407
|
+
* Statement Stamp Note
|
|
408
|
+
*
|
|
409
|
+
* Soft-skip reason when statements_stamped is false
|
|
410
|
+
*/
|
|
411
|
+
statement_stamp_note?: string | null;
|
|
412
|
+
/**
|
|
413
|
+
* Statement Rule Summary
|
|
414
|
+
*
|
|
415
|
+
* Statement-rule verification tally for the month's stamped sets (pass/fail/error/skipped); None when no rules ran.
|
|
416
|
+
*/
|
|
417
|
+
statement_rule_summary?: {
|
|
418
|
+
[key: string]: number;
|
|
419
|
+
} | null;
|
|
420
|
+
/**
|
|
421
|
+
* Detail
|
|
422
|
+
*
|
|
423
|
+
* Human-readable detail for skipped/failed months
|
|
424
|
+
*/
|
|
425
|
+
detail?: string | null;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* BackfillPlanHistoryOperation
|
|
430
|
+
*
|
|
431
|
+
* Compile monthly statement history behind the close boundary.
|
|
432
|
+
*/
|
|
433
|
+
export type BackfillPlanHistoryOperation = {
|
|
434
|
+
/**
|
|
435
|
+
* Start Period
|
|
436
|
+
*
|
|
437
|
+
* YYYY-MM period to backfill from. Clamped to the earliest month with ledger data; defaults to that month when omitted. Must be on or before `closed_through`.
|
|
438
|
+
*/
|
|
439
|
+
start_period?: string | null;
|
|
440
|
+
/**
|
|
441
|
+
* Max Periods
|
|
442
|
+
*
|
|
443
|
+
* Maximum months to restamp in this call. Each month runs a full reopen → reclose cycle; keep chunks modest and loop on `remaining_periods`.
|
|
444
|
+
*/
|
|
445
|
+
max_periods?: number;
|
|
446
|
+
/**
|
|
447
|
+
* Allow Stale Sync
|
|
448
|
+
*
|
|
449
|
+
* Override the sync-currency gate on each reclose. Historical months predate the last sync in the normal case, so this is rarely needed.
|
|
450
|
+
*/
|
|
451
|
+
allow_stale_sync?: boolean;
|
|
452
|
+
/**
|
|
453
|
+
* Restamp
|
|
454
|
+
*
|
|
455
|
+
* Also re-derive months that ALREADY have canonical statement sets (default: skip them). Use after an engine improvement changes what a stamp produces — each month reruns the full reopen → reclose cycle and replaces its sets. A restamp run is not self-resuming (every month in range stays a candidate); advance `start_period` between chunks.
|
|
456
|
+
*/
|
|
457
|
+
restamp?: boolean;
|
|
458
|
+
/**
|
|
459
|
+
* Note
|
|
460
|
+
*
|
|
461
|
+
* Free-form note attached to each close audit event
|
|
462
|
+
*/
|
|
463
|
+
note?: string | null;
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* BackfillPlanHistoryResponse
|
|
468
|
+
*
|
|
469
|
+
* Response from one chunked plan-history backfill call.
|
|
470
|
+
*/
|
|
471
|
+
export type BackfillPlanHistoryResponse = {
|
|
472
|
+
fiscal_calendar: FiscalCalendarResponse;
|
|
473
|
+
/**
|
|
474
|
+
* Earliest Available Period
|
|
475
|
+
*
|
|
476
|
+
* First month with ledger data — the hard floor for backfill
|
|
477
|
+
*/
|
|
478
|
+
earliest_available_period: string;
|
|
479
|
+
/**
|
|
480
|
+
* Effective Start Period
|
|
481
|
+
*
|
|
482
|
+
* The start actually used after clamping to earliest_available_period
|
|
483
|
+
*/
|
|
484
|
+
effective_start_period: string;
|
|
485
|
+
/**
|
|
486
|
+
* Closed Through
|
|
487
|
+
*
|
|
488
|
+
* The close boundary the backfill runs up to (inclusive)
|
|
489
|
+
*/
|
|
490
|
+
closed_through: string;
|
|
491
|
+
/**
|
|
492
|
+
* Period Rows Created
|
|
493
|
+
*
|
|
494
|
+
* FiscalPeriod rows seeded (baseline-closed) for months the calendar didn't cover yet
|
|
495
|
+
*/
|
|
496
|
+
period_rows_created?: number;
|
|
497
|
+
/**
|
|
498
|
+
* Processed
|
|
499
|
+
*
|
|
500
|
+
* Months this call attempted, oldest first
|
|
501
|
+
*/
|
|
502
|
+
processed?: Array<BackfillPeriodOutcome>;
|
|
503
|
+
/**
|
|
504
|
+
* Remaining Periods
|
|
505
|
+
*
|
|
506
|
+
* Months still lacking canonical statement sets that this call did not attempt (beyond max_periods, or after a failure halt). Loop until empty.
|
|
507
|
+
*/
|
|
508
|
+
remaining_periods?: Array<string>;
|
|
509
|
+
};
|
|
510
|
+
|
|
382
511
|
/**
|
|
383
512
|
* BackupCreateRequest
|
|
384
513
|
*
|
|
@@ -1230,6 +1359,34 @@ export type ClosePeriodResponse = {
|
|
|
1230
1359
|
* ids of schedule Structures whose rules were evaluated during the close. Pairs with rule_summary.
|
|
1231
1360
|
*/
|
|
1232
1361
|
evaluated_structure_ids?: Array<string>;
|
|
1362
|
+
/**
|
|
1363
|
+
* Statements Stamped
|
|
1364
|
+
*
|
|
1365
|
+
* Whether the close stamped the period's canonical statement FactSets (the close-time pivot). False when the tenant hasn't set up reporting yet — see statement_stamp_note.
|
|
1366
|
+
*/
|
|
1367
|
+
statements_stamped?: boolean;
|
|
1368
|
+
/**
|
|
1369
|
+
* Statement Stamp Note
|
|
1370
|
+
*
|
|
1371
|
+
* Soft-skip reason when statements_stamped is false: no_coa_mapping | no_entity | no_statement_structures | no_taxonomy.
|
|
1372
|
+
*/
|
|
1373
|
+
statement_stamp_note?: string | null;
|
|
1374
|
+
/**
|
|
1375
|
+
* Stamped Statement Sets
|
|
1376
|
+
*
|
|
1377
|
+
* structure_id -> fact_set_id for every canonical statement FactSet minted by this close (report_id NULL; replaced on reclose).
|
|
1378
|
+
*/
|
|
1379
|
+
stamped_statement_sets?: {
|
|
1380
|
+
[key: string]: string;
|
|
1381
|
+
};
|
|
1382
|
+
/**
|
|
1383
|
+
* Statement Rule Summary
|
|
1384
|
+
*
|
|
1385
|
+
* Aggregated statement-rule verification outcome across the stamped structures — keys: pass/fail/error/skipped. None when no statement rules exist. Distinct from rule_summary (the schedule-rule pass).
|
|
1386
|
+
*/
|
|
1387
|
+
statement_rule_summary?: {
|
|
1388
|
+
[key: string]: number;
|
|
1389
|
+
} | null;
|
|
1233
1390
|
};
|
|
1234
1391
|
|
|
1235
1392
|
/**
|
|
@@ -2199,6 +2356,18 @@ export type CreateForecastRequest = {
|
|
|
2199
2356
|
* Lever assertions — at least one.
|
|
2200
2357
|
*/
|
|
2201
2358
|
levers: Array<LeverAssertionRequest>;
|
|
2359
|
+
/**
|
|
2360
|
+
* Line Assertions
|
|
2361
|
+
*
|
|
2362
|
+
* Direct statement-line assertions (manual overrides). Each names a calc-DAG leaf and wins over driver rules and carry-forward for the months it asserts.
|
|
2363
|
+
*/
|
|
2364
|
+
line_assertions?: Array<LineAssertionRequest>;
|
|
2365
|
+
/**
|
|
2366
|
+
* Line Growth
|
|
2367
|
+
*
|
|
2368
|
+
* Per-line growth trajectories. Each names an income-statement leaf and grows it month-over-month at the asserted rate — the generic form of the revenue growth lever, for lines the catalog doesn't drive (opex trajectories, cost-cut ramps).
|
|
2369
|
+
*/
|
|
2370
|
+
line_growth?: Array<LineGrowthRequest>;
|
|
2202
2371
|
/**
|
|
2203
2372
|
* Entity Id
|
|
2204
2373
|
*
|
|
@@ -3075,9 +3244,27 @@ export type DatabaseHealthResponse = {
|
|
|
3075
3244
|
/**
|
|
3076
3245
|
* Memory Usage Mb
|
|
3077
3246
|
*
|
|
3078
|
-
*
|
|
3247
|
+
* Instance memory in use, MB. Only populated for dedicated single-tenant instances; null on shared repositories and packed tiers.
|
|
3079
3248
|
*/
|
|
3080
3249
|
memory_usage_mb?: number | null;
|
|
3250
|
+
/**
|
|
3251
|
+
* Memory Usage Percent
|
|
3252
|
+
*
|
|
3253
|
+
* Instance memory in use, percent. Expect high values during materialization — the engine deliberately boosts to near the whole instance while rebuilding. Read `resource_status` rather than this number alone. Dedicated instances only.
|
|
3254
|
+
*/
|
|
3255
|
+
memory_usage_percent?: number | null;
|
|
3256
|
+
/**
|
|
3257
|
+
* Cpu Usage Percent
|
|
3258
|
+
*
|
|
3259
|
+
* Instance CPU in use, percent. Dedicated single-tenant instances only.
|
|
3260
|
+
*/
|
|
3261
|
+
cpu_usage_percent?: number | null;
|
|
3262
|
+
/**
|
|
3263
|
+
* Resource Status
|
|
3264
|
+
*
|
|
3265
|
+
* Interpreted instance load: 'idle' (headroom), 'busy' (working normally — typical while materializing), 'constrained' (sustained pressure worth acting on). Null when resource metrics are not exposed.
|
|
3266
|
+
*/
|
|
3267
|
+
resource_status?: string | null;
|
|
3081
3268
|
/**
|
|
3082
3269
|
* Storage Usage Mb
|
|
3083
3270
|
*
|
|
@@ -3977,6 +4164,12 @@ export type ElementLite = {
|
|
|
3977
4164
|
* Value-domain vocabulary (monetary | ratio | percent | multiple | days | string | …). None means untyped; fall back to is_monetary.
|
|
3978
4165
|
*/
|
|
3979
4166
|
item_type?: string | null;
|
|
4167
|
+
/**
|
|
4168
|
+
* Documentation
|
|
4169
|
+
*
|
|
4170
|
+
* The element's documentation-role label — the catalog's authoritative value semantics (e.g. whether a percent driver is a growth rate or a rate-on-base fraction). None when the element carries no documentation label.
|
|
4171
|
+
*/
|
|
4172
|
+
documentation?: string | null;
|
|
3980
4173
|
};
|
|
3981
4174
|
|
|
3982
4175
|
/**
|
|
@@ -5130,6 +5323,18 @@ export type ForecastMechanics = {
|
|
|
5130
5323
|
* Expanded lever assertions (authoring order).
|
|
5131
5324
|
*/
|
|
5132
5325
|
levers: Array<LeverAssertionLite>;
|
|
5326
|
+
/**
|
|
5327
|
+
* Line Assertions
|
|
5328
|
+
*
|
|
5329
|
+
* Direct statement-line assertions (authoring order) — manual overrides that win over driver rules and carry-forward for the months they name.
|
|
5330
|
+
*/
|
|
5331
|
+
line_assertions?: Array<LineAssertionLite>;
|
|
5332
|
+
/**
|
|
5333
|
+
* Line Growth
|
|
5334
|
+
*
|
|
5335
|
+
* Per-line growth trajectories (authoring order) — each grows an income-statement leaf month-over-month at the asserted rate, compounding from the base month.
|
|
5336
|
+
*/
|
|
5337
|
+
line_growth?: Array<LineGrowthLite>;
|
|
5133
5338
|
/**
|
|
5134
5339
|
* Computed Months
|
|
5135
5340
|
*
|
|
@@ -7090,13 +7295,21 @@ export type LeverAssertionLite = {
|
|
|
7090
7295
|
* One lever's asserted values for the scenario.
|
|
7091
7296
|
*
|
|
7092
7297
|
* ``qname`` must resolve to an ``rs-driver:*`` catalog element (the
|
|
7093
|
-
* create handler rejects anything else).
|
|
7094
|
-
*
|
|
7095
|
-
*
|
|
7298
|
+
* create handler rejects anything else). Each lever's value semantics
|
|
7299
|
+
* are defined by its catalog element's documentation — surfaced as
|
|
7300
|
+
* ``documentation`` on the elements bundled in the forecast block's
|
|
7301
|
+
* envelope (``get-information-block``). Percent levers are decimals but
|
|
7302
|
+
* their *meaning* varies by lever: growth levers are month-over-month
|
|
7303
|
+
* rates (``RevenueGrowthRate`` 0.03 = +3%/month, compounding), while
|
|
7304
|
+
* rate-on-base levers are fractions of the same month's base
|
|
7305
|
+
* (``CostOfRevenueRate`` 0.62 = cost of revenue at 62% of that month's
|
|
7306
|
+
* revenues — not a growth rate). Days levers (``DaysSalesOutstanding``,
|
|
7307
|
+
* ``DaysPayableOutstanding``) are day counts.
|
|
7096
7308
|
*
|
|
7097
7309
|
* ``value`` is a uniform fill across the whole horizon;
|
|
7098
7310
|
* ``values_by_period`` overrides individual months (``"YYYY-MM"``
|
|
7099
|
-
* keys)
|
|
7311
|
+
* keys) — e.g. a margin-compression ramp asserts a different rate each
|
|
7312
|
+
* month. At least one of the two must be provided. Months covered by
|
|
7100
7313
|
* neither carry no assertion — the lever's rule is inactive for that
|
|
7101
7314
|
* month and its target falls to the engine's carry-forward default.
|
|
7102
7315
|
*/
|
|
@@ -7123,6 +7336,200 @@ export type LeverAssertionRequest = {
|
|
|
7123
7336
|
} | null;
|
|
7124
7337
|
};
|
|
7125
7338
|
|
|
7339
|
+
/**
|
|
7340
|
+
* LineAssertionLite
|
|
7341
|
+
*
|
|
7342
|
+
* One statement line's persisted direct assertion inside
|
|
7343
|
+
* ``ForecastMechanics``.
|
|
7344
|
+
*
|
|
7345
|
+
* The manual-override sibling of :class:`LeverAssertionLite`: a lever
|
|
7346
|
+
* asserts a *driver* whose rule derives a line; a line assertion pins
|
|
7347
|
+
* the **line itself** (a calc-DAG leaf) to typed values for the months
|
|
7348
|
+
* it names — winning over driver rules and carry-forward for exactly
|
|
7349
|
+
* those months (a displaced rule surfaces in the compute response's
|
|
7350
|
+
* ``skipped`` list). Subtotals stay calc-DAG-derived, so a manual line
|
|
7351
|
+
* still articulates through RollUps, RE, balancing cash, and derived
|
|
7352
|
+
* CF, and stays verification-gated.
|
|
7353
|
+
*
|
|
7354
|
+
* Same persistence doctrine as levers: values are duplicated as
|
|
7355
|
+
* authored facts in the scenario's lever FactSet (facts are what
|
|
7356
|
+
* ``compute-forecast`` binds); this mechanics copy is the
|
|
7357
|
+
* operator-legible round-trip shape.
|
|
7358
|
+
*/
|
|
7359
|
+
export type LineAssertionLite = {
|
|
7360
|
+
/**
|
|
7361
|
+
* Qname
|
|
7362
|
+
*
|
|
7363
|
+
* Asserted statement-leaf qname.
|
|
7364
|
+
*/
|
|
7365
|
+
qname: string;
|
|
7366
|
+
/**
|
|
7367
|
+
* Element Id
|
|
7368
|
+
*
|
|
7369
|
+
* Resolved tenant element id.
|
|
7370
|
+
*/
|
|
7371
|
+
element_id: string;
|
|
7372
|
+
/**
|
|
7373
|
+
* Item Type
|
|
7374
|
+
*
|
|
7375
|
+
* Format family from the element (monetary | ...).
|
|
7376
|
+
*/
|
|
7377
|
+
item_type?: string | null;
|
|
7378
|
+
/**
|
|
7379
|
+
* Period Type
|
|
7380
|
+
*
|
|
7381
|
+
* The element's period type — duration assertions pin IS lines; instant assertions pin BS lines through the roll.
|
|
7382
|
+
*/
|
|
7383
|
+
period_type?: string;
|
|
7384
|
+
/**
|
|
7385
|
+
* Values By Period
|
|
7386
|
+
*
|
|
7387
|
+
* Expanded per-month assertions keyed by ``YYYY-MM``.
|
|
7388
|
+
*/
|
|
7389
|
+
values_by_period: {
|
|
7390
|
+
[key: string]: number;
|
|
7391
|
+
};
|
|
7392
|
+
};
|
|
7393
|
+
|
|
7394
|
+
/**
|
|
7395
|
+
* LineAssertionRequest
|
|
7396
|
+
*
|
|
7397
|
+
* One statement line's directly asserted values for the scenario.
|
|
7398
|
+
*
|
|
7399
|
+
* The manual-override half of the authored surface: where a lever
|
|
7400
|
+
* asserts a *driver* (growth %, DSO) whose rule derives the line, a
|
|
7401
|
+
* line assertion asserts the **line itself** — an rs-gaap (or tenant
|
|
7402
|
+
* extension) statement leaf pinned to typed values for the months it
|
|
7403
|
+
* names. Assertions win over driver rules and carry-forward for those
|
|
7404
|
+
* months (a displaced rule lands in ``skipped``, legibly); months the
|
|
7405
|
+
* assertion doesn't name keep the engine's normal derivation.
|
|
7406
|
+
*
|
|
7407
|
+
* **Leaves only** — subtotals stay calc-DAG-derived, so a manually set
|
|
7408
|
+
* line still articulates through RollUps, RE, balancing cash, and the
|
|
7409
|
+
* derived CF, and stays verification-gated (the whole pitch vs a
|
|
7410
|
+
* spreadsheet cell). The create handler rejects calc-parent qnames.
|
|
7411
|
+
*
|
|
7412
|
+
* Value/period grammar is identical to levers: ``value`` is a uniform
|
|
7413
|
+
* fill across the horizon, ``values_by_period`` overrides individual
|
|
7414
|
+
* months. The canonical uses: zero out a base-month one-off so
|
|
7415
|
+
* carry-forward stops replicating it, or hold a line at a known budget
|
|
7416
|
+
* number no driver models.
|
|
7417
|
+
*/
|
|
7418
|
+
export type LineAssertionRequest = {
|
|
7419
|
+
/**
|
|
7420
|
+
* Qname
|
|
7421
|
+
*
|
|
7422
|
+
* QName of the statement leaf to assert (e.g. ``rs-gaap:NonoperatingIncomeExpense``). Must be a calc-DAG leaf; rs-driver concepts belong in ``levers``.
|
|
7423
|
+
*/
|
|
7424
|
+
qname: string;
|
|
7425
|
+
/**
|
|
7426
|
+
* Value
|
|
7427
|
+
*
|
|
7428
|
+
* Uniform value asserted for every month of the horizon.
|
|
7429
|
+
*/
|
|
7430
|
+
value?: number | null;
|
|
7431
|
+
/**
|
|
7432
|
+
* Values By Period
|
|
7433
|
+
*
|
|
7434
|
+
* Per-month overrides keyed by ``YYYY-MM``. Wins over ``value`` for the months it names.
|
|
7435
|
+
*/
|
|
7436
|
+
values_by_period?: {
|
|
7437
|
+
[key: string]: number;
|
|
7438
|
+
} | null;
|
|
7439
|
+
};
|
|
7440
|
+
|
|
7441
|
+
/**
|
|
7442
|
+
* LineGrowthLite
|
|
7443
|
+
*
|
|
7444
|
+
* One statement line's persisted growth trajectory inside
|
|
7445
|
+
* ``ForecastMechanics``.
|
|
7446
|
+
*
|
|
7447
|
+
* The generic per-line form of the revenue growth lever: grows an
|
|
7448
|
+
* income-statement leaf month-over-month at the asserted rate
|
|
7449
|
+
* (``line[t] = line[t-1] * (1 + rate[t])``), compounding from the base
|
|
7450
|
+
* month's value. Months without a rate keep the engine's carry-forward.
|
|
7451
|
+
* Duration leaves only; disjoint from ``line_assertions`` and from any
|
|
7452
|
+
* active catalog rule's target (one owner per line).
|
|
7453
|
+
*
|
|
7454
|
+
* Persistence deviates from levers/assertions deliberately: rates are
|
|
7455
|
+
* NOT duplicated as facts in the scenario FactSet — a growth rate on a
|
|
7456
|
+
* monetary statement element would be a unit-lying fact. This mechanics
|
|
7457
|
+
* copy is the single authored store; ``compute-forecast`` binds rates
|
|
7458
|
+
* from here.
|
|
7459
|
+
*/
|
|
7460
|
+
export type LineGrowthLite = {
|
|
7461
|
+
/**
|
|
7462
|
+
* Qname
|
|
7463
|
+
*
|
|
7464
|
+
* Grown statement-leaf qname.
|
|
7465
|
+
*/
|
|
7466
|
+
qname: string;
|
|
7467
|
+
/**
|
|
7468
|
+
* Element Id
|
|
7469
|
+
*
|
|
7470
|
+
* Resolved tenant element id.
|
|
7471
|
+
*/
|
|
7472
|
+
element_id: string;
|
|
7473
|
+
/**
|
|
7474
|
+
* Item Type
|
|
7475
|
+
*
|
|
7476
|
+
* Always 'percent' — the grid row renders rates, not values.
|
|
7477
|
+
*/
|
|
7478
|
+
item_type?: string;
|
|
7479
|
+
/**
|
|
7480
|
+
* Values By Period
|
|
7481
|
+
*
|
|
7482
|
+
* Expanded per-month growth rates keyed by ``YYYY-MM``.
|
|
7483
|
+
*/
|
|
7484
|
+
values_by_period: {
|
|
7485
|
+
[key: string]: number;
|
|
7486
|
+
};
|
|
7487
|
+
};
|
|
7488
|
+
|
|
7489
|
+
/**
|
|
7490
|
+
* LineGrowthRequest
|
|
7491
|
+
*
|
|
7492
|
+
* One statement line's asserted growth trajectory for the scenario.
|
|
7493
|
+
*
|
|
7494
|
+
* The generic per-line sibling of ``rs-driver:RevenueGrowthRate``: where
|
|
7495
|
+
* the catalog lever grows *revenue* through its seeded rule, a line
|
|
7496
|
+
* growth entry grows **any income-statement leaf** at a month-over-month
|
|
7497
|
+
* rate — ``value`` -0.05 cuts the line 5% per month, compounding from
|
|
7498
|
+
* the base month's value. This is what expense trajectories ("opex +2%/mo
|
|
7499
|
+
* with inflation", "cut costs 5%/mo starting October") use; without it
|
|
7500
|
+
* every unmodeled line just carries flat.
|
|
7501
|
+
*
|
|
7502
|
+
* Semantics per month: ``line[t] = line[t-1] * (1 + rate[t])``. Months
|
|
7503
|
+
* the entry doesn't name keep the engine's carry-forward (grow-then-hold
|
|
7504
|
+
* ramps fall out of ``values_by_period`` naturally). **Duration leaves
|
|
7505
|
+
* only**: balance-sheet lines roll from the IS and the working-capital
|
|
7506
|
+
* levers — grow the driving IS line instead. A line already driven by an
|
|
7507
|
+
* active catalog rule (e.g. Revenues with ``RevenueGrowthRate`` set) or
|
|
7508
|
+
* named by a ``line_assertions`` entry is rejected — one owner per line.
|
|
7509
|
+
*/
|
|
7510
|
+
export type LineGrowthRequest = {
|
|
7511
|
+
/**
|
|
7512
|
+
* Qname
|
|
7513
|
+
*
|
|
7514
|
+
* QName of the income-statement leaf to grow (e.g. ``rs-gaap:ResearchAndDevelopmentExpense``). Must be a calc-DAG duration leaf.
|
|
7515
|
+
*/
|
|
7516
|
+
qname: string;
|
|
7517
|
+
/**
|
|
7518
|
+
* Value
|
|
7519
|
+
*
|
|
7520
|
+
* Uniform month-over-month growth rate for every month of the horizon (decimal: 0.02 = +2%/mo, -0.05 = -5%/mo).
|
|
7521
|
+
*/
|
|
7522
|
+
value?: number | null;
|
|
7523
|
+
/**
|
|
7524
|
+
* Values By Period
|
|
7525
|
+
*
|
|
7526
|
+
* Per-month rate overrides keyed by ``YYYY-MM``. Wins over ``value`` for the months it names; months named by neither carry the line's prior value (rate 0).
|
|
7527
|
+
*/
|
|
7528
|
+
values_by_period?: {
|
|
7529
|
+
[key: string]: number;
|
|
7530
|
+
} | null;
|
|
7531
|
+
};
|
|
7532
|
+
|
|
7126
7533
|
/**
|
|
7127
7534
|
* LineItemMetadataPredicate
|
|
7128
7535
|
*
|
|
@@ -7905,6 +8312,52 @@ export type OperationEnvelopeAssociationResponse = {
|
|
|
7905
8312
|
idempotentReplay?: boolean;
|
|
7906
8313
|
};
|
|
7907
8314
|
|
|
8315
|
+
/**
|
|
8316
|
+
* OperationEnvelope[BackfillPlanHistoryResponse]
|
|
8317
|
+
*/
|
|
8318
|
+
export type OperationEnvelopeBackfillPlanHistoryResponse = {
|
|
8319
|
+
/**
|
|
8320
|
+
* Operation
|
|
8321
|
+
*
|
|
8322
|
+
* Kebab-case operation name
|
|
8323
|
+
*/
|
|
8324
|
+
operation: string;
|
|
8325
|
+
/**
|
|
8326
|
+
* Operationid
|
|
8327
|
+
*
|
|
8328
|
+
* op_-prefixed ULID for audit and SSE correlation
|
|
8329
|
+
*/
|
|
8330
|
+
operationId: string;
|
|
8331
|
+
/**
|
|
8332
|
+
* Status
|
|
8333
|
+
*
|
|
8334
|
+
* Operation lifecycle state
|
|
8335
|
+
*/
|
|
8336
|
+
status: 'completed' | 'pending' | 'failed';
|
|
8337
|
+
/**
|
|
8338
|
+
* Command-specific result payload
|
|
8339
|
+
*/
|
|
8340
|
+
result?: BackfillPlanHistoryResponse | null;
|
|
8341
|
+
/**
|
|
8342
|
+
* At
|
|
8343
|
+
*
|
|
8344
|
+
* ISO-8601 UTC timestamp
|
|
8345
|
+
*/
|
|
8346
|
+
at: string;
|
|
8347
|
+
/**
|
|
8348
|
+
* Createdby
|
|
8349
|
+
*
|
|
8350
|
+
* User ID that initiated the operation (null for legacy callers)
|
|
8351
|
+
*/
|
|
8352
|
+
createdBy?: string | null;
|
|
8353
|
+
/**
|
|
8354
|
+
* Idempotentreplay
|
|
8355
|
+
*
|
|
8356
|
+
* True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
|
|
8357
|
+
*/
|
|
8358
|
+
idempotentReplay?: boolean;
|
|
8359
|
+
};
|
|
8360
|
+
|
|
7908
8361
|
/**
|
|
7909
8362
|
* OperationEnvelope[BindTextBlockResponse]
|
|
7910
8363
|
*/
|
|
@@ -14262,11 +14715,13 @@ export type UpdateEventHandlerRequest = {
|
|
|
14262
14715
|
*
|
|
14263
14716
|
* Update a forecast block in place.
|
|
14264
14717
|
*
|
|
14265
|
-
* Mutable: name, scenario_kind, horizon_months, base_period, levers
|
|
14266
|
-
* ``levers``
|
|
14267
|
-
*
|
|
14268
|
-
*
|
|
14269
|
-
*
|
|
14718
|
+
* Mutable: name, scenario_kind, horizon_months, base_period, levers,
|
|
14719
|
+
* line_assertions. ``levers`` and ``line_assertions`` are each a
|
|
14720
|
+
* **full replace** when provided (partial edits would make the asserted
|
|
14721
|
+
* set ambiguous); replacing one leaves the other as stored. Updating
|
|
14722
|
+
* does NOT recompute — previously computed scenario months go stale
|
|
14723
|
+
* until the next ``compute-forecast`` run (the compute-metrics drift
|
|
14724
|
+
* semantics).
|
|
14270
14725
|
*/
|
|
14271
14726
|
export type UpdateForecastRequest = {
|
|
14272
14727
|
/**
|
|
@@ -14297,6 +14752,18 @@ export type UpdateForecastRequest = {
|
|
|
14297
14752
|
* Full replacement of the lever set when provided.
|
|
14298
14753
|
*/
|
|
14299
14754
|
levers?: Array<LeverAssertionRequest> | null;
|
|
14755
|
+
/**
|
|
14756
|
+
* Line Assertions
|
|
14757
|
+
*
|
|
14758
|
+
* Full replacement of the line-assertion set when provided. Pass an empty list to clear every assertion.
|
|
14759
|
+
*/
|
|
14760
|
+
line_assertions?: Array<LineAssertionRequest> | null;
|
|
14761
|
+
/**
|
|
14762
|
+
* Line Growth
|
|
14763
|
+
*
|
|
14764
|
+
* Full replacement of the line-growth set when provided. Pass an empty list to clear every growth entry.
|
|
14765
|
+
*/
|
|
14766
|
+
line_growth?: Array<LineGrowthRequest> | null;
|
|
14300
14767
|
};
|
|
14301
14768
|
|
|
14302
14769
|
/**
|
|
@@ -15332,7 +15799,7 @@ export type UpdateForecastArm = {
|
|
|
15332
15799
|
*/
|
|
15333
15800
|
block_type: 'forecast';
|
|
15334
15801
|
/**
|
|
15335
|
-
* Forecast update payload.
|
|
15802
|
+
* Forecast update payload. Updating does NOT recompute — lever, horizon, or base-period changes leave the scenario's computed months stale until the next `compute-forecast` run.
|
|
15336
15803
|
*/
|
|
15337
15804
|
payload: UpdateForecastRequest;
|
|
15338
15805
|
};
|
|
@@ -18158,7 +18625,7 @@ export type GetGraphMetricsData = {
|
|
|
18158
18625
|
graph_id: string;
|
|
18159
18626
|
};
|
|
18160
18627
|
query?: never;
|
|
18161
|
-
url: '/v1/graphs/{graph_id}/
|
|
18628
|
+
url: '/v1/graphs/{graph_id}/metrics';
|
|
18162
18629
|
};
|
|
18163
18630
|
|
|
18164
18631
|
export type GetGraphMetricsErrors = {
|
|
@@ -18203,7 +18670,7 @@ export type GetGraphMetricsResponses = {
|
|
|
18203
18670
|
|
|
18204
18671
|
export type GetGraphMetricsResponse = GetGraphMetricsResponses[keyof GetGraphMetricsResponses];
|
|
18205
18672
|
|
|
18206
|
-
export type
|
|
18673
|
+
export type GetGraphUsageData = {
|
|
18207
18674
|
body?: never;
|
|
18208
18675
|
path: {
|
|
18209
18676
|
/**
|
|
@@ -18243,10 +18710,10 @@ export type GetGraphUsageAnalyticsData = {
|
|
|
18243
18710
|
*/
|
|
18244
18711
|
include_events?: boolean;
|
|
18245
18712
|
};
|
|
18246
|
-
url: '/v1/graphs/{graph_id}/
|
|
18713
|
+
url: '/v1/graphs/{graph_id}/usage';
|
|
18247
18714
|
};
|
|
18248
18715
|
|
|
18249
|
-
export type
|
|
18716
|
+
export type GetGraphUsageErrors = {
|
|
18250
18717
|
/**
|
|
18251
18718
|
* Invalid request
|
|
18252
18719
|
*/
|
|
@@ -18277,16 +18744,16 @@ export type GetGraphUsageAnalyticsErrors = {
|
|
|
18277
18744
|
500: ErrorResponse;
|
|
18278
18745
|
};
|
|
18279
18746
|
|
|
18280
|
-
export type
|
|
18747
|
+
export type GetGraphUsageError = GetGraphUsageErrors[keyof GetGraphUsageErrors];
|
|
18281
18748
|
|
|
18282
|
-
export type
|
|
18749
|
+
export type GetGraphUsageResponses = {
|
|
18283
18750
|
/**
|
|
18284
18751
|
* Successful Response
|
|
18285
18752
|
*/
|
|
18286
18753
|
200: GraphUsageResponse;
|
|
18287
18754
|
};
|
|
18288
18755
|
|
|
18289
|
-
export type
|
|
18756
|
+
export type GetGraphUsageResponse = GetGraphUsageResponses[keyof GetGraphUsageResponses];
|
|
18290
18757
|
|
|
18291
18758
|
export type ExecuteCypherData = {
|
|
18292
18759
|
body: CypherStatementRequest;
|
|
@@ -24045,6 +24512,70 @@ export type ReopenPeriodResponses = {
|
|
|
24045
24512
|
|
|
24046
24513
|
export type ReopenPeriodResponse = ReopenPeriodResponses[keyof ReopenPeriodResponses];
|
|
24047
24514
|
|
|
24515
|
+
export type BackfillPlanHistoryData = {
|
|
24516
|
+
body: BackfillPlanHistoryOperation;
|
|
24517
|
+
headers?: {
|
|
24518
|
+
/**
|
|
24519
|
+
* Idempotency-Key
|
|
24520
|
+
*/
|
|
24521
|
+
'Idempotency-Key'?: string | null;
|
|
24522
|
+
};
|
|
24523
|
+
path: {
|
|
24524
|
+
/**
|
|
24525
|
+
* Graph Id
|
|
24526
|
+
*/
|
|
24527
|
+
graph_id: string;
|
|
24528
|
+
};
|
|
24529
|
+
query?: never;
|
|
24530
|
+
url: '/extensions/roboledger/{graph_id}/operations/backfill-plan-history';
|
|
24531
|
+
};
|
|
24532
|
+
|
|
24533
|
+
export type BackfillPlanHistoryErrors = {
|
|
24534
|
+
/**
|
|
24535
|
+
* Invalid request
|
|
24536
|
+
*/
|
|
24537
|
+
400: ErrorResponse;
|
|
24538
|
+
/**
|
|
24539
|
+
* Authentication required
|
|
24540
|
+
*/
|
|
24541
|
+
401: ErrorResponse;
|
|
24542
|
+
/**
|
|
24543
|
+
* Access denied
|
|
24544
|
+
*/
|
|
24545
|
+
403: ErrorResponse;
|
|
24546
|
+
/**
|
|
24547
|
+
* Resource not found
|
|
24548
|
+
*/
|
|
24549
|
+
404: ErrorResponse;
|
|
24550
|
+
/**
|
|
24551
|
+
* Idempotency-Key conflict — key reused with different body
|
|
24552
|
+
*/
|
|
24553
|
+
409: ErrorResponse;
|
|
24554
|
+
/**
|
|
24555
|
+
* Validation error
|
|
24556
|
+
*/
|
|
24557
|
+
422: ErrorResponse;
|
|
24558
|
+
/**
|
|
24559
|
+
* Rate limit exceeded
|
|
24560
|
+
*/
|
|
24561
|
+
429: ErrorResponse;
|
|
24562
|
+
/**
|
|
24563
|
+
* Internal server error
|
|
24564
|
+
*/
|
|
24565
|
+
500: ErrorResponse;
|
|
24566
|
+
};
|
|
24567
|
+
|
|
24568
|
+
export type BackfillPlanHistoryError = BackfillPlanHistoryErrors[keyof BackfillPlanHistoryErrors];
|
|
24569
|
+
|
|
24570
|
+
export type BackfillPlanHistoryResponses = {
|
|
24571
|
+
/**
|
|
24572
|
+
* Successful Response
|
|
24573
|
+
*/
|
|
24574
|
+
200: OperationEnvelopeBackfillPlanHistoryResponse;
|
|
24575
|
+
};
|
|
24576
|
+
|
|
24577
|
+
export type BackfillPlanHistoryResponse2 = BackfillPlanHistoryResponses[keyof BackfillPlanHistoryResponses];
|
|
24578
|
+
|
|
24048
24579
|
export type CreateReportData = {
|
|
24049
24580
|
body: CreateReportRequest;
|
|
24050
24581
|
headers?: {
|