@robosystems/client 0.3.41 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/QueryClient.js +2 -2
- package/artifacts/QueryClient.ts +5 -5
- package/artifacts/graphql/generated/graphql.d.ts +4 -2
- package/artifacts/graphql/generated/graphql.ts +5 -4
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +17 -12
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +98 -54
- package/sdk/sdk.gen.js +204 -115
- package/sdk/sdk.gen.ts +188 -99
- package/sdk/types.gen.d.ts +1114 -575
- package/sdk/types.gen.ts +1166 -596
- package/sdk.gen.d.ts +98 -54
- package/sdk.gen.js +204 -115
- package/sdk.gen.ts +188 -99
- package/types.gen.d.ts +1114 -575
- package/types.gen.ts +1166 -596
package/sdk.gen.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.listMcpTools = exports.recommendOperator = exports.batchProcessQueries = exports.executeSpecificOperator = exports.getOperatorMetadata = exports.autoSelectOperator = exports.listOperators = exports.setConnectionWritePolicy = exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.opDeleteSecurity = exports.opUpdateSecurity = exports.opCreateSecurity = exports.opDeletePortfolioBlock = exports.opUpdatePortfolioBlock = exports.opCreatePortfolioBlock = exports.opFinancialStatementAnalysis = exports.opBuildFactGrid = exports.opLiveFinancialStatement = exports.opRemovePublishListMember = exports.opAddPublishListMembers = exports.opDeletePublishList = exports.opUpdatePublishList = void 0;
|
|
4
|
+
exports.listMcpTools = exports.recommendOperator = exports.batchProcessQueries = exports.executeSpecificOperator = exports.getOperatorMetadata = exports.autoSelectOperator = exports.listOperators = exports.setConnectionWritePolicy = exports.getConnection = exports.deleteConnection = exports.createConnection = exports.listConnections = exports.oauthCallback = exports.initOAuth = exports.getConnectionOptions = exports.syncConnection = 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
|
+
exports.createGraph = exports.getGraphs = exports.getFile = exports.listFiles = exports.opDeleteFile = exports.opIngestFile = exports.opCreateFileUpload = exports.opDeleteDocument = exports.opIndexDocument = exports.opUpdateMemory = exports.opForget = exports.opRemember = exports.opMaterialize = exports.opChangeTier = exports.opRestoreBackup = exports.opCreateBackup = exports.opDeleteGraph = exports.opDeleteSubgraph = exports.opCreateSubgraph = exports.recallMemory = exports.getMemory = exports.listMemories = exports.getDocument = exports.listDocuments = exports.getDocumentSection = exports.searchDocuments = exports.listTables = exports.cancelRepositorySubscription = 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.executeSql = exports.executeCypher = exports.getGraphUsageAnalytics = exports.getGraphMetrics = exports.getBackupStats = exports.getBackupDownloadUrl = exports.listBackups = exports.callMcpTool = void 0;
|
|
6
|
+
exports.opRegenerateReport = exports.opCreateReport = exports.opReopenPeriod = exports.opClosePeriod = exports.opSetCloseTarget = exports.opRebuildSchedule = exports.opPromoteObligations = exports.opDeleteJournalEntry = exports.opUpdateJournalEntry = exports.opPreviewEventBlock = exports.opUpdateEventHandler = exports.opCreateEventHandler = exports.opExecuteEventBlock = exports.opUpdateEventBlock = exports.opCreateEventBlock = exports.opUpdateAgent = exports.opCreateAgent = exports.opEvaluateRules = exports.opDeleteInformationBlock = exports.opUpdateInformationBlock = exports.opCreateInformationBlock = exports.opAutoMapElements = exports.opDeleteMappingAssociation = exports.opCreateMappingAssociation = exports.opLinkEntityTaxonomy = exports.opDeleteTaxonomyBlock = exports.opUpdateTaxonomyBlock = exports.opCreateTaxonomyBlock = exports.opChangeReportingStyle = 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 = exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getGraphCapacity = exports.getAvailableGraphTiers = exports.getAvailableExtensions = void 0;
|
|
7
|
+
exports.opDeleteSecurity = exports.opUpdateSecurity = exports.opCreateSecurity = exports.opDeletePortfolioBlock = exports.opUpdatePortfolioBlock = exports.opCreatePortfolioBlock = exports.opFinancialStatementAnalysis = exports.opBuildFactGrid = exports.opLiveFinancialStatement = exports.opRemovePublishListMember = exports.opAddPublishListMembers = exports.opDeletePublishList = exports.opUpdatePublishList = exports.opCreatePublishList = exports.opTransitionFilingStatus = exports.opFileReport = exports.opShareReport = exports.opDeleteReport = void 0;
|
|
8
8
|
const client_gen_1 = require("./client.gen");
|
|
9
9
|
/**
|
|
10
10
|
* Register New User
|
|
@@ -371,29 +371,20 @@ const getOrgUsage = (options) => (options.client ?? client_gen_1.client).get({
|
|
|
371
371
|
});
|
|
372
372
|
exports.getOrgUsage = getOrgUsage;
|
|
373
373
|
/**
|
|
374
|
-
*
|
|
375
|
-
*/
|
|
376
|
-
const listConnections = (options) => (options.client ?? client_gen_1.client).get({
|
|
377
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
378
|
-
url: '/v1/graphs/{graph_id}/connections',
|
|
379
|
-
...options
|
|
380
|
-
});
|
|
381
|
-
exports.listConnections = listConnections;
|
|
382
|
-
/**
|
|
383
|
-
* Create Connection
|
|
374
|
+
* Sync Connection
|
|
384
375
|
*
|
|
385
|
-
* SEC:
|
|
376
|
+
* SEC: downloads latest EDGAR filings (5-10 min). QuickBooks: fetches transactions, balances, and chart of accounts. Returns an `OperationEnvelope` — monitor progress via SSE at `/v1/operations/{operation_id}/stream`. Supports `Idempotency-Key`.
|
|
386
377
|
*/
|
|
387
|
-
const
|
|
378
|
+
const syncConnection = (options) => (options.client ?? client_gen_1.client).post({
|
|
388
379
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
389
|
-
url: '/v1/graphs/{graph_id}/connections',
|
|
380
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
|
|
390
381
|
...options,
|
|
391
382
|
headers: {
|
|
392
383
|
'Content-Type': 'application/json',
|
|
393
384
|
...options.headers
|
|
394
385
|
}
|
|
395
386
|
});
|
|
396
|
-
exports.
|
|
387
|
+
exports.syncConnection = syncConnection;
|
|
397
388
|
/**
|
|
398
389
|
* List Connection Options
|
|
399
390
|
*
|
|
@@ -433,6 +424,30 @@ const oauthCallback = (options) => (options.client ?? client_gen_1.client).post(
|
|
|
433
424
|
}
|
|
434
425
|
});
|
|
435
426
|
exports.oauthCallback = oauthCallback;
|
|
427
|
+
/**
|
|
428
|
+
* List Connections
|
|
429
|
+
*/
|
|
430
|
+
const listConnections = (options) => (options.client ?? client_gen_1.client).get({
|
|
431
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
432
|
+
url: '/v1/graphs/{graph_id}/connections',
|
|
433
|
+
...options
|
|
434
|
+
});
|
|
435
|
+
exports.listConnections = listConnections;
|
|
436
|
+
/**
|
|
437
|
+
* Create Connection
|
|
438
|
+
*
|
|
439
|
+
* SEC: provide entity CIK, no auth needed. QuickBooks: returns an OAuth URL — complete the flow to activate. One connection allowed per provider per graph.
|
|
440
|
+
*/
|
|
441
|
+
const createConnection = (options) => (options.client ?? client_gen_1.client).post({
|
|
442
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
443
|
+
url: '/v1/graphs/{graph_id}/connections',
|
|
444
|
+
...options,
|
|
445
|
+
headers: {
|
|
446
|
+
'Content-Type': 'application/json',
|
|
447
|
+
...options.headers
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
exports.createConnection = createConnection;
|
|
436
451
|
/**
|
|
437
452
|
* Delete Connection
|
|
438
453
|
*
|
|
@@ -453,21 +468,6 @@ const getConnection = (options) => (options.client ?? client_gen_1.client).get({
|
|
|
453
468
|
...options
|
|
454
469
|
});
|
|
455
470
|
exports.getConnection = getConnection;
|
|
456
|
-
/**
|
|
457
|
-
* Sync Connection
|
|
458
|
-
*
|
|
459
|
-
* SEC: downloads latest EDGAR filings (5-10 min). QuickBooks: fetches transactions, balances, and chart of accounts. Returns an `OperationEnvelope` — monitor progress via SSE at `/v1/operations/{operation_id}/stream`. Supports `Idempotency-Key`.
|
|
460
|
-
*/
|
|
461
|
-
const syncConnection = (options) => (options.client ?? client_gen_1.client).post({
|
|
462
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
463
|
-
url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
|
|
464
|
-
...options,
|
|
465
|
-
headers: {
|
|
466
|
-
'Content-Type': 'application/json',
|
|
467
|
-
...options.headers
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
exports.syncConnection = syncConnection;
|
|
471
471
|
/**
|
|
472
472
|
* Set Connection Write Policy
|
|
473
473
|
*
|
|
@@ -639,20 +639,35 @@ const getGraphUsageAnalytics = (options) => (options.client ?? client_gen_1.clie
|
|
|
639
639
|
});
|
|
640
640
|
exports.getGraphUsageAnalytics = getGraphUsageAnalytics;
|
|
641
641
|
/**
|
|
642
|
-
* Execute Cypher
|
|
642
|
+
* Execute Cypher Statement
|
|
643
|
+
*
|
|
644
|
+
* Cypher over the graph (LadybugDB). Main graphs are **read-only** — use the staging pipeline to ingest data. Subgraphs support full writes. Always use parameterized queries (`parameters: {"key": "val"}`) to prevent injection. Response modes: `auto` (default), `sync`, `async`, `stream`. Under load, queries are queued and emit an `operation_id` for SSE monitoring at `/v1/operations/{id}/stream`.
|
|
645
|
+
*/
|
|
646
|
+
const executeCypher = (options) => (options.client ?? client_gen_1.client).post({
|
|
647
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
648
|
+
url: '/v1/graphs/{graph_id}/query/cypher',
|
|
649
|
+
...options,
|
|
650
|
+
headers: {
|
|
651
|
+
'Content-Type': 'application/json',
|
|
652
|
+
...options.headers
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
exports.executeCypher = executeCypher;
|
|
656
|
+
/**
|
|
657
|
+
* Execute SQL Statement
|
|
643
658
|
*
|
|
644
|
-
*
|
|
659
|
+
* SQL over the graph's columnar tables (DuckDB) — a relational lens on the same graph-centric data, often ahead of the materialized graph. Use `?` placeholders with the `parameters` array to prevent injection. Read-only (SELECT only), 30s timeout, 10K row limit. Not available on shared repositories.
|
|
645
660
|
*/
|
|
646
|
-
const
|
|
661
|
+
const executeSql = (options) => (options.client ?? client_gen_1.client).post({
|
|
647
662
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
648
|
-
url: '/v1/graphs/{graph_id}/query',
|
|
663
|
+
url: '/v1/graphs/{graph_id}/query/sql',
|
|
649
664
|
...options,
|
|
650
665
|
headers: {
|
|
651
666
|
'Content-Type': 'application/json',
|
|
652
667
|
...options.headers
|
|
653
668
|
}
|
|
654
669
|
});
|
|
655
|
-
exports.
|
|
670
|
+
exports.executeSql = executeSql;
|
|
656
671
|
/**
|
|
657
672
|
* Get Runtime Graph Schema
|
|
658
673
|
*
|
|
@@ -835,21 +850,6 @@ const listTables = (options) => (options.client ?? client_gen_1.client).get({
|
|
|
835
850
|
...options
|
|
836
851
|
});
|
|
837
852
|
exports.listTables = listTables;
|
|
838
|
-
/**
|
|
839
|
-
* Query Staging Tables with SQL
|
|
840
|
-
*
|
|
841
|
-
* Execute SQL against DuckDB staging tables for pre-ingestion validation. Use `?` placeholders with the `parameters` array to prevent injection. Read-only (SELECT only), 30s timeout, 10K row limit. Not allowed on shared repositories.
|
|
842
|
-
*/
|
|
843
|
-
const queryTables = (options) => (options.client ?? client_gen_1.client).post({
|
|
844
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
845
|
-
url: '/v1/graphs/{graph_id}/tables/query',
|
|
846
|
-
...options,
|
|
847
|
-
headers: {
|
|
848
|
-
'Content-Type': 'application/json',
|
|
849
|
-
...options.headers
|
|
850
|
-
}
|
|
851
|
-
});
|
|
852
|
-
exports.queryTables = queryTables;
|
|
853
853
|
/**
|
|
854
854
|
* Search Graph Documents
|
|
855
855
|
*
|
|
@@ -884,53 +884,47 @@ const listDocuments = (options) => (options.client ?? client_gen_1.client).get({
|
|
|
884
884
|
});
|
|
885
885
|
exports.listDocuments = listDocuments;
|
|
886
886
|
/**
|
|
887
|
-
*
|
|
888
|
-
*
|
|
889
|
-
* Stored in PostgreSQL, synced to OpenSearch for search. Not allowed on shared repositories.
|
|
887
|
+
* Get Document
|
|
890
888
|
*/
|
|
891
|
-
const
|
|
889
|
+
const getDocument = (options) => (options.client ?? client_gen_1.client).get({
|
|
892
890
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
893
|
-
url: '/v1/graphs/{graph_id}/documents',
|
|
894
|
-
...options
|
|
895
|
-
headers: {
|
|
896
|
-
'Content-Type': 'application/json',
|
|
897
|
-
...options.headers
|
|
898
|
-
}
|
|
891
|
+
url: '/v1/graphs/{graph_id}/documents/{document_id}',
|
|
892
|
+
...options
|
|
899
893
|
});
|
|
900
|
-
exports.
|
|
894
|
+
exports.getDocument = getDocument;
|
|
901
895
|
/**
|
|
902
|
-
*
|
|
896
|
+
* List Memories
|
|
903
897
|
*/
|
|
904
|
-
const
|
|
898
|
+
const listMemories = (options) => (options.client ?? client_gen_1.client).get({
|
|
905
899
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
906
|
-
url: '/v1/graphs/{graph_id}/
|
|
900
|
+
url: '/v1/graphs/{graph_id}/memory',
|
|
907
901
|
...options
|
|
908
902
|
});
|
|
909
|
-
exports.
|
|
903
|
+
exports.listMemories = listMemories;
|
|
910
904
|
/**
|
|
911
|
-
* Get
|
|
905
|
+
* Get Memory
|
|
912
906
|
*/
|
|
913
|
-
const
|
|
907
|
+
const getMemory = (options) => (options.client ?? client_gen_1.client).get({
|
|
914
908
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
915
|
-
url: '/v1/graphs/{graph_id}/
|
|
909
|
+
url: '/v1/graphs/{graph_id}/memory/{memory_id}',
|
|
916
910
|
...options
|
|
917
911
|
});
|
|
918
|
-
exports.
|
|
912
|
+
exports.getMemory = getMemory;
|
|
919
913
|
/**
|
|
920
|
-
*
|
|
914
|
+
* Recall Semantic Memory
|
|
921
915
|
*
|
|
922
|
-
*
|
|
916
|
+
* Ranked semantic recall over the graph's per-graph memory store. Returns scored hits in the same shape as document search.
|
|
923
917
|
*/
|
|
924
|
-
const
|
|
918
|
+
const recallMemory = (options) => (options.client ?? client_gen_1.client).post({
|
|
925
919
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
926
|
-
url: '/v1/graphs/{graph_id}/
|
|
920
|
+
url: '/v1/graphs/{graph_id}/memory/recall',
|
|
927
921
|
...options,
|
|
928
922
|
headers: {
|
|
929
923
|
'Content-Type': 'application/json',
|
|
930
924
|
...options.headers
|
|
931
925
|
}
|
|
932
926
|
});
|
|
933
|
-
exports.
|
|
927
|
+
exports.recallMemory = recallMemory;
|
|
934
928
|
/**
|
|
935
929
|
* Create Subgraph
|
|
936
930
|
*
|
|
@@ -1034,102 +1028,180 @@ const opChangeTier = (options) => (options.client ?? client_gen_1.client).post({
|
|
|
1034
1028
|
});
|
|
1035
1029
|
exports.opChangeTier = opChangeTier;
|
|
1036
1030
|
/**
|
|
1037
|
-
*
|
|
1031
|
+
* Materialize Graph
|
|
1038
1032
|
*
|
|
1039
|
-
*
|
|
1033
|
+
* Rebuilds LadybugDB from staging tables (file uploads) or extensions OLTP data. Set `dry_run=true` to preview without changes.
|
|
1040
1034
|
*
|
|
1041
1035
|
* **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.
|
|
1042
1036
|
*/
|
|
1043
|
-
const
|
|
1037
|
+
const opMaterialize = (options) => (options.client ?? client_gen_1.client).post({
|
|
1044
1038
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1045
|
-
url: '/v1/graphs/{graph_id}/operations/
|
|
1039
|
+
url: '/v1/graphs/{graph_id}/operations/materialize',
|
|
1046
1040
|
...options,
|
|
1047
1041
|
headers: {
|
|
1048
1042
|
'Content-Type': 'application/json',
|
|
1049
1043
|
...options.headers
|
|
1050
1044
|
}
|
|
1051
1045
|
});
|
|
1052
|
-
exports.
|
|
1046
|
+
exports.opMaterialize = opMaterialize;
|
|
1053
1047
|
/**
|
|
1054
|
-
*
|
|
1048
|
+
* Remember (write semantic memory)
|
|
1055
1049
|
*
|
|
1056
|
-
*
|
|
1050
|
+
* Store a semantic memory in the graph's per-graph memory store. The text is embedded locally; recall it later via `POST /memory/recall`.
|
|
1057
1051
|
*
|
|
1058
1052
|
* **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.
|
|
1059
1053
|
*/
|
|
1060
|
-
const
|
|
1054
|
+
const opRemember = (options) => (options.client ?? client_gen_1.client).post({
|
|
1061
1055
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1062
|
-
url: '/v1/graphs/{graph_id}/operations/
|
|
1056
|
+
url: '/v1/graphs/{graph_id}/operations/remember',
|
|
1063
1057
|
...options,
|
|
1064
1058
|
headers: {
|
|
1065
1059
|
'Content-Type': 'application/json',
|
|
1066
1060
|
...options.headers
|
|
1067
1061
|
}
|
|
1068
1062
|
});
|
|
1069
|
-
exports.
|
|
1063
|
+
exports.opRemember = opRemember;
|
|
1070
1064
|
/**
|
|
1071
|
-
*
|
|
1065
|
+
* Forget (delete a semantic memory)
|
|
1072
1066
|
*
|
|
1073
|
-
*
|
|
1067
|
+
* Delete a semantic memory by its server-generated id.
|
|
1068
|
+
*
|
|
1069
|
+
* **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.
|
|
1074
1070
|
*/
|
|
1075
|
-
const
|
|
1071
|
+
const opForget = (options) => (options.client ?? client_gen_1.client).post({
|
|
1076
1072
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1077
|
-
url: '/v1/graphs/{graph_id}/
|
|
1078
|
-
...options
|
|
1073
|
+
url: '/v1/graphs/{graph_id}/operations/forget',
|
|
1074
|
+
...options,
|
|
1075
|
+
headers: {
|
|
1076
|
+
'Content-Type': 'application/json',
|
|
1077
|
+
...options.headers
|
|
1078
|
+
}
|
|
1079
1079
|
});
|
|
1080
|
-
exports.
|
|
1080
|
+
exports.opForget = opForget;
|
|
1081
1081
|
/**
|
|
1082
|
-
*
|
|
1082
|
+
* Update Memory (edit a semantic memory)
|
|
1083
|
+
*
|
|
1084
|
+
* Partially update a stored memory by its server-generated id. Only supplied fields change; the memory is re-embedded when `text` changes.
|
|
1083
1085
|
*
|
|
1084
|
-
*
|
|
1086
|
+
* **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.
|
|
1085
1087
|
*/
|
|
1086
|
-
const
|
|
1088
|
+
const opUpdateMemory = (options) => (options.client ?? client_gen_1.client).post({
|
|
1087
1089
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1088
|
-
url: '/v1/graphs/{graph_id}/
|
|
1090
|
+
url: '/v1/graphs/{graph_id}/operations/update-memory',
|
|
1089
1091
|
...options,
|
|
1090
1092
|
headers: {
|
|
1091
1093
|
'Content-Type': 'application/json',
|
|
1092
1094
|
...options.headers
|
|
1093
1095
|
}
|
|
1094
1096
|
});
|
|
1095
|
-
exports.
|
|
1097
|
+
exports.opUpdateMemory = opUpdateMemory;
|
|
1096
1098
|
/**
|
|
1097
|
-
*
|
|
1099
|
+
* Index Document (write to the corpus)
|
|
1100
|
+
*
|
|
1101
|
+
* Create a document (omit `document_id`) or update one (provide it). Stored in PostgreSQL, synced to OpenSearch for search.
|
|
1098
1102
|
*
|
|
1099
|
-
*
|
|
1103
|
+
* **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.
|
|
1100
1104
|
*/
|
|
1101
|
-
const
|
|
1105
|
+
const opIndexDocument = (options) => (options.client ?? client_gen_1.client).post({
|
|
1102
1106
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1103
|
-
url: '/v1/graphs/{graph_id}/
|
|
1104
|
-
...options
|
|
1107
|
+
url: '/v1/graphs/{graph_id}/operations/index-document',
|
|
1108
|
+
...options,
|
|
1109
|
+
headers: {
|
|
1110
|
+
'Content-Type': 'application/json',
|
|
1111
|
+
...options.headers
|
|
1112
|
+
}
|
|
1105
1113
|
});
|
|
1106
|
-
exports.
|
|
1114
|
+
exports.opIndexDocument = opIndexDocument;
|
|
1107
1115
|
/**
|
|
1108
|
-
*
|
|
1116
|
+
* Delete Document (remove from the corpus)
|
|
1109
1117
|
*
|
|
1110
|
-
*
|
|
1118
|
+
* Delete a document from PostgreSQL and OpenSearch by id.
|
|
1119
|
+
*
|
|
1120
|
+
* **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.
|
|
1111
1121
|
*/
|
|
1112
|
-
const
|
|
1122
|
+
const opDeleteDocument = (options) => (options.client ?? client_gen_1.client).post({
|
|
1113
1123
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1114
|
-
url: '/v1/graphs/{graph_id}/
|
|
1115
|
-
...options
|
|
1124
|
+
url: '/v1/graphs/{graph_id}/operations/delete-document',
|
|
1125
|
+
...options,
|
|
1126
|
+
headers: {
|
|
1127
|
+
'Content-Type': 'application/json',
|
|
1128
|
+
...options.headers
|
|
1129
|
+
}
|
|
1116
1130
|
});
|
|
1117
|
-
exports.
|
|
1131
|
+
exports.opDeleteDocument = opDeleteDocument;
|
|
1118
1132
|
/**
|
|
1119
|
-
*
|
|
1133
|
+
* Create File Upload (presign an S3 upload)
|
|
1134
|
+
*
|
|
1135
|
+
* Presign an S3 URL for direct upload and register the file. After uploading to the returned URL, call `POST /operations/ingest-file` to stage it into DuckDB. The staging table is auto-created if missing. Not allowed on entity graphs or shared repositories.
|
|
1120
1136
|
*
|
|
1121
|
-
*
|
|
1137
|
+
* **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.
|
|
1122
1138
|
*/
|
|
1123
|
-
const
|
|
1139
|
+
const opCreateFileUpload = (options) => (options.client ?? client_gen_1.client).post({
|
|
1124
1140
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1125
|
-
url: '/v1/graphs/{graph_id}/
|
|
1141
|
+
url: '/v1/graphs/{graph_id}/operations/create-file-upload',
|
|
1142
|
+
...options,
|
|
1143
|
+
headers: {
|
|
1144
|
+
'Content-Type': 'application/json',
|
|
1145
|
+
...options.headers
|
|
1146
|
+
}
|
|
1147
|
+
});
|
|
1148
|
+
exports.opCreateFileUpload = opCreateFileUpload;
|
|
1149
|
+
/**
|
|
1150
|
+
* Ingest File (stage an uploaded file)
|
|
1151
|
+
*
|
|
1152
|
+
* Mark an uploaded file ready and stage it into DuckDB. Small files stage directly (sync); large files stage via a background job (returns a pending envelope with an `operation_id` to monitor). Set `ingest_to_graph` to auto-materialize into the graph after staging.
|
|
1153
|
+
*
|
|
1154
|
+
* **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.
|
|
1155
|
+
*/
|
|
1156
|
+
const opIngestFile = (options) => (options.client ?? client_gen_1.client).post({
|
|
1157
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1158
|
+
url: '/v1/graphs/{graph_id}/operations/ingest-file',
|
|
1126
1159
|
...options,
|
|
1127
1160
|
headers: {
|
|
1128
1161
|
'Content-Type': 'application/json',
|
|
1129
1162
|
...options.headers
|
|
1130
1163
|
}
|
|
1131
1164
|
});
|
|
1132
|
-
exports.
|
|
1165
|
+
exports.opIngestFile = opIngestFile;
|
|
1166
|
+
/**
|
|
1167
|
+
* Delete File
|
|
1168
|
+
*
|
|
1169
|
+
* Delete a file from S3 and PostgreSQL. `cascade=true` also removes its rows from DuckDB staging tables and marks the graph stale.
|
|
1170
|
+
*
|
|
1171
|
+
* **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.
|
|
1172
|
+
*/
|
|
1173
|
+
const opDeleteFile = (options) => (options.client ?? client_gen_1.client).post({
|
|
1174
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1175
|
+
url: '/v1/graphs/{graph_id}/operations/delete-file',
|
|
1176
|
+
...options,
|
|
1177
|
+
headers: {
|
|
1178
|
+
'Content-Type': 'application/json',
|
|
1179
|
+
...options.headers
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
exports.opDeleteFile = opDeleteFile;
|
|
1183
|
+
/**
|
|
1184
|
+
* List Files in Graph
|
|
1185
|
+
*
|
|
1186
|
+
* Filter by `table_name` or upload `status`. Files are graph-scoped resources with S3 → DuckDB → Graph lifecycle tracking.
|
|
1187
|
+
*/
|
|
1188
|
+
const listFiles = (options) => (options.client ?? client_gen_1.client).get({
|
|
1189
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1190
|
+
url: '/v1/graphs/{graph_id}/files',
|
|
1191
|
+
...options
|
|
1192
|
+
});
|
|
1193
|
+
exports.listFiles = listFiles;
|
|
1194
|
+
/**
|
|
1195
|
+
* Get File Information
|
|
1196
|
+
*
|
|
1197
|
+
* Returns per-layer status (`layers.s3`, `layers.duckdb`, `layers.graph`) for pipeline debugging.
|
|
1198
|
+
*/
|
|
1199
|
+
const getFile = (options) => (options.client ?? client_gen_1.client).get({
|
|
1200
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1201
|
+
url: '/v1/graphs/{graph_id}/files/{file_id}',
|
|
1202
|
+
...options
|
|
1203
|
+
});
|
|
1204
|
+
exports.getFile = getFile;
|
|
1133
1205
|
/**
|
|
1134
1206
|
* List User Graphs and Repositories
|
|
1135
1207
|
*/
|
|
@@ -1399,6 +1471,23 @@ const opUpdateEntity = (options) => (options.client ?? client_gen_1.client).post
|
|
|
1399
1471
|
}
|
|
1400
1472
|
});
|
|
1401
1473
|
exports.opUpdateEntity = opUpdateEntity;
|
|
1474
|
+
/**
|
|
1475
|
+
* Change Reporting Style
|
|
1476
|
+
*
|
|
1477
|
+
* Switch the reporting entity's Reporting Style — how its statements are laid out (equity-form, close-target concept, per-statement Networks). Validates that the target Style has a complete composition in the tenant schema, then flips `entities.reporting_style_id`. Omit `entity_id` to target the graph's primary entity. Filed Reports are unaffected (their FactSet rows pin their structures at create-time); new reports use the new Style. Idempotent on the same id.
|
|
1478
|
+
*
|
|
1479
|
+
* **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.
|
|
1480
|
+
*/
|
|
1481
|
+
const opChangeReportingStyle = (options) => (options.client ?? client_gen_1.client).post({
|
|
1482
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1483
|
+
url: '/extensions/roboledger/{graph_id}/operations/change-reporting-style',
|
|
1484
|
+
...options,
|
|
1485
|
+
headers: {
|
|
1486
|
+
'Content-Type': 'application/json',
|
|
1487
|
+
...options.headers
|
|
1488
|
+
}
|
|
1489
|
+
});
|
|
1490
|
+
exports.opChangeReportingStyle = opChangeReportingStyle;
|
|
1402
1491
|
/**
|
|
1403
1492
|
* Create Taxonomy Block
|
|
1404
1493
|
*
|