@robosystems/client 1.7.0 → 1.8.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
@@ -1152,6 +1152,106 @@ export type BindTextBlockResponse = {
1152
1152
  replaced: boolean;
1153
1153
  };
1154
1154
 
1155
+ /**
1156
+ * BlockSourceGraphOperation
1157
+ *
1158
+ * Bar a graph from sharing reports into this one.
1159
+ */
1160
+ export type BlockSourceGraphOperation = {
1161
+ /**
1162
+ * Source Graph Id
1163
+ *
1164
+ * Graph ID to block. Read it off the `source_graph_id` provenance field of a report that was shared to you.
1165
+ */
1166
+ source_graph_id: string;
1167
+ /**
1168
+ * Reason
1169
+ *
1170
+ * Free-form note for your own records. Never disclosed to the sender.
1171
+ */
1172
+ reason?: string | null;
1173
+ /**
1174
+ * Purge
1175
+ *
1176
+ * Also delete every report already shared in from this source, with their fact sets and facts. Reports you authored are never touched.
1177
+ */
1178
+ purge?: boolean;
1179
+ };
1180
+
1181
+ /**
1182
+ * BlockSourceGraphResult
1183
+ *
1184
+ * Outcome of a block, including anything the purge removed.
1185
+ */
1186
+ export type BlockSourceGraphResult = {
1187
+ /**
1188
+ * The block record.
1189
+ */
1190
+ block: BlockedSourceGraphResponse;
1191
+ /**
1192
+ * Already Blocked
1193
+ *
1194
+ * True when the source was already blocked and this call was a no-op apart from any purge.
1195
+ */
1196
+ already_blocked?: boolean;
1197
+ /**
1198
+ * Purged Report Count
1199
+ *
1200
+ * Number of previously-shared reports deleted from this graph. Zero unless `purge` was set.
1201
+ */
1202
+ purged_report_count?: number;
1203
+ /**
1204
+ * Purged Report Ids
1205
+ *
1206
+ * Ids of the previously-shared reports deleted from this graph. Empty unless `purge` was set.
1207
+ */
1208
+ purged_report_ids?: Array<string>;
1209
+ };
1210
+
1211
+ /**
1212
+ * BlockedSourceGraphResponse
1213
+ *
1214
+ * One blocked source graph.
1215
+ */
1216
+ export type BlockedSourceGraphResponse = {
1217
+ /**
1218
+ * Id
1219
+ *
1220
+ * Block row identifier (ULID).
1221
+ */
1222
+ id: string;
1223
+ /**
1224
+ * Source Graph Id
1225
+ *
1226
+ * The blocked sender's graph ID.
1227
+ */
1228
+ source_graph_id: string;
1229
+ /**
1230
+ * Source Graph Name
1231
+ *
1232
+ * Display name of the blocked graph (if known).
1233
+ */
1234
+ source_graph_name?: string | null;
1235
+ /**
1236
+ * Blocked By
1237
+ *
1238
+ * User ID that created the block.
1239
+ */
1240
+ blocked_by: string;
1241
+ /**
1242
+ * Blocked At
1243
+ *
1244
+ * When the block was created.
1245
+ */
1246
+ blocked_at: string;
1247
+ /**
1248
+ * Reason
1249
+ *
1250
+ * Recipient's own note, if given.
1251
+ */
1252
+ reason?: string | null;
1253
+ };
1254
+
1155
1255
  /**
1156
1256
  * CancelSubscriptionRequest
1157
1257
  *
@@ -8318,7 +8418,7 @@ export type LiveFinancialStatementRequest = {
8318
8418
  /**
8319
8419
  * Statement Type
8320
8420
  *
8321
- * income_statement | balance_sheet | equity_statement
8421
+ * income_statement | balance_sheet | cash_flow_statement | equity_statement
8322
8422
  */
8323
8423
  statement_type: string;
8324
8424
  /**
@@ -9161,6 +9261,98 @@ export type OperationEnvelopeBindTextBlockResponse = {
9161
9261
  idempotentReplay?: boolean;
9162
9262
  };
9163
9263
 
9264
+ /**
9265
+ * OperationEnvelope[BlockSourceGraphResult]
9266
+ */
9267
+ export type OperationEnvelopeBlockSourceGraphResult = {
9268
+ /**
9269
+ * Operation
9270
+ *
9271
+ * Kebab-case operation name
9272
+ */
9273
+ operation: string;
9274
+ /**
9275
+ * Operationid
9276
+ *
9277
+ * op_-prefixed ULID for audit and SSE correlation
9278
+ */
9279
+ operationId: string;
9280
+ /**
9281
+ * Status
9282
+ *
9283
+ * Operation lifecycle state
9284
+ */
9285
+ status: 'completed' | 'pending' | 'failed';
9286
+ /**
9287
+ * Command-specific result payload
9288
+ */
9289
+ result?: BlockSourceGraphResult | null;
9290
+ /**
9291
+ * At
9292
+ *
9293
+ * ISO-8601 UTC timestamp
9294
+ */
9295
+ at: string;
9296
+ /**
9297
+ * Createdby
9298
+ *
9299
+ * User ID that initiated the operation (null for legacy callers)
9300
+ */
9301
+ createdBy?: string | null;
9302
+ /**
9303
+ * Idempotentreplay
9304
+ *
9305
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
9306
+ */
9307
+ idempotentReplay?: boolean;
9308
+ };
9309
+
9310
+ /**
9311
+ * OperationEnvelope[BlockedSourceGraphResponse]
9312
+ */
9313
+ export type OperationEnvelopeBlockedSourceGraphResponse = {
9314
+ /**
9315
+ * Operation
9316
+ *
9317
+ * Kebab-case operation name
9318
+ */
9319
+ operation: string;
9320
+ /**
9321
+ * Operationid
9322
+ *
9323
+ * op_-prefixed ULID for audit and SSE correlation
9324
+ */
9325
+ operationId: string;
9326
+ /**
9327
+ * Status
9328
+ *
9329
+ * Operation lifecycle state
9330
+ */
9331
+ status: 'completed' | 'pending' | 'failed';
9332
+ /**
9333
+ * Command-specific result payload
9334
+ */
9335
+ result?: BlockedSourceGraphResponse | null;
9336
+ /**
9337
+ * At
9338
+ *
9339
+ * ISO-8601 UTC timestamp
9340
+ */
9341
+ at: string;
9342
+ /**
9343
+ * Createdby
9344
+ *
9345
+ * User ID that initiated the operation (null for legacy callers)
9346
+ */
9347
+ createdBy?: string | null;
9348
+ /**
9349
+ * Idempotentreplay
9350
+ *
9351
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
9352
+ */
9353
+ idempotentReplay?: boolean;
9354
+ };
9355
+
9164
9356
  /**
9165
9357
  * OperationEnvelope[ChangeReportingStyleResponse]
9166
9358
  */
@@ -10403,6 +10595,52 @@ export type OperationEnvelopeReportResponse = {
10403
10595
  idempotentReplay?: boolean;
10404
10596
  };
10405
10597
 
10598
+ /**
10599
+ * OperationEnvelope[RevokeReportShareResponse]
10600
+ */
10601
+ export type OperationEnvelopeRevokeReportShareResponse = {
10602
+ /**
10603
+ * Operation
10604
+ *
10605
+ * Kebab-case operation name
10606
+ */
10607
+ operation: string;
10608
+ /**
10609
+ * Operationid
10610
+ *
10611
+ * op_-prefixed ULID for audit and SSE correlation
10612
+ */
10613
+ operationId: string;
10614
+ /**
10615
+ * Status
10616
+ *
10617
+ * Operation lifecycle state
10618
+ */
10619
+ status: 'completed' | 'pending' | 'failed';
10620
+ /**
10621
+ * Command-specific result payload
10622
+ */
10623
+ result?: RevokeReportShareResponse | null;
10624
+ /**
10625
+ * At
10626
+ *
10627
+ * ISO-8601 UTC timestamp
10628
+ */
10629
+ at: string;
10630
+ /**
10631
+ * Createdby
10632
+ *
10633
+ * User ID that initiated the operation (null for legacy callers)
10634
+ */
10635
+ createdBy?: string | null;
10636
+ /**
10637
+ * Idempotentreplay
10638
+ *
10639
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
10640
+ */
10641
+ idempotentReplay?: boolean;
10642
+ };
10643
+
10406
10644
  /**
10407
10645
  * OperationEnvelope[ScheduleCreatedResponse]
10408
10646
  */
@@ -11235,34 +11473,18 @@ export type OrgUsageSummary = {
11235
11473
  * Total Storage Gb
11236
11474
  */
11237
11475
  total_storage_gb: number;
11238
- /**
11239
- * Total Api Calls
11240
- */
11241
- total_api_calls: number;
11242
11476
  /**
11243
11477
  * Daily Avg Credits
11244
11478
  */
11245
11479
  daily_avg_credits: number;
11246
- /**
11247
- * Daily Avg Api Calls
11248
- */
11249
- daily_avg_api_calls: number;
11250
11480
  /**
11251
11481
  * Projected Monthly Credits
11252
11482
  */
11253
11483
  projected_monthly_credits: number;
11254
- /**
11255
- * Projected Monthly Api Calls
11256
- */
11257
- projected_monthly_api_calls: number;
11258
11484
  /**
11259
11485
  * Credits Limit
11260
11486
  */
11261
11487
  credits_limit: number | null;
11262
- /**
11263
- * Api Calls Limit
11264
- */
11265
- api_calls_limit: number | null;
11266
11488
  /**
11267
11489
  * Storage Limit Gb
11268
11490
  */
@@ -12849,6 +13071,58 @@ export type ResolvedReportInfo = {
12849
13071
  */
12850
13072
  export type ResponseMode = 'auto' | 'sync' | 'async' | 'stream';
12851
13073
 
13074
+ /**
13075
+ * RevokeReportShareOperation
13076
+ *
13077
+ * Withdraw a shared Report from one recipient graph.
13078
+ */
13079
+ export type RevokeReportShareOperation = {
13080
+ /**
13081
+ * Target Graph Id
13082
+ *
13083
+ * Recipient graph whose copy should be withdrawn.
13084
+ */
13085
+ target_graph_id: string;
13086
+ /**
13087
+ * Report Id
13088
+ *
13089
+ * The Report whose share to withdraw.
13090
+ */
13091
+ report_id: string;
13092
+ };
13093
+
13094
+ /**
13095
+ * RevokeReportShareResponse
13096
+ *
13097
+ * Outcome of withdrawing a shared report from one recipient.
13098
+ */
13099
+ export type RevokeReportShareResponse = {
13100
+ /**
13101
+ * Report Id
13102
+ *
13103
+ * The report whose share was revoked.
13104
+ */
13105
+ report_id: string;
13106
+ /**
13107
+ * Target Graph Id
13108
+ *
13109
+ * Recipient the copy was pulled from.
13110
+ */
13111
+ target_graph_id: string;
13112
+ /**
13113
+ * Revoked At
13114
+ *
13115
+ * When the share was revoked.
13116
+ */
13117
+ revoked_at: string;
13118
+ /**
13119
+ * Copy Deleted
13120
+ *
13121
+ * True when a copy was found and deleted in the recipient's schema. False when the recipient had already deleted it themselves — the share is still marked revoked.
13122
+ */
13123
+ copy_deleted: boolean;
13124
+ };
13125
+
12852
13126
  /**
12853
13127
  * RollforwardMechanics
12854
13128
  *
@@ -13991,9 +14265,11 @@ export type SqlStatementRequest = {
13991
14265
  /**
13992
14266
  * Parameters
13993
14267
  *
13994
- * Query parameters for safe value substitution. ALWAYS use parameters instead of string concatenation.
14268
+ * Query parameters for safe value substitution. ALWAYS use parameters instead of string concatenation. Pass a list for positional placeholders (`?` or `$1`) and an object for named ones (`$param_name`) — the two forms cannot be mixed in one statement.
13995
14269
  */
13996
- parameters?: Array<unknown> | null;
14270
+ parameters?: Array<unknown> | {
14271
+ [key: string]: unknown;
14272
+ } | null;
13997
14273
  };
13998
14274
 
13999
14275
  /**
@@ -15285,6 +15561,20 @@ export type TransitionFilingStatusRequest = {
15285
15561
  target_status: string;
15286
15562
  };
15287
15563
 
15564
+ /**
15565
+ * UnblockSourceGraphOperation
15566
+ *
15567
+ * Lift a block on a source graph.
15568
+ */
15569
+ export type UnblockSourceGraphOperation = {
15570
+ /**
15571
+ * Source Graph Id
15572
+ *
15573
+ * Graph ID to unblock.
15574
+ */
15575
+ source_graph_id: string;
15576
+ };
15577
+
15288
15578
  /**
15289
15579
  * UpcomingInvoice
15290
15580
  *
@@ -26235,6 +26525,70 @@ export type ShareReportResponses = {
26235
26525
 
26236
26526
  export type ShareReportResponse2 = ShareReportResponses[keyof ShareReportResponses];
26237
26527
 
26528
+ export type RevokeReportShareData = {
26529
+ body: RevokeReportShareOperation;
26530
+ headers?: {
26531
+ /**
26532
+ * Idempotency-Key
26533
+ */
26534
+ 'Idempotency-Key'?: string | null;
26535
+ };
26536
+ path: {
26537
+ /**
26538
+ * Graph Id
26539
+ */
26540
+ graph_id: string;
26541
+ };
26542
+ query?: never;
26543
+ url: '/extensions/roboledger/{graph_id}/operations/revoke-report-share';
26544
+ };
26545
+
26546
+ export type RevokeReportShareErrors = {
26547
+ /**
26548
+ * Invalid request
26549
+ */
26550
+ 400: ErrorResponse;
26551
+ /**
26552
+ * Authentication required
26553
+ */
26554
+ 401: ErrorResponse;
26555
+ /**
26556
+ * Access denied
26557
+ */
26558
+ 403: ErrorResponse;
26559
+ /**
26560
+ * Resource not found
26561
+ */
26562
+ 404: ErrorResponse;
26563
+ /**
26564
+ * Idempotency-Key conflict — key reused with different body
26565
+ */
26566
+ 409: ErrorResponse;
26567
+ /**
26568
+ * Validation error
26569
+ */
26570
+ 422: ErrorResponse;
26571
+ /**
26572
+ * Rate limit exceeded
26573
+ */
26574
+ 429: ErrorResponse;
26575
+ /**
26576
+ * Internal server error
26577
+ */
26578
+ 500: ErrorResponse;
26579
+ };
26580
+
26581
+ export type RevokeReportShareError = RevokeReportShareErrors[keyof RevokeReportShareErrors];
26582
+
26583
+ export type RevokeReportShareResponses = {
26584
+ /**
26585
+ * Successful Response
26586
+ */
26587
+ 200: OperationEnvelopeRevokeReportShareResponse;
26588
+ };
26589
+
26590
+ export type RevokeReportShareResponse2 = RevokeReportShareResponses[keyof RevokeReportShareResponses];
26591
+
26238
26592
  export type FileReportData = {
26239
26593
  body: FileReportRequest;
26240
26594
  headers?: {
@@ -26683,6 +27037,134 @@ export type RemovePublishListMemberResponses = {
26683
27037
 
26684
27038
  export type RemovePublishListMemberResponse = RemovePublishListMemberResponses[keyof RemovePublishListMemberResponses];
26685
27039
 
27040
+ export type BlockSourceGraphData = {
27041
+ body: BlockSourceGraphOperation;
27042
+ headers?: {
27043
+ /**
27044
+ * Idempotency-Key
27045
+ */
27046
+ 'Idempotency-Key'?: string | null;
27047
+ };
27048
+ path: {
27049
+ /**
27050
+ * Graph Id
27051
+ */
27052
+ graph_id: string;
27053
+ };
27054
+ query?: never;
27055
+ url: '/extensions/roboledger/{graph_id}/operations/block-source-graph';
27056
+ };
27057
+
27058
+ export type BlockSourceGraphErrors = {
27059
+ /**
27060
+ * Invalid request
27061
+ */
27062
+ 400: ErrorResponse;
27063
+ /**
27064
+ * Authentication required
27065
+ */
27066
+ 401: ErrorResponse;
27067
+ /**
27068
+ * Access denied
27069
+ */
27070
+ 403: ErrorResponse;
27071
+ /**
27072
+ * Resource not found
27073
+ */
27074
+ 404: ErrorResponse;
27075
+ /**
27076
+ * Idempotency-Key conflict — key reused with different body
27077
+ */
27078
+ 409: ErrorResponse;
27079
+ /**
27080
+ * Validation error
27081
+ */
27082
+ 422: ErrorResponse;
27083
+ /**
27084
+ * Rate limit exceeded
27085
+ */
27086
+ 429: ErrorResponse;
27087
+ /**
27088
+ * Internal server error
27089
+ */
27090
+ 500: ErrorResponse;
27091
+ };
27092
+
27093
+ export type BlockSourceGraphError = BlockSourceGraphErrors[keyof BlockSourceGraphErrors];
27094
+
27095
+ export type BlockSourceGraphResponses = {
27096
+ /**
27097
+ * Successful Response
27098
+ */
27099
+ 200: OperationEnvelopeBlockSourceGraphResult;
27100
+ };
27101
+
27102
+ export type BlockSourceGraphResponse = BlockSourceGraphResponses[keyof BlockSourceGraphResponses];
27103
+
27104
+ export type UnblockSourceGraphData = {
27105
+ body: UnblockSourceGraphOperation;
27106
+ headers?: {
27107
+ /**
27108
+ * Idempotency-Key
27109
+ */
27110
+ 'Idempotency-Key'?: string | null;
27111
+ };
27112
+ path: {
27113
+ /**
27114
+ * Graph Id
27115
+ */
27116
+ graph_id: string;
27117
+ };
27118
+ query?: never;
27119
+ url: '/extensions/roboledger/{graph_id}/operations/unblock-source-graph';
27120
+ };
27121
+
27122
+ export type UnblockSourceGraphErrors = {
27123
+ /**
27124
+ * Invalid request
27125
+ */
27126
+ 400: ErrorResponse;
27127
+ /**
27128
+ * Authentication required
27129
+ */
27130
+ 401: ErrorResponse;
27131
+ /**
27132
+ * Access denied
27133
+ */
27134
+ 403: ErrorResponse;
27135
+ /**
27136
+ * Resource not found
27137
+ */
27138
+ 404: ErrorResponse;
27139
+ /**
27140
+ * Idempotency-Key conflict — key reused with different body
27141
+ */
27142
+ 409: ErrorResponse;
27143
+ /**
27144
+ * Validation error
27145
+ */
27146
+ 422: ErrorResponse;
27147
+ /**
27148
+ * Rate limit exceeded
27149
+ */
27150
+ 429: ErrorResponse;
27151
+ /**
27152
+ * Internal server error
27153
+ */
27154
+ 500: ErrorResponse;
27155
+ };
27156
+
27157
+ export type UnblockSourceGraphError = UnblockSourceGraphErrors[keyof UnblockSourceGraphErrors];
27158
+
27159
+ export type UnblockSourceGraphResponses = {
27160
+ /**
27161
+ * Successful Response
27162
+ */
27163
+ 200: OperationEnvelopeBlockedSourceGraphResponse;
27164
+ };
27165
+
27166
+ export type UnblockSourceGraphResponse = UnblockSourceGraphResponses[keyof UnblockSourceGraphResponses];
27167
+
26686
27168
  export type LiveFinancialStatementData = {
26687
27169
  body: LiveFinancialStatementRequest;
26688
27170
  headers?: {