@robosystems/client 1.17.0 → 1.17.1

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.
@@ -2018,7 +2018,7 @@ export type ConnectionProviderInfo = {
2018
2018
  *
2019
2019
  * Provider identifier
2020
2020
  */
2021
- provider: 'quickbooks' | 'external' | 'mercury';
2021
+ provider: 'quickbooks' | 'external' | 'mercury' | 'plaid';
2022
2022
  /**
2023
2023
  * Display Name
2024
2024
  *
@@ -2411,7 +2411,7 @@ export type CreateConnectionRequest = {
2411
2411
  *
2412
2412
  * Connection provider type
2413
2413
  */
2414
- provider: 'quickbooks' | 'external' | 'mercury';
2414
+ provider: 'quickbooks' | 'external' | 'mercury' | 'plaid';
2415
2415
  /**
2416
2416
  * Entity Id
2417
2417
  *
@@ -2421,6 +2421,7 @@ export type CreateConnectionRequest = {
2421
2421
  quickbooks_config?: QuickBooksConnectionConfig | null;
2422
2422
  external_config?: ExternalConnectionConfig | null;
2423
2423
  mercury_config?: MercuryConnectionConfig | null;
2424
+ plaid_config?: PlaidConnectionConfig | null;
2424
2425
  };
2425
2426
  /**
2426
2427
  * CreateEventBlockRequest
@@ -4212,6 +4213,96 @@ export type Dimension = {
4212
4213
  * DimensionType
4213
4214
  */
4214
4215
  export type DimensionType = 'element' | 'period' | 'entity';
4216
+ /**
4217
+ * DisclosuresRequest
4218
+ *
4219
+ * Request for the disclosures view op — the map of a report's sections.
4220
+ */
4221
+ export type DisclosuresRequest = {
4222
+ /**
4223
+ * Ticker
4224
+ *
4225
+ * Company ticker. On shared-repository graphs (SEC) it resolves the latest matching filing when report_id is not given; ignored on tenant graphs.
4226
+ */
4227
+ ticker?: string | null;
4228
+ /**
4229
+ * Report Id
4230
+ *
4231
+ * Specific report identifier. Required on tenant graphs; on SEC, optional when ticker is given.
4232
+ */
4233
+ report_id?: string | null;
4234
+ /**
4235
+ * Fiscal Year
4236
+ *
4237
+ * Narrow auto-resolution to this fiscal year focus
4238
+ */
4239
+ fiscal_year?: number | null;
4240
+ /**
4241
+ * Period Type
4242
+ *
4243
+ * Which forms auto-resolution considers: annual (10-K / 20-F / 40-F, the default) or quarterly (10-Q as well)
4244
+ */
4245
+ period_type?: string | null;
4246
+ /**
4247
+ * Topic
4248
+ *
4249
+ * A disclosure family's name, or part of it ("leases", "income taxes"), for that family's blocks. Omit for the whole map.
4250
+ */
4251
+ topic?: string | null;
4252
+ };
4253
+ /**
4254
+ * DisclosuresResponse
4255
+ *
4256
+ * The disclosures view op's result: xbrlkit's map, stamped with the graph
4257
+ * and report it was read from.
4258
+ *
4259
+ * Without ``topic``: ``disclosures`` / ``count``. With ``topic``:
4260
+ * ``disclosure`` / ``category`` / ``blocks`` / ``block_count``.
4261
+ */
4262
+ export type DisclosuresResponse = {
4263
+ /**
4264
+ * Graph Id
4265
+ */
4266
+ graph_id: string;
4267
+ /**
4268
+ * Report Id
4269
+ */
4270
+ report_id: string;
4271
+ resolved_report?: ResolvedReportInfo | null;
4272
+ /**
4273
+ * Disclosures
4274
+ */
4275
+ disclosures?: Array<{
4276
+ [key: string]: unknown;
4277
+ }> | null;
4278
+ /**
4279
+ * Count
4280
+ */
4281
+ count?: number | null;
4282
+ /**
4283
+ * Disclosure
4284
+ */
4285
+ disclosure?: string | null;
4286
+ /**
4287
+ * Category
4288
+ */
4289
+ category?: string | null;
4290
+ /**
4291
+ * Blocks
4292
+ */
4293
+ blocks?: Array<{
4294
+ [key: string]: unknown;
4295
+ }> | null;
4296
+ /**
4297
+ * Block Count
4298
+ */
4299
+ block_count?: number | null;
4300
+ /**
4301
+ * Note
4302
+ */
4303
+ note?: string | null;
4304
+ [key: string]: unknown;
4305
+ };
4215
4306
  /**
4216
4307
  * DocumentDetailResponse
4217
4308
  *
@@ -7099,6 +7190,152 @@ export type InformationBlockEnvelope = {
7099
7190
  */
7100
7191
  view?: ViewProjections;
7101
7192
  };
7193
+ /**
7194
+ * InformationBlockRequest
7195
+ *
7196
+ * Request for the information-block view op — one section read whole.
7197
+ */
7198
+ export type InformationBlockRequest = {
7199
+ /**
7200
+ * Ticker
7201
+ *
7202
+ * Company ticker. On shared-repository graphs (SEC) it resolves the latest matching filing when report_id is not given; ignored on tenant graphs.
7203
+ */
7204
+ ticker?: string | null;
7205
+ /**
7206
+ * Report Id
7207
+ *
7208
+ * Specific report identifier. Required on tenant graphs; on SEC, optional when ticker is given.
7209
+ */
7210
+ report_id?: string | null;
7211
+ /**
7212
+ * Fiscal Year
7213
+ *
7214
+ * Narrow auto-resolution to this fiscal year focus
7215
+ */
7216
+ fiscal_year?: number | null;
7217
+ /**
7218
+ * Period Type
7219
+ *
7220
+ * Which forms auto-resolution considers: annual (10-K / 20-F / 40-F, the default) or quarterly (10-Q as well)
7221
+ */
7222
+ period_type?: string | null;
7223
+ /**
7224
+ * Block
7225
+ *
7226
+ * The block id from disclosures (a role name or its last segment also resolves)
7227
+ */
7228
+ block: string;
7229
+ /**
7230
+ * Periods
7231
+ *
7232
+ * Period keys to keep, from a previous call's columns. Default keeps the budgeted set, year and balance columns first on an annual form.
7233
+ */
7234
+ periods?: Array<string> | null;
7235
+ /**
7236
+ * Member
7237
+ *
7238
+ * Keep only breakdowns whose member key contains this text (a segment name)
7239
+ */
7240
+ member?: string | null;
7241
+ /**
7242
+ * Max Rows
7243
+ *
7244
+ * Cap on presentation rows (default 400)
7245
+ */
7246
+ max_rows?: number | null;
7247
+ /**
7248
+ * Max Members
7249
+ *
7250
+ * An explicit cap on member breakdowns, instead of the response budget
7251
+ */
7252
+ max_members?: number | null;
7253
+ /**
7254
+ * Offset
7255
+ *
7256
+ * Rows to skip: the next_offset a truncated response returned
7257
+ */
7258
+ offset?: number | null;
7259
+ };
7260
+ /**
7261
+ * InformationBlockResponse
7262
+ *
7263
+ * The information-block view op's result: xbrlkit's block, stamped.
7264
+ */
7265
+ export type InformationBlockResponse = {
7266
+ /**
7267
+ * Graph Id
7268
+ */
7269
+ graph_id: string;
7270
+ /**
7271
+ * Report Id
7272
+ */
7273
+ report_id: string;
7274
+ resolved_report?: ResolvedReportInfo | null;
7275
+ /**
7276
+ * Block
7277
+ */
7278
+ block: {
7279
+ [key: string]: unknown;
7280
+ };
7281
+ /**
7282
+ * Columns
7283
+ */
7284
+ columns?: Array<{
7285
+ [key: string]: unknown;
7286
+ }>;
7287
+ /**
7288
+ * Axes
7289
+ */
7290
+ axes?: Array<{
7291
+ [key: string]: unknown;
7292
+ }> | null;
7293
+ /**
7294
+ * Rows
7295
+ */
7296
+ rows?: Array<{
7297
+ [key: string]: unknown;
7298
+ }>;
7299
+ /**
7300
+ * Row Count
7301
+ */
7302
+ row_count?: number | null;
7303
+ /**
7304
+ * Truncated
7305
+ */
7306
+ truncated?: boolean | null;
7307
+ /**
7308
+ * Offset
7309
+ */
7310
+ offset?: number | null;
7311
+ /**
7312
+ * Ancestors
7313
+ */
7314
+ ancestors?: Array<{
7315
+ [key: string]: unknown;
7316
+ }> | null;
7317
+ /**
7318
+ * Next Offset
7319
+ */
7320
+ next_offset?: number | null;
7321
+ /**
7322
+ * Calculation
7323
+ */
7324
+ calculation?: Array<{
7325
+ [key: string]: unknown;
7326
+ }> | null;
7327
+ /**
7328
+ * Text
7329
+ */
7330
+ text?: Array<{
7331
+ [key: string]: unknown;
7332
+ }> | null;
7333
+ /**
7334
+ * Note
7335
+ */
7336
+ note?: string | null;
7337
+ [key: string]: unknown;
7338
+ };
7102
7339
  /**
7103
7340
  * InformationModelResponse
7104
7341
  *
@@ -8878,7 +9115,7 @@ export type OAuthCallbackRequest = {
8878
9115
  /**
8879
9116
  * Code
8880
9117
  *
8881
- * Authorization code from OAuth provider
9118
+ * Authorization code from the OAuth provider (Plaid: the public_token Link returned)
8882
9119
  */
8883
9120
  code: string;
8884
9121
  /**
@@ -9047,15 +9284,21 @@ export type OAuthInitRequest = {
9047
9284
  /**
9048
9285
  * OAuthInitResponse
9049
9286
  *
9050
- * Response with OAuth authorization URL.
9287
+ * Where the user authorizes: a redirect URL, or a token for an embedded widget.
9051
9288
  */
9052
9289
  export type OAuthInitResponse = {
9053
9290
  /**
9054
9291
  * Auth Url
9055
9292
  *
9056
- * URL to redirect user for authorization
9293
+ * URL to redirect the user to for authorization. Null for providers that authorize in an embedded widget (Plaid: see link_token).
9294
+ */
9295
+ auth_url?: string | null;
9296
+ /**
9297
+ * Link Token
9298
+ *
9299
+ * Plaid only: the token that opens Plaid Link. Link's public_token completes the flow through the callback, as code.
9057
9300
  */
9058
- auth_url: string;
9301
+ link_token?: string | null;
9059
9302
  /**
9060
9303
  * State
9061
9304
  *
@@ -9874,6 +10117,51 @@ export type OperationEnvelopeDeleteTaxonomyBlockResponse = {
9874
10117
  */
9875
10118
  idempotentReplay?: boolean;
9876
10119
  };
10120
+ /**
10121
+ * OperationEnvelope[DisclosuresResponse]
10122
+ */
10123
+ export type OperationEnvelopeDisclosuresResponse = {
10124
+ /**
10125
+ * Operation
10126
+ *
10127
+ * Kebab-case operation name
10128
+ */
10129
+ operation: string;
10130
+ /**
10131
+ * Operationid
10132
+ *
10133
+ * op_-prefixed ULID for audit and SSE correlation
10134
+ */
10135
+ operationId: string;
10136
+ /**
10137
+ * Status
10138
+ *
10139
+ * Operation lifecycle state
10140
+ */
10141
+ status: 'completed' | 'pending' | 'failed';
10142
+ /**
10143
+ * Command-specific result payload
10144
+ */
10145
+ result?: DisclosuresResponse | null;
10146
+ /**
10147
+ * At
10148
+ *
10149
+ * ISO-8601 UTC timestamp
10150
+ */
10151
+ at: string;
10152
+ /**
10153
+ * Createdby
10154
+ *
10155
+ * User ID that initiated the operation (null for legacy callers)
10156
+ */
10157
+ createdBy?: string | null;
10158
+ /**
10159
+ * Idempotentreplay
10160
+ *
10161
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
10162
+ */
10163
+ idempotentReplay?: boolean;
10164
+ };
9877
10165
  /**
9878
10166
  * OperationEnvelope[EntityTaxonomyResponse]
9879
10167
  */
@@ -10279,6 +10567,51 @@ export type OperationEnvelopeInformationBlockEnvelope = {
10279
10567
  */
10280
10568
  idempotentReplay?: boolean;
10281
10569
  };
10570
+ /**
10571
+ * OperationEnvelope[InformationBlockResponse]
10572
+ */
10573
+ export type OperationEnvelopeInformationBlockResponse = {
10574
+ /**
10575
+ * Operation
10576
+ *
10577
+ * Kebab-case operation name
10578
+ */
10579
+ operation: string;
10580
+ /**
10581
+ * Operationid
10582
+ *
10583
+ * op_-prefixed ULID for audit and SSE correlation
10584
+ */
10585
+ operationId: string;
10586
+ /**
10587
+ * Status
10588
+ *
10589
+ * Operation lifecycle state
10590
+ */
10591
+ status: 'completed' | 'pending' | 'failed';
10592
+ /**
10593
+ * Command-specific result payload
10594
+ */
10595
+ result?: InformationBlockResponse | null;
10596
+ /**
10597
+ * At
10598
+ *
10599
+ * ISO-8601 UTC timestamp
10600
+ */
10601
+ at: string;
10602
+ /**
10603
+ * Createdby
10604
+ *
10605
+ * User ID that initiated the operation (null for legacy callers)
10606
+ */
10607
+ createdBy?: string | null;
10608
+ /**
10609
+ * Idempotentreplay
10610
+ *
10611
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
10612
+ */
10613
+ idempotentReplay?: boolean;
10614
+ };
10282
10615
  /**
10283
10616
  * OperationEnvelope[InitializeChartOfAccountsResponse]
10284
10617
  */
@@ -12209,6 +12542,26 @@ export type PeriodSpec = {
12209
12542
  */
12210
12543
  label: string;
12211
12544
  };
12545
+ /**
12546
+ * PlaidConnectionConfig
12547
+ *
12548
+ * Plaid bank-feed connection configuration.
12549
+ *
12550
+ * A bank feed is native accounting: the graph must already have a chart of
12551
+ * accounts and no live QuickBooks connection. The connection is created
12552
+ * ``pending_oauth``; ``POST /oauth/init`` returns a ``link_token`` for Plaid
12553
+ * Link, and the ``public_token`` Link hands back completes it through
12554
+ * ``POST /oauth/callback/plaid`` (as ``code``). One connection per institution
12555
+ * login; a graph can hold several.
12556
+ */
12557
+ export type PlaidConnectionConfig = {
12558
+ /**
12559
+ * Since Date
12560
+ *
12561
+ * 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.
12562
+ */
12563
+ since_date?: string | null;
12564
+ };
12212
12565
  /**
12213
12566
  * PortalSessionResponse
12214
12567
  *
@@ -13120,7 +13473,7 @@ export type ReconcilingItemPlan = {
13120
13473
  /**
13121
13474
  * Default Disposition
13122
13475
  *
13123
- * What resolve would do with no disposition given: restate while every affected period is open, catch_up once one is closed.
13476
+ * What resolve would do with no disposition given: restate while every affected period is open and nothing blocks it, catch_up otherwise.
13124
13477
  */
13125
13478
  default_disposition: 'restate' | 'catch_up' | 'acknowledge';
13126
13479
  /**
@@ -13601,13 +13954,13 @@ export type ReportResponse = {
13601
13954
  /**
13602
13955
  * Filed At
13603
13956
  *
13604
- * When the report was transitioned to `filed`.
13957
+ * 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.
13605
13958
  */
13606
13959
  filed_at?: string | null;
13607
13960
  /**
13608
13961
  * Filed By
13609
13962
  *
13610
- * User ID that transitioned the report to `filed`.
13963
+ * 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`.
13611
13964
  */
13612
13965
  filed_by?: string | null;
13613
13966
  /**
@@ -14449,6 +14802,10 @@ export type SchemaValidationResponse = {
14449
14802
  * A long SEC section (an MD&A, a commitments note) is indexed in parts, each
14450
14803
  * a document of its own: ``part`` of ``part_count``, ``parent_document_id``
14451
14804
  * shared by the section's parts, ``next_document_id`` to read on.
14805
+ *
14806
+ * On a grouped search, ``also_in_filings`` counts the other filings of the
14807
+ * same filer whose same section (and part) matched and were folded into
14808
+ * this hit.
14452
14809
  */
14453
14810
  export type SearchHit = {
14454
14811
  /**
@@ -14539,6 +14896,10 @@ export type SearchHit = {
14539
14896
  * Folder
14540
14897
  */
14541
14898
  folder?: string | null;
14899
+ /**
14900
+ * Also In Filings
14901
+ */
14902
+ also_in_filings?: number | null;
14542
14903
  };
14543
14904
  /**
14544
14905
  * SearchRequest
@@ -14555,7 +14916,7 @@ export type SearchRequest = {
14555
14916
  /**
14556
14917
  * Entity
14557
14918
  *
14558
- * Filter by ticker, CIK, or entity name
14919
+ * 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
14559
14920
  */
14560
14921
  entity?: string | null;
14561
14922
  /**
@@ -14606,6 +14967,12 @@ export type SearchRequest = {
14606
14967
  * Enable hybrid semantic search (BM25 + KNN). Default is BM25-only for speed.
14607
14968
  */
14608
14969
  semantic?: boolean;
14970
+ /**
14971
+ * Group
14972
+ *
14973
+ * 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.
14974
+ */
14975
+ group?: boolean;
14609
14976
  /**
14610
14977
  * Size
14611
14978
  *
@@ -14633,6 +15000,8 @@ export type SearchRequest = {
14633
15000
  export type SearchResponse = {
14634
15001
  /**
14635
15002
  * Total
15003
+ *
15004
+ * 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.
14636
15005
  */
14637
15006
  total: number;
14638
15007
  /**
@@ -20343,7 +20712,7 @@ export type ListConnectionsData = {
20343
20712
  *
20344
20713
  * Filter by provider type
20345
20714
  */
20346
- provider?: 'quickbooks' | 'external' | 'mercury' | null;
20715
+ provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
20347
20716
  };
20348
20717
  url: '/v1/graphs/{graph_id}/connections';
20349
20718
  };
@@ -28010,6 +28379,124 @@ export type FinancialStatementAnalysisResponses = {
28010
28379
  200: OperationEnvelopeFinancialStatementAnalysisResponse;
28011
28380
  };
28012
28381
  export type FinancialStatementAnalysisResponse2 = FinancialStatementAnalysisResponses[keyof FinancialStatementAnalysisResponses];
28382
+ export type DisclosuresData = {
28383
+ body: DisclosuresRequest;
28384
+ headers?: {
28385
+ /**
28386
+ * Idempotency-Key
28387
+ */
28388
+ 'Idempotency-Key'?: string | null;
28389
+ };
28390
+ path: {
28391
+ /**
28392
+ * Graph Id
28393
+ */
28394
+ graph_id: string;
28395
+ };
28396
+ query?: never;
28397
+ url: '/extensions/roboledger/{graph_id}/operations/disclosures';
28398
+ };
28399
+ export type DisclosuresErrors = {
28400
+ /**
28401
+ * Invalid request
28402
+ */
28403
+ 400: ErrorResponse;
28404
+ /**
28405
+ * Authentication required
28406
+ */
28407
+ 401: ErrorResponse;
28408
+ /**
28409
+ * Access denied
28410
+ */
28411
+ 403: ErrorResponse;
28412
+ /**
28413
+ * Resource not found
28414
+ */
28415
+ 404: ErrorResponse;
28416
+ /**
28417
+ * Idempotency-Key conflict — key reused with different body
28418
+ */
28419
+ 409: ErrorResponse;
28420
+ /**
28421
+ * Validation error
28422
+ */
28423
+ 422: ErrorResponse;
28424
+ /**
28425
+ * Rate limit exceeded
28426
+ */
28427
+ 429: ErrorResponse;
28428
+ /**
28429
+ * Internal server error
28430
+ */
28431
+ 500: ErrorResponse;
28432
+ };
28433
+ export type DisclosuresError = DisclosuresErrors[keyof DisclosuresErrors];
28434
+ export type DisclosuresResponses = {
28435
+ /**
28436
+ * Successful Response
28437
+ */
28438
+ 200: OperationEnvelopeDisclosuresResponse;
28439
+ };
28440
+ export type DisclosuresResponse2 = DisclosuresResponses[keyof DisclosuresResponses];
28441
+ export type InformationBlockData = {
28442
+ body: InformationBlockRequest;
28443
+ headers?: {
28444
+ /**
28445
+ * Idempotency-Key
28446
+ */
28447
+ 'Idempotency-Key'?: string | null;
28448
+ };
28449
+ path: {
28450
+ /**
28451
+ * Graph Id
28452
+ */
28453
+ graph_id: string;
28454
+ };
28455
+ query?: never;
28456
+ url: '/extensions/roboledger/{graph_id}/operations/information-block';
28457
+ };
28458
+ export type InformationBlockErrors = {
28459
+ /**
28460
+ * Invalid request
28461
+ */
28462
+ 400: ErrorResponse;
28463
+ /**
28464
+ * Authentication required
28465
+ */
28466
+ 401: ErrorResponse;
28467
+ /**
28468
+ * Access denied
28469
+ */
28470
+ 403: ErrorResponse;
28471
+ /**
28472
+ * Resource not found
28473
+ */
28474
+ 404: ErrorResponse;
28475
+ /**
28476
+ * Idempotency-Key conflict — key reused with different body
28477
+ */
28478
+ 409: ErrorResponse;
28479
+ /**
28480
+ * Validation error
28481
+ */
28482
+ 422: ErrorResponse;
28483
+ /**
28484
+ * Rate limit exceeded
28485
+ */
28486
+ 429: ErrorResponse;
28487
+ /**
28488
+ * Internal server error
28489
+ */
28490
+ 500: ErrorResponse;
28491
+ };
28492
+ export type InformationBlockError = InformationBlockErrors[keyof InformationBlockErrors];
28493
+ export type InformationBlockResponses = {
28494
+ /**
28495
+ * Successful Response
28496
+ */
28497
+ 200: OperationEnvelopeInformationBlockResponse;
28498
+ };
28499
+ export type InformationBlockResponse2 = InformationBlockResponses[keyof InformationBlockResponses];
28013
28500
  export type CreatePortfolioBlockData = {
28014
28501
  body: CreatePortfolioBlockRequest;
28015
28502
  headers?: {