@robosystems/client 1.2.0 → 1.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.
package/types.gen.ts CHANGED
@@ -657,6 +657,12 @@ export type BackfillPlanHistoryOperation = {
657
657
  * Override the sync-currency gate on each reclose. Historical months predate the last sync in the normal case, so this is rarely needed.
658
658
  */
659
659
  allow_stale_sync?: boolean;
660
+ /**
661
+ * Allow Stranded Obligations
662
+ *
663
+ * Override the stranded-obligation gate on each reclose. Only needed when a matured classified obligation without a drafted entry exists inside the backfill window and you have decided not to draft or void it first.
664
+ */
665
+ allow_stranded_obligations?: boolean;
660
666
  /**
661
667
  * Restamp
662
668
  *
@@ -990,52 +996,6 @@ export type BackupStatsResponse = {
990
996
  };
991
997
  };
992
998
 
993
- /**
994
- * BatchOperatorRequest
995
- *
996
- * Request for batch processing multiple queries.
997
- */
998
- export type BatchOperatorRequest = {
999
- /**
1000
- * Queries
1001
- *
1002
- * List of queries to process (max 10)
1003
- */
1004
- queries: Array<OperatorRequest>;
1005
- /**
1006
- * Parallel
1007
- *
1008
- * Process queries in parallel
1009
- */
1010
- parallel?: boolean;
1011
- };
1012
-
1013
- /**
1014
- * BatchOperatorResponse
1015
- *
1016
- * Response for batch processing.
1017
- */
1018
- export type BatchOperatorResponse = {
1019
- /**
1020
- * Results
1021
- *
1022
- * List of operator responses (includes successes and failures)
1023
- */
1024
- results: Array<OperatorResponse>;
1025
- /**
1026
- * Total Execution Time
1027
- *
1028
- * Total execution time in seconds
1029
- */
1030
- total_execution_time: number;
1031
- /**
1032
- * Parallel Processed
1033
- *
1034
- * Whether queries were processed in parallel
1035
- */
1036
- parallel_processed: boolean;
1037
- };
1038
-
1039
999
  /**
1040
1000
  * BillingCustomer
1041
1001
  *
@@ -1534,6 +1494,12 @@ export type ClosePeriodOperation = {
1534
1494
  * Override the sync-currency gate. Only use when you have manually verified that the source data for the period is complete.
1535
1495
  */
1536
1496
  allow_stale_sync?: boolean;
1497
+ /**
1498
+ * Allow Stranded Obligations
1499
+ *
1500
+ * Override the stranded-obligation gate — close even though matured classified obligations have no drafted closing entry, knowingly omitting those adjusting entries from the period. Prefer running promote-obligations with dispatch_handlers=true (which drafts them) or voiding the obligations instead. The override is recorded in the close audit note.
1501
+ */
1502
+ allow_stranded_obligations?: boolean;
1537
1503
  /**
1538
1504
  * Period
1539
1505
  *
@@ -1556,9 +1522,21 @@ export type ClosePeriodResponse = {
1556
1522
  /**
1557
1523
  * Entries Posted
1558
1524
  *
1559
- * Number of draft entries transitioned to posted
1525
+ * Total draft entries the close transitioned to posted, across both post paths (QB pre-publish + local bulk transition). See entries_published_to_qb / entries_posted_locally for the split.
1560
1526
  */
1561
1527
  entries_posted?: number;
1528
+ /**
1529
+ * Entries Published To Qb
1530
+ *
1531
+ * Drafts published to QuickBooks by the close's pre-publish step (each is promoted to posted at publish time).
1532
+ */
1533
+ entries_published_to_qb?: number;
1534
+ /**
1535
+ * Entries Posted Locally
1536
+ *
1537
+ * Drafts posted by the local bulk transition (entries that don't publish to QuickBooks, e.g. native-only graphs or local-only sources).
1538
+ */
1539
+ entries_posted_locally?: number;
1562
1540
  /**
1563
1541
  * Target Auto Advanced
1564
1542
  *
@@ -4950,6 +4928,12 @@ export type EventBlockEnvelope = {
4950
4928
  metadata: {
4951
4929
  [key: string]: unknown;
4952
4930
  };
4931
+ /**
4932
+ * Is Reconciling Item
4933
+ *
4934
+ * True when this event is a reconciling item: a source re-sync surfaced a changed upstream payload for an event whose GL is already posted (committed/fulfilled are immutable to sync) — the local books legitimately no longer mirror the source, and the difference awaits an explicit disposition (restate the affected months, or book a catch-up entry in the open period). The live payload and GL are untouched; the incoming payload is stashed in `metadata.drift_payload` with `metadata.drift_detected_at`.
4935
+ */
4936
+ is_reconciling_item?: boolean;
4953
4937
  /**
4954
4938
  * Dimension Ids
4955
4939
  *
@@ -5660,7 +5644,7 @@ export type FiscalCalendarResponse = {
5660
5644
  /**
5661
5645
  * Blockers
5662
5646
  *
5663
- * Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed', 'pending_obligations'
5647
+ * Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed', 'pending_obligations', 'stranded_obligations'
5664
5648
  */
5665
5649
  blockers?: Array<string>;
5666
5650
  /**
@@ -5687,6 +5671,18 @@ export type FiscalCalendarResponse = {
5687
5671
  * Days the most recent sync is stale relative to the period to close. Populated only when `sync_stale` is in `blockers` and last_sync_at exists (null when there's a connection but no sync has ever run).
5688
5672
  */
5689
5673
  sync_stale_days?: number | null;
5674
+ /**
5675
+ * Stranded Obligation Count
5676
+ *
5677
+ * Matured schedule_entry_due events already at 'classified' with no drafted closing entry for their (schedule, period) — adjusting entries a close would silently omit. Resolve by running promote-obligations with dispatch_handlers=true (which reaches them) or voiding the obligation.
5678
+ */
5679
+ stranded_obligation_count?: number;
5680
+ /**
5681
+ * Stranded Obligation Sample
5682
+ *
5683
+ * Sample of up to 5 stranded obligations (schedule_id, schedule_name, period, event_id) ordered by occurred_at.
5684
+ */
5685
+ stranded_obligation_sample?: Array<PendingObligationDetailResponse>;
5690
5686
  /**
5691
5687
  * Last Close At
5692
5688
  */
@@ -6135,6 +6131,10 @@ export type GraphLimitsResponse = {
6135
6131
  * Knowledge-base document usage and tier cap (user graphs only)
6136
6132
  */
6137
6133
  documents?: DocumentLimits | null;
6134
+ /**
6135
+ * Subgraph count and tier cap (parent user graphs only)
6136
+ */
6137
+ subgraphs?: SubgraphLimits | null;
6138
6138
  /**
6139
6139
  * Per-operation materialization limits (if applicable)
6140
6140
  */
@@ -10713,86 +10713,6 @@ export type OperatorMetadataResponse = {
10713
10713
  */
10714
10714
  export type OperatorMode = 'quick' | 'standard' | 'extended' | 'streaming';
10715
10715
 
10716
- /**
10717
- * OperatorRecommendation
10718
- *
10719
- * Single operator recommendation.
10720
- */
10721
- export type OperatorRecommendation = {
10722
- /**
10723
- * Operator Type
10724
- *
10725
- * Operator type identifier
10726
- */
10727
- operator_type: string;
10728
- /**
10729
- * Operator Name
10730
- *
10731
- * Operator display name
10732
- */
10733
- operator_name: string;
10734
- /**
10735
- * Confidence
10736
- *
10737
- * Confidence score (0-1)
10738
- */
10739
- confidence: number;
10740
- /**
10741
- * Capabilities
10742
- *
10743
- * Operator capabilities
10744
- */
10745
- capabilities: Array<string>;
10746
- /**
10747
- * Reason
10748
- *
10749
- * Reason for recommendation
10750
- */
10751
- reason?: string | null;
10752
- };
10753
-
10754
- /**
10755
- * OperatorRecommendationRequest
10756
- *
10757
- * Request for operator recommendations.
10758
- */
10759
- export type OperatorRecommendationRequest = {
10760
- /**
10761
- * Query
10762
- *
10763
- * Query to analyze
10764
- */
10765
- query: string;
10766
- /**
10767
- * Context
10768
- *
10769
- * Additional context
10770
- */
10771
- context?: {
10772
- [key: string]: unknown;
10773
- } | null;
10774
- };
10775
-
10776
- /**
10777
- * OperatorRecommendationResponse
10778
- *
10779
- * Response for operator recommendations.
10780
- */
10781
- export type OperatorRecommendationResponse = {
10782
- /**
10783
- * Recommendations
10784
- *
10785
- * List of operator recommendations sorted by confidence
10786
- */
10787
- recommendations: Array<OperatorRecommendation>;
10788
- /**
10789
- * Query
10790
- *
10791
- * The analyzed query
10792
- */
10793
- query: string;
10794
- };
10795
-
10796
10716
  /**
10797
10717
  * OperatorRequest
10798
10718
  *
@@ -11998,7 +11918,9 @@ export type PreviewEventBlockResponse = {
11998
11918
  * Flips matured ``pending`` ``schedule_entry_due`` events (period boundary
11999
11919
  * passed) to ``classified``; with ``dispatch_handlers`` it also drafts the
12000
11920
  * closing entries in the same transaction (idempotent — reconciles to an
12001
- * existing draft).
11921
+ * existing draft). The sweep also reaches *stranded* obligations —
11922
+ * already ``classified`` (by an earlier flip-only sweep) but with no
11923
+ * closing entry ever drafted — dispatching them in the same pass.
12002
11924
  */
12003
11925
  export type PromoteObligationsRequest = {
12004
11926
  /**
@@ -12033,10 +11955,22 @@ export type PromoteObligationsResponse = {
12033
11955
  * Per-obligation handler errors (non-fatal).
12034
11956
  */
12035
11957
  error_count: number;
11958
+ /**
11959
+ * Stranded Count
11960
+ *
11961
+ * Matured obligations found already at 'classified' with no drafted closing entry. With dispatch_handlers=true they were drafted this run (included in dispatched_count); with dispatch_handlers=false they still have no draft — re-run with dispatch_handlers=true or void them.
11962
+ */
11963
+ stranded_count?: number;
12036
11964
  /**
12037
11965
  * Classified Event Ids
12038
11966
  */
12039
11967
  classified_event_ids?: Array<string>;
11968
+ /**
11969
+ * Stranded Event Ids
11970
+ *
11971
+ * Event ids of the stranded obligations found this sweep.
11972
+ */
11973
+ stranded_event_ids?: Array<string>;
12040
11974
  /**
12041
11975
  * Errors
12042
11976
  *
@@ -14245,53 +14179,39 @@ export type StructureUpdatePatch = {
14245
14179
  };
14246
14180
 
14247
14181
  /**
14248
- * SubgraphQuotaResponse
14182
+ * SubgraphLimits
14183
+ *
14184
+ * Subgraph count against the parent graph tier's cap.
14249
14185
  *
14250
- * Response model for subgraph quota information.
14186
+ * Subgraphs are refused at the tier cap regardless of how small they are,
14187
+ * so this is a count axis independent of the storage one — ``instance``
14188
+ * already itemizes their footprint.
14251
14189
  */
14252
- export type SubgraphQuotaResponse = {
14253
- /**
14254
- * Parent Graph Id
14255
- *
14256
- * Parent graph identifier
14257
- */
14258
- parent_graph_id: string;
14259
- /**
14260
- * Tier
14261
- *
14262
- * Graph tier
14263
- */
14264
- tier: string;
14190
+ export type SubgraphLimits = {
14265
14191
  /**
14266
14192
  * Current Count
14267
14193
  *
14268
- * Current number of subgraphs
14194
+ * Subgraphs currently provisioned under this graph
14269
14195
  */
14270
14196
  current_count: number;
14271
14197
  /**
14272
14198
  * Max Allowed
14273
14199
  *
14274
- * Maximum allowed subgraphs (None = unlimited)
14200
+ * Maximum subgraphs for this tier (null when uncapped)
14275
14201
  */
14276
14202
  max_allowed?: number | null;
14277
14203
  /**
14278
14204
  * Remaining
14279
14205
  *
14280
- * Remaining subgraphs that can be created
14206
+ * Subgraphs that can still be created (null when uncapped)
14281
14207
  */
14282
14208
  remaining?: number | null;
14283
14209
  /**
14284
- * Total Size Mb
14285
- *
14286
- * Total size of all subgraphs
14287
- */
14288
- total_size_mb?: number | null;
14289
- /**
14290
- * Max Size Mb
14210
+ * Approaching Limit
14291
14211
  *
14292
- * Maximum allowed total size
14212
+ * Whether approaching subgraph limit (>80%)
14293
14213
  */
14294
- max_size_mb?: number | null;
14214
+ approaching_limit: boolean;
14295
14215
  };
14296
14216
 
14297
14217
  /**
@@ -19457,118 +19377,6 @@ export type ExecuteSpecificOperatorResponses = {
19457
19377
 
19458
19378
  export type ExecuteSpecificOperatorResponse = ExecuteSpecificOperatorResponses[keyof ExecuteSpecificOperatorResponses];
19459
19379
 
19460
- export type BatchProcessQueriesData = {
19461
- body: BatchOperatorRequest;
19462
- path: {
19463
- /**
19464
- * Graph Id
19465
- */
19466
- graph_id: string;
19467
- };
19468
- query?: never;
19469
- url: '/v1/graphs/{graph_id}/operator/batch';
19470
- };
19471
-
19472
- export type BatchProcessQueriesErrors = {
19473
- /**
19474
- * Invalid request
19475
- */
19476
- 400: ErrorResponse;
19477
- /**
19478
- * Authentication required
19479
- */
19480
- 401: ErrorResponse;
19481
- /**
19482
- * Insufficient credits
19483
- */
19484
- 402: unknown;
19485
- /**
19486
- * Access denied
19487
- */
19488
- 403: ErrorResponse;
19489
- /**
19490
- * Resource not found
19491
- */
19492
- 404: ErrorResponse;
19493
- /**
19494
- * Validation Error
19495
- */
19496
- 422: HttpValidationError;
19497
- /**
19498
- * Rate limit exceeded
19499
- */
19500
- 429: ErrorResponse;
19501
- /**
19502
- * Internal server error
19503
- */
19504
- 500: ErrorResponse;
19505
- };
19506
-
19507
- export type BatchProcessQueriesError = BatchProcessQueriesErrors[keyof BatchProcessQueriesErrors];
19508
-
19509
- export type BatchProcessQueriesResponses = {
19510
- /**
19511
- * Successful Response
19512
- */
19513
- 200: BatchOperatorResponse;
19514
- };
19515
-
19516
- export type BatchProcessQueriesResponse = BatchProcessQueriesResponses[keyof BatchProcessQueriesResponses];
19517
-
19518
- export type RecommendOperatorData = {
19519
- body: OperatorRecommendationRequest;
19520
- path: {
19521
- /**
19522
- * Graph Id
19523
- */
19524
- graph_id: string;
19525
- };
19526
- query?: never;
19527
- url: '/v1/graphs/{graph_id}/operator/recommend';
19528
- };
19529
-
19530
- export type RecommendOperatorErrors = {
19531
- /**
19532
- * Invalid request
19533
- */
19534
- 400: ErrorResponse;
19535
- /**
19536
- * Authentication required
19537
- */
19538
- 401: ErrorResponse;
19539
- /**
19540
- * Access denied
19541
- */
19542
- 403: ErrorResponse;
19543
- /**
19544
- * Resource not found
19545
- */
19546
- 404: ErrorResponse;
19547
- /**
19548
- * Validation Error
19549
- */
19550
- 422: HttpValidationError;
19551
- /**
19552
- * Rate limit exceeded
19553
- */
19554
- 429: ErrorResponse;
19555
- /**
19556
- * Internal server error
19557
- */
19558
- 500: ErrorResponse;
19559
- };
19560
-
19561
- export type RecommendOperatorError = RecommendOperatorErrors[keyof RecommendOperatorErrors];
19562
-
19563
- export type RecommendOperatorResponses = {
19564
- /**
19565
- * Successful Response
19566
- */
19567
- 200: OperatorRecommendationResponse;
19568
- };
19569
-
19570
- export type RecommendOperatorResponse = RecommendOperatorResponses[keyof RecommendOperatorResponses];
19571
-
19572
19380
  export type ListMcpToolsData = {
19573
19381
  body?: never;
19574
19382
  path: {
@@ -20941,60 +20749,6 @@ export type GetSubgraphInfoResponses = {
20941
20749
 
20942
20750
  export type GetSubgraphInfoResponse = GetSubgraphInfoResponses[keyof GetSubgraphInfoResponses];
20943
20751
 
20944
- export type GetSubgraphQuotaData = {
20945
- body?: never;
20946
- path: {
20947
- /**
20948
- * Graph Id
20949
- */
20950
- graph_id: string;
20951
- };
20952
- query?: never;
20953
- url: '/v1/graphs/{graph_id}/subgraphs/quota';
20954
- };
20955
-
20956
- export type GetSubgraphQuotaErrors = {
20957
- /**
20958
- * Invalid request
20959
- */
20960
- 400: ErrorResponse;
20961
- /**
20962
- * Authentication required
20963
- */
20964
- 401: ErrorResponse;
20965
- /**
20966
- * Access denied
20967
- */
20968
- 403: ErrorResponse;
20969
- /**
20970
- * Resource not found
20971
- */
20972
- 404: ErrorResponse;
20973
- /**
20974
- * Validation Error
20975
- */
20976
- 422: HttpValidationError;
20977
- /**
20978
- * Rate limit exceeded
20979
- */
20980
- 429: ErrorResponse;
20981
- /**
20982
- * Internal server error
20983
- */
20984
- 500: ErrorResponse;
20985
- };
20986
-
20987
- export type GetSubgraphQuotaError = GetSubgraphQuotaErrors[keyof GetSubgraphQuotaErrors];
20988
-
20989
- export type GetSubgraphQuotaResponses = {
20990
- /**
20991
- * Successful Response
20992
- */
20993
- 200: SubgraphQuotaResponse;
20994
- };
20995
-
20996
- export type GetSubgraphQuotaResponse = GetSubgraphQuotaResponses[keyof GetSubgraphQuotaResponses];
20997
-
20998
20752
  export type GetGraphSubscriptionData = {
20999
20753
  body?: never;
21000
20754
  path: {