@robosystems/client 2.2.2 → 2.2.3

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.
@@ -700,6 +700,12 @@ export type BackfillPlanHistoryOperation = {
700
700
  * Override the reconciling-item gate on each reclose. Only needed when an event inside the backfill window is still flagged as changed upstream and you have decided not to resolve it first.
701
701
  */
702
702
  allow_reconciling_items?: boolean;
703
+ /**
704
+ * Allow Unposted Source Events
705
+ *
706
+ * Override the unposted-source-event gate on each reclose. Only needed when a source event inside the backfill window was never committed and you have decided not to commit or void it first.
707
+ */
708
+ allow_unposted_source_events?: boolean;
703
709
  /**
704
710
  * Restamp
705
711
  *
@@ -1632,6 +1638,12 @@ export type ClosePeriodOperation = {
1632
1638
  * Override the reconciling-item gate — close even though posted events in the period are still flagged as changed in the source system, leaving those differences undecided. The next sync will still report them, and the statements stamped by this close may disagree with the source. Prefer resolve-reconciling-item on each first. The override is recorded in the close audit note.
1633
1639
  */
1634
1640
  allow_reconciling_items?: boolean;
1641
+ /**
1642
+ * Allow Unposted Source Events
1643
+ *
1644
+ * Override the unposted-source-event gate — close even though source events dated in the period (bank-feed lines, QuickBooks transactions whose automatic posting failed) were never committed. Once the period closes they cannot post into it, so the stamped statements leave them out. Prefer classifying and committing, or voiding, each first. The override is recorded in the close audit note.
1645
+ */
1646
+ allow_unposted_source_events?: boolean;
1635
1647
  /**
1636
1648
  * Period
1637
1649
  *
@@ -5550,7 +5562,7 @@ export type FactSetLite = {
5550
5562
  /**
5551
5563
  * Provenance
5552
5564
  *
5553
- * Typed `FactProvenance` descriptor (discriminated on `origin`: pivot | schedule | derived | asserted | document | forecast | filed) recording how this FactSet's facts were constructed. Surfaced as JSON, mirroring how mechanics is exposed. Null when the FactSet carries no descriptor.
5565
+ * Typed `FactProvenance` descriptor (discriminated on `origin`: pivot | schedule | derived | asserted | document | forecast | filed) recording how this FactSet was constructed. It describes the set, not each fact: a `pivot` set's mapped leaves aggregate posted line items, while its subtotals and derivations are computed from those leaves. Surfaced as JSON, mirroring how mechanics is exposed. Null when the FactSet carries no descriptor.
5554
5566
  */
5555
5567
  provenance?: {
5556
5568
  [key: string]: unknown;
@@ -5870,6 +5882,18 @@ export type FiscalCalendarResponse = {
5870
5882
  * Source identifiers (or event ids) of up to 5 unresolved reconciling items, so the blocker names what is holding the close.
5871
5883
  */
5872
5884
  reconciling_item_sample?: Array<string>;
5885
+ /**
5886
+ * Unposted Source Event Count
5887
+ *
5888
+ * Source events dated in this period that were never committed: bank-feed lines still captured or classified, and QuickBooks transactions whose automatic posting failed. Commit or void each, or close over them knowingly with allow_unposted_source_events.
5889
+ */
5890
+ unposted_source_event_count?: number;
5891
+ /**
5892
+ * Unposted Source Event Sample
5893
+ *
5894
+ * Source identifiers (or event ids) of up to 5 unposted source events, so the blocker names what is holding the close.
5895
+ */
5896
+ unposted_source_event_sample?: Array<string>;
5873
5897
  /**
5874
5898
  * Last Close At
5875
5899
  */
@@ -7381,7 +7405,7 @@ export type IngestFileOp = {
7381
7405
  /**
7382
7406
  * Ingest To Graph
7383
7407
  *
7384
- * Auto-materialize into the graph after DuckDB staging
7408
+ * Auto-materialize into the graph after DuckDB staging. Refused with 409 while another materialization of the graph is running.
7385
7409
  */
7386
7410
  ingest_to_graph?: boolean;
7387
7411
  };
@@ -8828,7 +8852,7 @@ export type MaterializeOp = {
8828
8852
  /**
8829
8853
  * Rebuild
8830
8854
  *
8831
- * Rebuild the graph from scratch, dropping existing data. Required (staged source) when materializing new uploads into a graph that already contains materialized data — staging replays all uploaded files, so a non-rebuild pass would re-copy ingested rows (409).
8855
+ * Rebuild the graph from scratch, dropping existing data. Required (staged source) when materializing new uploads into a graph that already contains materialized data — staging replays all uploaded files, so a non-rebuild pass would re-copy ingested rows (409). An extensions source always rebuilds a graph that already exists: the new copy is built alongside and swapped in, regardless of this flag.
8832
8856
  */
8833
8857
  rebuild?: boolean;
8834
8858
  /**
@@ -9114,6 +9138,124 @@ export type MfaVerifyRequest = {
9114
9138
  */
9115
9139
  recovery_code?: string | null;
9116
9140
  };
9141
+ /**
9142
+ * MutationAuditEntry
9143
+ *
9144
+ * One mutating call on the graph.
9145
+ */
9146
+ export type MutationAuditEntry = {
9147
+ /**
9148
+ * Id
9149
+ *
9150
+ * Audit entry identifier
9151
+ */
9152
+ id: string;
9153
+ /**
9154
+ * Occurred At
9155
+ *
9156
+ * When the call finished
9157
+ */
9158
+ occurred_at: string;
9159
+ /**
9160
+ * Surface
9161
+ *
9162
+ * Where the call came from: 'api' for a REST operation, 'mcp' for an external MCP client, 'operator' for an in-app AI operator run such as the console's /do
9163
+ */
9164
+ surface: 'api' | 'mcp' | 'operator';
9165
+ /**
9166
+ * Operation Name
9167
+ *
9168
+ * The operation or MCP tool that ran
9169
+ */
9170
+ operation_name: string;
9171
+ /**
9172
+ * Status
9173
+ *
9174
+ * Whether the call succeeded; a failed call changed nothing it reports
9175
+ */
9176
+ status: 'completed' | 'failed';
9177
+ /**
9178
+ * Error Code
9179
+ *
9180
+ * Why a failed call failed
9181
+ */
9182
+ error_code?: string | null;
9183
+ /**
9184
+ * Duration Ms
9185
+ *
9186
+ * How long the call took
9187
+ */
9188
+ duration_ms: number;
9189
+ /**
9190
+ * User Id
9191
+ *
9192
+ * The user the call ran as
9193
+ */
9194
+ user_id?: string | null;
9195
+ /**
9196
+ * Auth Method
9197
+ *
9198
+ * How the caller authenticated, for example 'api_key' or 'oauth'
9199
+ */
9200
+ auth_method?: string | null;
9201
+ /**
9202
+ * Api Key Prefix
9203
+ *
9204
+ * The first characters of the API key used, when one was
9205
+ */
9206
+ api_key_prefix?: string | null;
9207
+ /**
9208
+ * Request Id
9209
+ *
9210
+ * The HTTP request that made the call
9211
+ */
9212
+ request_id?: string | null;
9213
+ /**
9214
+ * Operation Id
9215
+ *
9216
+ * The REST operation's envelope id, or the operator run's operation id: every write an operator run makes shares it
9217
+ */
9218
+ operation_id?: string | null;
9219
+ /**
9220
+ * Operator Type
9221
+ *
9222
+ * The operator that made the call, for surface 'operator'
9223
+ */
9224
+ operator_type?: string | null;
9225
+ /**
9226
+ * Arguments Fingerprint
9227
+ *
9228
+ * SHA-256 of the call's arguments. The arguments themselves are not stored
9229
+ */
9230
+ arguments_fingerprint?: string | null;
9231
+ /**
9232
+ * Object Ids
9233
+ *
9234
+ * Identifiers of the objects the call touched
9235
+ */
9236
+ object_ids?: Array<string>;
9237
+ };
9238
+ /**
9239
+ * MutationAuditListResponse
9240
+ *
9241
+ * A page of the graph's mutation audit, newest first.
9242
+ */
9243
+ export type MutationAuditListResponse = {
9244
+ /**
9245
+ * Graph Id
9246
+ */
9247
+ graph_id: string;
9248
+ /**
9249
+ * Entries
9250
+ */
9251
+ entries: Array<MutationAuditEntry>;
9252
+ /**
9253
+ * Next Cursor
9254
+ *
9255
+ * Pass as `cursor` for the next, older page; null on the last page
9256
+ */
9257
+ next_cursor?: string | null;
9258
+ };
9117
9259
  /**
9118
9260
  * OAuthCallbackRequest
9119
9261
  *
@@ -22269,6 +22411,106 @@ export type UpdateGraphMemberRoleResponses = {
22269
22411
  200: GraphMemberResponse;
22270
22412
  };
22271
22413
  export type UpdateGraphMemberRoleResponse = UpdateGraphMemberRoleResponses[keyof UpdateGraphMemberRoleResponses];
22414
+ export type ListGraphMutationsData = {
22415
+ body?: never;
22416
+ path: {
22417
+ /**
22418
+ * Graph Id
22419
+ *
22420
+ * Graph identifier
22421
+ */
22422
+ graph_id: string;
22423
+ };
22424
+ query?: {
22425
+ /**
22426
+ * Surface
22427
+ *
22428
+ * Only calls from this surface
22429
+ */
22430
+ surface?: 'api' | 'mcp' | 'operator' | null;
22431
+ /**
22432
+ * Operation Name
22433
+ *
22434
+ * Only this operation or MCP tool
22435
+ */
22436
+ operation_name?: string | null;
22437
+ /**
22438
+ * User Id
22439
+ *
22440
+ * Only calls made as this user
22441
+ */
22442
+ user_id?: string | null;
22443
+ /**
22444
+ * Operation Id
22445
+ *
22446
+ * Only calls from this REST operation or operator run
22447
+ */
22448
+ operation_id?: string | null;
22449
+ /**
22450
+ * Since
22451
+ *
22452
+ * Only calls at or after this time
22453
+ */
22454
+ since?: string | null;
22455
+ /**
22456
+ * Until
22457
+ *
22458
+ * Only calls before this time
22459
+ */
22460
+ until?: string | null;
22461
+ /**
22462
+ * Cursor
22463
+ *
22464
+ * The `next_cursor` of the previous page
22465
+ */
22466
+ cursor?: string | null;
22467
+ /**
22468
+ * Limit
22469
+ *
22470
+ * Entries per page
22471
+ */
22472
+ limit?: number;
22473
+ };
22474
+ url: '/v1/graphs/{graph_id}/audit/mutations';
22475
+ };
22476
+ export type ListGraphMutationsErrors = {
22477
+ /**
22478
+ * Invalid request
22479
+ */
22480
+ 400: ErrorResponse;
22481
+ /**
22482
+ * Authentication required
22483
+ */
22484
+ 401: ErrorResponse;
22485
+ /**
22486
+ * Access denied
22487
+ */
22488
+ 403: ErrorResponse;
22489
+ /**
22490
+ * Resource not found
22491
+ */
22492
+ 404: ErrorResponse;
22493
+ /**
22494
+ * Validation Error
22495
+ */
22496
+ 422: HttpValidationError;
22497
+ /**
22498
+ * Rate limit exceeded
22499
+ */
22500
+ 429: ErrorResponse;
22501
+ /**
22502
+ * Internal server error
22503
+ */
22504
+ 500: ErrorResponse;
22505
+ };
22506
+ export type ListGraphMutationsError = ListGraphMutationsErrors[keyof ListGraphMutationsErrors];
22507
+ export type ListGraphMutationsResponses = {
22508
+ /**
22509
+ * Successful Response
22510
+ */
22511
+ 200: MutationAuditListResponse;
22512
+ };
22513
+ export type ListGraphMutationsResponse = ListGraphMutationsResponses[keyof ListGraphMutationsResponses];
22272
22514
  export type ListSubgraphsData = {
22273
22515
  body?: never;
22274
22516
  path: {
package/sdk/types.gen.ts CHANGED
@@ -722,6 +722,12 @@ export type BackfillPlanHistoryOperation = {
722
722
  * Override the reconciling-item gate on each reclose. Only needed when an event inside the backfill window is still flagged as changed upstream and you have decided not to resolve it first.
723
723
  */
724
724
  allow_reconciling_items?: boolean;
725
+ /**
726
+ * Allow Unposted Source Events
727
+ *
728
+ * Override the unposted-source-event gate on each reclose. Only needed when a source event inside the backfill window was never committed and you have decided not to commit or void it first.
729
+ */
730
+ allow_unposted_source_events?: boolean;
725
731
  /**
726
732
  * Restamp
727
733
  *
@@ -1679,6 +1685,12 @@ export type ClosePeriodOperation = {
1679
1685
  * Override the reconciling-item gate — close even though posted events in the period are still flagged as changed in the source system, leaving those differences undecided. The next sync will still report them, and the statements stamped by this close may disagree with the source. Prefer resolve-reconciling-item on each first. The override is recorded in the close audit note.
1680
1686
  */
1681
1687
  allow_reconciling_items?: boolean;
1688
+ /**
1689
+ * Allow Unposted Source Events
1690
+ *
1691
+ * Override the unposted-source-event gate — close even though source events dated in the period (bank-feed lines, QuickBooks transactions whose automatic posting failed) were never committed. Once the period closes they cannot post into it, so the stamped statements leave them out. Prefer classifying and committing, or voiding, each first. The override is recorded in the close audit note.
1692
+ */
1693
+ allow_unposted_source_events?: boolean;
1682
1694
  /**
1683
1695
  * Period
1684
1696
  *
@@ -5689,7 +5701,7 @@ export type FactSetLite = {
5689
5701
  /**
5690
5702
  * Provenance
5691
5703
  *
5692
- * Typed `FactProvenance` descriptor (discriminated on `origin`: pivot | schedule | derived | asserted | document | forecast | filed) recording how this FactSet's facts were constructed. Surfaced as JSON, mirroring how mechanics is exposed. Null when the FactSet carries no descriptor.
5704
+ * Typed `FactProvenance` descriptor (discriminated on `origin`: pivot | schedule | derived | asserted | document | forecast | filed) recording how this FactSet was constructed. It describes the set, not each fact: a `pivot` set's mapped leaves aggregate posted line items, while its subtotals and derivations are computed from those leaves. Surfaced as JSON, mirroring how mechanics is exposed. Null when the FactSet carries no descriptor.
5693
5705
  */
5694
5706
  provenance?: {
5695
5707
  [key: string]: unknown;
@@ -6016,6 +6028,18 @@ export type FiscalCalendarResponse = {
6016
6028
  * Source identifiers (or event ids) of up to 5 unresolved reconciling items, so the blocker names what is holding the close.
6017
6029
  */
6018
6030
  reconciling_item_sample?: Array<string>;
6031
+ /**
6032
+ * Unposted Source Event Count
6033
+ *
6034
+ * Source events dated in this period that were never committed: bank-feed lines still captured or classified, and QuickBooks transactions whose automatic posting failed. Commit or void each, or close over them knowingly with allow_unposted_source_events.
6035
+ */
6036
+ unposted_source_event_count?: number;
6037
+ /**
6038
+ * Unposted Source Event Sample
6039
+ *
6040
+ * Source identifiers (or event ids) of up to 5 unposted source events, so the blocker names what is holding the close.
6041
+ */
6042
+ unposted_source_event_sample?: Array<string>;
6019
6043
  /**
6020
6044
  * Last Close At
6021
6045
  */
@@ -7559,7 +7583,7 @@ export type IngestFileOp = {
7559
7583
  /**
7560
7584
  * Ingest To Graph
7561
7585
  *
7562
- * Auto-materialize into the graph after DuckDB staging
7586
+ * Auto-materialize into the graph after DuckDB staging. Refused with 409 while another materialization of the graph is running.
7563
7587
  */
7564
7588
  ingest_to_graph?: boolean;
7565
7589
  };
@@ -9036,7 +9060,7 @@ export type MaterializeOp = {
9036
9060
  /**
9037
9061
  * Rebuild
9038
9062
  *
9039
- * Rebuild the graph from scratch, dropping existing data. Required (staged source) when materializing new uploads into a graph that already contains materialized data — staging replays all uploaded files, so a non-rebuild pass would re-copy ingested rows (409).
9063
+ * Rebuild the graph from scratch, dropping existing data. Required (staged source) when materializing new uploads into a graph that already contains materialized data — staging replays all uploaded files, so a non-rebuild pass would re-copy ingested rows (409). An extensions source always rebuilds a graph that already exists: the new copy is built alongside and swapped in, regardless of this flag.
9040
9064
  */
9041
9065
  rebuild?: boolean;
9042
9066
  /**
@@ -9332,6 +9356,126 @@ export type MfaVerifyRequest = {
9332
9356
  recovery_code?: string | null;
9333
9357
  };
9334
9358
 
9359
+ /**
9360
+ * MutationAuditEntry
9361
+ *
9362
+ * One mutating call on the graph.
9363
+ */
9364
+ export type MutationAuditEntry = {
9365
+ /**
9366
+ * Id
9367
+ *
9368
+ * Audit entry identifier
9369
+ */
9370
+ id: string;
9371
+ /**
9372
+ * Occurred At
9373
+ *
9374
+ * When the call finished
9375
+ */
9376
+ occurred_at: string;
9377
+ /**
9378
+ * Surface
9379
+ *
9380
+ * Where the call came from: 'api' for a REST operation, 'mcp' for an external MCP client, 'operator' for an in-app AI operator run such as the console's /do
9381
+ */
9382
+ surface: 'api' | 'mcp' | 'operator';
9383
+ /**
9384
+ * Operation Name
9385
+ *
9386
+ * The operation or MCP tool that ran
9387
+ */
9388
+ operation_name: string;
9389
+ /**
9390
+ * Status
9391
+ *
9392
+ * Whether the call succeeded; a failed call changed nothing it reports
9393
+ */
9394
+ status: 'completed' | 'failed';
9395
+ /**
9396
+ * Error Code
9397
+ *
9398
+ * Why a failed call failed
9399
+ */
9400
+ error_code?: string | null;
9401
+ /**
9402
+ * Duration Ms
9403
+ *
9404
+ * How long the call took
9405
+ */
9406
+ duration_ms: number;
9407
+ /**
9408
+ * User Id
9409
+ *
9410
+ * The user the call ran as
9411
+ */
9412
+ user_id?: string | null;
9413
+ /**
9414
+ * Auth Method
9415
+ *
9416
+ * How the caller authenticated, for example 'api_key' or 'oauth'
9417
+ */
9418
+ auth_method?: string | null;
9419
+ /**
9420
+ * Api Key Prefix
9421
+ *
9422
+ * The first characters of the API key used, when one was
9423
+ */
9424
+ api_key_prefix?: string | null;
9425
+ /**
9426
+ * Request Id
9427
+ *
9428
+ * The HTTP request that made the call
9429
+ */
9430
+ request_id?: string | null;
9431
+ /**
9432
+ * Operation Id
9433
+ *
9434
+ * The REST operation's envelope id, or the operator run's operation id: every write an operator run makes shares it
9435
+ */
9436
+ operation_id?: string | null;
9437
+ /**
9438
+ * Operator Type
9439
+ *
9440
+ * The operator that made the call, for surface 'operator'
9441
+ */
9442
+ operator_type?: string | null;
9443
+ /**
9444
+ * Arguments Fingerprint
9445
+ *
9446
+ * SHA-256 of the call's arguments. The arguments themselves are not stored
9447
+ */
9448
+ arguments_fingerprint?: string | null;
9449
+ /**
9450
+ * Object Ids
9451
+ *
9452
+ * Identifiers of the objects the call touched
9453
+ */
9454
+ object_ids?: Array<string>;
9455
+ };
9456
+
9457
+ /**
9458
+ * MutationAuditListResponse
9459
+ *
9460
+ * A page of the graph's mutation audit, newest first.
9461
+ */
9462
+ export type MutationAuditListResponse = {
9463
+ /**
9464
+ * Graph Id
9465
+ */
9466
+ graph_id: string;
9467
+ /**
9468
+ * Entries
9469
+ */
9470
+ entries: Array<MutationAuditEntry>;
9471
+ /**
9472
+ * Next Cursor
9473
+ *
9474
+ * Pass as `cursor` for the next, older page; null on the last page
9475
+ */
9476
+ next_cursor?: string | null;
9477
+ };
9478
+
9335
9479
  /**
9336
9480
  * OAuthCallbackRequest
9337
9481
  *
@@ -23149,6 +23293,111 @@ export type UpdateGraphMemberRoleResponses = {
23149
23293
 
23150
23294
  export type UpdateGraphMemberRoleResponse = UpdateGraphMemberRoleResponses[keyof UpdateGraphMemberRoleResponses];
23151
23295
 
23296
+ export type ListGraphMutationsData = {
23297
+ body?: never;
23298
+ path: {
23299
+ /**
23300
+ * Graph Id
23301
+ *
23302
+ * Graph identifier
23303
+ */
23304
+ graph_id: string;
23305
+ };
23306
+ query?: {
23307
+ /**
23308
+ * Surface
23309
+ *
23310
+ * Only calls from this surface
23311
+ */
23312
+ surface?: 'api' | 'mcp' | 'operator' | null;
23313
+ /**
23314
+ * Operation Name
23315
+ *
23316
+ * Only this operation or MCP tool
23317
+ */
23318
+ operation_name?: string | null;
23319
+ /**
23320
+ * User Id
23321
+ *
23322
+ * Only calls made as this user
23323
+ */
23324
+ user_id?: string | null;
23325
+ /**
23326
+ * Operation Id
23327
+ *
23328
+ * Only calls from this REST operation or operator run
23329
+ */
23330
+ operation_id?: string | null;
23331
+ /**
23332
+ * Since
23333
+ *
23334
+ * Only calls at or after this time
23335
+ */
23336
+ since?: string | null;
23337
+ /**
23338
+ * Until
23339
+ *
23340
+ * Only calls before this time
23341
+ */
23342
+ until?: string | null;
23343
+ /**
23344
+ * Cursor
23345
+ *
23346
+ * The `next_cursor` of the previous page
23347
+ */
23348
+ cursor?: string | null;
23349
+ /**
23350
+ * Limit
23351
+ *
23352
+ * Entries per page
23353
+ */
23354
+ limit?: number;
23355
+ };
23356
+ url: '/v1/graphs/{graph_id}/audit/mutations';
23357
+ };
23358
+
23359
+ export type ListGraphMutationsErrors = {
23360
+ /**
23361
+ * Invalid request
23362
+ */
23363
+ 400: ErrorResponse;
23364
+ /**
23365
+ * Authentication required
23366
+ */
23367
+ 401: ErrorResponse;
23368
+ /**
23369
+ * Access denied
23370
+ */
23371
+ 403: ErrorResponse;
23372
+ /**
23373
+ * Resource not found
23374
+ */
23375
+ 404: ErrorResponse;
23376
+ /**
23377
+ * Validation Error
23378
+ */
23379
+ 422: HttpValidationError;
23380
+ /**
23381
+ * Rate limit exceeded
23382
+ */
23383
+ 429: ErrorResponse;
23384
+ /**
23385
+ * Internal server error
23386
+ */
23387
+ 500: ErrorResponse;
23388
+ };
23389
+
23390
+ export type ListGraphMutationsError = ListGraphMutationsErrors[keyof ListGraphMutationsErrors];
23391
+
23392
+ export type ListGraphMutationsResponses = {
23393
+ /**
23394
+ * Successful Response
23395
+ */
23396
+ 200: MutationAuditListResponse;
23397
+ };
23398
+
23399
+ export type ListGraphMutationsResponse = ListGraphMutationsResponses[keyof ListGraphMutationsResponses];
23400
+
23152
23401
  export type ListSubgraphsData = {
23153
23402
  body?: never;
23154
23403
  path: {