@alva-ai/toolkit 0.26.0 → 0.28.0-beta.0
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/README.md +36 -1
- package/dist/browser.global.js +41 -14
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.d.ts +124 -2
- package/dist/cli.js +581 -26
- package/dist/cli.js.map +1 -1
- package/dist/dispatch.d.ts +124 -2
- package/dist/dispatch.js +376 -15
- package/dist/dispatch.js.map +1 -1
- package/dist/index.cjs +337 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +125 -3
- package/dist/index.d.ts +125 -3
- package/dist/index.js +335 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/dispatch.d.ts
CHANGED
|
@@ -1253,6 +1253,87 @@ declare class FeedResource {
|
|
|
1253
1253
|
setVisibility(params: FeedSetVisibilityRequest): Promise<FeedSetVisibilityResponse>;
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
+
interface ForYouListParams {
|
|
1257
|
+
first?: number;
|
|
1258
|
+
after?: string;
|
|
1259
|
+
newerThan?: string;
|
|
1260
|
+
feedId?: string;
|
|
1261
|
+
}
|
|
1262
|
+
/** The immutable publication selection, not the full mutable Feed object. */
|
|
1263
|
+
interface ForYouEntry {
|
|
1264
|
+
id: string;
|
|
1265
|
+
feed: {
|
|
1266
|
+
id: string;
|
|
1267
|
+
};
|
|
1268
|
+
major: {
|
|
1269
|
+
id: string;
|
|
1270
|
+
feedId: string;
|
|
1271
|
+
number: number;
|
|
1272
|
+
};
|
|
1273
|
+
displayName: string | null;
|
|
1274
|
+
source: string;
|
|
1275
|
+
eventTimeMs: number;
|
|
1276
|
+
publishedAtMs: number;
|
|
1277
|
+
title: string;
|
|
1278
|
+
body: string;
|
|
1279
|
+
actions: {
|
|
1280
|
+
type: 'OPEN_URL' | 'SEND_PROMPT' | 'CONNECT_PORTFOLIO' | 'CONNECT_IM';
|
|
1281
|
+
label: string;
|
|
1282
|
+
url: string | null;
|
|
1283
|
+
prompt: string | null;
|
|
1284
|
+
}[];
|
|
1285
|
+
presentation: {
|
|
1286
|
+
card: {
|
|
1287
|
+
accentColor: string | null;
|
|
1288
|
+
url: string | null;
|
|
1289
|
+
thumbnailUrl: string | null;
|
|
1290
|
+
footer: string | null;
|
|
1291
|
+
fields: {
|
|
1292
|
+
label: string;
|
|
1293
|
+
value: string;
|
|
1294
|
+
inline: boolean;
|
|
1295
|
+
}[];
|
|
1296
|
+
} | null;
|
|
1297
|
+
} | null;
|
|
1298
|
+
tickers: {
|
|
1299
|
+
symbol: string;
|
|
1300
|
+
logoUrl: string;
|
|
1301
|
+
sentiment: 'BULLISH' | 'BEARISH' | 'ANOMALY' | null;
|
|
1302
|
+
}[];
|
|
1303
|
+
media: {
|
|
1304
|
+
type: 'PRICE_CHART' | 'IMAGE' | 'AUDIO' | 'VIDEO';
|
|
1305
|
+
coverUrl: string;
|
|
1306
|
+
url: string | null;
|
|
1307
|
+
}[];
|
|
1308
|
+
sources: {
|
|
1309
|
+
type: 'NEWS' | 'X' | 'REDDIT' | 'YOUTUBE' | 'PODCAST' | 'EARNINGS' | 'FILING' | 'WEB';
|
|
1310
|
+
url: string | null;
|
|
1311
|
+
iconUrl: string | null;
|
|
1312
|
+
title: string;
|
|
1313
|
+
subtitle: string | null;
|
|
1314
|
+
description: string | null;
|
|
1315
|
+
publishedAtMs: number;
|
|
1316
|
+
}[];
|
|
1317
|
+
}
|
|
1318
|
+
interface ForYouConnection {
|
|
1319
|
+
edges: {
|
|
1320
|
+
cursor: string;
|
|
1321
|
+
node: ForYouEntry;
|
|
1322
|
+
}[];
|
|
1323
|
+
pageInfo: {
|
|
1324
|
+
startCursor: string;
|
|
1325
|
+
endCursor: string;
|
|
1326
|
+
hasNextPage: boolean;
|
|
1327
|
+
hasPreviousPage: boolean;
|
|
1328
|
+
};
|
|
1329
|
+
}
|
|
1330
|
+
declare class ForYouResource {
|
|
1331
|
+
private client;
|
|
1332
|
+
constructor(client: AlvaClient);
|
|
1333
|
+
/** One newest-first page. Does not truncate content or advance a watermark. */
|
|
1334
|
+
list(params?: ForYouListParams): Promise<ForYouConnection>;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1256
1337
|
/**
|
|
1257
1338
|
* Product-facing automation API. Backed by the existing feed/release gateway
|
|
1258
1339
|
* surfaces while those lower-level names remain on the wire for compatibility.
|
|
@@ -1681,8 +1762,8 @@ declare class NotificationsResource {
|
|
|
1681
1762
|
constructor(client: AlvaClient);
|
|
1682
1763
|
/**
|
|
1683
1764
|
* List the caller's notification history for one feed
|
|
1684
|
-
* `(username, name)`. Authorization
|
|
1685
|
-
*
|
|
1765
|
+
* `(username, name)`. Authorization uses the backend's canonical Feed read
|
|
1766
|
+
* decision (owner, public, bundled paid access, Plan, or Access Group).
|
|
1686
1767
|
*/
|
|
1687
1768
|
listFeed(params: NotificationListParams): Promise<FeedNotificationListResponse>;
|
|
1688
1769
|
}
|
|
@@ -2106,6 +2187,43 @@ declare class SchedulesResource {
|
|
|
2106
2187
|
private graphql;
|
|
2107
2188
|
}
|
|
2108
2189
|
|
|
2190
|
+
interface TradingPairCandidate {
|
|
2191
|
+
/** Underlying ticker returned by the market catalog. */
|
|
2192
|
+
symbol: string;
|
|
2193
|
+
/** Complete canonical identity used by OHLCV, Altra, and orders. */
|
|
2194
|
+
tradingPair: string;
|
|
2195
|
+
market: string;
|
|
2196
|
+
instrumentType: string;
|
|
2197
|
+
underlyingType?: string;
|
|
2198
|
+
quote: string;
|
|
2199
|
+
type?: string;
|
|
2200
|
+
description?: string;
|
|
2201
|
+
feeRate?: number;
|
|
2202
|
+
symbolIconUrl?: string;
|
|
2203
|
+
}
|
|
2204
|
+
interface TradingPairSearchParams {
|
|
2205
|
+
symbol: string;
|
|
2206
|
+
market?: string;
|
|
2207
|
+
instrumentType?: string;
|
|
2208
|
+
underlyingType?: string;
|
|
2209
|
+
quote?: string;
|
|
2210
|
+
limit?: number;
|
|
2211
|
+
}
|
|
2212
|
+
interface TradingPairSearchResponse {
|
|
2213
|
+
query: string;
|
|
2214
|
+
candidates: TradingPairCandidate[];
|
|
2215
|
+
truncated?: boolean;
|
|
2216
|
+
}
|
|
2217
|
+
type TradingPairResolveFilters = Omit<TradingPairSearchParams, 'symbol' | 'limit'>;
|
|
2218
|
+
declare class TradingPairsResource {
|
|
2219
|
+
private client;
|
|
2220
|
+
constructor(client: AlvaClient);
|
|
2221
|
+
search(params: TradingPairSearchParams): Promise<TradingPairSearchResponse>;
|
|
2222
|
+
resolve(params: ({
|
|
2223
|
+
pair: string;
|
|
2224
|
+
} & TradingPairResolveFilters) | Omit<TradingPairSearchParams, 'limit'>): Promise<TradingPairCandidate>;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2109
2227
|
interface RequestOptions {
|
|
2110
2228
|
query?: Record<string, unknown>;
|
|
2111
2229
|
body?: unknown;
|
|
@@ -2149,6 +2267,7 @@ declare class AlvaClient {
|
|
|
2149
2267
|
private _serviceAccount?;
|
|
2150
2268
|
private _release?;
|
|
2151
2269
|
private _feed?;
|
|
2270
|
+
private _forYou?;
|
|
2152
2271
|
private _automation?;
|
|
2153
2272
|
private _playbooks?;
|
|
2154
2273
|
private _secrets?;
|
|
@@ -2172,6 +2291,7 @@ declare class AlvaClient {
|
|
|
2172
2291
|
private _credits?;
|
|
2173
2292
|
private _markets?;
|
|
2174
2293
|
private _schedules?;
|
|
2294
|
+
private _tradingPairs?;
|
|
2175
2295
|
constructor(config: AlvaClientConfig);
|
|
2176
2296
|
get fs(): FsResource;
|
|
2177
2297
|
get run(): RunResource;
|
|
@@ -2201,8 +2321,10 @@ declare class AlvaClient {
|
|
|
2201
2321
|
get functions(): FunctionsResource;
|
|
2202
2322
|
get credits(): CreditsResource;
|
|
2203
2323
|
get markets(): MarketsResource;
|
|
2324
|
+
get tradingPairs(): TradingPairsResource;
|
|
2204
2325
|
get schedules(): SchedulesResource;
|
|
2205
2326
|
_requireAuth(): void;
|
|
2327
|
+
get forYou(): ForYouResource;
|
|
2206
2328
|
_request(method: string, path: string, options?: RequestOptions): Promise<unknown>;
|
|
2207
2329
|
}
|
|
2208
2330
|
|