From afb575d55da94cc873038d8c06572249d7217904 Mon Sep 17 00:00:00 2001 From: "Joseph T. French" Date: Sun, 6 Sep 2026 14:20:03 -0500 Subject: [PATCH] feat(ledger): TAVI report download format Regenerated against robosystems#1361: `ReportDownloadFormat` gains `TAVI`, the Project Tavi compiled model, beside `JSONLD`, `HOLON_JSONLD` and `XBRL_2_1`. Docs on the query and the facade list all four flavors. Claude-Session: https://claude.ai/code/session_01TBKj1VsfBpKsFY7PPcrCFu --- clients/LedgerClient.ts | 3 ++- clients/graphql/generated/graphql.ts | 2 +- clients/graphql/queries/ledger/reportDownloadUrl.ts | 7 ++++--- sdk/types.gen.ts | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/clients/LedgerClient.ts b/clients/LedgerClient.ts index 2555365..6859a37 100644 --- a/clients/LedgerClient.ts +++ b/clients/LedgerClient.ts @@ -2190,7 +2190,8 @@ export class LedgerClient { * * @param graphId Graph identifier owning the Report. * @param reportId Report identifier (rpt_-prefixed ULID). - * @param options.format Serialization flavor — `JSONLD` (default) or `XBRL_2_1`. + * @param options.format Serialization flavor — `JSONLD` (default), `HOLON_JSONLD`, + * `XBRL_2_1`, or `TAVI` (the Project Tavi compiled model). * @param options.expiresIn Presigned URL lifetime, in seconds. */ async getReportDownloadUrl( diff --git a/clients/graphql/generated/graphql.ts b/clients/graphql/generated/graphql.ts index 0137e23..0ea4dcb 100644 --- a/clients/graphql/generated/graphql.ts +++ b/clients/graphql/generated/graphql.ts @@ -4,7 +4,7 @@ type Exact = { [K in keyof T]: T[K] } export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never } import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core' -export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'XBRL_2_1' +export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'TAVI' | 'XBRL_2_1' export type GetInvestorHoldingsQueryVariables = Exact<{ portfolioId: string diff --git a/clients/graphql/queries/ledger/reportDownloadUrl.ts b/clients/graphql/queries/ledger/reportDownloadUrl.ts index 197be65..81ad394 100644 --- a/clients/graphql/queries/ledger/reportDownloadUrl.ts +++ b/clients/graphql/queries/ledger/reportDownloadUrl.ts @@ -6,9 +6,10 @@ import { gql } from 'graphql-request' * Replaces the retired `GET .../reports/{id}/download` REST resource — a * download is a read of stored state, so it lives on the read surface. * Every flavor resolves to a short-lived presigned S3 URL the client - * follows directly (JSON-LD is stamped at publish time; XBRL is - * materialized + cached on first request). `format` accepts the - * `ReportDownloadFormat` enum (`JSONLD`, `XBRL_2_1`). + * follows directly (JSON-LD is stamped at publish time; XBRL, the holon + * and the Tavi compiled model are materialized + cached on first + * request). `format` accepts the `ReportDownloadFormat` enum (`JSONLD`, + * `HOLON_JSONLD`, `XBRL_2_1`, `TAVI`). */ export const GET_REPORT_DOWNLOAD_URL = gql` query GetLedgerReportDownloadUrl( diff --git a/sdk/types.gen.ts b/sdk/types.gen.ts index 95747ae..7db12ea 100644 --- a/sdk/types.gen.ts +++ b/sdk/types.gen.ts @@ -5072,7 +5072,7 @@ export type EventBlockEnvelope = { /** * Event Category * - * REA category — economic (`sales`, `purchase`, `financing`, `payroll`, `treasury`, `adjustment`, `recognition`, `other`) or support (`control`, `approval`, `reconciliation`, `inquiry`). + * REA category, scoped by `event_class` — economic (`sales`, `purchase`, `financing`, `payroll`, `treasury`, `adjustment`, `recognition`, `other`), support (`control`, `approval`, `reconciliation`, `inquiry`), or operational (`pipeline`, `engagement`, `schedule`, `other`) for occurrences that drive no GL — a lead, a lifecycle change, an outreach, a schedule setup. */ event_category: string; /**