@robosystems/client 0.3.9 → 0.3.10
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 +16 -36
- package/artifacts/LedgerClient.js +29 -79
- package/artifacts/LedgerClient.ts +66 -176
- package/artifacts/graphql/generated/graphql.d.ts +80 -5
- package/artifacts/graphql/generated/graphql.ts +87 -5
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +7 -15
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +48 -112
- package/sdk/sdk.gen.js +81 -217
- package/sdk/sdk.gen.ts +64 -200
- package/sdk/types.gen.d.ts +812 -1090
- package/sdk/types.gen.ts +811 -1132
- package/sdk.gen.d.ts +48 -112
- package/sdk.gen.js +81 -217
- package/sdk.gen.ts +64 -200
- package/types.gen.d.ts +812 -1090
- package/types.gen.ts +811 -1132
package/sdk/sdk.gen.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = exports.batchProcessQueries = exports.executeSpecificAgent = exports.getAgentMetadata = exports.autoSelectAgent = exports.listAgents = exports.syncConnection = exports.getConnection = exports.deleteConnection = exports.oauthCallback = exports.initOAuth = exports.getConnectionOptions = exports.createConnection = exports.listConnections = exports.getOrgUsage = exports.getOrgLimits = exports.updateOrgMemberRole = exports.removeOrgMember = exports.inviteOrgMember = exports.listOrgMembers = exports.listOrgGraphs = exports.updateOrg = exports.getOrg = exports.listUserOrgs = exports.updateUserApiKey = exports.revokeUserApiKey = exports.createUserApiKey = exports.listUserApiKeys = exports.updateUserPassword = exports.updateUser = exports.getCurrentUser = exports.getServiceStatus = exports.getCaptchaConfig = exports.completeSsoAuth = exports.ssoTokenExchange = exports.generateSsoToken = exports.resetPassword = exports.validateResetToken = exports.forgotPassword = exports.checkPasswordStrength = exports.getPasswordPolicy = exports.verifyEmail = exports.resendVerificationEmail = exports.refreshAuthSession = exports.getCurrentAuthUser = exports.logoutUser = exports.loginUser = exports.registerUser = void 0;
|
|
5
5
|
exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getGraphCapacity = exports.getAvailableGraphTiers = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.updateFile = exports.getFile = exports.deleteFile = exports.createFileUpload = exports.listFiles = exports.opMaterialize = exports.opChangeTier = exports.opRestoreBackup = exports.opCreateBackup = exports.opDeleteSubgraph = exports.opCreateSubgraph = exports.updateDocument = exports.getDocument = exports.deleteDocument = exports.uploadDocument = exports.listDocuments = exports.getDocumentSection = exports.searchDocuments = exports.queryTables = exports.listTables = exports.createRepositorySubscription = exports.changeSubscriptionPlan = exports.getGraphSubscription = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.listCreditTransactions = exports.getCreditSummary = exports.validateSchema = exports.exportGraphSchema = exports.getGraphSchema = exports.executeCypherQuery = exports.getGraphUsageAnalytics = exports.getGraphMetrics = exports.getBackupStats = exports.getBackupDownloadUrl = exports.listBackups = void 0;
|
|
6
|
-
exports.
|
|
7
|
-
exports.opDeletePosition = exports.opUpdatePosition = exports.opCreatePosition = exports.opDeleteSecurity = exports.opUpdateSecurity = exports.opCreateSecurity = exports.opDeletePortfolio =
|
|
6
|
+
exports.opUpdatePortfolio = exports.opCreatePortfolio = exports.opFinancialStatementAnalysis = exports.opBuildFactGrid = exports.opLiveFinancialStatement = exports.opRemovePublishListMember = exports.opAddPublishListMembers = exports.opDeletePublishList = exports.opUpdatePublishList = exports.opCreatePublishList = exports.opShareReport = exports.opDeleteReport = exports.opRegenerateReport = exports.opCreateReport = exports.opReopenPeriod = exports.opClosePeriod = exports.opDisposeSchedule = exports.opTruncateSchedule = exports.opCreateManualClosingEntry = exports.opCreateClosingEntry = exports.opSetCloseTarget = exports.opReverseJournalEntry = exports.opDeleteJournalEntry = exports.opUpdateJournalEntry = exports.opCreateJournalEntry = exports.opCreateTransaction = exports.opEvaluateRules = exports.opDeleteInformationBlock = exports.opUpdateInformationBlock = exports.opCreateInformationBlock = exports.opAutoMapElements = exports.opDeleteMappingAssociation = exports.opCreateMappingAssociation = exports.opLinkEntityTaxonomy = exports.opDeleteTaxonomyBlock = exports.opUpdateTaxonomyBlock = exports.opCreateTaxonomyBlock = exports.opUpdateEntity = exports.opInitializeLedger = exports.handleHttpPostExtensionsGraphIdGraphqlPost = exports.handleHttpGetExtensionsGraphIdGraphqlGet = exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = exports.listOrgSubscriptions = exports.createPortalSession = exports.getOrgBillingCustomer = void 0;
|
|
7
|
+
exports.opDeletePosition = exports.opUpdatePosition = exports.opCreatePosition = exports.opDeleteSecurity = exports.opUpdateSecurity = exports.opCreateSecurity = exports.opDeletePortfolio = void 0;
|
|
8
8
|
const client_gen_1 = require("./client.gen");
|
|
9
9
|
/**
|
|
10
10
|
* Register New User
|
|
@@ -1297,23 +1297,6 @@ const handleHttpPostExtensionsGraphIdGraphqlPost = (options) => (options.client
|
|
|
1297
1297
|
...options
|
|
1298
1298
|
});
|
|
1299
1299
|
exports.handleHttpPostExtensionsGraphIdGraphqlPost = handleHttpPostExtensionsGraphIdGraphqlPost;
|
|
1300
|
-
/**
|
|
1301
|
-
* Update Entity
|
|
1302
|
-
*
|
|
1303
|
-
* Only provided (non-null) fields are updated.
|
|
1304
|
-
*
|
|
1305
|
-
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1306
|
-
*/
|
|
1307
|
-
const opUpdateEntity = (options) => (options.client ?? client_gen_1.client).post({
|
|
1308
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1309
|
-
url: '/extensions/roboledger/{graph_id}/operations/update-entity',
|
|
1310
|
-
...options,
|
|
1311
|
-
headers: {
|
|
1312
|
-
'Content-Type': 'application/json',
|
|
1313
|
-
...options.headers
|
|
1314
|
-
}
|
|
1315
|
-
});
|
|
1316
|
-
exports.opUpdateEntity = opUpdateEntity;
|
|
1317
1300
|
/**
|
|
1318
1301
|
* Initialize Ledger
|
|
1319
1302
|
*
|
|
@@ -1332,145 +1315,77 @@ const opInitializeLedger = (options) => (options.client ?? client_gen_1.client).
|
|
|
1332
1315
|
});
|
|
1333
1316
|
exports.opInitializeLedger = opInitializeLedger;
|
|
1334
1317
|
/**
|
|
1335
|
-
*
|
|
1336
|
-
*
|
|
1337
|
-
* Period format: YYYY-MM. The close target is the user-controlled goal date, distinct from `closed_through` (what's actually closed).
|
|
1338
|
-
*
|
|
1339
|
-
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1340
|
-
*/
|
|
1341
|
-
const opSetCloseTarget = (options) => (options.client ?? client_gen_1.client).post({
|
|
1342
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1343
|
-
url: '/extensions/roboledger/{graph_id}/operations/set-close-target',
|
|
1344
|
-
...options,
|
|
1345
|
-
headers: {
|
|
1346
|
-
'Content-Type': 'application/json',
|
|
1347
|
-
...options.headers
|
|
1348
|
-
}
|
|
1349
|
-
});
|
|
1350
|
-
exports.opSetCloseTarget = opSetCloseTarget;
|
|
1351
|
-
/**
|
|
1352
|
-
* Close Fiscal Period
|
|
1353
|
-
*
|
|
1354
|
-
*
|
|
1355
|
-
*
|
|
1356
|
-
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1357
|
-
*/
|
|
1358
|
-
const opClosePeriod = (options) => (options.client ?? client_gen_1.client).post({
|
|
1359
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1360
|
-
url: '/extensions/roboledger/{graph_id}/operations/close-period',
|
|
1361
|
-
...options,
|
|
1362
|
-
headers: {
|
|
1363
|
-
'Content-Type': 'application/json',
|
|
1364
|
-
...options.headers
|
|
1365
|
-
}
|
|
1366
|
-
});
|
|
1367
|
-
exports.opClosePeriod = opClosePeriod;
|
|
1368
|
-
/**
|
|
1369
|
-
* Reopen Fiscal Period
|
|
1370
|
-
*
|
|
1371
|
-
* Decrements `closed_through` by one — only the most recently closed period can be reopened.
|
|
1372
|
-
*
|
|
1373
|
-
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1374
|
-
*/
|
|
1375
|
-
const opReopenPeriod = (options) => (options.client ?? client_gen_1.client).post({
|
|
1376
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1377
|
-
url: '/extensions/roboledger/{graph_id}/operations/reopen-period',
|
|
1378
|
-
...options,
|
|
1379
|
-
headers: {
|
|
1380
|
-
'Content-Type': 'application/json',
|
|
1381
|
-
...options.headers
|
|
1382
|
-
}
|
|
1383
|
-
});
|
|
1384
|
-
exports.opReopenPeriod = opReopenPeriod;
|
|
1385
|
-
/**
|
|
1386
|
-
* Create Taxonomy
|
|
1387
|
-
*
|
|
1388
|
-
*
|
|
1389
|
-
*
|
|
1390
|
-
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1391
|
-
*/
|
|
1392
|
-
const opCreateTaxonomy = (options) => (options.client ?? client_gen_1.client).post({
|
|
1393
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1394
|
-
url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy',
|
|
1395
|
-
...options,
|
|
1396
|
-
headers: {
|
|
1397
|
-
'Content-Type': 'application/json',
|
|
1398
|
-
...options.headers
|
|
1399
|
-
}
|
|
1400
|
-
});
|
|
1401
|
-
exports.opCreateTaxonomy = opCreateTaxonomy;
|
|
1402
|
-
/**
|
|
1403
|
-
* Create Structure
|
|
1318
|
+
* Update Entity
|
|
1404
1319
|
*
|
|
1405
|
-
*
|
|
1320
|
+
* Only provided (non-null) fields are updated.
|
|
1406
1321
|
*
|
|
1407
1322
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1408
1323
|
*/
|
|
1409
|
-
const
|
|
1324
|
+
const opUpdateEntity = (options) => (options.client ?? client_gen_1.client).post({
|
|
1410
1325
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1411
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1326
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-entity',
|
|
1412
1327
|
...options,
|
|
1413
1328
|
headers: {
|
|
1414
1329
|
'Content-Type': 'application/json',
|
|
1415
1330
|
...options.headers
|
|
1416
1331
|
}
|
|
1417
1332
|
});
|
|
1418
|
-
exports.
|
|
1333
|
+
exports.opUpdateEntity = opUpdateEntity;
|
|
1419
1334
|
/**
|
|
1420
|
-
*
|
|
1421
|
-
*
|
|
1335
|
+
* Create Taxonomy Block
|
|
1422
1336
|
*
|
|
1337
|
+
* Create a taxonomy block atomically: one envelope carrying the taxonomy row plus its structures, elements, associations, and rules. Dispatches by `taxonomy_type` — `chart_of_accounts` (declarative tenant CoA) is live; `reporting_extension` / `custom_ontology` / `reporting_standard` land in later sub-phases.
|
|
1423
1338
|
*
|
|
1424
1339
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1425
1340
|
*/
|
|
1426
|
-
const
|
|
1341
|
+
const opCreateTaxonomyBlock = (options) => (options.client ?? client_gen_1.client).post({
|
|
1427
1342
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1428
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1343
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy-block',
|
|
1429
1344
|
...options,
|
|
1430
1345
|
headers: {
|
|
1431
1346
|
'Content-Type': 'application/json',
|
|
1432
1347
|
...options.headers
|
|
1433
1348
|
}
|
|
1434
1349
|
});
|
|
1435
|
-
exports.
|
|
1350
|
+
exports.opCreateTaxonomyBlock = opCreateTaxonomyBlock;
|
|
1436
1351
|
/**
|
|
1437
|
-
* Update Taxonomy
|
|
1352
|
+
* Update Taxonomy Block
|
|
1438
1353
|
*
|
|
1439
|
-
*
|
|
1354
|
+
* Incrementally mutate a taxonomy block via typed delta lists (elements/structures/associations/rules to add, update, remove). Dispatches by the target taxonomy's stored `taxonomy_type`. Library-origin block types (`reporting_standard`) surface 501.
|
|
1440
1355
|
*
|
|
1441
1356
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1442
1357
|
*/
|
|
1443
|
-
const
|
|
1358
|
+
const opUpdateTaxonomyBlock = (options) => (options.client ?? client_gen_1.client).post({
|
|
1444
1359
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1445
|
-
url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy',
|
|
1360
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy-block',
|
|
1446
1361
|
...options,
|
|
1447
1362
|
headers: {
|
|
1448
1363
|
'Content-Type': 'application/json',
|
|
1449
1364
|
...options.headers
|
|
1450
1365
|
}
|
|
1451
1366
|
});
|
|
1452
|
-
exports.
|
|
1367
|
+
exports.opUpdateTaxonomyBlock = opUpdateTaxonomyBlock;
|
|
1453
1368
|
/**
|
|
1454
|
-
* Delete Taxonomy
|
|
1369
|
+
* Delete Taxonomy Block
|
|
1455
1370
|
*
|
|
1456
|
-
*
|
|
1371
|
+
* Delete a taxonomy block and return a thin confirmation. `cascade_facts=True` also deletes Fact rows that reference the taxonomy's elements; default False fails the delete if such facts exist. Library-origin block types surface 501.
|
|
1457
1372
|
*
|
|
1458
1373
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1459
1374
|
*/
|
|
1460
|
-
const
|
|
1375
|
+
const opDeleteTaxonomyBlock = (options) => (options.client ?? client_gen_1.client).post({
|
|
1461
1376
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1462
|
-
url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy',
|
|
1377
|
+
url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy-block',
|
|
1463
1378
|
...options,
|
|
1464
1379
|
headers: {
|
|
1465
1380
|
'Content-Type': 'application/json',
|
|
1466
1381
|
...options.headers
|
|
1467
1382
|
}
|
|
1468
1383
|
});
|
|
1469
|
-
exports.
|
|
1384
|
+
exports.opDeleteTaxonomyBlock = opDeleteTaxonomyBlock;
|
|
1470
1385
|
/**
|
|
1471
1386
|
* Link Entity to Taxonomy
|
|
1472
1387
|
*
|
|
1473
|
-
* Link the graph's entity to a taxonomy
|
|
1388
|
+
* Link the graph's entity to a taxonomy. Idempotent — returns existing linkage if it already exists. CoA blocks auto-link at create time; use this only to switch the primary CoA or link a reporting extension / custom ontology explicitly.
|
|
1474
1389
|
*
|
|
1475
1390
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1476
1391
|
*/
|
|
@@ -1485,141 +1400,124 @@ const opLinkEntityTaxonomy = (options) => (options.client ?? client_gen_1.client
|
|
|
1485
1400
|
});
|
|
1486
1401
|
exports.opLinkEntityTaxonomy = opLinkEntityTaxonomy;
|
|
1487
1402
|
/**
|
|
1488
|
-
*
|
|
1403
|
+
* Create Mapping Association
|
|
1489
1404
|
*
|
|
1490
|
-
*
|
|
1405
|
+
* Link a chart-of-accounts element to a US GAAP reporting concept.
|
|
1491
1406
|
*
|
|
1492
1407
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1493
1408
|
*/
|
|
1494
|
-
const
|
|
1409
|
+
const opCreateMappingAssociation = (options) => (options.client ?? client_gen_1.client).post({
|
|
1495
1410
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1496
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1411
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association',
|
|
1497
1412
|
...options,
|
|
1498
1413
|
headers: {
|
|
1499
1414
|
'Content-Type': 'application/json',
|
|
1500
1415
|
...options.headers
|
|
1501
1416
|
}
|
|
1502
1417
|
});
|
|
1503
|
-
exports.
|
|
1418
|
+
exports.opCreateMappingAssociation = opCreateMappingAssociation;
|
|
1504
1419
|
/**
|
|
1505
|
-
* Delete
|
|
1420
|
+
* Delete Mapping Association
|
|
1506
1421
|
*
|
|
1507
|
-
* Soft-delete a structure (sets `is_active=false`). Associations referencing it are effectively orphaned.
|
|
1508
1422
|
*
|
|
1509
|
-
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1510
|
-
*/
|
|
1511
|
-
const opDeleteStructure = (options) => (options.client ?? client_gen_1.client).post({
|
|
1512
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1513
|
-
url: '/extensions/roboledger/{graph_id}/operations/delete-structure',
|
|
1514
|
-
...options,
|
|
1515
|
-
headers: {
|
|
1516
|
-
'Content-Type': 'application/json',
|
|
1517
|
-
...options.headers
|
|
1518
|
-
}
|
|
1519
|
-
});
|
|
1520
|
-
exports.opDeleteStructure = opDeleteStructure;
|
|
1521
|
-
/**
|
|
1522
|
-
* Create Element
|
|
1523
|
-
*
|
|
1524
|
-
* Create an element within a taxonomy. For chart-of-accounts taxonomies this is how native accounts are added.
|
|
1525
1423
|
*
|
|
1526
1424
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1527
1425
|
*/
|
|
1528
|
-
const
|
|
1426
|
+
const opDeleteMappingAssociation = (options) => (options.client ?? client_gen_1.client).post({
|
|
1529
1427
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1530
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1428
|
+
url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association',
|
|
1531
1429
|
...options,
|
|
1532
1430
|
headers: {
|
|
1533
1431
|
'Content-Type': 'application/json',
|
|
1534
1432
|
...options.headers
|
|
1535
1433
|
}
|
|
1536
1434
|
});
|
|
1537
|
-
exports.
|
|
1435
|
+
exports.opDeleteMappingAssociation = opDeleteMappingAssociation;
|
|
1538
1436
|
/**
|
|
1539
|
-
*
|
|
1437
|
+
* Auto-Map Elements via AI (async)
|
|
1540
1438
|
*
|
|
1541
|
-
*
|
|
1439
|
+
* Dispatches to the background worker — returns a `pending` envelope immediately. Monitor via SSE at `/v1/operations/{operation_id}/stream`. Confidence thresholds: ≥0.90 auto-approved, 0.70–0.89 flagged for review, <0.70 skipped.
|
|
1542
1440
|
*
|
|
1543
1441
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1544
1442
|
*/
|
|
1545
|
-
const
|
|
1443
|
+
const opAutoMapElements = (options) => (options.client ?? client_gen_1.client).post({
|
|
1546
1444
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1547
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1445
|
+
url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements',
|
|
1548
1446
|
...options,
|
|
1549
1447
|
headers: {
|
|
1550
1448
|
'Content-Type': 'application/json',
|
|
1551
1449
|
...options.headers
|
|
1552
1450
|
}
|
|
1553
1451
|
});
|
|
1554
|
-
exports.
|
|
1452
|
+
exports.opAutoMapElements = opAutoMapElements;
|
|
1555
1453
|
/**
|
|
1556
|
-
*
|
|
1454
|
+
* Create Information Block
|
|
1557
1455
|
*
|
|
1558
|
-
*
|
|
1456
|
+
* Generic Information Block construction entry. `block_type` selects the registered block type; `payload` is validated against that type's creation schema at dispatch. Schedule dispatches to the existing Schedule machinery; statement block types raise 501 (use create-report instead).
|
|
1559
1457
|
*
|
|
1560
1458
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1561
1459
|
*/
|
|
1562
|
-
const
|
|
1460
|
+
const opCreateInformationBlock = (options) => (options.client ?? client_gen_1.client).post({
|
|
1563
1461
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1564
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1462
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-information-block',
|
|
1565
1463
|
...options,
|
|
1566
1464
|
headers: {
|
|
1567
1465
|
'Content-Type': 'application/json',
|
|
1568
1466
|
...options.headers
|
|
1569
1467
|
}
|
|
1570
1468
|
});
|
|
1571
|
-
exports.
|
|
1469
|
+
exports.opCreateInformationBlock = opCreateInformationBlock;
|
|
1572
1470
|
/**
|
|
1573
|
-
*
|
|
1471
|
+
* Update Information Block
|
|
1574
1472
|
*
|
|
1575
|
-
*
|
|
1473
|
+
* Generic Information Block update entry. Dispatches by `block_type` to the registered mutation handler. Block types whose Structures are library-seeded and immutable (statement family) surface 501.
|
|
1576
1474
|
*
|
|
1577
1475
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1578
1476
|
*/
|
|
1579
|
-
const
|
|
1477
|
+
const opUpdateInformationBlock = (options) => (options.client ?? client_gen_1.client).post({
|
|
1580
1478
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1581
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1479
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-information-block',
|
|
1582
1480
|
...options,
|
|
1583
1481
|
headers: {
|
|
1584
1482
|
'Content-Type': 'application/json',
|
|
1585
1483
|
...options.headers
|
|
1586
1484
|
}
|
|
1587
1485
|
});
|
|
1588
|
-
exports.
|
|
1486
|
+
exports.opUpdateInformationBlock = opUpdateInformationBlock;
|
|
1589
1487
|
/**
|
|
1590
|
-
*
|
|
1488
|
+
* Delete Information Block
|
|
1591
1489
|
*
|
|
1592
|
-
*
|
|
1490
|
+
* Generic Information Block deletion entry. Returns a thin confirmation (deleted / structure_id / block_type / name). Block types whose Structures are library-seeded cannot be deleted per tenant and surface 501.
|
|
1593
1491
|
*
|
|
1594
1492
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1595
1493
|
*/
|
|
1596
|
-
const
|
|
1494
|
+
const opDeleteInformationBlock = (options) => (options.client ?? client_gen_1.client).post({
|
|
1597
1495
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1598
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1496
|
+
url: '/extensions/roboledger/{graph_id}/operations/delete-information-block',
|
|
1599
1497
|
...options,
|
|
1600
1498
|
headers: {
|
|
1601
1499
|
'Content-Type': 'application/json',
|
|
1602
1500
|
...options.headers
|
|
1603
1501
|
}
|
|
1604
1502
|
});
|
|
1605
|
-
exports.
|
|
1503
|
+
exports.opDeleteInformationBlock = opDeleteInformationBlock;
|
|
1606
1504
|
/**
|
|
1607
|
-
*
|
|
1505
|
+
* Evaluate Rules for an Information Block
|
|
1608
1506
|
*
|
|
1609
|
-
*
|
|
1507
|
+
* Runs every rule targeting the given structure (plus element- and association-scoped rules for the structure's atoms), binds $Variable references to in-scope facts via qname lookup, writes one VerificationResult row per rule, and returns the results plus a status-keyed summary. Phase delta.3 — decoding mode, 5 patterns (EqualTo, RollUp, RollForward, Exists, CoExists).
|
|
1610
1508
|
*
|
|
1611
1509
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1612
1510
|
*/
|
|
1613
|
-
const
|
|
1511
|
+
const opEvaluateRules = (options) => (options.client ?? client_gen_1.client).post({
|
|
1614
1512
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1615
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1513
|
+
url: '/extensions/roboledger/{graph_id}/operations/evaluate-rules',
|
|
1616
1514
|
...options,
|
|
1617
1515
|
headers: {
|
|
1618
1516
|
'Content-Type': 'application/json',
|
|
1619
1517
|
...options.headers
|
|
1620
1518
|
}
|
|
1621
1519
|
});
|
|
1622
|
-
exports.
|
|
1520
|
+
exports.opEvaluateRules = opEvaluateRules;
|
|
1623
1521
|
/**
|
|
1624
1522
|
* Create Transaction
|
|
1625
1523
|
*
|
|
@@ -1706,22 +1604,22 @@ const opReverseJournalEntry = (options) => (options.client ?? client_gen_1.clien
|
|
|
1706
1604
|
});
|
|
1707
1605
|
exports.opReverseJournalEntry = opReverseJournalEntry;
|
|
1708
1606
|
/**
|
|
1709
|
-
*
|
|
1607
|
+
* Set Close Target
|
|
1710
1608
|
*
|
|
1711
|
-
*
|
|
1609
|
+
* Period format: YYYY-MM. The close target is the user-controlled goal date, distinct from `closed_through` (what's actually closed).
|
|
1712
1610
|
*
|
|
1713
1611
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1714
1612
|
*/
|
|
1715
|
-
const
|
|
1613
|
+
const opSetCloseTarget = (options) => (options.client ?? client_gen_1.client).post({
|
|
1716
1614
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1717
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1615
|
+
url: '/extensions/roboledger/{graph_id}/operations/set-close-target',
|
|
1718
1616
|
...options,
|
|
1719
1617
|
headers: {
|
|
1720
1618
|
'Content-Type': 'application/json',
|
|
1721
1619
|
...options.headers
|
|
1722
1620
|
}
|
|
1723
1621
|
});
|
|
1724
|
-
exports.
|
|
1622
|
+
exports.opSetCloseTarget = opSetCloseTarget;
|
|
1725
1623
|
/**
|
|
1726
1624
|
* Create Closing Entry
|
|
1727
1625
|
*
|
|
@@ -1757,107 +1655,73 @@ const opCreateManualClosingEntry = (options) => (options.client ?? client_gen_1.
|
|
|
1757
1655
|
});
|
|
1758
1656
|
exports.opCreateManualClosingEntry = opCreateManualClosingEntry;
|
|
1759
1657
|
/**
|
|
1760
|
-
*
|
|
1761
|
-
*
|
|
1762
|
-
* Generic Information Block construction entry. `block_type` selects the registered block type; `payload` is validated against that type's creation schema at dispatch. Schedule dispatches to the existing Schedule machinery; statement block types raise 501 (use create-report instead).
|
|
1763
|
-
*
|
|
1764
|
-
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1765
|
-
*/
|
|
1766
|
-
const opCreateInformationBlock = (options) => (options.client ?? client_gen_1.client).post({
|
|
1767
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1768
|
-
url: '/extensions/roboledger/{graph_id}/operations/create-information-block',
|
|
1769
|
-
...options,
|
|
1770
|
-
headers: {
|
|
1771
|
-
'Content-Type': 'application/json',
|
|
1772
|
-
...options.headers
|
|
1773
|
-
}
|
|
1774
|
-
});
|
|
1775
|
-
exports.opCreateInformationBlock = opCreateInformationBlock;
|
|
1776
|
-
/**
|
|
1777
|
-
* Update Information Block
|
|
1658
|
+
* Truncate Schedule (End Early)
|
|
1778
1659
|
*
|
|
1779
|
-
*
|
|
1660
|
+
* End a schedule early by deleting forward facts and any stale draft closing entries past the cutoff. Historical facts and posted entries are preserved. Use this when a business event (asset disposal, contract cancellation) shortens the schedule's lifespan.
|
|
1780
1661
|
*
|
|
1781
1662
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1782
1663
|
*/
|
|
1783
|
-
const
|
|
1664
|
+
const opTruncateSchedule = (options) => (options.client ?? client_gen_1.client).post({
|
|
1784
1665
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1785
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1666
|
+
url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule',
|
|
1786
1667
|
...options,
|
|
1787
1668
|
headers: {
|
|
1788
1669
|
'Content-Type': 'application/json',
|
|
1789
1670
|
...options.headers
|
|
1790
1671
|
}
|
|
1791
1672
|
});
|
|
1792
|
-
exports.
|
|
1673
|
+
exports.opTruncateSchedule = opTruncateSchedule;
|
|
1793
1674
|
/**
|
|
1794
|
-
*
|
|
1675
|
+
* Dispose Schedule (Sale or Abandonment)
|
|
1795
1676
|
*
|
|
1796
|
-
*
|
|
1677
|
+
* Atomically truncate a schedule past the disposal date and create a balanced disposal closing entry. Computes accumulated depreciation from the schedule's own facts, derives net book value and gain/loss, removes forward facts, and books the disposal entry in one call. Use when an asset is sold or abandoned before the schedule runs to completion. For abandonment with no proceeds, omit `sale_proceeds` and `proceeds_element_id`.
|
|
1797
1678
|
*
|
|
1798
1679
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1799
1680
|
*/
|
|
1800
|
-
const
|
|
1681
|
+
const opDisposeSchedule = (options) => (options.client ?? client_gen_1.client).post({
|
|
1801
1682
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1802
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1683
|
+
url: '/extensions/roboledger/{graph_id}/operations/dispose-schedule',
|
|
1803
1684
|
...options,
|
|
1804
1685
|
headers: {
|
|
1805
1686
|
'Content-Type': 'application/json',
|
|
1806
1687
|
...options.headers
|
|
1807
1688
|
}
|
|
1808
1689
|
});
|
|
1809
|
-
exports.
|
|
1690
|
+
exports.opDisposeSchedule = opDisposeSchedule;
|
|
1810
1691
|
/**
|
|
1811
|
-
*
|
|
1812
|
-
*
|
|
1813
|
-
* Runs every rule targeting the given structure (plus element- and association-scoped rules for the structure's atoms), binds $Variable references to in-scope facts via qname lookup, writes one VerificationResult row per rule, and returns the results plus a status-keyed summary. Phase delta.3 — decoding mode, 5 patterns (EqualTo, RollUp, RollForward, Exists, CoExists).
|
|
1692
|
+
* Close Fiscal Period
|
|
1814
1693
|
*
|
|
1815
|
-
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1816
|
-
*/
|
|
1817
|
-
const opEvaluateRules = (options) => (options.client ?? client_gen_1.client).post({
|
|
1818
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1819
|
-
url: '/extensions/roboledger/{graph_id}/operations/evaluate-rules',
|
|
1820
|
-
...options,
|
|
1821
|
-
headers: {
|
|
1822
|
-
'Content-Type': 'application/json',
|
|
1823
|
-
...options.headers
|
|
1824
|
-
}
|
|
1825
|
-
});
|
|
1826
|
-
exports.opEvaluateRules = opEvaluateRules;
|
|
1827
|
-
/**
|
|
1828
|
-
* Create Mapping Association
|
|
1829
1694
|
*
|
|
1830
|
-
* Link a chart-of-accounts element to a US GAAP reporting concept. For bulk associations (presentation/calculation linkbases, 50+ arcs at once) use `create-associations` instead.
|
|
1831
1695
|
*
|
|
1832
1696
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1833
1697
|
*/
|
|
1834
|
-
const
|
|
1698
|
+
const opClosePeriod = (options) => (options.client ?? client_gen_1.client).post({
|
|
1835
1699
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1836
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1700
|
+
url: '/extensions/roboledger/{graph_id}/operations/close-period',
|
|
1837
1701
|
...options,
|
|
1838
1702
|
headers: {
|
|
1839
1703
|
'Content-Type': 'application/json',
|
|
1840
1704
|
...options.headers
|
|
1841
1705
|
}
|
|
1842
1706
|
});
|
|
1843
|
-
exports.
|
|
1707
|
+
exports.opClosePeriod = opClosePeriod;
|
|
1844
1708
|
/**
|
|
1845
|
-
*
|
|
1709
|
+
* Reopen Fiscal Period
|
|
1846
1710
|
*
|
|
1847
|
-
*
|
|
1711
|
+
* Decrements `closed_through` by one — only the most recently closed period can be reopened.
|
|
1848
1712
|
*
|
|
1849
1713
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1850
1714
|
*/
|
|
1851
|
-
const
|
|
1715
|
+
const opReopenPeriod = (options) => (options.client ?? client_gen_1.client).post({
|
|
1852
1716
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1853
|
-
url: '/extensions/roboledger/{graph_id}/operations/
|
|
1717
|
+
url: '/extensions/roboledger/{graph_id}/operations/reopen-period',
|
|
1854
1718
|
...options,
|
|
1855
1719
|
headers: {
|
|
1856
1720
|
'Content-Type': 'application/json',
|
|
1857
1721
|
...options.headers
|
|
1858
1722
|
}
|
|
1859
1723
|
});
|
|
1860
|
-
exports.
|
|
1724
|
+
exports.opReopenPeriod = opReopenPeriod;
|
|
1861
1725
|
/**
|
|
1862
1726
|
* Create Report
|
|
1863
1727
|
*
|