@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.d.ts CHANGED
@@ -636,6 +636,12 @@ export type BackfillPlanHistoryOperation = {
636
636
  * Override the sync-currency gate on each reclose. Historical months predate the last sync in the normal case, so this is rarely needed.
637
637
  */
638
638
  allow_stale_sync?: boolean;
639
+ /**
640
+ * Allow Stranded Obligations
641
+ *
642
+ * 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.
643
+ */
644
+ allow_stranded_obligations?: boolean;
639
645
  /**
640
646
  * Restamp
641
647
  *
@@ -961,50 +967,6 @@ export type BackupStatsResponse = {
961
967
  [key: string]: number;
962
968
  };
963
969
  };
964
- /**
965
- * BatchOperatorRequest
966
- *
967
- * Request for batch processing multiple queries.
968
- */
969
- export type BatchOperatorRequest = {
970
- /**
971
- * Queries
972
- *
973
- * List of queries to process (max 10)
974
- */
975
- queries: Array<OperatorRequest>;
976
- /**
977
- * Parallel
978
- *
979
- * Process queries in parallel
980
- */
981
- parallel?: boolean;
982
- };
983
- /**
984
- * BatchOperatorResponse
985
- *
986
- * Response for batch processing.
987
- */
988
- export type BatchOperatorResponse = {
989
- /**
990
- * Results
991
- *
992
- * List of operator responses (includes successes and failures)
993
- */
994
- results: Array<OperatorResponse>;
995
- /**
996
- * Total Execution Time
997
- *
998
- * Total execution time in seconds
999
- */
1000
- total_execution_time: number;
1001
- /**
1002
- * Parallel Processed
1003
- *
1004
- * Whether queries were processed in parallel
1005
- */
1006
- parallel_processed: boolean;
1007
- };
1008
970
  /**
1009
971
  * BillingCustomer
1010
972
  *
@@ -1490,6 +1452,12 @@ export type ClosePeriodOperation = {
1490
1452
  * Override the sync-currency gate. Only use when you have manually verified that the source data for the period is complete.
1491
1453
  */
1492
1454
  allow_stale_sync?: boolean;
1455
+ /**
1456
+ * Allow Stranded Obligations
1457
+ *
1458
+ * 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.
1459
+ */
1460
+ allow_stranded_obligations?: boolean;
1493
1461
  /**
1494
1462
  * Period
1495
1463
  *
@@ -1511,9 +1479,21 @@ export type ClosePeriodResponse = {
1511
1479
  /**
1512
1480
  * Entries Posted
1513
1481
  *
1514
- * Number of draft entries transitioned to posted
1482
+ * 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.
1515
1483
  */
1516
1484
  entries_posted?: number;
1485
+ /**
1486
+ * Entries Published To Qb
1487
+ *
1488
+ * Drafts published to QuickBooks by the close's pre-publish step (each is promoted to posted at publish time).
1489
+ */
1490
+ entries_published_to_qb?: number;
1491
+ /**
1492
+ * Entries Posted Locally
1493
+ *
1494
+ * Drafts posted by the local bulk transition (entries that don't publish to QuickBooks, e.g. native-only graphs or local-only sources).
1495
+ */
1496
+ entries_posted_locally?: number;
1517
1497
  /**
1518
1498
  * Target Auto Advanced
1519
1499
  *
@@ -4823,6 +4803,12 @@ export type EventBlockEnvelope = {
4823
4803
  metadata: {
4824
4804
  [key: string]: unknown;
4825
4805
  };
4806
+ /**
4807
+ * Is Reconciling Item
4808
+ *
4809
+ * 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`.
4810
+ */
4811
+ is_reconciling_item?: boolean;
4826
4812
  /**
4827
4813
  * Dimension Ids
4828
4814
  *
@@ -5519,7 +5505,7 @@ export type FiscalCalendarResponse = {
5519
5505
  /**
5520
5506
  * Blockers
5521
5507
  *
5522
- * Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed', 'pending_obligations'
5508
+ * Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed', 'pending_obligations', 'stranded_obligations'
5523
5509
  */
5524
5510
  blockers?: Array<string>;
5525
5511
  /**
@@ -5546,6 +5532,18 @@ export type FiscalCalendarResponse = {
5546
5532
  * 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).
5547
5533
  */
5548
5534
  sync_stale_days?: number | null;
5535
+ /**
5536
+ * Stranded Obligation Count
5537
+ *
5538
+ * 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.
5539
+ */
5540
+ stranded_obligation_count?: number;
5541
+ /**
5542
+ * Stranded Obligation Sample
5543
+ *
5544
+ * Sample of up to 5 stranded obligations (schedule_id, schedule_name, period, event_id) ordered by occurred_at.
5545
+ */
5546
+ stranded_obligation_sample?: Array<PendingObligationDetailResponse>;
5549
5547
  /**
5550
5548
  * Last Close At
5551
5549
  */
@@ -5985,6 +5983,10 @@ export type GraphLimitsResponse = {
5985
5983
  * Knowledge-base document usage and tier cap (user graphs only)
5986
5984
  */
5987
5985
  documents?: DocumentLimits | null;
5986
+ /**
5987
+ * Subgraph count and tier cap (parent user graphs only)
5988
+ */
5989
+ subgraphs?: SubgraphLimits | null;
5988
5990
  /**
5989
5991
  * Per-operation materialization limits (if applicable)
5990
5992
  */
@@ -10460,83 +10462,6 @@ export type OperatorMetadataResponse = {
10460
10462
  * Operator execution modes.
10461
10463
  */
10462
10464
  export type OperatorMode = 'quick' | 'standard' | 'extended' | 'streaming';
10463
- /**
10464
- * OperatorRecommendation
10465
- *
10466
- * Single operator recommendation.
10467
- */
10468
- export type OperatorRecommendation = {
10469
- /**
10470
- * Operator Type
10471
- *
10472
- * Operator type identifier
10473
- */
10474
- operator_type: string;
10475
- /**
10476
- * Operator Name
10477
- *
10478
- * Operator display name
10479
- */
10480
- operator_name: string;
10481
- /**
10482
- * Confidence
10483
- *
10484
- * Confidence score (0-1)
10485
- */
10486
- confidence: number;
10487
- /**
10488
- * Capabilities
10489
- *
10490
- * Operator capabilities
10491
- */
10492
- capabilities: Array<string>;
10493
- /**
10494
- * Reason
10495
- *
10496
- * Reason for recommendation
10497
- */
10498
- reason?: string | null;
10499
- };
10500
- /**
10501
- * OperatorRecommendationRequest
10502
- *
10503
- * Request for operator recommendations.
10504
- */
10505
- export type OperatorRecommendationRequest = {
10506
- /**
10507
- * Query
10508
- *
10509
- * Query to analyze
10510
- */
10511
- query: string;
10512
- /**
10513
- * Context
10514
- *
10515
- * Additional context
10516
- */
10517
- context?: {
10518
- [key: string]: unknown;
10519
- } | null;
10520
- };
10521
- /**
10522
- * OperatorRecommendationResponse
10523
- *
10524
- * Response for operator recommendations.
10525
- */
10526
- export type OperatorRecommendationResponse = {
10527
- /**
10528
- * Recommendations
10529
- *
10530
- * List of operator recommendations sorted by confidence
10531
- */
10532
- recommendations: Array<OperatorRecommendation>;
10533
- /**
10534
- * Query
10535
- *
10536
- * The analyzed query
10537
- */
10538
- query: string;
10539
- };
10540
10465
  /**
10541
10466
  * OperatorRequest
10542
10467
  *
@@ -11711,7 +11636,9 @@ export type PreviewEventBlockResponse = {
11711
11636
  * Flips matured ``pending`` ``schedule_entry_due`` events (period boundary
11712
11637
  * passed) to ``classified``; with ``dispatch_handlers`` it also drafts the
11713
11638
  * closing entries in the same transaction (idempotent — reconciles to an
11714
- * existing draft).
11639
+ * existing draft). The sweep also reaches *stranded* obligations —
11640
+ * already ``classified`` (by an earlier flip-only sweep) but with no
11641
+ * closing entry ever drafted — dispatching them in the same pass.
11715
11642
  */
11716
11643
  export type PromoteObligationsRequest = {
11717
11644
  /**
@@ -11745,10 +11672,22 @@ export type PromoteObligationsResponse = {
11745
11672
  * Per-obligation handler errors (non-fatal).
11746
11673
  */
11747
11674
  error_count: number;
11675
+ /**
11676
+ * Stranded Count
11677
+ *
11678
+ * 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.
11679
+ */
11680
+ stranded_count?: number;
11748
11681
  /**
11749
11682
  * Classified Event Ids
11750
11683
  */
11751
11684
  classified_event_ids?: Array<string>;
11685
+ /**
11686
+ * Stranded Event Ids
11687
+ *
11688
+ * Event ids of the stranded obligations found this sweep.
11689
+ */
11690
+ stranded_event_ids?: Array<string>;
11752
11691
  /**
11753
11692
  * Errors
11754
11693
  *
@@ -13895,53 +13834,39 @@ export type StructureUpdatePatch = {
13895
13834
  } | null;
13896
13835
  };
13897
13836
  /**
13898
- * SubgraphQuotaResponse
13837
+ * SubgraphLimits
13899
13838
  *
13900
- * Response model for subgraph quota information.
13839
+ * Subgraph count against the parent graph tier's cap.
13840
+ *
13841
+ * Subgraphs are refused at the tier cap regardless of how small they are,
13842
+ * so this is a count axis independent of the storage one — ``instance``
13843
+ * already itemizes their footprint.
13901
13844
  */
13902
- export type SubgraphQuotaResponse = {
13903
- /**
13904
- * Parent Graph Id
13905
- *
13906
- * Parent graph identifier
13907
- */
13908
- parent_graph_id: string;
13909
- /**
13910
- * Tier
13911
- *
13912
- * Graph tier
13913
- */
13914
- tier: string;
13845
+ export type SubgraphLimits = {
13915
13846
  /**
13916
13847
  * Current Count
13917
13848
  *
13918
- * Current number of subgraphs
13849
+ * Subgraphs currently provisioned under this graph
13919
13850
  */
13920
13851
  current_count: number;
13921
13852
  /**
13922
13853
  * Max Allowed
13923
13854
  *
13924
- * Maximum allowed subgraphs (None = unlimited)
13855
+ * Maximum subgraphs for this tier (null when uncapped)
13925
13856
  */
13926
13857
  max_allowed?: number | null;
13927
13858
  /**
13928
13859
  * Remaining
13929
13860
  *
13930
- * Remaining subgraphs that can be created
13861
+ * Subgraphs that can still be created (null when uncapped)
13931
13862
  */
13932
13863
  remaining?: number | null;
13933
13864
  /**
13934
- * Total Size Mb
13935
- *
13936
- * Total size of all subgraphs
13937
- */
13938
- total_size_mb?: number | null;
13939
- /**
13940
- * Max Size Mb
13865
+ * Approaching Limit
13941
13866
  *
13942
- * Maximum allowed total size
13867
+ * Whether approaching subgraph limit (>80%)
13943
13868
  */
13944
- max_size_mb?: number | null;
13869
+ approaching_limit: boolean;
13945
13870
  };
13946
13871
  /**
13947
13872
  * SubgraphResponse
@@ -18782,108 +18707,6 @@ export type ExecuteSpecificOperatorResponses = {
18782
18707
  202: unknown;
18783
18708
  };
18784
18709
  export type ExecuteSpecificOperatorResponse = ExecuteSpecificOperatorResponses[keyof ExecuteSpecificOperatorResponses];
18785
- export type BatchProcessQueriesData = {
18786
- body: BatchOperatorRequest;
18787
- path: {
18788
- /**
18789
- * Graph Id
18790
- */
18791
- graph_id: string;
18792
- };
18793
- query?: never;
18794
- url: '/v1/graphs/{graph_id}/operator/batch';
18795
- };
18796
- export type BatchProcessQueriesErrors = {
18797
- /**
18798
- * Invalid request
18799
- */
18800
- 400: ErrorResponse;
18801
- /**
18802
- * Authentication required
18803
- */
18804
- 401: ErrorResponse;
18805
- /**
18806
- * Insufficient credits
18807
- */
18808
- 402: unknown;
18809
- /**
18810
- * Access denied
18811
- */
18812
- 403: ErrorResponse;
18813
- /**
18814
- * Resource not found
18815
- */
18816
- 404: ErrorResponse;
18817
- /**
18818
- * Validation Error
18819
- */
18820
- 422: HttpValidationError;
18821
- /**
18822
- * Rate limit exceeded
18823
- */
18824
- 429: ErrorResponse;
18825
- /**
18826
- * Internal server error
18827
- */
18828
- 500: ErrorResponse;
18829
- };
18830
- export type BatchProcessQueriesError = BatchProcessQueriesErrors[keyof BatchProcessQueriesErrors];
18831
- export type BatchProcessQueriesResponses = {
18832
- /**
18833
- * Successful Response
18834
- */
18835
- 200: BatchOperatorResponse;
18836
- };
18837
- export type BatchProcessQueriesResponse = BatchProcessQueriesResponses[keyof BatchProcessQueriesResponses];
18838
- export type RecommendOperatorData = {
18839
- body: OperatorRecommendationRequest;
18840
- path: {
18841
- /**
18842
- * Graph Id
18843
- */
18844
- graph_id: string;
18845
- };
18846
- query?: never;
18847
- url: '/v1/graphs/{graph_id}/operator/recommend';
18848
- };
18849
- export type RecommendOperatorErrors = {
18850
- /**
18851
- * Invalid request
18852
- */
18853
- 400: ErrorResponse;
18854
- /**
18855
- * Authentication required
18856
- */
18857
- 401: ErrorResponse;
18858
- /**
18859
- * Access denied
18860
- */
18861
- 403: ErrorResponse;
18862
- /**
18863
- * Resource not found
18864
- */
18865
- 404: ErrorResponse;
18866
- /**
18867
- * Validation Error
18868
- */
18869
- 422: HttpValidationError;
18870
- /**
18871
- * Rate limit exceeded
18872
- */
18873
- 429: ErrorResponse;
18874
- /**
18875
- * Internal server error
18876
- */
18877
- 500: ErrorResponse;
18878
- };
18879
- export type RecommendOperatorError = RecommendOperatorErrors[keyof RecommendOperatorErrors];
18880
- export type RecommendOperatorResponses = {
18881
- /**
18882
- * Successful Response
18883
- */
18884
- 200: OperatorRecommendationResponse;
18885
- };
18886
- export type RecommendOperatorResponse = RecommendOperatorResponses[keyof RecommendOperatorResponses];
18887
18710
  export type ListMcpToolsData = {
18888
18711
  body?: never;
18889
18712
  path: {
@@ -20148,55 +19971,6 @@ export type GetSubgraphInfoResponses = {
20148
19971
  200: SubgraphResponse;
20149
19972
  };
20150
19973
  export type GetSubgraphInfoResponse = GetSubgraphInfoResponses[keyof GetSubgraphInfoResponses];
20151
- export type GetSubgraphQuotaData = {
20152
- body?: never;
20153
- path: {
20154
- /**
20155
- * Graph Id
20156
- */
20157
- graph_id: string;
20158
- };
20159
- query?: never;
20160
- url: '/v1/graphs/{graph_id}/subgraphs/quota';
20161
- };
20162
- export type GetSubgraphQuotaErrors = {
20163
- /**
20164
- * Invalid request
20165
- */
20166
- 400: ErrorResponse;
20167
- /**
20168
- * Authentication required
20169
- */
20170
- 401: ErrorResponse;
20171
- /**
20172
- * Access denied
20173
- */
20174
- 403: ErrorResponse;
20175
- /**
20176
- * Resource not found
20177
- */
20178
- 404: ErrorResponse;
20179
- /**
20180
- * Validation Error
20181
- */
20182
- 422: HttpValidationError;
20183
- /**
20184
- * Rate limit exceeded
20185
- */
20186
- 429: ErrorResponse;
20187
- /**
20188
- * Internal server error
20189
- */
20190
- 500: ErrorResponse;
20191
- };
20192
- export type GetSubgraphQuotaError = GetSubgraphQuotaErrors[keyof GetSubgraphQuotaErrors];
20193
- export type GetSubgraphQuotaResponses = {
20194
- /**
20195
- * Successful Response
20196
- */
20197
- 200: SubgraphQuotaResponse;
20198
- };
20199
- export type GetSubgraphQuotaResponse = GetSubgraphQuotaResponses[keyof GetSubgraphQuotaResponses];
20200
19974
  export type GetGraphSubscriptionData = {
20201
19975
  body?: never;
20202
19976
  path: {