@robosystems/client 0.3.11 → 0.3.13

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 (32) hide show
  1. package/artifacts/OperationClient.js +14 -0
  2. package/artifacts/OperationClient.ts +15 -0
  3. package/artifacts/SSEClient.js +21 -3
  4. package/artifacts/SSEClient.ts +26 -3
  5. package/artifacts/graphql/generated/graphql.d.ts +30 -32
  6. package/artifacts/graphql/generated/graphql.js +15 -23
  7. package/artifacts/graphql/generated/graphql.ts +45 -61
  8. package/artifacts/graphql/queries/ledger/accountRollups.js +1 -1
  9. package/artifacts/graphql/queries/ledger/accountRollups.ts +1 -1
  10. package/artifacts/graphql/queries/ledger/accountTree.js +4 -4
  11. package/artifacts/graphql/queries/ledger/accountTree.ts +4 -4
  12. package/artifacts/graphql/queries/ledger/accounts.js +0 -1
  13. package/artifacts/graphql/queries/ledger/accounts.ts +0 -1
  14. package/artifacts/graphql/queries/ledger/elements.js +0 -1
  15. package/artifacts/graphql/queries/ledger/elements.ts +0 -1
  16. package/artifacts/graphql/queries/ledger/mappedTrialBalance.js +1 -1
  17. package/artifacts/graphql/queries/ledger/mappedTrialBalance.ts +1 -1
  18. package/artifacts/graphql/queries/ledger/statement.js +1 -1
  19. package/artifacts/graphql/queries/ledger/statement.ts +1 -1
  20. package/artifacts/graphql/queries/ledger/trialBalance.js +1 -1
  21. package/artifacts/graphql/queries/ledger/trialBalance.ts +1 -1
  22. package/artifacts/graphql/queries/ledger/unmappedElements.js +1 -1
  23. package/artifacts/graphql/queries/ledger/unmappedElements.ts +1 -1
  24. package/artifacts/graphql/queries/library/arcs.js +3 -3
  25. package/artifacts/graphql/queries/library/arcs.ts +3 -3
  26. package/artifacts/graphql/queries/library/elements.js +3 -3
  27. package/artifacts/graphql/queries/library/elements.ts +3 -3
  28. package/package.json +1 -1
  29. package/sdk/types.gen.d.ts +42 -12
  30. package/sdk/types.gen.ts +42 -12
  31. package/types.gen.d.ts +42 -12
  32. package/types.gen.ts +42 -12
@@ -15,7 +15,7 @@ export const GET_TRIAL_BALANCE = gql`
15
15
  accountId
16
16
  accountCode
17
17
  accountName
18
- classification
18
+ trait
19
19
  accountType
20
20
  totalDebits
21
21
  totalCredits
@@ -15,7 +15,7 @@ exports.LIST_UNMAPPED_ELEMENTS = (0, graphql_request_1.gql) `
15
15
  id
16
16
  code
17
17
  name
18
- classification
18
+ trait
19
19
  balanceType
20
20
  externalSource
21
21
  suggestedTargets {
@@ -13,7 +13,7 @@ export const LIST_UNMAPPED_ELEMENTS = gql`
13
13
  id
14
14
  code
15
15
  name
16
- classification
16
+ trait
17
17
  balanceType
18
18
  externalSource
19
19
  suggestedTargets {
@@ -60,7 +60,7 @@ exports.GET_LIBRARY_ELEMENT_ARCS = (0, graphql_request_1.gql) `
60
60
  id
61
61
  qname
62
62
  name
63
- classification
63
+ trait
64
64
  source
65
65
  }
66
66
  }
@@ -91,14 +91,14 @@ exports.GET_LIBRARY_ELEMENT_EQUIVALENTS = (0, graphql_request_1.gql) `
91
91
  id
92
92
  qname
93
93
  name
94
- classification
94
+ trait
95
95
  source
96
96
  }
97
97
  equivalents {
98
98
  id
99
99
  qname
100
100
  name
101
- classification
101
+ trait
102
102
  source
103
103
  }
104
104
  }
@@ -59,7 +59,7 @@ export const GET_LIBRARY_ELEMENT_ARCS = gql`
59
59
  id
60
60
  qname
61
61
  name
62
- classification
62
+ trait
63
63
  source
64
64
  }
65
65
  }
@@ -92,14 +92,14 @@ export const GET_LIBRARY_ELEMENT_EQUIVALENTS = gql`
92
92
  id
93
93
  qname
94
94
  name
95
- classification
95
+ trait
96
96
  source
97
97
  }
98
98
  equivalents {
99
99
  id
100
100
  qname
101
101
  name
102
- classification
102
+ trait
103
103
  source
104
104
  }
105
105
  }
@@ -44,7 +44,7 @@ exports.LIST_LIBRARY_ELEMENTS = (0, graphql_request_1.gql) `
44
44
  qname
45
45
  namespace
46
46
  name
47
- classification
47
+ trait
48
48
  balanceType
49
49
  periodType
50
50
  isAbstract
@@ -77,7 +77,7 @@ exports.SEARCH_LIBRARY_ELEMENTS = (0, graphql_request_1.gql) `
77
77
  qname
78
78
  namespace
79
79
  name
80
- classification
80
+ trait
81
81
  balanceType
82
82
  periodType
83
83
  isAbstract
@@ -110,7 +110,7 @@ exports.GET_LIBRARY_ELEMENT = (0, graphql_request_1.gql) `
110
110
  qname
111
111
  namespace
112
112
  name
113
- classification
113
+ trait
114
114
  balanceType
115
115
  periodType
116
116
  isAbstract
@@ -42,7 +42,7 @@ export const LIST_LIBRARY_ELEMENTS = gql`
42
42
  qname
43
43
  namespace
44
44
  name
45
- classification
45
+ trait
46
46
  balanceType
47
47
  periodType
48
48
  isAbstract
@@ -76,7 +76,7 @@ export const SEARCH_LIBRARY_ELEMENTS = gql`
76
76
  qname
77
77
  namespace
78
78
  name
79
- classification
79
+ trait
80
80
  balanceType
81
81
  periodType
82
82
  isAbstract
@@ -110,7 +110,7 @@ export const GET_LIBRARY_ELEMENT = gql`
110
110
  qname
111
111
  namespace
112
112
  name
113
- classification
113
+ trait
114
114
  balanceType
115
115
  periodType
116
116
  isAbstract
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "description": "TypeScript client library for RoboSystems Financial Knowledge Graph API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1386,9 +1386,15 @@ export type CreateEventBlockRequest = {
1386
1386
  /**
1387
1387
  * Event Category
1388
1388
  *
1389
- * REA economic classification. One of: sales, purchase, financing, payroll, treasury, adjustment, recognition, other.
1389
+ * REA classification. Economic categories (sales, purchase, financing, payroll, treasury, adjustment, recognition, other) require event_class='economic'. Support categories (control, approval, reconciliation, inquiry) require event_class='support'. The DB CHECK rejects mismatched pairings.
1390
1390
  */
1391
- event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other';
1391
+ event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other' | 'control' | 'approval' | 'reconciliation' | 'inquiry';
1392
+ /**
1393
+ * Event Class
1394
+ *
1395
+ * REA event class. 'economic' events change resources and drive GL postings; 'support' events are audit-trail / value-chain primitives (typically captured with apply_handlers=False).
1396
+ */
1397
+ event_class?: 'economic' | 'support';
1392
1398
  /**
1393
1399
  * Agent Id
1394
1400
  *
@@ -1465,6 +1471,18 @@ export type CreateEventBlockRequest = {
1465
1471
  * Dimension Ids
1466
1472
  */
1467
1473
  dimension_ids?: Array<string>;
1474
+ /**
1475
+ * Obligated By Event Id
1476
+ *
1477
+ * Forward-materialization link: the event that scheduled or obligated this one (e.g. depreciation entries point at the asset_acquired event).
1478
+ */
1479
+ obligated_by_event_id?: string | null;
1480
+ /**
1481
+ * Discharges Event Id
1482
+ *
1483
+ * Settlement link: the obligation this event discharges (e.g. cash_received pointing at the originating sale_invoiced).
1484
+ */
1485
+ discharges_event_id?: string | null;
1468
1486
  /**
1469
1487
  * Apply Handlers
1470
1488
  *
@@ -1507,7 +1525,7 @@ export type CreateEventHandlerRequest = {
1507
1525
  /**
1508
1526
  * Match Metadata Expression
1509
1527
  *
1510
- * JSONPath-style equality map, e.g. {"metadata.category": "payroll"}
1528
+ * JSONPath-style equality map against event.metadata, e.g. {"category": "payroll"} or {"metadata.category": "payroll"}
1511
1529
  */
1512
1530
  match_metadata_expression?: {
1513
1531
  [key: string]: unknown;
@@ -3027,9 +3045,9 @@ export type ElementUpdatePatch = {
3027
3045
  */
3028
3046
  description?: string | null;
3029
3047
  /**
3030
- * Classification
3048
+ * Trait
3031
3049
  */
3032
- classification?: string | null;
3050
+ trait?: string | null;
3033
3051
  /**
3034
3052
  * Balance Type
3035
3053
  */
@@ -3173,7 +3191,7 @@ export type ErrorResponse = {
3173
3191
  /**
3174
3192
  * EvaluateRulesRequest
3175
3193
  *
3176
- * Request body for the ``evaluate-rules`` operation (Phase delta.3).
3194
+ * Request body for the ``evaluate-rules`` operation.
3177
3195
  *
3178
3196
  * Runs every rule scoped to ``structure_id`` (plus element/association-
3179
3197
  * scoped rules for the structure's atoms), binds ``$Variable`` references
@@ -3192,7 +3210,7 @@ export type EvaluateRulesRequest = {
3192
3210
  /**
3193
3211
  * Fact Set Id
3194
3212
  *
3195
- * Optional FactSet id to stamp on each VerificationResult row. Allows results to be scoped to a specific period run when the FactSet table is populated (Phase zeta expand pass).
3213
+ * Optional FactSet id to stamp on each VerificationResult row. Allows results to be scoped to a specific period run once write paths populate the FactSet table on every run.
3196
3214
  */
3197
3215
  fact_set_id?: string | null;
3198
3216
  /**
@@ -6975,11 +6993,11 @@ export type TaxonomyBlockElementRequest = {
6975
6993
  */
6976
6994
  name: string;
6977
6995
  /**
6978
- * Classification
6996
+ * Trait
6979
6997
  *
6980
6998
  * FASB metamodel trait for the element. Required for ``chart_of_accounts`` blocks; optional for ``custom_ontology``.
6981
6999
  */
6982
- classification?: string | null;
7000
+ trait?: string | null;
6983
7001
  /**
6984
7002
  * Balance Type
6985
7003
  *
@@ -7517,7 +7535,7 @@ export type UpdateEventBlockRequest = {
7517
7535
  /**
7518
7536
  * Transition To
7519
7537
  *
7520
- * Status transition. Valid moves depend on current status: captured → committed | voided; classified → committed | pending | fulfilled | voided; committed → pending | fulfilled | voided; pending → fulfilled | voided. Terminal states (fulfilled, voided, superseded) accept no further transitions. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
7538
+ * Status transition. Valid moves depend on current status: captured → committed | voided | superseded; classified → committed | pending | fulfilled | voided | superseded; committed → pending | fulfilled | voided | superseded; pending → fulfilled | voided | superseded. Terminal states (fulfilled, voided, superseded) accept no further transitions. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
7521
7539
  */
7522
7540
  transition_to?: 'committed' | 'pending' | 'fulfilled' | 'voided' | 'superseded' | null;
7523
7541
  /**
@@ -7542,6 +7560,18 @@ export type UpdateEventBlockRequest = {
7542
7560
  metadata_patch?: {
7543
7561
  [key: string]: unknown;
7544
7562
  };
7563
+ /**
7564
+ * Obligated By Event Id
7565
+ *
7566
+ * Set/update the forward-materialization link.
7567
+ */
7568
+ obligated_by_event_id?: string | null;
7569
+ /**
7570
+ * Discharges Event Id
7571
+ *
7572
+ * Set/update the settlement link.
7573
+ */
7574
+ discharges_event_id?: string | null;
7545
7575
  };
7546
7576
  /**
7547
7577
  * UpdateEventHandlerRequest
@@ -7869,8 +7899,8 @@ export type UpdateSecurityOperation = {
7869
7899
  *
7870
7900
  * Top-level fields (name / description / version) apply to the taxonomy
7871
7901
  * row itself. The delta lists mutate atoms incrementally — the validator
7872
- * (Phase 2.3) re-runs the seven-phase check across the projected post-
7873
- * update state before anything commits.
7902
+ * re-runs every create-time check across the projected post-update
7903
+ * state before anything commits.
7874
7904
  */
7875
7905
  export type UpdateTaxonomyBlockRequest = {
7876
7906
  /**
package/sdk/types.gen.ts CHANGED
@@ -1430,9 +1430,15 @@ export type CreateEventBlockRequest = {
1430
1430
  /**
1431
1431
  * Event Category
1432
1432
  *
1433
- * REA economic classification. One of: sales, purchase, financing, payroll, treasury, adjustment, recognition, other.
1433
+ * REA classification. Economic categories (sales, purchase, financing, payroll, treasury, adjustment, recognition, other) require event_class='economic'. Support categories (control, approval, reconciliation, inquiry) require event_class='support'. The DB CHECK rejects mismatched pairings.
1434
1434
  */
1435
- event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other';
1435
+ event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other' | 'control' | 'approval' | 'reconciliation' | 'inquiry';
1436
+ /**
1437
+ * Event Class
1438
+ *
1439
+ * REA event class. 'economic' events change resources and drive GL postings; 'support' events are audit-trail / value-chain primitives (typically captured with apply_handlers=False).
1440
+ */
1441
+ event_class?: 'economic' | 'support';
1436
1442
  /**
1437
1443
  * Agent Id
1438
1444
  *
@@ -1509,6 +1515,18 @@ export type CreateEventBlockRequest = {
1509
1515
  * Dimension Ids
1510
1516
  */
1511
1517
  dimension_ids?: Array<string>;
1518
+ /**
1519
+ * Obligated By Event Id
1520
+ *
1521
+ * Forward-materialization link: the event that scheduled or obligated this one (e.g. depreciation entries point at the asset_acquired event).
1522
+ */
1523
+ obligated_by_event_id?: string | null;
1524
+ /**
1525
+ * Discharges Event Id
1526
+ *
1527
+ * Settlement link: the obligation this event discharges (e.g. cash_received pointing at the originating sale_invoiced).
1528
+ */
1529
+ discharges_event_id?: string | null;
1512
1530
  /**
1513
1531
  * Apply Handlers
1514
1532
  *
@@ -1552,7 +1570,7 @@ export type CreateEventHandlerRequest = {
1552
1570
  /**
1553
1571
  * Match Metadata Expression
1554
1572
  *
1555
- * JSONPath-style equality map, e.g. {"metadata.category": "payroll"}
1573
+ * JSONPath-style equality map against event.metadata, e.g. {"category": "payroll"} or {"metadata.category": "payroll"}
1556
1574
  */
1557
1575
  match_metadata_expression?: {
1558
1576
  [key: string]: unknown;
@@ -3113,9 +3131,9 @@ export type ElementUpdatePatch = {
3113
3131
  */
3114
3132
  description?: string | null;
3115
3133
  /**
3116
- * Classification
3134
+ * Trait
3117
3135
  */
3118
- classification?: string | null;
3136
+ trait?: string | null;
3119
3137
  /**
3120
3138
  * Balance Type
3121
3139
  */
@@ -3264,7 +3282,7 @@ export type ErrorResponse = {
3264
3282
  /**
3265
3283
  * EvaluateRulesRequest
3266
3284
  *
3267
- * Request body for the ``evaluate-rules`` operation (Phase delta.3).
3285
+ * Request body for the ``evaluate-rules`` operation.
3268
3286
  *
3269
3287
  * Runs every rule scoped to ``structure_id`` (plus element/association-
3270
3288
  * scoped rules for the structure's atoms), binds ``$Variable`` references
@@ -3283,7 +3301,7 @@ export type EvaluateRulesRequest = {
3283
3301
  /**
3284
3302
  * Fact Set Id
3285
3303
  *
3286
- * Optional FactSet id to stamp on each VerificationResult row. Allows results to be scoped to a specific period run when the FactSet table is populated (Phase zeta expand pass).
3304
+ * Optional FactSet id to stamp on each VerificationResult row. Allows results to be scoped to a specific period run once write paths populate the FactSet table on every run.
3287
3305
  */
3288
3306
  fact_set_id?: string | null;
3289
3307
  /**
@@ -7174,11 +7192,11 @@ export type TaxonomyBlockElementRequest = {
7174
7192
  */
7175
7193
  name: string;
7176
7194
  /**
7177
- * Classification
7195
+ * Trait
7178
7196
  *
7179
7197
  * FASB metamodel trait for the element. Required for ``chart_of_accounts`` blocks; optional for ``custom_ontology``.
7180
7198
  */
7181
- classification?: string | null;
7199
+ trait?: string | null;
7182
7200
  /**
7183
7201
  * Balance Type
7184
7202
  *
@@ -7730,7 +7748,7 @@ export type UpdateEventBlockRequest = {
7730
7748
  /**
7731
7749
  * Transition To
7732
7750
  *
7733
- * Status transition. Valid moves depend on current status: captured → committed | voided; classified → committed | pending | fulfilled | voided; committed → pending | fulfilled | voided; pending → fulfilled | voided. Terminal states (fulfilled, voided, superseded) accept no further transitions. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
7751
+ * Status transition. Valid moves depend on current status: captured → committed | voided | superseded; classified → committed | pending | fulfilled | voided | superseded; committed → pending | fulfilled | voided | superseded; pending → fulfilled | voided | superseded. Terminal states (fulfilled, voided, superseded) accept no further transitions. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
7734
7752
  */
7735
7753
  transition_to?: 'committed' | 'pending' | 'fulfilled' | 'voided' | 'superseded' | null;
7736
7754
  /**
@@ -7755,6 +7773,18 @@ export type UpdateEventBlockRequest = {
7755
7773
  metadata_patch?: {
7756
7774
  [key: string]: unknown;
7757
7775
  };
7776
+ /**
7777
+ * Obligated By Event Id
7778
+ *
7779
+ * Set/update the forward-materialization link.
7780
+ */
7781
+ obligated_by_event_id?: string | null;
7782
+ /**
7783
+ * Discharges Event Id
7784
+ *
7785
+ * Set/update the settlement link.
7786
+ */
7787
+ discharges_event_id?: string | null;
7758
7788
  };
7759
7789
 
7760
7790
  /**
@@ -8093,8 +8123,8 @@ export type UpdateSecurityOperation = {
8093
8123
  *
8094
8124
  * Top-level fields (name / description / version) apply to the taxonomy
8095
8125
  * row itself. The delta lists mutate atoms incrementally — the validator
8096
- * (Phase 2.3) re-runs the seven-phase check across the projected post-
8097
- * update state before anything commits.
8126
+ * re-runs every create-time check across the projected post-update
8127
+ * state before anything commits.
8098
8128
  */
8099
8129
  export type UpdateTaxonomyBlockRequest = {
8100
8130
  /**
package/types.gen.d.ts CHANGED
@@ -1386,9 +1386,15 @@ export type CreateEventBlockRequest = {
1386
1386
  /**
1387
1387
  * Event Category
1388
1388
  *
1389
- * REA economic classification. One of: sales, purchase, financing, payroll, treasury, adjustment, recognition, other.
1389
+ * REA classification. Economic categories (sales, purchase, financing, payroll, treasury, adjustment, recognition, other) require event_class='economic'. Support categories (control, approval, reconciliation, inquiry) require event_class='support'. The DB CHECK rejects mismatched pairings.
1390
1390
  */
1391
- event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other';
1391
+ event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other' | 'control' | 'approval' | 'reconciliation' | 'inquiry';
1392
+ /**
1393
+ * Event Class
1394
+ *
1395
+ * REA event class. 'economic' events change resources and drive GL postings; 'support' events are audit-trail / value-chain primitives (typically captured with apply_handlers=False).
1396
+ */
1397
+ event_class?: 'economic' | 'support';
1392
1398
  /**
1393
1399
  * Agent Id
1394
1400
  *
@@ -1465,6 +1471,18 @@ export type CreateEventBlockRequest = {
1465
1471
  * Dimension Ids
1466
1472
  */
1467
1473
  dimension_ids?: Array<string>;
1474
+ /**
1475
+ * Obligated By Event Id
1476
+ *
1477
+ * Forward-materialization link: the event that scheduled or obligated this one (e.g. depreciation entries point at the asset_acquired event).
1478
+ */
1479
+ obligated_by_event_id?: string | null;
1480
+ /**
1481
+ * Discharges Event Id
1482
+ *
1483
+ * Settlement link: the obligation this event discharges (e.g. cash_received pointing at the originating sale_invoiced).
1484
+ */
1485
+ discharges_event_id?: string | null;
1468
1486
  /**
1469
1487
  * Apply Handlers
1470
1488
  *
@@ -1507,7 +1525,7 @@ export type CreateEventHandlerRequest = {
1507
1525
  /**
1508
1526
  * Match Metadata Expression
1509
1527
  *
1510
- * JSONPath-style equality map, e.g. {"metadata.category": "payroll"}
1528
+ * JSONPath-style equality map against event.metadata, e.g. {"category": "payroll"} or {"metadata.category": "payroll"}
1511
1529
  */
1512
1530
  match_metadata_expression?: {
1513
1531
  [key: string]: unknown;
@@ -3027,9 +3045,9 @@ export type ElementUpdatePatch = {
3027
3045
  */
3028
3046
  description?: string | null;
3029
3047
  /**
3030
- * Classification
3048
+ * Trait
3031
3049
  */
3032
- classification?: string | null;
3050
+ trait?: string | null;
3033
3051
  /**
3034
3052
  * Balance Type
3035
3053
  */
@@ -3173,7 +3191,7 @@ export type ErrorResponse = {
3173
3191
  /**
3174
3192
  * EvaluateRulesRequest
3175
3193
  *
3176
- * Request body for the ``evaluate-rules`` operation (Phase delta.3).
3194
+ * Request body for the ``evaluate-rules`` operation.
3177
3195
  *
3178
3196
  * Runs every rule scoped to ``structure_id`` (plus element/association-
3179
3197
  * scoped rules for the structure's atoms), binds ``$Variable`` references
@@ -3192,7 +3210,7 @@ export type EvaluateRulesRequest = {
3192
3210
  /**
3193
3211
  * Fact Set Id
3194
3212
  *
3195
- * Optional FactSet id to stamp on each VerificationResult row. Allows results to be scoped to a specific period run when the FactSet table is populated (Phase zeta expand pass).
3213
+ * Optional FactSet id to stamp on each VerificationResult row. Allows results to be scoped to a specific period run once write paths populate the FactSet table on every run.
3196
3214
  */
3197
3215
  fact_set_id?: string | null;
3198
3216
  /**
@@ -6975,11 +6993,11 @@ export type TaxonomyBlockElementRequest = {
6975
6993
  */
6976
6994
  name: string;
6977
6995
  /**
6978
- * Classification
6996
+ * Trait
6979
6997
  *
6980
6998
  * FASB metamodel trait for the element. Required for ``chart_of_accounts`` blocks; optional for ``custom_ontology``.
6981
6999
  */
6982
- classification?: string | null;
7000
+ trait?: string | null;
6983
7001
  /**
6984
7002
  * Balance Type
6985
7003
  *
@@ -7517,7 +7535,7 @@ export type UpdateEventBlockRequest = {
7517
7535
  /**
7518
7536
  * Transition To
7519
7537
  *
7520
- * Status transition. Valid moves depend on current status: captured → committed | voided; classified → committed | pending | fulfilled | voided; committed → pending | fulfilled | voided; pending → fulfilled | voided. Terminal states (fulfilled, voided, superseded) accept no further transitions. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
7538
+ * Status transition. Valid moves depend on current status: captured → committed | voided | superseded; classified → committed | pending | fulfilled | voided | superseded; committed → pending | fulfilled | voided | superseded; pending → fulfilled | voided | superseded. Terminal states (fulfilled, voided, superseded) accept no further transitions. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
7521
7539
  */
7522
7540
  transition_to?: 'committed' | 'pending' | 'fulfilled' | 'voided' | 'superseded' | null;
7523
7541
  /**
@@ -7542,6 +7560,18 @@ export type UpdateEventBlockRequest = {
7542
7560
  metadata_patch?: {
7543
7561
  [key: string]: unknown;
7544
7562
  };
7563
+ /**
7564
+ * Obligated By Event Id
7565
+ *
7566
+ * Set/update the forward-materialization link.
7567
+ */
7568
+ obligated_by_event_id?: string | null;
7569
+ /**
7570
+ * Discharges Event Id
7571
+ *
7572
+ * Set/update the settlement link.
7573
+ */
7574
+ discharges_event_id?: string | null;
7545
7575
  };
7546
7576
  /**
7547
7577
  * UpdateEventHandlerRequest
@@ -7869,8 +7899,8 @@ export type UpdateSecurityOperation = {
7869
7899
  *
7870
7900
  * Top-level fields (name / description / version) apply to the taxonomy
7871
7901
  * row itself. The delta lists mutate atoms incrementally — the validator
7872
- * (Phase 2.3) re-runs the seven-phase check across the projected post-
7873
- * update state before anything commits.
7902
+ * re-runs every create-time check across the projected post-update
7903
+ * state before anything commits.
7874
7904
  */
7875
7905
  export type UpdateTaxonomyBlockRequest = {
7876
7906
  /**
package/types.gen.ts CHANGED
@@ -1430,9 +1430,15 @@ export type CreateEventBlockRequest = {
1430
1430
  /**
1431
1431
  * Event Category
1432
1432
  *
1433
- * REA economic classification. One of: sales, purchase, financing, payroll, treasury, adjustment, recognition, other.
1433
+ * REA classification. Economic categories (sales, purchase, financing, payroll, treasury, adjustment, recognition, other) require event_class='economic'. Support categories (control, approval, reconciliation, inquiry) require event_class='support'. The DB CHECK rejects mismatched pairings.
1434
1434
  */
1435
- event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other';
1435
+ event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other' | 'control' | 'approval' | 'reconciliation' | 'inquiry';
1436
+ /**
1437
+ * Event Class
1438
+ *
1439
+ * REA event class. 'economic' events change resources and drive GL postings; 'support' events are audit-trail / value-chain primitives (typically captured with apply_handlers=False).
1440
+ */
1441
+ event_class?: 'economic' | 'support';
1436
1442
  /**
1437
1443
  * Agent Id
1438
1444
  *
@@ -1509,6 +1515,18 @@ export type CreateEventBlockRequest = {
1509
1515
  * Dimension Ids
1510
1516
  */
1511
1517
  dimension_ids?: Array<string>;
1518
+ /**
1519
+ * Obligated By Event Id
1520
+ *
1521
+ * Forward-materialization link: the event that scheduled or obligated this one (e.g. depreciation entries point at the asset_acquired event).
1522
+ */
1523
+ obligated_by_event_id?: string | null;
1524
+ /**
1525
+ * Discharges Event Id
1526
+ *
1527
+ * Settlement link: the obligation this event discharges (e.g. cash_received pointing at the originating sale_invoiced).
1528
+ */
1529
+ discharges_event_id?: string | null;
1512
1530
  /**
1513
1531
  * Apply Handlers
1514
1532
  *
@@ -1552,7 +1570,7 @@ export type CreateEventHandlerRequest = {
1552
1570
  /**
1553
1571
  * Match Metadata Expression
1554
1572
  *
1555
- * JSONPath-style equality map, e.g. {"metadata.category": "payroll"}
1573
+ * JSONPath-style equality map against event.metadata, e.g. {"category": "payroll"} or {"metadata.category": "payroll"}
1556
1574
  */
1557
1575
  match_metadata_expression?: {
1558
1576
  [key: string]: unknown;
@@ -3113,9 +3131,9 @@ export type ElementUpdatePatch = {
3113
3131
  */
3114
3132
  description?: string | null;
3115
3133
  /**
3116
- * Classification
3134
+ * Trait
3117
3135
  */
3118
- classification?: string | null;
3136
+ trait?: string | null;
3119
3137
  /**
3120
3138
  * Balance Type
3121
3139
  */
@@ -3264,7 +3282,7 @@ export type ErrorResponse = {
3264
3282
  /**
3265
3283
  * EvaluateRulesRequest
3266
3284
  *
3267
- * Request body for the ``evaluate-rules`` operation (Phase delta.3).
3285
+ * Request body for the ``evaluate-rules`` operation.
3268
3286
  *
3269
3287
  * Runs every rule scoped to ``structure_id`` (plus element/association-
3270
3288
  * scoped rules for the structure's atoms), binds ``$Variable`` references
@@ -3283,7 +3301,7 @@ export type EvaluateRulesRequest = {
3283
3301
  /**
3284
3302
  * Fact Set Id
3285
3303
  *
3286
- * Optional FactSet id to stamp on each VerificationResult row. Allows results to be scoped to a specific period run when the FactSet table is populated (Phase zeta expand pass).
3304
+ * Optional FactSet id to stamp on each VerificationResult row. Allows results to be scoped to a specific period run once write paths populate the FactSet table on every run.
3287
3305
  */
3288
3306
  fact_set_id?: string | null;
3289
3307
  /**
@@ -7174,11 +7192,11 @@ export type TaxonomyBlockElementRequest = {
7174
7192
  */
7175
7193
  name: string;
7176
7194
  /**
7177
- * Classification
7195
+ * Trait
7178
7196
  *
7179
7197
  * FASB metamodel trait for the element. Required for ``chart_of_accounts`` blocks; optional for ``custom_ontology``.
7180
7198
  */
7181
- classification?: string | null;
7199
+ trait?: string | null;
7182
7200
  /**
7183
7201
  * Balance Type
7184
7202
  *
@@ -7730,7 +7748,7 @@ export type UpdateEventBlockRequest = {
7730
7748
  /**
7731
7749
  * Transition To
7732
7750
  *
7733
- * Status transition. Valid moves depend on current status: captured → committed | voided; classified → committed | pending | fulfilled | voided; committed → pending | fulfilled | voided; pending → fulfilled | voided. Terminal states (fulfilled, voided, superseded) accept no further transitions. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
7751
+ * Status transition. Valid moves depend on current status: captured → committed | voided | superseded; classified → committed | pending | fulfilled | voided | superseded; committed → pending | fulfilled | voided | superseded; pending → fulfilled | voided | superseded. Terminal states (fulfilled, voided, superseded) accept no further transitions. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
7734
7752
  */
7735
7753
  transition_to?: 'committed' | 'pending' | 'fulfilled' | 'voided' | 'superseded' | null;
7736
7754
  /**
@@ -7755,6 +7773,18 @@ export type UpdateEventBlockRequest = {
7755
7773
  metadata_patch?: {
7756
7774
  [key: string]: unknown;
7757
7775
  };
7776
+ /**
7777
+ * Obligated By Event Id
7778
+ *
7779
+ * Set/update the forward-materialization link.
7780
+ */
7781
+ obligated_by_event_id?: string | null;
7782
+ /**
7783
+ * Discharges Event Id
7784
+ *
7785
+ * Set/update the settlement link.
7786
+ */
7787
+ discharges_event_id?: string | null;
7758
7788
  };
7759
7789
 
7760
7790
  /**
@@ -8093,8 +8123,8 @@ export type UpdateSecurityOperation = {
8093
8123
  *
8094
8124
  * Top-level fields (name / description / version) apply to the taxonomy
8095
8125
  * row itself. The delta lists mutate atoms incrementally — the validator
8096
- * (Phase 2.3) re-runs the seven-phase check across the projected post-
8097
- * update state before anything commits.
8126
+ * re-runs every create-time check across the projected post-update
8127
+ * state before anything commits.
8098
8128
  */
8099
8129
  export type UpdateTaxonomyBlockRequest = {
8100
8130
  /**