@robosystems/client 0.3.10 → 0.3.11
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/artifacts/LedgerClient.d.ts +89 -72
- package/artifacts/LedgerClient.js +170 -105
- package/artifacts/LedgerClient.ts +260 -220
- package/artifacts/graphql/generated/graphql.d.ts +32 -0
- package/artifacts/graphql/generated/graphql.ts +35 -0
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +9 -9
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +31 -31
- package/sdk/sdk.gen.js +51 -51
- package/sdk/sdk.gen.ts +41 -41
- package/sdk/types.gen.d.ts +538 -390
- package/sdk/types.gen.ts +543 -393
- package/sdk.gen.d.ts +31 -31
- package/sdk.gen.js +51 -51
- package/sdk.gen.ts +41 -41
- package/types.gen.d.ts +538 -390
- package/types.gen.ts +543 -393
package/types.gen.d.ts
CHANGED
|
@@ -1250,6 +1250,79 @@ export type CreateApiKeyResponse = {
|
|
|
1250
1250
|
*/
|
|
1251
1251
|
key: string;
|
|
1252
1252
|
};
|
|
1253
|
+
/**
|
|
1254
|
+
* CreateAgentRequest
|
|
1255
|
+
*/
|
|
1256
|
+
export type CreateAgentRequest = {
|
|
1257
|
+
/**
|
|
1258
|
+
* Agent Type
|
|
1259
|
+
*
|
|
1260
|
+
* 'customer' | 'vendor' | 'employee' | 'owner' | 'supplier' | 'government' | 'lender' | 'self' | 'other'
|
|
1261
|
+
*/
|
|
1262
|
+
agent_type: string;
|
|
1263
|
+
/**
|
|
1264
|
+
* Name
|
|
1265
|
+
*/
|
|
1266
|
+
name: string;
|
|
1267
|
+
/**
|
|
1268
|
+
* Legal Name
|
|
1269
|
+
*/
|
|
1270
|
+
legal_name?: string | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* Tax Id
|
|
1273
|
+
*/
|
|
1274
|
+
tax_id?: string | null;
|
|
1275
|
+
/**
|
|
1276
|
+
* Registration Number
|
|
1277
|
+
*/
|
|
1278
|
+
registration_number?: string | null;
|
|
1279
|
+
/**
|
|
1280
|
+
* Duns
|
|
1281
|
+
*/
|
|
1282
|
+
duns?: string | null;
|
|
1283
|
+
/**
|
|
1284
|
+
* Lei
|
|
1285
|
+
*/
|
|
1286
|
+
lei?: string | null;
|
|
1287
|
+
/**
|
|
1288
|
+
* Email
|
|
1289
|
+
*/
|
|
1290
|
+
email?: string | null;
|
|
1291
|
+
/**
|
|
1292
|
+
* Phone
|
|
1293
|
+
*/
|
|
1294
|
+
phone?: string | null;
|
|
1295
|
+
/**
|
|
1296
|
+
* Address
|
|
1297
|
+
*/
|
|
1298
|
+
address?: {
|
|
1299
|
+
[key: string]: unknown;
|
|
1300
|
+
} | null;
|
|
1301
|
+
/**
|
|
1302
|
+
* Source
|
|
1303
|
+
*
|
|
1304
|
+
* 'quickbooks' | 'xero' | 'plaid' | 'native'
|
|
1305
|
+
*/
|
|
1306
|
+
source?: string;
|
|
1307
|
+
/**
|
|
1308
|
+
* External Id
|
|
1309
|
+
*/
|
|
1310
|
+
external_id?: string | null;
|
|
1311
|
+
/**
|
|
1312
|
+
* Is Active
|
|
1313
|
+
*/
|
|
1314
|
+
is_active?: boolean;
|
|
1315
|
+
/**
|
|
1316
|
+
* Is 1099 Recipient
|
|
1317
|
+
*/
|
|
1318
|
+
is_1099_recipient?: boolean;
|
|
1319
|
+
/**
|
|
1320
|
+
* Metadata
|
|
1321
|
+
*/
|
|
1322
|
+
metadata?: {
|
|
1323
|
+
[key: string]: unknown;
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1253
1326
|
/**
|
|
1254
1327
|
* CreateCheckoutRequest
|
|
1255
1328
|
*
|
|
@@ -1278,65 +1351,186 @@ export type CreateCheckoutRequest = {
|
|
|
1278
1351
|
};
|
|
1279
1352
|
};
|
|
1280
1353
|
/**
|
|
1281
|
-
*
|
|
1354
|
+
* CreateConnectionRequest
|
|
1282
1355
|
*
|
|
1283
|
-
*
|
|
1356
|
+
* Request to create a new connection.
|
|
1357
|
+
*/
|
|
1358
|
+
export type CreateConnectionRequest = {
|
|
1359
|
+
/**
|
|
1360
|
+
* Provider
|
|
1361
|
+
*
|
|
1362
|
+
* Connection provider type
|
|
1363
|
+
*/
|
|
1364
|
+
provider: 'sec' | 'quickbooks';
|
|
1365
|
+
/**
|
|
1366
|
+
* Entity Id
|
|
1367
|
+
*
|
|
1368
|
+
* Entity identifier. Required for QuickBooks, optional for SEC (SEC creates the entity from filing data).
|
|
1369
|
+
*/
|
|
1370
|
+
entity_id?: string | null;
|
|
1371
|
+
sec_config?: SecConnectionConfig | null;
|
|
1372
|
+
quickbooks_config?: QuickBooksConnectionConfig | null;
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* CreateEventBlockRequest
|
|
1284
1376
|
*
|
|
1285
|
-
*
|
|
1286
|
-
* type via the registrar.
|
|
1377
|
+
* Write surface for a single business event.
|
|
1287
1378
|
*/
|
|
1288
|
-
export type
|
|
1379
|
+
export type CreateEventBlockRequest = {
|
|
1289
1380
|
/**
|
|
1290
|
-
*
|
|
1381
|
+
* Event Type
|
|
1291
1382
|
*
|
|
1292
|
-
*
|
|
1383
|
+
* Open vocabulary: 'invoice_issued' | 'contract_signed' | 'bank_transaction' | ...
|
|
1293
1384
|
*/
|
|
1294
|
-
|
|
1385
|
+
event_type: string;
|
|
1295
1386
|
/**
|
|
1296
|
-
*
|
|
1387
|
+
* Event Category
|
|
1297
1388
|
*
|
|
1298
|
-
*
|
|
1389
|
+
* REA economic classification. One of: sales, purchase, financing, payroll, treasury, adjustment, recognition, other.
|
|
1299
1390
|
*/
|
|
1300
|
-
|
|
1391
|
+
event_category: 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other';
|
|
1301
1392
|
/**
|
|
1302
|
-
*
|
|
1393
|
+
* Agent Id
|
|
1303
1394
|
*
|
|
1304
|
-
*
|
|
1395
|
+
* Counterparty agent id
|
|
1305
1396
|
*/
|
|
1306
|
-
|
|
1397
|
+
agent_id?: string | null;
|
|
1307
1398
|
/**
|
|
1308
|
-
*
|
|
1399
|
+
* Resource Type
|
|
1309
1400
|
*
|
|
1310
|
-
*
|
|
1401
|
+
* REA resource kind. One of: goods, services, money, right, obligation, information, labor.
|
|
1311
1402
|
*/
|
|
1312
|
-
|
|
1403
|
+
resource_type?: 'goods' | 'services' | 'money' | 'right' | 'obligation' | 'information' | 'labor' | null;
|
|
1313
1404
|
/**
|
|
1314
|
-
*
|
|
1405
|
+
* Resource Element Id
|
|
1315
1406
|
*
|
|
1316
|
-
*
|
|
1407
|
+
* Specific element being exchanged, if applicable
|
|
1317
1408
|
*/
|
|
1318
|
-
|
|
1409
|
+
resource_element_id?: string | null;
|
|
1410
|
+
/**
|
|
1411
|
+
* Occurred At
|
|
1412
|
+
*
|
|
1413
|
+
* When the event happened in the real world
|
|
1414
|
+
*/
|
|
1415
|
+
occurred_at: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* Effective At
|
|
1418
|
+
*
|
|
1419
|
+
* Accounting recognition date, if different from occurred_at
|
|
1420
|
+
*/
|
|
1421
|
+
effective_at?: string | null;
|
|
1422
|
+
/**
|
|
1423
|
+
* Source
|
|
1424
|
+
*
|
|
1425
|
+
* 'quickbooks' | 'xero' | 'plaid' | 'native' | 'scheduled' | ...
|
|
1426
|
+
*/
|
|
1427
|
+
source: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* External Id
|
|
1430
|
+
*
|
|
1431
|
+
* Source-system dedup key. (source, external_id) is enforced unique when external_id is provided, so retries from external adapters are idempotent at the DB level.
|
|
1432
|
+
*/
|
|
1433
|
+
external_id?: string | null;
|
|
1434
|
+
/**
|
|
1435
|
+
* External Url
|
|
1436
|
+
*
|
|
1437
|
+
* Deep link back to source-system record
|
|
1438
|
+
*/
|
|
1439
|
+
external_url?: string | null;
|
|
1440
|
+
/**
|
|
1441
|
+
* Amount
|
|
1442
|
+
*
|
|
1443
|
+
* Cents, signed
|
|
1444
|
+
*/
|
|
1445
|
+
amount?: number | null;
|
|
1446
|
+
/**
|
|
1447
|
+
* Currency
|
|
1448
|
+
*
|
|
1449
|
+
* ISO 4217 currency code
|
|
1450
|
+
*/
|
|
1451
|
+
currency?: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* Description
|
|
1454
|
+
*/
|
|
1455
|
+
description?: string | null;
|
|
1456
|
+
/**
|
|
1457
|
+
* Metadata
|
|
1458
|
+
*
|
|
1459
|
+
* Event-type-specific payload
|
|
1460
|
+
*/
|
|
1461
|
+
metadata?: {
|
|
1462
|
+
[key: string]: unknown;
|
|
1463
|
+
};
|
|
1464
|
+
/**
|
|
1465
|
+
* Dimension Ids
|
|
1466
|
+
*/
|
|
1467
|
+
dimension_ids?: Array<string>;
|
|
1468
|
+
/**
|
|
1469
|
+
* Apply Handlers
|
|
1470
|
+
*
|
|
1471
|
+
* When True, resolves the event_type to a handler (Python registry first, then DSL) and fires it atomically with event creation.
|
|
1472
|
+
*/
|
|
1473
|
+
apply_handlers?: boolean;
|
|
1319
1474
|
};
|
|
1320
1475
|
/**
|
|
1321
|
-
*
|
|
1322
|
-
*
|
|
1323
|
-
* Request to create a new connection.
|
|
1476
|
+
* CreateEventHandlerRequest
|
|
1324
1477
|
*/
|
|
1325
|
-
export type
|
|
1478
|
+
export type CreateEventHandlerRequest = {
|
|
1326
1479
|
/**
|
|
1327
|
-
*
|
|
1328
|
-
*
|
|
1329
|
-
* Connection provider type
|
|
1480
|
+
* Name
|
|
1330
1481
|
*/
|
|
1331
|
-
|
|
1482
|
+
name: string;
|
|
1332
1483
|
/**
|
|
1333
|
-
*
|
|
1484
|
+
* Description
|
|
1485
|
+
*/
|
|
1486
|
+
description?: string | null;
|
|
1487
|
+
/**
|
|
1488
|
+
* Event Type
|
|
1489
|
+
*/
|
|
1490
|
+
event_type: string;
|
|
1491
|
+
/**
|
|
1492
|
+
* Event Category
|
|
1493
|
+
*/
|
|
1494
|
+
event_category?: string | null;
|
|
1495
|
+
/**
|
|
1496
|
+
* Match Source
|
|
1497
|
+
*/
|
|
1498
|
+
match_source?: string | null;
|
|
1499
|
+
/**
|
|
1500
|
+
* Match Agent Type
|
|
1501
|
+
*/
|
|
1502
|
+
match_agent_type?: string | null;
|
|
1503
|
+
/**
|
|
1504
|
+
* Match Resource Type
|
|
1505
|
+
*/
|
|
1506
|
+
match_resource_type?: string | null;
|
|
1507
|
+
/**
|
|
1508
|
+
* Match Metadata Expression
|
|
1334
1509
|
*
|
|
1335
|
-
*
|
|
1510
|
+
* JSONPath-style equality map, e.g. {"metadata.category": "payroll"}
|
|
1336
1511
|
*/
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1512
|
+
match_metadata_expression?: {
|
|
1513
|
+
[key: string]: unknown;
|
|
1514
|
+
} | null;
|
|
1515
|
+
transaction_template: TransactionTemplate;
|
|
1516
|
+
/**
|
|
1517
|
+
* Priority
|
|
1518
|
+
*/
|
|
1519
|
+
priority?: number;
|
|
1520
|
+
/**
|
|
1521
|
+
* Is Active
|
|
1522
|
+
*/
|
|
1523
|
+
is_active?: boolean;
|
|
1524
|
+
/**
|
|
1525
|
+
* Origin
|
|
1526
|
+
*/
|
|
1527
|
+
origin?: 'hub' | 'tenant';
|
|
1528
|
+
/**
|
|
1529
|
+
* Metadata
|
|
1530
|
+
*/
|
|
1531
|
+
metadata?: {
|
|
1532
|
+
[key: string]: unknown;
|
|
1533
|
+
};
|
|
1340
1534
|
};
|
|
1341
1535
|
/**
|
|
1342
1536
|
* CreateGraphRequest
|
|
@@ -1407,75 +1601,6 @@ export type CreateInformationBlockRequest = {
|
|
|
1407
1601
|
[key: string]: unknown;
|
|
1408
1602
|
};
|
|
1409
1603
|
};
|
|
1410
|
-
/**
|
|
1411
|
-
* CreateJournalEntryRequest
|
|
1412
|
-
*
|
|
1413
|
-
* Create a new journal entry with balanced line items.
|
|
1414
|
-
*
|
|
1415
|
-
* Defaults to `status='draft'` for ongoing native writes (the normal
|
|
1416
|
-
* workflow: draft → review → post via close-period). Pass
|
|
1417
|
-
* `status='posted'` for historical data import where entries represent
|
|
1418
|
-
* already-happened business events that don't need review.
|
|
1419
|
-
*
|
|
1420
|
-
* Total debit amount must equal total credit amount or the request
|
|
1421
|
-
* is rejected with 422. `line_items` must contain at least two rows
|
|
1422
|
-
* (at least one debit, at least one credit).
|
|
1423
|
-
*/
|
|
1424
|
-
export type CreateJournalEntryRequest = {
|
|
1425
|
-
/**
|
|
1426
|
-
* Posting Date
|
|
1427
|
-
*/
|
|
1428
|
-
posting_date: string;
|
|
1429
|
-
/**
|
|
1430
|
-
* Memo
|
|
1431
|
-
*/
|
|
1432
|
-
memo: string;
|
|
1433
|
-
/**
|
|
1434
|
-
* Line Items
|
|
1435
|
-
*/
|
|
1436
|
-
line_items: Array<JournalEntryLineItemInput>;
|
|
1437
|
-
/**
|
|
1438
|
-
* Type
|
|
1439
|
-
*/
|
|
1440
|
-
type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
|
|
1441
|
-
/**
|
|
1442
|
-
* Status
|
|
1443
|
-
*/
|
|
1444
|
-
status?: 'draft' | 'posted';
|
|
1445
|
-
/**
|
|
1446
|
-
* Transaction Id
|
|
1447
|
-
*/
|
|
1448
|
-
transaction_id?: string | null;
|
|
1449
|
-
};
|
|
1450
|
-
/**
|
|
1451
|
-
* CreateManualClosingEntryRequest
|
|
1452
|
-
*/
|
|
1453
|
-
export type CreateManualClosingEntryRequest = {
|
|
1454
|
-
/**
|
|
1455
|
-
* Posting Date
|
|
1456
|
-
*
|
|
1457
|
-
* Posting date for the entry
|
|
1458
|
-
*/
|
|
1459
|
-
posting_date: string;
|
|
1460
|
-
/**
|
|
1461
|
-
* Memo
|
|
1462
|
-
*
|
|
1463
|
-
* Memo describing the business event (e.g., 'Sale of computer to Vendor X on 3/15')
|
|
1464
|
-
*/
|
|
1465
|
-
memo: string;
|
|
1466
|
-
/**
|
|
1467
|
-
* Line Items
|
|
1468
|
-
*
|
|
1469
|
-
* Line items; must balance (total DR = total CR)
|
|
1470
|
-
*/
|
|
1471
|
-
line_items: Array<ManualLineItemRequest>;
|
|
1472
|
-
/**
|
|
1473
|
-
* Entry Type
|
|
1474
|
-
*
|
|
1475
|
-
* Entry type: 'closing' (default), 'adjusting', 'standard', 'reversing'
|
|
1476
|
-
*/
|
|
1477
|
-
entry_type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
|
|
1478
|
-
};
|
|
1479
1604
|
/**
|
|
1480
1605
|
* CreateMappingAssociationOperation
|
|
1481
1606
|
*
|
|
@@ -1837,65 +1962,6 @@ export type CreateTaxonomyBlockRequest = {
|
|
|
1837
1962
|
[key: string]: unknown;
|
|
1838
1963
|
};
|
|
1839
1964
|
};
|
|
1840
|
-
/**
|
|
1841
|
-
* CreateTransactionRequest
|
|
1842
|
-
*
|
|
1843
|
-
* Create a standalone business-event Transaction.
|
|
1844
|
-
*
|
|
1845
|
-
* Use this when you want to record a real-world event (invoice, payment,
|
|
1846
|
-
* deposit, expense) first and then attach one or more journal entries to
|
|
1847
|
-
* it via `create-journal-entry` with the returned `transaction_id`.
|
|
1848
|
-
*
|
|
1849
|
-
* `amount` is in minor currency units (cents). `type` is free-form but
|
|
1850
|
-
* common values are: invoice, payment, bill, expense, deposit, transfer,
|
|
1851
|
-
* journal_entry.
|
|
1852
|
-
*/
|
|
1853
|
-
export type CreateTransactionRequest = {
|
|
1854
|
-
/**
|
|
1855
|
-
* Type
|
|
1856
|
-
*/
|
|
1857
|
-
type: string;
|
|
1858
|
-
/**
|
|
1859
|
-
* Date
|
|
1860
|
-
*/
|
|
1861
|
-
date: string;
|
|
1862
|
-
/**
|
|
1863
|
-
* Amount
|
|
1864
|
-
*/
|
|
1865
|
-
amount: number;
|
|
1866
|
-
/**
|
|
1867
|
-
* Currency
|
|
1868
|
-
*/
|
|
1869
|
-
currency?: string;
|
|
1870
|
-
/**
|
|
1871
|
-
* Description
|
|
1872
|
-
*/
|
|
1873
|
-
description?: string | null;
|
|
1874
|
-
/**
|
|
1875
|
-
* Merchant Name
|
|
1876
|
-
*/
|
|
1877
|
-
merchant_name?: string | null;
|
|
1878
|
-
/**
|
|
1879
|
-
* Reference Number
|
|
1880
|
-
*/
|
|
1881
|
-
reference_number?: string | null;
|
|
1882
|
-
/**
|
|
1883
|
-
* Number
|
|
1884
|
-
*/
|
|
1885
|
-
number?: string | null;
|
|
1886
|
-
/**
|
|
1887
|
-
* Category
|
|
1888
|
-
*/
|
|
1889
|
-
category?: string | null;
|
|
1890
|
-
/**
|
|
1891
|
-
* Due Date
|
|
1892
|
-
*/
|
|
1893
|
-
due_date?: string | null;
|
|
1894
|
-
/**
|
|
1895
|
-
* Status
|
|
1896
|
-
*/
|
|
1897
|
-
status?: 'pending' | 'posted';
|
|
1898
|
-
};
|
|
1899
1965
|
/**
|
|
1900
1966
|
* CreateViewRequest
|
|
1901
1967
|
*/
|
|
@@ -2614,59 +2680,6 @@ export type DetailedTransactionsResponse = {
|
|
|
2614
2680
|
[key: string]: string;
|
|
2615
2681
|
};
|
|
2616
2682
|
};
|
|
2617
|
-
/**
|
|
2618
|
-
* DisposeScheduleRequest
|
|
2619
|
-
*
|
|
2620
|
-
* Dispose a schedule early — combines truncation with a disposal closing entry.
|
|
2621
|
-
*
|
|
2622
|
-
* Computes net book value from the schedule's own facts, truncates forward
|
|
2623
|
-
* periods, and creates a balanced disposal entry in one atomic operation.
|
|
2624
|
-
* Use when an asset is sold or abandoned before the schedule runs to completion.
|
|
2625
|
-
*/
|
|
2626
|
-
export type DisposeScheduleRequest = {
|
|
2627
|
-
/**
|
|
2628
|
-
* Structure Id
|
|
2629
|
-
*
|
|
2630
|
-
* Target schedule structure ID.
|
|
2631
|
-
*/
|
|
2632
|
-
structure_id: string;
|
|
2633
|
-
/**
|
|
2634
|
-
* Disposal Date
|
|
2635
|
-
*
|
|
2636
|
-
* Last day of the final period (month-end). Forward facts past this date are deleted; the disposal entry is posted on this date.
|
|
2637
|
-
*/
|
|
2638
|
-
disposal_date: string;
|
|
2639
|
-
/**
|
|
2640
|
-
* Sale Proceeds
|
|
2641
|
-
*
|
|
2642
|
-
* Cash received from the sale in cents. None or 0 for abandonment (no cash received). If provided, `proceeds_element_id` is required.
|
|
2643
|
-
*/
|
|
2644
|
-
sale_proceeds?: number | null;
|
|
2645
|
-
/**
|
|
2646
|
-
* Proceeds Element Id
|
|
2647
|
-
*
|
|
2648
|
-
* Element to debit for sale proceeds (e.g., Cash or AR). Required when sale_proceeds > 0.
|
|
2649
|
-
*/
|
|
2650
|
-
proceeds_element_id?: string | null;
|
|
2651
|
-
/**
|
|
2652
|
-
* Gain Loss Element Id
|
|
2653
|
-
*
|
|
2654
|
-
* Element for gain or loss on disposal. Required when net book value > 0 after applying sale proceeds. Optional when asset is fully depreciated (NBV = 0, no gain/loss line needed).
|
|
2655
|
-
*/
|
|
2656
|
-
gain_loss_element_id?: string | null;
|
|
2657
|
-
/**
|
|
2658
|
-
* Memo
|
|
2659
|
-
*
|
|
2660
|
-
* Memo for the disposal closing entry.
|
|
2661
|
-
*/
|
|
2662
|
-
memo: string;
|
|
2663
|
-
/**
|
|
2664
|
-
* Reason
|
|
2665
|
-
*
|
|
2666
|
-
* Reason for disposal (audit trail).
|
|
2667
|
-
*/
|
|
2668
|
-
reason: string;
|
|
2669
|
-
};
|
|
2670
2683
|
/**
|
|
2671
2684
|
* DocumentDetailResponse
|
|
2672
2685
|
*
|
|
@@ -4794,45 +4807,18 @@ export type McpToolCall = {
|
|
|
4794
4807
|
};
|
|
4795
4808
|
/**
|
|
4796
4809
|
* MCPToolsResponse
|
|
4797
|
-
*
|
|
4798
|
-
* Response model for MCP tools listing.
|
|
4799
|
-
*/
|
|
4800
|
-
export type McpToolsResponse = {
|
|
4801
|
-
/**
|
|
4802
|
-
* Tools
|
|
4803
|
-
*
|
|
4804
|
-
* List of available MCP tools with their schemas
|
|
4805
|
-
*/
|
|
4806
|
-
tools: Array<{
|
|
4807
|
-
[key: string]: unknown;
|
|
4808
|
-
}>;
|
|
4809
|
-
};
|
|
4810
|
-
/**
|
|
4811
|
-
* ManualLineItemRequest
|
|
4812
|
-
*/
|
|
4813
|
-
export type ManualLineItemRequest = {
|
|
4814
|
-
/**
|
|
4815
|
-
* Element Id
|
|
4816
|
-
*
|
|
4817
|
-
* Element ID (chart of accounts)
|
|
4818
|
-
*/
|
|
4819
|
-
element_id: string;
|
|
4820
|
-
/**
|
|
4821
|
-
* Debit Amount
|
|
4822
|
-
*
|
|
4823
|
-
* Debit in cents
|
|
4824
|
-
*/
|
|
4825
|
-
debit_amount?: number;
|
|
4810
|
+
*
|
|
4811
|
+
* Response model for MCP tools listing.
|
|
4812
|
+
*/
|
|
4813
|
+
export type McpToolsResponse = {
|
|
4826
4814
|
/**
|
|
4827
|
-
*
|
|
4815
|
+
* Tools
|
|
4828
4816
|
*
|
|
4829
|
-
*
|
|
4830
|
-
*/
|
|
4831
|
-
credit_amount?: number;
|
|
4832
|
-
/**
|
|
4833
|
-
* Description
|
|
4817
|
+
* List of available MCP tools with their schemas
|
|
4834
4818
|
*/
|
|
4835
|
-
|
|
4819
|
+
tools: Array<{
|
|
4820
|
+
[key: string]: unknown;
|
|
4821
|
+
}>;
|
|
4836
4822
|
};
|
|
4837
4823
|
/**
|
|
4838
4824
|
* MaterializeOp
|
|
@@ -5911,34 +5897,6 @@ export type RestoreBackupOp = {
|
|
|
5911
5897
|
*/
|
|
5912
5898
|
verify_after_restore?: boolean;
|
|
5913
5899
|
};
|
|
5914
|
-
/**
|
|
5915
|
-
* ReverseJournalEntryRequest
|
|
5916
|
-
*
|
|
5917
|
-
* Reverse a posted journal entry.
|
|
5918
|
-
*
|
|
5919
|
-
* Creates a new entry whose line items flip the originals
|
|
5920
|
-
* (debits → credits, credits → debits), sets `reversal_of` on the new
|
|
5921
|
-
* entry to the original's id, marks the original as
|
|
5922
|
-
* `status='reversed'`, and posts the reversing entry immediately.
|
|
5923
|
-
*
|
|
5924
|
-
* This is how accountants correct posted entries — the original stays
|
|
5925
|
-
* in the audit trail, the reversal cancels its effect, and a
|
|
5926
|
-
* corrected entry can be created separately.
|
|
5927
|
-
*/
|
|
5928
|
-
export type ReverseJournalEntryRequest = {
|
|
5929
|
-
/**
|
|
5930
|
-
* Entry Id
|
|
5931
|
-
*/
|
|
5932
|
-
entry_id: string;
|
|
5933
|
-
/**
|
|
5934
|
-
* Posting Date
|
|
5935
|
-
*/
|
|
5936
|
-
posting_date?: string | null;
|
|
5937
|
-
/**
|
|
5938
|
-
* Memo
|
|
5939
|
-
*/
|
|
5940
|
-
memo?: string | null;
|
|
5941
|
-
};
|
|
5942
5900
|
/**
|
|
5943
5901
|
* SECConnectionConfig
|
|
5944
5902
|
*
|
|
@@ -7267,34 +7225,64 @@ export type TransactionSummaryResponse = {
|
|
|
7267
7225
|
last_transaction?: string | null;
|
|
7268
7226
|
};
|
|
7269
7227
|
/**
|
|
7270
|
-
*
|
|
7228
|
+
* TransactionTemplate
|
|
7229
|
+
*
|
|
7230
|
+
* The handler's output spec — one or more balanced entries to post.
|
|
7271
7231
|
*
|
|
7272
|
-
*
|
|
7232
|
+
* Wire shape::
|
|
7273
7233
|
*
|
|
7274
|
-
*
|
|
7275
|
-
*
|
|
7276
|
-
*
|
|
7277
|
-
*
|
|
7234
|
+
* {
|
|
7235
|
+
* "transactions": [{
|
|
7236
|
+
* "entry_template": {
|
|
7237
|
+
* "debit": {"element_id": "elem_...", "amount": "{{ event.amount }}"},
|
|
7238
|
+
* "credit": {"element_id": "elem_...", "amount": "{{ event.amount }}"}
|
|
7239
|
+
* }
|
|
7240
|
+
* }]
|
|
7241
|
+
* }
|
|
7278
7242
|
*/
|
|
7279
|
-
export type
|
|
7243
|
+
export type TransactionTemplate = {
|
|
7280
7244
|
/**
|
|
7281
|
-
*
|
|
7245
|
+
* Transactions
|
|
7282
7246
|
*
|
|
7283
|
-
*
|
|
7247
|
+
* At least one debit/credit entry pair
|
|
7284
7248
|
*/
|
|
7285
|
-
|
|
7249
|
+
transactions: Array<TransactionTemplateItem>;
|
|
7250
|
+
};
|
|
7251
|
+
/**
|
|
7252
|
+
* TransactionTemplateEntry
|
|
7253
|
+
*
|
|
7254
|
+
* One balanced entry (debit + credit pair) — the inner shape of entry_template.
|
|
7255
|
+
*/
|
|
7256
|
+
export type TransactionTemplateEntry = {
|
|
7257
|
+
debit: TransactionTemplateLeg;
|
|
7258
|
+
credit: TransactionTemplateLeg;
|
|
7259
|
+
};
|
|
7260
|
+
/**
|
|
7261
|
+
* TransactionTemplateItem
|
|
7262
|
+
*
|
|
7263
|
+
* One item in the transactions list — wraps entry_template to match the DSL shape.
|
|
7264
|
+
*/
|
|
7265
|
+
export type TransactionTemplateItem = {
|
|
7266
|
+
entry_template: TransactionTemplateEntry;
|
|
7267
|
+
};
|
|
7268
|
+
/**
|
|
7269
|
+
* TransactionTemplateLeg
|
|
7270
|
+
*
|
|
7271
|
+
* One side of a journal entry leg (debit or credit).
|
|
7272
|
+
*/
|
|
7273
|
+
export type TransactionTemplateLeg = {
|
|
7286
7274
|
/**
|
|
7287
|
-
*
|
|
7275
|
+
* Element Id
|
|
7288
7276
|
*
|
|
7289
|
-
*
|
|
7277
|
+
* Element ULID (elem_ prefixed) identifying the account to post to
|
|
7290
7278
|
*/
|
|
7291
|
-
|
|
7279
|
+
element_id: string;
|
|
7292
7280
|
/**
|
|
7293
|
-
*
|
|
7281
|
+
* Amount
|
|
7294
7282
|
*
|
|
7295
|
-
*
|
|
7283
|
+
* Amount expression. Supports: '{{ event.amount }}' — raw event amount (cents); '{{ event.amount }} / 2' — half of event amount; '{{ event.metadata.fee_cents }}' — field from event metadata
|
|
7296
7284
|
*/
|
|
7297
|
-
|
|
7285
|
+
amount: string;
|
|
7298
7286
|
};
|
|
7299
7287
|
/**
|
|
7300
7288
|
* UpcomingInvoice
|
|
@@ -7358,6 +7346,67 @@ export type UpdateApiKeyRequest = {
|
|
|
7358
7346
|
*/
|
|
7359
7347
|
description?: string | null;
|
|
7360
7348
|
};
|
|
7349
|
+
/**
|
|
7350
|
+
* UpdateAgentRequest
|
|
7351
|
+
*/
|
|
7352
|
+
export type UpdateAgentRequest = {
|
|
7353
|
+
/**
|
|
7354
|
+
* Agent Id
|
|
7355
|
+
*/
|
|
7356
|
+
agent_id: string;
|
|
7357
|
+
/**
|
|
7358
|
+
* Name
|
|
7359
|
+
*/
|
|
7360
|
+
name?: string | null;
|
|
7361
|
+
/**
|
|
7362
|
+
* Legal Name
|
|
7363
|
+
*/
|
|
7364
|
+
legal_name?: string | null;
|
|
7365
|
+
/**
|
|
7366
|
+
* Tax Id
|
|
7367
|
+
*/
|
|
7368
|
+
tax_id?: string | null;
|
|
7369
|
+
/**
|
|
7370
|
+
* Registration Number
|
|
7371
|
+
*/
|
|
7372
|
+
registration_number?: string | null;
|
|
7373
|
+
/**
|
|
7374
|
+
* Duns
|
|
7375
|
+
*/
|
|
7376
|
+
duns?: string | null;
|
|
7377
|
+
/**
|
|
7378
|
+
* Lei
|
|
7379
|
+
*/
|
|
7380
|
+
lei?: string | null;
|
|
7381
|
+
/**
|
|
7382
|
+
* Email
|
|
7383
|
+
*/
|
|
7384
|
+
email?: string | null;
|
|
7385
|
+
/**
|
|
7386
|
+
* Phone
|
|
7387
|
+
*/
|
|
7388
|
+
phone?: string | null;
|
|
7389
|
+
/**
|
|
7390
|
+
* Address
|
|
7391
|
+
*/
|
|
7392
|
+
address?: {
|
|
7393
|
+
[key: string]: unknown;
|
|
7394
|
+
} | null;
|
|
7395
|
+
/**
|
|
7396
|
+
* Is Active
|
|
7397
|
+
*/
|
|
7398
|
+
is_active?: boolean | null;
|
|
7399
|
+
/**
|
|
7400
|
+
* Is 1099 Recipient
|
|
7401
|
+
*/
|
|
7402
|
+
is_1099_recipient?: boolean | null;
|
|
7403
|
+
/**
|
|
7404
|
+
* Metadata Patch
|
|
7405
|
+
*/
|
|
7406
|
+
metadata_patch?: {
|
|
7407
|
+
[key: string]: unknown;
|
|
7408
|
+
};
|
|
7409
|
+
};
|
|
7361
7410
|
/**
|
|
7362
7411
|
* UpdateEntityRequest
|
|
7363
7412
|
*
|
|
@@ -7453,6 +7502,105 @@ export type UpdateEntityRequest = {
|
|
|
7453
7502
|
*/
|
|
7454
7503
|
address_country?: string | null;
|
|
7455
7504
|
};
|
|
7505
|
+
/**
|
|
7506
|
+
* UpdateEventBlockRequest
|
|
7507
|
+
*
|
|
7508
|
+
* Status transitions and field corrections for an event block.
|
|
7509
|
+
*
|
|
7510
|
+
* All fields except event_id are optional — only supplied fields are updated.
|
|
7511
|
+
*/
|
|
7512
|
+
export type UpdateEventBlockRequest = {
|
|
7513
|
+
/**
|
|
7514
|
+
* Event Id
|
|
7515
|
+
*/
|
|
7516
|
+
event_id: string;
|
|
7517
|
+
/**
|
|
7518
|
+
* Transition To
|
|
7519
|
+
*
|
|
7520
|
+
* Status transition. Valid moves depend on current status: captured → committed | voided; classified → committed | pending | fulfilled | voided; committed → pending | fulfilled | voided; pending → fulfilled | voided. Terminal states (fulfilled, voided, superseded) accept no further transitions. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
|
|
7521
|
+
*/
|
|
7522
|
+
transition_to?: 'committed' | 'pending' | 'fulfilled' | 'voided' | 'superseded' | null;
|
|
7523
|
+
/**
|
|
7524
|
+
* Superseded By Id
|
|
7525
|
+
*
|
|
7526
|
+
* New event id that replaces this one. Required when transition_to='superseded'.
|
|
7527
|
+
*/
|
|
7528
|
+
superseded_by_id?: string | null;
|
|
7529
|
+
/**
|
|
7530
|
+
* Description
|
|
7531
|
+
*/
|
|
7532
|
+
description?: string | null;
|
|
7533
|
+
/**
|
|
7534
|
+
* Effective At
|
|
7535
|
+
*/
|
|
7536
|
+
effective_at?: string | null;
|
|
7537
|
+
/**
|
|
7538
|
+
* Metadata Patch
|
|
7539
|
+
*
|
|
7540
|
+
* Key-value pairs merged into existing metadata (additive patch, not replace).
|
|
7541
|
+
*/
|
|
7542
|
+
metadata_patch?: {
|
|
7543
|
+
[key: string]: unknown;
|
|
7544
|
+
};
|
|
7545
|
+
};
|
|
7546
|
+
/**
|
|
7547
|
+
* UpdateEventHandlerRequest
|
|
7548
|
+
*/
|
|
7549
|
+
export type UpdateEventHandlerRequest = {
|
|
7550
|
+
/**
|
|
7551
|
+
* Event Handler Id
|
|
7552
|
+
*/
|
|
7553
|
+
event_handler_id: string;
|
|
7554
|
+
/**
|
|
7555
|
+
* Name
|
|
7556
|
+
*/
|
|
7557
|
+
name?: string | null;
|
|
7558
|
+
/**
|
|
7559
|
+
* Description
|
|
7560
|
+
*/
|
|
7561
|
+
description?: string | null;
|
|
7562
|
+
/**
|
|
7563
|
+
* Event Category
|
|
7564
|
+
*/
|
|
7565
|
+
event_category?: string | null;
|
|
7566
|
+
/**
|
|
7567
|
+
* Match Source
|
|
7568
|
+
*/
|
|
7569
|
+
match_source?: string | null;
|
|
7570
|
+
/**
|
|
7571
|
+
* Match Agent Type
|
|
7572
|
+
*/
|
|
7573
|
+
match_agent_type?: string | null;
|
|
7574
|
+
/**
|
|
7575
|
+
* Match Resource Type
|
|
7576
|
+
*/
|
|
7577
|
+
match_resource_type?: string | null;
|
|
7578
|
+
/**
|
|
7579
|
+
* Match Metadata Expression
|
|
7580
|
+
*/
|
|
7581
|
+
match_metadata_expression?: {
|
|
7582
|
+
[key: string]: unknown;
|
|
7583
|
+
} | null;
|
|
7584
|
+
transaction_template?: TransactionTemplate | null;
|
|
7585
|
+
/**
|
|
7586
|
+
* Priority
|
|
7587
|
+
*/
|
|
7588
|
+
priority?: number | null;
|
|
7589
|
+
/**
|
|
7590
|
+
* Is Active
|
|
7591
|
+
*/
|
|
7592
|
+
is_active?: boolean | null;
|
|
7593
|
+
/**
|
|
7594
|
+
* Approve
|
|
7595
|
+
*/
|
|
7596
|
+
approve?: boolean | null;
|
|
7597
|
+
/**
|
|
7598
|
+
* Metadata Patch
|
|
7599
|
+
*/
|
|
7600
|
+
metadata_patch?: {
|
|
7601
|
+
[key: string]: unknown;
|
|
7602
|
+
};
|
|
7603
|
+
};
|
|
7456
7604
|
/**
|
|
7457
7605
|
* UpdateInformationBlockRequest
|
|
7458
7606
|
*
|
|
@@ -14291,8 +14439,8 @@ export type OpEvaluateRulesResponses = {
|
|
|
14291
14439
|
200: OperationEnvelope;
|
|
14292
14440
|
};
|
|
14293
14441
|
export type OpEvaluateRulesResponse = OpEvaluateRulesResponses[keyof OpEvaluateRulesResponses];
|
|
14294
|
-
export type
|
|
14295
|
-
body:
|
|
14442
|
+
export type OpCreateAgentData = {
|
|
14443
|
+
body: CreateAgentRequest;
|
|
14296
14444
|
headers?: {
|
|
14297
14445
|
/**
|
|
14298
14446
|
* Idempotency-Key
|
|
@@ -14306,9 +14454,9 @@ export type OpCreateTransactionData = {
|
|
|
14306
14454
|
graph_id: string;
|
|
14307
14455
|
};
|
|
14308
14456
|
query?: never;
|
|
14309
|
-
url: '/extensions/roboledger/{graph_id}/operations/create-
|
|
14457
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-agent';
|
|
14310
14458
|
};
|
|
14311
|
-
export type
|
|
14459
|
+
export type OpCreateAgentErrors = {
|
|
14312
14460
|
/**
|
|
14313
14461
|
* Invalid request payload
|
|
14314
14462
|
*/
|
|
@@ -14342,16 +14490,16 @@ export type OpCreateTransactionErrors = {
|
|
|
14342
14490
|
*/
|
|
14343
14491
|
500: unknown;
|
|
14344
14492
|
};
|
|
14345
|
-
export type
|
|
14346
|
-
export type
|
|
14493
|
+
export type OpCreateAgentError = OpCreateAgentErrors[keyof OpCreateAgentErrors];
|
|
14494
|
+
export type OpCreateAgentResponses = {
|
|
14347
14495
|
/**
|
|
14348
14496
|
* Successful Response
|
|
14349
14497
|
*/
|
|
14350
14498
|
200: OperationEnvelope;
|
|
14351
14499
|
};
|
|
14352
|
-
export type
|
|
14353
|
-
export type
|
|
14354
|
-
body:
|
|
14500
|
+
export type OpCreateAgentResponse = OpCreateAgentResponses[keyof OpCreateAgentResponses];
|
|
14501
|
+
export type OpUpdateAgentData = {
|
|
14502
|
+
body: UpdateAgentRequest;
|
|
14355
14503
|
headers?: {
|
|
14356
14504
|
/**
|
|
14357
14505
|
* Idempotency-Key
|
|
@@ -14365,9 +14513,9 @@ export type OpCreateJournalEntryData = {
|
|
|
14365
14513
|
graph_id: string;
|
|
14366
14514
|
};
|
|
14367
14515
|
query?: never;
|
|
14368
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
14516
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-agent';
|
|
14369
14517
|
};
|
|
14370
|
-
export type
|
|
14518
|
+
export type OpUpdateAgentErrors = {
|
|
14371
14519
|
/**
|
|
14372
14520
|
* Invalid request payload
|
|
14373
14521
|
*/
|
|
@@ -14401,16 +14549,16 @@ export type OpCreateJournalEntryErrors = {
|
|
|
14401
14549
|
*/
|
|
14402
14550
|
500: unknown;
|
|
14403
14551
|
};
|
|
14404
|
-
export type
|
|
14405
|
-
export type
|
|
14552
|
+
export type OpUpdateAgentError = OpUpdateAgentErrors[keyof OpUpdateAgentErrors];
|
|
14553
|
+
export type OpUpdateAgentResponses = {
|
|
14406
14554
|
/**
|
|
14407
14555
|
* Successful Response
|
|
14408
14556
|
*/
|
|
14409
14557
|
200: OperationEnvelope;
|
|
14410
14558
|
};
|
|
14411
|
-
export type
|
|
14412
|
-
export type
|
|
14413
|
-
body:
|
|
14559
|
+
export type OpUpdateAgentResponse = OpUpdateAgentResponses[keyof OpUpdateAgentResponses];
|
|
14560
|
+
export type OpCreateEventBlockData = {
|
|
14561
|
+
body: CreateEventBlockRequest;
|
|
14414
14562
|
headers?: {
|
|
14415
14563
|
/**
|
|
14416
14564
|
* Idempotency-Key
|
|
@@ -14424,9 +14572,9 @@ export type OpUpdateJournalEntryData = {
|
|
|
14424
14572
|
graph_id: string;
|
|
14425
14573
|
};
|
|
14426
14574
|
query?: never;
|
|
14427
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
14575
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-event-block';
|
|
14428
14576
|
};
|
|
14429
|
-
export type
|
|
14577
|
+
export type OpCreateEventBlockErrors = {
|
|
14430
14578
|
/**
|
|
14431
14579
|
* Invalid request payload
|
|
14432
14580
|
*/
|
|
@@ -14460,16 +14608,16 @@ export type OpUpdateJournalEntryErrors = {
|
|
|
14460
14608
|
*/
|
|
14461
14609
|
500: unknown;
|
|
14462
14610
|
};
|
|
14463
|
-
export type
|
|
14464
|
-
export type
|
|
14611
|
+
export type OpCreateEventBlockError = OpCreateEventBlockErrors[keyof OpCreateEventBlockErrors];
|
|
14612
|
+
export type OpCreateEventBlockResponses = {
|
|
14465
14613
|
/**
|
|
14466
14614
|
* Successful Response
|
|
14467
14615
|
*/
|
|
14468
14616
|
200: OperationEnvelope;
|
|
14469
14617
|
};
|
|
14470
|
-
export type
|
|
14471
|
-
export type
|
|
14472
|
-
body:
|
|
14618
|
+
export type OpCreateEventBlockResponse = OpCreateEventBlockResponses[keyof OpCreateEventBlockResponses];
|
|
14619
|
+
export type OpUpdateEventBlockData = {
|
|
14620
|
+
body: UpdateEventBlockRequest;
|
|
14473
14621
|
headers?: {
|
|
14474
14622
|
/**
|
|
14475
14623
|
* Idempotency-Key
|
|
@@ -14483,9 +14631,9 @@ export type OpDeleteJournalEntryData = {
|
|
|
14483
14631
|
graph_id: string;
|
|
14484
14632
|
};
|
|
14485
14633
|
query?: never;
|
|
14486
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
14634
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-event-block';
|
|
14487
14635
|
};
|
|
14488
|
-
export type
|
|
14636
|
+
export type OpUpdateEventBlockErrors = {
|
|
14489
14637
|
/**
|
|
14490
14638
|
* Invalid request payload
|
|
14491
14639
|
*/
|
|
@@ -14519,16 +14667,16 @@ export type OpDeleteJournalEntryErrors = {
|
|
|
14519
14667
|
*/
|
|
14520
14668
|
500: unknown;
|
|
14521
14669
|
};
|
|
14522
|
-
export type
|
|
14523
|
-
export type
|
|
14670
|
+
export type OpUpdateEventBlockError = OpUpdateEventBlockErrors[keyof OpUpdateEventBlockErrors];
|
|
14671
|
+
export type OpUpdateEventBlockResponses = {
|
|
14524
14672
|
/**
|
|
14525
14673
|
* Successful Response
|
|
14526
14674
|
*/
|
|
14527
14675
|
200: OperationEnvelope;
|
|
14528
14676
|
};
|
|
14529
|
-
export type
|
|
14530
|
-
export type
|
|
14531
|
-
body:
|
|
14677
|
+
export type OpUpdateEventBlockResponse = OpUpdateEventBlockResponses[keyof OpUpdateEventBlockResponses];
|
|
14678
|
+
export type OpCreateEventHandlerData = {
|
|
14679
|
+
body: CreateEventHandlerRequest;
|
|
14532
14680
|
headers?: {
|
|
14533
14681
|
/**
|
|
14534
14682
|
* Idempotency-Key
|
|
@@ -14542,9 +14690,9 @@ export type OpReverseJournalEntryData = {
|
|
|
14542
14690
|
graph_id: string;
|
|
14543
14691
|
};
|
|
14544
14692
|
query?: never;
|
|
14545
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
14693
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-event-handler';
|
|
14546
14694
|
};
|
|
14547
|
-
export type
|
|
14695
|
+
export type OpCreateEventHandlerErrors = {
|
|
14548
14696
|
/**
|
|
14549
14697
|
* Invalid request payload
|
|
14550
14698
|
*/
|
|
@@ -14578,16 +14726,16 @@ export type OpReverseJournalEntryErrors = {
|
|
|
14578
14726
|
*/
|
|
14579
14727
|
500: unknown;
|
|
14580
14728
|
};
|
|
14581
|
-
export type
|
|
14582
|
-
export type
|
|
14729
|
+
export type OpCreateEventHandlerError = OpCreateEventHandlerErrors[keyof OpCreateEventHandlerErrors];
|
|
14730
|
+
export type OpCreateEventHandlerResponses = {
|
|
14583
14731
|
/**
|
|
14584
14732
|
* Successful Response
|
|
14585
14733
|
*/
|
|
14586
14734
|
200: OperationEnvelope;
|
|
14587
14735
|
};
|
|
14588
|
-
export type
|
|
14589
|
-
export type
|
|
14590
|
-
body:
|
|
14736
|
+
export type OpCreateEventHandlerResponse = OpCreateEventHandlerResponses[keyof OpCreateEventHandlerResponses];
|
|
14737
|
+
export type OpUpdateEventHandlerData = {
|
|
14738
|
+
body: UpdateEventHandlerRequest;
|
|
14591
14739
|
headers?: {
|
|
14592
14740
|
/**
|
|
14593
14741
|
* Idempotency-Key
|
|
@@ -14601,29 +14749,29 @@ export type OpSetCloseTargetData = {
|
|
|
14601
14749
|
graph_id: string;
|
|
14602
14750
|
};
|
|
14603
14751
|
query?: never;
|
|
14604
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
14752
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-event-handler';
|
|
14605
14753
|
};
|
|
14606
|
-
export type
|
|
14754
|
+
export type OpUpdateEventHandlerErrors = {
|
|
14607
14755
|
/**
|
|
14608
|
-
* Invalid request
|
|
14756
|
+
* Invalid request payload
|
|
14609
14757
|
*/
|
|
14610
|
-
400:
|
|
14758
|
+
400: OperationError;
|
|
14611
14759
|
/**
|
|
14612
|
-
*
|
|
14760
|
+
* Unauthorized — missing or invalid credentials
|
|
14613
14761
|
*/
|
|
14614
|
-
401:
|
|
14762
|
+
401: unknown;
|
|
14615
14763
|
/**
|
|
14616
|
-
*
|
|
14764
|
+
* Forbidden — caller cannot access this graph
|
|
14617
14765
|
*/
|
|
14618
|
-
403:
|
|
14766
|
+
403: unknown;
|
|
14619
14767
|
/**
|
|
14620
|
-
* Resource not found
|
|
14768
|
+
* Resource not found (graph, ledger, report, etc.)
|
|
14621
14769
|
*/
|
|
14622
|
-
404:
|
|
14770
|
+
404: OperationError;
|
|
14623
14771
|
/**
|
|
14624
|
-
* Idempotency-Key
|
|
14772
|
+
* Idempotency-Key reused with a different request body, or other operation-level conflict
|
|
14625
14773
|
*/
|
|
14626
|
-
409:
|
|
14774
|
+
409: OperationError;
|
|
14627
14775
|
/**
|
|
14628
14776
|
* Validation Error
|
|
14629
14777
|
*/
|
|
@@ -14631,22 +14779,22 @@ export type OpSetCloseTargetErrors = {
|
|
|
14631
14779
|
/**
|
|
14632
14780
|
* Rate limit exceeded
|
|
14633
14781
|
*/
|
|
14634
|
-
429:
|
|
14782
|
+
429: unknown;
|
|
14635
14783
|
/**
|
|
14636
|
-
* Internal
|
|
14784
|
+
* Internal error
|
|
14637
14785
|
*/
|
|
14638
|
-
500:
|
|
14786
|
+
500: unknown;
|
|
14639
14787
|
};
|
|
14640
|
-
export type
|
|
14641
|
-
export type
|
|
14788
|
+
export type OpUpdateEventHandlerError = OpUpdateEventHandlerErrors[keyof OpUpdateEventHandlerErrors];
|
|
14789
|
+
export type OpUpdateEventHandlerResponses = {
|
|
14642
14790
|
/**
|
|
14643
14791
|
* Successful Response
|
|
14644
14792
|
*/
|
|
14645
14793
|
200: OperationEnvelope;
|
|
14646
14794
|
};
|
|
14647
|
-
export type
|
|
14648
|
-
export type
|
|
14649
|
-
body:
|
|
14795
|
+
export type OpUpdateEventHandlerResponse = OpUpdateEventHandlerResponses[keyof OpUpdateEventHandlerResponses];
|
|
14796
|
+
export type OpPreviewEventBlockData = {
|
|
14797
|
+
body: CreateEventBlockRequest;
|
|
14650
14798
|
headers?: {
|
|
14651
14799
|
/**
|
|
14652
14800
|
* Idempotency-Key
|
|
@@ -14660,9 +14808,9 @@ export type OpCreateClosingEntryData = {
|
|
|
14660
14808
|
graph_id: string;
|
|
14661
14809
|
};
|
|
14662
14810
|
query?: never;
|
|
14663
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
14811
|
+
url: '/extensions/roboledger/{graph_id}/operations/preview-event-block';
|
|
14664
14812
|
};
|
|
14665
|
-
export type
|
|
14813
|
+
export type OpPreviewEventBlockErrors = {
|
|
14666
14814
|
/**
|
|
14667
14815
|
* Invalid request payload
|
|
14668
14816
|
*/
|
|
@@ -14696,16 +14844,16 @@ export type OpCreateClosingEntryErrors = {
|
|
|
14696
14844
|
*/
|
|
14697
14845
|
500: unknown;
|
|
14698
14846
|
};
|
|
14699
|
-
export type
|
|
14700
|
-
export type
|
|
14847
|
+
export type OpPreviewEventBlockError = OpPreviewEventBlockErrors[keyof OpPreviewEventBlockErrors];
|
|
14848
|
+
export type OpPreviewEventBlockResponses = {
|
|
14701
14849
|
/**
|
|
14702
14850
|
* Successful Response
|
|
14703
14851
|
*/
|
|
14704
14852
|
200: OperationEnvelope;
|
|
14705
14853
|
};
|
|
14706
|
-
export type
|
|
14707
|
-
export type
|
|
14708
|
-
body:
|
|
14854
|
+
export type OpPreviewEventBlockResponse = OpPreviewEventBlockResponses[keyof OpPreviewEventBlockResponses];
|
|
14855
|
+
export type OpUpdateJournalEntryData = {
|
|
14856
|
+
body: UpdateJournalEntryRequest;
|
|
14709
14857
|
headers?: {
|
|
14710
14858
|
/**
|
|
14711
14859
|
* Idempotency-Key
|
|
@@ -14719,9 +14867,9 @@ export type OpCreateManualClosingEntryData = {
|
|
|
14719
14867
|
graph_id: string;
|
|
14720
14868
|
};
|
|
14721
14869
|
query?: never;
|
|
14722
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
14870
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry';
|
|
14723
14871
|
};
|
|
14724
|
-
export type
|
|
14872
|
+
export type OpUpdateJournalEntryErrors = {
|
|
14725
14873
|
/**
|
|
14726
14874
|
* Invalid request payload
|
|
14727
14875
|
*/
|
|
@@ -14755,16 +14903,16 @@ export type OpCreateManualClosingEntryErrors = {
|
|
|
14755
14903
|
*/
|
|
14756
14904
|
500: unknown;
|
|
14757
14905
|
};
|
|
14758
|
-
export type
|
|
14759
|
-
export type
|
|
14906
|
+
export type OpUpdateJournalEntryError = OpUpdateJournalEntryErrors[keyof OpUpdateJournalEntryErrors];
|
|
14907
|
+
export type OpUpdateJournalEntryResponses = {
|
|
14760
14908
|
/**
|
|
14761
14909
|
* Successful Response
|
|
14762
14910
|
*/
|
|
14763
14911
|
200: OperationEnvelope;
|
|
14764
14912
|
};
|
|
14765
|
-
export type
|
|
14766
|
-
export type
|
|
14767
|
-
body:
|
|
14913
|
+
export type OpUpdateJournalEntryResponse = OpUpdateJournalEntryResponses[keyof OpUpdateJournalEntryResponses];
|
|
14914
|
+
export type OpDeleteJournalEntryData = {
|
|
14915
|
+
body: DeleteJournalEntryRequest;
|
|
14768
14916
|
headers?: {
|
|
14769
14917
|
/**
|
|
14770
14918
|
* Idempotency-Key
|
|
@@ -14778,9 +14926,9 @@ export type OpTruncateScheduleData = {
|
|
|
14778
14926
|
graph_id: string;
|
|
14779
14927
|
};
|
|
14780
14928
|
query?: never;
|
|
14781
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
14929
|
+
url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry';
|
|
14782
14930
|
};
|
|
14783
|
-
export type
|
|
14931
|
+
export type OpDeleteJournalEntryErrors = {
|
|
14784
14932
|
/**
|
|
14785
14933
|
* Invalid request payload
|
|
14786
14934
|
*/
|
|
@@ -14814,16 +14962,16 @@ export type OpTruncateScheduleErrors = {
|
|
|
14814
14962
|
*/
|
|
14815
14963
|
500: unknown;
|
|
14816
14964
|
};
|
|
14817
|
-
export type
|
|
14818
|
-
export type
|
|
14965
|
+
export type OpDeleteJournalEntryError = OpDeleteJournalEntryErrors[keyof OpDeleteJournalEntryErrors];
|
|
14966
|
+
export type OpDeleteJournalEntryResponses = {
|
|
14819
14967
|
/**
|
|
14820
14968
|
* Successful Response
|
|
14821
14969
|
*/
|
|
14822
14970
|
200: OperationEnvelope;
|
|
14823
14971
|
};
|
|
14824
|
-
export type
|
|
14825
|
-
export type
|
|
14826
|
-
body:
|
|
14972
|
+
export type OpDeleteJournalEntryResponse = OpDeleteJournalEntryResponses[keyof OpDeleteJournalEntryResponses];
|
|
14973
|
+
export type OpSetCloseTargetData = {
|
|
14974
|
+
body: SetCloseTargetOperation;
|
|
14827
14975
|
headers?: {
|
|
14828
14976
|
/**
|
|
14829
14977
|
* Idempotency-Key
|
|
@@ -14837,29 +14985,29 @@ export type OpDisposeScheduleData = {
|
|
|
14837
14985
|
graph_id: string;
|
|
14838
14986
|
};
|
|
14839
14987
|
query?: never;
|
|
14840
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
14988
|
+
url: '/extensions/roboledger/{graph_id}/operations/set-close-target';
|
|
14841
14989
|
};
|
|
14842
|
-
export type
|
|
14990
|
+
export type OpSetCloseTargetErrors = {
|
|
14843
14991
|
/**
|
|
14844
|
-
* Invalid request
|
|
14992
|
+
* Invalid request
|
|
14845
14993
|
*/
|
|
14846
|
-
400:
|
|
14994
|
+
400: ErrorResponse;
|
|
14847
14995
|
/**
|
|
14848
|
-
*
|
|
14996
|
+
* Authentication required
|
|
14849
14997
|
*/
|
|
14850
|
-
401:
|
|
14998
|
+
401: ErrorResponse;
|
|
14851
14999
|
/**
|
|
14852
|
-
*
|
|
15000
|
+
* Access denied
|
|
14853
15001
|
*/
|
|
14854
|
-
403:
|
|
15002
|
+
403: ErrorResponse;
|
|
14855
15003
|
/**
|
|
14856
|
-
* Resource not found
|
|
15004
|
+
* Resource not found
|
|
14857
15005
|
*/
|
|
14858
|
-
404:
|
|
15006
|
+
404: ErrorResponse;
|
|
14859
15007
|
/**
|
|
14860
|
-
* Idempotency-Key reused with
|
|
15008
|
+
* Idempotency-Key conflict — key reused with different body
|
|
14861
15009
|
*/
|
|
14862
|
-
409:
|
|
15010
|
+
409: ErrorResponse;
|
|
14863
15011
|
/**
|
|
14864
15012
|
* Validation Error
|
|
14865
15013
|
*/
|
|
@@ -14867,20 +15015,20 @@ export type OpDisposeScheduleErrors = {
|
|
|
14867
15015
|
/**
|
|
14868
15016
|
* Rate limit exceeded
|
|
14869
15017
|
*/
|
|
14870
|
-
429:
|
|
15018
|
+
429: ErrorResponse;
|
|
14871
15019
|
/**
|
|
14872
|
-
* Internal error
|
|
15020
|
+
* Internal server error
|
|
14873
15021
|
*/
|
|
14874
|
-
500:
|
|
15022
|
+
500: ErrorResponse;
|
|
14875
15023
|
};
|
|
14876
|
-
export type
|
|
14877
|
-
export type
|
|
15024
|
+
export type OpSetCloseTargetError = OpSetCloseTargetErrors[keyof OpSetCloseTargetErrors];
|
|
15025
|
+
export type OpSetCloseTargetResponses = {
|
|
14878
15026
|
/**
|
|
14879
15027
|
* Successful Response
|
|
14880
15028
|
*/
|
|
14881
15029
|
200: OperationEnvelope;
|
|
14882
15030
|
};
|
|
14883
|
-
export type
|
|
15031
|
+
export type OpSetCloseTargetResponse = OpSetCloseTargetResponses[keyof OpSetCloseTargetResponses];
|
|
14884
15032
|
export type OpClosePeriodData = {
|
|
14885
15033
|
body: ClosePeriodOperation;
|
|
14886
15034
|
headers?: {
|