@robosystems/client 1.17.0 → 1.17.2

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/types.gen.ts CHANGED
@@ -2074,7 +2074,7 @@ export type ConnectionProviderInfo = {
2074
2074
  *
2075
2075
  * Provider identifier
2076
2076
  */
2077
- provider: 'quickbooks' | 'external' | 'mercury';
2077
+ provider: 'quickbooks' | 'external' | 'mercury' | 'plaid';
2078
2078
  /**
2079
2079
  * Display Name
2080
2080
  *
@@ -2475,7 +2475,7 @@ export type CreateConnectionRequest = {
2475
2475
  *
2476
2476
  * Connection provider type
2477
2477
  */
2478
- provider: 'quickbooks' | 'external' | 'mercury';
2478
+ provider: 'quickbooks' | 'external' | 'mercury' | 'plaid';
2479
2479
  /**
2480
2480
  * Entity Id
2481
2481
  *
@@ -2485,6 +2485,7 @@ export type CreateConnectionRequest = {
2485
2485
  quickbooks_config?: QuickBooksConnectionConfig | null;
2486
2486
  external_config?: ExternalConnectionConfig | null;
2487
2487
  mercury_config?: MercuryConnectionConfig | null;
2488
+ plaid_config?: PlaidConnectionConfig | null;
2488
2489
  };
2489
2490
 
2490
2491
  /**
@@ -4324,6 +4325,98 @@ export type Dimension = {
4324
4325
  */
4325
4326
  export type DimensionType = 'element' | 'period' | 'entity';
4326
4327
 
4328
+ /**
4329
+ * DisclosuresRequest
4330
+ *
4331
+ * Request for the disclosures view op — the map of a report's sections.
4332
+ */
4333
+ export type DisclosuresRequest = {
4334
+ /**
4335
+ * Ticker
4336
+ *
4337
+ * Company ticker. On shared-repository graphs (SEC) it resolves the latest matching filing when report_id is not given; ignored on tenant graphs.
4338
+ */
4339
+ ticker?: string | null;
4340
+ /**
4341
+ * Report Id
4342
+ *
4343
+ * Specific report identifier. Required on tenant graphs; on SEC, optional when ticker is given.
4344
+ */
4345
+ report_id?: string | null;
4346
+ /**
4347
+ * Fiscal Year
4348
+ *
4349
+ * Narrow auto-resolution to this fiscal year focus
4350
+ */
4351
+ fiscal_year?: number | null;
4352
+ /**
4353
+ * Period Type
4354
+ *
4355
+ * Which forms auto-resolution considers: annual (10-K / 20-F / 40-F, the default) or quarterly (10-Q as well)
4356
+ */
4357
+ period_type?: string | null;
4358
+ /**
4359
+ * Topic
4360
+ *
4361
+ * A disclosure family's name, or part of it ("leases", "income taxes"), for that family's blocks. Omit for the whole map.
4362
+ */
4363
+ topic?: string | null;
4364
+ };
4365
+
4366
+ /**
4367
+ * DisclosuresResponse
4368
+ *
4369
+ * The disclosures view op's result: xbrlkit's map, stamped with the graph
4370
+ * and report it was read from.
4371
+ *
4372
+ * Without ``topic``: ``disclosures`` / ``count``. With ``topic``:
4373
+ * ``disclosure`` / ``category`` / ``blocks`` / ``block_count``.
4374
+ */
4375
+ export type DisclosuresResponse = {
4376
+ /**
4377
+ * Graph Id
4378
+ */
4379
+ graph_id: string;
4380
+ /**
4381
+ * Report Id
4382
+ */
4383
+ report_id: string;
4384
+ resolved_report?: ResolvedReportInfo | null;
4385
+ /**
4386
+ * Disclosures
4387
+ */
4388
+ disclosures?: Array<{
4389
+ [key: string]: unknown;
4390
+ }> | null;
4391
+ /**
4392
+ * Count
4393
+ */
4394
+ count?: number | null;
4395
+ /**
4396
+ * Disclosure
4397
+ */
4398
+ disclosure?: string | null;
4399
+ /**
4400
+ * Category
4401
+ */
4402
+ category?: string | null;
4403
+ /**
4404
+ * Blocks
4405
+ */
4406
+ blocks?: Array<{
4407
+ [key: string]: unknown;
4408
+ }> | null;
4409
+ /**
4410
+ * Block Count
4411
+ */
4412
+ block_count?: number | null;
4413
+ /**
4414
+ * Note
4415
+ */
4416
+ note?: string | null;
4417
+ [key: string]: unknown;
4418
+ };
4419
+
4327
4420
  /**
4328
4421
  * DocumentDetailResponse
4329
4422
  *
@@ -7272,6 +7365,154 @@ export type InformationBlockEnvelope = {
7272
7365
  view?: ViewProjections;
7273
7366
  };
7274
7367
 
7368
+ /**
7369
+ * InformationBlockRequest
7370
+ *
7371
+ * Request for the information-block view op — one section read whole.
7372
+ */
7373
+ export type InformationBlockRequest = {
7374
+ /**
7375
+ * Ticker
7376
+ *
7377
+ * Company ticker. On shared-repository graphs (SEC) it resolves the latest matching filing when report_id is not given; ignored on tenant graphs.
7378
+ */
7379
+ ticker?: string | null;
7380
+ /**
7381
+ * Report Id
7382
+ *
7383
+ * Specific report identifier. Required on tenant graphs; on SEC, optional when ticker is given.
7384
+ */
7385
+ report_id?: string | null;
7386
+ /**
7387
+ * Fiscal Year
7388
+ *
7389
+ * Narrow auto-resolution to this fiscal year focus
7390
+ */
7391
+ fiscal_year?: number | null;
7392
+ /**
7393
+ * Period Type
7394
+ *
7395
+ * Which forms auto-resolution considers: annual (10-K / 20-F / 40-F, the default) or quarterly (10-Q as well)
7396
+ */
7397
+ period_type?: string | null;
7398
+ /**
7399
+ * Block
7400
+ *
7401
+ * The block id from disclosures (a role name or its last segment also resolves)
7402
+ */
7403
+ block: string;
7404
+ /**
7405
+ * Periods
7406
+ *
7407
+ * Period keys to keep, from a previous call's columns. Default keeps the budgeted set, year and balance columns first on an annual form.
7408
+ */
7409
+ periods?: Array<string> | null;
7410
+ /**
7411
+ * Member
7412
+ *
7413
+ * Keep only breakdowns whose member key contains this text (a segment name)
7414
+ */
7415
+ member?: string | null;
7416
+ /**
7417
+ * Max Rows
7418
+ *
7419
+ * Cap on presentation rows (default 400)
7420
+ */
7421
+ max_rows?: number | null;
7422
+ /**
7423
+ * Max Members
7424
+ *
7425
+ * An explicit cap on member breakdowns, instead of the response budget
7426
+ */
7427
+ max_members?: number | null;
7428
+ /**
7429
+ * Offset
7430
+ *
7431
+ * Rows to skip: the next_offset a truncated response returned
7432
+ */
7433
+ offset?: number | null;
7434
+ };
7435
+
7436
+ /**
7437
+ * InformationBlockResponse
7438
+ *
7439
+ * The information-block view op's result: xbrlkit's block, stamped.
7440
+ */
7441
+ export type InformationBlockResponse = {
7442
+ /**
7443
+ * Graph Id
7444
+ */
7445
+ graph_id: string;
7446
+ /**
7447
+ * Report Id
7448
+ */
7449
+ report_id: string;
7450
+ resolved_report?: ResolvedReportInfo | null;
7451
+ /**
7452
+ * Block
7453
+ */
7454
+ block: {
7455
+ [key: string]: unknown;
7456
+ };
7457
+ /**
7458
+ * Columns
7459
+ */
7460
+ columns?: Array<{
7461
+ [key: string]: unknown;
7462
+ }>;
7463
+ /**
7464
+ * Axes
7465
+ */
7466
+ axes?: Array<{
7467
+ [key: string]: unknown;
7468
+ }> | null;
7469
+ /**
7470
+ * Rows
7471
+ */
7472
+ rows?: Array<{
7473
+ [key: string]: unknown;
7474
+ }>;
7475
+ /**
7476
+ * Row Count
7477
+ */
7478
+ row_count?: number | null;
7479
+ /**
7480
+ * Truncated
7481
+ */
7482
+ truncated?: boolean | null;
7483
+ /**
7484
+ * Offset
7485
+ */
7486
+ offset?: number | null;
7487
+ /**
7488
+ * Ancestors
7489
+ */
7490
+ ancestors?: Array<{
7491
+ [key: string]: unknown;
7492
+ }> | null;
7493
+ /**
7494
+ * Next Offset
7495
+ */
7496
+ next_offset?: number | null;
7497
+ /**
7498
+ * Calculation
7499
+ */
7500
+ calculation?: Array<{
7501
+ [key: string]: unknown;
7502
+ }> | null;
7503
+ /**
7504
+ * Text
7505
+ */
7506
+ text?: Array<{
7507
+ [key: string]: unknown;
7508
+ }> | null;
7509
+ /**
7510
+ * Note
7511
+ */
7512
+ note?: string | null;
7513
+ [key: string]: unknown;
7514
+ };
7515
+
7275
7516
  /**
7276
7517
  * InformationModelResponse
7277
7518
  *
@@ -9092,7 +9333,7 @@ export type OAuthCallbackRequest = {
9092
9333
  /**
9093
9334
  * Code
9094
9335
  *
9095
- * Authorization code from OAuth provider
9336
+ * Authorization code from the OAuth provider (Plaid: the public_token Link returned)
9096
9337
  */
9097
9338
  code: string;
9098
9339
  /**
@@ -9266,15 +9507,21 @@ export type OAuthInitRequest = {
9266
9507
  /**
9267
9508
  * OAuthInitResponse
9268
9509
  *
9269
- * Response with OAuth authorization URL.
9510
+ * Where the user authorizes: a redirect URL, or a token for an embedded widget.
9270
9511
  */
9271
9512
  export type OAuthInitResponse = {
9272
9513
  /**
9273
9514
  * Auth Url
9274
9515
  *
9275
- * URL to redirect user for authorization
9516
+ * URL to redirect the user to for authorization. Null for providers that authorize in an embedded widget (Plaid: see link_token).
9517
+ */
9518
+ auth_url?: string | null;
9519
+ /**
9520
+ * Link Token
9521
+ *
9522
+ * Plaid only: the token that opens Plaid Link. Link's public_token completes the flow through the callback, as code.
9276
9523
  */
9277
- auth_url: string;
9524
+ link_token?: string | null;
9278
9525
  /**
9279
9526
  * State
9280
9527
  *
@@ -10112,6 +10359,52 @@ export type OperationEnvelopeDeleteTaxonomyBlockResponse = {
10112
10359
  idempotentReplay?: boolean;
10113
10360
  };
10114
10361
 
10362
+ /**
10363
+ * OperationEnvelope[DisclosuresResponse]
10364
+ */
10365
+ export type OperationEnvelopeDisclosuresResponse = {
10366
+ /**
10367
+ * Operation
10368
+ *
10369
+ * Kebab-case operation name
10370
+ */
10371
+ operation: string;
10372
+ /**
10373
+ * Operationid
10374
+ *
10375
+ * op_-prefixed ULID for audit and SSE correlation
10376
+ */
10377
+ operationId: string;
10378
+ /**
10379
+ * Status
10380
+ *
10381
+ * Operation lifecycle state
10382
+ */
10383
+ status: 'completed' | 'pending' | 'failed';
10384
+ /**
10385
+ * Command-specific result payload
10386
+ */
10387
+ result?: DisclosuresResponse | null;
10388
+ /**
10389
+ * At
10390
+ *
10391
+ * ISO-8601 UTC timestamp
10392
+ */
10393
+ at: string;
10394
+ /**
10395
+ * Createdby
10396
+ *
10397
+ * User ID that initiated the operation (null for legacy callers)
10398
+ */
10399
+ createdBy?: string | null;
10400
+ /**
10401
+ * Idempotentreplay
10402
+ *
10403
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
10404
+ */
10405
+ idempotentReplay?: boolean;
10406
+ };
10407
+
10115
10408
  /**
10116
10409
  * OperationEnvelope[EntityTaxonomyResponse]
10117
10410
  */
@@ -10526,6 +10819,52 @@ export type OperationEnvelopeInformationBlockEnvelope = {
10526
10819
  idempotentReplay?: boolean;
10527
10820
  };
10528
10821
 
10822
+ /**
10823
+ * OperationEnvelope[InformationBlockResponse]
10824
+ */
10825
+ export type OperationEnvelopeInformationBlockResponse = {
10826
+ /**
10827
+ * Operation
10828
+ *
10829
+ * Kebab-case operation name
10830
+ */
10831
+ operation: string;
10832
+ /**
10833
+ * Operationid
10834
+ *
10835
+ * op_-prefixed ULID for audit and SSE correlation
10836
+ */
10837
+ operationId: string;
10838
+ /**
10839
+ * Status
10840
+ *
10841
+ * Operation lifecycle state
10842
+ */
10843
+ status: 'completed' | 'pending' | 'failed';
10844
+ /**
10845
+ * Command-specific result payload
10846
+ */
10847
+ result?: InformationBlockResponse | null;
10848
+ /**
10849
+ * At
10850
+ *
10851
+ * ISO-8601 UTC timestamp
10852
+ */
10853
+ at: string;
10854
+ /**
10855
+ * Createdby
10856
+ *
10857
+ * User ID that initiated the operation (null for legacy callers)
10858
+ */
10859
+ createdBy?: string | null;
10860
+ /**
10861
+ * Idempotentreplay
10862
+ *
10863
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
10864
+ */
10865
+ idempotentReplay?: boolean;
10866
+ };
10867
+
10529
10868
  /**
10530
10869
  * OperationEnvelope[InitializeChartOfAccountsResponse]
10531
10870
  */
@@ -12510,6 +12849,27 @@ export type PeriodSpec = {
12510
12849
  label: string;
12511
12850
  };
12512
12851
 
12852
+ /**
12853
+ * PlaidConnectionConfig
12854
+ *
12855
+ * Plaid bank-feed connection configuration.
12856
+ *
12857
+ * A bank feed is native accounting: the graph must already have a chart of
12858
+ * accounts and no live QuickBooks connection. The connection is created
12859
+ * ``pending_oauth``; ``POST /oauth/init`` returns a ``link_token`` for Plaid
12860
+ * Link, and the ``public_token`` Link hands back completes it through
12861
+ * ``POST /oauth/callback/plaid`` (as ``code``). One connection per institution
12862
+ * login; a graph can hold several.
12863
+ */
12864
+ export type PlaidConnectionConfig = {
12865
+ /**
12866
+ * Since Date
12867
+ *
12868
+ * First day of the backfill (ISO 8601), and how much history Plaid is asked to pull for the new Item (at most two years). Defaults to 1 January of last year.
12869
+ */
12870
+ since_date?: string | null;
12871
+ };
12872
+
12513
12873
  /**
12514
12874
  * PortalSessionResponse
12515
12875
  *
@@ -13443,7 +13803,7 @@ export type ReconcilingItemPlan = {
13443
13803
  /**
13444
13804
  * Default Disposition
13445
13805
  *
13446
- * What resolve would do with no disposition given: restate while every affected period is open, catch_up once one is closed.
13806
+ * What resolve would do with no disposition given: restate while every affected period is open and nothing blocks it, catch_up otherwise.
13447
13807
  */
13448
13808
  default_disposition: 'restate' | 'catch_up' | 'acknowledge';
13449
13809
  /**
@@ -13936,13 +14296,13 @@ export type ReportResponse = {
13936
14296
  /**
13937
14297
  * Filed At
13938
14298
  *
13939
- * When the report was transitioned to `filed`.
14299
+ * When the report was transitioned to `filed`. On a report shared in from another graph this is the sender's filing time, carried over with `filing_status` so a recipient can tell a draft they were sent from final statements.
13940
14300
  */
13941
14301
  filed_at?: string | null;
13942
14302
  /**
13943
14303
  * Filed By
13944
14304
  *
13945
- * User ID that transitioned the report to `filed`.
14305
+ * User ID that transitioned the report to `filed`. Always null on a report shared in from another graph: the sender's user id resolves to nobody in the recipient's graph, so it is deliberately not carried across with `filing_status` and `filed_at`.
13946
14306
  */
13947
14307
  filed_by?: string | null;
13948
14308
  /**
@@ -14810,6 +15170,10 @@ export type SchemaValidationResponse = {
14810
15170
  * A long SEC section (an MD&A, a commitments note) is indexed in parts, each
14811
15171
  * a document of its own: ``part`` of ``part_count``, ``parent_document_id``
14812
15172
  * shared by the section's parts, ``next_document_id`` to read on.
15173
+ *
15174
+ * On a grouped search, ``also_in_filings`` counts the other filings of the
15175
+ * same filer whose same section (and part) matched and were folded into
15176
+ * this hit.
14813
15177
  */
14814
15178
  export type SearchHit = {
14815
15179
  /**
@@ -14900,6 +15264,10 @@ export type SearchHit = {
14900
15264
  * Folder
14901
15265
  */
14902
15266
  folder?: string | null;
15267
+ /**
15268
+ * Also In Filings
15269
+ */
15270
+ also_in_filings?: number | null;
14903
15271
  };
14904
15272
 
14905
15273
  /**
@@ -14917,7 +15285,7 @@ export type SearchRequest = {
14917
15285
  /**
14918
15286
  * Entity
14919
15287
  *
14920
- * Filter by ticker, CIK, or entity name
15288
+ * Filter by CIK (exactly one filer), ticker, or entity name. A name, or a ticker that is also a word, is a loose word match that can include other filers
14921
15289
  */
14922
15290
  entity?: string | null;
14923
15291
  /**
@@ -14968,6 +15336,12 @@ export type SearchRequest = {
14968
15336
  * Enable hybrid semantic search (BM25 + KNN). Default is BM25-only for speed.
14969
15337
  */
14970
15338
  semantic?: boolean;
15339
+ /**
15340
+ * Group
15341
+ *
15342
+ * Fold hits from successive filings of the same filer and section into the best-ranked one; also_in_filings counts the others. Ignored when entity is set, where a filer's filing history is the point. A grouped page is drawn from the first 100 hits.
15343
+ */
15344
+ group?: boolean;
14971
15345
  /**
14972
15346
  * Size
14973
15347
  *
@@ -14996,6 +15370,8 @@ export type SearchRequest = {
14996
15370
  export type SearchResponse = {
14997
15371
  /**
14998
15372
  * Total
15373
+ *
15374
+ * Matching documents before any grouping, as OpenSearch counts them (it stops counting at 10,000). Not the number of distinct results a grouped search can page through.
14999
15375
  */
15000
15376
  total: number;
15001
15377
  /**
@@ -21082,7 +21458,7 @@ export type ListConnectionsData = {
21082
21458
  *
21083
21459
  * Filter by provider type
21084
21460
  */
21085
- provider?: 'quickbooks' | 'external' | 'mercury' | null;
21461
+ provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
21086
21462
  };
21087
21463
  url: '/v1/graphs/{graph_id}/connections';
21088
21464
  };
@@ -29425,6 +29801,134 @@ export type FinancialStatementAnalysisResponses = {
29425
29801
 
29426
29802
  export type FinancialStatementAnalysisResponse2 = FinancialStatementAnalysisResponses[keyof FinancialStatementAnalysisResponses];
29427
29803
 
29804
+ export type DisclosuresData = {
29805
+ body: DisclosuresRequest;
29806
+ headers?: {
29807
+ /**
29808
+ * Idempotency-Key
29809
+ */
29810
+ 'Idempotency-Key'?: string | null;
29811
+ };
29812
+ path: {
29813
+ /**
29814
+ * Graph Id
29815
+ */
29816
+ graph_id: string;
29817
+ };
29818
+ query?: never;
29819
+ url: '/extensions/roboledger/{graph_id}/operations/disclosures';
29820
+ };
29821
+
29822
+ export type DisclosuresErrors = {
29823
+ /**
29824
+ * Invalid request
29825
+ */
29826
+ 400: ErrorResponse;
29827
+ /**
29828
+ * Authentication required
29829
+ */
29830
+ 401: ErrorResponse;
29831
+ /**
29832
+ * Access denied
29833
+ */
29834
+ 403: ErrorResponse;
29835
+ /**
29836
+ * Resource not found
29837
+ */
29838
+ 404: ErrorResponse;
29839
+ /**
29840
+ * Idempotency-Key conflict — key reused with different body
29841
+ */
29842
+ 409: ErrorResponse;
29843
+ /**
29844
+ * Validation error
29845
+ */
29846
+ 422: ErrorResponse;
29847
+ /**
29848
+ * Rate limit exceeded
29849
+ */
29850
+ 429: ErrorResponse;
29851
+ /**
29852
+ * Internal server error
29853
+ */
29854
+ 500: ErrorResponse;
29855
+ };
29856
+
29857
+ export type DisclosuresError = DisclosuresErrors[keyof DisclosuresErrors];
29858
+
29859
+ export type DisclosuresResponses = {
29860
+ /**
29861
+ * Successful Response
29862
+ */
29863
+ 200: OperationEnvelopeDisclosuresResponse;
29864
+ };
29865
+
29866
+ export type DisclosuresResponse2 = DisclosuresResponses[keyof DisclosuresResponses];
29867
+
29868
+ export type InformationBlockData = {
29869
+ body: InformationBlockRequest;
29870
+ headers?: {
29871
+ /**
29872
+ * Idempotency-Key
29873
+ */
29874
+ 'Idempotency-Key'?: string | null;
29875
+ };
29876
+ path: {
29877
+ /**
29878
+ * Graph Id
29879
+ */
29880
+ graph_id: string;
29881
+ };
29882
+ query?: never;
29883
+ url: '/extensions/roboledger/{graph_id}/operations/information-block';
29884
+ };
29885
+
29886
+ export type InformationBlockErrors = {
29887
+ /**
29888
+ * Invalid request
29889
+ */
29890
+ 400: ErrorResponse;
29891
+ /**
29892
+ * Authentication required
29893
+ */
29894
+ 401: ErrorResponse;
29895
+ /**
29896
+ * Access denied
29897
+ */
29898
+ 403: ErrorResponse;
29899
+ /**
29900
+ * Resource not found
29901
+ */
29902
+ 404: ErrorResponse;
29903
+ /**
29904
+ * Idempotency-Key conflict — key reused with different body
29905
+ */
29906
+ 409: ErrorResponse;
29907
+ /**
29908
+ * Validation error
29909
+ */
29910
+ 422: ErrorResponse;
29911
+ /**
29912
+ * Rate limit exceeded
29913
+ */
29914
+ 429: ErrorResponse;
29915
+ /**
29916
+ * Internal server error
29917
+ */
29918
+ 500: ErrorResponse;
29919
+ };
29920
+
29921
+ export type InformationBlockError = InformationBlockErrors[keyof InformationBlockErrors];
29922
+
29923
+ export type InformationBlockResponses = {
29924
+ /**
29925
+ * Successful Response
29926
+ */
29927
+ 200: OperationEnvelopeInformationBlockResponse;
29928
+ };
29929
+
29930
+ export type InformationBlockResponse2 = InformationBlockResponses[keyof InformationBlockResponses];
29931
+
29428
29932
  export type CreatePortfolioBlockData = {
29429
29933
  body: CreatePortfolioBlockRequest;
29430
29934
  headers?: {