@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/types.d.ts CHANGED
@@ -85,6 +85,13 @@ export type TesouroBondsResponse = Ok<"listTesouroBonds">;
85
85
  export type ExpectationsResponse = Ok<"getMarketExpectations">;
86
86
  export type MacroGearsResponse = Ok<"getMacroGears">;
87
87
  export type CryptoQuotesResponse = Ok<"listCryptoQuotes">;
88
+ export type CryptoListResponse = Ok<"listCrypto">;
89
+ export type CryptoAsset = Ok<"getCrypto">;
90
+ export type CryptoLiveResponse = Ok<"listCryptoLive">;
91
+ export type UsAssetsResponse = Ok<"listUsAssets">;
92
+ export type UsAssetDetail = Ok<"getUsAsset">;
93
+ export type UsQuotesResponse = Ok<"listUsAssetQuotes">;
94
+ export type UsFilingsResponse = Ok<"listUsFilings">;
88
95
  export type SearchResponse = Ok<"search">;
89
96
  export type OptionsChainResponse = Ok<"getOptionsChain">;
90
97
  export type OptionExpiriesResponse = Ok<"listOptionExpiries">;
@@ -133,11 +140,11 @@ export interface RegisterCommunityBotInput {
133
140
  }
134
141
  /** Publicação como bot — `POST /v1/community/bots/{handle}/posts`. */
135
142
  export interface CommunityBotPostInput {
136
- /** Texto do post (12–2000 caracteres; cashtags $PETR4 viram links). */
143
+ /** Texto do post (12–2000 caracteres; cashtags $PETR4, $BTC, $AAPL viram links). */
137
144
  body: string;
138
145
  title?: string;
139
146
  ticker?: string;
140
- assetType?: "stock" | "fii";
147
+ assetType?: "stock" | "fii" | "crypto" | "us";
141
148
  }
142
149
  /** Filtros do feed — `GET /v1/community/feed`. */
143
150
  export interface CommunityFeedParams {
@@ -157,10 +164,22 @@ export type PortfolioImportRowsResponse = Ok<"listPortfolioImportRows">;
157
164
  export type CreatePortfolioResponse = Created<"createPortfolio">;
158
165
  export type AddPortfolioTransactionResponse = Created<"addPortfolioTransaction">;
159
166
  export type PortfolioImportSummary = Schemas["PortfolioImportSummary"];
167
+ export type ThesisSummary = Schemas["ThesisSummary"];
168
+ export type ThesisDetail = Schemas["ThesisDetail"];
169
+ export type ThesesResponse = Ok<"listMyTheses">;
170
+ export type ThesisResponse = Ok<"getThesis">;
171
+ export type CreateThesisResponse = Created<"createThesis">;
172
+ export type ThesisExportStatus = Schemas["ThesisExportStatus"];
173
+ export interface ThesisWriteInput {
174
+ /** O ReportDoc completo (JSON) — validado no servidor. */
175
+ doc: Record<string, unknown>;
176
+ visibility?: "private" | "unlisted" | "public";
177
+ showPersonal?: boolean;
178
+ }
160
179
  /** Referência de ativo dentro de uma carteira (chave natural). */
161
180
  export interface PortfolioAssetRef {
162
- assetType: "stock" | "fii" | "bdr" | "index" | "tesouro" | "crypto" | "option" | "renda_fixa";
163
- /** Ticker (PETR4) ou, para Tesouro, o nome oficial do título. */
181
+ assetType: "stock" | "fii" | "bdr" | "index" | "tesouro" | "crypto" | "option" | "renda_fixa" | "us";
182
+ /** Ticker (PETR4, AAPL) ou, para Tesouro, o nome oficial do título. */
164
183
  symbol: string;
165
184
  }
166
185
  /** Campos de uma transação — `POST /v1/portfolios/{id}/transactions`. */
@@ -170,7 +189,7 @@ export interface PortfolioTransactionInput {
170
189
  tradeDate: string;
171
190
  /** Obrigatória em buy/sell (> 0). */
172
191
  quantity?: number;
173
- /** Preço unitário em BRL (omita se desconhecido). */
192
+ /** Preço unitário na moeda de negociação do ativo: BRL, ou USD para asset_type=us (omita se desconhecido). */
174
193
  price?: number | null;
175
194
  fees?: number;
176
195
  /** Fator do split (2 = 2:1; 0.5 = grupamento 1:2). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databolsa/sdk",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "SDK TypeScript tipado para a Serving API pública do DataBolsa, gerado a partir do contrato OpenAPI.",