@robosystems/client 2.11.3 → 2.12.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
@@ -136,6 +136,62 @@ export type AddPublishListMembersOperation = {
136
136
  */
137
137
  list_id: string;
138
138
  };
139
+ /**
140
+ * AgentClassification
141
+ *
142
+ * A counterparty's default account, learned from committed lines or set by
143
+ * hand.
144
+ */
145
+ export type AgentClassification = {
146
+ /**
147
+ * Element Id
148
+ *
149
+ * The default chart account.
150
+ */
151
+ element_id: string;
152
+ /**
153
+ * Account Name
154
+ *
155
+ * The account's name.
156
+ */
157
+ account_name?: string | null;
158
+ /**
159
+ * Mode
160
+ *
161
+ * `suggest`: offered on each new line. `always_ask`: never offered.
162
+ */
163
+ mode: string;
164
+ /**
165
+ * Confirmations
166
+ *
167
+ * Committed lines that went to this account.
168
+ */
169
+ confirmations: number;
170
+ /**
171
+ * Overrides
172
+ *
173
+ * Committed lines that went elsewhere while it was the default.
174
+ */
175
+ overrides: number;
176
+ /**
177
+ * Set By
178
+ *
179
+ * Who set or last moved it.
180
+ */
181
+ set_by?: string | null;
182
+ /**
183
+ * Set At
184
+ *
185
+ * When it was set or last moved.
186
+ */
187
+ set_at?: string | null;
188
+ /**
189
+ * Learned From
190
+ *
191
+ * The committed line it was learned from, when it was.
192
+ */
193
+ learned_from?: string | null;
194
+ };
139
195
  /**
140
196
  * AnalyticalStatementFactRow
141
197
  *
@@ -8578,6 +8634,54 @@ export type JournalEntryResponse = {
8578
8634
  */
8579
8635
  total_credit: number;
8580
8636
  };
8637
+ /**
8638
+ * LearnClassificationDefaultsRequest
8639
+ *
8640
+ * Seed counterparty defaults from the bank lines already committed.
8641
+ */
8642
+ export type LearnClassificationDefaultsRequest = {
8643
+ /**
8644
+ * Dry Run
8645
+ *
8646
+ * Report what would be learned without writing it.
8647
+ */
8648
+ dry_run?: boolean;
8649
+ };
8650
+ /**
8651
+ * LearnClassificationDefaultsResponse
8652
+ *
8653
+ * What seeding the defaults learned.
8654
+ */
8655
+ export type LearnClassificationDefaultsResponse = {
8656
+ /**
8657
+ * Agents Learned
8658
+ *
8659
+ * Counterparties given a default from their committed lines.
8660
+ */
8661
+ agents_learned: number;
8662
+ /**
8663
+ * Agents Kept
8664
+ *
8665
+ * Counterparties that already had a default, left as they were.
8666
+ */
8667
+ agents_kept: number;
8668
+ /**
8669
+ * Lines Read
8670
+ *
8671
+ * Committed lines classified to a single account that were read.
8672
+ */
8673
+ lines_read: number;
8674
+ /**
8675
+ * Open Lines Resuggested
8676
+ *
8677
+ * Still-open lines whose suggestion changed as a result.
8678
+ */
8679
+ open_lines_resuggested: number;
8680
+ /**
8681
+ * Dry Run
8682
+ */
8683
+ dry_run: boolean;
8684
+ };
8581
8685
  /**
8582
8686
  * LedgerAgentResponse
8583
8687
  */
@@ -8644,6 +8748,10 @@ export type LedgerAgentResponse = {
8644
8748
  * Is 1099 Recipient
8645
8749
  */
8646
8750
  is_1099_recipient: boolean;
8751
+ /**
8752
+ * The default account its bank lines are suggested.
8753
+ */
8754
+ classification?: AgentClassification | null;
8647
8755
  /**
8648
8756
  * Created At
8649
8757
  */
@@ -11735,6 +11843,51 @@ export type OperationEnvelopeJournalEntryResponse = {
11735
11843
  */
11736
11844
  idempotentReplay?: boolean;
11737
11845
  };
11846
+ /**
11847
+ * OperationEnvelope[LearnClassificationDefaultsResponse]
11848
+ */
11849
+ export type OperationEnvelopeLearnClassificationDefaultsResponse = {
11850
+ /**
11851
+ * Operation
11852
+ *
11853
+ * Kebab-case operation name
11854
+ */
11855
+ operation: string;
11856
+ /**
11857
+ * Operationid
11858
+ *
11859
+ * op_-prefixed ULID for audit and SSE correlation
11860
+ */
11861
+ operationId: string;
11862
+ /**
11863
+ * Status
11864
+ *
11865
+ * Operation lifecycle state
11866
+ */
11867
+ status: 'completed' | 'pending' | 'failed';
11868
+ /**
11869
+ * Command-specific result payload
11870
+ */
11871
+ result?: LearnClassificationDefaultsResponse | null;
11872
+ /**
11873
+ * At
11874
+ *
11875
+ * ISO-8601 UTC timestamp
11876
+ */
11877
+ at: string;
11878
+ /**
11879
+ * Createdby
11880
+ *
11881
+ * User ID that initiated the operation
11882
+ */
11883
+ createdBy?: string | null;
11884
+ /**
11885
+ * Idempotentreplay
11886
+ *
11887
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
11888
+ */
11889
+ idempotentReplay?: boolean;
11890
+ };
11738
11891
  /**
11739
11892
  * OperationEnvelope[LedgerAgentResponse]
11740
11893
  */
@@ -19261,10 +19414,22 @@ export type UpdateAgentRequest = {
19261
19414
  * Is 1099 Recipient
19262
19415
  */
19263
19416
  is_1099_recipient?: boolean | null;
19417
+ /**
19418
+ * Classification Element Id
19419
+ *
19420
+ * The chart account this counterparty's bank lines are usually classified to, suggested on each new line. An empty string clears it. Its still-open lines are re-suggested at once. Omit to keep.
19421
+ */
19422
+ classification_element_id?: string | null;
19423
+ /**
19424
+ * Classification Mode
19425
+ *
19426
+ * `suggest` offers the default on each line; `always_ask` offers none, for a counterparty whose lines go to different accounts. Omit to keep.
19427
+ */
19428
+ classification_mode?: 'suggest' | 'always_ask' | null;
19264
19429
  /**
19265
19430
  * Metadata Patch
19266
19431
  *
19267
- * Deep-merged into agent.metadata. Pass `{}` to leave unchanged.
19432
+ * Deep-merged into agent.metadata. Pass `{}` to leave unchanged. The default classification is set with the fields above, not here.
19268
19433
  */
19269
19434
  metadata_patch?: {
19270
19435
  [key: string]: unknown;
@@ -29209,6 +29374,65 @@ export type UpdateAgentResponses = {
29209
29374
  200: OperationEnvelopeLedgerAgentResponse;
29210
29375
  };
29211
29376
  export type UpdateAgentResponse = UpdateAgentResponses[keyof UpdateAgentResponses];
29377
+ export type LearnClassificationDefaultsData = {
29378
+ body: LearnClassificationDefaultsRequest;
29379
+ headers?: {
29380
+ /**
29381
+ * Idempotency-Key
29382
+ */
29383
+ 'Idempotency-Key'?: string | null;
29384
+ };
29385
+ path: {
29386
+ /**
29387
+ * Graph Id
29388
+ */
29389
+ graph_id: string;
29390
+ };
29391
+ query?: never;
29392
+ url: '/extensions/roboledger/{graph_id}/operations/learn-classification-defaults';
29393
+ };
29394
+ export type LearnClassificationDefaultsErrors = {
29395
+ /**
29396
+ * Invalid request
29397
+ */
29398
+ 400: ErrorResponse;
29399
+ /**
29400
+ * Authentication required
29401
+ */
29402
+ 401: ErrorResponse;
29403
+ /**
29404
+ * Access denied
29405
+ */
29406
+ 403: ErrorResponse;
29407
+ /**
29408
+ * Resource not found
29409
+ */
29410
+ 404: ErrorResponse;
29411
+ /**
29412
+ * Idempotency-Key conflict — key reused with different body
29413
+ */
29414
+ 409: ErrorResponse;
29415
+ /**
29416
+ * Validation error
29417
+ */
29418
+ 422: ErrorResponse;
29419
+ /**
29420
+ * Rate limit exceeded
29421
+ */
29422
+ 429: ErrorResponse;
29423
+ /**
29424
+ * Internal server error
29425
+ */
29426
+ 500: ErrorResponse;
29427
+ };
29428
+ export type LearnClassificationDefaultsError = LearnClassificationDefaultsErrors[keyof LearnClassificationDefaultsErrors];
29429
+ export type LearnClassificationDefaultsResponses = {
29430
+ /**
29431
+ * Successful Response
29432
+ */
29433
+ 200: OperationEnvelopeLearnClassificationDefaultsResponse;
29434
+ };
29435
+ export type LearnClassificationDefaultsResponse2 = LearnClassificationDefaultsResponses[keyof LearnClassificationDefaultsResponses];
29212
29436
  export type CreateEventBlockData = {
29213
29437
  body: CreateEventBlockRequest;
29214
29438
  headers?: {
package/types.gen.ts CHANGED
@@ -144,6 +144,63 @@ export type AddPublishListMembersOperation = {
144
144
  list_id: string;
145
145
  };
146
146
 
147
+ /**
148
+ * AgentClassification
149
+ *
150
+ * A counterparty's default account, learned from committed lines or set by
151
+ * hand.
152
+ */
153
+ export type AgentClassification = {
154
+ /**
155
+ * Element Id
156
+ *
157
+ * The default chart account.
158
+ */
159
+ element_id: string;
160
+ /**
161
+ * Account Name
162
+ *
163
+ * The account's name.
164
+ */
165
+ account_name?: string | null;
166
+ /**
167
+ * Mode
168
+ *
169
+ * `suggest`: offered on each new line. `always_ask`: never offered.
170
+ */
171
+ mode: string;
172
+ /**
173
+ * Confirmations
174
+ *
175
+ * Committed lines that went to this account.
176
+ */
177
+ confirmations: number;
178
+ /**
179
+ * Overrides
180
+ *
181
+ * Committed lines that went elsewhere while it was the default.
182
+ */
183
+ overrides: number;
184
+ /**
185
+ * Set By
186
+ *
187
+ * Who set or last moved it.
188
+ */
189
+ set_by?: string | null;
190
+ /**
191
+ * Set At
192
+ *
193
+ * When it was set or last moved.
194
+ */
195
+ set_at?: string | null;
196
+ /**
197
+ * Learned From
198
+ *
199
+ * The committed line it was learned from, when it was.
200
+ */
201
+ learned_from?: string | null;
202
+ };
203
+
147
204
  /**
148
205
  * AnalyticalStatementFactRow
149
206
  *
@@ -8781,6 +8838,56 @@ export type JournalEntryResponse = {
8781
8838
  total_credit: number;
8782
8839
  };
8783
8840
 
8841
+ /**
8842
+ * LearnClassificationDefaultsRequest
8843
+ *
8844
+ * Seed counterparty defaults from the bank lines already committed.
8845
+ */
8846
+ export type LearnClassificationDefaultsRequest = {
8847
+ /**
8848
+ * Dry Run
8849
+ *
8850
+ * Report what would be learned without writing it.
8851
+ */
8852
+ dry_run?: boolean;
8853
+ };
8854
+
8855
+ /**
8856
+ * LearnClassificationDefaultsResponse
8857
+ *
8858
+ * What seeding the defaults learned.
8859
+ */
8860
+ export type LearnClassificationDefaultsResponse = {
8861
+ /**
8862
+ * Agents Learned
8863
+ *
8864
+ * Counterparties given a default from their committed lines.
8865
+ */
8866
+ agents_learned: number;
8867
+ /**
8868
+ * Agents Kept
8869
+ *
8870
+ * Counterparties that already had a default, left as they were.
8871
+ */
8872
+ agents_kept: number;
8873
+ /**
8874
+ * Lines Read
8875
+ *
8876
+ * Committed lines classified to a single account that were read.
8877
+ */
8878
+ lines_read: number;
8879
+ /**
8880
+ * Open Lines Resuggested
8881
+ *
8882
+ * Still-open lines whose suggestion changed as a result.
8883
+ */
8884
+ open_lines_resuggested: number;
8885
+ /**
8886
+ * Dry Run
8887
+ */
8888
+ dry_run: boolean;
8889
+ };
8890
+
8784
8891
  /**
8785
8892
  * LedgerAgentResponse
8786
8893
  */
@@ -8847,6 +8954,10 @@ export type LedgerAgentResponse = {
8847
8954
  * Is 1099 Recipient
8848
8955
  */
8849
8956
  is_1099_recipient: boolean;
8957
+ /**
8958
+ * The default account its bank lines are suggested.
8959
+ */
8960
+ classification?: AgentClassification | null;
8850
8961
  /**
8851
8962
  * Created At
8852
8963
  */
@@ -12008,6 +12119,52 @@ export type OperationEnvelopeJournalEntryResponse = {
12008
12119
  idempotentReplay?: boolean;
12009
12120
  };
12010
12121
 
12122
+ /**
12123
+ * OperationEnvelope[LearnClassificationDefaultsResponse]
12124
+ */
12125
+ export type OperationEnvelopeLearnClassificationDefaultsResponse = {
12126
+ /**
12127
+ * Operation
12128
+ *
12129
+ * Kebab-case operation name
12130
+ */
12131
+ operation: string;
12132
+ /**
12133
+ * Operationid
12134
+ *
12135
+ * op_-prefixed ULID for audit and SSE correlation
12136
+ */
12137
+ operationId: string;
12138
+ /**
12139
+ * Status
12140
+ *
12141
+ * Operation lifecycle state
12142
+ */
12143
+ status: 'completed' | 'pending' | 'failed';
12144
+ /**
12145
+ * Command-specific result payload
12146
+ */
12147
+ result?: LearnClassificationDefaultsResponse | null;
12148
+ /**
12149
+ * At
12150
+ *
12151
+ * ISO-8601 UTC timestamp
12152
+ */
12153
+ at: string;
12154
+ /**
12155
+ * Createdby
12156
+ *
12157
+ * User ID that initiated the operation
12158
+ */
12159
+ createdBy?: string | null;
12160
+ /**
12161
+ * Idempotentreplay
12162
+ *
12163
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
12164
+ */
12165
+ idempotentReplay?: boolean;
12166
+ };
12167
+
12011
12168
  /**
12012
12169
  * OperationEnvelope[LedgerAgentResponse]
12013
12170
  */
@@ -19725,10 +19882,22 @@ export type UpdateAgentRequest = {
19725
19882
  * Is 1099 Recipient
19726
19883
  */
19727
19884
  is_1099_recipient?: boolean | null;
19885
+ /**
19886
+ * Classification Element Id
19887
+ *
19888
+ * The chart account this counterparty's bank lines are usually classified to, suggested on each new line. An empty string clears it. Its still-open lines are re-suggested at once. Omit to keep.
19889
+ */
19890
+ classification_element_id?: string | null;
19891
+ /**
19892
+ * Classification Mode
19893
+ *
19894
+ * `suggest` offers the default on each line; `always_ask` offers none, for a counterparty whose lines go to different accounts. Omit to keep.
19895
+ */
19896
+ classification_mode?: 'suggest' | 'always_ask' | null;
19728
19897
  /**
19729
19898
  * Metadata Patch
19730
19899
  *
19731
- * Deep-merged into agent.metadata. Pass `{}` to leave unchanged.
19900
+ * Deep-merged into agent.metadata. Pass `{}` to leave unchanged. The default classification is set with the fields above, not here.
19732
19901
  */
19733
19902
  metadata_patch?: {
19734
19903
  [key: string]: unknown;
@@ -30538,6 +30707,70 @@ export type UpdateAgentResponses = {
30538
30707
 
30539
30708
  export type UpdateAgentResponse = UpdateAgentResponses[keyof UpdateAgentResponses];
30540
30709
 
30710
+ export type LearnClassificationDefaultsData = {
30711
+ body: LearnClassificationDefaultsRequest;
30712
+ headers?: {
30713
+ /**
30714
+ * Idempotency-Key
30715
+ */
30716
+ 'Idempotency-Key'?: string | null;
30717
+ };
30718
+ path: {
30719
+ /**
30720
+ * Graph Id
30721
+ */
30722
+ graph_id: string;
30723
+ };
30724
+ query?: never;
30725
+ url: '/extensions/roboledger/{graph_id}/operations/learn-classification-defaults';
30726
+ };
30727
+
30728
+ export type LearnClassificationDefaultsErrors = {
30729
+ /**
30730
+ * Invalid request
30731
+ */
30732
+ 400: ErrorResponse;
30733
+ /**
30734
+ * Authentication required
30735
+ */
30736
+ 401: ErrorResponse;
30737
+ /**
30738
+ * Access denied
30739
+ */
30740
+ 403: ErrorResponse;
30741
+ /**
30742
+ * Resource not found
30743
+ */
30744
+ 404: ErrorResponse;
30745
+ /**
30746
+ * Idempotency-Key conflict — key reused with different body
30747
+ */
30748
+ 409: ErrorResponse;
30749
+ /**
30750
+ * Validation error
30751
+ */
30752
+ 422: ErrorResponse;
30753
+ /**
30754
+ * Rate limit exceeded
30755
+ */
30756
+ 429: ErrorResponse;
30757
+ /**
30758
+ * Internal server error
30759
+ */
30760
+ 500: ErrorResponse;
30761
+ };
30762
+
30763
+ export type LearnClassificationDefaultsError = LearnClassificationDefaultsErrors[keyof LearnClassificationDefaultsErrors];
30764
+
30765
+ export type LearnClassificationDefaultsResponses = {
30766
+ /**
30767
+ * Successful Response
30768
+ */
30769
+ 200: OperationEnvelopeLearnClassificationDefaultsResponse;
30770
+ };
30771
+
30772
+ export type LearnClassificationDefaultsResponse2 = LearnClassificationDefaultsResponses[keyof LearnClassificationDefaultsResponses];
30773
+
30541
30774
  export type CreateEventBlockData = {
30542
30775
  body: CreateEventBlockRequest;
30543
30776
  headers?: {