@robosystems/client 2.28.0 → 2.30.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
@@ -259,6 +259,98 @@ export type AccountInfo = {
259
259
  */
260
260
  provider_account_id: string;
261
261
  };
262
+ /**
263
+ * AcquisitionAllocation
264
+ *
265
+ * Part of an acquisition's excess assigned to an identifiable asset or
266
+ * liability at fair value instead of goodwill: a step-up.
267
+ */
268
+ export type AcquisitionAllocation = {
269
+ /**
270
+ * Concept
271
+ *
272
+ * The rs-gaap concept stepped up, e.g. `rs-gaap:PropertyPlantAndEquipmentNet`; the consolidation entity needs an account mapped to it.
273
+ */
274
+ concept: string;
275
+ /**
276
+ * Amount
277
+ *
278
+ * Cents, debit-positive: fair value less book value at acquisition. Positive raises an asset; negative raises a liability.
279
+ */
280
+ amount: number;
281
+ };
282
+ /**
283
+ * AcquisitionResponse
284
+ *
285
+ * A member's acquisition as recorded: the draft in the consolidation
286
+ * entity its close posts.
287
+ */
288
+ export type AcquisitionResponse = {
289
+ /**
290
+ * Entity Id
291
+ *
292
+ * The member.
293
+ */
294
+ entity_id: string;
295
+ /**
296
+ * Entity Name
297
+ *
298
+ * The member's name.
299
+ */
300
+ entity_name: string;
301
+ /**
302
+ * Joined On
303
+ *
304
+ * When it joined the group.
305
+ */
306
+ joined_on: string;
307
+ /**
308
+ * Equity At Acquisition
309
+ *
310
+ * Cents: the member's equity in its opening balance.
311
+ */
312
+ equity_at_acquisition: number;
313
+ /**
314
+ * Parent Share
315
+ *
316
+ * Cents: the parent's share of that equity.
317
+ */
318
+ parent_share: number;
319
+ /**
320
+ * Consideration
321
+ *
322
+ * Cents paid to the sellers.
323
+ */
324
+ consideration: number;
325
+ /**
326
+ * Excess
327
+ *
328
+ * Cents: consideration less the parent's share of the equity.
329
+ */
330
+ excess: number;
331
+ /**
332
+ * Goodwill
333
+ *
334
+ * Cents of goodwill; negative for a bargain purchase gain.
335
+ */
336
+ goodwill: number;
337
+ /**
338
+ * Noncontrolling Interest
339
+ *
340
+ * Cents added to the outside owners' interest beyond their share of the member's book equity.
341
+ */
342
+ noncontrolling_interest?: number;
343
+ /**
344
+ * The acquisition entry, a draft the close posts.
345
+ */
346
+ entry: JournalEntryResponse;
347
+ /**
348
+ * Replaced
349
+ *
350
+ * True when it replaced an earlier draft of the acquisition.
351
+ */
352
+ replaced?: boolean;
353
+ };
262
354
  /**
263
355
  * AddGraphMemberRequest
264
356
  *
@@ -2493,7 +2585,7 @@ export type ConsolidationProposal = {
2493
2585
  *
2494
2586
  * What the entry adjusts.
2495
2587
  */
2496
- adjustment_kind: 'elimination_investment' | 'elimination_intercompany' | 'elimination_unrealized_profit' | 'nci_allocation' | 'nci_distribution' | 'equity_method_pickup' | 'equity_method_distribution' | 'acquisition' | 'deconsolidation' | 'translation' | 'manual';
2588
+ adjustment_kind: 'elimination_investment' | 'elimination_intercompany' | 'elimination_unrealized_profit' | 'nci_allocation' | 'nci_distribution' | 'equity_method_pickup' | 'equity_method_distribution' | 'acquisition' | 'ownership_change' | 'deconsolidation' | 'translation' | 'manual';
2497
2589
  /**
2498
2590
  * Adjusts Entity Id
2499
2591
  *
@@ -2653,6 +2745,12 @@ export type ConsolidationResidual = {
2653
2745
  * What the two figures are.
2654
2746
  */
2655
2747
  explanation: string;
2748
+ /**
2749
+ * Cause
2750
+ *
2751
+ * `pre_acquisition` when the member joined the group mid-life and its acquisition is not recorded: the parent paid its sellers, not the member, so `record-acquisition` explains the difference — the consideration, with the excess over the parent's share of the member's equity at acquisition as goodwill or fair-value step-ups.
2752
+ */
2753
+ cause?: 'unexplained' | 'pre_acquisition';
2656
2754
  };
2657
2755
  /**
2658
2756
  * ConsolidationWorksheetRequest
@@ -11244,6 +11342,51 @@ export type OperationEnvelopeAcceptSuggestionsResponse = {
11244
11342
  */
11245
11343
  idempotentReplay?: boolean;
11246
11344
  };
11345
+ /**
11346
+ * OperationEnvelope[AcquisitionResponse]
11347
+ */
11348
+ export type OperationEnvelopeAcquisitionResponse = {
11349
+ /**
11350
+ * Operation
11351
+ *
11352
+ * Kebab-case operation name
11353
+ */
11354
+ operation: string;
11355
+ /**
11356
+ * Operationid
11357
+ *
11358
+ * op_-prefixed ULID for audit and SSE correlation
11359
+ */
11360
+ operationId: string;
11361
+ /**
11362
+ * Status
11363
+ *
11364
+ * Operation lifecycle state
11365
+ */
11366
+ status: 'completed' | 'pending' | 'failed';
11367
+ /**
11368
+ * Command-specific result payload
11369
+ */
11370
+ result?: AcquisitionResponse | null;
11371
+ /**
11372
+ * At
11373
+ *
11374
+ * ISO-8601 UTC timestamp
11375
+ */
11376
+ at: string;
11377
+ /**
11378
+ * Createdby
11379
+ *
11380
+ * User ID that initiated the operation
11381
+ */
11382
+ createdBy?: string | null;
11383
+ /**
11384
+ * Idempotentreplay
11385
+ *
11386
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
11387
+ */
11388
+ idempotentReplay?: boolean;
11389
+ };
11247
11390
  /**
11248
11391
  * OperationEnvelope[AllocationOverrideResponse]
11249
11392
  */
@@ -12909,6 +13052,51 @@ export type OperationEnvelopeLiveFinancialStatementResponse = {
12909
13052
  */
12910
13053
  idempotentReplay?: boolean;
12911
13054
  };
13055
+ /**
13056
+ * OperationEnvelope[OwnershipChangeResponse]
13057
+ */
13058
+ export type OperationEnvelopeOwnershipChangeResponse = {
13059
+ /**
13060
+ * Operation
13061
+ *
13062
+ * Kebab-case operation name
13063
+ */
13064
+ operation: string;
13065
+ /**
13066
+ * Operationid
13067
+ *
13068
+ * op_-prefixed ULID for audit and SSE correlation
13069
+ */
13070
+ operationId: string;
13071
+ /**
13072
+ * Status
13073
+ *
13074
+ * Operation lifecycle state
13075
+ */
13076
+ status: 'completed' | 'pending' | 'failed';
13077
+ /**
13078
+ * Command-specific result payload
13079
+ */
13080
+ result?: OwnershipChangeResponse | null;
13081
+ /**
13082
+ * At
13083
+ *
13084
+ * ISO-8601 UTC timestamp
13085
+ */
13086
+ at: string;
13087
+ /**
13088
+ * Createdby
13089
+ *
13090
+ * User ID that initiated the operation
13091
+ */
13092
+ createdBy?: string | null;
13093
+ /**
13094
+ * Idempotentreplay
13095
+ *
13096
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
13097
+ */
13098
+ idempotentReplay?: boolean;
13099
+ };
12912
13100
  /**
12913
13101
  * OperationEnvelope[PortfolioBlockEnvelope]
12914
13102
  */
@@ -14527,6 +14715,78 @@ export type OrgUsageSummary = {
14527
14715
  */
14528
14716
  storage_limit_gb: number | null;
14529
14717
  };
14718
+ /**
14719
+ * OwnershipChangeResponse
14720
+ *
14721
+ * A change in the parent's share of a member as recorded: the draft in
14722
+ * the consolidation entity its close posts.
14723
+ */
14724
+ export type OwnershipChangeResponse = {
14725
+ /**
14726
+ * Entity Id
14727
+ *
14728
+ * The member.
14729
+ */
14730
+ entity_id: string;
14731
+ /**
14732
+ * Entity Name
14733
+ *
14734
+ * The member's name.
14735
+ */
14736
+ entity_name: string;
14737
+ /**
14738
+ * Period
14739
+ *
14740
+ * The first month the new share holds.
14741
+ */
14742
+ period: string;
14743
+ /**
14744
+ * From Pct
14745
+ *
14746
+ * The parent's share the month before.
14747
+ */
14748
+ from_pct: number;
14749
+ /**
14750
+ * To Pct
14751
+ *
14752
+ * The parent's share from `period`.
14753
+ */
14754
+ to_pct: number;
14755
+ /**
14756
+ * Consideration
14757
+ *
14758
+ * Cents paid to the outside owners.
14759
+ */
14760
+ consideration: number;
14761
+ /**
14762
+ * Book Value
14763
+ *
14764
+ * Cents: the share bought of the member's capital, which the investment elimination moves from the outside owners to the parent.
14765
+ */
14766
+ book_value: number;
14767
+ /**
14768
+ * Earnings Transferred
14769
+ *
14770
+ * Cents: the share bought of the member's results since it joined, moved from the outside owners' interest to the parent.
14771
+ */
14772
+ earnings_transferred: number;
14773
+ /**
14774
+ * Equity Adjustment
14775
+ *
14776
+ * Cents taken from the parent's equity: the price above the carrying amount of what was bought (negative when it paid less).
14777
+ */
14778
+ equity_adjustment: number;
14779
+ /**
14780
+ * The ownership change entry, a draft the close posts.
14781
+ */
14782
+ entry: JournalEntryResponse;
14783
+ /**
14784
+ * Replaced
14785
+ *
14786
+ * True when it replaced an earlier draft for the month.
14787
+ */
14788
+ replaced?: boolean;
14789
+ };
14530
14790
  /**
14531
14791
  * PasskeyDeleteRequest
14532
14792
  *
@@ -16823,6 +17083,52 @@ export type ReconcilingItemRegenerated = {
16823
17083
  */
16824
17084
  entry_ids?: Array<string>;
16825
17085
  };
17086
+ /**
17087
+ * RecordAcquisitionRequest
17088
+ *
17089
+ * A member bought from its outside owners: what the parent paid them,
17090
+ * and how the excess over its share of the member's equity at acquisition is
17091
+ * allocated. The engine never invents a fair value; each comes from the
17092
+ * person, with the basis.
17093
+ */
17094
+ export type RecordAcquisitionRequest = {
17095
+ /**
17096
+ * Entity Id
17097
+ *
17098
+ * The member acquired, consolidated in full, with `joined_on` set and its opening balance recorded at acquisition.
17099
+ */
17100
+ entity_id: string;
17101
+ /**
17102
+ * Consideration
17103
+ *
17104
+ * Cents the parent paid the sellers for its interest. Its investment line names the seller, not the member, which is why it is given here.
17105
+ */
17106
+ consideration: number;
17107
+ /**
17108
+ * Nci Fair Value
17109
+ *
17110
+ * Cents: the fair value of the outside owners' interest at acquisition, for goodwill on the whole business (ASC 805). Omitted, the outside owners carry their share of the identifiable net assets and goodwill is the parent's alone.
17111
+ */
17112
+ nci_fair_value?: number | null;
17113
+ /**
17114
+ * Allocations
17115
+ *
17116
+ * Fair-value step-ups; what is left of the excess is goodwill.
17117
+ */
17118
+ allocations?: Array<AcquisitionAllocation>;
17119
+ /**
17120
+ * Basis
17121
+ *
17122
+ * Where the consideration and fair values come from: the purchase agreement, a valuation.
17123
+ */
17124
+ basis: string;
17125
+ /**
17126
+ * Confirm Bargain Purchase
17127
+ *
17128
+ * Required when the parent paid less than its share of the fair value of what it acquired. ASC 805 has the acquirer reassess before recognizing the gain; set it only after that review.
17129
+ */
17130
+ confirm_bargain_purchase?: boolean;
17131
+ };
16826
17132
  /**
16827
17133
  * RecordOpeningBalanceRequest
16828
17134
  *
@@ -16854,6 +17160,45 @@ export type RecordOpeningBalanceRequest = {
16854
17160
  */
16855
17161
  memo?: string | null;
16856
17162
  };
17163
+ /**
17164
+ * RecordOwnershipChangeRequest
17165
+ *
17166
+ * The parent buys more of a member from its outside owners, staying on the
17167
+ * same consolidation method: the share it holds from a month, and what it
17168
+ * paid. ASC 810 makes it an equity transaction, never a gain or loss.
17169
+ */
17170
+ export type RecordOwnershipChangeRequest = {
17171
+ /**
17172
+ * Entity Id
17173
+ *
17174
+ * The member, consolidated in full.
17175
+ */
17176
+ entity_id: string;
17177
+ /**
17178
+ * Period
17179
+ *
17180
+ * The month, as YYYY-MM.
17181
+ */
17182
+ period: string;
17183
+ /**
17184
+ * Ownership Pct
17185
+ *
17186
+ * The parent's share from `period`, as a percentage: above its share the month before, and 50 or more, so the member stays consolidated in full.
17187
+ */
17188
+ ownership_pct: number;
17189
+ /**
17190
+ * Consideration
17191
+ *
17192
+ * Cents the parent paid the outside owners for the shares. Its line names them, not the member, which is why it is given here.
17193
+ */
17194
+ consideration: number;
17195
+ /**
17196
+ * Basis
17197
+ *
17198
+ * The purchase agreement, or what sets the price.
17199
+ */
17200
+ basis: string;
17201
+ };
16857
17202
  /**
16858
17203
  * RecordStatementBalanceRequest
16859
17204
  *
@@ -31863,6 +32208,124 @@ export type SetAllocationOverrideResponses = {
31863
32208
  200: OperationEnvelopeAllocationOverrideResponse;
31864
32209
  };
31865
32210
  export type SetAllocationOverrideResponse = SetAllocationOverrideResponses[keyof SetAllocationOverrideResponses];
32211
+ export type RecordAcquisitionData = {
32212
+ body: RecordAcquisitionRequest;
32213
+ headers?: {
32214
+ /**
32215
+ * Idempotency-Key
32216
+ */
32217
+ 'Idempotency-Key'?: string | null;
32218
+ };
32219
+ path: {
32220
+ /**
32221
+ * Graph Id
32222
+ */
32223
+ graph_id: string;
32224
+ };
32225
+ query?: never;
32226
+ url: '/extensions/roboledger/{graph_id}/operations/record-acquisition';
32227
+ };
32228
+ export type RecordAcquisitionErrors = {
32229
+ /**
32230
+ * Invalid request
32231
+ */
32232
+ 400: ErrorResponse;
32233
+ /**
32234
+ * Authentication required
32235
+ */
32236
+ 401: ErrorResponse;
32237
+ /**
32238
+ * Access denied
32239
+ */
32240
+ 403: ErrorResponse;
32241
+ /**
32242
+ * Resource not found
32243
+ */
32244
+ 404: ErrorResponse;
32245
+ /**
32246
+ * Idempotency-Key conflict — key reused with different body
32247
+ */
32248
+ 409: ErrorResponse;
32249
+ /**
32250
+ * Validation error
32251
+ */
32252
+ 422: ErrorResponse;
32253
+ /**
32254
+ * Rate limit exceeded
32255
+ */
32256
+ 429: ErrorResponse;
32257
+ /**
32258
+ * Internal server error
32259
+ */
32260
+ 500: ErrorResponse;
32261
+ };
32262
+ export type RecordAcquisitionError = RecordAcquisitionErrors[keyof RecordAcquisitionErrors];
32263
+ export type RecordAcquisitionResponses = {
32264
+ /**
32265
+ * Successful Response
32266
+ */
32267
+ 200: OperationEnvelopeAcquisitionResponse;
32268
+ };
32269
+ export type RecordAcquisitionResponse = RecordAcquisitionResponses[keyof RecordAcquisitionResponses];
32270
+ export type RecordOwnershipChangeData = {
32271
+ body: RecordOwnershipChangeRequest;
32272
+ headers?: {
32273
+ /**
32274
+ * Idempotency-Key
32275
+ */
32276
+ 'Idempotency-Key'?: string | null;
32277
+ };
32278
+ path: {
32279
+ /**
32280
+ * Graph Id
32281
+ */
32282
+ graph_id: string;
32283
+ };
32284
+ query?: never;
32285
+ url: '/extensions/roboledger/{graph_id}/operations/record-ownership-change';
32286
+ };
32287
+ export type RecordOwnershipChangeErrors = {
32288
+ /**
32289
+ * Invalid request
32290
+ */
32291
+ 400: ErrorResponse;
32292
+ /**
32293
+ * Authentication required
32294
+ */
32295
+ 401: ErrorResponse;
32296
+ /**
32297
+ * Access denied
32298
+ */
32299
+ 403: ErrorResponse;
32300
+ /**
32301
+ * Resource not found
32302
+ */
32303
+ 404: ErrorResponse;
32304
+ /**
32305
+ * Idempotency-Key conflict — key reused with different body
32306
+ */
32307
+ 409: ErrorResponse;
32308
+ /**
32309
+ * Validation error
32310
+ */
32311
+ 422: ErrorResponse;
32312
+ /**
32313
+ * Rate limit exceeded
32314
+ */
32315
+ 429: ErrorResponse;
32316
+ /**
32317
+ * Internal server error
32318
+ */
32319
+ 500: ErrorResponse;
32320
+ };
32321
+ export type RecordOwnershipChangeError = RecordOwnershipChangeErrors[keyof RecordOwnershipChangeErrors];
32322
+ export type RecordOwnershipChangeResponses = {
32323
+ /**
32324
+ * Successful Response
32325
+ */
32326
+ 200: OperationEnvelopeOwnershipChangeResponse;
32327
+ };
32328
+ export type RecordOwnershipChangeResponse = RecordOwnershipChangeResponses[keyof RecordOwnershipChangeResponses];
31866
32329
  export type UpdateJournalEntryData = {
31867
32330
  body: UpdateJournalEntryRequest;
31868
32331
  headers?: {