@robosystems/client 0.3.42 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/artifacts/InvestorClient.js +7 -7
  2. package/artifacts/InvestorClient.ts +13 -13
  3. package/artifacts/LedgerClient.d.ts +2 -2
  4. package/artifacts/LedgerClient.js +48 -48
  5. package/artifacts/LedgerClient.ts +91 -91
  6. package/artifacts/QueryClient.js +2 -2
  7. package/artifacts/QueryClient.ts +5 -5
  8. package/artifacts/graphql/generated/graphql.d.ts +2 -0
  9. package/artifacts/graphql/generated/graphql.ts +2 -0
  10. package/client/client.gen.js +109 -126
  11. package/client/client.gen.ts +129 -139
  12. package/client/types.gen.d.ts +7 -4
  13. package/client/types.gen.ts +10 -5
  14. package/client/utils.gen.d.ts +7 -3
  15. package/client/utils.gen.js +6 -6
  16. package/client/utils.gen.ts +11 -11
  17. package/core/bodySerializer.gen.d.ts +4 -4
  18. package/core/bodySerializer.gen.ts +6 -8
  19. package/core/params.gen.js +5 -5
  20. package/core/params.gen.ts +5 -5
  21. package/core/serverSentEvents.gen.d.ts +1 -1
  22. package/core/serverSentEvents.gen.js +4 -6
  23. package/core/serverSentEvents.gen.ts +4 -5
  24. package/core/types.gen.d.ts +1 -1
  25. package/core/types.gen.ts +1 -1
  26. package/core/utils.gen.js +1 -1
  27. package/core/utils.gen.ts +1 -1
  28. package/index.ts +2 -2
  29. package/package.json +2 -2
  30. package/sdk/client/client.gen.js +109 -126
  31. package/sdk/client/client.gen.ts +129 -139
  32. package/sdk/client/types.gen.d.ts +7 -4
  33. package/sdk/client/types.gen.ts +10 -5
  34. package/sdk/client/utils.gen.d.ts +7 -3
  35. package/sdk/client/utils.gen.js +6 -6
  36. package/sdk/client/utils.gen.ts +11 -11
  37. package/sdk/core/bodySerializer.gen.d.ts +4 -4
  38. package/sdk/core/bodySerializer.gen.ts +6 -8
  39. package/sdk/core/params.gen.js +5 -5
  40. package/sdk/core/params.gen.ts +5 -5
  41. package/sdk/core/serverSentEvents.gen.d.ts +1 -1
  42. package/sdk/core/serverSentEvents.gen.js +4 -6
  43. package/sdk/core/serverSentEvents.gen.ts +4 -5
  44. package/sdk/core/types.gen.d.ts +1 -1
  45. package/sdk/core/types.gen.ts +1 -1
  46. package/sdk/core/utils.gen.js +1 -1
  47. package/sdk/core/utils.gen.ts +1 -1
  48. package/sdk/index.d.ts +2 -2
  49. package/sdk/index.js +70 -65
  50. package/sdk/index.ts +2 -2
  51. package/sdk/sdk.gen.d.ts +145 -101
  52. package/sdk/sdk.gen.js +297 -208
  53. package/sdk/sdk.gen.ts +230 -141
  54. package/sdk/types.gen.d.ts +1300 -772
  55. package/sdk/types.gen.ts +1342 -783
  56. package/sdk.gen.d.ts +145 -101
  57. package/sdk.gen.js +297 -208
  58. package/sdk.gen.ts +230 -141
  59. package/types.gen.d.ts +1300 -772
  60. package/types.gen.ts +1342 -783
@@ -13,7 +13,7 @@
13
13
  * Code Generator). The graph is in the URL, not in the query.
14
14
  * - **Writes** go through named command operations at
15
15
  * `/extensions/roboledger/{graph_id}/operations/{operation_name}`
16
- * (via the OpenAPI-generated `opXxx` functions in `../sdk/sdk.gen`).
16
+ * (via the OpenAPI-generated command functions in `../sdk/sdk.gen`).
17
17
  * Each command returns an `OperationEnvelope`; the facade unwraps
18
18
  * `envelope.result` and returns a friendly camelCase type.
19
19
  *
@@ -25,46 +25,46 @@
25
25
  import type { TypedDocumentNode } from '@graphql-typed-document-node/core'
26
26
  import { ClientError } from 'graphql-request'
27
27
  import {
28
- opAddPublishListMembers,
29
- opAutoMapElements,
30
- opBuildFactGrid,
31
- opClosePeriod,
32
- opCreateAgent,
33
- opCreateEventBlock,
34
- opCreateEventHandler,
35
- opCreateInformationBlock,
36
- opCreateMappingAssociation,
37
- opCreatePublishList,
38
- opCreateReport,
39
- opCreateTaxonomyBlock,
40
- opDeleteInformationBlock,
41
- opDeleteJournalEntry,
42
- opDeleteMappingAssociation,
43
- opDeletePublishList,
44
- opDeleteReport,
45
- opDeleteTaxonomyBlock,
46
- opEvaluateRules,
47
- opFileReport,
48
- opFinancialStatementAnalysis,
49
- opInitializeLedger,
50
- opLinkEntityTaxonomy,
51
- opLiveFinancialStatement,
52
- opPreviewEventBlock,
53
- opRebuildSchedule,
54
- opRegenerateReport,
55
- opRemovePublishListMember,
56
- opReopenPeriod,
57
- opSetCloseTarget,
58
- opShareReport,
59
- opTransitionFilingStatus,
60
- opUpdateAgent,
61
- opUpdateEntity,
62
- opUpdateEventBlock,
63
- opUpdateEventHandler,
64
- opUpdateInformationBlock,
65
- opUpdateJournalEntry,
66
- opUpdatePublishList,
67
- opUpdateTaxonomyBlock,
28
+ addPublishListMembers,
29
+ autoMapElements,
30
+ buildFactGrid,
31
+ closePeriod,
32
+ createAgent,
33
+ createEventBlock,
34
+ createEventHandler,
35
+ createInformationBlock,
36
+ createMappingAssociation,
37
+ createPublishList,
38
+ createReport,
39
+ createTaxonomyBlock,
40
+ deleteInformationBlock,
41
+ deleteJournalEntry,
42
+ deleteMappingAssociation,
43
+ deletePublishList,
44
+ deleteReport,
45
+ deleteTaxonomyBlock,
46
+ evaluateRules,
47
+ fileReport,
48
+ financialStatementAnalysis,
49
+ initializeLedger,
50
+ linkEntityTaxonomy,
51
+ liveFinancialStatement,
52
+ previewEventBlock,
53
+ rebuildSchedule,
54
+ regenerateReport,
55
+ removePublishListMember,
56
+ reopenPeriod,
57
+ setCloseTarget,
58
+ shareReport,
59
+ transitionFilingStatus,
60
+ updateAgent,
61
+ updateEntity,
62
+ updateEventBlock,
63
+ updateEventHandler,
64
+ updateInformationBlock,
65
+ updateJournalEntry,
66
+ updatePublishList,
67
+ updateTaxonomyBlock,
68
68
  } from '../sdk.gen'
69
69
  import type {
70
70
  AddPublishListMembersOperation,
@@ -559,7 +559,7 @@ export class LedgerClient {
559
559
  async updateEntity(graphId: string, updates: UpdateEntityRequest): Promise<LedgerEntity> {
560
560
  const envelope = await this.callOperation(
561
561
  'Update entity',
562
- opUpdateEntity({
562
+ updateEntity({
563
563
  path: { graph_id: graphId },
564
564
  body: updates,
565
565
  })
@@ -842,7 +842,7 @@ export class LedgerClient {
842
842
  ): Promise<EntityTaxonomyResponse> {
843
843
  const envelope = await this.callOperation(
844
844
  'Link entity taxonomy',
845
- opLinkEntityTaxonomy({ path: { graph_id: graphId }, body })
845
+ linkEntityTaxonomy({ path: { graph_id: graphId }, body })
846
846
  )
847
847
  return this.requireResult('Link entity taxonomy', envelope.result)
848
848
  }
@@ -859,7 +859,7 @@ export class LedgerClient {
859
859
  const headers = idempotencyKey ? { 'Idempotency-Key': idempotencyKey } : undefined
860
860
  const envelope = await this.callOperation(
861
861
  'Create taxonomy block',
862
- opCreateTaxonomyBlock({ path: { graph_id: graphId }, body, headers })
862
+ createTaxonomyBlock({ path: { graph_id: graphId }, body, headers })
863
863
  )
864
864
  return this.requireResult('Create taxonomy block', envelope.result)
865
865
  }
@@ -871,7 +871,7 @@ export class LedgerClient {
871
871
  ): Promise<TaxonomyBlockEnvelope> {
872
872
  const envelope = await this.callOperation(
873
873
  'Update taxonomy block',
874
- opUpdateTaxonomyBlock({ path: { graph_id: graphId }, body })
874
+ updateTaxonomyBlock({ path: { graph_id: graphId }, body })
875
875
  )
876
876
  return this.requireResult('Update taxonomy block', envelope.result)
877
877
  }
@@ -883,7 +883,7 @@ export class LedgerClient {
883
883
  ): Promise<DeleteTaxonomyBlockResponse> {
884
884
  const envelope = await this.callOperation(
885
885
  'Delete taxonomy block',
886
- opDeleteTaxonomyBlock({ path: { graph_id: graphId }, body })
886
+ deleteTaxonomyBlock({ path: { graph_id: graphId }, body })
887
887
  )
888
888
  return (envelope.result ?? { deleted: true }) as DeleteTaxonomyBlockResponse
889
889
  }
@@ -1016,7 +1016,7 @@ export class LedgerClient {
1016
1016
  ): Promise<AssociationResponse> {
1017
1017
  const envelope = await this.callOperation(
1018
1018
  'Create mapping association',
1019
- opCreateMappingAssociation({ path: { graph_id: graphId }, body })
1019
+ createMappingAssociation({ path: { graph_id: graphId }, body })
1020
1020
  )
1021
1021
  return this.requireResult('Create mapping association', envelope.result)
1022
1022
  }
@@ -1028,7 +1028,7 @@ export class LedgerClient {
1028
1028
  ): Promise<DeleteResult> {
1029
1029
  const envelope = await this.callOperation(
1030
1030
  'Delete mapping association',
1031
- opDeleteMappingAssociation({ path: { graph_id: graphId }, body })
1031
+ deleteMappingAssociation({ path: { graph_id: graphId }, body })
1032
1032
  )
1033
1033
  return (envelope.result ?? { deleted: true }) as DeleteResult
1034
1034
  }
@@ -1044,7 +1044,7 @@ export class LedgerClient {
1044
1044
  ): Promise<{ operationId: string; status: OperationEnvelope['status'] }> {
1045
1045
  const envelope = await this.callOperation(
1046
1046
  'Auto-map elements',
1047
- opAutoMapElements({ path: { graph_id: graphId }, body })
1047
+ autoMapElements({ path: { graph_id: graphId }, body })
1048
1048
  )
1049
1049
  return { operationId: envelope.operationId, status: envelope.status }
1050
1050
  }
@@ -1116,7 +1116,7 @@ export class LedgerClient {
1116
1116
  ): Promise<InformationBlockEnvelope> {
1117
1117
  const envelope = await this.callOperation(
1118
1118
  'Create information block',
1119
- opCreateInformationBlock({
1119
+ createInformationBlock({
1120
1120
  path: { graph_id: graphId },
1121
1121
  body,
1122
1122
  headers: options?.idempotencyKey
@@ -1137,7 +1137,7 @@ export class LedgerClient {
1137
1137
  ): Promise<InformationBlockEnvelope> {
1138
1138
  const envelope = await this.callOperation(
1139
1139
  'Update information block',
1140
- opUpdateInformationBlock({ path: { graph_id: graphId }, body })
1140
+ updateInformationBlock({ path: { graph_id: graphId }, body })
1141
1141
  )
1142
1142
  return this.requireResult('Update information block', envelope.result)
1143
1143
  }
@@ -1153,7 +1153,7 @@ export class LedgerClient {
1153
1153
  ): Promise<DeleteInformationBlockResponse> {
1154
1154
  const envelope = await this.callOperation(
1155
1155
  'Delete information block',
1156
- opDeleteInformationBlock({ path: { graph_id: graphId }, body })
1156
+ deleteInformationBlock({ path: { graph_id: graphId }, body })
1157
1157
  )
1158
1158
  return (envelope.result ?? { deleted: true }) as DeleteInformationBlockResponse
1159
1159
  }
@@ -1187,7 +1187,7 @@ export class LedgerClient {
1187
1187
  }
1188
1188
  const envelope = await this.callOperation(
1189
1189
  'Create schedule',
1190
- opCreateInformationBlock({ path: { graph_id: graphId }, body })
1190
+ createInformationBlock({ path: { graph_id: graphId }, body })
1191
1191
  )
1192
1192
  const raw = envelope.result as unknown as RawScheduleCreatedResult
1193
1193
  return {
@@ -1212,7 +1212,7 @@ export class LedgerClient {
1212
1212
  }
1213
1213
  const envelope = await this.callOperation(
1214
1214
  'Update schedule',
1215
- opUpdateInformationBlock({ path: { graph_id: graphId }, body })
1215
+ updateInformationBlock({ path: { graph_id: graphId }, body })
1216
1216
  )
1217
1217
  return this.requireResult('Update schedule', envelope.result)
1218
1218
  }
@@ -1228,7 +1228,7 @@ export class LedgerClient {
1228
1228
  }
1229
1229
  const envelope = await this.callOperation(
1230
1230
  'Delete schedule',
1231
- opDeleteInformationBlock({ path: { graph_id: graphId }, body })
1231
+ deleteInformationBlock({ path: { graph_id: graphId }, body })
1232
1232
  )
1233
1233
  return (envelope.result ?? { deleted: true }) as DeleteInformationBlockResponse
1234
1234
  }
@@ -1254,7 +1254,7 @@ export class LedgerClient {
1254
1254
  const body: RebuildScheduleRequest = { structure_id: structureId }
1255
1255
  const envelope = await this.callOperation(
1256
1256
  'Rebuild schedule',
1257
- opRebuildSchedule({
1257
+ rebuildSchedule({
1258
1258
  path: { graph_id: graphId },
1259
1259
  body,
1260
1260
  headers: options?.idempotencyKey
@@ -1312,7 +1312,7 @@ export class LedgerClient {
1312
1312
  }
1313
1313
  const envelope = await this.callOperation(
1314
1314
  'Dispose schedule',
1315
- opCreateEventBlock({ path: { graph_id: graphId }, body })
1315
+ createEventBlock({ path: { graph_id: graphId }, body })
1316
1316
  )
1317
1317
  return this.requireResult('Dispose schedule', envelope.result)
1318
1318
  }
@@ -1321,7 +1321,7 @@ export class LedgerClient {
1321
1321
  async evaluateRules(graphId: string, body: EvaluateRulesRequest): Promise<EvaluateRulesResponse> {
1322
1322
  const envelope = await this.callOperation(
1323
1323
  'Evaluate rules',
1324
- opEvaluateRules({ path: { graph_id: graphId }, body })
1324
+ evaluateRules({ path: { graph_id: graphId }, body })
1325
1325
  )
1326
1326
  return this.requireResult('Evaluate rules', envelope.result)
1327
1327
  }
@@ -1388,7 +1388,7 @@ export class LedgerClient {
1388
1388
  }
1389
1389
  const envelope = await this.callOperation(
1390
1390
  'Create closing entry',
1391
- opCreateEventBlock({ path: { graph_id: graphId }, body })
1391
+ createEventBlock({ path: { graph_id: graphId }, body })
1392
1392
  )
1393
1393
  return this.requireResult('Create closing entry', envelope.result)
1394
1394
  }
@@ -1433,7 +1433,7 @@ export class LedgerClient {
1433
1433
  }
1434
1434
  const envelope = await this.callOperation(
1435
1435
  'Initialize ledger',
1436
- opInitializeLedger({ path: { graph_id: graphId }, body })
1436
+ initializeLedger({ path: { graph_id: graphId }, body })
1437
1437
  )
1438
1438
  const raw = envelope.result as unknown as RawInitializeLedgerResult
1439
1439
  return {
@@ -1452,7 +1452,7 @@ export class LedgerClient {
1452
1452
  const body: SetCloseTargetOperation = { period, note: note ?? null }
1453
1453
  const envelope = await this.callOperation(
1454
1454
  'Set close target',
1455
- opSetCloseTarget({ path: { graph_id: graphId }, body })
1455
+ setCloseTarget({ path: { graph_id: graphId }, body })
1456
1456
  )
1457
1457
  return rawFiscalCalendarToCamel(envelope.result as unknown as RawFiscalCalendar)
1458
1458
  }
@@ -1470,7 +1470,7 @@ export class LedgerClient {
1470
1470
  }
1471
1471
  const envelope = await this.callOperation(
1472
1472
  'Close period',
1473
- opClosePeriod({ path: { graph_id: graphId }, body })
1473
+ closePeriod({ path: { graph_id: graphId }, body })
1474
1474
  )
1475
1475
  const raw = envelope.result as unknown as RawClosePeriodResult
1476
1476
  return {
@@ -1497,7 +1497,7 @@ export class LedgerClient {
1497
1497
  }
1498
1498
  const envelope = await this.callOperation(
1499
1499
  'Reopen period',
1500
- opReopenPeriod({ path: { graph_id: graphId }, body })
1500
+ reopenPeriod({ path: { graph_id: graphId }, body })
1501
1501
  )
1502
1502
  return rawFiscalCalendarToCamel(envelope.result as unknown as RawFiscalCalendar)
1503
1503
  }
@@ -1548,7 +1548,7 @@ export class LedgerClient {
1548
1548
  : undefined
1549
1549
  const envelope = await this.callOperation(
1550
1550
  'Create journal entry',
1551
- opCreateEventBlock({ path: { graph_id: graphId }, body, headers })
1551
+ createEventBlock({ path: { graph_id: graphId }, body, headers })
1552
1552
  )
1553
1553
  return this.requireResult('Create journal entry', envelope.result)
1554
1554
  }
@@ -1560,7 +1560,7 @@ export class LedgerClient {
1560
1560
  ): Promise<JournalEntryResponse> {
1561
1561
  const envelope = await this.callOperation(
1562
1562
  'Update journal entry',
1563
- opUpdateJournalEntry({ path: { graph_id: graphId }, body })
1563
+ updateJournalEntry({ path: { graph_id: graphId }, body })
1564
1564
  )
1565
1565
  return this.requireResult('Update journal entry', envelope.result)
1566
1566
  }
@@ -1570,7 +1570,7 @@ export class LedgerClient {
1570
1570
  const body: DeleteJournalEntryRequest = { entry_id: entryId }
1571
1571
  const envelope = await this.callOperation(
1572
1572
  'Delete journal entry',
1573
- opDeleteJournalEntry({ path: { graph_id: graphId }, body })
1573
+ deleteJournalEntry({ path: { graph_id: graphId }, body })
1574
1574
  )
1575
1575
  return (envelope.result ?? { deleted: true }) as DeleteResult
1576
1576
  }
@@ -1609,7 +1609,7 @@ export class LedgerClient {
1609
1609
  }
1610
1610
  const envelope = await this.callOperation(
1611
1611
  'Reverse journal entry',
1612
- opCreateEventBlock({ path: { graph_id: graphId }, body })
1612
+ createEventBlock({ path: { graph_id: graphId }, body })
1613
1613
  )
1614
1614
  return this.requireResult('Reverse journal entry', envelope.result)
1615
1615
  }
@@ -1630,7 +1630,7 @@ export class LedgerClient {
1630
1630
  ): Promise<PreviewEventBlockResponse> {
1631
1631
  const envelope = await this.callOperation(
1632
1632
  'Preview event block',
1633
- opPreviewEventBlock({ path: { graph_id: graphId }, body })
1633
+ previewEventBlock({ path: { graph_id: graphId }, body })
1634
1634
  )
1635
1635
  return this.requireResult('Preview event block', envelope.result)
1636
1636
  }
@@ -1647,7 +1647,7 @@ export class LedgerClient {
1647
1647
  ): Promise<EventBlockEnvelope> {
1648
1648
  const envelope = await this.callOperation(
1649
1649
  'Update event block',
1650
- opUpdateEventBlock({ path: { graph_id: graphId }, body })
1650
+ updateEventBlock({ path: { graph_id: graphId }, body })
1651
1651
  )
1652
1652
  return this.requireResult('Update event block', envelope.result)
1653
1653
  }
@@ -1668,7 +1668,7 @@ export class LedgerClient {
1668
1668
  const headers = idempotencyKey ? { 'Idempotency-Key': idempotencyKey } : undefined
1669
1669
  const envelope = await this.callOperation(
1670
1670
  'Create agent',
1671
- opCreateAgent({ path: { graph_id: graphId }, body, headers })
1671
+ createAgent({ path: { graph_id: graphId }, body, headers })
1672
1672
  )
1673
1673
  return this.requireResult('Create agent', envelope.result)
1674
1674
  }
@@ -1680,7 +1680,7 @@ export class LedgerClient {
1680
1680
  async updateAgent(graphId: string, body: UpdateAgentRequest): Promise<LedgerAgentResponse> {
1681
1681
  const envelope = await this.callOperation(
1682
1682
  'Update agent',
1683
- opUpdateAgent({ path: { graph_id: graphId }, body })
1683
+ updateAgent({ path: { graph_id: graphId }, body })
1684
1684
  )
1685
1685
  return this.requireResult('Update agent', envelope.result)
1686
1686
  }
@@ -1699,7 +1699,7 @@ export class LedgerClient {
1699
1699
  ): Promise<EventHandlerResponse> {
1700
1700
  const envelope = await this.callOperation(
1701
1701
  'Create event handler',
1702
- opCreateEventHandler({ path: { graph_id: graphId }, body })
1702
+ createEventHandler({ path: { graph_id: graphId }, body })
1703
1703
  )
1704
1704
  return this.requireResult('Create event handler', envelope.result)
1705
1705
  }
@@ -1714,7 +1714,7 @@ export class LedgerClient {
1714
1714
  ): Promise<EventHandlerResponse> {
1715
1715
  const envelope = await this.callOperation(
1716
1716
  'Update event handler',
1717
- opUpdateEventHandler({ path: { graph_id: graphId }, body })
1717
+ updateEventHandler({ path: { graph_id: graphId }, body })
1718
1718
  )
1719
1719
  return this.requireResult('Update event handler', envelope.result)
1720
1720
  }
@@ -1733,7 +1733,7 @@ export class LedgerClient {
1733
1733
  ): Promise<Record<string, unknown>> {
1734
1734
  const envelope = await this.callOperation(
1735
1735
  'Live financial statement',
1736
- opLiveFinancialStatement({ path: { graph_id: graphId }, body })
1736
+ liveFinancialStatement({ path: { graph_id: graphId }, body })
1737
1737
  )
1738
1738
  return (envelope.result ?? {}) as Record<string, unknown>
1739
1739
  }
@@ -1750,7 +1750,7 @@ export class LedgerClient {
1750
1750
  ): Promise<Record<string, unknown>> {
1751
1751
  const envelope = await this.callOperation(
1752
1752
  'Financial statement analysis',
1753
- opFinancialStatementAnalysis({ path: { graph_id: graphId }, body })
1753
+ financialStatementAnalysis({ path: { graph_id: graphId }, body })
1754
1754
  )
1755
1755
  return (envelope.result ?? {}) as Record<string, unknown>
1756
1756
  }
@@ -1767,7 +1767,7 @@ export class LedgerClient {
1767
1767
  async buildFactGrid(graphId: string, body: CreateViewRequest): Promise<Record<string, unknown>> {
1768
1768
  const envelope = await this.callOperation(
1769
1769
  'Build fact grid',
1770
- opBuildFactGrid({ path: { graph_id: graphId }, body })
1770
+ buildFactGrid({ path: { graph_id: graphId }, body })
1771
1771
  )
1772
1772
  return (envelope.result ?? {}) as Record<string, unknown>
1773
1773
  }
@@ -1828,7 +1828,7 @@ export class LedgerClient {
1828
1828
  }
1829
1829
  const envelope = await this.callOperation(
1830
1830
  'Create report',
1831
- opCreateReport({ path: { graph_id: graphId }, body })
1831
+ createReport({ path: { graph_id: graphId }, body })
1832
1832
  )
1833
1833
  return {
1834
1834
  operationId: envelope.operationId,
@@ -1907,13 +1907,13 @@ export class LedgerClient {
1907
1907
  ): Promise<ReportOperationAck<ReportResponse>> {
1908
1908
  const envelope = await this.callOperation(
1909
1909
  'Regenerate report',
1910
- opRegenerateReport({
1910
+ regenerateReport({
1911
1911
  path: { graph_id: graphId },
1912
1912
  body: {
1913
1913
  report_id: reportId,
1914
1914
  period_start: periodStart,
1915
1915
  period_end: periodEnd,
1916
- } as Parameters<typeof opRegenerateReport>[0]['body'],
1916
+ } as Parameters<typeof regenerateReport>[0]['body'],
1917
1917
  })
1918
1918
  )
1919
1919
  return {
@@ -1927,7 +1927,7 @@ export class LedgerClient {
1927
1927
  async deleteReport(graphId: string, reportId: string): Promise<DeleteResult> {
1928
1928
  const envelope = await this.callOperation(
1929
1929
  'Delete report',
1930
- opDeleteReport({
1930
+ deleteReport({
1931
1931
  path: { graph_id: graphId },
1932
1932
  body: { report_id: reportId },
1933
1933
  })
@@ -1997,12 +1997,12 @@ export class LedgerClient {
1997
1997
  ): Promise<ReportOperationAck<ShareReportResponse>> {
1998
1998
  const envelope = await this.callOperation(
1999
1999
  'Share report',
2000
- opShareReport({
2000
+ shareReport({
2001
2001
  path: { graph_id: graphId },
2002
2002
  body: {
2003
2003
  report_id: reportId,
2004
2004
  publish_list_id: publishListId,
2005
- } as Parameters<typeof opShareReport>[0]['body'],
2005
+ } as Parameters<typeof shareReport>[0]['body'],
2006
2006
  })
2007
2007
  )
2008
2008
  return {
@@ -2021,7 +2021,7 @@ export class LedgerClient {
2021
2021
  const body: FileReportRequest = { report_id: reportId }
2022
2022
  const envelope = await this.callOperation(
2023
2023
  'File report',
2024
- opFileReport({ path: { graph_id: graphId }, body })
2024
+ fileReport({ path: { graph_id: graphId }, body })
2025
2025
  )
2026
2026
  return {
2027
2027
  operationId: envelope.operationId,
@@ -2046,7 +2046,7 @@ export class LedgerClient {
2046
2046
  }
2047
2047
  const envelope = await this.callOperation(
2048
2048
  'Transition filing status',
2049
- opTransitionFilingStatus({ path: { graph_id: graphId }, body })
2049
+ transitionFilingStatus({ path: { graph_id: graphId }, body })
2050
2050
  )
2051
2051
  return {
2052
2052
  operationId: envelope.operationId,
@@ -2092,7 +2092,7 @@ export class LedgerClient {
2092
2092
  }
2093
2093
  const envelope = await this.callOperation(
2094
2094
  'Create publish list',
2095
- opCreatePublishList({ path: { graph_id: graphId }, body })
2095
+ createPublishList({ path: { graph_id: graphId }, body })
2096
2096
  )
2097
2097
  return this.requireResult('Create publish list', envelope.result)
2098
2098
  }
@@ -2116,7 +2116,7 @@ export class LedgerClient {
2116
2116
  ): Promise<PublishListResponse> {
2117
2117
  const envelope = await this.callOperation(
2118
2118
  'Update publish list',
2119
- opUpdatePublishList({
2119
+ updatePublishList({
2120
2120
  path: { graph_id: graphId },
2121
2121
  body: {
2122
2122
  list_id: listId,
@@ -2132,7 +2132,7 @@ export class LedgerClient {
2132
2132
  async deletePublishList(graphId: string, listId: string): Promise<DeleteResult> {
2133
2133
  const envelope = await this.callOperation(
2134
2134
  'Delete publish list',
2135
- opDeletePublishList({
2135
+ deletePublishList({
2136
2136
  path: { graph_id: graphId },
2137
2137
  body: { list_id: listId },
2138
2138
  })
@@ -2148,7 +2148,7 @@ export class LedgerClient {
2148
2148
  ): Promise<PublishListMemberResponse[]> {
2149
2149
  const envelope = await this.callOperation(
2150
2150
  'Add publish list members',
2151
- opAddPublishListMembers({
2151
+ addPublishListMembers({
2152
2152
  path: { graph_id: graphId },
2153
2153
  body: {
2154
2154
  list_id: listId,
@@ -2167,7 +2167,7 @@ export class LedgerClient {
2167
2167
  ): Promise<DeleteResult> {
2168
2168
  const envelope = await this.callOperation(
2169
2169
  'Remove publish list member',
2170
- opRemovePublishListMember({
2170
+ removePublishListMember({
2171
2171
  path: { graph_id: graphId },
2172
2172
  body: { list_id: listId, member_id: memberId },
2173
2173
  })
@@ -2178,11 +2178,11 @@ export class LedgerClient {
2178
2178
  // ── Internal helpers ────────────────────────────────────────────────
2179
2179
 
2180
2180
  /**
2181
- * Await an SDK-generated `opXxx(...)` call, throw a readable error on
2181
+ * Await an SDK-generated command call, throw a readable error on
2182
2182
  * non-2xx, and return the parsed envelope on success.
2183
2183
  *
2184
2184
  * Generic over the SDK call's response shape so typed ops (e.g.
2185
- * `opCreateEventBlock`, which returns
2185
+ * `createEventBlock`, which returns
2186
2186
  * `OperationEnvelopeEventBlockEnvelope`) flow through with a typed
2187
2187
  * `envelope.result` instead of being widened to `unknown`. Untyped
2188
2188
  * ops continue to land as `OperationEnvelope` automatically.
@@ -14,7 +14,7 @@ class QueryClient {
14
14
  }
15
15
  async executeQuery(graphId, request, options = {}) {
16
16
  const data = {
17
- url: '/v1/graphs/{graph_id}/query',
17
+ url: '/v1/graphs/{graph_id}/query/cypher',
18
18
  path: { graph_id: graphId },
19
19
  body: {
20
20
  query: request.query,
@@ -27,7 +27,7 @@ class QueryClient {
27
27
  // For streaming mode, don't parse response - get raw Response object
28
28
  ...(options.mode === 'stream' ? { parseAs: 'stream' } : {}),
29
29
  };
30
- const response = await (0, sdk_gen_1.executeCypherQuery)(data);
30
+ const response = await (0, sdk_gen_1.executeCypher)(data);
31
31
  // Check for errors in the response (network errors, etc.)
32
32
  if ('error' in response && response.error) {
33
33
  const error = response.error;
@@ -5,8 +5,8 @@
5
5
  * Provides intelligent query execution with automatic strategy selection
6
6
  */
7
7
 
8
- import { executeCypherQuery } from '../sdk.gen'
9
- import type { ExecuteCypherQueryData } from '../types.gen'
8
+ import { executeCypher } from '../sdk.gen'
9
+ import type { ExecuteCypherData } from '../types.gen'
10
10
  import { EventType, SSEClient } from './SSEClient'
11
11
 
12
12
  export interface QueryRequest {
@@ -64,8 +64,8 @@ export class QueryClient {
64
64
  request: QueryRequest,
65
65
  options: QueryOptions = {}
66
66
  ): Promise<QueryResult | AsyncIterableIterator<any>> {
67
- const data: ExecuteCypherQueryData = {
68
- url: '/v1/graphs/{graph_id}/query' as const,
67
+ const data: ExecuteCypherData = {
68
+ url: '/v1/graphs/{graph_id}/query/cypher' as const,
69
69
  path: { graph_id: graphId },
70
70
  body: {
71
71
  query: request.query,
@@ -79,7 +79,7 @@ export class QueryClient {
79
79
  ...(options.mode === 'stream' ? { parseAs: 'stream' as const } : {}),
80
80
  }
81
81
 
82
- const response = await executeCypherQuery(data)
82
+ const response = await executeCypher(data)
83
83
 
84
84
  // Check for errors in the response (network errors, etc.)
85
85
  if ('error' in response && response.error) {
@@ -784,6 +784,8 @@ export type LedgerEntity = {
784
784
  /** Parent entity ID for subsidiaries; null for top-level. */
785
785
  parentEntityId: Maybe<Scalars['String']['output']>;
786
786
  phone: Maybe<Scalars['String']['output']>;
787
+ /** Active Reporting Style (Structure id) governing this entity's statement layout. Change it via the change-reporting-style operation. */
788
+ reportingStyleId: Maybe<Scalars['String']['output']>;
787
789
  /** SIC industry code. */
788
790
  sic: Maybe<Scalars['String']['output']>;
789
791
  /** SIC code description. */
@@ -793,6 +793,8 @@ export type LedgerEntity = {
793
793
  /** Parent entity ID for subsidiaries; null for top-level. */
794
794
  parentEntityId: Maybe<Scalars['String']['output']>
795
795
  phone: Maybe<Scalars['String']['output']>
796
+ /** Active Reporting Style (Structure id) governing this entity's statement layout. Change it via the change-reporting-style operation. */
797
+ reportingStyleId: Maybe<Scalars['String']['output']>
796
798
  /** SIC industry code. */
797
799
  sic: Maybe<Scalars['String']['output']>
798
800
  /** SIC code description. */