@robosystems/client 0.3.41 → 0.3.42

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.
@@ -234,7 +234,7 @@ export type DraftEntry = {
234
234
  lineItems: Array<DraftLineItem>;
235
235
  memo: Maybe<Scalars['String']['output']>;
236
236
  postingDate: Scalars['Date']['output'];
237
- /** Where the entry came from: 'ai_generated', 'manual_entry', etc. */
237
+ /** Where the entry came from (ENTRY_PROVENANCE_VALUES): source_sync, ai_generated, manual_entry, schedule_derived, system_computed, event_handler */
238
238
  provenance: Maybe<Scalars['String']['output']>;
239
239
  /** Schedule structure that generated this entry (if any) */
240
240
  sourceStructureId: Maybe<Scalars['String']['output']>;
@@ -1812,7 +1812,7 @@ export type ReportBundleDownload = {
1812
1812
  /** Bundle generation number stamped on the Report. */
1813
1813
  generationCount: Scalars['Int']['output'];
1814
1814
  };
1815
- export type ReportDownloadFormat = 'JSONLD' | 'XBRL_2_1';
1815
+ export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'XBRL_2_1';
1816
1816
  /** List of report header summaries (used by report list reads). */
1817
1817
  export type ReportList = {
1818
1818
  /** Report definitions, newest first. */
@@ -8,8 +8,7 @@ export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> =
8
8
  [_ in K]?: never
9
9
  }
10
10
  export type Incremental<T> =
11
- | T
12
- | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }
11
+ T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }
13
12
  /** All built-in and custom scalars, mapped to their actual values */
14
13
  export type Scalars = {
15
14
  ID: { input: string; output: string }
@@ -214,7 +213,7 @@ export type DraftEntry = {
214
213
  lineItems: Array<DraftLineItem>
215
214
  memo: Maybe<Scalars['String']['output']>
216
215
  postingDate: Scalars['Date']['output']
217
- /** Where the entry came from: 'ai_generated', 'manual_entry', etc. */
216
+ /** Where the entry came from (ENTRY_PROVENANCE_VALUES): source_sync, ai_generated, manual_entry, schedule_derived, system_computed, event_handler */
218
217
  provenance: Maybe<Scalars['String']['output']>
219
218
  /** Schedule structure that generated this entry (if any) */
220
219
  sourceStructureId: Maybe<Scalars['String']['output']>
@@ -1915,7 +1914,7 @@ export type ReportBundleDownload = {
1915
1914
  generationCount: Scalars['Int']['output']
1916
1915
  }
1917
1916
 
1918
- export type ReportDownloadFormat = 'JSONLD' | 'XBRL_2_1'
1917
+ export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'XBRL_2_1'
1919
1918
 
1920
1919
  /** List of report header summaries (used by report list reads). */
1921
1920
  export type ReportList = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "0.3.41",
3
+ "version": "0.3.42",
4
4
  "description": "TypeScript client library for RoboSystems Financial Knowledge Graph API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/sdk/sdk.gen.d.ts CHANGED
@@ -192,15 +192,11 @@ export declare const getOrgLimits: <ThrowOnError extends boolean = false>(option
192
192
  */
193
193
  export declare const getOrgUsage: <ThrowOnError extends boolean = false>(options: Options<GetOrgUsageData, ThrowOnError>) => import("./client").RequestResult<GetOrgUsageResponses, GetOrgUsageErrors, ThrowOnError, "fields">;
194
194
  /**
195
- * List Connections
196
- */
197
- export declare const listConnections: <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>) => import("./client").RequestResult<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError, "fields">;
198
- /**
199
- * Create Connection
195
+ * Sync Connection
200
196
  *
201
- * SEC: provide entity CIK, no auth needed. QuickBooks: returns an OAuth URL complete the flow to activate. One connection allowed per provider per graph.
197
+ * 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`.
202
198
  */
203
- export declare const createConnection: <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => import("./client").RequestResult<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError, "fields">;
199
+ export declare const syncConnection: <ThrowOnError extends boolean = false>(options: Options<SyncConnectionData, ThrowOnError>) => import("./client").RequestResult<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError, "fields">;
204
200
  /**
205
201
  * List Connection Options
206
202
  *
@@ -217,6 +213,16 @@ export declare const initOAuth: <ThrowOnError extends boolean = false>(options:
217
213
  * Completes the OAuth authorization flow after provider redirect. Exchanges the authorization code for tokens, stores them, and triggers an initial sync. This is a redirect target — not typically called directly.
218
214
  */
219
215
  export declare const oauthCallback: <ThrowOnError extends boolean = false>(options: Options<OauthCallbackData, ThrowOnError>) => import("./client").RequestResult<OauthCallbackResponses, OauthCallbackErrors, ThrowOnError, "fields">;
216
+ /**
217
+ * List Connections
218
+ */
219
+ export declare const listConnections: <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>) => import("./client").RequestResult<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError, "fields">;
220
+ /**
221
+ * Create Connection
222
+ *
223
+ * SEC: provide entity CIK, no auth needed. QuickBooks: returns an OAuth URL — complete the flow to activate. One connection allowed per provider per graph.
224
+ */
225
+ export declare const createConnection: <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => import("./client").RequestResult<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError, "fields">;
220
226
  /**
221
227
  * Delete Connection
222
228
  *
@@ -227,12 +233,6 @@ export declare const deleteConnection: <ThrowOnError extends boolean = false>(op
227
233
  * Get Connection
228
234
  */
229
235
  export declare const getConnection: <ThrowOnError extends boolean = false>(options: Options<GetConnectionData, ThrowOnError>) => import("./client").RequestResult<GetConnectionResponses, GetConnectionErrors, ThrowOnError, "fields">;
230
- /**
231
- * Sync Connection
232
- *
233
- * 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`.
234
- */
235
- export declare const syncConnection: <ThrowOnError extends boolean = false>(options: Options<SyncConnectionData, ThrowOnError>) => import("./client").RequestResult<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError, "fields">;
236
236
  /**
237
237
  * Set Connection Write Policy
238
238
  *
package/sdk/sdk.gen.js CHANGED
@@ -1,7 +1,7 @@
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.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;
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
5
  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.opChangeReportingStyle = exports.opChangeTier = exports.opRestoreBackup = exports.opCreateBackup = exports.opDeleteGraph = exports.opDeleteSubgraph = exports.opCreateSubgraph = exports.updateDocument = exports.getDocument = exports.deleteDocument = exports.uploadDocument = exports.listDocuments = exports.getDocumentSection = exports.searchDocuments = exports.queryTables = 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.executeCypherQuery = exports.getGraphUsageAnalytics = exports.getGraphMetrics = exports.getBackupStats = exports.getBackupDownloadUrl = exports.listBackups = exports.callMcpTool = void 0;
6
6
  exports.opCreatePublishList = exports.opTransitionFilingStatus = exports.opFileReport = exports.opShareReport = exports.opDeleteReport = 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.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 = void 0;
7
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;
@@ -371,29 +371,20 @@ const getOrgUsage = (options) => (options.client ?? client_gen_1.client).get({
371
371
  });
372
372
  exports.getOrgUsage = getOrgUsage;
373
373
  /**
374
- * List Connections
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: provide entity CIK, no auth needed. QuickBooks: returns an OAuth URL complete the flow to activate. One connection allowed per provider per graph.
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 createConnection = (options) => (options.client ?? client_gen_1.client).post({
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.createConnection = createConnection;
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
  *
package/sdk/sdk.gen.ts CHANGED
@@ -383,22 +383,13 @@ export const getOrgUsage = <ThrowOnError extends boolean = false>(options: Optio
383
383
  });
384
384
 
385
385
  /**
386
- * List Connections
387
- */
388
- export const listConnections = <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>) => (options.client ?? client).get<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError>({
389
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
390
- url: '/v1/graphs/{graph_id}/connections',
391
- ...options
392
- });
393
-
394
- /**
395
- * Create Connection
386
+ * Sync Connection
396
387
  *
397
- * SEC: provide entity CIK, no auth needed. QuickBooks: returns an OAuth URL complete the flow to activate. One connection allowed per provider per graph.
388
+ * 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`.
398
389
  */
399
- export const createConnection = <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => (options.client ?? client).post<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError>({
390
+ export const syncConnection = <ThrowOnError extends boolean = false>(options: Options<SyncConnectionData, ThrowOnError>) => (options.client ?? client).post<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError>({
400
391
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
401
- url: '/v1/graphs/{graph_id}/connections',
392
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
402
393
  ...options,
403
394
  headers: {
404
395
  'Content-Type': 'application/json',
@@ -445,6 +436,30 @@ export const oauthCallback = <ThrowOnError extends boolean = false>(options: Opt
445
436
  }
446
437
  });
447
438
 
439
+ /**
440
+ * List Connections
441
+ */
442
+ export const listConnections = <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>) => (options.client ?? client).get<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError>({
443
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
444
+ url: '/v1/graphs/{graph_id}/connections',
445
+ ...options
446
+ });
447
+
448
+ /**
449
+ * Create Connection
450
+ *
451
+ * SEC: provide entity CIK, no auth needed. QuickBooks: returns an OAuth URL — complete the flow to activate. One connection allowed per provider per graph.
452
+ */
453
+ export const createConnection = <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => (options.client ?? client).post<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError>({
454
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
455
+ url: '/v1/graphs/{graph_id}/connections',
456
+ ...options,
457
+ headers: {
458
+ 'Content-Type': 'application/json',
459
+ ...options.headers
460
+ }
461
+ });
462
+
448
463
  /**
449
464
  * Delete Connection
450
465
  *
@@ -465,21 +480,6 @@ export const getConnection = <ThrowOnError extends boolean = false>(options: Opt
465
480
  ...options
466
481
  });
467
482
 
468
- /**
469
- * Sync Connection
470
- *
471
- * 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`.
472
- */
473
- export const syncConnection = <ThrowOnError extends boolean = false>(options: Options<SyncConnectionData, ThrowOnError>) => (options.client ?? client).post<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError>({
474
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
475
- url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
476
- ...options,
477
- headers: {
478
- 'Content-Type': 'application/json',
479
- ...options.headers
480
- }
481
- });
482
-
483
483
  /**
484
484
  * Set Connection Write Policy
485
485
  *