@robosystems/client 0.3.42 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -736,25 +736,65 @@ export type CancelSubscriptionRequest = {
736
736
  confirm?: string | null;
737
737
  };
738
738
  /**
739
- * ChangeReportingStyleOp
739
+ * ChangeReportingStyleRequest
740
740
  *
741
- * Body for the change-reporting-style operation.
741
+ * Switch a reporting entity's Reporting Style.
742
742
  *
743
- * Switches the graph to a different Reporting Style. The target Style
744
- * must be a library- or customer-authored Structure with
745
- * ``block_type='reporting_style'`` and a complete composition
746
- * (one Network per required statement type BS / IS / CF / SE). Filed
747
- * Reports are unaffected because each ``Report`` already pins its own
748
- * ``structure_id`` per FactSet at create-time; new reports use the new
749
- * Style. Idempotent on the same target id.
743
+ * The Reporting Style governs how the entity's statements are laid out
744
+ * (equity-form, close-target concept, per-statement Networks). It's
745
+ * validated against the tenant schema — the target must be a renderable
746
+ * Style with a complete compositionbefore the switch is applied.
750
747
  */
751
- export type ChangeReportingStyleOp = {
748
+ export type ChangeReportingStyleRequest = {
752
749
  /**
753
750
  * Reporting Style Id
754
751
  *
755
- * Structure id of the target Reporting Style (e.g., `025f5d48-12ce-5d65-b9eb-4f137a10ef06` for the library-seeded Default Style). Must resolve to a Structure with block_type='reporting_style' that has a complete composition in the graph's tenant schema.
752
+ * Structure id of the target Reporting Style. Must exist in the tenant schema with a complete Network composition.
756
753
  */
757
754
  reporting_style_id: string;
755
+ /**
756
+ * Entity Id
757
+ *
758
+ * Target entity. Omit to target the graph's primary (earliest-created) entity — the single-entity default.
759
+ */
760
+ entity_id?: string | null;
761
+ };
762
+ /**
763
+ * ChangeReportingStyleResponse
764
+ *
765
+ * Result of a change-reporting-style operation.
766
+ */
767
+ export type ChangeReportingStyleResponse = {
768
+ /**
769
+ * Entity Id
770
+ *
771
+ * Entity whose Style was targeted.
772
+ */
773
+ entity_id: string;
774
+ /**
775
+ * Previous Reporting Style Id
776
+ *
777
+ * Style id before the change (null for legacy/unset).
778
+ */
779
+ previous_reporting_style_id?: string | null;
780
+ /**
781
+ * Reporting Style Id
782
+ *
783
+ * Active Style id after the call.
784
+ */
785
+ reporting_style_id: string;
786
+ /**
787
+ * Reporting Style Code
788
+ *
789
+ * 4-segment Style code (e.g. BSC-CORP-IS02-CF1), when stamped.
790
+ */
791
+ reporting_style_code?: string | null;
792
+ /**
793
+ * Changed
794
+ *
795
+ * False when the target equals the current Style (no-op).
796
+ */
797
+ changed: boolean;
758
798
  };
759
799
  /**
760
800
  * ChangeTierOp
@@ -2421,11 +2461,11 @@ export type CustomSchemaDefinition = {
2421
2461
  };
2422
2462
  };
2423
2463
  /**
2424
- * CypherQueryRequest
2464
+ * CypherStatementRequest
2425
2465
  *
2426
2466
  * Request model for Cypher query execution.
2427
2467
  */
2428
- export type CypherQueryRequest = {
2468
+ export type CypherStatementRequest = {
2429
2469
  /**
2430
2470
  * Query
2431
2471
  *
@@ -2667,51 +2707,36 @@ export type DatabaseStorageEntry = {
2667
2707
  size_mb?: number | null;
2668
2708
  };
2669
2709
  /**
2670
- * DeleteFileResponse
2710
+ * DeleteDocumentOp
2711
+ *
2712
+ * Body for delete-document (corpus content-op).
2671
2713
  */
2672
- export type DeleteFileResponse = {
2714
+ export type DeleteDocumentOp = {
2673
2715
  /**
2674
- * Status
2716
+ * Document Id
2675
2717
  *
2676
- * Deletion status
2718
+ * Document id to delete
2677
2719
  */
2678
- status: string;
2720
+ document_id: string;
2721
+ };
2722
+ /**
2723
+ * DeleteFileOp
2724
+ *
2725
+ * Body for delete-file (raw content-op).
2726
+ */
2727
+ export type DeleteFileOp = {
2679
2728
  /**
2680
2729
  * File Id
2681
2730
  *
2682
- * Deleted file ID
2731
+ * File id to delete
2683
2732
  */
2684
2733
  file_id: string;
2685
2734
  /**
2686
- * File Name
2687
- *
2688
- * Deleted file name
2689
- */
2690
- file_name: string;
2691
- /**
2692
- * Message
2693
- *
2694
- * Operation message
2695
- */
2696
- message: string;
2697
- /**
2698
- * Cascade Deleted
2699
- *
2700
- * Whether cascade deletion was performed
2701
- */
2702
- cascade_deleted?: boolean;
2703
- /**
2704
- * Tables Affected
2705
- *
2706
- * Tables from which file data was deleted (if cascade=true)
2707
- */
2708
- tables_affected?: Array<string> | null;
2709
- /**
2710
- * Graph Marked Stale
2735
+ * Cascade
2711
2736
  *
2712
- * Whether graph was marked as stale
2737
+ * Also delete the file's rows from DuckDB tables and mark the graph stale
2713
2738
  */
2714
- graph_marked_stale?: boolean;
2739
+ cascade?: boolean;
2715
2740
  };
2716
2741
  /**
2717
2742
  * DeleteGraphOp
@@ -3288,93 +3313,6 @@ export type DocumentSection = {
3288
3313
  */
3289
3314
  folder?: string | null;
3290
3315
  };
3291
- /**
3292
- * DocumentUpdateRequest
3293
- *
3294
- * Update a document's metadata and/or content.
3295
- */
3296
- export type DocumentUpdateRequest = {
3297
- /**
3298
- * Title
3299
- */
3300
- title?: string | null;
3301
- /**
3302
- * Content
3303
- */
3304
- content?: string | null;
3305
- /**
3306
- * Tags
3307
- */
3308
- tags?: Array<string> | null;
3309
- /**
3310
- * Folder
3311
- */
3312
- folder?: string | null;
3313
- };
3314
- /**
3315
- * DocumentUploadRequest
3316
- *
3317
- * Upload a markdown document for text indexing.
3318
- */
3319
- export type DocumentUploadRequest = {
3320
- /**
3321
- * Title
3322
- *
3323
- * Document title
3324
- */
3325
- title: string;
3326
- /**
3327
- * Content
3328
- *
3329
- * Markdown content
3330
- */
3331
- content: string;
3332
- /**
3333
- * Tags
3334
- *
3335
- * Optional tags for filtering
3336
- */
3337
- tags?: Array<string> | null;
3338
- /**
3339
- * Folder
3340
- *
3341
- * Optional folder/category
3342
- */
3343
- folder?: string | null;
3344
- /**
3345
- * External Id
3346
- *
3347
- * Optional external identifier for upsert (e.g., Google Drive file ID)
3348
- */
3349
- external_id?: string | null;
3350
- };
3351
- /**
3352
- * DocumentUploadResponse
3353
- *
3354
- * Response from document upload.
3355
- */
3356
- export type DocumentUploadResponse = {
3357
- /**
3358
- * Id
3359
- */
3360
- id: string;
3361
- /**
3362
- * Document Id
3363
- */
3364
- document_id: string;
3365
- /**
3366
- * Sections Indexed
3367
- */
3368
- sections_indexed: number;
3369
- /**
3370
- * Total Content Length
3371
- */
3372
- total_content_length: number;
3373
- /**
3374
- * Section Ids
3375
- */
3376
- section_ids: Array<string>;
3377
- };
3378
3316
  /**
3379
3317
  * DownloadQuota
3380
3318
  *
@@ -4320,23 +4258,6 @@ export type FileReportRequest = {
4320
4258
  */
4321
4259
  report_id: string;
4322
4260
  };
4323
- /**
4324
- * FileStatusUpdate
4325
- */
4326
- export type FileStatusUpdate = {
4327
- /**
4328
- * Status
4329
- *
4330
- * File status: 'uploaded' (ready for ingest), 'disabled' (exclude from ingest), 'archived' (soft deleted)
4331
- */
4332
- status: string;
4333
- /**
4334
- * Ingest To Graph
4335
- *
4336
- * Auto-ingest to graph after DuckDB staging. Default=false (batch mode). Set to true for real-time incremental updates.
4337
- */
4338
- ingest_to_graph?: boolean;
4339
- };
4340
4261
  /**
4341
4262
  * FileUploadRequest
4342
4263
  */
@@ -4360,35 +4281,6 @@ export type FileUploadRequest = {
4360
4281
  */
4361
4282
  table_name?: string | null;
4362
4283
  };
4363
- /**
4364
- * FileUploadResponse
4365
- */
4366
- export type FileUploadResponse = {
4367
- /**
4368
- * Upload Url
4369
- *
4370
- * Presigned S3 upload URL
4371
- */
4372
- upload_url: string;
4373
- /**
4374
- * Expires In
4375
- *
4376
- * URL expiration time in seconds
4377
- */
4378
- expires_in: number;
4379
- /**
4380
- * File Id
4381
- *
4382
- * File tracking ID
4383
- */
4384
- file_id: string;
4385
- /**
4386
- * S3 Key
4387
- *
4388
- * S3 object key
4389
- */
4390
- s3_key: string;
4391
- };
4392
4284
  /**
4393
4285
  * FinancialStatementAnalysisRequest
4394
4286
  *
@@ -4560,6 +4452,19 @@ export type FiscalPeriodSummary = {
4560
4452
  */
4561
4453
  closed_at?: string | null;
4562
4454
  };
4455
+ /**
4456
+ * ForgetOp
4457
+ *
4458
+ * Body for the forget operation (delete a semantic memory by id).
4459
+ */
4460
+ export type ForgetOp = {
4461
+ /**
4462
+ * Memory Id
4463
+ *
4464
+ * Server-generated memory id to forget
4465
+ */
4466
+ memory_id: string;
4467
+ };
4563
4468
  /**
4564
4469
  * ForgotPasswordRequest
4565
4470
  *
@@ -5417,6 +5322,52 @@ export type HealthStatus = {
5417
5322
  [key: string]: unknown;
5418
5323
  } | null;
5419
5324
  };
5325
+ /**
5326
+ * IndexDocumentOp
5327
+ *
5328
+ * Body for index-document (corpus content-op).
5329
+ *
5330
+ * Create a new document when ``document_id`` is absent; update the named
5331
+ * document (partial — only supplied fields) when present.
5332
+ */
5333
+ export type IndexDocumentOp = {
5334
+ /**
5335
+ * Document Id
5336
+ *
5337
+ * Present → update that document; absent → create a new one
5338
+ */
5339
+ document_id?: string | null;
5340
+ /**
5341
+ * Title
5342
+ *
5343
+ * Required when creating
5344
+ */
5345
+ title?: string | null;
5346
+ /**
5347
+ * Content
5348
+ *
5349
+ * Required when creating
5350
+ */
5351
+ content?: string | null;
5352
+ /**
5353
+ * Tags
5354
+ *
5355
+ * Optional labels
5356
+ */
5357
+ tags?: Array<string> | null;
5358
+ /**
5359
+ * Folder
5360
+ *
5361
+ * Optional folder
5362
+ */
5363
+ folder?: string | null;
5364
+ /**
5365
+ * External Id
5366
+ *
5367
+ * Upsert key (create): re-indexing the same id replaces
5368
+ */
5369
+ external_id?: string | null;
5370
+ };
5420
5371
  /**
5421
5372
  * InformationBlockEnvelope
5422
5373
  *
@@ -5534,6 +5485,28 @@ export type InformationModelResponse = {
5534
5485
  */
5535
5486
  member_arrangement?: string | null;
5536
5487
  };
5488
+ /**
5489
+ * IngestFileOp
5490
+ *
5491
+ * Body for ingest-file (raw→staging content flow).
5492
+ *
5493
+ * Marks an uploaded file ready and triggers DuckDB staging. Set
5494
+ * ``ingest_to_graph`` to auto-chain graph materialization after staging.
5495
+ */
5496
+ export type IngestFileOp = {
5497
+ /**
5498
+ * File Id
5499
+ *
5500
+ * Uploaded file id to ingest
5501
+ */
5502
+ file_id: string;
5503
+ /**
5504
+ * Ingest To Graph
5505
+ *
5506
+ * Auto-materialize into the graph after DuckDB staging
5507
+ */
5508
+ ingest_to_graph?: boolean;
5509
+ };
5537
5510
  /**
5538
5511
  * InitialEntityData
5539
5512
  *
@@ -5612,7 +5585,7 @@ export type InitialEntityData = {
5612
5585
  /**
5613
5586
  * Reporting Style Id
5614
5587
  *
5615
- * Optional explicit Reporting Style Structure id to pin on the graph, overriding the entity_type-derived default. Leave blank to derive from entity_type. Change later via the change-reporting-style operation.
5588
+ * Optional explicit Reporting Style Structure id to pin on the entity, overriding the entity_type-derived default. Leave blank to derive from entity_type. Change later via the change-reporting-style operation.
5616
5589
  */
5617
5590
  reporting_style_id?: string | null;
5618
5591
  };
@@ -6204,6 +6177,12 @@ export type LedgerEntityResponse = {
6204
6177
  * Legal form (e.g. 'corporation', 'llc', 'lp').
6205
6178
  */
6206
6179
  entity_type?: string | null;
6180
+ /**
6181
+ * Reporting Style Id
6182
+ *
6183
+ * Active Reporting Style (Structure id) governing this entity's statement layout. Change it via the change-reporting-style operation.
6184
+ */
6185
+ reporting_style_id?: string | null;
6207
6186
  /**
6208
6187
  * Phone
6209
6188
  */
@@ -6599,46 +6578,145 @@ export type MaterializeOp = {
6599
6578
  materialize_embeddings?: boolean;
6600
6579
  };
6601
6580
  /**
6602
- * MetricMechanics
6603
- *
6604
- * Derivative mechanics for ``block_type='metric'``.
6605
- *
6606
- * A metric block composes its facts from one or more source blocks at
6607
- * read time — covenant tests, ratios, KPI trend computations. The typed
6608
- * arm ships today so the discriminated union covers all three
6609
- * construction modes (declarative / compositional / derivative); the
6610
- * derivation evaluator that actually computes facts from source-block
6611
- * FactSets is not yet implemented.
6581
+ * MemoryListResponse
6612
6582
  *
6613
- * ``source_block_ids`` is the ordered list of Structure ids this metric
6614
- * derives from; ``derivation_type`` names the kind of computation
6615
- * (``ratio``, ``trailing_twelve_month``, ``covenant_test``, …), and
6616
- * ``expression`` carries the agent-authored derivation string that the
6617
- * evaluator will consume at envelope build time.
6583
+ * Governance list of memories for a graph.
6618
6584
  */
6619
- export type MetricMechanics = {
6585
+ export type MemoryListResponse = {
6620
6586
  /**
6621
- * Kind
6587
+ * Total
6622
6588
  */
6623
- kind?: 'metric';
6589
+ total: number;
6624
6590
  /**
6625
- * Source Block Ids
6626
- *
6627
- * Ordered list of Structure ids this metric sources from. Must be non-empty at evaluation time; empty lists are accepted so library scaffolding can register metric templates before source linkage is wired.
6591
+ * Memories
6628
6592
  */
6629
- source_block_ids?: Array<string>;
6593
+ memories: Array<MemoryRecord>;
6630
6594
  /**
6631
- * Derivation Type
6632
- *
6633
- * Free-form label for the derivation kind — 'ratio', 'trailing_twelve_month', 'covenant_test', etc. The evaluator dispatches on this tag; the set may be locked with a CHECK constraint once the derivation catalog stabilizes.
6595
+ * Graph Id
6634
6596
  */
6635
- derivation_type?: string | null;
6597
+ graph_id: string;
6598
+ };
6599
+ /**
6600
+ * MemoryRecallRequest
6601
+ *
6602
+ * Body for recall (ranked semantic search over memory).
6603
+ */
6604
+ export type MemoryRecallRequest = {
6636
6605
  /**
6637
- * Expression
6606
+ * Query
6638
6607
  *
6639
- * Derivation expression in the metric DSL — evaluated at envelope read time to produce the derivative fact value. Opaque string today; the metric-side parser / evaluator is not yet implemented.
6608
+ * Recall query
6640
6609
  */
6641
- expression?: string | null;
6610
+ query: string;
6611
+ /**
6612
+ * K
6613
+ *
6614
+ * Max results to return
6615
+ */
6616
+ k?: number;
6617
+ /**
6618
+ * Memory Type
6619
+ *
6620
+ * Filter by memory type
6621
+ */
6622
+ memory_type?: string | null;
6623
+ /**
6624
+ * Source
6625
+ *
6626
+ * Filter by source
6627
+ */
6628
+ source?: string | null;
6629
+ };
6630
+ /**
6631
+ * MemoryRecord
6632
+ *
6633
+ * A stored memory (never includes the raw embedding vector).
6634
+ */
6635
+ export type MemoryRecord = {
6636
+ /**
6637
+ * Id
6638
+ */
6639
+ id: string;
6640
+ /**
6641
+ * Text
6642
+ */
6643
+ text: string;
6644
+ /**
6645
+ * Source
6646
+ */
6647
+ source?: string | null;
6648
+ /**
6649
+ * Memory Type
6650
+ */
6651
+ memory_type?: string | null;
6652
+ /**
6653
+ * Tags
6654
+ */
6655
+ tags?: Array<string> | null;
6656
+ /**
6657
+ * Source Ref
6658
+ */
6659
+ source_ref?: string | null;
6660
+ /**
6661
+ * Provenance
6662
+ */
6663
+ provenance?: {
6664
+ [key: string]: unknown;
6665
+ } | null;
6666
+ /**
6667
+ * Created By
6668
+ */
6669
+ created_by?: string | null;
6670
+ /**
6671
+ * Created At
6672
+ */
6673
+ created_at?: string | null;
6674
+ /**
6675
+ * Updated At
6676
+ */
6677
+ updated_at?: string | null;
6678
+ };
6679
+ /**
6680
+ * MetricMechanics
6681
+ *
6682
+ * Derivative mechanics for ``block_type='metric'``.
6683
+ *
6684
+ * A metric block composes its facts from one or more source blocks at
6685
+ * read time — covenant tests, ratios, KPI trend computations. The typed
6686
+ * arm ships today so the discriminated union covers all three
6687
+ * construction modes (declarative / compositional / derivative); the
6688
+ * derivation evaluator that actually computes facts from source-block
6689
+ * FactSets is not yet implemented.
6690
+ *
6691
+ * ``source_block_ids`` is the ordered list of Structure ids this metric
6692
+ * derives from; ``derivation_type`` names the kind of computation
6693
+ * (``ratio``, ``trailing_twelve_month``, ``covenant_test``, …), and
6694
+ * ``expression`` carries the agent-authored derivation string that the
6695
+ * evaluator will consume at envelope build time.
6696
+ */
6697
+ export type MetricMechanics = {
6698
+ /**
6699
+ * Kind
6700
+ */
6701
+ kind?: 'metric';
6702
+ /**
6703
+ * Source Block Ids
6704
+ *
6705
+ * Ordered list of Structure ids this metric sources from. Must be non-empty at evaluation time; empty lists are accepted so library scaffolding can register metric templates before source linkage is wired.
6706
+ */
6707
+ source_block_ids?: Array<string>;
6708
+ /**
6709
+ * Derivation Type
6710
+ *
6711
+ * Free-form label for the derivation kind — 'ratio', 'trailing_twelve_month', 'covenant_test', etc. The evaluator dispatches on this tag; the set may be locked with a CHECK constraint once the derivation catalog stabilizes.
6712
+ */
6713
+ derivation_type?: string | null;
6714
+ /**
6715
+ * Expression
6716
+ *
6717
+ * Derivation expression in the metric DSL — evaluated at envelope read time to produce the derivative fact value. Opaque string today; the metric-side parser / evaluator is not yet implemented.
6718
+ */
6719
+ expression?: string | null;
6642
6720
  /**
6643
6721
  * Unit
6644
6722
  *
@@ -6952,6 +7030,51 @@ export type OperationEnvelopeAssociationResponse = {
6952
7030
  */
6953
7031
  idempotentReplay?: boolean;
6954
7032
  };
7033
+ /**
7034
+ * OperationEnvelope[ChangeReportingStyleResponse]
7035
+ */
7036
+ export type OperationEnvelopeChangeReportingStyleResponse = {
7037
+ /**
7038
+ * Operation
7039
+ *
7040
+ * Kebab-case operation name
7041
+ */
7042
+ operation: string;
7043
+ /**
7044
+ * Operationid
7045
+ *
7046
+ * op_-prefixed ULID for audit and SSE correlation
7047
+ */
7048
+ operationId: string;
7049
+ /**
7050
+ * Status
7051
+ *
7052
+ * Operation lifecycle state
7053
+ */
7054
+ status: 'completed' | 'pending' | 'failed';
7055
+ /**
7056
+ * Command-specific result payload
7057
+ */
7058
+ result?: ChangeReportingStyleResponse | null;
7059
+ /**
7060
+ * At
7061
+ *
7062
+ * ISO-8601 UTC timestamp
7063
+ */
7064
+ at: string;
7065
+ /**
7066
+ * Createdby
7067
+ *
7068
+ * User ID that initiated the operation (null for legacy callers)
7069
+ */
7070
+ createdBy?: string | null;
7071
+ /**
7072
+ * Idempotentreplay
7073
+ *
7074
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
7075
+ */
7076
+ idempotentReplay?: boolean;
7077
+ };
6955
7078
  /**
6956
7079
  * OperationEnvelope[ClosePeriodResponse]
6957
7080
  */
@@ -9724,6 +9847,51 @@ export type RegisterRequest = {
9724
9847
  */
9725
9848
  captcha_token?: string | null;
9726
9849
  };
9850
+ /**
9851
+ * RememberOp
9852
+ *
9853
+ * Body for the remember operation (write a semantic memory).
9854
+ */
9855
+ export type RememberOp = {
9856
+ /**
9857
+ * Text
9858
+ *
9859
+ * Memory content
9860
+ */
9861
+ text: string;
9862
+ /**
9863
+ * Source
9864
+ *
9865
+ * Origin of the memory
9866
+ */
9867
+ source?: string;
9868
+ /**
9869
+ * Memory Type
9870
+ *
9871
+ * Freeform classifier
9872
+ */
9873
+ memory_type?: string;
9874
+ /**
9875
+ * Tags
9876
+ *
9877
+ * Optional labels
9878
+ */
9879
+ tags?: Array<string> | null;
9880
+ /**
9881
+ * Source Ref
9882
+ *
9883
+ * Optional external reference/URI
9884
+ */
9885
+ source_ref?: string | null;
9886
+ /**
9887
+ * Provenance
9888
+ *
9889
+ * Opaque provenance metadata
9890
+ */
9891
+ provenance?: {
9892
+ [key: string]: unknown;
9893
+ } | null;
9894
+ };
9727
9895
  /**
9728
9896
  * RemovePublishListMemberOperation
9729
9897
  *
@@ -11197,6 +11365,52 @@ export type ShareResultItem = {
11197
11365
  */
11198
11366
  fact_count?: number;
11199
11367
  };
11368
+ /**
11369
+ * SqlStatementRequest
11370
+ */
11371
+ export type SqlStatementRequest = {
11372
+ /**
11373
+ * Sql
11374
+ *
11375
+ * SQL query over the graph's columnar tables (DuckDB) — a relational lens on the same graph-centric data, often ahead of the materialized graph. Use ? placeholders or $param_name for dynamic values to prevent SQL injection.
11376
+ */
11377
+ sql: string;
11378
+ /**
11379
+ * Parameters
11380
+ *
11381
+ * Query parameters for safe value substitution. ALWAYS use parameters instead of string concatenation.
11382
+ */
11383
+ parameters?: Array<unknown> | null;
11384
+ };
11385
+ /**
11386
+ * SqlStatementResponse
11387
+ */
11388
+ export type SqlStatementResponse = {
11389
+ /**
11390
+ * Columns
11391
+ *
11392
+ * Column names
11393
+ */
11394
+ columns: Array<string>;
11395
+ /**
11396
+ * Rows
11397
+ *
11398
+ * Query results
11399
+ */
11400
+ rows: Array<Array<unknown>>;
11401
+ /**
11402
+ * Row Count
11403
+ *
11404
+ * Number of rows returned
11405
+ */
11406
+ row_count: number;
11407
+ /**
11408
+ * Execution Time Ms
11409
+ *
11410
+ * Query execution time
11411
+ */
11412
+ execution_time_ms: number;
11413
+ };
11200
11414
  /**
11201
11415
  * StatementMechanics
11202
11416
  *
@@ -11672,52 +11886,6 @@ export type TableListResponse = {
11672
11886
  */
11673
11887
  total_count: number;
11674
11888
  };
11675
- /**
11676
- * TableQueryRequest
11677
- */
11678
- export type TableQueryRequest = {
11679
- /**
11680
- * Sql
11681
- *
11682
- * SQL query to execute on staging tables. Use ? placeholders or $param_name for dynamic values to prevent SQL injection.
11683
- */
11684
- sql: string;
11685
- /**
11686
- * Parameters
11687
- *
11688
- * Query parameters for safe value substitution. ALWAYS use parameters instead of string concatenation.
11689
- */
11690
- parameters?: Array<unknown> | null;
11691
- };
11692
- /**
11693
- * TableQueryResponse
11694
- */
11695
- export type TableQueryResponse = {
11696
- /**
11697
- * Columns
11698
- *
11699
- * Column names
11700
- */
11701
- columns: Array<string>;
11702
- /**
11703
- * Rows
11704
- *
11705
- * Query results
11706
- */
11707
- rows: Array<Array<unknown>>;
11708
- /**
11709
- * Row Count
11710
- *
11711
- * Number of rows returned
11712
- */
11713
- row_count: number;
11714
- /**
11715
- * Execution Time Ms
11716
- *
11717
- * Query execution time
11718
- */
11719
- execution_time_ms: number;
11720
- };
11721
11889
  /**
11722
11890
  * TaxonomyBlockAssociation
11723
11891
  *
@@ -12888,15 +13056,63 @@ export type UpdateMemberRoleRequest = {
12888
13056
  role: OrgRole;
12889
13057
  };
12890
13058
  /**
12891
- * UpdateOrgRequest
13059
+ * UpdateMemoryOp
12892
13060
  *
12893
- * Request to update organization details.
13061
+ * Body for the update-memory operation (partial update of a stored memory).
13062
+ *
13063
+ * Only supplied fields are changed; the memory is re-embedded when ``text``
13064
+ * changes.
12894
13065
  */
12895
- export type UpdateOrgRequest = {
13066
+ export type UpdateMemoryOp = {
12896
13067
  /**
12897
- * Name
13068
+ * Memory Id
13069
+ *
13070
+ * Server-generated memory id to update
12898
13071
  */
12899
- name?: string | null;
13072
+ memory_id: string;
13073
+ /**
13074
+ * Text
13075
+ *
13076
+ * New memory content
13077
+ */
13078
+ text?: string | null;
13079
+ /**
13080
+ * Memory Type
13081
+ *
13082
+ * Freeform classifier
13083
+ */
13084
+ memory_type?: string | null;
13085
+ /**
13086
+ * Tags
13087
+ *
13088
+ * Optional labels
13089
+ */
13090
+ tags?: Array<string> | null;
13091
+ /**
13092
+ * Source Ref
13093
+ *
13094
+ * Optional external reference/URI
13095
+ */
13096
+ source_ref?: string | null;
13097
+ /**
13098
+ * Provenance
13099
+ *
13100
+ * Opaque provenance metadata
13101
+ */
13102
+ provenance?: {
13103
+ [key: string]: unknown;
13104
+ } | null;
13105
+ };
13106
+ /**
13107
+ * UpdateOrgRequest
13108
+ *
13109
+ * Request to update organization details.
13110
+ */
13111
+ export type UpdateOrgRequest = {
13112
+ /**
13113
+ * Name
13114
+ */
13115
+ name?: string | null;
12900
13116
  org_type?: OrgType | null;
12901
13117
  };
12902
13118
  /**
@@ -16378,8 +16594,8 @@ export type GetGraphUsageAnalyticsResponses = {
16378
16594
  200: GraphUsageResponse;
16379
16595
  };
16380
16596
  export type GetGraphUsageAnalyticsResponse = GetGraphUsageAnalyticsResponses[keyof GetGraphUsageAnalyticsResponses];
16381
- export type ExecuteCypherQueryData = {
16382
- body: CypherQueryRequest;
16597
+ export type ExecuteCypherData = {
16598
+ body: CypherStatementRequest;
16383
16599
  path: {
16384
16600
  /**
16385
16601
  * Graph Id
@@ -16406,9 +16622,9 @@ export type ExecuteCypherQueryData = {
16406
16622
  */
16407
16623
  test_mode?: boolean;
16408
16624
  };
16409
- url: '/v1/graphs/{graph_id}/query';
16625
+ url: '/v1/graphs/{graph_id}/query/cypher';
16410
16626
  };
16411
- export type ExecuteCypherQueryErrors = {
16627
+ export type ExecuteCypherErrors = {
16412
16628
  /**
16413
16629
  * Invalid request
16414
16630
  */
@@ -16446,8 +16662,8 @@ export type ExecuteCypherQueryErrors = {
16446
16662
  */
16447
16663
  503: unknown;
16448
16664
  };
16449
- export type ExecuteCypherQueryError = ExecuteCypherQueryErrors[keyof ExecuteCypherQueryErrors];
16450
- export type ExecuteCypherQueryResponses = {
16665
+ export type ExecuteCypherError = ExecuteCypherErrors[keyof ExecuteCypherErrors];
16666
+ export type ExecuteCypherResponses = {
16451
16667
  /**
16452
16668
  * Successful Response
16453
16669
  */
@@ -16457,6 +16673,62 @@ export type ExecuteCypherQueryResponses = {
16457
16673
  */
16458
16674
  202: unknown;
16459
16675
  };
16676
+ export type ExecuteSqlData = {
16677
+ /**
16678
+ * SQL statement request
16679
+ */
16680
+ body: SqlStatementRequest;
16681
+ path: {
16682
+ /**
16683
+ * Graph Id
16684
+ */
16685
+ graph_id: string;
16686
+ };
16687
+ query?: never;
16688
+ url: '/v1/graphs/{graph_id}/query/sql';
16689
+ };
16690
+ export type ExecuteSqlErrors = {
16691
+ /**
16692
+ * Invalid request
16693
+ */
16694
+ 400: ErrorResponse;
16695
+ /**
16696
+ * Authentication required
16697
+ */
16698
+ 401: ErrorResponse;
16699
+ /**
16700
+ * Access denied
16701
+ */
16702
+ 403: ErrorResponse;
16703
+ /**
16704
+ * Resource not found
16705
+ */
16706
+ 404: ErrorResponse;
16707
+ /**
16708
+ * Query timeout
16709
+ */
16710
+ 408: unknown;
16711
+ /**
16712
+ * Validation Error
16713
+ */
16714
+ 422: HttpValidationError;
16715
+ /**
16716
+ * Rate limit exceeded
16717
+ */
16718
+ 429: ErrorResponse;
16719
+ /**
16720
+ * Internal server error
16721
+ */
16722
+ 500: ErrorResponse;
16723
+ };
16724
+ export type ExecuteSqlError = ExecuteSqlErrors[keyof ExecuteSqlErrors];
16725
+ export type ExecuteSqlResponses = {
16726
+ /**
16727
+ * Successful Response
16728
+ */
16729
+ 200: SqlStatementResponse;
16730
+ };
16731
+ export type ExecuteSqlResponse = ExecuteSqlResponses[keyof ExecuteSqlResponses];
16460
16732
  export type GetGraphSchemaData = {
16461
16733
  body?: never;
16462
16734
  path: {
@@ -17328,62 +17600,6 @@ export type ListTablesResponses = {
17328
17600
  200: TableListResponse;
17329
17601
  };
17330
17602
  export type ListTablesResponse = ListTablesResponses[keyof ListTablesResponses];
17331
- export type QueryTablesData = {
17332
- /**
17333
- * SQL query request
17334
- */
17335
- body: TableQueryRequest;
17336
- path: {
17337
- /**
17338
- * Graph Id
17339
- */
17340
- graph_id: string;
17341
- };
17342
- query?: never;
17343
- url: '/v1/graphs/{graph_id}/tables/query';
17344
- };
17345
- export type QueryTablesErrors = {
17346
- /**
17347
- * Invalid request
17348
- */
17349
- 400: ErrorResponse;
17350
- /**
17351
- * Authentication required
17352
- */
17353
- 401: ErrorResponse;
17354
- /**
17355
- * Access denied
17356
- */
17357
- 403: ErrorResponse;
17358
- /**
17359
- * Resource not found
17360
- */
17361
- 404: ErrorResponse;
17362
- /**
17363
- * Query timeout
17364
- */
17365
- 408: unknown;
17366
- /**
17367
- * Validation Error
17368
- */
17369
- 422: HttpValidationError;
17370
- /**
17371
- * Rate limit exceeded
17372
- */
17373
- 429: ErrorResponse;
17374
- /**
17375
- * Internal server error
17376
- */
17377
- 500: ErrorResponse;
17378
- };
17379
- export type QueryTablesError = QueryTablesErrors[keyof QueryTablesErrors];
17380
- export type QueryTablesResponses = {
17381
- /**
17382
- * Successful Response
17383
- */
17384
- 200: TableQueryResponse;
17385
- };
17386
- export type QueryTablesResponse = QueryTablesResponses[keyof QueryTablesResponses];
17387
17603
  export type SearchDocumentsData = {
17388
17604
  body: SearchRequest;
17389
17605
  path: {
@@ -17548,18 +17764,22 @@ export type ListDocumentsResponses = {
17548
17764
  200: DocumentListResponse;
17549
17765
  };
17550
17766
  export type ListDocumentsResponse = ListDocumentsResponses[keyof ListDocumentsResponses];
17551
- export type UploadDocumentData = {
17552
- body: DocumentUploadRequest;
17767
+ export type GetDocumentData = {
17768
+ body?: never;
17553
17769
  path: {
17554
17770
  /**
17555
17771
  * Graph Id
17556
17772
  */
17557
17773
  graph_id: string;
17774
+ /**
17775
+ * Document Id
17776
+ */
17777
+ document_id: string;
17558
17778
  };
17559
17779
  query?: never;
17560
- url: '/v1/graphs/{graph_id}/documents';
17780
+ url: '/v1/graphs/{graph_id}/documents/{document_id}';
17561
17781
  };
17562
- export type UploadDocumentErrors = {
17782
+ export type GetDocumentErrors = {
17563
17783
  /**
17564
17784
  * Invalid request
17565
17785
  */
@@ -17589,30 +17809,47 @@ export type UploadDocumentErrors = {
17589
17809
  */
17590
17810
  500: ErrorResponse;
17591
17811
  };
17592
- export type UploadDocumentError = UploadDocumentErrors[keyof UploadDocumentErrors];
17593
- export type UploadDocumentResponses = {
17812
+ export type GetDocumentError = GetDocumentErrors[keyof GetDocumentErrors];
17813
+ export type GetDocumentResponses = {
17594
17814
  /**
17595
17815
  * Successful Response
17596
17816
  */
17597
- 200: DocumentUploadResponse;
17817
+ 200: DocumentDetailResponse;
17598
17818
  };
17599
- export type UploadDocumentResponse = UploadDocumentResponses[keyof UploadDocumentResponses];
17600
- export type DeleteDocumentData = {
17819
+ export type GetDocumentResponse = GetDocumentResponses[keyof GetDocumentResponses];
17820
+ export type ListMemoriesData = {
17601
17821
  body?: never;
17602
17822
  path: {
17603
17823
  /**
17604
17824
  * Graph Id
17605
17825
  */
17606
17826
  graph_id: string;
17827
+ };
17828
+ query?: {
17607
17829
  /**
17608
- * Document Id
17830
+ * Memory Type
17831
+ *
17832
+ * Filter by memory type
17609
17833
  */
17610
- document_id: string;
17834
+ memory_type?: string | null;
17835
+ /**
17836
+ * Source
17837
+ *
17838
+ * Filter by source
17839
+ */
17840
+ source?: string | null;
17841
+ /**
17842
+ * Limit
17843
+ */
17844
+ limit?: number;
17845
+ /**
17846
+ * Offset
17847
+ */
17848
+ offset?: number;
17611
17849
  };
17612
- query?: never;
17613
- url: '/v1/graphs/{graph_id}/documents/{document_id}';
17850
+ url: '/v1/graphs/{graph_id}/memory';
17614
17851
  };
17615
- export type DeleteDocumentErrors = {
17852
+ export type ListMemoriesErrors = {
17616
17853
  /**
17617
17854
  * Invalid request
17618
17855
  */
@@ -17642,15 +17879,15 @@ export type DeleteDocumentErrors = {
17642
17879
  */
17643
17880
  500: ErrorResponse;
17644
17881
  };
17645
- export type DeleteDocumentError = DeleteDocumentErrors[keyof DeleteDocumentErrors];
17646
- export type DeleteDocumentResponses = {
17882
+ export type ListMemoriesError = ListMemoriesErrors[keyof ListMemoriesErrors];
17883
+ export type ListMemoriesResponses = {
17647
17884
  /**
17648
17885
  * Successful Response
17649
17886
  */
17650
- 204: void;
17887
+ 200: MemoryListResponse;
17651
17888
  };
17652
- export type DeleteDocumentResponse = DeleteDocumentResponses[keyof DeleteDocumentResponses];
17653
- export type GetDocumentData = {
17889
+ export type ListMemoriesResponse = ListMemoriesResponses[keyof ListMemoriesResponses];
17890
+ export type GetMemoryData = {
17654
17891
  body?: never;
17655
17892
  path: {
17656
17893
  /**
@@ -17658,14 +17895,14 @@ export type GetDocumentData = {
17658
17895
  */
17659
17896
  graph_id: string;
17660
17897
  /**
17661
- * Document Id
17898
+ * Memory Id
17662
17899
  */
17663
- document_id: string;
17900
+ memory_id: string;
17664
17901
  };
17665
17902
  query?: never;
17666
- url: '/v1/graphs/{graph_id}/documents/{document_id}';
17903
+ url: '/v1/graphs/{graph_id}/memory/{memory_id}';
17667
17904
  };
17668
- export type GetDocumentErrors = {
17905
+ export type GetMemoryErrors = {
17669
17906
  /**
17670
17907
  * Invalid request
17671
17908
  */
@@ -17695,30 +17932,26 @@ export type GetDocumentErrors = {
17695
17932
  */
17696
17933
  500: ErrorResponse;
17697
17934
  };
17698
- export type GetDocumentError = GetDocumentErrors[keyof GetDocumentErrors];
17699
- export type GetDocumentResponses = {
17935
+ export type GetMemoryError = GetMemoryErrors[keyof GetMemoryErrors];
17936
+ export type GetMemoryResponses = {
17700
17937
  /**
17701
17938
  * Successful Response
17702
17939
  */
17703
- 200: DocumentDetailResponse;
17940
+ 200: MemoryRecord;
17704
17941
  };
17705
- export type GetDocumentResponse = GetDocumentResponses[keyof GetDocumentResponses];
17706
- export type UpdateDocumentData = {
17707
- body: DocumentUpdateRequest;
17942
+ export type GetMemoryResponse = GetMemoryResponses[keyof GetMemoryResponses];
17943
+ export type RecallMemoryData = {
17944
+ body: MemoryRecallRequest;
17708
17945
  path: {
17709
17946
  /**
17710
17947
  * Graph Id
17711
17948
  */
17712
17949
  graph_id: string;
17713
- /**
17714
- * Document Id
17715
- */
17716
- document_id: string;
17717
17950
  };
17718
17951
  query?: never;
17719
- url: '/v1/graphs/{graph_id}/documents/{document_id}';
17952
+ url: '/v1/graphs/{graph_id}/memory/recall';
17720
17953
  };
17721
- export type UpdateDocumentErrors = {
17954
+ export type RecallMemoryErrors = {
17722
17955
  /**
17723
17956
  * Invalid request
17724
17957
  */
@@ -17747,15 +17980,19 @@ export type UpdateDocumentErrors = {
17747
17980
  * Internal server error
17748
17981
  */
17749
17982
  500: ErrorResponse;
17983
+ /**
17984
+ * Semantic memory not available
17985
+ */
17986
+ 503: unknown;
17750
17987
  };
17751
- export type UpdateDocumentError = UpdateDocumentErrors[keyof UpdateDocumentErrors];
17752
- export type UpdateDocumentResponses = {
17988
+ export type RecallMemoryError = RecallMemoryErrors[keyof RecallMemoryErrors];
17989
+ export type RecallMemoryResponses = {
17753
17990
  /**
17754
17991
  * Successful Response
17755
17992
  */
17756
- 200: DocumentUploadResponse;
17993
+ 200: SearchResponse;
17757
17994
  };
17758
- export type UpdateDocumentResponse = UpdateDocumentResponses[keyof UpdateDocumentResponses];
17995
+ export type RecallMemoryResponse = RecallMemoryResponses[keyof RecallMemoryResponses];
17759
17996
  export type OpCreateSubgraphData = {
17760
17997
  body: CreateSubgraphRequest;
17761
17998
  headers?: {
@@ -18110,8 +18347,8 @@ export type OpChangeTierResponses = {
18110
18347
  202: OperationEnvelope;
18111
18348
  };
18112
18349
  export type OpChangeTierResponse = OpChangeTierResponses[keyof OpChangeTierResponses];
18113
- export type OpChangeReportingStyleData = {
18114
- body: ChangeReportingStyleOp;
18350
+ export type OpMaterializeData = {
18351
+ body: MaterializeOp;
18115
18352
  headers?: {
18116
18353
  /**
18117
18354
  * Idempotency-Key
@@ -18125,9 +18362,9 @@ export type OpChangeReportingStyleData = {
18125
18362
  graph_id: string;
18126
18363
  };
18127
18364
  query?: never;
18128
- url: '/v1/graphs/{graph_id}/operations/change-reporting-style';
18365
+ url: '/v1/graphs/{graph_id}/operations/materialize';
18129
18366
  };
18130
- export type OpChangeReportingStyleErrors = {
18367
+ export type OpMaterializeErrors = {
18131
18368
  /**
18132
18369
  * Invalid request
18133
18370
  */
@@ -18161,16 +18398,16 @@ export type OpChangeReportingStyleErrors = {
18161
18398
  */
18162
18399
  500: ErrorResponse;
18163
18400
  };
18164
- export type OpChangeReportingStyleError = OpChangeReportingStyleErrors[keyof OpChangeReportingStyleErrors];
18165
- export type OpChangeReportingStyleResponses = {
18401
+ export type OpMaterializeError = OpMaterializeErrors[keyof OpMaterializeErrors];
18402
+ export type OpMaterializeResponses = {
18166
18403
  /**
18167
18404
  * Successful Response
18168
18405
  */
18169
- 200: OperationEnvelope;
18406
+ 202: OperationEnvelope;
18170
18407
  };
18171
- export type OpChangeReportingStyleResponse = OpChangeReportingStyleResponses[keyof OpChangeReportingStyleResponses];
18172
- export type OpMaterializeData = {
18173
- body: MaterializeOp;
18408
+ export type OpMaterializeResponse = OpMaterializeResponses[keyof OpMaterializeResponses];
18409
+ export type OpRememberData = {
18410
+ body: RememberOp;
18174
18411
  headers?: {
18175
18412
  /**
18176
18413
  * Idempotency-Key
@@ -18184,9 +18421,9 @@ export type OpMaterializeData = {
18184
18421
  graph_id: string;
18185
18422
  };
18186
18423
  query?: never;
18187
- url: '/v1/graphs/{graph_id}/operations/materialize';
18424
+ url: '/v1/graphs/{graph_id}/operations/remember';
18188
18425
  };
18189
- export type OpMaterializeErrors = {
18426
+ export type OpRememberErrors = {
18190
18427
  /**
18191
18428
  * Invalid request
18192
18429
  */
@@ -18220,39 +18457,32 @@ export type OpMaterializeErrors = {
18220
18457
  */
18221
18458
  500: ErrorResponse;
18222
18459
  };
18223
- export type OpMaterializeError = OpMaterializeErrors[keyof OpMaterializeErrors];
18224
- export type OpMaterializeResponses = {
18460
+ export type OpRememberError = OpRememberErrors[keyof OpRememberErrors];
18461
+ export type OpRememberResponses = {
18225
18462
  /**
18226
18463
  * Successful Response
18227
18464
  */
18228
- 202: OperationEnvelope;
18465
+ 200: OperationEnvelope;
18229
18466
  };
18230
- export type OpMaterializeResponse = OpMaterializeResponses[keyof OpMaterializeResponses];
18231
- export type ListFilesData = {
18232
- body?: never;
18233
- path: {
18467
+ export type OpRememberResponse = OpRememberResponses[keyof OpRememberResponses];
18468
+ export type OpForgetData = {
18469
+ body: ForgetOp;
18470
+ headers?: {
18234
18471
  /**
18235
- * Graph Id
18472
+ * Idempotency-Key
18236
18473
  */
18237
- graph_id: string;
18474
+ 'Idempotency-Key'?: string | null;
18238
18475
  };
18239
- query?: {
18240
- /**
18241
- * Table Name
18242
- *
18243
- * Filter by table name (optional)
18244
- */
18245
- table_name?: string | null;
18476
+ path: {
18246
18477
  /**
18247
- * Status
18248
- *
18249
- * Filter by upload status (optional)
18478
+ * Graph Id
18250
18479
  */
18251
- status?: string | null;
18480
+ graph_id: string;
18252
18481
  };
18253
- url: '/v1/graphs/{graph_id}/files';
18482
+ query?: never;
18483
+ url: '/v1/graphs/{graph_id}/operations/forget';
18254
18484
  };
18255
- export type ListFilesErrors = {
18485
+ export type OpForgetErrors = {
18256
18486
  /**
18257
18487
  * Invalid request
18258
18488
  */
@@ -18270,9 +18500,13 @@ export type ListFilesErrors = {
18270
18500
  */
18271
18501
  404: ErrorResponse;
18272
18502
  /**
18273
- * Validation Error
18503
+ * Idempotency-Key conflict — key reused with different body
18274
18504
  */
18275
- 422: HttpValidationError;
18505
+ 409: ErrorResponse;
18506
+ /**
18507
+ * Validation error
18508
+ */
18509
+ 422: ErrorResponse;
18276
18510
  /**
18277
18511
  * Rate limit exceeded
18278
18512
  */
@@ -18282,19 +18516,22 @@ export type ListFilesErrors = {
18282
18516
  */
18283
18517
  500: ErrorResponse;
18284
18518
  };
18285
- export type ListFilesError = ListFilesErrors[keyof ListFilesErrors];
18286
- export type ListFilesResponses = {
18519
+ export type OpForgetError = OpForgetErrors[keyof OpForgetErrors];
18520
+ export type OpForgetResponses = {
18287
18521
  /**
18288
18522
  * Successful Response
18289
18523
  */
18290
- 200: ListTableFilesResponse;
18524
+ 200: OperationEnvelope;
18291
18525
  };
18292
- export type ListFilesResponse = ListFilesResponses[keyof ListFilesResponses];
18293
- export type CreateFileUploadData = {
18294
- /**
18295
- * Upload request with table_name
18296
- */
18297
- body: FileUploadRequest;
18526
+ export type OpForgetResponse = OpForgetResponses[keyof OpForgetResponses];
18527
+ export type OpUpdateMemoryData = {
18528
+ body: UpdateMemoryOp;
18529
+ headers?: {
18530
+ /**
18531
+ * Idempotency-Key
18532
+ */
18533
+ 'Idempotency-Key'?: string | null;
18534
+ };
18298
18535
  path: {
18299
18536
  /**
18300
18537
  * Graph Id
@@ -18302,9 +18539,9 @@ export type CreateFileUploadData = {
18302
18539
  graph_id: string;
18303
18540
  };
18304
18541
  query?: never;
18305
- url: '/v1/graphs/{graph_id}/files';
18542
+ url: '/v1/graphs/{graph_id}/operations/update-memory';
18306
18543
  };
18307
- export type CreateFileUploadErrors = {
18544
+ export type OpUpdateMemoryErrors = {
18308
18545
  /**
18309
18546
  * Invalid request
18310
18547
  */
@@ -18322,9 +18559,13 @@ export type CreateFileUploadErrors = {
18322
18559
  */
18323
18560
  404: ErrorResponse;
18324
18561
  /**
18325
- * Validation Error
18562
+ * Idempotency-Key conflict — key reused with different body
18326
18563
  */
18327
- 422: HttpValidationError;
18564
+ 409: ErrorResponse;
18565
+ /**
18566
+ * Validation error
18567
+ */
18568
+ 422: ErrorResponse;
18328
18569
  /**
18329
18570
  * Rate limit exceeded
18330
18571
  */
@@ -18334,39 +18575,91 @@ export type CreateFileUploadErrors = {
18334
18575
  */
18335
18576
  500: ErrorResponse;
18336
18577
  };
18337
- export type CreateFileUploadError = CreateFileUploadErrors[keyof CreateFileUploadErrors];
18338
- export type CreateFileUploadResponses = {
18578
+ export type OpUpdateMemoryError = OpUpdateMemoryErrors[keyof OpUpdateMemoryErrors];
18579
+ export type OpUpdateMemoryResponses = {
18339
18580
  /**
18340
18581
  * Successful Response
18341
18582
  */
18342
- 200: FileUploadResponse;
18583
+ 200: OperationEnvelope;
18343
18584
  };
18344
- export type CreateFileUploadResponse = CreateFileUploadResponses[keyof CreateFileUploadResponses];
18345
- export type DeleteFileData = {
18346
- body?: never;
18585
+ export type OpUpdateMemoryResponse = OpUpdateMemoryResponses[keyof OpUpdateMemoryResponses];
18586
+ export type OpIndexDocumentData = {
18587
+ body: IndexDocumentOp;
18588
+ headers?: {
18589
+ /**
18590
+ * Idempotency-Key
18591
+ */
18592
+ 'Idempotency-Key'?: string | null;
18593
+ };
18347
18594
  path: {
18348
18595
  /**
18349
18596
  * Graph Id
18350
18597
  */
18351
18598
  graph_id: string;
18599
+ };
18600
+ query?: never;
18601
+ url: '/v1/graphs/{graph_id}/operations/index-document';
18602
+ };
18603
+ export type OpIndexDocumentErrors = {
18604
+ /**
18605
+ * Invalid request
18606
+ */
18607
+ 400: ErrorResponse;
18608
+ /**
18609
+ * Authentication required
18610
+ */
18611
+ 401: ErrorResponse;
18612
+ /**
18613
+ * Access denied
18614
+ */
18615
+ 403: ErrorResponse;
18616
+ /**
18617
+ * Resource not found
18618
+ */
18619
+ 404: ErrorResponse;
18620
+ /**
18621
+ * Idempotency-Key conflict — key reused with different body
18622
+ */
18623
+ 409: ErrorResponse;
18624
+ /**
18625
+ * Validation error
18626
+ */
18627
+ 422: ErrorResponse;
18628
+ /**
18629
+ * Rate limit exceeded
18630
+ */
18631
+ 429: ErrorResponse;
18632
+ /**
18633
+ * Internal server error
18634
+ */
18635
+ 500: ErrorResponse;
18636
+ };
18637
+ export type OpIndexDocumentError = OpIndexDocumentErrors[keyof OpIndexDocumentErrors];
18638
+ export type OpIndexDocumentResponses = {
18639
+ /**
18640
+ * Successful Response
18641
+ */
18642
+ 200: OperationEnvelope;
18643
+ };
18644
+ export type OpIndexDocumentResponse = OpIndexDocumentResponses[keyof OpIndexDocumentResponses];
18645
+ export type OpDeleteDocumentData = {
18646
+ body: DeleteDocumentOp;
18647
+ headers?: {
18352
18648
  /**
18353
- * File Id
18354
- *
18355
- * File ID
18649
+ * Idempotency-Key
18356
18650
  */
18357
- file_id: string;
18651
+ 'Idempotency-Key'?: string | null;
18358
18652
  };
18359
- query?: {
18653
+ path: {
18360
18654
  /**
18361
- * Cascade
18362
- *
18363
- * If true, delete from all layers including DuckDB and mark graph stale
18655
+ * Graph Id
18364
18656
  */
18365
- cascade?: boolean;
18657
+ graph_id: string;
18366
18658
  };
18367
- url: '/v1/graphs/{graph_id}/files/{file_id}';
18659
+ query?: never;
18660
+ url: '/v1/graphs/{graph_id}/operations/delete-document';
18368
18661
  };
18369
- export type DeleteFileErrors = {
18662
+ export type OpDeleteDocumentErrors = {
18370
18663
  /**
18371
18664
  * Invalid request
18372
18665
  */
@@ -18384,9 +18677,13 @@ export type DeleteFileErrors = {
18384
18677
  */
18385
18678
  404: ErrorResponse;
18386
18679
  /**
18387
- * Validation Error
18680
+ * Idempotency-Key conflict — key reused with different body
18388
18681
  */
18389
- 422: HttpValidationError;
18682
+ 409: ErrorResponse;
18683
+ /**
18684
+ * Validation error
18685
+ */
18686
+ 422: ErrorResponse;
18390
18687
  /**
18391
18688
  * Rate limit exceeded
18392
18689
  */
@@ -18396,32 +18693,216 @@ export type DeleteFileErrors = {
18396
18693
  */
18397
18694
  500: ErrorResponse;
18398
18695
  };
18399
- export type DeleteFileError = DeleteFileErrors[keyof DeleteFileErrors];
18400
- export type DeleteFileResponses = {
18696
+ export type OpDeleteDocumentError = OpDeleteDocumentErrors[keyof OpDeleteDocumentErrors];
18697
+ export type OpDeleteDocumentResponses = {
18401
18698
  /**
18402
18699
  * Successful Response
18403
18700
  */
18404
- 200: DeleteFileResponse;
18701
+ 200: OperationEnvelope;
18405
18702
  };
18406
- export type DeleteFileResponse2 = DeleteFileResponses[keyof DeleteFileResponses];
18407
- export type GetFileData = {
18703
+ export type OpDeleteDocumentResponse = OpDeleteDocumentResponses[keyof OpDeleteDocumentResponses];
18704
+ export type OpCreateFileUploadData = {
18705
+ body: FileUploadRequest;
18706
+ headers?: {
18707
+ /**
18708
+ * Idempotency-Key
18709
+ */
18710
+ 'Idempotency-Key'?: string | null;
18711
+ };
18712
+ path: {
18713
+ /**
18714
+ * Graph Id
18715
+ */
18716
+ graph_id: string;
18717
+ };
18718
+ query?: never;
18719
+ url: '/v1/graphs/{graph_id}/operations/create-file-upload';
18720
+ };
18721
+ export type OpCreateFileUploadErrors = {
18722
+ /**
18723
+ * Invalid request
18724
+ */
18725
+ 400: ErrorResponse;
18726
+ /**
18727
+ * Authentication required
18728
+ */
18729
+ 401: ErrorResponse;
18730
+ /**
18731
+ * Access denied
18732
+ */
18733
+ 403: ErrorResponse;
18734
+ /**
18735
+ * Resource not found
18736
+ */
18737
+ 404: ErrorResponse;
18738
+ /**
18739
+ * Idempotency-Key conflict — key reused with different body
18740
+ */
18741
+ 409: ErrorResponse;
18742
+ /**
18743
+ * Validation error
18744
+ */
18745
+ 422: ErrorResponse;
18746
+ /**
18747
+ * Rate limit exceeded
18748
+ */
18749
+ 429: ErrorResponse;
18750
+ /**
18751
+ * Internal server error
18752
+ */
18753
+ 500: ErrorResponse;
18754
+ };
18755
+ export type OpCreateFileUploadError = OpCreateFileUploadErrors[keyof OpCreateFileUploadErrors];
18756
+ export type OpCreateFileUploadResponses = {
18757
+ /**
18758
+ * Successful Response
18759
+ */
18760
+ 200: OperationEnvelope;
18761
+ };
18762
+ export type OpCreateFileUploadResponse = OpCreateFileUploadResponses[keyof OpCreateFileUploadResponses];
18763
+ export type OpIngestFileData = {
18764
+ body: IngestFileOp;
18765
+ headers?: {
18766
+ /**
18767
+ * Idempotency-Key
18768
+ */
18769
+ 'Idempotency-Key'?: string | null;
18770
+ };
18771
+ path: {
18772
+ /**
18773
+ * Graph Id
18774
+ */
18775
+ graph_id: string;
18776
+ };
18777
+ query?: never;
18778
+ url: '/v1/graphs/{graph_id}/operations/ingest-file';
18779
+ };
18780
+ export type OpIngestFileErrors = {
18781
+ /**
18782
+ * Invalid request
18783
+ */
18784
+ 400: ErrorResponse;
18785
+ /**
18786
+ * Authentication required
18787
+ */
18788
+ 401: ErrorResponse;
18789
+ /**
18790
+ * Access denied
18791
+ */
18792
+ 403: ErrorResponse;
18793
+ /**
18794
+ * Resource not found
18795
+ */
18796
+ 404: ErrorResponse;
18797
+ /**
18798
+ * Idempotency-Key conflict — key reused with different body
18799
+ */
18800
+ 409: ErrorResponse;
18801
+ /**
18802
+ * Validation error
18803
+ */
18804
+ 422: ErrorResponse;
18805
+ /**
18806
+ * Rate limit exceeded
18807
+ */
18808
+ 429: ErrorResponse;
18809
+ /**
18810
+ * Internal server error
18811
+ */
18812
+ 500: ErrorResponse;
18813
+ };
18814
+ export type OpIngestFileError = OpIngestFileErrors[keyof OpIngestFileErrors];
18815
+ export type OpIngestFileResponses = {
18816
+ /**
18817
+ * Successful Response
18818
+ */
18819
+ 200: OperationEnvelope;
18820
+ };
18821
+ export type OpIngestFileResponse = OpIngestFileResponses[keyof OpIngestFileResponses];
18822
+ export type OpDeleteFileData = {
18823
+ body: DeleteFileOp;
18824
+ headers?: {
18825
+ /**
18826
+ * Idempotency-Key
18827
+ */
18828
+ 'Idempotency-Key'?: string | null;
18829
+ };
18830
+ path: {
18831
+ /**
18832
+ * Graph Id
18833
+ */
18834
+ graph_id: string;
18835
+ };
18836
+ query?: never;
18837
+ url: '/v1/graphs/{graph_id}/operations/delete-file';
18838
+ };
18839
+ export type OpDeleteFileErrors = {
18840
+ /**
18841
+ * Invalid request
18842
+ */
18843
+ 400: ErrorResponse;
18844
+ /**
18845
+ * Authentication required
18846
+ */
18847
+ 401: ErrorResponse;
18848
+ /**
18849
+ * Access denied
18850
+ */
18851
+ 403: ErrorResponse;
18852
+ /**
18853
+ * Resource not found
18854
+ */
18855
+ 404: ErrorResponse;
18856
+ /**
18857
+ * Idempotency-Key conflict — key reused with different body
18858
+ */
18859
+ 409: ErrorResponse;
18860
+ /**
18861
+ * Validation error
18862
+ */
18863
+ 422: ErrorResponse;
18864
+ /**
18865
+ * Rate limit exceeded
18866
+ */
18867
+ 429: ErrorResponse;
18868
+ /**
18869
+ * Internal server error
18870
+ */
18871
+ 500: ErrorResponse;
18872
+ };
18873
+ export type OpDeleteFileError = OpDeleteFileErrors[keyof OpDeleteFileErrors];
18874
+ export type OpDeleteFileResponses = {
18875
+ /**
18876
+ * Successful Response
18877
+ */
18878
+ 200: OperationEnvelope;
18879
+ };
18880
+ export type OpDeleteFileResponse = OpDeleteFileResponses[keyof OpDeleteFileResponses];
18881
+ export type ListFilesData = {
18408
18882
  body?: never;
18409
18883
  path: {
18410
18884
  /**
18411
18885
  * Graph Id
18412
18886
  */
18413
18887
  graph_id: string;
18888
+ };
18889
+ query?: {
18414
18890
  /**
18415
- * File Id
18891
+ * Table Name
18416
18892
  *
18417
- * File ID
18893
+ * Filter by table name (optional)
18418
18894
  */
18419
- file_id: string;
18895
+ table_name?: string | null;
18896
+ /**
18897
+ * Status
18898
+ *
18899
+ * Filter by upload status (optional)
18900
+ */
18901
+ status?: string | null;
18420
18902
  };
18421
- query?: never;
18422
- url: '/v1/graphs/{graph_id}/files/{file_id}';
18903
+ url: '/v1/graphs/{graph_id}/files';
18423
18904
  };
18424
- export type GetFileErrors = {
18905
+ export type ListFilesErrors = {
18425
18906
  /**
18426
18907
  * Invalid request
18427
18908
  */
@@ -18451,19 +18932,16 @@ export type GetFileErrors = {
18451
18932
  */
18452
18933
  500: ErrorResponse;
18453
18934
  };
18454
- export type GetFileError = GetFileErrors[keyof GetFileErrors];
18455
- export type GetFileResponses = {
18935
+ export type ListFilesError = ListFilesErrors[keyof ListFilesErrors];
18936
+ export type ListFilesResponses = {
18456
18937
  /**
18457
18938
  * Successful Response
18458
18939
  */
18459
- 200: GetFileInfoResponse;
18940
+ 200: ListTableFilesResponse;
18460
18941
  };
18461
- export type GetFileResponse = GetFileResponses[keyof GetFileResponses];
18462
- export type UpdateFileData = {
18463
- /**
18464
- * Status update request
18465
- */
18466
- body: FileStatusUpdate;
18942
+ export type ListFilesResponse = ListFilesResponses[keyof ListFilesResponses];
18943
+ export type GetFileData = {
18944
+ body?: never;
18467
18945
  path: {
18468
18946
  /**
18469
18947
  * Graph Id
@@ -18479,7 +18957,7 @@ export type UpdateFileData = {
18479
18957
  query?: never;
18480
18958
  url: '/v1/graphs/{graph_id}/files/{file_id}';
18481
18959
  };
18482
- export type UpdateFileErrors = {
18960
+ export type GetFileErrors = {
18483
18961
  /**
18484
18962
  * Invalid request
18485
18963
  */
@@ -18509,18 +18987,14 @@ export type UpdateFileErrors = {
18509
18987
  */
18510
18988
  500: ErrorResponse;
18511
18989
  };
18512
- export type UpdateFileError = UpdateFileErrors[keyof UpdateFileErrors];
18513
- export type UpdateFileResponses = {
18990
+ export type GetFileError = GetFileErrors[keyof GetFileErrors];
18991
+ export type GetFileResponses = {
18514
18992
  /**
18515
- * Response Updatefile
18516
- *
18517
18993
  * Successful Response
18518
18994
  */
18519
- 200: {
18520
- [key: string]: unknown;
18521
- };
18995
+ 200: GetFileInfoResponse;
18522
18996
  };
18523
- export type UpdateFileResponse = UpdateFileResponses[keyof UpdateFileResponses];
18997
+ export type GetFileResponse = GetFileResponses[keyof GetFileResponses];
18524
18998
  export type GetGraphsData = {
18525
18999
  body?: never;
18526
19000
  path?: never;
@@ -19641,6 +20115,65 @@ export type OpUpdateEntityResponses = {
19641
20115
  200: OperationEnvelopeLedgerEntityResponse;
19642
20116
  };
19643
20117
  export type OpUpdateEntityResponse = OpUpdateEntityResponses[keyof OpUpdateEntityResponses];
20118
+ export type OpChangeReportingStyleData = {
20119
+ body: ChangeReportingStyleRequest;
20120
+ headers?: {
20121
+ /**
20122
+ * Idempotency-Key
20123
+ */
20124
+ 'Idempotency-Key'?: string | null;
20125
+ };
20126
+ path: {
20127
+ /**
20128
+ * Graph Id
20129
+ */
20130
+ graph_id: string;
20131
+ };
20132
+ query?: never;
20133
+ url: '/extensions/roboledger/{graph_id}/operations/change-reporting-style';
20134
+ };
20135
+ export type OpChangeReportingStyleErrors = {
20136
+ /**
20137
+ * Invalid request
20138
+ */
20139
+ 400: ErrorResponse;
20140
+ /**
20141
+ * Authentication required
20142
+ */
20143
+ 401: ErrorResponse;
20144
+ /**
20145
+ * Access denied
20146
+ */
20147
+ 403: ErrorResponse;
20148
+ /**
20149
+ * Resource not found
20150
+ */
20151
+ 404: ErrorResponse;
20152
+ /**
20153
+ * Idempotency-Key conflict — key reused with different body
20154
+ */
20155
+ 409: ErrorResponse;
20156
+ /**
20157
+ * Validation error
20158
+ */
20159
+ 422: ErrorResponse;
20160
+ /**
20161
+ * Rate limit exceeded
20162
+ */
20163
+ 429: ErrorResponse;
20164
+ /**
20165
+ * Internal server error
20166
+ */
20167
+ 500: ErrorResponse;
20168
+ };
20169
+ export type OpChangeReportingStyleError = OpChangeReportingStyleErrors[keyof OpChangeReportingStyleErrors];
20170
+ export type OpChangeReportingStyleResponses = {
20171
+ /**
20172
+ * Successful Response
20173
+ */
20174
+ 200: OperationEnvelopeChangeReportingStyleResponse;
20175
+ };
20176
+ export type OpChangeReportingStyleResponse = OpChangeReportingStyleResponses[keyof OpChangeReportingStyleResponses];
19644
20177
  export type OpCreateTaxonomyBlockData = {
19645
20178
  body: CreateTaxonomyBlockRequest;
19646
20179
  headers?: {