@databolsa/sdk 1.0.11 → 1.0.13

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/dist/schema.d.ts CHANGED
@@ -896,6 +896,57 @@ export interface paths {
896
896
  patch?: never;
897
897
  trace?: never;
898
898
  };
899
+ "/v1/crypto": {
900
+ parameters: {
901
+ query?: never;
902
+ header?: never;
903
+ path?: never;
904
+ cookie?: never;
905
+ };
906
+ /** Catálogo de criptoativos (velas diárias em BRL) */
907
+ get: operations["listCrypto"];
908
+ put?: never;
909
+ post?: never;
910
+ delete?: never;
911
+ options?: never;
912
+ head?: never;
913
+ patch?: never;
914
+ trace?: never;
915
+ };
916
+ "/v1/crypto/live": {
917
+ parameters: {
918
+ query?: never;
919
+ header?: never;
920
+ path?: never;
921
+ cookie?: never;
922
+ };
923
+ /** Cotações quase-live de cripto (snapshot ~1 min, 24/7) */
924
+ get: operations["listCryptoLive"];
925
+ put?: never;
926
+ post?: never;
927
+ delete?: never;
928
+ options?: never;
929
+ head?: never;
930
+ patch?: never;
931
+ trace?: never;
932
+ };
933
+ "/v1/crypto/{symbol}": {
934
+ parameters: {
935
+ query?: never;
936
+ header?: never;
937
+ path?: never;
938
+ cookie?: never;
939
+ };
940
+ /** Perfil de um criptoativo */
941
+ get: operations["getCrypto"];
942
+ put?: never;
943
+ post?: never;
944
+ delete?: never;
945
+ options?: never;
946
+ head?: never;
947
+ patch?: never;
948
+ trace?: never;
949
+ };
899
950
  "/v1/crypto/{symbol}/quotes": {
900
951
  parameters: {
901
952
  query?: never;
@@ -913,6 +964,80 @@ export interface paths {
913
964
  patch?: never;
914
965
  trace?: never;
915
966
  };
967
+ "/v1/us/assets": {
968
+ parameters: {
969
+ query?: never;
970
+ header?: never;
971
+ path?: never;
972
+ cookie?: never;
973
+ };
974
+ /** Catálogo de ativos dos EUA (ações S&P 500/Nasdaq-100 + ETFs) */
975
+ get: operations["listUsAssets"];
976
+ put?: never;
977
+ post?: never;
978
+ delete?: never;
979
+ options?: never;
980
+ head?: never;
981
+ patch?: never;
982
+ trace?: never;
983
+ };
984
+ "/v1/us/assets/{ticker}": {
985
+ parameters: {
986
+ query?: never;
987
+ header?: never;
988
+ path?: never;
989
+ cookie?: never;
990
+ };
991
+ /** Perfil de um ativo dos EUA (com fundamentos SEC inline) */
992
+ get: operations["getUsAsset"];
993
+ put?: never;
994
+ post?: never;
995
+ delete?: never;
996
+ options?: never;
997
+ head?: never;
998
+ patch?: never;
999
+ trace?: never;
1000
+ };
1001
+ "/v1/us/assets/{ticker}/quotes": {
1002
+ parameters: {
1003
+ query?: never;
1004
+ header?: never;
1005
+ path?: never;
1006
+ cookie?: never;
1007
+ };
1008
+ /**
1009
+ * Cotações EOD de um ativo dos EUA (USD)
1010
+ * @description Preços diários em USD, ajustados por desdobramento na fonte.
1011
+ */
1012
+ get: operations["listUsAssetQuotes"];
1013
+ put?: never;
1014
+ post?: never;
1015
+ delete?: never;
1016
+ options?: never;
1017
+ head?: never;
1018
+ patch?: never;
1019
+ trace?: never;
1020
+ };
1021
+ "/v1/us/assets/{ticker}/filings": {
1022
+ parameters: {
1023
+ query?: never;
1024
+ header?: never;
1025
+ path?: never;
1026
+ cookie?: never;
1027
+ };
1028
+ /**
1029
+ * Filings SEC de uma empresa dos EUA (10-K, 10-Q, 8-K…)
1030
+ * @description Metadados e link do documento oficial no EDGAR (SEC).
1031
+ */
1032
+ get: operations["listUsFilings"];
1033
+ put?: never;
1034
+ post?: never;
1035
+ delete?: never;
1036
+ options?: never;
1037
+ head?: never;
1038
+ patch?: never;
1039
+ trace?: never;
1040
+ };
916
1041
  "/v1/search": {
917
1042
  parameters: {
918
1043
  query?: never;
@@ -1503,6 +1628,115 @@ export interface paths {
1503
1628
  patch?: never;
1504
1629
  trace?: never;
1505
1630
  };
1631
+ "/v1/theses": {
1632
+ parameters: {
1633
+ query?: never;
1634
+ header?: never;
1635
+ path?: never;
1636
+ cookie?: never;
1637
+ };
1638
+ /**
1639
+ * Minhas teses
1640
+ * @description Lista as teses do dono da chave (resumo: título, ticker, visibilidade, status de export) e o teto do plano. O documento completo vem no getThesis.
1641
+ */
1642
+ get: operations["listMyTheses"];
1643
+ put?: never;
1644
+ /**
1645
+ * Criar tese
1646
+ * @description Cria uma tese a partir de um documento de report estruturado (`doc`). O doc é validado no servidor contra o schema de reports (seções → blocos: cover, rating, summary, keyStats, prose, chart, table, callout, scenarios, sources, disclaimer…); erros voltam com o caminho do campo. Título/ticker/tipo são derivados do próprio doc. Respeita o limite de teses do plano (402 plan_required ao estourar).
1647
+ */
1648
+ post: operations["createThesis"];
1649
+ delete?: never;
1650
+ options?: never;
1651
+ head?: never;
1652
+ patch?: never;
1653
+ trace?: never;
1654
+ };
1655
+ "/v1/theses/import": {
1656
+ parameters: {
1657
+ query?: never;
1658
+ header?: never;
1659
+ path?: never;
1660
+ cookie?: never;
1661
+ };
1662
+ get?: never;
1663
+ put?: never;
1664
+ /**
1665
+ * Importar tese de arquivo JSON
1666
+ * @description Cria uma tese enviando o ARQUIVO JSON do documento em base64 (`content_base64`) — o caminho natural para CLI e automações (`--file tese.json`). Mesma validação e limites do createThesis.
1667
+ */
1668
+ post: operations["importThesisFile"];
1669
+ delete?: never;
1670
+ options?: never;
1671
+ head?: never;
1672
+ patch?: never;
1673
+ trace?: never;
1674
+ };
1675
+ "/v1/theses/{id}": {
1676
+ parameters: {
1677
+ query?: never;
1678
+ header?: never;
1679
+ path?: never;
1680
+ cookie?: never;
1681
+ };
1682
+ /**
1683
+ * Detalhe de uma tese
1684
+ * @description Documento completo + visibilidade + status do export (quando `ready`, `pdfUrl`/`previewUrl` apontam para a mídia pública).
1685
+ */
1686
+ get: operations["getThesis"];
1687
+ /**
1688
+ * Atualizar tese
1689
+ * @description Atualiza o documento e/ou a visibilidade. O doc, quando enviado, passa pela mesma validação do create.
1690
+ */
1691
+ put: operations["updateThesis"];
1692
+ post?: never;
1693
+ /** Excluir tese */
1694
+ delete: operations["deleteThesis"];
1695
+ options?: never;
1696
+ head?: never;
1697
+ patch?: never;
1698
+ trace?: never;
1699
+ };
1700
+ "/v1/theses/{id}/publish": {
1701
+ parameters: {
1702
+ query?: never;
1703
+ header?: never;
1704
+ path?: never;
1705
+ cookie?: never;
1706
+ };
1707
+ get?: never;
1708
+ put?: never;
1709
+ /**
1710
+ * Publicar / mudar visibilidade
1711
+ * @description Define a visibilidade: `public` aparece no perfil e tem página própria; `unlisted` só por link; `private` volta a ser só sua. Por default as seções pessoais (posição, preço médio, P&L) são REMOVIDAS da leitura pública — `show_personal: true` as exibe (opt-in).
1712
+ */
1713
+ post: operations["publishThesis"];
1714
+ delete?: never;
1715
+ options?: never;
1716
+ head?: never;
1717
+ patch?: never;
1718
+ trace?: never;
1719
+ };
1720
+ "/v1/theses/{id}/export": {
1721
+ parameters: {
1722
+ query?: never;
1723
+ header?: never;
1724
+ path?: never;
1725
+ cookie?: never;
1726
+ };
1727
+ get?: never;
1728
+ put?: never;
1729
+ /**
1730
+ * Exportar em PDF (plano pago)
1731
+ * @description Gera o PDF (A4, com preview PNG) da tese e publica num link público de mídia. Assíncrono: responde 202 {status: queued} e o getThesis passa a devolver `pdfUrl` quando pronto; se o conteúdo não mudou desde o último export, responde 200 direto com o link. Exporta a MESMA visão do link compartilhado (seções pessoais redigidas, salvo show_personal).
1732
+ */
1733
+ post: operations["exportThesis"];
1734
+ delete?: never;
1735
+ options?: never;
1736
+ head?: never;
1737
+ patch?: never;
1738
+ trace?: never;
1739
+ };
1506
1740
  }
1507
1741
  export type webhooks = Record<string, never>;
1508
1742
  export interface components {
@@ -2038,6 +2272,36 @@ export interface components {
2038
2272
  vega: number | null;
2039
2273
  theta: number | null;
2040
2274
  };
2275
+ CryptoAsset: {
2276
+ /** @description Ativo-base canônico, ex.: BTC */
2277
+ symbol: string;
2278
+ name: string | null;
2279
+ /** @description Ordem curada por relevância/market cap */
2280
+ rank: number | null;
2281
+ first_date: string | null;
2282
+ last_date: string | null;
2283
+ close_brl: number | null;
2284
+ close_usd: number | null;
2285
+ change_pct_1d: number | null;
2286
+ change_pct_7d: number | null;
2287
+ /** @description Volume negociado em BRL na última vela diária */
2288
+ volume_brl_1d: number | null;
2289
+ };
2290
+ CryptoLiveResponse: {
2291
+ data: components["schemas"]["CryptoLiveQuote"][];
2292
+ /** @description Timestamp mais recente do lote */
2293
+ as_of: string | null;
2294
+ };
2295
+ CryptoLiveQuote: {
2296
+ symbol: string;
2297
+ price_brl: number;
2298
+ price_usd: number | null;
2299
+ /** @description Variação % em 24h rolantes */
2300
+ change_pct_24h: number | null;
2301
+ volume_usd_24h: number | null;
2302
+ /** @description Timestamp do snapshot (UTC) */
2303
+ ts: string;
2304
+ };
2041
2305
  CryptoCandle: {
2042
2306
  open_time: string;
2043
2307
  close_time: string;
@@ -2050,10 +2314,67 @@ export interface components {
2050
2314
  /** @description Volume em BRL */
2051
2315
  quote_volume: number | null;
2052
2316
  trades: number | null;
2317
+ /** @description Fechamento em USD */
2318
+ close_usd: number | null;
2319
+ };
2320
+ UsAsset: {
2321
+ ticker: string;
2322
+ name: string | null;
2323
+ /** @enum {string} */
2324
+ type: "stock" | "etf";
2325
+ in_sp500: boolean | null;
2326
+ in_ndx100: boolean | null;
2327
+ /** @description BDR correspondente na B3, quando mapeado */
2328
+ bdr_ticker: string | null;
2329
+ first_date: string | null;
2330
+ last_date: string | null;
2331
+ close_usd: number | null;
2332
+ change_pct_1d: number | null;
2333
+ change_pct_1m: number | null;
2334
+ change_pct_1y: number | null;
2335
+ high_52w: number | null;
2336
+ low_52w: number | null;
2337
+ volume_1d: number | null;
2338
+ };
2339
+ UsAssetDetail: {
2340
+ fundamentals: components["schemas"]["UsFundamental"][];
2341
+ } & components["schemas"]["UsAsset"];
2342
+ UsFundamental: {
2343
+ /** @enum {string} */
2344
+ metric: "revenue" | "net_income" | "eps_diluted";
2345
+ unit: string | null;
2346
+ /** @description Ano fiscal */
2347
+ fy: number | null;
2348
+ /** @description Período fiscal (FY, Q1..Q4) */
2349
+ fp: string | null;
2350
+ period_start: string | null;
2351
+ period_end: string | null;
2352
+ value: number | null;
2353
+ /** @description Formulário de origem (10-K, 10-Q…) */
2354
+ form: string | null;
2355
+ filed: string | null;
2356
+ };
2357
+ UsQuote: {
2358
+ date: string;
2359
+ open: number | null;
2360
+ high: number | null;
2361
+ low: number | null;
2362
+ close: number | null;
2363
+ volume: number | null;
2364
+ };
2365
+ UsFiling: {
2366
+ accession: string;
2367
+ /** @description 10-K, 10-Q, 8-K, 20-F, 6-K, DEF 14A */
2368
+ form: string;
2369
+ filed_at: string;
2370
+ report_date: string | null;
2371
+ description: string | null;
2372
+ /** @description Documento principal no site da SEC (EDGAR) */
2373
+ url: string;
2053
2374
  };
2054
2375
  SearchResult: {
2055
2376
  /** @enum {string} */
2056
- kind: "stock" | "fii" | "index" | "bond" | "macro";
2377
+ kind: "stock" | "fii" | "index" | "bond" | "macro" | "crypto" | "us";
2057
2378
  ticker: string;
2058
2379
  title: string;
2059
2380
  subtitle: string | null;
@@ -2086,6 +2407,40 @@ export interface components {
2086
2407
  rows: number;
2087
2408
  duration_s: number | null;
2088
2409
  };
2410
+ ThesisSummary: {
2411
+ id?: string;
2412
+ /** @description Slug estável por usuário — compõe a URL pública /teses/{handle}/{slug}. */
2413
+ slug?: string;
2414
+ title?: string;
2415
+ subtitle?: string | null;
2416
+ ticker?: string | null;
2417
+ /** @description equity | fii | macro | setor | carta | carteira */
2418
+ kind?: string;
2419
+ /** @enum {string} */
2420
+ visibility?: "private" | "unlisted" | "public";
2421
+ show_personal?: boolean;
2422
+ /** @description idle | queued | processing | ready | failed */
2423
+ export_status?: string;
2424
+ pdf_url?: string | null;
2425
+ preview_url?: string | null;
2426
+ published_at?: string | null;
2427
+ created_at?: string;
2428
+ updated_at?: string;
2429
+ };
2430
+ ThesisDetail: components["schemas"]["ThesisSummary"] & {
2431
+ doc?: components["schemas"]["ReportDocInput"];
2432
+ export_error?: string | null;
2433
+ };
2434
+ ThesisExportStatus: {
2435
+ /** @enum {string} */
2436
+ status?: "ready" | "queued";
2437
+ pdfUrl?: string;
2438
+ previewUrl?: string;
2439
+ };
2440
+ /** @description Documento de report estruturado (JSON): { id, kind, title, subtitle?, date, authors[], ticker?, tags?, sections[] } onde cada section tem { id, title?, blocks[] } e cada block é um dos tipos cover, rating, summary, keyStats, prose (markdown), chart, table, callout, scenarios, quote, figure, columns, sources, disclaimer ou pageBreak. Validado integralmente no servidor; erros voltam com o caminho do campo violado. */
2441
+ ReportDocInput: {
2442
+ [key: string]: unknown;
2443
+ };
2089
2444
  CommunityBot: {
2090
2445
  id?: string;
2091
2446
  handle?: string;
@@ -2115,6 +2470,14 @@ export interface components {
2115
2470
  views?: number;
2116
2471
  replyCount?: number;
2117
2472
  replies?: Record<string, never>[];
2473
+ /** @description Cashtags do texto com tipo resolvido no servidor (ausente em posts antigos). */
2474
+ cashtags?: {
2475
+ symbol: string;
2476
+ /** @description stock | fii | index | crypto | us */
2477
+ kind: string;
2478
+ /** @description Rota da página do ativo no site. */
2479
+ href: string;
2480
+ }[];
2118
2481
  };
2119
2482
  PortfolioHolding: {
2120
2483
  symbol: string;
@@ -2149,7 +2512,7 @@ export interface components {
2149
2512
  unrealizedPL?: number;
2150
2513
  unrealizedPct?: number;
2151
2514
  realizedPL?: number;
2152
- /** @description Posições com qty, preço médio, valor de mercado, P&L, proventos e peso. */
2515
+ /** @description Posições com qty, preço médio, valor de mercado, P&L, proventos e peso. Valores monetários sempre em BRL; ativos em moeda estrangeira (asset_type=us) expõem também currency, priceNative (US$) e fxRate. */
2153
2516
  holdings?: Record<string, never>[];
2154
2517
  };
2155
2518
  PortfolioTransaction: {
@@ -3427,7 +3790,7 @@ export interface operations {
3427
3790
  query?: {
3428
3791
  cursor?: string;
3429
3792
  limit?: number;
3430
- source?: "bcb_sgs" | "bcb_focus" | "ibge_sidra" | "fred" | "ipeadata" | "tesouro_direto";
3793
+ source?: "bcb_sgs" | "bcb_focus" | "ibge_sidra" | "fred" | "ipeadata" | "tesouro_direto" | "world_bank";
3431
3794
  search?: string;
3432
3795
  };
3433
3796
  header?: never;
@@ -4275,31 +4638,27 @@ export interface operations {
4275
4638
  };
4276
4639
  };
4277
4640
  };
4278
- listCryptoQuotes: {
4641
+ listCrypto: {
4279
4642
  parameters: {
4280
4643
  query?: {
4281
4644
  cursor?: string;
4282
4645
  limit?: number;
4283
- interval?: "1d" | "1h";
4284
- from?: string;
4285
- to?: string;
4646
+ search?: string;
4286
4647
  };
4287
4648
  header?: never;
4288
- path: {
4289
- symbol: string;
4290
- };
4649
+ path?: never;
4291
4650
  cookie?: never;
4292
4651
  };
4293
4652
  requestBody?: never;
4294
4653
  responses: {
4295
- /** @description Página de candles */
4654
+ /** @description Página de criptoativos */
4296
4655
  200: {
4297
4656
  headers: {
4298
4657
  [name: string]: unknown;
4299
4658
  };
4300
4659
  content: {
4301
4660
  "application/json": {
4302
- data: components["schemas"]["CryptoCandle"][];
4661
+ data: components["schemas"]["CryptoAsset"][];
4303
4662
  meta: {
4304
4663
  next_cursor: string | null;
4305
4664
  /** @description Itens nesta página */
@@ -4319,25 +4678,22 @@ export interface operations {
4319
4678
  };
4320
4679
  };
4321
4680
  };
4322
- search: {
4681
+ listCryptoLive: {
4323
4682
  parameters: {
4324
- query: {
4325
- q: string;
4326
- limit?: number;
4327
- };
4683
+ query?: never;
4328
4684
  header?: never;
4329
4685
  path?: never;
4330
4686
  cookie?: never;
4331
4687
  };
4332
4688
  requestBody?: never;
4333
4689
  responses: {
4334
- /** @description Resultados ranqueados */
4690
+ /** @description Snapshot de cotações */
4335
4691
  200: {
4336
4692
  headers: {
4337
4693
  [name: string]: unknown;
4338
4694
  };
4339
4695
  content: {
4340
- "application/json": components["schemas"]["SearchResult"][];
4696
+ "application/json": components["schemas"]["CryptoLiveResponse"];
4341
4697
  };
4342
4698
  };
4343
4699
  /** @description Erro (RFC 9457 application/problem+json) */
@@ -4351,28 +4707,24 @@ export interface operations {
4351
4707
  };
4352
4708
  };
4353
4709
  };
4354
- getIngestHealth: {
4710
+ getCrypto: {
4355
4711
  parameters: {
4356
4712
  query?: never;
4357
4713
  header?: never;
4358
- path?: never;
4714
+ path: {
4715
+ symbol: string;
4716
+ };
4359
4717
  cookie?: never;
4360
4718
  };
4361
4719
  requestBody?: never;
4362
4720
  responses: {
4363
- /** @description Saúde da ingestão */
4721
+ /** @description Criptoativo */
4364
4722
  200: {
4365
4723
  headers: {
4366
4724
  [name: string]: unknown;
4367
4725
  };
4368
4726
  content: {
4369
- "application/json": {
4370
- latest: ({
4371
- errors: string[];
4372
- } & components["schemas"]["IngestRunSummary"]) | null;
4373
- sources: components["schemas"]["IngestSourceHealth"][];
4374
- recent_runs: components["schemas"]["IngestRunSummary"][];
4375
- };
4727
+ "application/json": components["schemas"]["CryptoAsset"];
4376
4728
  };
4377
4729
  };
4378
4730
  /** @description Erro (RFC 9457 application/problem+json) */
@@ -4386,7 +4738,276 @@ export interface operations {
4386
4738
  };
4387
4739
  };
4388
4740
  };
4389
- getNewsEdition: {
4741
+ listCryptoQuotes: {
4742
+ parameters: {
4743
+ query?: {
4744
+ cursor?: string;
4745
+ limit?: number;
4746
+ interval?: "1d" | "1h";
4747
+ from?: string;
4748
+ to?: string;
4749
+ };
4750
+ header?: never;
4751
+ path: {
4752
+ symbol: string;
4753
+ };
4754
+ cookie?: never;
4755
+ };
4756
+ requestBody?: never;
4757
+ responses: {
4758
+ /** @description Página de candles */
4759
+ 200: {
4760
+ headers: {
4761
+ [name: string]: unknown;
4762
+ };
4763
+ content: {
4764
+ "application/json": {
4765
+ data: components["schemas"]["CryptoCandle"][];
4766
+ meta: {
4767
+ next_cursor: string | null;
4768
+ /** @description Itens nesta página */
4769
+ count: number;
4770
+ };
4771
+ };
4772
+ };
4773
+ };
4774
+ /** @description Erro (RFC 9457 application/problem+json) */
4775
+ default: {
4776
+ headers: {
4777
+ [name: string]: unknown;
4778
+ };
4779
+ content: {
4780
+ "application/problem+json": components["schemas"]["Problem"];
4781
+ };
4782
+ };
4783
+ };
4784
+ };
4785
+ listUsAssets: {
4786
+ parameters: {
4787
+ query?: {
4788
+ cursor?: string;
4789
+ limit?: number;
4790
+ search?: string;
4791
+ type?: "stock" | "etf";
4792
+ bdr?: string;
4793
+ };
4794
+ header?: never;
4795
+ path?: never;
4796
+ cookie?: never;
4797
+ };
4798
+ requestBody?: never;
4799
+ responses: {
4800
+ /** @description Página de ativos */
4801
+ 200: {
4802
+ headers: {
4803
+ [name: string]: unknown;
4804
+ };
4805
+ content: {
4806
+ "application/json": {
4807
+ data: components["schemas"]["UsAsset"][];
4808
+ meta: {
4809
+ next_cursor: string | null;
4810
+ /** @description Itens nesta página */
4811
+ count: number;
4812
+ };
4813
+ };
4814
+ };
4815
+ };
4816
+ /** @description Erro (RFC 9457 application/problem+json) */
4817
+ default: {
4818
+ headers: {
4819
+ [name: string]: unknown;
4820
+ };
4821
+ content: {
4822
+ "application/problem+json": components["schemas"]["Problem"];
4823
+ };
4824
+ };
4825
+ };
4826
+ };
4827
+ getUsAsset: {
4828
+ parameters: {
4829
+ query?: never;
4830
+ header?: never;
4831
+ path: {
4832
+ ticker: string;
4833
+ };
4834
+ cookie?: never;
4835
+ };
4836
+ requestBody?: never;
4837
+ responses: {
4838
+ /** @description Ativo */
4839
+ 200: {
4840
+ headers: {
4841
+ [name: string]: unknown;
4842
+ };
4843
+ content: {
4844
+ "application/json": components["schemas"]["UsAssetDetail"];
4845
+ };
4846
+ };
4847
+ /** @description Erro (RFC 9457 application/problem+json) */
4848
+ default: {
4849
+ headers: {
4850
+ [name: string]: unknown;
4851
+ };
4852
+ content: {
4853
+ "application/problem+json": components["schemas"]["Problem"];
4854
+ };
4855
+ };
4856
+ };
4857
+ };
4858
+ listUsAssetQuotes: {
4859
+ parameters: {
4860
+ query?: {
4861
+ cursor?: string;
4862
+ limit?: number;
4863
+ from?: string;
4864
+ to?: string;
4865
+ };
4866
+ header?: never;
4867
+ path: {
4868
+ ticker: string;
4869
+ };
4870
+ cookie?: never;
4871
+ };
4872
+ requestBody?: never;
4873
+ responses: {
4874
+ /** @description Página de cotações */
4875
+ 200: {
4876
+ headers: {
4877
+ [name: string]: unknown;
4878
+ };
4879
+ content: {
4880
+ "application/json": {
4881
+ data: components["schemas"]["UsQuote"][];
4882
+ meta: {
4883
+ next_cursor: string | null;
4884
+ /** @description Itens nesta página */
4885
+ count: number;
4886
+ };
4887
+ };
4888
+ };
4889
+ };
4890
+ /** @description Erro (RFC 9457 application/problem+json) */
4891
+ default: {
4892
+ headers: {
4893
+ [name: string]: unknown;
4894
+ };
4895
+ content: {
4896
+ "application/problem+json": components["schemas"]["Problem"];
4897
+ };
4898
+ };
4899
+ };
4900
+ };
4901
+ listUsFilings: {
4902
+ parameters: {
4903
+ query?: {
4904
+ cursor?: string;
4905
+ limit?: number;
4906
+ form?: string;
4907
+ };
4908
+ header?: never;
4909
+ path: {
4910
+ ticker: string;
4911
+ };
4912
+ cookie?: never;
4913
+ };
4914
+ requestBody?: never;
4915
+ responses: {
4916
+ /** @description Página de filings */
4917
+ 200: {
4918
+ headers: {
4919
+ [name: string]: unknown;
4920
+ };
4921
+ content: {
4922
+ "application/json": {
4923
+ data: components["schemas"]["UsFiling"][];
4924
+ meta: {
4925
+ next_cursor: string | null;
4926
+ /** @description Itens nesta página */
4927
+ count: number;
4928
+ };
4929
+ };
4930
+ };
4931
+ };
4932
+ /** @description Erro (RFC 9457 application/problem+json) */
4933
+ default: {
4934
+ headers: {
4935
+ [name: string]: unknown;
4936
+ };
4937
+ content: {
4938
+ "application/problem+json": components["schemas"]["Problem"];
4939
+ };
4940
+ };
4941
+ };
4942
+ };
4943
+ search: {
4944
+ parameters: {
4945
+ query: {
4946
+ q: string;
4947
+ limit?: number;
4948
+ };
4949
+ header?: never;
4950
+ path?: never;
4951
+ cookie?: never;
4952
+ };
4953
+ requestBody?: never;
4954
+ responses: {
4955
+ /** @description Resultados ranqueados */
4956
+ 200: {
4957
+ headers: {
4958
+ [name: string]: unknown;
4959
+ };
4960
+ content: {
4961
+ "application/json": components["schemas"]["SearchResult"][];
4962
+ };
4963
+ };
4964
+ /** @description Erro (RFC 9457 application/problem+json) */
4965
+ default: {
4966
+ headers: {
4967
+ [name: string]: unknown;
4968
+ };
4969
+ content: {
4970
+ "application/problem+json": components["schemas"]["Problem"];
4971
+ };
4972
+ };
4973
+ };
4974
+ };
4975
+ getIngestHealth: {
4976
+ parameters: {
4977
+ query?: never;
4978
+ header?: never;
4979
+ path?: never;
4980
+ cookie?: never;
4981
+ };
4982
+ requestBody?: never;
4983
+ responses: {
4984
+ /** @description Saúde da ingestão */
4985
+ 200: {
4986
+ headers: {
4987
+ [name: string]: unknown;
4988
+ };
4989
+ content: {
4990
+ "application/json": {
4991
+ latest: ({
4992
+ errors: string[];
4993
+ } & components["schemas"]["IngestRunSummary"]) | null;
4994
+ sources: components["schemas"]["IngestSourceHealth"][];
4995
+ recent_runs: components["schemas"]["IngestRunSummary"][];
4996
+ };
4997
+ };
4998
+ };
4999
+ /** @description Erro (RFC 9457 application/problem+json) */
5000
+ default: {
5001
+ headers: {
5002
+ [name: string]: unknown;
5003
+ };
5004
+ content: {
5005
+ "application/problem+json": components["schemas"]["Problem"];
5006
+ };
5007
+ };
5008
+ };
5009
+ };
5010
+ getNewsEdition: {
4390
5011
  parameters: {
4391
5012
  query?: {
4392
5013
  /** @description Data da edição (AAAA-MM-DD). Omita p/ a mais recente. */
@@ -4897,7 +5518,7 @@ export interface operations {
4897
5518
  * @description Tipo do ativo.
4898
5519
  * @enum {string}
4899
5520
  */
4900
- asset_type: "stock" | "fii" | "bdr" | "index" | "tesouro" | "crypto" | "option" | "renda_fixa";
5521
+ asset_type: "stock" | "fii" | "bdr" | "index" | "tesouro" | "crypto" | "option" | "renda_fixa" | "us";
4901
5522
  /** @description Ticker (ex.: PETR4) ou nome oficial do título do Tesouro. */
4902
5523
  symbol: string;
4903
5524
  };
@@ -4928,7 +5549,7 @@ export interface operations {
4928
5549
  parameters: {
4929
5550
  query: {
4930
5551
  /** @description Tipo do ativo. */
4931
- asset_type: "stock" | "fii" | "bdr" | "index" | "tesouro" | "crypto" | "option" | "renda_fixa";
5552
+ asset_type: "stock" | "fii" | "bdr" | "index" | "tesouro" | "crypto" | "option" | "renda_fixa" | "us";
4932
5553
  /** @description Ticker ou nome do título. */
4933
5554
  symbol: string;
4934
5555
  };
@@ -5066,7 +5687,7 @@ export interface operations {
5066
5687
  * @description Tipo do ativo.
5067
5688
  * @enum {string}
5068
5689
  */
5069
- asset_type: "stock" | "fii" | "bdr" | "index" | "tesouro" | "crypto" | "option" | "renda_fixa";
5690
+ asset_type: "stock" | "fii" | "bdr" | "index" | "tesouro" | "crypto" | "option" | "renda_fixa" | "us";
5070
5691
  /** @description Ticker (ex.: PETR4) ou nome oficial do título do Tesouro. */
5071
5692
  symbol: string;
5072
5693
  /**
@@ -5568,7 +6189,7 @@ export interface operations {
5568
6189
  * @description Tipo do ativo principal.
5569
6190
  * @enum {string}
5570
6191
  */
5571
- asset_type?: "stock" | "fii";
6192
+ asset_type?: "stock" | "fii" | "crypto" | "us";
5572
6193
  };
5573
6194
  };
5574
6195
  };
@@ -5713,4 +6334,312 @@ export interface operations {
5713
6334
  };
5714
6335
  };
5715
6336
  };
6337
+ listMyTheses: {
6338
+ parameters: {
6339
+ query?: never;
6340
+ header?: never;
6341
+ path?: never;
6342
+ cookie?: never;
6343
+ };
6344
+ requestBody?: never;
6345
+ responses: {
6346
+ /** @description Teses + limite do plano (null = ilimitado). */
6347
+ 200: {
6348
+ headers: {
6349
+ [name: string]: unknown;
6350
+ };
6351
+ content: {
6352
+ "application/json": {
6353
+ theses?: components["schemas"]["ThesisSummary"][];
6354
+ limit?: number | null;
6355
+ };
6356
+ };
6357
+ };
6358
+ /** @description Erro (RFC 9457 application/problem+json) */
6359
+ default: {
6360
+ headers: {
6361
+ [name: string]: unknown;
6362
+ };
6363
+ content: {
6364
+ "application/problem+json": Record<string, never>;
6365
+ };
6366
+ };
6367
+ };
6368
+ };
6369
+ createThesis: {
6370
+ parameters: {
6371
+ query?: never;
6372
+ header?: never;
6373
+ path?: never;
6374
+ cookie?: never;
6375
+ };
6376
+ requestBody: {
6377
+ content: {
6378
+ "application/json": {
6379
+ doc: components["schemas"]["ReportDocInput"];
6380
+ /**
6381
+ * @description Default: private.
6382
+ * @enum {string}
6383
+ */
6384
+ visibility?: "private" | "unlisted" | "public";
6385
+ /** @description Exibir seções pessoais (minha-posicao) na leitura pública. Default: false (redigidas). */
6386
+ show_personal?: boolean;
6387
+ };
6388
+ };
6389
+ };
6390
+ responses: {
6391
+ /** @description Tese criada. */
6392
+ 201: {
6393
+ headers: {
6394
+ [name: string]: unknown;
6395
+ };
6396
+ content: {
6397
+ "application/json": {
6398
+ thesis?: components["schemas"]["ThesisDetail"];
6399
+ };
6400
+ };
6401
+ };
6402
+ /** @description Erro (RFC 9457 application/problem+json) */
6403
+ default: {
6404
+ headers: {
6405
+ [name: string]: unknown;
6406
+ };
6407
+ content: {
6408
+ "application/problem+json": Record<string, never>;
6409
+ };
6410
+ };
6411
+ };
6412
+ };
6413
+ importThesisFile: {
6414
+ parameters: {
6415
+ query?: never;
6416
+ header?: never;
6417
+ path?: never;
6418
+ cookie?: never;
6419
+ };
6420
+ requestBody: {
6421
+ content: {
6422
+ "application/json": {
6423
+ /** @description Nome do arquivo (informativo). */
6424
+ filename?: string;
6425
+ /** @description JSON do ReportDoc codificado em base64. */
6426
+ content_base64: string;
6427
+ /** @enum {string} */
6428
+ visibility?: "private" | "unlisted" | "public";
6429
+ show_personal?: boolean;
6430
+ };
6431
+ };
6432
+ };
6433
+ responses: {
6434
+ /** @description Tese criada. */
6435
+ 201: {
6436
+ headers: {
6437
+ [name: string]: unknown;
6438
+ };
6439
+ content: {
6440
+ "application/json": {
6441
+ thesis?: components["schemas"]["ThesisDetail"];
6442
+ };
6443
+ };
6444
+ };
6445
+ /** @description Erro (RFC 9457 application/problem+json) */
6446
+ default: {
6447
+ headers: {
6448
+ [name: string]: unknown;
6449
+ };
6450
+ content: {
6451
+ "application/problem+json": Record<string, never>;
6452
+ };
6453
+ };
6454
+ };
6455
+ };
6456
+ getThesis: {
6457
+ parameters: {
6458
+ query?: never;
6459
+ header?: never;
6460
+ path: {
6461
+ id: string;
6462
+ };
6463
+ cookie?: never;
6464
+ };
6465
+ requestBody?: never;
6466
+ responses: {
6467
+ /** @description Tese. */
6468
+ 200: {
6469
+ headers: {
6470
+ [name: string]: unknown;
6471
+ };
6472
+ content: {
6473
+ "application/json": {
6474
+ thesis?: components["schemas"]["ThesisDetail"];
6475
+ };
6476
+ };
6477
+ };
6478
+ /** @description Erro (RFC 9457 application/problem+json) */
6479
+ default: {
6480
+ headers: {
6481
+ [name: string]: unknown;
6482
+ };
6483
+ content: {
6484
+ "application/problem+json": Record<string, never>;
6485
+ };
6486
+ };
6487
+ };
6488
+ };
6489
+ updateThesis: {
6490
+ parameters: {
6491
+ query?: never;
6492
+ header?: never;
6493
+ path: {
6494
+ id: string;
6495
+ };
6496
+ cookie?: never;
6497
+ };
6498
+ requestBody: {
6499
+ content: {
6500
+ "application/json": {
6501
+ doc?: components["schemas"]["ReportDocInput"];
6502
+ /** @enum {string} */
6503
+ visibility?: "private" | "unlisted" | "public";
6504
+ show_personal?: boolean;
6505
+ };
6506
+ };
6507
+ };
6508
+ responses: {
6509
+ /** @description Tese atualizada. */
6510
+ 200: {
6511
+ headers: {
6512
+ [name: string]: unknown;
6513
+ };
6514
+ content: {
6515
+ "application/json": {
6516
+ thesis?: components["schemas"]["ThesisDetail"];
6517
+ };
6518
+ };
6519
+ };
6520
+ /** @description Erro (RFC 9457 application/problem+json) */
6521
+ default: {
6522
+ headers: {
6523
+ [name: string]: unknown;
6524
+ };
6525
+ content: {
6526
+ "application/problem+json": Record<string, never>;
6527
+ };
6528
+ };
6529
+ };
6530
+ };
6531
+ deleteThesis: {
6532
+ parameters: {
6533
+ query?: never;
6534
+ header?: never;
6535
+ path: {
6536
+ id: string;
6537
+ };
6538
+ cookie?: never;
6539
+ };
6540
+ requestBody?: never;
6541
+ responses: {
6542
+ /** @description Excluída. */
6543
+ 200: {
6544
+ headers: {
6545
+ [name: string]: unknown;
6546
+ };
6547
+ content: {
6548
+ "application/json": {
6549
+ deleted?: boolean;
6550
+ };
6551
+ };
6552
+ };
6553
+ /** @description Erro (RFC 9457 application/problem+json) */
6554
+ default: {
6555
+ headers: {
6556
+ [name: string]: unknown;
6557
+ };
6558
+ content: {
6559
+ "application/problem+json": Record<string, never>;
6560
+ };
6561
+ };
6562
+ };
6563
+ };
6564
+ publishThesis: {
6565
+ parameters: {
6566
+ query?: never;
6567
+ header?: never;
6568
+ path: {
6569
+ id: string;
6570
+ };
6571
+ cookie?: never;
6572
+ };
6573
+ requestBody: {
6574
+ content: {
6575
+ "application/json": {
6576
+ /** @enum {string} */
6577
+ visibility: "private" | "unlisted" | "public";
6578
+ show_personal?: boolean;
6579
+ };
6580
+ };
6581
+ };
6582
+ responses: {
6583
+ /** @description Visibilidade atualizada. */
6584
+ 200: {
6585
+ headers: {
6586
+ [name: string]: unknown;
6587
+ };
6588
+ content: {
6589
+ "application/json": {
6590
+ thesis?: components["schemas"]["ThesisDetail"];
6591
+ };
6592
+ };
6593
+ };
6594
+ /** @description Erro (RFC 9457 application/problem+json) */
6595
+ default: {
6596
+ headers: {
6597
+ [name: string]: unknown;
6598
+ };
6599
+ content: {
6600
+ "application/problem+json": Record<string, never>;
6601
+ };
6602
+ };
6603
+ };
6604
+ };
6605
+ exportThesis: {
6606
+ parameters: {
6607
+ query?: never;
6608
+ header?: never;
6609
+ path: {
6610
+ id: string;
6611
+ };
6612
+ cookie?: never;
6613
+ };
6614
+ requestBody?: never;
6615
+ responses: {
6616
+ /** @description Já exportada (conteúdo inalterado). */
6617
+ 200: {
6618
+ headers: {
6619
+ [name: string]: unknown;
6620
+ };
6621
+ content: {
6622
+ "application/json": components["schemas"]["ThesisExportStatus"];
6623
+ };
6624
+ };
6625
+ /** @description Export enfileirado. */
6626
+ 202: {
6627
+ headers: {
6628
+ [name: string]: unknown;
6629
+ };
6630
+ content: {
6631
+ "application/json": components["schemas"]["ThesisExportStatus"];
6632
+ };
6633
+ };
6634
+ /** @description Erro (RFC 9457 application/problem+json) */
6635
+ default: {
6636
+ headers: {
6637
+ [name: string]: unknown;
6638
+ };
6639
+ content: {
6640
+ "application/problem+json": Record<string, never>;
6641
+ };
6642
+ };
6643
+ };
6644
+ };
5716
6645
  }