@robosystems/client 0.3.27 → 0.3.29

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/sdk/types.gen.ts CHANGED
@@ -120,337 +120,6 @@ export type AddPublishListMembersOperation = {
120
120
  list_id: string;
121
121
  };
122
122
 
123
- /**
124
- * AgentListResponse
125
- *
126
- * Response for listing available agents.
127
- */
128
- export type AgentListResponse = {
129
- /**
130
- * Agents
131
- *
132
- * Dictionary of available agents with metadata
133
- */
134
- agents: {
135
- [key: string]: {
136
- [key: string]: unknown;
137
- };
138
- };
139
- /**
140
- * Total
141
- *
142
- * Total number of agents
143
- */
144
- total: number;
145
- };
146
-
147
- /**
148
- * AgentMessage
149
- *
150
- * Message in conversation history.
151
- */
152
- export type AgentMessage = {
153
- /**
154
- * Role
155
- *
156
- * Message role (user/assistant)
157
- */
158
- role: string;
159
- /**
160
- * Content
161
- *
162
- * Message content
163
- */
164
- content: string;
165
- /**
166
- * Timestamp
167
- *
168
- * Message timestamp
169
- */
170
- timestamp?: string | null;
171
- };
172
-
173
- /**
174
- * AgentMetadataResponse
175
- *
176
- * Response for agent metadata.
177
- */
178
- export type AgentMetadataResponse = {
179
- /**
180
- * Name
181
- *
182
- * Agent name
183
- */
184
- name: string;
185
- /**
186
- * Description
187
- *
188
- * Agent description
189
- */
190
- description: string;
191
- /**
192
- * Version
193
- *
194
- * Agent version
195
- */
196
- version: string;
197
- /**
198
- * Capabilities
199
- *
200
- * Agent capabilities
201
- */
202
- capabilities: Array<string>;
203
- /**
204
- * Supported Modes
205
- *
206
- * Supported execution modes
207
- */
208
- supported_modes: Array<string>;
209
- /**
210
- * Requires Credits
211
- *
212
- * Whether agent requires credits
213
- */
214
- requires_credits: boolean;
215
- /**
216
- * Author
217
- *
218
- * Agent author
219
- */
220
- author?: string | null;
221
- /**
222
- * Tags
223
- *
224
- * Agent tags
225
- */
226
- tags?: Array<string>;
227
- };
228
-
229
- /**
230
- * AgentMode
231
- *
232
- * Agent execution modes.
233
- */
234
- export type AgentMode = 'quick' | 'standard' | 'extended' | 'streaming';
235
-
236
- /**
237
- * AgentRecommendation
238
- *
239
- * Single agent recommendation.
240
- */
241
- export type AgentRecommendation = {
242
- /**
243
- * Agent Type
244
- *
245
- * Agent type identifier
246
- */
247
- agent_type: string;
248
- /**
249
- * Agent Name
250
- *
251
- * Agent display name
252
- */
253
- agent_name: string;
254
- /**
255
- * Confidence
256
- *
257
- * Confidence score (0-1)
258
- */
259
- confidence: number;
260
- /**
261
- * Capabilities
262
- *
263
- * Agent capabilities
264
- */
265
- capabilities: Array<string>;
266
- /**
267
- * Reason
268
- *
269
- * Reason for recommendation
270
- */
271
- reason?: string | null;
272
- };
273
-
274
- /**
275
- * AgentRecommendationRequest
276
- *
277
- * Request for agent recommendations.
278
- */
279
- export type AgentRecommendationRequest = {
280
- /**
281
- * Query
282
- *
283
- * Query to analyze
284
- */
285
- query: string;
286
- /**
287
- * Context
288
- *
289
- * Additional context
290
- */
291
- context?: {
292
- [key: string]: unknown;
293
- } | null;
294
- };
295
-
296
- /**
297
- * AgentRecommendationResponse
298
- *
299
- * Response for agent recommendations.
300
- */
301
- export type AgentRecommendationResponse = {
302
- /**
303
- * Recommendations
304
- *
305
- * List of agent recommendations sorted by confidence
306
- */
307
- recommendations: Array<AgentRecommendation>;
308
- /**
309
- * Query
310
- *
311
- * The analyzed query
312
- */
313
- query: string;
314
- };
315
-
316
- /**
317
- * AgentRequest
318
- *
319
- * Request model for agent interactions.
320
- */
321
- export type AgentRequest = {
322
- /**
323
- * Message
324
- *
325
- * The query or message to process
326
- */
327
- message: string;
328
- /**
329
- * History
330
- *
331
- * Conversation history
332
- */
333
- history?: Array<AgentMessage>;
334
- /**
335
- * Context
336
- *
337
- * Additional context for analysis (e.g., enable_rag, include_schema)
338
- */
339
- context?: {
340
- [key: string]: unknown;
341
- } | null;
342
- /**
343
- * Execution mode
344
- */
345
- mode?: AgentMode | null;
346
- /**
347
- * Agent Type
348
- *
349
- * Specific agent type to use (optional)
350
- */
351
- agent_type?: string | null;
352
- /**
353
- * Criteria for agent selection
354
- */
355
- selection_criteria?: SelectionCriteria | null;
356
- /**
357
- * Force Extended Analysis
358
- *
359
- * Force extended analysis mode with comprehensive research
360
- */
361
- force_extended_analysis?: boolean;
362
- /**
363
- * Enable Rag
364
- *
365
- * Enable RAG context enrichment
366
- */
367
- enable_rag?: boolean;
368
- /**
369
- * Stream
370
- *
371
- * Enable streaming response
372
- */
373
- stream?: boolean;
374
- };
375
-
376
- /**
377
- * AgentResponse
378
- *
379
- * Response model for agent interactions.
380
- */
381
- export type AgentResponse = {
382
- /**
383
- * Content
384
- *
385
- * The agent's response content
386
- */
387
- content: string;
388
- /**
389
- * Agent Used
390
- *
391
- * The agent type that handled the request
392
- */
393
- agent_used: string;
394
- /**
395
- * The execution mode used
396
- */
397
- mode_used: AgentMode;
398
- /**
399
- * Metadata
400
- *
401
- * Response metadata including routing info
402
- */
403
- metadata?: {
404
- [key: string]: unknown;
405
- } | null;
406
- /**
407
- * Tokens Used
408
- *
409
- * Token usage statistics
410
- */
411
- tokens_used?: {
412
- [key: string]: number;
413
- } | null;
414
- /**
415
- * Confidence Score
416
- *
417
- * Confidence score of the response (0.0-1.0 scale)
418
- */
419
- confidence_score?: number | null;
420
- /**
421
- * Operation Id
422
- *
423
- * Operation ID for SSE monitoring
424
- */
425
- operation_id?: string | null;
426
- /**
427
- * Is Partial
428
- *
429
- * Whether this is a partial response
430
- */
431
- is_partial?: boolean;
432
- /**
433
- * Error Details
434
- *
435
- * Error details if any
436
- */
437
- error_details?: {
438
- [key: string]: unknown;
439
- } | null;
440
- /**
441
- * Execution Time
442
- *
443
- * Execution time in seconds
444
- */
445
- execution_time?: number | null;
446
- /**
447
- * Timestamp
448
- *
449
- * Response timestamp
450
- */
451
- timestamp?: string;
452
- };
453
-
454
123
  /**
455
124
  * ArtifactResponse
456
125
  *
@@ -486,7 +155,9 @@ export type ArtifactResponse = {
486
155
  kind: 'statement_renderer';
487
156
  } & StatementMechanics) | ({
488
157
  kind: 'metric';
489
- } & MetricMechanics);
158
+ } & MetricMechanics) | ({
159
+ kind: 'rollforward';
160
+ } & RollforwardMechanics);
490
161
  };
491
162
 
492
163
  /**
@@ -560,6 +231,41 @@ export type AssociationResponse = {
560
231
  approved_by?: string | null;
561
232
  };
562
233
 
234
+ /**
235
+ * AttributionFilter
236
+ *
237
+ * One flow-concept attribution rule on a rollforward IB.
238
+ *
239
+ * Pairs a target concept (the flow leaf the matched amount counts
240
+ * toward) with a predicate (which LineItems match). The rollforward's
241
+ * ``attribution_filters: list[AttributionFilter]`` declares every flow
242
+ * the BS source decomposes into; the renderer evaluates them all per
243
+ * period.
244
+ *
245
+ * ``target_element_id`` is resolved at create time from ``target_qname``
246
+ * via the rs-gaap library + tenant taxonomy lookup. Authors only need
247
+ * to provide the qname; the element_id is filled in by the create
248
+ * handler and the resolved value is what the envelope round-trips.
249
+ */
250
+ export type AttributionFilter = {
251
+ /**
252
+ * Target Qname
253
+ *
254
+ * QName of the flow concept this filter produces facts for — e.g. ``rs-gaap:ProceedsFromIssuanceOfCommonStock``. Resolved to ``target_element_id`` at create time.
255
+ */
256
+ target_qname: string;
257
+ /**
258
+ * Target Element Id
259
+ *
260
+ * Resolved element id for ``target_qname``. Null at create time; populated by the handler before persistence. Round-tripped in the envelope.
261
+ */
262
+ target_element_id?: string | null;
263
+ /**
264
+ * Predicate that determines which LineItems match this filter.
265
+ */
266
+ predicate: LineItemMetadataPredicate;
267
+ };
268
+
563
269
  /**
564
270
  * AuthResponse
565
271
  *
@@ -611,9 +317,9 @@ export type AuthResponse = {
611
317
  /**
612
318
  * AutoMapElementsOperation
613
319
  *
614
- * Run the MappingAgent over a mapping structure (async).
320
+ * Run the MappingOperator over a mapping structure (async).
615
321
  *
616
- * The MappingAgent walks every unmapped CoA element and proposes
322
+ * The MappingOperator walks every unmapped CoA element and proposes
617
323
  * associations to reporting concepts. Confidence thresholds: ≥0.90
618
324
  * auto-approved (association created), 0.70-0.89 flagged for review
619
325
  * (created with `confidence` set; surface it in your UI), <0.70 skipped.
@@ -940,17 +646,17 @@ export type BackupStatsResponse = {
940
646
  };
941
647
 
942
648
  /**
943
- * BatchAgentRequest
649
+ * BatchOperatorRequest
944
650
  *
945
651
  * Request for batch processing multiple queries.
946
652
  */
947
- export type BatchAgentRequest = {
653
+ export type BatchOperatorRequest = {
948
654
  /**
949
655
  * Queries
950
656
  *
951
657
  * List of queries to process (max 10)
952
658
  */
953
- queries: Array<AgentRequest>;
659
+ queries: Array<OperatorRequest>;
954
660
  /**
955
661
  * Parallel
956
662
  *
@@ -960,17 +666,17 @@ export type BatchAgentRequest = {
960
666
  };
961
667
 
962
668
  /**
963
- * BatchAgentResponse
669
+ * BatchOperatorResponse
964
670
  *
965
671
  * Response for batch processing.
966
672
  */
967
- export type BatchAgentResponse = {
673
+ export type BatchOperatorResponse = {
968
674
  /**
969
675
  * Results
970
676
  *
971
- * List of agent responses (includes successes and failures)
677
+ * List of operator responses (includes successes and failures)
972
678
  */
973
- results: Array<AgentResponse>;
679
+ results: Array<OperatorResponse>;
974
680
  /**
975
681
  * Total Execution Time
976
682
  *
@@ -1783,6 +1489,12 @@ export type CreateEventBlockRequest = {
1783
1489
  * 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).
1784
1490
  */
1785
1491
  event_class?: 'economic' | 'support';
1492
+ /**
1493
+ * Event Action
1494
+ *
1495
+ * Canonical action verb refining `event_category`. Disambiguates concepts ERPs collapse: `transferAllRights` (ownership transfer, no physical movement) vs `transferCustody` (physical only, no rights transfer) — load-bearing for consignment, drop-shipping, marketplace settlement, escrow. Optional; null is valid for legacy events and during adapter rollout.
1496
+ */
1497
+ event_action?: 'produce' | 'raise' | 'consume' | 'lower' | 'use' | 'cite' | 'work' | 'deliverService' | 'pickup' | 'dropoff' | 'accept' | 'transferCustody' | 'transferAllRights' | 'transfer' | 'move' | 'modify' | 'combine' | 'separate' | 'copy' | null;
1786
1498
  /**
1787
1499
  * Agent Id
1788
1500
  *
@@ -2038,6 +1750,8 @@ export type CreateGraphRequest = {
2038
1750
  export type CreateInformationBlockRequest = ({
2039
1751
  block_type: 'schedule';
2040
1752
  } & CreateScheduleArm) | ({
1753
+ block_type: 'rollforward';
1754
+ } & CreateRollforwardArm) | ({
2041
1755
  block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
2042
1756
  } & CreateLegacyArm);
2043
1757
 
@@ -2048,7 +1762,7 @@ export type CreateInformationBlockRequest = ({
2048
1762
  *
2049
1763
  * This is the iterative, AI-assisted craft path. Each call adds a single
2050
1764
  * association to the target mapping structure. Use `auto-map-elements`
2051
- * to create many at once via the MappingAgent. Reject duplicates: if
1765
+ * to create many at once via the MappingOperator. Reject duplicates: if
2052
1766
  * the (from, to, type) tuple already exists, the call returns 409.
2053
1767
  */
2054
1768
  export type CreateMappingAssociationOperation = {
@@ -2173,7 +1887,7 @@ export type CreateReportRequest = {
2173
1887
  /**
2174
1888
  * Taxonomy Id
2175
1889
  *
2176
- * Taxonomy that defines the structures (BS / IS / CF / Equity / Schedules) this report can render. Defaults to the platform US GAAP reporting taxonomy.
1890
+ * Taxonomy that defines the structures (BS / IS / CF / Equity / Schedules) this report can render. Accepts either an exact tenant-specific taxonomy UUID or a standard name (e.g. 'rs-gaap'). Standard names resolve to the latest reporting_standard taxonomy with that name. Defaults to 'rs-gaap', the canonical reporting vocabulary.
2177
1891
  */
2178
1892
  taxonomy_id?: string;
2179
1893
  /**
@@ -2228,6 +1942,56 @@ export type CreateRepositorySubscriptionRequest = {
2228
1942
  plan_name: string;
2229
1943
  };
2230
1944
 
1945
+ /**
1946
+ * CreateRollforwardRequest
1947
+ *
1948
+ * Create a rollforward Information Block.
1949
+ *
1950
+ * Mirrors :class:`CreateScheduleRequest` in shape. The block decomposes
1951
+ * the period change in ``bs_source_qname`` across the declared
1952
+ * attribution filters. Residual (Δ BS - Σ filter matches) falls back to
1953
+ * the default change tag — or, if no default is declared, surfaces as
1954
+ * an unattributed fact tagged with a synthetic residual concept.
1955
+ */
1956
+ export type CreateRollforwardRequest = {
1957
+ /**
1958
+ * Name
1959
+ *
1960
+ * Human-readable block name.
1961
+ */
1962
+ name: string;
1963
+ /**
1964
+ * Bs Source Qname
1965
+ *
1966
+ * QName of the balance-sheet element whose period delta this block decomposes. Resolved to ``bs_source_element_id`` at create time.
1967
+ */
1968
+ bs_source_qname: string;
1969
+ /**
1970
+ * Default Change Tag Qname
1971
+ *
1972
+ * QName of the fallback flow concept (Tier 1 default change tag). Residual amount — Δ BS minus the sum of filter-matched amounts — is attributed to this concept. When omitted, residual surfaces unattributed; the validation_mode setting governs whether that's a hard error.
1973
+ */
1974
+ default_change_tag_qname?: string | null;
1975
+ /**
1976
+ * Attribution Filters
1977
+ *
1978
+ * Filter predicates routing LineItems to flow concepts.
1979
+ */
1980
+ attribution_filters?: Array<AttributionFilter>;
1981
+ /**
1982
+ * Validation Mode
1983
+ *
1984
+ * How the renderer arbitrates when Σ filter matches != Δ BS. ``strict`` raises; ``residual_as_default`` emits the residual as a default-tag fact (the common case); ``warn_only`` logs and lets the imbalance pass.
1985
+ */
1986
+ validation_mode?: 'strict' | 'residual_as_default' | 'warn_only';
1987
+ /**
1988
+ * Taxonomy Id
1989
+ *
1990
+ * Owning taxonomy id (auto-resolved from ``bs_source_qname`` when omitted).
1991
+ */
1992
+ taxonomy_id?: string | null;
1993
+ };
1994
+
2231
1995
  /**
2232
1996
  * CreateScheduleRequest
2233
1997
  */
@@ -3054,6 +2818,8 @@ export type DeleteGraphOp = {
3054
2818
  export type DeleteInformationBlockRequest = ({
3055
2819
  block_type: 'schedule';
3056
2820
  } & DeleteScheduleArm) | ({
2821
+ block_type: 'rollforward';
2822
+ } & DeleteRollforwardArm) | ({
3057
2823
  block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
3058
2824
  } & DeleteLegacyArm);
3059
2825
 
@@ -3225,6 +2991,24 @@ export type DeleteResult = {
3225
2991
  deleted: boolean;
3226
2992
  };
3227
2993
 
2994
+ /**
2995
+ * DeleteRollforwardRequest
2996
+ *
2997
+ * Delete a rollforward block.
2998
+ *
2999
+ * Cascades through any synthetic facts produced by this block's filter
3000
+ * evaluations. The underlying ledger LineItems are not touched — only
3001
+ * the rollforward IB's projection of them.
3002
+ */
3003
+ export type DeleteRollforwardRequest = {
3004
+ /**
3005
+ * Structure Id
3006
+ *
3007
+ * Structure ID of the rollforward block.
3008
+ */
3009
+ structure_id: string;
3010
+ };
3011
+
3228
3012
  /**
3229
3013
  * DeleteScheduleRequest
3230
3014
  *
@@ -4202,6 +3986,12 @@ export type EventBlockEnvelope = {
4202
3986
  * REA event class — `economic` (drives GL postings) or `support` (audit-trail / value-chain primitive, no GL impact).
4203
3987
  */
4204
3988
  event_class: string;
3989
+ /**
3990
+ * Event Action
3991
+ *
3992
+ * Canonical action verb refining `event_category`. Null when the source adapter or capture path didn't supply one.
3993
+ */
3994
+ event_action?: 'produce' | 'raise' | 'consume' | 'lower' | 'use' | 'cite' | 'work' | 'deliverService' | 'pickup' | 'dropoff' | 'accept' | 'transferCustody' | 'transferAllRights' | 'transfer' | 'move' | 'modify' | 'combine' | 'separate' | 'copy' | null;
4205
3995
  /**
4206
3996
  * Agent Id
4207
3997
  *
@@ -4348,6 +4138,70 @@ export type EventHandlerResponse = {
4348
4138
  created_by?: string | null;
4349
4139
  };
4350
4140
 
4141
+ /**
4142
+ * ExecuteEventBlockRequest
4143
+ *
4144
+ * Request to publish an event to the source-of-truth system.
4145
+ *
4146
+ * For events on a connection with `write_policy='qb_authoritative'`
4147
+ * (or `'hybrid'`), this triggers a synchronous write to QuickBooks
4148
+ * via the QB API. The returned `qb_txn_id` lands on
4149
+ * `event.metadata.qb_external_id` and the event transitions to
4150
+ * `committed` (in flight) → `fulfilled` (QB accepted) or `pending`
4151
+ * (QB rejected).
4152
+ *
4153
+ * `'native'`-policy events fast-path through with no QB write —
4154
+ * RoboSystems IS the source of truth, no outbound publish needed.
4155
+ */
4156
+ export type ExecuteEventBlockRequest = {
4157
+ /**
4158
+ * Event Id
4159
+ *
4160
+ * Event ID (`evt_*` ULID) to publish. The event's `metadata.connection_id` determines which QB connection to write to; the connection's `write_policy` governs whether a write fires.
4161
+ */
4162
+ event_id: string;
4163
+ /**
4164
+ * Connection Id
4165
+ *
4166
+ * Override for the connection to route the write through. Used by the close-period batch path where schedule-originated events don't carry `connection_id` in their metadata. When unset, the command reads `event.metadata.connection_id`.
4167
+ */
4168
+ connection_id?: string | null;
4169
+ };
4170
+
4171
+ /**
4172
+ * ExecuteEventBlockResponse
4173
+ *
4174
+ * Outcome of an `execute-event-block` call.
4175
+ */
4176
+ export type ExecuteEventBlockResponse = {
4177
+ /**
4178
+ * Event Id
4179
+ *
4180
+ * Echo of the event ID.
4181
+ */
4182
+ event_id: string;
4183
+ /**
4184
+ * Status
4185
+ *
4186
+ * Post-execute event status. `'classified'` when no write fired (native policy or no-op). `'committed'` when the QB write was in flight (intermediate state). `'fulfilled'` when QB accepted and local GL drafts were promoted to posted. `'pending'` when QB rejected — see `qb_error` for the rejection detail; retry after fixing the underlying issue.
4187
+ */
4188
+ status: string;
4189
+ /**
4190
+ * Qb External Id
4191
+ *
4192
+ * QB-side transaction ID returned by the JournalEntry API. Null when no write fired (native policy) or when the write was rejected before getting an ID.
4193
+ */
4194
+ qb_external_id?: string | null;
4195
+ /**
4196
+ * Qb Error
4197
+ *
4198
+ * QB rejection detail when status='pending'. Shape: `{code, message, qb_response_at}`. Operator retries after fixing CoA mapping / amount validation / closed-period.
4199
+ */
4200
+ qb_error?: {
4201
+ [key: string]: unknown;
4202
+ } | null;
4203
+ };
4204
+
4351
4205
  /**
4352
4206
  * FactLite
4353
4207
  *
@@ -6184,6 +6038,14 @@ export type JournalEntryLineItemInput = {
6184
6038
  * Per-line memo (overrides the entry-level memo on this line).
6185
6039
  */
6186
6040
  description?: string | null;
6041
+ /**
6042
+ * Metadata
6043
+ *
6044
+ * Optional per-line metadata stamped on ``LineItem.metadata_``. Used to carry source-system fields the standard columns don't cover — e.g. an external flow-tag code that drives rollforward attribution (``transaction_description_code``), an external memo, or a cost-center hint. Pass-through is non-validating; the renderer / filter engine reads keys it knows about and ignores the rest. ``None`` is normalized to ``{}`` at persist time.
6045
+ */
6046
+ metadata?: {
6047
+ [key: string]: unknown;
6048
+ } | null;
6187
6049
  };
6188
6050
 
6189
6051
  /**
@@ -6542,6 +6404,42 @@ export type LedgerEntityResponse = {
6542
6404
  updated_at?: string | null;
6543
6405
  };
6544
6406
 
6407
+ /**
6408
+ * LineItemMetadataPredicate
6409
+ *
6410
+ * Filter ledger LineItems whose ``metadata_[field]`` is in ``values``.
6411
+ *
6412
+ * The single predicate kind shipped in Phase 2 MVP. Sufficient for any
6413
+ * source taxonomy that stamps a flow-tag column on each transaction
6414
+ * line — mini's ``TransactionDescriptionCode``, future XBRL GL
6415
+ * ``GenericFlowCategory`` columns, custom tenant tags.
6416
+ *
6417
+ * ``field`` is the JSONB key under ``line_items.metadata`` (e.g.
6418
+ * ``"transaction_description_code"``). ``values`` is the set of values
6419
+ * that route to the filter's target concept; matched LineItems aggregate
6420
+ * signed into the attributed fact for the period.
6421
+ */
6422
+ export type LineItemMetadataPredicate = {
6423
+ /**
6424
+ * Kind
6425
+ *
6426
+ * Discriminator value selecting this predicate shape.
6427
+ */
6428
+ kind?: 'line_item_metadata_field';
6429
+ /**
6430
+ * Field
6431
+ *
6432
+ * JSONB key under ``line_items.metadata`` to match against — e.g. ``transaction_description_code``. The renderer performs an exact-string comparison on the JSONB-extracted text value.
6433
+ */
6434
+ field: string;
6435
+ /**
6436
+ * Values
6437
+ *
6438
+ * Metadata values that route to this filter's target concept. A LineItem matches when ``metadata[field] ∈ values`` AND the line falls within the rollforward's period.
6439
+ */
6440
+ values: Array<string>;
6441
+ };
6442
+
6545
6443
  /**
6546
6444
  * LinkEntityTaxonomyRequest
6547
6445
  *
@@ -7322,9 +7220,239 @@ export type OperationEnvelopeDeletePortfolioBlockResponse = {
7322
7220
  };
7323
7221
 
7324
7222
  /**
7325
- * OperationEnvelope[DeleteResult]
7223
+ * OperationEnvelope[DeleteResult]
7224
+ */
7225
+ export type OperationEnvelopeDeleteResult = {
7226
+ /**
7227
+ * Operation
7228
+ *
7229
+ * Kebab-case operation name
7230
+ */
7231
+ operation: string;
7232
+ /**
7233
+ * Operationid
7234
+ *
7235
+ * op_-prefixed ULID for audit and SSE correlation
7236
+ */
7237
+ operationId: string;
7238
+ /**
7239
+ * Status
7240
+ *
7241
+ * Operation lifecycle state
7242
+ */
7243
+ status: 'completed' | 'pending' | 'failed';
7244
+ /**
7245
+ * Command-specific result payload
7246
+ */
7247
+ result?: DeleteResult | null;
7248
+ /**
7249
+ * At
7250
+ *
7251
+ * ISO-8601 UTC timestamp
7252
+ */
7253
+ at: string;
7254
+ /**
7255
+ * Createdby
7256
+ *
7257
+ * User ID that initiated the operation (null for legacy callers)
7258
+ */
7259
+ createdBy?: string | null;
7260
+ /**
7261
+ * Idempotentreplay
7262
+ *
7263
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
7264
+ */
7265
+ idempotentReplay?: boolean;
7266
+ };
7267
+
7268
+ /**
7269
+ * OperationEnvelope[DeleteTaxonomyBlockResponse]
7270
+ */
7271
+ export type OperationEnvelopeDeleteTaxonomyBlockResponse = {
7272
+ /**
7273
+ * Operation
7274
+ *
7275
+ * Kebab-case operation name
7276
+ */
7277
+ operation: string;
7278
+ /**
7279
+ * Operationid
7280
+ *
7281
+ * op_-prefixed ULID for audit and SSE correlation
7282
+ */
7283
+ operationId: string;
7284
+ /**
7285
+ * Status
7286
+ *
7287
+ * Operation lifecycle state
7288
+ */
7289
+ status: 'completed' | 'pending' | 'failed';
7290
+ /**
7291
+ * Command-specific result payload
7292
+ */
7293
+ result?: DeleteTaxonomyBlockResponse | null;
7294
+ /**
7295
+ * At
7296
+ *
7297
+ * ISO-8601 UTC timestamp
7298
+ */
7299
+ at: string;
7300
+ /**
7301
+ * Createdby
7302
+ *
7303
+ * User ID that initiated the operation (null for legacy callers)
7304
+ */
7305
+ createdBy?: string | null;
7306
+ /**
7307
+ * Idempotentreplay
7308
+ *
7309
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
7310
+ */
7311
+ idempotentReplay?: boolean;
7312
+ };
7313
+
7314
+ /**
7315
+ * OperationEnvelope[EntityTaxonomyResponse]
7316
+ */
7317
+ export type OperationEnvelopeEntityTaxonomyResponse = {
7318
+ /**
7319
+ * Operation
7320
+ *
7321
+ * Kebab-case operation name
7322
+ */
7323
+ operation: string;
7324
+ /**
7325
+ * Operationid
7326
+ *
7327
+ * op_-prefixed ULID for audit and SSE correlation
7328
+ */
7329
+ operationId: string;
7330
+ /**
7331
+ * Status
7332
+ *
7333
+ * Operation lifecycle state
7334
+ */
7335
+ status: 'completed' | 'pending' | 'failed';
7336
+ /**
7337
+ * Command-specific result payload
7338
+ */
7339
+ result?: EntityTaxonomyResponse | null;
7340
+ /**
7341
+ * At
7342
+ *
7343
+ * ISO-8601 UTC timestamp
7344
+ */
7345
+ at: string;
7346
+ /**
7347
+ * Createdby
7348
+ *
7349
+ * User ID that initiated the operation (null for legacy callers)
7350
+ */
7351
+ createdBy?: string | null;
7352
+ /**
7353
+ * Idempotentreplay
7354
+ *
7355
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
7356
+ */
7357
+ idempotentReplay?: boolean;
7358
+ };
7359
+
7360
+ /**
7361
+ * OperationEnvelope[EvaluateRulesResponse]
7362
+ */
7363
+ export type OperationEnvelopeEvaluateRulesResponse = {
7364
+ /**
7365
+ * Operation
7366
+ *
7367
+ * Kebab-case operation name
7368
+ */
7369
+ operation: string;
7370
+ /**
7371
+ * Operationid
7372
+ *
7373
+ * op_-prefixed ULID for audit and SSE correlation
7374
+ */
7375
+ operationId: string;
7376
+ /**
7377
+ * Status
7378
+ *
7379
+ * Operation lifecycle state
7380
+ */
7381
+ status: 'completed' | 'pending' | 'failed';
7382
+ /**
7383
+ * Command-specific result payload
7384
+ */
7385
+ result?: EvaluateRulesResponse | null;
7386
+ /**
7387
+ * At
7388
+ *
7389
+ * ISO-8601 UTC timestamp
7390
+ */
7391
+ at: string;
7392
+ /**
7393
+ * Createdby
7394
+ *
7395
+ * User ID that initiated the operation (null for legacy callers)
7396
+ */
7397
+ createdBy?: string | null;
7398
+ /**
7399
+ * Idempotentreplay
7400
+ *
7401
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
7402
+ */
7403
+ idempotentReplay?: boolean;
7404
+ };
7405
+
7406
+ /**
7407
+ * OperationEnvelope[EventBlockEnvelope]
7408
+ */
7409
+ export type OperationEnvelopeEventBlockEnvelope = {
7410
+ /**
7411
+ * Operation
7412
+ *
7413
+ * Kebab-case operation name
7414
+ */
7415
+ operation: string;
7416
+ /**
7417
+ * Operationid
7418
+ *
7419
+ * op_-prefixed ULID for audit and SSE correlation
7420
+ */
7421
+ operationId: string;
7422
+ /**
7423
+ * Status
7424
+ *
7425
+ * Operation lifecycle state
7426
+ */
7427
+ status: 'completed' | 'pending' | 'failed';
7428
+ /**
7429
+ * Command-specific result payload
7430
+ */
7431
+ result?: EventBlockEnvelope | null;
7432
+ /**
7433
+ * At
7434
+ *
7435
+ * ISO-8601 UTC timestamp
7436
+ */
7437
+ at: string;
7438
+ /**
7439
+ * Createdby
7440
+ *
7441
+ * User ID that initiated the operation (null for legacy callers)
7442
+ */
7443
+ createdBy?: string | null;
7444
+ /**
7445
+ * Idempotentreplay
7446
+ *
7447
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
7448
+ */
7449
+ idempotentReplay?: boolean;
7450
+ };
7451
+
7452
+ /**
7453
+ * OperationEnvelope[EventHandlerResponse]
7326
7454
  */
7327
- export type OperationEnvelopeDeleteResult = {
7455
+ export type OperationEnvelopeEventHandlerResponse = {
7328
7456
  /**
7329
7457
  * Operation
7330
7458
  *
@@ -7346,7 +7474,7 @@ export type OperationEnvelopeDeleteResult = {
7346
7474
  /**
7347
7475
  * Command-specific result payload
7348
7476
  */
7349
- result?: DeleteResult | null;
7477
+ result?: EventHandlerResponse | null;
7350
7478
  /**
7351
7479
  * At
7352
7480
  *
@@ -7368,9 +7496,9 @@ export type OperationEnvelopeDeleteResult = {
7368
7496
  };
7369
7497
 
7370
7498
  /**
7371
- * OperationEnvelope[DeleteTaxonomyBlockResponse]
7499
+ * OperationEnvelope[ExecuteEventBlockResponse]
7372
7500
  */
7373
- export type OperationEnvelopeDeleteTaxonomyBlockResponse = {
7501
+ export type OperationEnvelopeExecuteEventBlockResponse = {
7374
7502
  /**
7375
7503
  * Operation
7376
7504
  *
@@ -7392,7 +7520,7 @@ export type OperationEnvelopeDeleteTaxonomyBlockResponse = {
7392
7520
  /**
7393
7521
  * Command-specific result payload
7394
7522
  */
7395
- result?: DeleteTaxonomyBlockResponse | null;
7523
+ result?: ExecuteEventBlockResponse | null;
7396
7524
  /**
7397
7525
  * At
7398
7526
  *
@@ -7414,9 +7542,9 @@ export type OperationEnvelopeDeleteTaxonomyBlockResponse = {
7414
7542
  };
7415
7543
 
7416
7544
  /**
7417
- * OperationEnvelope[EntityTaxonomyResponse]
7545
+ * OperationEnvelope[FiscalCalendarResponse]
7418
7546
  */
7419
- export type OperationEnvelopeEntityTaxonomyResponse = {
7547
+ export type OperationEnvelopeFiscalCalendarResponse = {
7420
7548
  /**
7421
7549
  * Operation
7422
7550
  *
@@ -7438,7 +7566,7 @@ export type OperationEnvelopeEntityTaxonomyResponse = {
7438
7566
  /**
7439
7567
  * Command-specific result payload
7440
7568
  */
7441
- result?: EntityTaxonomyResponse | null;
7569
+ result?: FiscalCalendarResponse | null;
7442
7570
  /**
7443
7571
  * At
7444
7572
  *
@@ -7460,9 +7588,9 @@ export type OperationEnvelopeEntityTaxonomyResponse = {
7460
7588
  };
7461
7589
 
7462
7590
  /**
7463
- * OperationEnvelope[EvaluateRulesResponse]
7591
+ * OperationEnvelope[InformationBlockEnvelope]
7464
7592
  */
7465
- export type OperationEnvelopeEvaluateRulesResponse = {
7593
+ export type OperationEnvelopeInformationBlockEnvelope = {
7466
7594
  /**
7467
7595
  * Operation
7468
7596
  *
@@ -7484,7 +7612,7 @@ export type OperationEnvelopeEvaluateRulesResponse = {
7484
7612
  /**
7485
7613
  * Command-specific result payload
7486
7614
  */
7487
- result?: EvaluateRulesResponse | null;
7615
+ result?: InformationBlockEnvelope | null;
7488
7616
  /**
7489
7617
  * At
7490
7618
  *
@@ -7506,9 +7634,9 @@ export type OperationEnvelopeEvaluateRulesResponse = {
7506
7634
  };
7507
7635
 
7508
7636
  /**
7509
- * OperationEnvelope[EventBlockEnvelope]
7637
+ * OperationEnvelope[InitializeLedgerResponse]
7510
7638
  */
7511
- export type OperationEnvelopeEventBlockEnvelope = {
7639
+ export type OperationEnvelopeInitializeLedgerResponse = {
7512
7640
  /**
7513
7641
  * Operation
7514
7642
  *
@@ -7530,7 +7658,7 @@ export type OperationEnvelopeEventBlockEnvelope = {
7530
7658
  /**
7531
7659
  * Command-specific result payload
7532
7660
  */
7533
- result?: EventBlockEnvelope | null;
7661
+ result?: InitializeLedgerResponse | null;
7534
7662
  /**
7535
7663
  * At
7536
7664
  *
@@ -7552,9 +7680,9 @@ export type OperationEnvelopeEventBlockEnvelope = {
7552
7680
  };
7553
7681
 
7554
7682
  /**
7555
- * OperationEnvelope[EventHandlerResponse]
7683
+ * OperationEnvelope[JournalEntryResponse]
7556
7684
  */
7557
- export type OperationEnvelopeEventHandlerResponse = {
7685
+ export type OperationEnvelopeJournalEntryResponse = {
7558
7686
  /**
7559
7687
  * Operation
7560
7688
  *
@@ -7576,7 +7704,7 @@ export type OperationEnvelopeEventHandlerResponse = {
7576
7704
  /**
7577
7705
  * Command-specific result payload
7578
7706
  */
7579
- result?: EventHandlerResponse | null;
7707
+ result?: JournalEntryResponse | null;
7580
7708
  /**
7581
7709
  * At
7582
7710
  *
@@ -7598,9 +7726,9 @@ export type OperationEnvelopeEventHandlerResponse = {
7598
7726
  };
7599
7727
 
7600
7728
  /**
7601
- * OperationEnvelope[FiscalCalendarResponse]
7729
+ * OperationEnvelope[LedgerAgentResponse]
7602
7730
  */
7603
- export type OperationEnvelopeFiscalCalendarResponse = {
7731
+ export type OperationEnvelopeLedgerAgentResponse = {
7604
7732
  /**
7605
7733
  * Operation
7606
7734
  *
@@ -7622,7 +7750,7 @@ export type OperationEnvelopeFiscalCalendarResponse = {
7622
7750
  /**
7623
7751
  * Command-specific result payload
7624
7752
  */
7625
- result?: FiscalCalendarResponse | null;
7753
+ result?: LedgerAgentResponse | null;
7626
7754
  /**
7627
7755
  * At
7628
7756
  *
@@ -7644,9 +7772,9 @@ export type OperationEnvelopeFiscalCalendarResponse = {
7644
7772
  };
7645
7773
 
7646
7774
  /**
7647
- * OperationEnvelope[InformationBlockEnvelope]
7775
+ * OperationEnvelope[LedgerEntityResponse]
7648
7776
  */
7649
- export type OperationEnvelopeInformationBlockEnvelope = {
7777
+ export type OperationEnvelopeLedgerEntityResponse = {
7650
7778
  /**
7651
7779
  * Operation
7652
7780
  *
@@ -7668,7 +7796,7 @@ export type OperationEnvelopeInformationBlockEnvelope = {
7668
7796
  /**
7669
7797
  * Command-specific result payload
7670
7798
  */
7671
- result?: InformationBlockEnvelope | null;
7799
+ result?: LedgerEntityResponse | null;
7672
7800
  /**
7673
7801
  * At
7674
7802
  *
@@ -7690,9 +7818,9 @@ export type OperationEnvelopeInformationBlockEnvelope = {
7690
7818
  };
7691
7819
 
7692
7820
  /**
7693
- * OperationEnvelope[InitializeLedgerResponse]
7821
+ * OperationEnvelope[PortfolioBlockEnvelope]
7694
7822
  */
7695
- export type OperationEnvelopeInitializeLedgerResponse = {
7823
+ export type OperationEnvelopePortfolioBlockEnvelope = {
7696
7824
  /**
7697
7825
  * Operation
7698
7826
  *
@@ -7714,7 +7842,7 @@ export type OperationEnvelopeInitializeLedgerResponse = {
7714
7842
  /**
7715
7843
  * Command-specific result payload
7716
7844
  */
7717
- result?: InitializeLedgerResponse | null;
7845
+ result?: PortfolioBlockEnvelope | null;
7718
7846
  /**
7719
7847
  * At
7720
7848
  *
@@ -7736,9 +7864,9 @@ export type OperationEnvelopeInitializeLedgerResponse = {
7736
7864
  };
7737
7865
 
7738
7866
  /**
7739
- * OperationEnvelope[JournalEntryResponse]
7867
+ * OperationEnvelope[PreviewEventBlockResponse]
7740
7868
  */
7741
- export type OperationEnvelopeJournalEntryResponse = {
7869
+ export type OperationEnvelopePreviewEventBlockResponse = {
7742
7870
  /**
7743
7871
  * Operation
7744
7872
  *
@@ -7760,7 +7888,7 @@ export type OperationEnvelopeJournalEntryResponse = {
7760
7888
  /**
7761
7889
  * Command-specific result payload
7762
7890
  */
7763
- result?: JournalEntryResponse | null;
7891
+ result?: PreviewEventBlockResponse | null;
7764
7892
  /**
7765
7893
  * At
7766
7894
  *
@@ -7782,9 +7910,9 @@ export type OperationEnvelopeJournalEntryResponse = {
7782
7910
  };
7783
7911
 
7784
7912
  /**
7785
- * OperationEnvelope[LedgerAgentResponse]
7913
+ * OperationEnvelope[PublishListResponse]
7786
7914
  */
7787
- export type OperationEnvelopeLedgerAgentResponse = {
7915
+ export type OperationEnvelopePublishListResponse = {
7788
7916
  /**
7789
7917
  * Operation
7790
7918
  *
@@ -7806,7 +7934,7 @@ export type OperationEnvelopeLedgerAgentResponse = {
7806
7934
  /**
7807
7935
  * Command-specific result payload
7808
7936
  */
7809
- result?: LedgerAgentResponse | null;
7937
+ result?: PublishListResponse | null;
7810
7938
  /**
7811
7939
  * At
7812
7940
  *
@@ -7828,9 +7956,9 @@ export type OperationEnvelopeLedgerAgentResponse = {
7828
7956
  };
7829
7957
 
7830
7958
  /**
7831
- * OperationEnvelope[LedgerEntityResponse]
7959
+ * OperationEnvelope[ReportResponse]
7832
7960
  */
7833
- export type OperationEnvelopeLedgerEntityResponse = {
7961
+ export type OperationEnvelopeReportResponse = {
7834
7962
  /**
7835
7963
  * Operation
7836
7964
  *
@@ -7852,7 +7980,7 @@ export type OperationEnvelopeLedgerEntityResponse = {
7852
7980
  /**
7853
7981
  * Command-specific result payload
7854
7982
  */
7855
- result?: LedgerEntityResponse | null;
7983
+ result?: ReportResponse | null;
7856
7984
  /**
7857
7985
  * At
7858
7986
  *
@@ -7874,9 +8002,9 @@ export type OperationEnvelopeLedgerEntityResponse = {
7874
8002
  };
7875
8003
 
7876
8004
  /**
7877
- * OperationEnvelope[PortfolioBlockEnvelope]
8005
+ * OperationEnvelope[SecurityResponse]
7878
8006
  */
7879
- export type OperationEnvelopePortfolioBlockEnvelope = {
8007
+ export type OperationEnvelopeSecurityResponse = {
7880
8008
  /**
7881
8009
  * Operation
7882
8010
  *
@@ -7898,7 +8026,7 @@ export type OperationEnvelopePortfolioBlockEnvelope = {
7898
8026
  /**
7899
8027
  * Command-specific result payload
7900
8028
  */
7901
- result?: PortfolioBlockEnvelope | null;
8029
+ result?: SecurityResponse | null;
7902
8030
  /**
7903
8031
  * At
7904
8032
  *
@@ -7920,9 +8048,9 @@ export type OperationEnvelopePortfolioBlockEnvelope = {
7920
8048
  };
7921
8049
 
7922
8050
  /**
7923
- * OperationEnvelope[PreviewEventBlockResponse]
8051
+ * OperationEnvelope[ShareReportResponse]
7924
8052
  */
7925
- export type OperationEnvelopePreviewEventBlockResponse = {
8053
+ export type OperationEnvelopeShareReportResponse = {
7926
8054
  /**
7927
8055
  * Operation
7928
8056
  *
@@ -7944,7 +8072,7 @@ export type OperationEnvelopePreviewEventBlockResponse = {
7944
8072
  /**
7945
8073
  * Command-specific result payload
7946
8074
  */
7947
- result?: PreviewEventBlockResponse | null;
8075
+ result?: ShareReportResponse | null;
7948
8076
  /**
7949
8077
  * At
7950
8078
  *
@@ -7966,9 +8094,9 @@ export type OperationEnvelopePreviewEventBlockResponse = {
7966
8094
  };
7967
8095
 
7968
8096
  /**
7969
- * OperationEnvelope[PublishListResponse]
8097
+ * OperationEnvelope[TaxonomyBlockEnvelope]
7970
8098
  */
7971
- export type OperationEnvelopePublishListResponse = {
8099
+ export type OperationEnvelopeTaxonomyBlockEnvelope = {
7972
8100
  /**
7973
8101
  * Operation
7974
8102
  *
@@ -7990,7 +8118,7 @@ export type OperationEnvelopePublishListResponse = {
7990
8118
  /**
7991
8119
  * Command-specific result payload
7992
8120
  */
7993
- result?: PublishListResponse | null;
8121
+ result?: TaxonomyBlockEnvelope | null;
7994
8122
  /**
7995
8123
  * At
7996
8124
  *
@@ -8012,9 +8140,9 @@ export type OperationEnvelopePublishListResponse = {
8012
8140
  };
8013
8141
 
8014
8142
  /**
8015
- * OperationEnvelope[ReportResponse]
8143
+ * OperationEnvelope[list[PublishListMemberResponse]]
8016
8144
  */
8017
- export type OperationEnvelopeReportResponse = {
8145
+ export type OperationEnvelopeListPublishListMemberResponse = {
8018
8146
  /**
8019
8147
  * Operation
8020
8148
  *
@@ -8034,9 +8162,11 @@ export type OperationEnvelopeReportResponse = {
8034
8162
  */
8035
8163
  status: 'completed' | 'pending' | 'failed';
8036
8164
  /**
8165
+ * Result
8166
+ *
8037
8167
  * Command-specific result payload
8038
8168
  */
8039
- result?: ReportResponse | null;
8169
+ result?: Array<PublishListMemberResponse> | null;
8040
8170
  /**
8041
8171
  * At
8042
8172
  *
@@ -8058,189 +8188,334 @@ export type OperationEnvelopeReportResponse = {
8058
8188
  };
8059
8189
 
8060
8190
  /**
8061
- * OperationEnvelope[SecurityResponse]
8191
+ * OperatorListResponse
8192
+ *
8193
+ * Response for listing available operators.
8062
8194
  */
8063
- export type OperationEnvelopeSecurityResponse = {
8195
+ export type OperatorListResponse = {
8064
8196
  /**
8065
- * Operation
8197
+ * Operators
8066
8198
  *
8067
- * Kebab-case operation name
8199
+ * Dictionary of available operators with metadata
8068
8200
  */
8069
- operation: string;
8201
+ operators: {
8202
+ [key: string]: {
8203
+ [key: string]: unknown;
8204
+ };
8205
+ };
8070
8206
  /**
8071
- * Operationid
8207
+ * Total
8072
8208
  *
8073
- * op_-prefixed ULID for audit and SSE correlation
8209
+ * Total number of operators
8074
8210
  */
8075
- operationId: string;
8211
+ total: number;
8212
+ };
8213
+
8214
+ /**
8215
+ * OperatorMessage
8216
+ *
8217
+ * Message in conversation history.
8218
+ */
8219
+ export type OperatorMessage = {
8076
8220
  /**
8077
- * Status
8221
+ * Role
8078
8222
  *
8079
- * Operation lifecycle state
8223
+ * Message role (user/assistant)
8080
8224
  */
8081
- status: 'completed' | 'pending' | 'failed';
8225
+ role: string;
8082
8226
  /**
8083
- * Command-specific result payload
8227
+ * Content
8228
+ *
8229
+ * Message content
8084
8230
  */
8085
- result?: SecurityResponse | null;
8231
+ content: string;
8086
8232
  /**
8087
- * At
8233
+ * Timestamp
8088
8234
  *
8089
- * ISO-8601 UTC timestamp
8235
+ * Message timestamp
8090
8236
  */
8091
- at: string;
8237
+ timestamp?: string | null;
8238
+ };
8239
+
8240
+ /**
8241
+ * OperatorMetadataResponse
8242
+ *
8243
+ * Response for operator metadata.
8244
+ */
8245
+ export type OperatorMetadataResponse = {
8092
8246
  /**
8093
- * Createdby
8247
+ * Name
8094
8248
  *
8095
- * User ID that initiated the operation (null for legacy callers)
8249
+ * Operator name
8096
8250
  */
8097
- createdBy?: string | null;
8251
+ name: string;
8098
8252
  /**
8099
- * Idempotentreplay
8253
+ * Description
8100
8254
  *
8101
- * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
8255
+ * Operator description
8102
8256
  */
8103
- idempotentReplay?: boolean;
8257
+ description: string;
8258
+ /**
8259
+ * Version
8260
+ *
8261
+ * Operator version
8262
+ */
8263
+ version: string;
8264
+ /**
8265
+ * Capabilities
8266
+ *
8267
+ * Operator capabilities
8268
+ */
8269
+ capabilities: Array<string>;
8270
+ /**
8271
+ * Supported Modes
8272
+ *
8273
+ * Supported execution modes
8274
+ */
8275
+ supported_modes: Array<string>;
8276
+ /**
8277
+ * Requires Credits
8278
+ *
8279
+ * Whether operator requires credits
8280
+ */
8281
+ requires_credits: boolean;
8282
+ /**
8283
+ * Author
8284
+ *
8285
+ * Operator author
8286
+ */
8287
+ author?: string | null;
8288
+ /**
8289
+ * Tags
8290
+ *
8291
+ * Operator tags
8292
+ */
8293
+ tags?: Array<string>;
8104
8294
  };
8105
8295
 
8106
8296
  /**
8107
- * OperationEnvelope[ShareReportResponse]
8297
+ * OperatorMode
8298
+ *
8299
+ * Operator execution modes.
8108
8300
  */
8109
- export type OperationEnvelopeShareReportResponse = {
8301
+ export type OperatorMode = 'quick' | 'standard' | 'extended' | 'streaming';
8302
+
8303
+ /**
8304
+ * OperatorRecommendation
8305
+ *
8306
+ * Single operator recommendation.
8307
+ */
8308
+ export type OperatorRecommendation = {
8110
8309
  /**
8111
- * Operation
8310
+ * Operator Type
8112
8311
  *
8113
- * Kebab-case operation name
8312
+ * Operator type identifier
8114
8313
  */
8115
- operation: string;
8314
+ operator_type: string;
8116
8315
  /**
8117
- * Operationid
8316
+ * Operator Name
8118
8317
  *
8119
- * op_-prefixed ULID for audit and SSE correlation
8318
+ * Operator display name
8120
8319
  */
8121
- operationId: string;
8320
+ operator_name: string;
8122
8321
  /**
8123
- * Status
8322
+ * Confidence
8124
8323
  *
8125
- * Operation lifecycle state
8324
+ * Confidence score (0-1)
8126
8325
  */
8127
- status: 'completed' | 'pending' | 'failed';
8326
+ confidence: number;
8128
8327
  /**
8129
- * Command-specific result payload
8328
+ * Capabilities
8329
+ *
8330
+ * Operator capabilities
8130
8331
  */
8131
- result?: ShareReportResponse | null;
8332
+ capabilities: Array<string>;
8132
8333
  /**
8133
- * At
8334
+ * Reason
8134
8335
  *
8135
- * ISO-8601 UTC timestamp
8336
+ * Reason for recommendation
8136
8337
  */
8137
- at: string;
8338
+ reason?: string | null;
8339
+ };
8340
+
8341
+ /**
8342
+ * OperatorRecommendationRequest
8343
+ *
8344
+ * Request for operator recommendations.
8345
+ */
8346
+ export type OperatorRecommendationRequest = {
8138
8347
  /**
8139
- * Createdby
8348
+ * Query
8140
8349
  *
8141
- * User ID that initiated the operation (null for legacy callers)
8350
+ * Query to analyze
8142
8351
  */
8143
- createdBy?: string | null;
8352
+ query: string;
8144
8353
  /**
8145
- * Idempotentreplay
8354
+ * Context
8146
8355
  *
8147
- * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
8356
+ * Additional context
8148
8357
  */
8149
- idempotentReplay?: boolean;
8358
+ context?: {
8359
+ [key: string]: unknown;
8360
+ } | null;
8150
8361
  };
8151
8362
 
8152
8363
  /**
8153
- * OperationEnvelope[TaxonomyBlockEnvelope]
8364
+ * OperatorRecommendationResponse
8365
+ *
8366
+ * Response for operator recommendations.
8154
8367
  */
8155
- export type OperationEnvelopeTaxonomyBlockEnvelope = {
8368
+ export type OperatorRecommendationResponse = {
8156
8369
  /**
8157
- * Operation
8370
+ * Recommendations
8371
+ *
8372
+ * List of operator recommendations sorted by confidence
8373
+ */
8374
+ recommendations: Array<OperatorRecommendation>;
8375
+ /**
8376
+ * Query
8377
+ *
8378
+ * The analyzed query
8379
+ */
8380
+ query: string;
8381
+ };
8382
+
8383
+ /**
8384
+ * OperatorRequest
8385
+ *
8386
+ * Request model for operator interactions.
8387
+ */
8388
+ export type OperatorRequest = {
8389
+ /**
8390
+ * Message
8391
+ *
8392
+ * The query or message to process
8393
+ */
8394
+ message: string;
8395
+ /**
8396
+ * History
8158
8397
  *
8159
- * Kebab-case operation name
8398
+ * Conversation history
8160
8399
  */
8161
- operation: string;
8400
+ history?: Array<OperatorMessage>;
8162
8401
  /**
8163
- * Operationid
8402
+ * Context
8164
8403
  *
8165
- * op_-prefixed ULID for audit and SSE correlation
8404
+ * Additional context for analysis (e.g., enable_rag, include_schema)
8166
8405
  */
8167
- operationId: string;
8406
+ context?: {
8407
+ [key: string]: unknown;
8408
+ } | null;
8168
8409
  /**
8169
- * Status
8410
+ * Execution mode
8411
+ */
8412
+ mode?: OperatorMode | null;
8413
+ /**
8414
+ * Operator Type
8170
8415
  *
8171
- * Operation lifecycle state
8416
+ * Specific operator type to use (optional)
8172
8417
  */
8173
- status: 'completed' | 'pending' | 'failed';
8418
+ operator_type?: string | null;
8174
8419
  /**
8175
- * Command-specific result payload
8420
+ * Criteria for operator selection
8176
8421
  */
8177
- result?: TaxonomyBlockEnvelope | null;
8422
+ selection_criteria?: SelectionCriteria | null;
8178
8423
  /**
8179
- * At
8424
+ * Force Extended Analysis
8180
8425
  *
8181
- * ISO-8601 UTC timestamp
8426
+ * Force extended analysis mode with comprehensive research
8182
8427
  */
8183
- at: string;
8428
+ force_extended_analysis?: boolean;
8184
8429
  /**
8185
- * Createdby
8430
+ * Enable Rag
8186
8431
  *
8187
- * User ID that initiated the operation (null for legacy callers)
8432
+ * Enable RAG context enrichment
8188
8433
  */
8189
- createdBy?: string | null;
8434
+ enable_rag?: boolean;
8190
8435
  /**
8191
- * Idempotentreplay
8436
+ * Stream
8192
8437
  *
8193
- * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
8438
+ * Enable streaming response
8194
8439
  */
8195
- idempotentReplay?: boolean;
8440
+ stream?: boolean;
8196
8441
  };
8197
8442
 
8198
8443
  /**
8199
- * OperationEnvelope[list[PublishListMemberResponse]]
8444
+ * OperatorResponse
8445
+ *
8446
+ * Response model for operator interactions.
8200
8447
  */
8201
- export type OperationEnvelopeListPublishListMemberResponse = {
8448
+ export type OperatorResponse = {
8202
8449
  /**
8203
- * Operation
8450
+ * Content
8204
8451
  *
8205
- * Kebab-case operation name
8452
+ * The operator's response content
8206
8453
  */
8207
- operation: string;
8454
+ content: string;
8208
8455
  /**
8209
- * Operationid
8456
+ * Operator Used
8210
8457
  *
8211
- * op_-prefixed ULID for audit and SSE correlation
8458
+ * The operator type that handled the request
8212
8459
  */
8213
- operationId: string;
8460
+ operator_used: string;
8214
8461
  /**
8215
- * Status
8462
+ * The execution mode used
8463
+ */
8464
+ mode_used: OperatorMode;
8465
+ /**
8466
+ * Metadata
8216
8467
  *
8217
- * Operation lifecycle state
8468
+ * Response metadata including routing info
8218
8469
  */
8219
- status: 'completed' | 'pending' | 'failed';
8470
+ metadata?: {
8471
+ [key: string]: unknown;
8472
+ } | null;
8220
8473
  /**
8221
- * Result
8474
+ * Tokens Used
8222
8475
  *
8223
- * Command-specific result payload
8476
+ * Token usage statistics
8224
8477
  */
8225
- result?: Array<PublishListMemberResponse> | null;
8478
+ tokens_used?: {
8479
+ [key: string]: number;
8480
+ } | null;
8226
8481
  /**
8227
- * At
8482
+ * Confidence Score
8228
8483
  *
8229
- * ISO-8601 UTC timestamp
8484
+ * Confidence score of the response (0.0-1.0 scale)
8230
8485
  */
8231
- at: string;
8486
+ confidence_score?: number | null;
8232
8487
  /**
8233
- * Createdby
8488
+ * Operation Id
8234
8489
  *
8235
- * User ID that initiated the operation (null for legacy callers)
8490
+ * Operation ID for SSE monitoring
8236
8491
  */
8237
- createdBy?: string | null;
8492
+ operation_id?: string | null;
8238
8493
  /**
8239
- * Idempotentreplay
8494
+ * Is Partial
8240
8495
  *
8241
- * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
8496
+ * Whether this is a partial response
8242
8497
  */
8243
- idempotentReplay?: boolean;
8498
+ is_partial?: boolean;
8499
+ /**
8500
+ * Error Details
8501
+ *
8502
+ * Error details if any
8503
+ */
8504
+ error_details?: {
8505
+ [key: string]: unknown;
8506
+ } | null;
8507
+ /**
8508
+ * Execution Time
8509
+ *
8510
+ * Execution time in seconds
8511
+ */
8512
+ execution_time?: number | null;
8513
+ /**
8514
+ * Timestamp
8515
+ *
8516
+ * Response timestamp
8517
+ */
8518
+ timestamp?: string;
8244
8519
  };
8245
8520
 
8246
8521
  /**
@@ -9923,6 +10198,67 @@ export type RestoreBackupOp = {
9923
10198
  verify_after_restore?: boolean;
9924
10199
  };
9925
10200
 
10201
+ /**
10202
+ * RollforwardMechanics
10203
+ *
10204
+ * Filter-based attribution mechanics for ``block_type='rollforward'``.
10205
+ *
10206
+ * Implements Tier 2 of the rollforward attribution design
10207
+ * (``information-block.md`` §4.5). Each block decomposes one BS
10208
+ * source element's period delta into a list of flow concepts via
10209
+ * declared :class:`AttributionFilter` predicates. The renderer
10210
+ * evaluates the filters against ledger LineItems at envelope-build
10211
+ * time, emits one attributed fact per filter per period, and arbitrates
10212
+ * any residual against the default change tag (Tier 1 fallback).
10213
+ *
10214
+ * Reads directly from the typed ``structures.artifact_mechanics`` JSONB
10215
+ * column. ``attribution_filters`` rides as nested JSON; the predicate
10216
+ * union widens as new predicate shapes ship (Phase 2 MVP carries only
10217
+ * ``line_item_metadata_field``).
10218
+ */
10219
+ export type RollforwardMechanics = {
10220
+ /**
10221
+ * Kind
10222
+ */
10223
+ kind?: 'rollforward';
10224
+ /**
10225
+ * Bs Source Element Id
10226
+ *
10227
+ * Element id of the balance-sheet source whose period delta this block decomposes. Resolved from ``bs_source_qname`` at create time.
10228
+ */
10229
+ bs_source_element_id: string;
10230
+ /**
10231
+ * Bs Source Qname
10232
+ *
10233
+ * QName of the BS source element (e.g. ``mini:CashAndCashEquivalents``). Round-tripped for caller convenience; ``bs_source_element_id`` is authoritative.
10234
+ */
10235
+ bs_source_qname: string;
10236
+ /**
10237
+ * Default Change Tag Element Id
10238
+ *
10239
+ * Element id of the Tier 1 default change tag — the fallback flow concept that receives any residual (Δ BS − Σ filter matches). Null when no default is declared; behavior on residual then follows ``validation_mode``.
10240
+ */
10241
+ default_change_tag_element_id?: string | null;
10242
+ /**
10243
+ * Default Change Tag Qname
10244
+ *
10245
+ * QName of the Tier 1 default change tag (e.g. ``rs-gaap:IncreaseDecreaseInCashAndCashEquivalents``). Round-tripped for caller convenience and operator-readable envelopes; ``default_change_tag_element_id`` is authoritative. Null iff ``default_change_tag_element_id`` is null.
10246
+ */
10247
+ default_change_tag_qname?: string | null;
10248
+ /**
10249
+ * Attribution Filters
10250
+ *
10251
+ * Filter predicates routing LineItems to flow concepts. The renderer evaluates each filter against the period's LineItems, aggregates signed amounts, and emits one fact per filter per period.
10252
+ */
10253
+ attribution_filters?: Array<AttributionFilter>;
10254
+ /**
10255
+ * Validation Mode
10256
+ *
10257
+ * Renderer arbitration policy when Σ filter matches != Δ BS. ``strict`` raises; ``residual_as_default`` emits the residual as a default-tag fact (the common case); ``warn_only`` logs and lets the imbalance pass.
10258
+ */
10259
+ validation_mode?: 'strict' | 'residual_as_default' | 'warn_only';
10260
+ };
10261
+
9926
10262
  /**
9927
10263
  * RuleLite
9928
10264
  *
@@ -10677,7 +11013,7 @@ export type SecurityResponse = {
10677
11013
  /**
10678
11014
  * SelectionCriteria
10679
11015
  *
10680
- * Criteria for agent selection.
11016
+ * Criteria for operator selection.
10681
11017
  */
10682
11018
  export type SelectionCriteria = {
10683
11019
  /**
@@ -10689,13 +11025,13 @@ export type SelectionCriteria = {
10689
11025
  /**
10690
11026
  * Required Capabilities
10691
11027
  *
10692
- * Required agent capabilities
11028
+ * Required operator capabilities
10693
11029
  */
10694
11030
  required_capabilities?: Array<string>;
10695
11031
  /**
10696
11032
  * Preferred execution mode
10697
11033
  */
10698
- preferred_mode?: AgentMode | null;
11034
+ preferred_mode?: OperatorMode | null;
10699
11035
  /**
10700
11036
  * Max Response Time
10701
11037
  *
@@ -10703,11 +11039,11 @@ export type SelectionCriteria = {
10703
11039
  */
10704
11040
  max_response_time?: number;
10705
11041
  /**
10706
- * Excluded Agents
11042
+ * Excluded Operators
10707
11043
  *
10708
- * Agents to exclude from selection
11044
+ * Operators to exclude from selection
10709
11045
  */
10710
- excluded_agents?: Array<string>;
11046
+ excluded_operators?: Array<string>;
10711
11047
  };
10712
11048
 
10713
11049
  /**
@@ -12424,6 +12760,12 @@ export type UpdateEventBlockRequest = {
12424
12760
  metadata_patch?: {
12425
12761
  [key: string]: unknown;
12426
12762
  };
12763
+ /**
12764
+ * Event Action
12765
+ *
12766
+ * Set or correct the canonical action verb. Unset = unchanged. Useful when an adapter improvement makes a previously-NULL verb fillable, or when reclassifying after the fact.
12767
+ */
12768
+ event_action?: 'produce' | 'raise' | 'consume' | 'lower' | 'use' | 'cite' | 'work' | 'deliverService' | 'pickup' | 'dropoff' | 'accept' | 'transferCustody' | 'transferAllRights' | 'transfer' | 'move' | 'modify' | 'combine' | 'separate' | 'copy' | null;
12427
12769
  /**
12428
12770
  * Obligated By Event Id
12429
12771
  *
@@ -12532,6 +12874,8 @@ export type UpdateEventHandlerRequest = {
12532
12874
  export type UpdateInformationBlockRequest = ({
12533
12875
  block_type: 'schedule';
12534
12876
  } & UpdateScheduleArm) | ({
12877
+ block_type: 'rollforward';
12878
+ } & UpdateRollforwardArm) | ({
12535
12879
  block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
12536
12880
  } & UpdateLegacyArm);
12537
12881
 
@@ -12679,6 +13023,52 @@ export type UpdatePublishListOperation = {
12679
13023
  list_id: string;
12680
13024
  };
12681
13025
 
13026
+ /**
13027
+ * UpdateRollforwardRequest
13028
+ *
13029
+ * Update mutable fields on a rollforward block.
13030
+ *
13031
+ * Editable: name, default_change_tag_qname, attribution_filters,
13032
+ * validation_mode. The BS source is fixed once the block is created
13033
+ * (changing it would invalidate every previously rendered period); to
13034
+ * change BS source, delete and re-create.
13035
+ *
13036
+ * **Partial-update semantics**: omitted (``None``) fields mean "leave
13037
+ * unchanged" — there is no wire-level way to *clear* a previously set
13038
+ * default change tag or empty the attribution_filters list via this
13039
+ * endpoint. To remove the default tag entirely, delete and re-create
13040
+ * the rollforward block. The asymmetry is deliberate: an explicit
13041
+ * clear-sentinel adds wire-shape complexity for a use case that rarely
13042
+ * arises in practice (default tags are typically set during initial
13043
+ * authoring and only swapped, not removed).
13044
+ */
13045
+ export type UpdateRollforwardRequest = {
13046
+ /**
13047
+ * Structure Id
13048
+ *
13049
+ * Structure ID of the rollforward block.
13050
+ */
13051
+ structure_id: string;
13052
+ /**
13053
+ * Name
13054
+ */
13055
+ name?: string | null;
13056
+ /**
13057
+ * Default Change Tag Qname
13058
+ *
13059
+ * New default change tag qname. Pass a value to *change* the default; omit (``None``) to leave unchanged. There is no wire-level way to clear a previously set default — see the class docstring.
13060
+ */
13061
+ default_change_tag_qname?: string | null;
13062
+ /**
13063
+ * Attribution Filters
13064
+ */
13065
+ attribution_filters?: Array<AttributionFilter> | null;
13066
+ /**
13067
+ * Validation Mode
13068
+ */
13069
+ validation_mode?: 'strict' | 'residual_as_default' | 'warn_only' | null;
13070
+ };
13071
+
12682
13072
  /**
12683
13073
  * UpdateScheduleRequest
12684
13074
  *
@@ -13200,6 +13590,28 @@ export type CreateLegacyArm = {
13200
13590
  };
13201
13591
  };
13202
13592
 
13593
+ /**
13594
+ * _CreateRollforwardArm
13595
+ *
13596
+ * Create-information-block body for ``block_type="rollforward"``.
13597
+ *
13598
+ * Carries a typed rollforward payload. The block decomposes the period
13599
+ * change in a BS source element across the declared attribution
13600
+ * filters.
13601
+ */
13602
+ export type CreateRollforwardArm = {
13603
+ /**
13604
+ * Block Type
13605
+ *
13606
+ * Discriminator value selecting this arm.
13607
+ */
13608
+ block_type: 'rollforward';
13609
+ /**
13610
+ * Rollforward creation payload.
13611
+ */
13612
+ payload: CreateRollforwardRequest;
13613
+ };
13614
+
13203
13615
  /**
13204
13616
  * _CreateScheduleArm
13205
13617
  *
@@ -13248,6 +13660,27 @@ export type DeleteLegacyArm = {
13248
13660
  };
13249
13661
  };
13250
13662
 
13663
+ /**
13664
+ * _DeleteRollforwardArm
13665
+ *
13666
+ * Delete-information-block body for ``block_type="rollforward"``.
13667
+ *
13668
+ * Cascades through any synthetic facts produced by this block's filter
13669
+ * evaluations. The underlying ledger LineItems are not touched.
13670
+ */
13671
+ export type DeleteRollforwardArm = {
13672
+ /**
13673
+ * Block Type
13674
+ *
13675
+ * Discriminator value selecting this arm.
13676
+ */
13677
+ block_type: 'rollforward';
13678
+ /**
13679
+ * Rollforward delete payload.
13680
+ */
13681
+ payload: DeleteRollforwardRequest;
13682
+ };
13683
+
13251
13684
  /**
13252
13685
  * _DeleteScheduleArm
13253
13686
  *
@@ -13295,6 +13728,27 @@ export type UpdateLegacyArm = {
13295
13728
  };
13296
13729
  };
13297
13730
 
13731
+ /**
13732
+ * _UpdateRollforwardArm
13733
+ *
13734
+ * Update-information-block body for ``block_type="rollforward"``.
13735
+ *
13736
+ * Carries a typed rollforward update payload. Mutable fields: name,
13737
+ * default_change_tag_qname, attribution_filters, validation_mode.
13738
+ */
13739
+ export type UpdateRollforwardArm = {
13740
+ /**
13741
+ * Block Type
13742
+ *
13743
+ * Discriminator value selecting this arm.
13744
+ */
13745
+ block_type: 'rollforward';
13746
+ /**
13747
+ * Rollforward update payload.
13748
+ */
13749
+ payload: UpdateRollforwardRequest;
13750
+ };
13751
+
13298
13752
  /**
13299
13753
  * _UpdateScheduleArm
13300
13754
  *
@@ -15317,7 +15771,7 @@ export type SyncConnectionResponses = {
15317
15771
 
15318
15772
  export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
15319
15773
 
15320
- export type ListAgentsData = {
15774
+ export type ListOperatorsData = {
15321
15775
  body?: never;
15322
15776
  path: {
15323
15777
  /**
@@ -15333,10 +15787,10 @@ export type ListAgentsData = {
15333
15787
  */
15334
15788
  capability?: string | null;
15335
15789
  };
15336
- url: '/v1/graphs/{graph_id}/agent';
15790
+ url: '/v1/graphs/{graph_id}/operator';
15337
15791
  };
15338
15792
 
15339
- export type ListAgentsErrors = {
15793
+ export type ListOperatorsErrors = {
15340
15794
  /**
15341
15795
  * Invalid request
15342
15796
  */
@@ -15367,19 +15821,19 @@ export type ListAgentsErrors = {
15367
15821
  500: ErrorResponse;
15368
15822
  };
15369
15823
 
15370
- export type ListAgentsError = ListAgentsErrors[keyof ListAgentsErrors];
15824
+ export type ListOperatorsError = ListOperatorsErrors[keyof ListOperatorsErrors];
15371
15825
 
15372
- export type ListAgentsResponses = {
15826
+ export type ListOperatorsResponses = {
15373
15827
  /**
15374
15828
  * Successful Response
15375
15829
  */
15376
- 200: AgentListResponse;
15830
+ 200: OperatorListResponse;
15377
15831
  };
15378
15832
 
15379
- export type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses];
15833
+ export type ListOperatorsResponse = ListOperatorsResponses[keyof ListOperatorsResponses];
15380
15834
 
15381
- export type AutoSelectAgentData = {
15382
- body: AgentRequest;
15835
+ export type AutoSelectOperatorData = {
15836
+ body: OperatorRequest;
15383
15837
  path: {
15384
15838
  /**
15385
15839
  * Graph Id
@@ -15394,10 +15848,10 @@ export type AutoSelectAgentData = {
15394
15848
  */
15395
15849
  mode?: ResponseMode | null;
15396
15850
  };
15397
- url: '/v1/graphs/{graph_id}/agent';
15851
+ url: '/v1/graphs/{graph_id}/operator';
15398
15852
  };
15399
15853
 
15400
- export type AutoSelectAgentErrors = {
15854
+ export type AutoSelectOperatorErrors = {
15401
15855
  /**
15402
15856
  * Invalid request
15403
15857
  */
@@ -15432,22 +15886,22 @@ export type AutoSelectAgentErrors = {
15432
15886
  500: ErrorResponse;
15433
15887
  };
15434
15888
 
15435
- export type AutoSelectAgentError = AutoSelectAgentErrors[keyof AutoSelectAgentErrors];
15889
+ export type AutoSelectOperatorError = AutoSelectOperatorErrors[keyof AutoSelectOperatorErrors];
15436
15890
 
15437
- export type AutoSelectAgentResponses = {
15891
+ export type AutoSelectOperatorResponses = {
15438
15892
  /**
15439
15893
  * Successful Response
15440
15894
  */
15441
- 200: AgentResponse;
15895
+ 200: OperatorResponse;
15442
15896
  /**
15443
15897
  * Query queued for async processing
15444
15898
  */
15445
15899
  202: unknown;
15446
15900
  };
15447
15901
 
15448
- export type AutoSelectAgentResponse = AutoSelectAgentResponses[keyof AutoSelectAgentResponses];
15902
+ export type AutoSelectOperatorResponse = AutoSelectOperatorResponses[keyof AutoSelectOperatorResponses];
15449
15903
 
15450
- export type GetAgentMetadataData = {
15904
+ export type GetOperatorMetadataData = {
15451
15905
  body?: never;
15452
15906
  path: {
15453
15907
  /**
@@ -15455,17 +15909,17 @@ export type GetAgentMetadataData = {
15455
15909
  */
15456
15910
  graph_id: string;
15457
15911
  /**
15458
- * Agent Type
15912
+ * Operator Type
15459
15913
  *
15460
- * Agent type identifier (e.g., 'financial', 'research', 'rag')
15914
+ * Operator type identifier (e.g., 'financial', 'research', 'rag')
15461
15915
  */
15462
- agent_type: string;
15916
+ operator_type: string;
15463
15917
  };
15464
15918
  query?: never;
15465
- url: '/v1/graphs/{graph_id}/agent/{agent_type}';
15919
+ url: '/v1/graphs/{graph_id}/operator/{operator_type}';
15466
15920
  };
15467
15921
 
15468
- export type GetAgentMetadataErrors = {
15922
+ export type GetOperatorMetadataErrors = {
15469
15923
  /**
15470
15924
  * Invalid request
15471
15925
  */
@@ -15496,24 +15950,24 @@ export type GetAgentMetadataErrors = {
15496
15950
  500: ErrorResponse;
15497
15951
  };
15498
15952
 
15499
- export type GetAgentMetadataError = GetAgentMetadataErrors[keyof GetAgentMetadataErrors];
15953
+ export type GetOperatorMetadataError = GetOperatorMetadataErrors[keyof GetOperatorMetadataErrors];
15500
15954
 
15501
- export type GetAgentMetadataResponses = {
15955
+ export type GetOperatorMetadataResponses = {
15502
15956
  /**
15503
15957
  * Successful Response
15504
15958
  */
15505
- 200: AgentMetadataResponse;
15959
+ 200: OperatorMetadataResponse;
15506
15960
  };
15507
15961
 
15508
- export type GetAgentMetadataResponse = GetAgentMetadataResponses[keyof GetAgentMetadataResponses];
15962
+ export type GetOperatorMetadataResponse = GetOperatorMetadataResponses[keyof GetOperatorMetadataResponses];
15509
15963
 
15510
- export type ExecuteSpecificAgentData = {
15511
- body: AgentRequest;
15964
+ export type ExecuteSpecificOperatorData = {
15965
+ body: OperatorRequest;
15512
15966
  path: {
15513
15967
  /**
15514
- * Agent Type
15968
+ * Operator Type
15515
15969
  */
15516
- agent_type: string;
15970
+ operator_type: string;
15517
15971
  /**
15518
15972
  * Graph Id
15519
15973
  */
@@ -15527,10 +15981,10 @@ export type ExecuteSpecificAgentData = {
15527
15981
  */
15528
15982
  mode?: ResponseMode | null;
15529
15983
  };
15530
- url: '/v1/graphs/{graph_id}/agent/{agent_type}';
15984
+ url: '/v1/graphs/{graph_id}/operator/{operator_type}';
15531
15985
  };
15532
15986
 
15533
- export type ExecuteSpecificAgentErrors = {
15987
+ export type ExecuteSpecificOperatorErrors = {
15534
15988
  /**
15535
15989
  * Invalid request
15536
15990
  */
@@ -15565,23 +16019,23 @@ export type ExecuteSpecificAgentErrors = {
15565
16019
  500: ErrorResponse;
15566
16020
  };
15567
16021
 
15568
- export type ExecuteSpecificAgentError = ExecuteSpecificAgentErrors[keyof ExecuteSpecificAgentErrors];
16022
+ export type ExecuteSpecificOperatorError = ExecuteSpecificOperatorErrors[keyof ExecuteSpecificOperatorErrors];
15569
16023
 
15570
- export type ExecuteSpecificAgentResponses = {
16024
+ export type ExecuteSpecificOperatorResponses = {
15571
16025
  /**
15572
16026
  * Successful Response
15573
16027
  */
15574
- 200: AgentResponse;
16028
+ 200: OperatorResponse;
15575
16029
  /**
15576
16030
  * Query queued for async processing
15577
16031
  */
15578
16032
  202: unknown;
15579
16033
  };
15580
16034
 
15581
- export type ExecuteSpecificAgentResponse = ExecuteSpecificAgentResponses[keyof ExecuteSpecificAgentResponses];
16035
+ export type ExecuteSpecificOperatorResponse = ExecuteSpecificOperatorResponses[keyof ExecuteSpecificOperatorResponses];
15582
16036
 
15583
16037
  export type BatchProcessQueriesData = {
15584
- body: BatchAgentRequest;
16038
+ body: BatchOperatorRequest;
15585
16039
  path: {
15586
16040
  /**
15587
16041
  * Graph Id
@@ -15589,7 +16043,7 @@ export type BatchProcessQueriesData = {
15589
16043
  graph_id: string;
15590
16044
  };
15591
16045
  query?: never;
15592
- url: '/v1/graphs/{graph_id}/agent/batch';
16046
+ url: '/v1/graphs/{graph_id}/operator/batch';
15593
16047
  };
15594
16048
 
15595
16049
  export type BatchProcessQueriesErrors = {
@@ -15633,13 +16087,13 @@ export type BatchProcessQueriesResponses = {
15633
16087
  /**
15634
16088
  * Successful Response
15635
16089
  */
15636
- 200: BatchAgentResponse;
16090
+ 200: BatchOperatorResponse;
15637
16091
  };
15638
16092
 
15639
16093
  export type BatchProcessQueriesResponse = BatchProcessQueriesResponses[keyof BatchProcessQueriesResponses];
15640
16094
 
15641
- export type RecommendAgentData = {
15642
- body: AgentRecommendationRequest;
16095
+ export type RecommendOperatorData = {
16096
+ body: OperatorRecommendationRequest;
15643
16097
  path: {
15644
16098
  /**
15645
16099
  * Graph Id
@@ -15647,10 +16101,10 @@ export type RecommendAgentData = {
15647
16101
  graph_id: string;
15648
16102
  };
15649
16103
  query?: never;
15650
- url: '/v1/graphs/{graph_id}/agent/recommend';
16104
+ url: '/v1/graphs/{graph_id}/operator/recommend';
15651
16105
  };
15652
16106
 
15653
- export type RecommendAgentErrors = {
16107
+ export type RecommendOperatorErrors = {
15654
16108
  /**
15655
16109
  * Invalid request
15656
16110
  */
@@ -15681,16 +16135,16 @@ export type RecommendAgentErrors = {
15681
16135
  500: ErrorResponse;
15682
16136
  };
15683
16137
 
15684
- export type RecommendAgentError = RecommendAgentErrors[keyof RecommendAgentErrors];
16138
+ export type RecommendOperatorError = RecommendOperatorErrors[keyof RecommendOperatorErrors];
15685
16139
 
15686
- export type RecommendAgentResponses = {
16140
+ export type RecommendOperatorResponses = {
15687
16141
  /**
15688
16142
  * Successful Response
15689
16143
  */
15690
- 200: AgentRecommendationResponse;
16144
+ 200: OperatorRecommendationResponse;
15691
16145
  };
15692
16146
 
15693
- export type RecommendAgentResponse = RecommendAgentResponses[keyof RecommendAgentResponses];
16147
+ export type RecommendOperatorResponse = RecommendOperatorResponses[keyof RecommendOperatorResponses];
15694
16148
 
15695
16149
  export type ListMcpToolsData = {
15696
16150
  body?: never;
@@ -20662,6 +21116,70 @@ export type OpUpdateEventBlockResponses = {
20662
21116
 
20663
21117
  export type OpUpdateEventBlockResponse = OpUpdateEventBlockResponses[keyof OpUpdateEventBlockResponses];
20664
21118
 
21119
+ export type OpExecuteEventBlockData = {
21120
+ body: ExecuteEventBlockRequest;
21121
+ headers?: {
21122
+ /**
21123
+ * Idempotency-Key
21124
+ */
21125
+ 'Idempotency-Key'?: string | null;
21126
+ };
21127
+ path: {
21128
+ /**
21129
+ * Graph Id
21130
+ */
21131
+ graph_id: string;
21132
+ };
21133
+ query?: never;
21134
+ url: '/extensions/roboledger/{graph_id}/operations/execute-event-block';
21135
+ };
21136
+
21137
+ export type OpExecuteEventBlockErrors = {
21138
+ /**
21139
+ * Invalid request
21140
+ */
21141
+ 400: ErrorResponse;
21142
+ /**
21143
+ * Authentication required
21144
+ */
21145
+ 401: ErrorResponse;
21146
+ /**
21147
+ * Access denied
21148
+ */
21149
+ 403: ErrorResponse;
21150
+ /**
21151
+ * Resource not found
21152
+ */
21153
+ 404: ErrorResponse;
21154
+ /**
21155
+ * Idempotency-Key conflict — key reused with different body
21156
+ */
21157
+ 409: ErrorResponse;
21158
+ /**
21159
+ * Validation error
21160
+ */
21161
+ 422: ErrorResponse;
21162
+ /**
21163
+ * Rate limit exceeded
21164
+ */
21165
+ 429: ErrorResponse;
21166
+ /**
21167
+ * Internal server error
21168
+ */
21169
+ 500: ErrorResponse;
21170
+ };
21171
+
21172
+ export type OpExecuteEventBlockError = OpExecuteEventBlockErrors[keyof OpExecuteEventBlockErrors];
21173
+
21174
+ export type OpExecuteEventBlockResponses = {
21175
+ /**
21176
+ * Successful Response
21177
+ */
21178
+ 200: OperationEnvelopeExecuteEventBlockResponse;
21179
+ };
21180
+
21181
+ export type OpExecuteEventBlockResponse = OpExecuteEventBlockResponses[keyof OpExecuteEventBlockResponses];
21182
+
20665
21183
  export type OpCreateEventHandlerData = {
20666
21184
  body: CreateEventHandlerRequest;
20667
21185
  headers?: {