@robosystems/client 2.11.3 → 2.12.1

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.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?: {