@robosystems/client 0.3.36 → 0.3.38

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
@@ -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
- * 'quickbooks' | 'xero' | 'plaid' | 'native' | 'scheduled' | ...
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 (`quickbooks`, `xero`, `plaid`, `native`, `scheduled`, ). Used for adapter routing.
3839
+ * Capture source (`manual`, `system`, `schedule`, `quickbooks`, `xero`, `plaid`). Used for adapter routing.
3834
3840
  */
3835
3841
  source: string;
3836
3842
  /**
@@ -4191,6 +4197,14 @@ export type FactSetLite = {
4191
4197
  * Back-pointer to the ``reports`` table while ``report_id`` still lives on facts. Drops out once the retirement migration lands.
4192
4198
  */
4193
4199
  report_id?: string | null;
4200
+ /**
4201
+ * Provenance
4202
+ *
4203
+ * Typed ``FactProvenance`` descriptor (discriminated on ``origin``: pivot | schedule | derived | asserted) recording how this FactSet's facts were constructed. Surfaced as JSON, mirroring how mechanics is exposed. Null for pre-feature historical FactSets.
4204
+ */
4205
+ provenance?: {
4206
+ [key: string]: unknown;
4207
+ } | null;
4194
4208
  };
4195
4209
  /**
4196
4210
  * FileInfo
@@ -7742,6 +7756,51 @@ export type OperationEnvelopePreviewEventBlockResponse = {
7742
7756
  */
7743
7757
  idempotentReplay?: boolean;
7744
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
+ };
7745
7804
  /**
7746
7805
  * OperationEnvelope[PublishListResponse]
7747
7806
  */
@@ -9299,6 +9358,65 @@ export type PreviewEventBlockResponse = {
9299
9358
  [key: string]: unknown;
9300
9359
  };
9301
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
+ };
9302
9420
  /**
9303
9421
  * PublishListMemberResponse
9304
9422
  *
@@ -10124,9 +10242,15 @@ export type RuleVariableLite = {
10124
10242
  /**
10125
10243
  * Variable Qname
10126
10244
  *
10127
- * 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.
10128
10252
  */
10129
- variable_qname: string;
10253
+ variable_element_id?: string | null;
10130
10254
  };
10131
10255
  /**
10132
10256
  * SECConnectionConfig
@@ -10874,6 +10998,22 @@ export type SetCloseTargetOperation = {
10874
10998
  */
10875
10999
  note?: string | null;
10876
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
+ };
10877
11017
  /**
10878
11018
  * ShareReportOperation
10879
11019
  *
@@ -15314,6 +15454,61 @@ export type SyncConnectionResponses = {
15314
15454
  202: OperationEnvelope;
15315
15455
  };
15316
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];
15317
15512
  export type ListOperatorsData = {
15318
15513
  body?: never;
15319
15514
  path: {
@@ -20573,6 +20768,65 @@ export type OpDeleteJournalEntryResponses = {
20573
20768
  200: OperationEnvelopeDeleteResult;
20574
20769
  };
20575
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];
20576
20830
  export type OpSetCloseTargetData = {
20577
20831
  body: SetCloseTargetOperation;
20578
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
- * 'quickbooks' | 'xero' | 'plaid' | 'native' | 'scheduled' | ...
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 (`quickbooks`, `xero`, `plaid`, `native`, `scheduled`, ). Used for adapter routing.
3942
+ * Capture source (`manual`, `system`, `schedule`, `quickbooks`, `xero`, `plaid`). Used for adapter routing.
3937
3943
  */
3938
3944
  source: string;
3939
3945
  /**
@@ -4299,6 +4305,14 @@ export type FactSetLite = {
4299
4305
  * Back-pointer to the ``reports`` table while ``report_id`` still lives on facts. Drops out once the retirement migration lands.
4300
4306
  */
4301
4307
  report_id?: string | null;
4308
+ /**
4309
+ * Provenance
4310
+ *
4311
+ * Typed ``FactProvenance`` descriptor (discriminated on ``origin``: pivot | schedule | derived | asserted) recording how this FactSet's facts were constructed. Surfaced as JSON, mirroring how mechanics is exposed. Null for pre-feature historical FactSets.
4312
+ */
4313
+ provenance?: {
4314
+ [key: string]: unknown;
4315
+ } | null;
4302
4316
  };
4303
4317
 
4304
4318
  /**
@@ -7928,6 +7942,52 @@ export type OperationEnvelopePreviewEventBlockResponse = {
7928
7942
  idempotentReplay?: boolean;
7929
7943
  };
7930
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
+
7931
7991
  /**
7932
7992
  * OperationEnvelope[PublishListResponse]
7933
7993
  */
@@ -9527,6 +9587,67 @@ export type PreviewEventBlockResponse = {
9527
9587
  };
9528
9588
  };
9529
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
+
9530
9651
  /**
9531
9652
  * PublishListMemberResponse
9532
9653
  *
@@ -10374,9 +10495,15 @@ export type RuleVariableLite = {
10374
10495
  /**
10375
10496
  * Variable Qname
10376
10497
  *
10377
- * 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`.
10378
10499
  */
10379
- variable_qname: string;
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.
10505
+ */
10506
+ variable_element_id?: string | null;
10380
10507
  };
10381
10508
 
10382
10509
  /**
@@ -11145,6 +11272,23 @@ export type SetCloseTargetOperation = {
11145
11272
  note?: string | null;
11146
11273
  };
11147
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
+
11148
11292
  /**
11149
11293
  * ShareReportOperation
11150
11294
  *
@@ -15866,6 +16010,66 @@ export type SyncConnectionResponses = {
15866
16010
 
15867
16011
  export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
15868
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
+
15869
16073
  export type ListOperatorsData = {
15870
16074
  body?: never;
15871
16075
  path: {
@@ -21595,6 +21799,70 @@ export type OpDeleteJournalEntryResponses = {
21595
21799
 
21596
21800
  export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
21597
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
+
21598
21866
  export type OpSetCloseTargetData = {
21599
21867
  body: SetCloseTargetOperation;
21600
21868
  headers?: {