@robosystems/client 0.3.37 → 0.3.39
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/artifacts/LibraryClient.d.ts +18 -1
- package/artifacts/LibraryClient.js +16 -0
- package/artifacts/LibraryClient.ts +38 -0
- package/artifacts/graphql/generated/graphql.d.ts +62 -5
- package/artifacts/graphql/generated/graphql.js +132 -2
- package/artifacts/graphql/generated/graphql.ts +194 -5
- package/artifacts/graphql/queries/ledger/periodDrafts.d.ts +6 -0
- package/artifacts/graphql/queries/ledger/periodDrafts.js +11 -0
- package/artifacts/graphql/queries/ledger/periodDrafts.ts +11 -0
- package/artifacts/graphql/queries/library/arcs.js +11 -1
- package/artifacts/graphql/queries/library/arcs.ts +11 -1
- package/artifacts/graphql/queries/library/structures.d.ts +19 -0
- package/artifacts/graphql/queries/library/structures.js +45 -0
- package/artifacts/graphql/queries/library/structures.ts +44 -0
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +4 -2
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +15 -1
- package/sdk/sdk.gen.js +36 -4
- package/sdk/sdk.gen.ts +33 -1
- package/sdk/types.gen.d.ts +250 -4
- package/sdk/types.gen.ts +264 -4
- package/sdk.gen.d.ts +15 -1
- package/sdk.gen.js +36 -4
- package/sdk.gen.ts +33 -1
- package/types.gen.d.ts +250 -4
- package/types.gen.ts +264 -4
package/types.gen.d.ts
CHANGED
|
@@ -1153,6 +1153,12 @@ export type ConnectionResponse = {
|
|
|
1153
1153
|
* Last sync timestamp
|
|
1154
1154
|
*/
|
|
1155
1155
|
last_sync?: string | null;
|
|
1156
|
+
/**
|
|
1157
|
+
* Write Policy
|
|
1158
|
+
*
|
|
1159
|
+
* Source-of-truth write policy: 'native' (RoboSystems is authoritative; no outbound write-back) or 'qb_authoritative' (QuickBooks is authoritative; RoboSystems-originated entries publish to QB). Set via the write-policy endpoint.
|
|
1160
|
+
*/
|
|
1161
|
+
write_policy?: string | null;
|
|
1156
1162
|
/**
|
|
1157
1163
|
* Metadata
|
|
1158
1164
|
*
|
|
@@ -1485,7 +1491,7 @@ export type CreateEventBlockRequest = {
|
|
|
1485
1491
|
/**
|
|
1486
1492
|
* Source
|
|
1487
1493
|
*
|
|
1488
|
-
* '
|
|
1494
|
+
* 'manual' | 'system' | 'schedule' | 'quickbooks' | 'xero' | 'plaid'
|
|
1489
1495
|
*/
|
|
1490
1496
|
source: string;
|
|
1491
1497
|
/**
|
|
@@ -3830,7 +3836,7 @@ export type EventBlockEnvelope = {
|
|
|
3830
3836
|
/**
|
|
3831
3837
|
* Source
|
|
3832
3838
|
*
|
|
3833
|
-
* Capture source (`
|
|
3839
|
+
* Capture source (`manual`, `system`, `schedule`, `quickbooks`, `xero`, `plaid`). Used for adapter routing.
|
|
3834
3840
|
*/
|
|
3835
3841
|
source: string;
|
|
3836
3842
|
/**
|
|
@@ -7750,6 +7756,51 @@ export type OperationEnvelopePreviewEventBlockResponse = {
|
|
|
7750
7756
|
*/
|
|
7751
7757
|
idempotentReplay?: boolean;
|
|
7752
7758
|
};
|
|
7759
|
+
/**
|
|
7760
|
+
* OperationEnvelope[PromoteObligationsResponse]
|
|
7761
|
+
*/
|
|
7762
|
+
export type OperationEnvelopePromoteObligationsResponse = {
|
|
7763
|
+
/**
|
|
7764
|
+
* Operation
|
|
7765
|
+
*
|
|
7766
|
+
* Kebab-case operation name
|
|
7767
|
+
*/
|
|
7768
|
+
operation: string;
|
|
7769
|
+
/**
|
|
7770
|
+
* Operationid
|
|
7771
|
+
*
|
|
7772
|
+
* op_-prefixed ULID for audit and SSE correlation
|
|
7773
|
+
*/
|
|
7774
|
+
operationId: string;
|
|
7775
|
+
/**
|
|
7776
|
+
* Status
|
|
7777
|
+
*
|
|
7778
|
+
* Operation lifecycle state
|
|
7779
|
+
*/
|
|
7780
|
+
status: 'completed' | 'pending' | 'failed';
|
|
7781
|
+
/**
|
|
7782
|
+
* Command-specific result payload
|
|
7783
|
+
*/
|
|
7784
|
+
result?: PromoteObligationsResponse | null;
|
|
7785
|
+
/**
|
|
7786
|
+
* At
|
|
7787
|
+
*
|
|
7788
|
+
* ISO-8601 UTC timestamp
|
|
7789
|
+
*/
|
|
7790
|
+
at: string;
|
|
7791
|
+
/**
|
|
7792
|
+
* Createdby
|
|
7793
|
+
*
|
|
7794
|
+
* User ID that initiated the operation (null for legacy callers)
|
|
7795
|
+
*/
|
|
7796
|
+
createdBy?: string | null;
|
|
7797
|
+
/**
|
|
7798
|
+
* Idempotentreplay
|
|
7799
|
+
*
|
|
7800
|
+
* True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
|
|
7801
|
+
*/
|
|
7802
|
+
idempotentReplay?: boolean;
|
|
7803
|
+
};
|
|
7753
7804
|
/**
|
|
7754
7805
|
* OperationEnvelope[PublishListResponse]
|
|
7755
7806
|
*/
|
|
@@ -9307,6 +9358,65 @@ export type PreviewEventBlockResponse = {
|
|
|
9307
9358
|
[key: string]: unknown;
|
|
9308
9359
|
};
|
|
9309
9360
|
};
|
|
9361
|
+
/**
|
|
9362
|
+
* PromoteObligationsRequest
|
|
9363
|
+
*
|
|
9364
|
+
* On-demand trigger for the obligation-promotion sweep.
|
|
9365
|
+
*
|
|
9366
|
+
* Mirrors what the ``scheduled_obligation_promoter`` Dagster sensor does
|
|
9367
|
+
* on its tick, but lets an interactive caller or an MCP close co-pilot
|
|
9368
|
+
* run it now instead of waiting for the background cadence — required to
|
|
9369
|
+
* drive a schedule-driven close to completion in a single session.
|
|
9370
|
+
* Flips matured ``pending`` ``schedule_entry_due`` events (period boundary
|
|
9371
|
+
* passed) to ``classified``; with ``dispatch_handlers`` it also drafts the
|
|
9372
|
+
* closing entries in the same transaction (idempotent — reconciles to an
|
|
9373
|
+
* existing draft).
|
|
9374
|
+
*/
|
|
9375
|
+
export type PromoteObligationsRequest = {
|
|
9376
|
+
/**
|
|
9377
|
+
* Dispatch Handlers
|
|
9378
|
+
*
|
|
9379
|
+
* When True (default), also fire the schedule_entry_due handler for each promoted obligation so the draft closing entry materializes immediately (autopilot). When False, flip status only (co-pilot) — the draft is created separately.
|
|
9380
|
+
*/
|
|
9381
|
+
dispatch_handlers?: boolean;
|
|
9382
|
+
};
|
|
9383
|
+
/**
|
|
9384
|
+
* PromoteObligationsResponse
|
|
9385
|
+
*
|
|
9386
|
+
* Counts from a single on-demand promotion sweep.
|
|
9387
|
+
*/
|
|
9388
|
+
export type PromoteObligationsResponse = {
|
|
9389
|
+
/**
|
|
9390
|
+
* Classified Count
|
|
9391
|
+
*
|
|
9392
|
+
* Matured obligations flipped pending → classified.
|
|
9393
|
+
*/
|
|
9394
|
+
classified_count: number;
|
|
9395
|
+
/**
|
|
9396
|
+
* Dispatched Count
|
|
9397
|
+
*
|
|
9398
|
+
* Obligations whose closing entry was drafted this run.
|
|
9399
|
+
*/
|
|
9400
|
+
dispatched_count: number;
|
|
9401
|
+
/**
|
|
9402
|
+
* Error Count
|
|
9403
|
+
*
|
|
9404
|
+
* Per-obligation handler errors (non-fatal).
|
|
9405
|
+
*/
|
|
9406
|
+
error_count: number;
|
|
9407
|
+
/**
|
|
9408
|
+
* Classified Event Ids
|
|
9409
|
+
*/
|
|
9410
|
+
classified_event_ids?: Array<string>;
|
|
9411
|
+
/**
|
|
9412
|
+
* Errors
|
|
9413
|
+
*
|
|
9414
|
+
* Per-obligation errors as {event_id, error}; the sweep continues past them.
|
|
9415
|
+
*/
|
|
9416
|
+
errors?: Array<{
|
|
9417
|
+
[key: string]: string;
|
|
9418
|
+
}>;
|
|
9419
|
+
};
|
|
9310
9420
|
/**
|
|
9311
9421
|
* PublishListMemberResponse
|
|
9312
9422
|
*
|
|
@@ -10132,9 +10242,15 @@ export type RuleVariableLite = {
|
|
|
10132
10242
|
/**
|
|
10133
10243
|
* Variable Qname
|
|
10134
10244
|
*
|
|
10135
|
-
* Concept qname the variable resolves to, e.g. 'fac:Assets'.
|
|
10245
|
+
* Concept qname the variable resolves to, e.g. 'fac:Assets'. Null for tenant CoA elements (which key on `code`/`element_id`, not qname) — in that case the binding is carried by `variable_element_id`.
|
|
10246
|
+
*/
|
|
10247
|
+
variable_qname?: string | null;
|
|
10248
|
+
/**
|
|
10249
|
+
* Variable Element Id
|
|
10250
|
+
*
|
|
10251
|
+
* Element id the variable binds to directly. Set for schedule SumEquals rules over CoA-debit elements that have no qname; null otherwise.
|
|
10136
10252
|
*/
|
|
10137
|
-
|
|
10253
|
+
variable_element_id?: string | null;
|
|
10138
10254
|
};
|
|
10139
10255
|
/**
|
|
10140
10256
|
* SECConnectionConfig
|
|
@@ -10882,6 +10998,22 @@ export type SetCloseTargetOperation = {
|
|
|
10882
10998
|
*/
|
|
10883
10999
|
note?: string | null;
|
|
10884
11000
|
};
|
|
11001
|
+
/**
|
|
11002
|
+
* SetWritePolicyRequest
|
|
11003
|
+
*
|
|
11004
|
+
* Request to set a connection's source-of-truth write policy.
|
|
11005
|
+
*
|
|
11006
|
+
* The explicit operator opt-in for outbound write-back. `hybrid` is omitted
|
|
11007
|
+
* until its code path ships.
|
|
11008
|
+
*/
|
|
11009
|
+
export type SetWritePolicyRequest = {
|
|
11010
|
+
/**
|
|
11011
|
+
* Write Policy
|
|
11012
|
+
*
|
|
11013
|
+
* 'native' = RoboSystems authoritative, no write-back; 'qb_authoritative' = QuickBooks authoritative, entries publish to QB.
|
|
11014
|
+
*/
|
|
11015
|
+
write_policy: 'native' | 'qb_authoritative';
|
|
11016
|
+
};
|
|
10885
11017
|
/**
|
|
10886
11018
|
* ShareReportOperation
|
|
10887
11019
|
*
|
|
@@ -15322,6 +15454,61 @@ export type SyncConnectionResponses = {
|
|
|
15322
15454
|
202: OperationEnvelope;
|
|
15323
15455
|
};
|
|
15324
15456
|
export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
|
|
15457
|
+
export type SetConnectionWritePolicyData = {
|
|
15458
|
+
body: SetWritePolicyRequest;
|
|
15459
|
+
path: {
|
|
15460
|
+
/**
|
|
15461
|
+
* Graph Id
|
|
15462
|
+
*/
|
|
15463
|
+
graph_id: string;
|
|
15464
|
+
/**
|
|
15465
|
+
* Connection Id
|
|
15466
|
+
*
|
|
15467
|
+
* Unique connection identifier
|
|
15468
|
+
*/
|
|
15469
|
+
connection_id: string;
|
|
15470
|
+
};
|
|
15471
|
+
query?: never;
|
|
15472
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}/write-policy';
|
|
15473
|
+
};
|
|
15474
|
+
export type SetConnectionWritePolicyErrors = {
|
|
15475
|
+
/**
|
|
15476
|
+
* Invalid request
|
|
15477
|
+
*/
|
|
15478
|
+
400: ErrorResponse;
|
|
15479
|
+
/**
|
|
15480
|
+
* Authentication required
|
|
15481
|
+
*/
|
|
15482
|
+
401: ErrorResponse;
|
|
15483
|
+
/**
|
|
15484
|
+
* Access denied
|
|
15485
|
+
*/
|
|
15486
|
+
403: ErrorResponse;
|
|
15487
|
+
/**
|
|
15488
|
+
* Resource not found
|
|
15489
|
+
*/
|
|
15490
|
+
404: ErrorResponse;
|
|
15491
|
+
/**
|
|
15492
|
+
* Validation Error
|
|
15493
|
+
*/
|
|
15494
|
+
422: HttpValidationError;
|
|
15495
|
+
/**
|
|
15496
|
+
* Rate limit exceeded
|
|
15497
|
+
*/
|
|
15498
|
+
429: ErrorResponse;
|
|
15499
|
+
/**
|
|
15500
|
+
* Internal server error
|
|
15501
|
+
*/
|
|
15502
|
+
500: ErrorResponse;
|
|
15503
|
+
};
|
|
15504
|
+
export type SetConnectionWritePolicyError = SetConnectionWritePolicyErrors[keyof SetConnectionWritePolicyErrors];
|
|
15505
|
+
export type SetConnectionWritePolicyResponses = {
|
|
15506
|
+
/**
|
|
15507
|
+
* Successful Response
|
|
15508
|
+
*/
|
|
15509
|
+
200: ConnectionResponse;
|
|
15510
|
+
};
|
|
15511
|
+
export type SetConnectionWritePolicyResponse = SetConnectionWritePolicyResponses[keyof SetConnectionWritePolicyResponses];
|
|
15325
15512
|
export type ListOperatorsData = {
|
|
15326
15513
|
body?: never;
|
|
15327
15514
|
path: {
|
|
@@ -20581,6 +20768,65 @@ export type OpDeleteJournalEntryResponses = {
|
|
|
20581
20768
|
200: OperationEnvelopeDeleteResult;
|
|
20582
20769
|
};
|
|
20583
20770
|
export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
|
|
20771
|
+
export type OpPromoteObligationsData = {
|
|
20772
|
+
body: PromoteObligationsRequest;
|
|
20773
|
+
headers?: {
|
|
20774
|
+
/**
|
|
20775
|
+
* Idempotency-Key
|
|
20776
|
+
*/
|
|
20777
|
+
'Idempotency-Key'?: string | null;
|
|
20778
|
+
};
|
|
20779
|
+
path: {
|
|
20780
|
+
/**
|
|
20781
|
+
* Graph Id
|
|
20782
|
+
*/
|
|
20783
|
+
graph_id: string;
|
|
20784
|
+
};
|
|
20785
|
+
query?: never;
|
|
20786
|
+
url: '/extensions/roboledger/{graph_id}/operations/promote-obligations';
|
|
20787
|
+
};
|
|
20788
|
+
export type OpPromoteObligationsErrors = {
|
|
20789
|
+
/**
|
|
20790
|
+
* Invalid request
|
|
20791
|
+
*/
|
|
20792
|
+
400: ErrorResponse;
|
|
20793
|
+
/**
|
|
20794
|
+
* Authentication required
|
|
20795
|
+
*/
|
|
20796
|
+
401: ErrorResponse;
|
|
20797
|
+
/**
|
|
20798
|
+
* Access denied
|
|
20799
|
+
*/
|
|
20800
|
+
403: ErrorResponse;
|
|
20801
|
+
/**
|
|
20802
|
+
* Resource not found
|
|
20803
|
+
*/
|
|
20804
|
+
404: ErrorResponse;
|
|
20805
|
+
/**
|
|
20806
|
+
* Idempotency-Key conflict — key reused with different body
|
|
20807
|
+
*/
|
|
20808
|
+
409: ErrorResponse;
|
|
20809
|
+
/**
|
|
20810
|
+
* Validation error
|
|
20811
|
+
*/
|
|
20812
|
+
422: ErrorResponse;
|
|
20813
|
+
/**
|
|
20814
|
+
* Rate limit exceeded
|
|
20815
|
+
*/
|
|
20816
|
+
429: ErrorResponse;
|
|
20817
|
+
/**
|
|
20818
|
+
* Internal server error
|
|
20819
|
+
*/
|
|
20820
|
+
500: ErrorResponse;
|
|
20821
|
+
};
|
|
20822
|
+
export type OpPromoteObligationsError = OpPromoteObligationsErrors[keyof OpPromoteObligationsErrors];
|
|
20823
|
+
export type OpPromoteObligationsResponses = {
|
|
20824
|
+
/**
|
|
20825
|
+
* Successful Response
|
|
20826
|
+
*/
|
|
20827
|
+
200: OperationEnvelopePromoteObligationsResponse;
|
|
20828
|
+
};
|
|
20829
|
+
export type OpPromoteObligationsResponse = OpPromoteObligationsResponses[keyof OpPromoteObligationsResponses];
|
|
20584
20830
|
export type OpSetCloseTargetData = {
|
|
20585
20831
|
body: SetCloseTargetOperation;
|
|
20586
20832
|
headers?: {
|
package/types.gen.ts
CHANGED
|
@@ -1188,6 +1188,12 @@ export type ConnectionResponse = {
|
|
|
1188
1188
|
* Last sync timestamp
|
|
1189
1189
|
*/
|
|
1190
1190
|
last_sync?: string | null;
|
|
1191
|
+
/**
|
|
1192
|
+
* Write Policy
|
|
1193
|
+
*
|
|
1194
|
+
* Source-of-truth write policy: 'native' (RoboSystems is authoritative; no outbound write-back) or 'qb_authoritative' (QuickBooks is authoritative; RoboSystems-originated entries publish to QB). Set via the write-policy endpoint.
|
|
1195
|
+
*/
|
|
1196
|
+
write_policy?: string | null;
|
|
1191
1197
|
/**
|
|
1192
1198
|
* Metadata
|
|
1193
1199
|
*
|
|
@@ -1528,7 +1534,7 @@ export type CreateEventBlockRequest = {
|
|
|
1528
1534
|
/**
|
|
1529
1535
|
* Source
|
|
1530
1536
|
*
|
|
1531
|
-
* '
|
|
1537
|
+
* 'manual' | 'system' | 'schedule' | 'quickbooks' | 'xero' | 'plaid'
|
|
1532
1538
|
*/
|
|
1533
1539
|
source: string;
|
|
1534
1540
|
/**
|
|
@@ -3933,7 +3939,7 @@ export type EventBlockEnvelope = {
|
|
|
3933
3939
|
/**
|
|
3934
3940
|
* Source
|
|
3935
3941
|
*
|
|
3936
|
-
* Capture source (`
|
|
3942
|
+
* Capture source (`manual`, `system`, `schedule`, `quickbooks`, `xero`, `plaid`). Used for adapter routing.
|
|
3937
3943
|
*/
|
|
3938
3944
|
source: string;
|
|
3939
3945
|
/**
|
|
@@ -7936,6 +7942,52 @@ export type OperationEnvelopePreviewEventBlockResponse = {
|
|
|
7936
7942
|
idempotentReplay?: boolean;
|
|
7937
7943
|
};
|
|
7938
7944
|
|
|
7945
|
+
/**
|
|
7946
|
+
* OperationEnvelope[PromoteObligationsResponse]
|
|
7947
|
+
*/
|
|
7948
|
+
export type OperationEnvelopePromoteObligationsResponse = {
|
|
7949
|
+
/**
|
|
7950
|
+
* Operation
|
|
7951
|
+
*
|
|
7952
|
+
* Kebab-case operation name
|
|
7953
|
+
*/
|
|
7954
|
+
operation: string;
|
|
7955
|
+
/**
|
|
7956
|
+
* Operationid
|
|
7957
|
+
*
|
|
7958
|
+
* op_-prefixed ULID for audit and SSE correlation
|
|
7959
|
+
*/
|
|
7960
|
+
operationId: string;
|
|
7961
|
+
/**
|
|
7962
|
+
* Status
|
|
7963
|
+
*
|
|
7964
|
+
* Operation lifecycle state
|
|
7965
|
+
*/
|
|
7966
|
+
status: 'completed' | 'pending' | 'failed';
|
|
7967
|
+
/**
|
|
7968
|
+
* Command-specific result payload
|
|
7969
|
+
*/
|
|
7970
|
+
result?: PromoteObligationsResponse | null;
|
|
7971
|
+
/**
|
|
7972
|
+
* At
|
|
7973
|
+
*
|
|
7974
|
+
* ISO-8601 UTC timestamp
|
|
7975
|
+
*/
|
|
7976
|
+
at: string;
|
|
7977
|
+
/**
|
|
7978
|
+
* Createdby
|
|
7979
|
+
*
|
|
7980
|
+
* User ID that initiated the operation (null for legacy callers)
|
|
7981
|
+
*/
|
|
7982
|
+
createdBy?: string | null;
|
|
7983
|
+
/**
|
|
7984
|
+
* Idempotentreplay
|
|
7985
|
+
*
|
|
7986
|
+
* True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
|
|
7987
|
+
*/
|
|
7988
|
+
idempotentReplay?: boolean;
|
|
7989
|
+
};
|
|
7990
|
+
|
|
7939
7991
|
/**
|
|
7940
7992
|
* OperationEnvelope[PublishListResponse]
|
|
7941
7993
|
*/
|
|
@@ -9535,6 +9587,67 @@ export type PreviewEventBlockResponse = {
|
|
|
9535
9587
|
};
|
|
9536
9588
|
};
|
|
9537
9589
|
|
|
9590
|
+
/**
|
|
9591
|
+
* PromoteObligationsRequest
|
|
9592
|
+
*
|
|
9593
|
+
* On-demand trigger for the obligation-promotion sweep.
|
|
9594
|
+
*
|
|
9595
|
+
* Mirrors what the ``scheduled_obligation_promoter`` Dagster sensor does
|
|
9596
|
+
* on its tick, but lets an interactive caller or an MCP close co-pilot
|
|
9597
|
+
* run it now instead of waiting for the background cadence — required to
|
|
9598
|
+
* drive a schedule-driven close to completion in a single session.
|
|
9599
|
+
* Flips matured ``pending`` ``schedule_entry_due`` events (period boundary
|
|
9600
|
+
* passed) to ``classified``; with ``dispatch_handlers`` it also drafts the
|
|
9601
|
+
* closing entries in the same transaction (idempotent — reconciles to an
|
|
9602
|
+
* existing draft).
|
|
9603
|
+
*/
|
|
9604
|
+
export type PromoteObligationsRequest = {
|
|
9605
|
+
/**
|
|
9606
|
+
* Dispatch Handlers
|
|
9607
|
+
*
|
|
9608
|
+
* When True (default), also fire the schedule_entry_due handler for each promoted obligation so the draft closing entry materializes immediately (autopilot). When False, flip status only (co-pilot) — the draft is created separately.
|
|
9609
|
+
*/
|
|
9610
|
+
dispatch_handlers?: boolean;
|
|
9611
|
+
};
|
|
9612
|
+
|
|
9613
|
+
/**
|
|
9614
|
+
* PromoteObligationsResponse
|
|
9615
|
+
*
|
|
9616
|
+
* Counts from a single on-demand promotion sweep.
|
|
9617
|
+
*/
|
|
9618
|
+
export type PromoteObligationsResponse = {
|
|
9619
|
+
/**
|
|
9620
|
+
* Classified Count
|
|
9621
|
+
*
|
|
9622
|
+
* Matured obligations flipped pending → classified.
|
|
9623
|
+
*/
|
|
9624
|
+
classified_count: number;
|
|
9625
|
+
/**
|
|
9626
|
+
* Dispatched Count
|
|
9627
|
+
*
|
|
9628
|
+
* Obligations whose closing entry was drafted this run.
|
|
9629
|
+
*/
|
|
9630
|
+
dispatched_count: number;
|
|
9631
|
+
/**
|
|
9632
|
+
* Error Count
|
|
9633
|
+
*
|
|
9634
|
+
* Per-obligation handler errors (non-fatal).
|
|
9635
|
+
*/
|
|
9636
|
+
error_count: number;
|
|
9637
|
+
/**
|
|
9638
|
+
* Classified Event Ids
|
|
9639
|
+
*/
|
|
9640
|
+
classified_event_ids?: Array<string>;
|
|
9641
|
+
/**
|
|
9642
|
+
* Errors
|
|
9643
|
+
*
|
|
9644
|
+
* Per-obligation errors as {event_id, error}; the sweep continues past them.
|
|
9645
|
+
*/
|
|
9646
|
+
errors?: Array<{
|
|
9647
|
+
[key: string]: string;
|
|
9648
|
+
}>;
|
|
9649
|
+
};
|
|
9650
|
+
|
|
9538
9651
|
/**
|
|
9539
9652
|
* PublishListMemberResponse
|
|
9540
9653
|
*
|
|
@@ -10382,9 +10495,15 @@ export type RuleVariableLite = {
|
|
|
10382
10495
|
/**
|
|
10383
10496
|
* Variable Qname
|
|
10384
10497
|
*
|
|
10385
|
-
* Concept qname the variable resolves to, e.g. 'fac:Assets'.
|
|
10498
|
+
* Concept qname the variable resolves to, e.g. 'fac:Assets'. Null for tenant CoA elements (which key on `code`/`element_id`, not qname) — in that case the binding is carried by `variable_element_id`.
|
|
10499
|
+
*/
|
|
10500
|
+
variable_qname?: string | null;
|
|
10501
|
+
/**
|
|
10502
|
+
* Variable Element Id
|
|
10503
|
+
*
|
|
10504
|
+
* Element id the variable binds to directly. Set for schedule SumEquals rules over CoA-debit elements that have no qname; null otherwise.
|
|
10386
10505
|
*/
|
|
10387
|
-
|
|
10506
|
+
variable_element_id?: string | null;
|
|
10388
10507
|
};
|
|
10389
10508
|
|
|
10390
10509
|
/**
|
|
@@ -11153,6 +11272,23 @@ export type SetCloseTargetOperation = {
|
|
|
11153
11272
|
note?: string | null;
|
|
11154
11273
|
};
|
|
11155
11274
|
|
|
11275
|
+
/**
|
|
11276
|
+
* SetWritePolicyRequest
|
|
11277
|
+
*
|
|
11278
|
+
* Request to set a connection's source-of-truth write policy.
|
|
11279
|
+
*
|
|
11280
|
+
* The explicit operator opt-in for outbound write-back. `hybrid` is omitted
|
|
11281
|
+
* until its code path ships.
|
|
11282
|
+
*/
|
|
11283
|
+
export type SetWritePolicyRequest = {
|
|
11284
|
+
/**
|
|
11285
|
+
* Write Policy
|
|
11286
|
+
*
|
|
11287
|
+
* 'native' = RoboSystems authoritative, no write-back; 'qb_authoritative' = QuickBooks authoritative, entries publish to QB.
|
|
11288
|
+
*/
|
|
11289
|
+
write_policy: 'native' | 'qb_authoritative';
|
|
11290
|
+
};
|
|
11291
|
+
|
|
11156
11292
|
/**
|
|
11157
11293
|
* ShareReportOperation
|
|
11158
11294
|
*
|
|
@@ -15874,6 +16010,66 @@ export type SyncConnectionResponses = {
|
|
|
15874
16010
|
|
|
15875
16011
|
export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
|
|
15876
16012
|
|
|
16013
|
+
export type SetConnectionWritePolicyData = {
|
|
16014
|
+
body: SetWritePolicyRequest;
|
|
16015
|
+
path: {
|
|
16016
|
+
/**
|
|
16017
|
+
* Graph Id
|
|
16018
|
+
*/
|
|
16019
|
+
graph_id: string;
|
|
16020
|
+
/**
|
|
16021
|
+
* Connection Id
|
|
16022
|
+
*
|
|
16023
|
+
* Unique connection identifier
|
|
16024
|
+
*/
|
|
16025
|
+
connection_id: string;
|
|
16026
|
+
};
|
|
16027
|
+
query?: never;
|
|
16028
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}/write-policy';
|
|
16029
|
+
};
|
|
16030
|
+
|
|
16031
|
+
export type SetConnectionWritePolicyErrors = {
|
|
16032
|
+
/**
|
|
16033
|
+
* Invalid request
|
|
16034
|
+
*/
|
|
16035
|
+
400: ErrorResponse;
|
|
16036
|
+
/**
|
|
16037
|
+
* Authentication required
|
|
16038
|
+
*/
|
|
16039
|
+
401: ErrorResponse;
|
|
16040
|
+
/**
|
|
16041
|
+
* Access denied
|
|
16042
|
+
*/
|
|
16043
|
+
403: ErrorResponse;
|
|
16044
|
+
/**
|
|
16045
|
+
* Resource not found
|
|
16046
|
+
*/
|
|
16047
|
+
404: ErrorResponse;
|
|
16048
|
+
/**
|
|
16049
|
+
* Validation Error
|
|
16050
|
+
*/
|
|
16051
|
+
422: HttpValidationError;
|
|
16052
|
+
/**
|
|
16053
|
+
* Rate limit exceeded
|
|
16054
|
+
*/
|
|
16055
|
+
429: ErrorResponse;
|
|
16056
|
+
/**
|
|
16057
|
+
* Internal server error
|
|
16058
|
+
*/
|
|
16059
|
+
500: ErrorResponse;
|
|
16060
|
+
};
|
|
16061
|
+
|
|
16062
|
+
export type SetConnectionWritePolicyError = SetConnectionWritePolicyErrors[keyof SetConnectionWritePolicyErrors];
|
|
16063
|
+
|
|
16064
|
+
export type SetConnectionWritePolicyResponses = {
|
|
16065
|
+
/**
|
|
16066
|
+
* Successful Response
|
|
16067
|
+
*/
|
|
16068
|
+
200: ConnectionResponse;
|
|
16069
|
+
};
|
|
16070
|
+
|
|
16071
|
+
export type SetConnectionWritePolicyResponse = SetConnectionWritePolicyResponses[keyof SetConnectionWritePolicyResponses];
|
|
16072
|
+
|
|
15877
16073
|
export type ListOperatorsData = {
|
|
15878
16074
|
body?: never;
|
|
15879
16075
|
path: {
|
|
@@ -21603,6 +21799,70 @@ export type OpDeleteJournalEntryResponses = {
|
|
|
21603
21799
|
|
|
21604
21800
|
export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
|
|
21605
21801
|
|
|
21802
|
+
export type OpPromoteObligationsData = {
|
|
21803
|
+
body: PromoteObligationsRequest;
|
|
21804
|
+
headers?: {
|
|
21805
|
+
/**
|
|
21806
|
+
* Idempotency-Key
|
|
21807
|
+
*/
|
|
21808
|
+
'Idempotency-Key'?: string | null;
|
|
21809
|
+
};
|
|
21810
|
+
path: {
|
|
21811
|
+
/**
|
|
21812
|
+
* Graph Id
|
|
21813
|
+
*/
|
|
21814
|
+
graph_id: string;
|
|
21815
|
+
};
|
|
21816
|
+
query?: never;
|
|
21817
|
+
url: '/extensions/roboledger/{graph_id}/operations/promote-obligations';
|
|
21818
|
+
};
|
|
21819
|
+
|
|
21820
|
+
export type OpPromoteObligationsErrors = {
|
|
21821
|
+
/**
|
|
21822
|
+
* Invalid request
|
|
21823
|
+
*/
|
|
21824
|
+
400: ErrorResponse;
|
|
21825
|
+
/**
|
|
21826
|
+
* Authentication required
|
|
21827
|
+
*/
|
|
21828
|
+
401: ErrorResponse;
|
|
21829
|
+
/**
|
|
21830
|
+
* Access denied
|
|
21831
|
+
*/
|
|
21832
|
+
403: ErrorResponse;
|
|
21833
|
+
/**
|
|
21834
|
+
* Resource not found
|
|
21835
|
+
*/
|
|
21836
|
+
404: ErrorResponse;
|
|
21837
|
+
/**
|
|
21838
|
+
* Idempotency-Key conflict — key reused with different body
|
|
21839
|
+
*/
|
|
21840
|
+
409: ErrorResponse;
|
|
21841
|
+
/**
|
|
21842
|
+
* Validation error
|
|
21843
|
+
*/
|
|
21844
|
+
422: ErrorResponse;
|
|
21845
|
+
/**
|
|
21846
|
+
* Rate limit exceeded
|
|
21847
|
+
*/
|
|
21848
|
+
429: ErrorResponse;
|
|
21849
|
+
/**
|
|
21850
|
+
* Internal server error
|
|
21851
|
+
*/
|
|
21852
|
+
500: ErrorResponse;
|
|
21853
|
+
};
|
|
21854
|
+
|
|
21855
|
+
export type OpPromoteObligationsError = OpPromoteObligationsErrors[keyof OpPromoteObligationsErrors];
|
|
21856
|
+
|
|
21857
|
+
export type OpPromoteObligationsResponses = {
|
|
21858
|
+
/**
|
|
21859
|
+
* Successful Response
|
|
21860
|
+
*/
|
|
21861
|
+
200: OperationEnvelopePromoteObligationsResponse;
|
|
21862
|
+
};
|
|
21863
|
+
|
|
21864
|
+
export type OpPromoteObligationsResponse = OpPromoteObligationsResponses[keyof OpPromoteObligationsResponses];
|
|
21865
|
+
|
|
21606
21866
|
export type OpSetCloseTargetData = {
|
|
21607
21867
|
body: SetCloseTargetOperation;
|
|
21608
21868
|
headers?: {
|