@robosystems/client 0.3.8 → 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/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.opDeletePublishList = exports.opUpdatePublishList = exports.opCreatePublishList = exports.opShareReport = exports.opDeleteReport = exports.opRegenerateReport = exports.opCreateReport = exports.opAutoMapElements = exports.opCreateMappingAssociation = exports.opDeleteSchedule = exports.opUpdateSchedule = exports.opCreateManualClosingEntry = exports.opCreateClosingEntry = exports.opTruncateSchedule = exports.opCreateSchedule = exports.opReverseJournalEntry = exports.opDeleteJournalEntry = exports.opUpdateJournalEntry = exports.opCreateJournalEntry = exports.opCreateTransaction = exports.opDeleteAssociation = exports.opUpdateAssociation = exports.opCreateAssociations = exports.opDeleteElement = exports.opUpdateElement = exports.opCreateElement = exports.opDeleteStructure = exports.opUpdateStructure = exports.opLinkEntityTaxonomy = exports.opDeleteTaxonomy = exports.opUpdateTaxonomy = exports.opDeleteMappingAssociation = exports.opCreateStructure = exports.opCreateTaxonomy = exports.opReopenPeriod = exports.opClosePeriod = exports.opSetCloseTarget = exports.opInitializeLedger = exports.opUpdateEntity = 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 = exports.opUpdatePortfolio = exports.opCreatePortfolio = exports.opFinancialStatementAnalysis = exports.opBuildFactGrid = exports.opLiveFinancialStatement = exports.opRemovePublishListMember = exports.opAddPublishListMembers = void 0;
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
- * Set Close Target
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
- * Structures organize elements within a taxonomy. Types: `statement`, `mapping`, `schedule`, `presentation`, `calculation`.
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 opCreateStructure = (options) => (options.client ?? client_gen_1.client).post({
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/create-structure',
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.opCreateStructure = opCreateStructure;
1333
+ exports.opUpdateEntity = opUpdateEntity;
1419
1334
  /**
1420
- * Delete Mapping Association
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 opDeleteMappingAssociation = (options) => (options.client ?? client_gen_1.client).post({
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/delete-mapping-association',
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.opDeleteMappingAssociation = opDeleteMappingAssociation;
1350
+ exports.opCreateTaxonomyBlock = opCreateTaxonomyBlock;
1436
1351
  /**
1437
- * Update Taxonomy
1352
+ * Update Taxonomy Block
1438
1353
  *
1439
- * Update mutable fields on a taxonomy. `taxonomy_type` is immutable.
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 opUpdateTaxonomy = (options) => (options.client ?? client_gen_1.client).post({
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.opUpdateTaxonomy = opUpdateTaxonomy;
1367
+ exports.opUpdateTaxonomyBlock = opUpdateTaxonomyBlock;
1453
1368
  /**
1454
- * Delete Taxonomy
1369
+ * Delete Taxonomy Block
1455
1370
  *
1456
- * Soft-delete a taxonomy (sets `is_active=false`). Historical references remain valid.
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 opDeleteTaxonomy = (options) => (options.client ?? client_gen_1.client).post({
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.opDeleteTaxonomy = opDeleteTaxonomy;
1384
+ exports.opDeleteTaxonomyBlock = opDeleteTaxonomyBlock;
1470
1385
  /**
1471
1386
  * Link Entity to Taxonomy
1472
1387
  *
1473
- * Link the graph's entity to a taxonomy (creates the ENTITY_HAS_TAXONOMY edge). Idempotent — returns existing linkage if it already exists. Required after creating a CoA taxonomy so the platform knows which chart of accounts the entity reports under.
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
- * Update Structure
1403
+ * Create Mapping Association
1489
1404
  *
1490
- * Update mutable fields on a structure. `structure_type` and `taxonomy_id` are immutable.
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 opUpdateStructure = (options) => (options.client ?? client_gen_1.client).post({
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/update-structure',
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.opUpdateStructure = opUpdateStructure;
1418
+ exports.opCreateMappingAssociation = opCreateMappingAssociation;
1504
1419
  /**
1505
- * Delete Structure
1506
- *
1507
- * Soft-delete a structure (sets `is_active=false`). Associations referencing it are effectively orphaned.
1420
+ * Delete Mapping Association
1508
1421
  *
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
1422
  *
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 opCreateElement = (options) => (options.client ?? client_gen_1.client).post({
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/create-element',
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.opCreateElement = opCreateElement;
1435
+ exports.opDeleteMappingAssociation = opDeleteMappingAssociation;
1538
1436
  /**
1539
- * Update Element
1437
+ * Auto-Map Elements via AI (async)
1540
1438
  *
1541
- * Update mutable fields on an element. `taxonomy_id` and `source` are immutable. Reparenting cascades path/depth to descendants.
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 opUpdateElement = (options) => (options.client ?? client_gen_1.client).post({
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/update-element',
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.opUpdateElement = opUpdateElement;
1452
+ exports.opAutoMapElements = opAutoMapElements;
1555
1453
  /**
1556
- * Delete Element
1454
+ * Create Information Block
1557
1455
  *
1558
- * Soft-delete an element (sets `is_active=false`). Historical line items referencing it remain valid.
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 opDeleteElement = (options) => (options.client ?? client_gen_1.client).post({
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/delete-element',
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.opDeleteElement = opDeleteElement;
1469
+ exports.opCreateInformationBlock = opCreateInformationBlock;
1572
1470
  /**
1573
- * Create Associations (Bulk)
1471
+ * Update Information Block
1574
1472
  *
1575
- * Create N associations in a single structure, atomically. Handles 50+ presentation arcs, 25+ calculation arcs, or a full table linkbase in one call. Any failed row rolls back the batch.
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 opCreateAssociations = (options) => (options.client ?? client_gen_1.client).post({
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/create-associations',
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.opCreateAssociations = opCreateAssociations;
1486
+ exports.opUpdateInformationBlock = opUpdateInformationBlock;
1589
1487
  /**
1590
- * Update Association
1488
+ * Delete Information Block
1591
1489
  *
1592
- * Update mutable fields on an association. `from_element_id`, `to_element_id`, `association_type`, and `structure_id` are immutable delete and recreate instead.
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 opUpdateAssociation = (options) => (options.client ?? client_gen_1.client).post({
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/update-association',
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.opUpdateAssociation = opUpdateAssociation;
1503
+ exports.opDeleteInformationBlock = opDeleteInformationBlock;
1606
1504
  /**
1607
- * Delete Association
1505
+ * Evaluate Rules for an Information Block
1608
1506
  *
1609
- * Hard-delete an association. Generalizes delete-mapping-association to all association types (presentation, calculation, mapping).
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 opDeleteAssociation = (options) => (options.client ?? client_gen_1.client).post({
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/delete-association',
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.opDeleteAssociation = opDeleteAssociation;
1520
+ exports.opEvaluateRules = opEvaluateRules;
1623
1521
  /**
1624
1522
  * Create Transaction
1625
1523
  *
@@ -1706,39 +1604,22 @@ const opReverseJournalEntry = (options) => (options.client ?? client_gen_1.clien
1706
1604
  });
1707
1605
  exports.opReverseJournalEntry = opReverseJournalEntry;
1708
1606
  /**
1709
- * Create Schedule
1710
- *
1711
- * Create a schedule and pre-generate monthly amortization facts spanning the period range. `entry_template` defines the debit/credit elements used by `create-closing-entry` each period.
1712
- *
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.
1714
- */
1715
- const opCreateSchedule = (options) => (options.client ?? client_gen_1.client).post({
1716
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1717
- url: '/extensions/roboledger/{graph_id}/operations/create-schedule',
1718
- ...options,
1719
- headers: {
1720
- 'Content-Type': 'application/json',
1721
- ...options.headers
1722
- }
1723
- });
1724
- exports.opCreateSchedule = opCreateSchedule;
1725
- /**
1726
- * Truncate Schedule (End Early)
1607
+ * Set Close Target
1727
1608
  *
1728
- * 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.
1609
+ * Period format: YYYY-MM. The close target is the user-controlled goal date, distinct from `closed_through` (what's actually closed).
1729
1610
  *
1730
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.
1731
1612
  */
1732
- const opTruncateSchedule = (options) => (options.client ?? client_gen_1.client).post({
1613
+ const opSetCloseTarget = (options) => (options.client ?? client_gen_1.client).post({
1733
1614
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1734
- url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule',
1615
+ url: '/extensions/roboledger/{graph_id}/operations/set-close-target',
1735
1616
  ...options,
1736
1617
  headers: {
1737
1618
  'Content-Type': 'application/json',
1738
1619
  ...options.headers
1739
1620
  }
1740
1621
  });
1741
- exports.opTruncateSchedule = opTruncateSchedule;
1622
+ exports.opSetCloseTarget = opSetCloseTarget;
1742
1623
  /**
1743
1624
  * Create Closing Entry
1744
1625
  *
@@ -1774,73 +1655,73 @@ const opCreateManualClosingEntry = (options) => (options.client ?? client_gen_1.
1774
1655
  });
1775
1656
  exports.opCreateManualClosingEntry = opCreateManualClosingEntry;
1776
1657
  /**
1777
- * Update Schedule
1658
+ * Truncate Schedule (End Early)
1778
1659
  *
1779
- * Update mutable fields on a schedule: name, entry_template, schedule_metadata. Period range and monthly_amount are NOT editable use truncate-schedule + create-schedule instead.
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 opUpdateSchedule = (options) => (options.client ?? client_gen_1.client).post({
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/update-schedule',
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.opUpdateSchedule = opUpdateSchedule;
1673
+ exports.opTruncateSchedule = opTruncateSchedule;
1793
1674
  /**
1794
- * Delete Schedule
1675
+ * Dispose Schedule (Sale or Abandonment)
1795
1676
  *
1796
- * Permanently delete a schedule, cascading through facts and associations. For ending a schedule early without removing history, use truncate-schedule instead.
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 opDeleteSchedule = (options) => (options.client ?? client_gen_1.client).post({
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/delete-schedule',
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.opDeleteSchedule = opDeleteSchedule;
1690
+ exports.opDisposeSchedule = opDisposeSchedule;
1810
1691
  /**
1811
- * Create Mapping Association
1692
+ * Close Fiscal Period
1693
+ *
1812
1694
  *
1813
- * 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.
1814
1695
  *
1815
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.
1816
1697
  */
1817
- const opCreateMappingAssociation = (options) => (options.client ?? client_gen_1.client).post({
1698
+ const opClosePeriod = (options) => (options.client ?? client_gen_1.client).post({
1818
1699
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1819
- url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association',
1700
+ url: '/extensions/roboledger/{graph_id}/operations/close-period',
1820
1701
  ...options,
1821
1702
  headers: {
1822
1703
  'Content-Type': 'application/json',
1823
1704
  ...options.headers
1824
1705
  }
1825
1706
  });
1826
- exports.opCreateMappingAssociation = opCreateMappingAssociation;
1707
+ exports.opClosePeriod = opClosePeriod;
1827
1708
  /**
1828
- * Auto-Map Elements via AI (async)
1709
+ * Reopen Fiscal Period
1829
1710
  *
1830
- * 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.
1711
+ * Decrements `closed_through` by one only the most recently closed period can be reopened.
1831
1712
  *
1832
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.
1833
1714
  */
1834
- const opAutoMapElements = (options) => (options.client ?? client_gen_1.client).post({
1715
+ const opReopenPeriod = (options) => (options.client ?? client_gen_1.client).post({
1835
1716
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1836
- url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements',
1717
+ url: '/extensions/roboledger/{graph_id}/operations/reopen-period',
1837
1718
  ...options,
1838
1719
  headers: {
1839
1720
  'Content-Type': 'application/json',
1840
1721
  ...options.headers
1841
1722
  }
1842
1723
  });
1843
- exports.opAutoMapElements = opAutoMapElements;
1724
+ exports.opReopenPeriod = opReopenPeriod;
1844
1725
  /**
1845
1726
  * Create Report
1846
1727
  *