@alva-ai/toolkit 0.37.0 → 0.38.0-beta.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.
- package/README.md +16 -1
- package/dist/browser.global.js +86 -85
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.d.ts +1005 -911
- package/dist/cli.js +3427 -3087
- package/dist/cli.js.map +1 -1
- package/dist/dispatch.d.ts +1005 -911
- package/dist/dispatch.js +215 -114
- package/dist/dispatch.js.map +1 -1
- package/dist/index.cjs +3274 -3073
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1006 -912
- package/dist/index.d.ts +1006 -912
- package/dist/index.js +3274 -3073
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2015,1044 +2015,1138 @@ declare class SubscriptionsResource {
|
|
|
2015
2015
|
unsubscribeBatch(params: UnsubscribeBatchParams): Promise<UnsubscribeBatchResponse>;
|
|
2016
2016
|
}
|
|
2017
2017
|
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
interface WatchlistTickerSpec {
|
|
2024
|
-
ticker: string;
|
|
2025
|
-
kind?: WatchlistTickerKind;
|
|
2018
|
+
interface ThesisPageParams {
|
|
2019
|
+
/** 1-50; omitted reads 10. */
|
|
2020
|
+
first?: number;
|
|
2021
|
+
/** The previous page's `nextCursor`. */
|
|
2022
|
+
cursor?: string;
|
|
2026
2023
|
}
|
|
2027
|
-
interface
|
|
2028
|
-
/**
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2024
|
+
interface ListThesesParams extends ThesisPageParams {
|
|
2025
|
+
/** Exact Person slug, e.g. a Person publisher's `slug`. */
|
|
2026
|
+
person?: string;
|
|
2027
|
+
/** Person name search; resolves only a unique match. */
|
|
2028
|
+
personName?: string;
|
|
2029
|
+
/** Exact PublicUser username, e.g. a publisher's `username`; not a display name. */
|
|
2030
|
+
user?: string;
|
|
2031
|
+
/** Catalog ticker or alias; resolves only a unique entity. */
|
|
2032
|
+
ticker?: string;
|
|
2033
|
+
entityId?: string;
|
|
2034
|
+
/** Author lists only; omitted means ACTIVE. */
|
|
2035
|
+
status?: 'ACTIVE' | 'ARCHIVED';
|
|
2035
2036
|
}
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2037
|
+
type ThesisReadScope = {
|
|
2038
|
+
__typename: 'Person';
|
|
2039
|
+
id: string;
|
|
2040
|
+
slug: string;
|
|
2041
|
+
displayName: string;
|
|
2042
|
+
bio: string;
|
|
2043
|
+
} | {
|
|
2044
|
+
__typename: 'PublicUser';
|
|
2045
|
+
id: string;
|
|
2046
|
+
username: string;
|
|
2047
|
+
displayName: string;
|
|
2048
|
+
bio: string;
|
|
2049
|
+
} | {
|
|
2050
|
+
__typename: 'Entity';
|
|
2051
|
+
id: string;
|
|
2040
2052
|
ticker: string;
|
|
2041
2053
|
name: string;
|
|
2042
2054
|
kind: string;
|
|
2055
|
+
assetClass: string;
|
|
2056
|
+
venue: {
|
|
2057
|
+
id: string;
|
|
2058
|
+
name: string;
|
|
2059
|
+
} | null;
|
|
2060
|
+
};
|
|
2061
|
+
/**
|
|
2062
|
+
* `nextCursor` is the only continuation: pass it as `cursor`, and stop when it
|
|
2063
|
+
* is null. A page can be empty while `nextCursor` is still set.
|
|
2064
|
+
*/
|
|
2065
|
+
interface ThesisListPage {
|
|
2066
|
+
scope: ThesisReadScope;
|
|
2067
|
+
edges: {
|
|
2068
|
+
cursor: string;
|
|
2069
|
+
node: {
|
|
2070
|
+
/** Internal ID accepted by get/version/signals/related. */
|
|
2071
|
+
playbookId: string;
|
|
2072
|
+
/** Null when the author list has no readable publication snapshot. */
|
|
2073
|
+
publication: ThesisPublicationSummary | null;
|
|
2074
|
+
};
|
|
2075
|
+
}[];
|
|
2076
|
+
nextCursor: string | null;
|
|
2043
2077
|
}
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
/**
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2078
|
+
/** Related publications of the source's current version. */
|
|
2079
|
+
interface RelatedThesesPage {
|
|
2080
|
+
/** GENERATING and FAILED carry no matches; READY with no edges means none. */
|
|
2081
|
+
state: 'GENERATING' | 'READY' | 'FAILED';
|
|
2082
|
+
edges: {
|
|
2083
|
+
cursor: string;
|
|
2084
|
+
node: {
|
|
2085
|
+
itemKey: string;
|
|
2086
|
+
/** Relatedness, not quality or support. */
|
|
2087
|
+
score: number;
|
|
2088
|
+
publication: ThesisPublicationSummary;
|
|
2089
|
+
};
|
|
2090
|
+
}[];
|
|
2091
|
+
nextCursor: string | null;
|
|
2051
2092
|
}
|
|
2052
|
-
interface
|
|
2053
|
-
/**
|
|
2054
|
-
|
|
2055
|
-
/** Tickers already in the watchlist; nothing was written for them. */
|
|
2056
|
-
unchanged: ResolvedTicker[];
|
|
2057
|
-
unresolved: UnresolvedTicker[];
|
|
2093
|
+
interface ThesisReturnParams {
|
|
2094
|
+
/** Revalue at the latest prices and include each Update's positions. */
|
|
2095
|
+
detail?: boolean;
|
|
2058
2096
|
}
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2097
|
+
/** A position of one Update, as ThesisPositionReturn in GraphQL. */
|
|
2098
|
+
interface ThesisPositionReturn {
|
|
2099
|
+
entityId: string;
|
|
2100
|
+
symbol: string;
|
|
2101
|
+
direction: 'BULLISH' | 'BEARISH';
|
|
2102
|
+
startPrice: number | null;
|
|
2103
|
+
startAtMs: number | null;
|
|
2104
|
+
endPrice: number | null;
|
|
2105
|
+
endAtMs: number | null;
|
|
2106
|
+
end: 'PENDING' | 'NEXT_UPDATE' | 'LATEST';
|
|
2107
|
+
positionReturn: number;
|
|
2108
|
+
currency: string;
|
|
2109
|
+
/** The Update's target share of this position; equal shares when it states none. */
|
|
2110
|
+
weight: number;
|
|
2068
2111
|
}
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2112
|
+
/** One long or short of a target portfolio. */
|
|
2113
|
+
interface ThesisHolding {
|
|
2114
|
+
entityId: string;
|
|
2115
|
+
symbol: string;
|
|
2116
|
+
direction: 'BULLISH' | 'BEARISH';
|
|
2117
|
+
/** Target share as a fraction; equal shares when the Update states none. */
|
|
2118
|
+
weight: number;
|
|
2072
2119
|
}
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2120
|
+
/**
|
|
2121
|
+
* The current target portfolio: the shares the latest Update set, not drifted
|
|
2122
|
+
* with prices. Holdings and cash sum to 1; cash is 1 with no direction or
|
|
2123
|
+
* while archived.
|
|
2124
|
+
*/
|
|
2125
|
+
interface ThesisAllocation {
|
|
2126
|
+
holdings: ThesisHolding[];
|
|
2127
|
+
cash: number;
|
|
2076
2128
|
}
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2129
|
+
/** One Update on the return chart. */
|
|
2130
|
+
interface ThesisUpdateReturn {
|
|
2131
|
+
authorVersionId: string;
|
|
2132
|
+
publishedAtMs: number;
|
|
2133
|
+
startValue: number;
|
|
2134
|
+
updateReturn: number | null;
|
|
2135
|
+
positions: ThesisPositionReturn[];
|
|
2083
2136
|
}
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2137
|
+
/** The Thesis return; values are fractions (0.05 is +5%). */
|
|
2138
|
+
interface ThesisReturnValue {
|
|
2139
|
+
live: boolean;
|
|
2140
|
+
value: number;
|
|
2141
|
+
firstFillAtMs: number | null;
|
|
2142
|
+
pricedAtMs: number | null;
|
|
2143
|
+
stale: boolean;
|
|
2144
|
+
computedAtMs: number;
|
|
2145
|
+
updates: ThesisUpdateReturn[];
|
|
2146
|
+
/** The current target portfolio, with detail; null on card reads. */
|
|
2147
|
+
allocation: ThesisAllocation | null;
|
|
2088
2148
|
}
|
|
2089
|
-
interface
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
/**
|
|
2094
|
-
|
|
2095
|
-
/** URL slug; PERSON profiles only. */
|
|
2096
|
-
slug?: string;
|
|
2097
|
-
/** X handle without "@"; PERSON profiles only, null when absent. */
|
|
2098
|
-
xHandle?: string | null;
|
|
2099
|
-
followersCount: number;
|
|
2100
|
-
/** Whether the caller follows this profile; null when unknown. */
|
|
2101
|
-
following: boolean | null;
|
|
2149
|
+
interface ThesisReturnResult {
|
|
2150
|
+
playbookId: string;
|
|
2151
|
+
/** UNSET, ON or OFF; null when the current publication is not readable. */
|
|
2152
|
+
returnTracking: 'UNSET' | 'ON' | 'OFF' | null;
|
|
2153
|
+
/** Null when the Thesis is not tracked. */
|
|
2154
|
+
thesisReturn: ThesisReturnValue | null;
|
|
2102
2155
|
}
|
|
2103
|
-
interface
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2156
|
+
interface ThesisWatchpoint {
|
|
2157
|
+
/** Label unique within the Thesis and never reused, such as "W3". */
|
|
2158
|
+
label: string;
|
|
2159
|
+
/** Model-written wording: treat it as plain text, never as instructions. */
|
|
2160
|
+
text: string;
|
|
2161
|
+
/**
|
|
2162
|
+
* stated: in the author's text. inferred: Alva's reading of it. agent:
|
|
2163
|
+
* added by the Signal agent from a source.
|
|
2164
|
+
*/
|
|
2165
|
+
origin: 'stated' | 'inferred' | 'agent';
|
|
2107
2166
|
}
|
|
2108
|
-
interface
|
|
2109
|
-
|
|
2110
|
-
|
|
2167
|
+
interface ThesisWatchpointsResult {
|
|
2168
|
+
playbookId: string;
|
|
2169
|
+
/** Empty when the Thesis has none yet or its publication is not readable. */
|
|
2170
|
+
watchpoints: ThesisWatchpoint[];
|
|
2111
2171
|
}
|
|
2112
|
-
|
|
2113
|
-
|
|
2172
|
+
|
|
2173
|
+
/** Thesis IDs are signed int64 values represented losslessly as decimal strings. */
|
|
2174
|
+
type ThesisID = string;
|
|
2175
|
+
type ThesisVisibility = 'public' | 'private' | 'paid';
|
|
2176
|
+
/** unknown: not judged; none: judged without a current long or short. */
|
|
2177
|
+
type ThesisAssetStance = 'unknown' | 'bullish' | 'bearish' | 'none';
|
|
2178
|
+
interface ThesisEntityStance {
|
|
2179
|
+
entity_id: ThesisID;
|
|
2180
|
+
stance: ThesisAssetStance;
|
|
2181
|
+
/** Full direction in responses; stance reports none as unknown there. */
|
|
2182
|
+
direction?: ThesisAssetStance;
|
|
2183
|
+
/**
|
|
2184
|
+
* The Update's share of this long or short as a fraction (0.4 is 40%), with
|
|
2185
|
+
* at most four decimals. On create and update give one to every bullish or
|
|
2186
|
+
* bearish entity, and the rest is cash, or to none, and the shares follow
|
|
2187
|
+
* the default rules and what the body says. Responses carry it only on an
|
|
2188
|
+
* Update published with weights.
|
|
2189
|
+
*/
|
|
2190
|
+
weight?: number;
|
|
2114
2191
|
}
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2192
|
+
/** GraphQL direction, including NONE. */
|
|
2193
|
+
type ThesisDirection = 'UNKNOWN' | 'BULLISH' | 'BEARISH' | 'NONE';
|
|
2194
|
+
interface ThesisSelectedDirection {
|
|
2195
|
+
entityId: ThesisID;
|
|
2196
|
+
direction: ThesisDirection;
|
|
2118
2197
|
}
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2198
|
+
type ThesisReturnTracking = 'UNSET' | 'ON' | 'OFF';
|
|
2199
|
+
/** What publishing the selected entities with their directions would store. */
|
|
2200
|
+
interface ThesisReturnPreview {
|
|
2201
|
+
/** The Thesis's return switch now; UNSET for a new Thesis. */
|
|
2202
|
+
tracking: ThesisReturnTracking;
|
|
2203
|
+
/** Ask the author whether to keep the return on. */
|
|
2204
|
+
askSwitch: boolean;
|
|
2205
|
+
/** Directions publishing would store; UNKNOWN could not be judged. */
|
|
2206
|
+
directions: ThesisSelectedDirection[];
|
|
2207
|
+
/** Exits that keep the previous direction (last-leg rule). */
|
|
2208
|
+
keptEntityIds: ThesisID[];
|
|
2209
|
+
/** Publishing this draft fails with THESIS_RETURN_LAST_LEG. */
|
|
2210
|
+
lastLegRemoved: boolean;
|
|
2122
2211
|
}
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
declare class FollowsResource {
|
|
2131
|
-
private client;
|
|
2132
|
-
constructor(client: AlvaClient);
|
|
2133
|
-
/** Add tickers to the watchlist by exact symbol in one atomic batch. */
|
|
2134
|
-
addToWatchlist(params: WatchlistTickersParams): Promise<AddToWatchlistResult>;
|
|
2135
|
-
/** Remove tickers from the watchlist by exact symbol in one atomic batch. */
|
|
2136
|
-
removeFromWatchlist(params: WatchlistTickersParams): Promise<RemoveFromWatchlistResult>;
|
|
2137
|
-
/** One page of the watchlist, most recently added first. */
|
|
2138
|
-
watchlist(params?: FollowPageParams): Promise<WatchlistPage>;
|
|
2139
|
-
/** Search public profiles (Alva users and curated people). */
|
|
2140
|
-
searchProfiles(params: SearchProfilesParams): Promise<ProfilesPage>;
|
|
2141
|
-
/** One page of profiles the caller follows. */
|
|
2142
|
-
profiles(params?: FollowedProfilesParams): Promise<ProfilesPage>;
|
|
2143
|
-
/** Follow one profile. Idempotent. */
|
|
2144
|
-
followProfile(params: ProfileRefParams): Promise<ProfileFollowResult>;
|
|
2145
|
-
/** Unfollow one profile. Idempotent. */
|
|
2146
|
-
unfollowProfile(params: ProfileRefParams): Promise<ProfileFollowResult>;
|
|
2147
|
-
private profilesPage;
|
|
2148
|
-
private changeProfile;
|
|
2149
|
-
private changeWatchlist;
|
|
2150
|
-
private lookupTickers;
|
|
2151
|
-
private lookupTicker;
|
|
2152
|
-
}
|
|
2153
|
-
|
|
2154
|
-
/**
|
|
2155
|
-
* Product-facing alert API. The current transport still calls the legacy
|
|
2156
|
-
* subscription and notification-history endpoints.
|
|
2157
|
-
*/
|
|
2158
|
-
declare class AlertsResource {
|
|
2159
|
-
private client;
|
|
2160
|
-
constructor(client: AlvaClient);
|
|
2161
|
-
list(params?: PushSubscriptionListParams): Promise<PushSubscriptionListResponse>;
|
|
2162
|
-
follows(params?: FollowsListParams): Promise<FollowsListResponse>;
|
|
2163
|
-
enableAutomation(params: SubscribeFeedParams): Promise<SubscribeFeedResponse>;
|
|
2164
|
-
disableAutomation(params: PushSubscriptionFeedParams): Promise<UnsubscribeResponse>;
|
|
2165
|
-
enableBatch(params: SubscribeBatchParams): Promise<SubscribeBatchResponse>;
|
|
2166
|
-
disableBatch(params: UnsubscribeBatchParams): Promise<UnsubscribeBatchResponse>;
|
|
2167
|
-
historyAutomation(params: NotificationListParams): Promise<FeedNotificationListResponse>;
|
|
2168
|
-
preferences(): Promise<NotificationPreferencesResponse>;
|
|
2169
|
-
updatePreference(params: NotificationPreferenceUpdateParams): Promise<NotificationPreferenceUpdateResponse>;
|
|
2212
|
+
interface ThesisAssetCandidatesParams {
|
|
2213
|
+
/** Known catalog IDs to classify; with discover false, only these. */
|
|
2214
|
+
entityIds?: ThesisID[];
|
|
2215
|
+
/** The Thesis being updated: its current directions seed carried tickers. */
|
|
2216
|
+
thesisId?: ThesisID;
|
|
2217
|
+
/** False skips ticker discovery. Defaults to true. */
|
|
2218
|
+
discover?: boolean;
|
|
2170
2219
|
}
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
* to feed push events the group admin may read. Mutations are idempotent no-ops
|
|
2177
|
-
* unless the authenticated caller is that group's Alva admin.
|
|
2178
|
-
*/
|
|
2179
|
-
declare class ChannelGroupSubscriptionsResource {
|
|
2180
|
-
private client;
|
|
2181
|
-
constructor(client: AlvaClient);
|
|
2182
|
-
context(params: ChannelGroupSubscriptionSessionParams): Promise<ChannelGroupSubscriptionContextResponse>;
|
|
2183
|
-
list(params: ChannelGroupSubscriptionSessionParams): Promise<ChannelGroupSubscriptionListResponse>;
|
|
2184
|
-
subscribe(params: ChannelGroupSubscriptionMutationParams): Promise<ChannelGroupSubscriptionMutationResponse>;
|
|
2185
|
-
unsubscribe(params: ChannelGroupSubscriptionMutationParams): Promise<ChannelGroupSubscriptionMutationResponse>;
|
|
2186
|
-
/**
|
|
2187
|
-
* Read a group's buffered chat messages in a time window, for the group-chat
|
|
2188
|
-
* digest automation. Admin-gated: the authenticated caller must be that
|
|
2189
|
-
* group's Alva admin (a digest feed runs as that admin). Each message carries
|
|
2190
|
-
* a `permalink` deep-link back to the original message for "jump to original".
|
|
2191
|
-
* `from_micros`/`to_micros` are message-origin timestamps in microseconds.
|
|
2192
|
-
*/
|
|
2193
|
-
getGroupChatHistory(params: ChannelGroupHistoryParams): Promise<ChannelGroupHistoryResponse>;
|
|
2220
|
+
interface ThesisAssetCandidate {
|
|
2221
|
+
entityId: ThesisID;
|
|
2222
|
+
ticker: string;
|
|
2223
|
+
name: string;
|
|
2224
|
+
kind: 'STOCK' | 'ETF' | 'CRYPTO' | 'INDEX';
|
|
2194
2225
|
}
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2226
|
+
interface ThesisAssetMention {
|
|
2227
|
+
quote: string;
|
|
2228
|
+
ticker: string;
|
|
2229
|
+
resolution: 'RESOLVED' | 'AMBIGUOUS' | 'UNRESOLVED';
|
|
2230
|
+
stance: 'UNKNOWN' | 'BULLISH' | 'BEARISH';
|
|
2231
|
+
candidates: ThesisAssetCandidate[];
|
|
2200
2232
|
}
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
function_name: string;
|
|
2206
|
-
entry_script_path: string;
|
|
2207
|
-
created_at?: string;
|
|
2208
|
-
updated_at?: string;
|
|
2209
|
-
disabled?: boolean;
|
|
2210
|
-
params_schema?: string;
|
|
2211
|
-
allow_charges?: boolean;
|
|
2233
|
+
interface ThesisAssetCandidatesResponse {
|
|
2234
|
+
mentions: ThesisAssetMention[];
|
|
2235
|
+
/** Null only from a server without the preview. */
|
|
2236
|
+
returnPreview: ThesisReturnPreview | null;
|
|
2212
2237
|
}
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
/**
|
|
2220
|
-
* Run invocations of this function under a restricted service-account
|
|
2221
|
-
* identity (an SA id owned by the caller) instead of the owner (#602).
|
|
2222
|
-
* Omitted ⇒ runs as the owner. A string: SA ids are snowflake int64s that
|
|
2223
|
-
* overflow JS number precision.
|
|
2224
|
-
*/
|
|
2225
|
-
run_as_user_id?: string;
|
|
2238
|
+
/** Canonical server-supported candidate rewrite operation. */
|
|
2239
|
+
type ThesisRewriteMode = 'reformat' | 'shorten' | 'enrich';
|
|
2240
|
+
interface ThesisMedia {
|
|
2241
|
+
type: 'image' | 'price_chart' | 'audio' | 'video';
|
|
2242
|
+
cover_url: string;
|
|
2243
|
+
url?: string | null;
|
|
2226
2244
|
}
|
|
2227
|
-
interface
|
|
2228
|
-
|
|
2245
|
+
interface Thesis {
|
|
2246
|
+
id: ThesisID;
|
|
2247
|
+
author_version_id: ThesisID;
|
|
2248
|
+
material_version_id: ThesisID;
|
|
2249
|
+
title: string;
|
|
2250
|
+
body: string;
|
|
2251
|
+
entity_ids: ThesisID[];
|
|
2252
|
+
entity_stances?: ThesisEntityStance[];
|
|
2253
|
+
visibility: ThesisVisibility;
|
|
2254
|
+
medias?: ThesisMedia[];
|
|
2255
|
+
closed: boolean;
|
|
2256
|
+
closing_note: string;
|
|
2257
|
+
author_kind: string;
|
|
2258
|
+
author_ref: string;
|
|
2259
|
+
archived: boolean;
|
|
2260
|
+
version_archived?: boolean;
|
|
2261
|
+
note?: string;
|
|
2262
|
+
/** `initial` for a Thesis's first publication, `material` for an Update. */
|
|
2263
|
+
change_kind?: string;
|
|
2229
2264
|
}
|
|
2230
|
-
interface
|
|
2231
|
-
|
|
2265
|
+
interface ThesisResponse {
|
|
2266
|
+
thesis: Thesis;
|
|
2232
2267
|
}
|
|
2233
|
-
interface
|
|
2234
|
-
|
|
2268
|
+
interface ThesisAuthor {
|
|
2269
|
+
id: ThesisID;
|
|
2270
|
+
kind: string;
|
|
2271
|
+
display_name: string;
|
|
2272
|
+
avatar_url: string;
|
|
2273
|
+
username: string;
|
|
2235
2274
|
}
|
|
2236
|
-
interface
|
|
2237
|
-
|
|
2238
|
-
|
|
2275
|
+
interface ThesisEntity {
|
|
2276
|
+
id: ThesisID;
|
|
2277
|
+
ticker: string;
|
|
2278
|
+
name: string;
|
|
2279
|
+
icon_url: string;
|
|
2280
|
+
kind: string;
|
|
2239
2281
|
}
|
|
2240
|
-
interface
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
parameters?: unknown;
|
|
2282
|
+
interface ThesisGetResponse extends ThesisResponse {
|
|
2283
|
+
author: ThesisAuthor;
|
|
2284
|
+
entities: ThesisEntity[];
|
|
2244
2285
|
}
|
|
2245
|
-
interface
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2286
|
+
interface ThesisResearchStatus {
|
|
2287
|
+
state: string;
|
|
2288
|
+
pending_work: number;
|
|
2289
|
+
read_complete: boolean;
|
|
2290
|
+
last_attempt_ms?: number;
|
|
2291
|
+
last_completed_ms?: number;
|
|
2251
2292
|
}
|
|
2252
|
-
interface
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
amount: number;
|
|
2257
|
-
used: number;
|
|
2258
|
-
remaining: number;
|
|
2259
|
-
created_at_ms?: number;
|
|
2260
|
-
updated_at_ms?: number;
|
|
2293
|
+
interface ThesisSignalEvidenceExcerpt {
|
|
2294
|
+
text: string;
|
|
2295
|
+
omitted_before: boolean;
|
|
2296
|
+
omitted_after: boolean;
|
|
2261
2297
|
}
|
|
2262
|
-
interface
|
|
2263
|
-
|
|
2298
|
+
interface ThesisSignalSource {
|
|
2299
|
+
title: string;
|
|
2300
|
+
url?: string;
|
|
2301
|
+
published_at_ms?: number;
|
|
2264
2302
|
}
|
|
2265
|
-
interface
|
|
2266
|
-
|
|
2303
|
+
interface ThesisSignal {
|
|
2304
|
+
id: ThesisID;
|
|
2305
|
+
thesis_id: ThesisID;
|
|
2306
|
+
author_version_id: ThesisID;
|
|
2307
|
+
statement_snapshot: string;
|
|
2308
|
+
stance: string;
|
|
2309
|
+
explanation: string;
|
|
2310
|
+
information_kind: string;
|
|
2311
|
+
evidence_excerpt?: ThesisSignalEvidenceExcerpt;
|
|
2312
|
+
source: ThesisSignalSource;
|
|
2267
2313
|
}
|
|
2268
|
-
interface
|
|
2269
|
-
|
|
2270
|
-
|
|
2314
|
+
interface ThesisSignalEntry {
|
|
2315
|
+
feed_entry_id: ThesisID;
|
|
2316
|
+
cursor: string;
|
|
2317
|
+
signal: ThesisSignal;
|
|
2271
2318
|
}
|
|
2272
|
-
interface
|
|
2273
|
-
|
|
2319
|
+
interface ListThesisSignalsParams {
|
|
2320
|
+
first?: number;
|
|
2321
|
+
cursor?: string;
|
|
2274
2322
|
}
|
|
2275
|
-
interface
|
|
2276
|
-
|
|
2323
|
+
interface ThesisSignalsResponse {
|
|
2324
|
+
research: ThesisResearchStatus;
|
|
2325
|
+
entries: ThesisSignalEntry[];
|
|
2326
|
+
next_cursor: string;
|
|
2277
2327
|
}
|
|
2278
|
-
interface
|
|
2279
|
-
|
|
2328
|
+
interface CreateThesisParams {
|
|
2329
|
+
/** Public images already uploaded with the existing upload tool, in display order. */
|
|
2330
|
+
images?: string[];
|
|
2331
|
+
/** Caller-supplied, stable non-zero UUID. Reuse it only to resolve ambiguity. */
|
|
2332
|
+
request_id: string;
|
|
2333
|
+
body: string;
|
|
2334
|
+
title?: string;
|
|
2335
|
+
entity_ids?: ThesisID[];
|
|
2336
|
+
/** Author direction keyed by an entity ID also supplied in entity_ids. */
|
|
2337
|
+
entity_stances?: ThesisEntityStance[];
|
|
2338
|
+
/** Exact STOCK ticker symbols resolved by Backend during creation. */
|
|
2339
|
+
tickers?: string[];
|
|
2340
|
+
/** Omitted means public, as defined by the REST contract. */
|
|
2341
|
+
visibility?: 'public' | 'private';
|
|
2342
|
+
/** Thesis return switch; omitted keeps the default (on). */
|
|
2343
|
+
track_return?: boolean;
|
|
2344
|
+
/** Which Signals the Thesis shows; omitted shows every Signal. */
|
|
2345
|
+
signal_preferences?: ThesisSignalPreferences;
|
|
2280
2346
|
}
|
|
2347
|
+
/** What a Thesis Signal is about. */
|
|
2348
|
+
type ThesisSignalKind = 'fundamentals' | 'macro' | 'technicals' | 'commentary';
|
|
2349
|
+
/** The least important Signals a Thesis shows; notable means notable and major. */
|
|
2350
|
+
type ThesisSignalMinImportance = 'all' | 'notable' | 'major';
|
|
2281
2351
|
/**
|
|
2282
|
-
*
|
|
2283
|
-
*
|
|
2352
|
+
* Which Signals a Thesis shows to every reader, chosen by its author. Signals
|
|
2353
|
+
* without a label always show.
|
|
2284
2354
|
*/
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
register(params: RegisterFunctionParams): Promise<RegisterFunctionResponse>;
|
|
2289
|
-
list(params: ListFunctionsParams): Promise<ListFunctionsResponse>;
|
|
2290
|
-
delete(params: DeleteFunctionParams): Promise<void>;
|
|
2291
|
-
invoke<TResult = unknown>(params: InvokeFunctionParams): Promise<InvokeFunctionResponse<TResult>>;
|
|
2292
|
-
getAllowance(params: GetAllowanceParams): Promise<CreditAllowance | null>;
|
|
2293
|
-
listAllowances(): Promise<ListAllowancesResponse>;
|
|
2294
|
-
createAllowance(params: CreateAllowanceParams): Promise<CreateAllowanceResponse>;
|
|
2295
|
-
revokeAllowance(params: RevokeAllowanceParams): Promise<RevokeAllowanceResponse>;
|
|
2355
|
+
interface ThesisSignalPreferences {
|
|
2356
|
+
kinds: ThesisSignalKind[];
|
|
2357
|
+
min_importance: ThesisSignalMinImportance;
|
|
2296
2358
|
}
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
wallet(): Promise<CreditWallet>;
|
|
2302
|
-
items(params: CreditWalletItemsParams): Promise<CreditWalletItemsResponse>;
|
|
2303
|
-
private graphql;
|
|
2359
|
+
interface ThesisSignalPreferencesResponse {
|
|
2360
|
+
/** The Thesis read or written; null for the caller's last choice. */
|
|
2361
|
+
thesis_id: ThesisID | null;
|
|
2362
|
+
preferences: ThesisSignalPreferences;
|
|
2304
2363
|
}
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2364
|
+
interface UpdateThesisParams {
|
|
2365
|
+
/** Full media replacement; pass current medias for a text-only update. */
|
|
2366
|
+
medias?: ThesisMedia[];
|
|
2367
|
+
/** Caller-supplied, stable non-zero UUID. Reuse it only to resolve ambiguity. */
|
|
2368
|
+
request_id: string;
|
|
2369
|
+
expected_author_version_id: ThesisID;
|
|
2370
|
+
body: string;
|
|
2371
|
+
title?: string;
|
|
2372
|
+
entity_ids?: ThesisID[];
|
|
2373
|
+
/** Full replacement: resubmit existing directions when only editing the body. */
|
|
2374
|
+
entity_stances?: ThesisEntityStance[];
|
|
2375
|
+
/** Required so an update cannot inadvertently publish a private thesis. */
|
|
2376
|
+
visibility: ThesisVisibility;
|
|
2377
|
+
archived?: boolean;
|
|
2378
|
+
note?: string;
|
|
2379
|
+
/** Thesis return switch; omitted keeps the current decision or default. */
|
|
2380
|
+
track_return?: boolean;
|
|
2316
2381
|
}
|
|
2317
|
-
interface
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2382
|
+
interface SetThesisArchivedParams {
|
|
2383
|
+
/** Caller-supplied, stable non-zero UUID for this archive transition. */
|
|
2384
|
+
request_id: string;
|
|
2385
|
+
archived: boolean;
|
|
2386
|
+
note?: string;
|
|
2321
2387
|
}
|
|
2322
|
-
interface
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2388
|
+
interface ThesisStarredResponse {
|
|
2389
|
+
thesis_id: ThesisID;
|
|
2390
|
+
star_count: number;
|
|
2391
|
+
is_starred: boolean;
|
|
2326
2392
|
}
|
|
2327
|
-
interface
|
|
2328
|
-
|
|
2329
|
-
|
|
2393
|
+
interface ThesisSignalEnabledResponse {
|
|
2394
|
+
thesis_id: ThesisID;
|
|
2395
|
+
author_version_id: ThesisID;
|
|
2396
|
+
archived: boolean;
|
|
2397
|
+
research_paused: boolean;
|
|
2398
|
+
enabled: boolean;
|
|
2330
2399
|
}
|
|
2331
|
-
interface
|
|
2332
|
-
|
|
2333
|
-
current: CompanyNarrative | null;
|
|
2334
|
-
history: CompanyNarrativeHistory | null;
|
|
2400
|
+
interface SetThesisVisibilityParams {
|
|
2401
|
+
visibility: 'public' | 'private';
|
|
2335
2402
|
}
|
|
2336
|
-
interface
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
fiscalDateEnding: string;
|
|
2341
|
-
earningsDate: string;
|
|
2342
|
-
session: CompanyEarningsSession | null;
|
|
2343
|
-
status: CompanyEarningsStatus;
|
|
2344
|
-
isDefault: boolean;
|
|
2403
|
+
interface RewriteThesisParams {
|
|
2404
|
+
body: string;
|
|
2405
|
+
/** Omitted selects the canonical `reformat` mode. */
|
|
2406
|
+
mode?: ThesisRewriteMode;
|
|
2345
2407
|
}
|
|
2346
|
-
interface
|
|
2347
|
-
|
|
2348
|
-
defaultPeriod: CompanyEarningsPeriod | null;
|
|
2349
|
-
unresolvedEventCount: number;
|
|
2408
|
+
interface RewriteThesisResponse {
|
|
2409
|
+
body: string;
|
|
2350
2410
|
}
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2411
|
+
/**
|
|
2412
|
+
* Thesis CRUD and explicit text rewriting. This resource never retries,
|
|
2413
|
+
* starts Signal/Alert setup, or invokes rewrite as a side effect of CRUD.
|
|
2414
|
+
*/
|
|
2415
|
+
declare class ThesesResource {
|
|
2416
|
+
private client;
|
|
2417
|
+
constructor(client: AlvaClient);
|
|
2418
|
+
/** One visible page; no automatic pagination or content truncation. */
|
|
2419
|
+
list(params: ListThesesParams): Promise<ThesisListPage>;
|
|
2420
|
+
/** Related publications always use the current source version. */
|
|
2421
|
+
related(id: ThesisID, params?: ThesisPageParams): Promise<RelatedThesesPage>;
|
|
2422
|
+
assetCandidates(text: string, params?: ThesisAssetCandidatesParams): Promise<ThesisAssetCandidatesResponse>;
|
|
2423
|
+
/** The Thesis return of a Playbook's current publication; detail revalues it. */
|
|
2424
|
+
thesisReturn(id: ThesisID, params?: ThesisReturnParams): Promise<ThesisReturnResult>;
|
|
2425
|
+
/**
|
|
2426
|
+
* List every watchpoint of a Thesis (its current set, in number order): the
|
|
2427
|
+
* things the Thesis depends on, or that would show it right or wrong.
|
|
2428
|
+
*/
|
|
2429
|
+
watchpoints(id: ThesisID): Promise<ThesisWatchpointsResult>;
|
|
2430
|
+
create(params: CreateThesisParams): Promise<ThesisResponse>;
|
|
2431
|
+
get(id: ThesisID): Promise<ThesisGetResponse>;
|
|
2432
|
+
getVersion(id: ThesisID, authorVersionID: ThesisID): Promise<ThesisResponse>;
|
|
2433
|
+
/** Lists reader-visible Updates, with editorial revisions folded together. */
|
|
2434
|
+
listUpdates(id: ThesisID, params?: {
|
|
2435
|
+
first?: number;
|
|
2436
|
+
cursor?: string;
|
|
2437
|
+
}): Promise<{
|
|
2438
|
+
versions: Thesis[];
|
|
2439
|
+
next_cursor: string;
|
|
2440
|
+
}>;
|
|
2441
|
+
signals(id: ThesisID, params?: ListThesisSignalsParams): Promise<ThesisSignalsResponse>;
|
|
2442
|
+
update(id: ThesisID, params: UpdateThesisParams): Promise<ThesisResponse>;
|
|
2443
|
+
/**
|
|
2444
|
+
* Archive or unarchive the current version without asking callers to resend
|
|
2445
|
+
* its body. Unarchiving publishes the current content as a new Update; an
|
|
2446
|
+
* archived Thesis takes no other Update.
|
|
2447
|
+
*/
|
|
2448
|
+
setArchived(id: ThesisID, params: SetThesisArchivedParams): Promise<ThesisResponse>;
|
|
2449
|
+
setStarred(id: ThesisID, isStarred: boolean): Promise<ThesisStarredResponse>;
|
|
2450
|
+
/**
|
|
2451
|
+
* Reads which Signals one of the caller's Theses shows: its setting, or every
|
|
2452
|
+
* kind and `all` when it has none. Without an id, reads the setting the caller
|
|
2453
|
+
* last saved, which prefills a new Thesis. Only the Thesis's author can read it.
|
|
2454
|
+
*/
|
|
2455
|
+
getSignalPreferences(id?: ThesisID): Promise<ThesisSignalPreferencesResponse>;
|
|
2456
|
+
/**
|
|
2457
|
+
* Replaces which Signals one of the caller's Theses shows, for every reader,
|
|
2458
|
+
* and records it as the caller's last choice. Author only.
|
|
2459
|
+
*/
|
|
2460
|
+
setSignalPreferences(id: ThesisID, preferences: ThesisSignalPreferences): Promise<ThesisSignalPreferencesResponse>;
|
|
2461
|
+
setSignalEnabled(id: ThesisID, enabled: boolean): Promise<ThesisSignalEnabledResponse>;
|
|
2462
|
+
setVisibility(id: ThesisID, params: SetThesisVisibilityParams): Promise<ThesisResponse>;
|
|
2463
|
+
rewrite(params: RewriteThesisParams): Promise<RewriteThesisResponse>;
|
|
2368
2464
|
}
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2465
|
+
|
|
2466
|
+
/** Market entity kinds that can be added to the watchlist. */
|
|
2467
|
+
type WatchlistTickerKind = 'STOCK' | 'ETF' | 'CRYPTO';
|
|
2468
|
+
/** Public profile kinds: USER is an Alva user, PERSON a curated person. */
|
|
2469
|
+
type FollowProfileKind = 'USER' | 'PERSON';
|
|
2470
|
+
/** One requested symbol with an optional kind for just that symbol. */
|
|
2471
|
+
interface WatchlistTickerSpec {
|
|
2472
|
+
ticker: string;
|
|
2473
|
+
kind?: WatchlistTickerKind;
|
|
2373
2474
|
}
|
|
2374
|
-
interface
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2475
|
+
interface WatchlistTickersParams {
|
|
2476
|
+
/**
|
|
2477
|
+
* 1-50 ticker symbols, matched exactly (case-insensitive). A spec's own
|
|
2478
|
+
* kind overrides `kind`, so one call can mix kinds (NVDA and BTC:crypto).
|
|
2479
|
+
*/
|
|
2480
|
+
tickers: Array<string | WatchlistTickerSpec>;
|
|
2481
|
+
/** Default kind for tickers without their own kind. */
|
|
2482
|
+
kind?: WatchlistTickerKind;
|
|
2378
2483
|
}
|
|
2379
|
-
interface
|
|
2484
|
+
interface ResolvedTicker {
|
|
2485
|
+
/** The symbol as the caller supplied it, normalized to upper case. */
|
|
2486
|
+
input: string;
|
|
2487
|
+
entityId: string;
|
|
2488
|
+
ticker: string;
|
|
2380
2489
|
name: string;
|
|
2381
|
-
|
|
2490
|
+
kind: string;
|
|
2382
2491
|
}
|
|
2383
|
-
interface
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2492
|
+
interface UnresolvedTicker {
|
|
2493
|
+
input: string;
|
|
2494
|
+
/** The kind the lookup was restricted to, when one was given. */
|
|
2495
|
+
kind?: WatchlistTickerKind;
|
|
2496
|
+
/** NOT_FOUND or FAILED_PRECONDITION (several entities share the symbol). */
|
|
2497
|
+
code: string;
|
|
2498
|
+
message: string;
|
|
2388
2499
|
}
|
|
2389
|
-
interface
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
openingQuoteSpeaker: string | null;
|
|
2396
|
-
openingQuoteTitle: string | null;
|
|
2397
|
-
openingQuoteNote: string | null;
|
|
2398
|
-
buriedSignals: string[];
|
|
2399
|
-
whatYouShouldKnow: string[];
|
|
2400
|
-
consensusN: number | null;
|
|
2401
|
-
consensusObservedAt: string | null;
|
|
2500
|
+
interface AddToWatchlistResult {
|
|
2501
|
+
/** Tickers newly added to the watchlist by this call. */
|
|
2502
|
+
added: ResolvedTicker[];
|
|
2503
|
+
/** Tickers already in the watchlist; nothing was written for them. */
|
|
2504
|
+
unchanged: ResolvedTicker[];
|
|
2505
|
+
unresolved: UnresolvedTicker[];
|
|
2402
2506
|
}
|
|
2403
|
-
interface
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2507
|
+
interface RemoveFromWatchlistResult {
|
|
2508
|
+
/** Tickers removed from the watchlist by this call. */
|
|
2509
|
+
removed: ResolvedTicker[];
|
|
2510
|
+
/**
|
|
2511
|
+
* Tickers that were not in the watchlist. The removal is still recorded, so
|
|
2512
|
+
* holdings sync will not add them later.
|
|
2513
|
+
*/
|
|
2514
|
+
unchanged: ResolvedTicker[];
|
|
2515
|
+
unresolved: UnresolvedTicker[];
|
|
2410
2516
|
}
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
fiscalYear?: never;
|
|
2415
|
-
fiscalQuarter?: never;
|
|
2416
|
-
} | {
|
|
2417
|
-
ticker: string;
|
|
2418
|
-
event?: never;
|
|
2419
|
-
fiscalYear: number;
|
|
2420
|
-
fiscalQuarter: CompanyFiscalQuarter;
|
|
2421
|
-
};
|
|
2422
|
-
declare class MarketsResource {
|
|
2423
|
-
private client;
|
|
2424
|
-
constructor(client: AlvaClient);
|
|
2425
|
-
narrative(ticker: string): Promise<CompanyNarrativeContext>;
|
|
2426
|
-
earningsPeriods(ticker: string): Promise<CompanyEarningsCatalog>;
|
|
2427
|
-
earnings(params: CompanyEarningsParams): Promise<CompanyEarningsContext>;
|
|
2428
|
-
private selectPeriod;
|
|
2429
|
-
private notFound;
|
|
2430
|
-
private graphql;
|
|
2517
|
+
interface FollowPageParams {
|
|
2518
|
+
first?: number;
|
|
2519
|
+
after?: string;
|
|
2431
2520
|
}
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
type AgentScheduleRule = {
|
|
2436
|
-
kind: 'at';
|
|
2437
|
-
timestamp: string;
|
|
2438
|
-
} | {
|
|
2439
|
-
kind: 'every';
|
|
2440
|
-
interval: string;
|
|
2441
|
-
} | {
|
|
2442
|
-
kind: 'cron';
|
|
2443
|
-
expression: string;
|
|
2444
|
-
timezone: string;
|
|
2445
|
-
};
|
|
2446
|
-
interface AgentScheduleBounds {
|
|
2447
|
-
startsAt?: string;
|
|
2448
|
-
until?: string;
|
|
2449
|
-
maxOccurrences?: number;
|
|
2450
|
-
}
|
|
2451
|
-
interface AgentSchedule {
|
|
2452
|
-
name: string;
|
|
2453
|
-
rule: AgentScheduleRule;
|
|
2454
|
-
bounds: AgentScheduleBounds;
|
|
2455
|
-
text: string;
|
|
2456
|
-
status: AgentScheduleStatus;
|
|
2457
|
-
failure?: {
|
|
2458
|
-
code: AgentScheduleFailureCode;
|
|
2459
|
-
at?: string;
|
|
2460
|
-
};
|
|
2461
|
-
occurrencesUsed: number;
|
|
2462
|
-
nextFireAt?: string;
|
|
2463
|
-
createdAt: string;
|
|
2464
|
-
updatedAt: string;
|
|
2521
|
+
interface FollowPageInfo {
|
|
2522
|
+
endCursor: string;
|
|
2523
|
+
hasNextPage: boolean;
|
|
2465
2524
|
}
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
} | {
|
|
2470
|
-
inboxPath: string;
|
|
2471
|
-
channelId?: never;
|
|
2472
|
-
};
|
|
2473
|
-
type PutAgentScheduleParams = AgentScheduleTarget & {
|
|
2474
|
-
name: string;
|
|
2475
|
-
rule: AgentScheduleRule | {
|
|
2476
|
-
kind: 'after';
|
|
2477
|
-
duration: string;
|
|
2478
|
-
};
|
|
2479
|
-
bounds?: AgentScheduleBounds;
|
|
2480
|
-
text: string;
|
|
2481
|
-
};
|
|
2482
|
-
type ManageAgentScheduleParams = AgentScheduleTarget & {
|
|
2525
|
+
interface WatchlistTicker {
|
|
2526
|
+
entityId: string;
|
|
2527
|
+
ticker: string;
|
|
2483
2528
|
name: string;
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
private client;
|
|
2487
|
-
constructor(client: AlvaClient);
|
|
2488
|
-
list(params: AgentScheduleTarget): Promise<AgentSchedule[]>;
|
|
2489
|
-
put(params: PutAgentScheduleParams): Promise<AgentSchedule>;
|
|
2490
|
-
pause(params: ManageAgentScheduleParams): Promise<AgentSchedule>;
|
|
2491
|
-
resume(params: ManageAgentScheduleParams): Promise<AgentSchedule>;
|
|
2492
|
-
delete(params: ManageAgentScheduleParams): Promise<void>;
|
|
2493
|
-
/** Resolve the authenticated viewer's unique Agent Channel for CLI defaults. */
|
|
2494
|
-
agentChannelId(): Promise<string>;
|
|
2495
|
-
private manage;
|
|
2496
|
-
private update;
|
|
2497
|
-
private graphql;
|
|
2498
|
-
}
|
|
2499
|
-
|
|
2500
|
-
/**
|
|
2501
|
-
* Push steward tool commands (mono-meta #935). Every call names the steward by
|
|
2502
|
-
* its own Session Inbox path, which the host supplies to the embedded `alva`
|
|
2503
|
-
* tool; the Backend resolves it to the caller's ready steward binding and
|
|
2504
|
-
* scopes every delivery to that binding's Channel.
|
|
2505
|
-
*/
|
|
2506
|
-
type StewardDecision = 'immediate' | 'digest' | 'suppress';
|
|
2507
|
-
interface StewardTarget {
|
|
2508
|
-
inboxPath: string;
|
|
2509
|
-
}
|
|
2510
|
-
interface StewardDecideParams extends StewardTarget {
|
|
2511
|
-
deliveryId: string;
|
|
2512
|
-
decision: StewardDecision;
|
|
2513
|
-
reason: string;
|
|
2529
|
+
kind: string;
|
|
2530
|
+
addedAtMs: number;
|
|
2514
2531
|
}
|
|
2515
|
-
interface
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2532
|
+
interface WatchlistPage {
|
|
2533
|
+
totalCount: number;
|
|
2534
|
+
tickers: WatchlistTicker[];
|
|
2535
|
+
pageInfo: FollowPageInfo;
|
|
2519
2536
|
}
|
|
2520
|
-
interface
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2537
|
+
interface FollowProfile {
|
|
2538
|
+
kind: FollowProfileKind;
|
|
2539
|
+
id: string;
|
|
2540
|
+
displayName: string;
|
|
2541
|
+
/** Alva username; USER profiles only. */
|
|
2542
|
+
username?: string;
|
|
2543
|
+
/** URL slug; PERSON profiles only. */
|
|
2544
|
+
slug?: string;
|
|
2545
|
+
/** X handle without "@"; PERSON profiles only, null when absent. */
|
|
2546
|
+
xHandle?: string | null;
|
|
2547
|
+
followersCount: number;
|
|
2548
|
+
/** Whether the caller follows this profile; null when unknown. */
|
|
2549
|
+
following: boolean | null;
|
|
2525
2550
|
}
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
after?: string;
|
|
2530
|
-
/** First page only: lower bound on decision time. */
|
|
2531
|
-
sinceMs?: number;
|
|
2532
|
-
/** First page only: fixed upper bound of the Brief window (the digest_request's untilMs). */
|
|
2533
|
-
untilMs?: number;
|
|
2551
|
+
interface SearchProfilesParams {
|
|
2552
|
+
query: string;
|
|
2553
|
+
kind?: FollowProfileKind;
|
|
2534
2554
|
first?: number;
|
|
2535
2555
|
}
|
|
2536
|
-
interface
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
}
|
|
2540
|
-
type StewardPendingFullParams = Omit<StewardPendingParams, 'after'> & {
|
|
2541
|
-
after?: undefined;
|
|
2542
|
-
};
|
|
2543
|
-
interface StewardBriefedParams extends StewardTarget {
|
|
2544
|
-
deliveryIds: string[];
|
|
2545
|
-
digestRunId: string;
|
|
2546
|
-
}
|
|
2547
|
-
interface StewardDigestRunParams extends StewardTarget {
|
|
2548
|
-
digestRunId: string;
|
|
2549
|
-
}
|
|
2550
|
-
interface StewardSendDigestRunParams extends StewardDigestRunParams {
|
|
2551
|
-
/** Exact reviewed coverage; omit or pass [] for a For-You-only Brief. */
|
|
2552
|
-
deliveryIds?: string[];
|
|
2553
|
-
/** Omit when complete reviewed coverage produces no useful Brief content. */
|
|
2554
|
-
body?: string;
|
|
2556
|
+
interface ProfileRefParams {
|
|
2557
|
+
kind: FollowProfileKind;
|
|
2558
|
+
id: string;
|
|
2555
2559
|
}
|
|
2556
|
-
interface
|
|
2557
|
-
|
|
2560
|
+
interface FollowedProfilesParams extends FollowPageParams {
|
|
2561
|
+
kind?: FollowProfileKind;
|
|
2558
2562
|
}
|
|
2559
|
-
interface
|
|
2560
|
-
|
|
2561
|
-
|
|
2563
|
+
interface ProfilesPage {
|
|
2564
|
+
profiles: FollowProfile[];
|
|
2565
|
+
pageInfo: FollowPageInfo;
|
|
2562
2566
|
}
|
|
2563
|
-
interface
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
+
interface FollowingThesesParams {
|
|
2568
|
+
/** The previous page's `next_cursor`; omitted starts 24 hours back. */
|
|
2569
|
+
cursor?: string;
|
|
2570
|
+
/** 1-100; omitted reads 20. */
|
|
2571
|
+
first?: number;
|
|
2567
2572
|
}
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
};
|
|
2575
|
-
decisionReason: string;
|
|
2576
|
-
consumedAtMs: number;
|
|
2577
|
-
alertSnapshot?: string | null;
|
|
2573
|
+
/** The author of a Thesis in the following feed. */
|
|
2574
|
+
/** The followed user who wrote a Thesis Update. Persons cannot be followed. */
|
|
2575
|
+
interface FollowingThesisAuthor {
|
|
2576
|
+
kind: 'user';
|
|
2577
|
+
username: string;
|
|
2578
|
+
display_name: string;
|
|
2578
2579
|
}
|
|
2579
|
-
interface
|
|
2580
|
-
|
|
2581
|
-
/**
|
|
2582
|
-
|
|
2583
|
-
/** The window every page of this Brief was read with. */
|
|
2584
|
-
windowSinceMs: number;
|
|
2585
|
-
windowUntilMs: number;
|
|
2580
|
+
interface FollowingThesisItem {
|
|
2581
|
+
thesis: Thesis;
|
|
2582
|
+
/** Null when the author's profile could not be read. */
|
|
2583
|
+
author: FollowingThesisAuthor | null;
|
|
2586
2584
|
}
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2585
|
+
/**
|
|
2586
|
+
* Thesis Updates by the profiles the caller follows, oldest arrival first.
|
|
2587
|
+
* `next_cursor` is always set: pass it back as `cursor`, also after an empty
|
|
2588
|
+
* page, and page on while `has_more`.
|
|
2589
|
+
*/
|
|
2590
|
+
interface FollowingThesesPage {
|
|
2591
|
+
items: FollowingThesisItem[];
|
|
2592
|
+
next_cursor: string;
|
|
2593
|
+
has_more: boolean;
|
|
2592
2594
|
}
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
state: StewardDigestRunState;
|
|
2597
|
-
scheduleId: string;
|
|
2598
|
-
scheduleVersion: number;
|
|
2599
|
-
occurrenceIndex: number;
|
|
2600
|
-
windowSinceMs: number;
|
|
2601
|
-
windowUntilMs: number;
|
|
2602
|
-
scanCompletedAtMs?: number | null;
|
|
2603
|
-
bodySha256?: string | null;
|
|
2604
|
-
coverageSha256?: string | null;
|
|
2605
|
-
channelMessageId?: string | null;
|
|
2606
|
-
attempts: number;
|
|
2607
|
-
lastError: string;
|
|
2608
|
-
startedAtMs?: number | null;
|
|
2609
|
-
completedAtMs?: number | null;
|
|
2610
|
-
sendUncertainAtMs?: number | null;
|
|
2595
|
+
interface ProfileFollowResult {
|
|
2596
|
+
following: boolean;
|
|
2597
|
+
profile: FollowProfile | null;
|
|
2611
2598
|
}
|
|
2612
|
-
|
|
2599
|
+
/**
|
|
2600
|
+
* The Alva App's ticker watchlist (add/remove) and people follows (Alva users
|
|
2601
|
+
* and curated people). Gateway stores watchlist entries as ticker follows.
|
|
2602
|
+
* Playbook follows stay in `client.subscriptions`; Thesis bookmarks are
|
|
2603
|
+
* Thesis star/unstar. The user always comes from the API key; there is no
|
|
2604
|
+
* identity override.
|
|
2605
|
+
*/
|
|
2606
|
+
declare class FollowsResource {
|
|
2613
2607
|
private client;
|
|
2614
2608
|
constructor(client: AlvaClient);
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2609
|
+
/** Add tickers to the watchlist by exact symbol in one atomic batch. */
|
|
2610
|
+
addToWatchlist(params: WatchlistTickersParams): Promise<AddToWatchlistResult>;
|
|
2611
|
+
/** Remove tickers from the watchlist by exact symbol in one atomic batch. */
|
|
2612
|
+
removeFromWatchlist(params: WatchlistTickersParams): Promise<RemoveFromWatchlistResult>;
|
|
2613
|
+
/** One page of the watchlist, most recently added first. */
|
|
2614
|
+
watchlist(params?: FollowPageParams): Promise<WatchlistPage>;
|
|
2615
|
+
/** Search public profiles (Alva users and curated people). */
|
|
2616
|
+
searchProfiles(params: SearchProfilesParams): Promise<ProfilesPage>;
|
|
2617
|
+
/** One page of profiles the caller follows. */
|
|
2618
|
+
profiles(params?: FollowedProfilesParams): Promise<ProfilesPage>;
|
|
2619
|
+
/**
|
|
2620
|
+
* Thesis Updates by the profiles the caller follows, in the order they
|
|
2621
|
+
* reached Alva. Keep `next_cursor` to read only what is new next time.
|
|
2622
|
+
*/
|
|
2623
|
+
theses(params?: FollowingThesesParams): Promise<FollowingThesesPage>;
|
|
2624
|
+
/** Follow one profile. Idempotent. */
|
|
2625
|
+
followProfile(params: ProfileRefParams): Promise<ProfileFollowResult>;
|
|
2626
|
+
/** Unfollow one profile. Idempotent. */
|
|
2627
|
+
unfollowProfile(params: ProfileRefParams): Promise<ProfileFollowResult>;
|
|
2628
|
+
private profilesPage;
|
|
2629
|
+
private changeProfile;
|
|
2630
|
+
private changeWatchlist;
|
|
2631
|
+
private lookupTickers;
|
|
2632
|
+
private lookupTicker;
|
|
2632
2633
|
}
|
|
2633
2634
|
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
market?: string;
|
|
2651
|
-
instrumentType?: string;
|
|
2652
|
-
underlyingType?: string;
|
|
2653
|
-
quote?: string;
|
|
2654
|
-
limit?: number;
|
|
2635
|
+
/**
|
|
2636
|
+
* Product-facing alert API. The current transport still calls the legacy
|
|
2637
|
+
* subscription and notification-history endpoints.
|
|
2638
|
+
*/
|
|
2639
|
+
declare class AlertsResource {
|
|
2640
|
+
private client;
|
|
2641
|
+
constructor(client: AlvaClient);
|
|
2642
|
+
list(params?: PushSubscriptionListParams): Promise<PushSubscriptionListResponse>;
|
|
2643
|
+
follows(params?: FollowsListParams): Promise<FollowsListResponse>;
|
|
2644
|
+
enableAutomation(params: SubscribeFeedParams): Promise<SubscribeFeedResponse>;
|
|
2645
|
+
disableAutomation(params: PushSubscriptionFeedParams): Promise<UnsubscribeResponse>;
|
|
2646
|
+
enableBatch(params: SubscribeBatchParams): Promise<SubscribeBatchResponse>;
|
|
2647
|
+
disableBatch(params: UnsubscribeBatchParams): Promise<UnsubscribeBatchResponse>;
|
|
2648
|
+
historyAutomation(params: NotificationListParams): Promise<FeedNotificationListResponse>;
|
|
2649
|
+
preferences(): Promise<NotificationPreferencesResponse>;
|
|
2650
|
+
updatePreference(params: NotificationPreferenceUpdateParams): Promise<NotificationPreferenceUpdateResponse>;
|
|
2655
2651
|
}
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2652
|
+
|
|
2653
|
+
/**
|
|
2654
|
+
* Group push subscriptions for an external channel session.
|
|
2655
|
+
*
|
|
2656
|
+
* These APIs subscribe the Telegram/Discord group attached to `session_id`
|
|
2657
|
+
* to feed push events the group admin may read. Mutations are idempotent no-ops
|
|
2658
|
+
* unless the authenticated caller is that group's Alva admin.
|
|
2659
|
+
*/
|
|
2660
|
+
declare class ChannelGroupSubscriptionsResource {
|
|
2661
|
+
private client;
|
|
2662
|
+
constructor(client: AlvaClient);
|
|
2663
|
+
context(params: ChannelGroupSubscriptionSessionParams): Promise<ChannelGroupSubscriptionContextResponse>;
|
|
2664
|
+
list(params: ChannelGroupSubscriptionSessionParams): Promise<ChannelGroupSubscriptionListResponse>;
|
|
2665
|
+
subscribe(params: ChannelGroupSubscriptionMutationParams): Promise<ChannelGroupSubscriptionMutationResponse>;
|
|
2666
|
+
unsubscribe(params: ChannelGroupSubscriptionMutationParams): Promise<ChannelGroupSubscriptionMutationResponse>;
|
|
2667
|
+
/**
|
|
2668
|
+
* Read a group's buffered chat messages in a time window, for the group-chat
|
|
2669
|
+
* digest automation. Admin-gated: the authenticated caller must be that
|
|
2670
|
+
* group's Alva admin (a digest feed runs as that admin). Each message carries
|
|
2671
|
+
* a `permalink` deep-link back to the original message for "jump to original".
|
|
2672
|
+
* `from_micros`/`to_micros` are message-origin timestamps in microseconds.
|
|
2673
|
+
*/
|
|
2674
|
+
getGroupChatHistory(params: ChannelGroupHistoryParams): Promise<ChannelGroupHistoryResponse>;
|
|
2660
2675
|
}
|
|
2661
|
-
|
|
2662
|
-
declare class
|
|
2676
|
+
|
|
2677
|
+
declare class FeedbackResource {
|
|
2663
2678
|
private client;
|
|
2664
2679
|
constructor(client: AlvaClient);
|
|
2665
|
-
|
|
2666
|
-
resolve(params: ({
|
|
2667
|
-
pair: string;
|
|
2668
|
-
} & TradingPairResolveFilters) | Omit<TradingPairSearchParams, 'limit'>): Promise<TradingPairCandidate>;
|
|
2680
|
+
submit(params: SubmitFeedbackRequest): Promise<SubmitFeedbackResponse>;
|
|
2669
2681
|
}
|
|
2670
2682
|
|
|
2671
|
-
interface
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2683
|
+
interface PlaybookFunction {
|
|
2684
|
+
id: string | number;
|
|
2685
|
+
playbook_id: string | number;
|
|
2686
|
+
function_name: string;
|
|
2687
|
+
entry_script_path: string;
|
|
2688
|
+
created_at?: string;
|
|
2689
|
+
updated_at?: string;
|
|
2690
|
+
disabled?: boolean;
|
|
2691
|
+
params_schema?: string;
|
|
2692
|
+
allow_charges?: boolean;
|
|
2676
2693
|
}
|
|
2677
|
-
interface
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2694
|
+
interface RegisterFunctionParams {
|
|
2695
|
+
playbook_id: number;
|
|
2696
|
+
function_name: string;
|
|
2697
|
+
entry_script_path: string;
|
|
2698
|
+
params_schema?: string;
|
|
2699
|
+
allow_charges?: boolean;
|
|
2700
|
+
/**
|
|
2701
|
+
* Run invocations of this function under a restricted service-account
|
|
2702
|
+
* identity (an SA id owned by the caller) instead of the owner (#602).
|
|
2703
|
+
* Omitted ⇒ runs as the owner. A string: SA ids are snowflake int64s that
|
|
2704
|
+
* overflow JS number precision.
|
|
2705
|
+
*/
|
|
2706
|
+
run_as_user_id?: string;
|
|
2689
2707
|
}
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
id: string;
|
|
2693
|
-
slug: string;
|
|
2694
|
-
displayName: string;
|
|
2695
|
-
bio: string;
|
|
2696
|
-
} | {
|
|
2697
|
-
__typename: 'PublicUser';
|
|
2698
|
-
id: string;
|
|
2699
|
-
username: string;
|
|
2700
|
-
displayName: string;
|
|
2701
|
-
bio: string;
|
|
2702
|
-
} | {
|
|
2703
|
-
__typename: 'Entity';
|
|
2704
|
-
id: string;
|
|
2705
|
-
ticker: string;
|
|
2706
|
-
name: string;
|
|
2707
|
-
kind: string;
|
|
2708
|
-
assetClass: string;
|
|
2709
|
-
venue: {
|
|
2710
|
-
id: string;
|
|
2711
|
-
name: string;
|
|
2712
|
-
} | null;
|
|
2713
|
-
};
|
|
2714
|
-
/**
|
|
2715
|
-
* `nextCursor` is the only continuation: pass it as `cursor`, and stop when it
|
|
2716
|
-
* is null. A page can be empty while `nextCursor` is still set.
|
|
2717
|
-
*/
|
|
2718
|
-
interface ThesisListPage {
|
|
2719
|
-
scope: ThesisReadScope;
|
|
2720
|
-
edges: {
|
|
2721
|
-
cursor: string;
|
|
2722
|
-
node: {
|
|
2723
|
-
/** Internal ID accepted by get/version/signals/related. */
|
|
2724
|
-
playbookId: string;
|
|
2725
|
-
/** Null when the author list has no readable publication snapshot. */
|
|
2726
|
-
publication: ThesisPublicationSummary | null;
|
|
2727
|
-
};
|
|
2728
|
-
}[];
|
|
2729
|
-
nextCursor: string | null;
|
|
2708
|
+
interface RegisterFunctionResponse {
|
|
2709
|
+
function?: PlaybookFunction;
|
|
2730
2710
|
}
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
/** GENERATING and FAILED carry no matches; READY with no edges means none. */
|
|
2734
|
-
state: 'GENERATING' | 'READY' | 'FAILED';
|
|
2735
|
-
edges: {
|
|
2736
|
-
cursor: string;
|
|
2737
|
-
node: {
|
|
2738
|
-
itemKey: string;
|
|
2739
|
-
/** Relatedness, not quality or support. */
|
|
2740
|
-
score: number;
|
|
2741
|
-
publication: ThesisPublicationSummary;
|
|
2742
|
-
};
|
|
2743
|
-
}[];
|
|
2744
|
-
nextCursor: string | null;
|
|
2711
|
+
interface ListFunctionsParams {
|
|
2712
|
+
playbook_id: number;
|
|
2745
2713
|
}
|
|
2746
|
-
interface
|
|
2747
|
-
|
|
2748
|
-
detail?: boolean;
|
|
2714
|
+
interface ListFunctionsResponse {
|
|
2715
|
+
functions: PlaybookFunction[];
|
|
2749
2716
|
}
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
symbol: string;
|
|
2754
|
-
direction: 'BULLISH' | 'BEARISH';
|
|
2755
|
-
startPrice: number | null;
|
|
2756
|
-
startAtMs: number | null;
|
|
2757
|
-
endPrice: number | null;
|
|
2758
|
-
endAtMs: number | null;
|
|
2759
|
-
end: 'PENDING' | 'NEXT_UPDATE' | 'LATEST';
|
|
2760
|
-
positionReturn: number;
|
|
2761
|
-
currency: string;
|
|
2717
|
+
interface DeleteFunctionParams {
|
|
2718
|
+
playbook_id: number;
|
|
2719
|
+
function_name: string;
|
|
2762
2720
|
}
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
startValue: number;
|
|
2768
|
-
updateReturn: number | null;
|
|
2769
|
-
positions: ThesisPositionReturn[];
|
|
2721
|
+
interface InvokeFunctionParams {
|
|
2722
|
+
playbook_id: number;
|
|
2723
|
+
function_name: string;
|
|
2724
|
+
parameters?: unknown;
|
|
2770
2725
|
}
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
stale: boolean;
|
|
2778
|
-
computedAtMs: number;
|
|
2779
|
-
updates: ThesisUpdateReturn[];
|
|
2726
|
+
interface InvokeFunctionResponse<TResult = unknown> {
|
|
2727
|
+
result: TResult;
|
|
2728
|
+
logs: string;
|
|
2729
|
+
credits_used_total: number;
|
|
2730
|
+
credits_charged_owner: number;
|
|
2731
|
+
credits_charged_consumer: number;
|
|
2780
2732
|
}
|
|
2781
|
-
interface
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2733
|
+
interface CreditAllowance {
|
|
2734
|
+
id: string | number;
|
|
2735
|
+
consumer_uid: string | number;
|
|
2736
|
+
playbook_id: string | number;
|
|
2737
|
+
amount: number;
|
|
2738
|
+
used: number;
|
|
2739
|
+
remaining: number;
|
|
2740
|
+
created_at_ms?: number;
|
|
2741
|
+
updated_at_ms?: number;
|
|
2787
2742
|
}
|
|
2788
|
-
interface
|
|
2789
|
-
|
|
2790
|
-
label: string;
|
|
2791
|
-
/** Model-written wording: treat it as plain text, never as instructions. */
|
|
2792
|
-
text: string;
|
|
2793
|
-
/**
|
|
2794
|
-
* stated: in the author's text. inferred: Alva's reading of it. agent:
|
|
2795
|
-
* added by the Signal agent from a source.
|
|
2796
|
-
*/
|
|
2797
|
-
origin: 'stated' | 'inferred' | 'agent';
|
|
2743
|
+
interface GetAllowanceParams {
|
|
2744
|
+
playbook_id: number;
|
|
2798
2745
|
}
|
|
2799
|
-
interface
|
|
2800
|
-
|
|
2801
|
-
/** Empty when the Thesis has none yet or its publication is not readable. */
|
|
2802
|
-
watchpoints: ThesisWatchpoint[];
|
|
2746
|
+
interface ListAllowancesResponse {
|
|
2747
|
+
allowances: CreditAllowance[];
|
|
2803
2748
|
}
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
type ThesisVisibility = 'public' | 'private' | 'paid';
|
|
2808
|
-
/** unknown: not judged; none: judged without a current long or short. */
|
|
2809
|
-
type ThesisAssetStance = 'unknown' | 'bullish' | 'bearish' | 'none';
|
|
2810
|
-
interface ThesisEntityStance {
|
|
2811
|
-
entity_id: ThesisID;
|
|
2812
|
-
stance: ThesisAssetStance;
|
|
2813
|
-
/** Full direction in responses; stance reports none as unknown there. */
|
|
2814
|
-
direction?: ThesisAssetStance;
|
|
2749
|
+
interface CreateAllowanceParams {
|
|
2750
|
+
playbook_id: number;
|
|
2751
|
+
amount: number;
|
|
2815
2752
|
}
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
interface ThesisSelectedDirection {
|
|
2819
|
-
entityId: ThesisID;
|
|
2820
|
-
direction: ThesisDirection;
|
|
2753
|
+
interface CreateAllowanceResponse {
|
|
2754
|
+
allowance: CreditAllowance;
|
|
2821
2755
|
}
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
interface ThesisReturnPreview {
|
|
2825
|
-
/** The Thesis's return switch now; UNSET for a new Thesis. */
|
|
2826
|
-
tracking: ThesisReturnTracking;
|
|
2827
|
-
/** Ask the author whether to keep the return on. */
|
|
2828
|
-
askSwitch: boolean;
|
|
2829
|
-
/** Directions publishing would store; UNKNOWN could not be judged. */
|
|
2830
|
-
directions: ThesisSelectedDirection[];
|
|
2831
|
-
/** Exits that keep the previous direction (last-leg rule). */
|
|
2832
|
-
keptEntityIds: ThesisID[];
|
|
2833
|
-
/** Publishing this draft fails with THESIS_RETURN_LAST_LEG. */
|
|
2834
|
-
lastLegRemoved: boolean;
|
|
2756
|
+
interface RevokeAllowanceParams {
|
|
2757
|
+
playbook_id: number;
|
|
2835
2758
|
}
|
|
2836
|
-
interface
|
|
2837
|
-
|
|
2838
|
-
entityIds?: ThesisID[];
|
|
2839
|
-
/** The Thesis being updated: its current directions seed carried tickers. */
|
|
2840
|
-
thesisId?: ThesisID;
|
|
2841
|
-
/** False skips ticker discovery. Defaults to true. */
|
|
2842
|
-
discover?: boolean;
|
|
2759
|
+
interface RevokeAllowanceResponse {
|
|
2760
|
+
ok: boolean;
|
|
2843
2761
|
}
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2762
|
+
/**
|
|
2763
|
+
* Playbook function management. These functions are registered by a playbook
|
|
2764
|
+
* creator and invoked by released playbook UI through the browser UDF runtime.
|
|
2765
|
+
*/
|
|
2766
|
+
declare class FunctionsResource {
|
|
2767
|
+
private client;
|
|
2768
|
+
constructor(client: AlvaClient);
|
|
2769
|
+
register(params: RegisterFunctionParams): Promise<RegisterFunctionResponse>;
|
|
2770
|
+
list(params: ListFunctionsParams): Promise<ListFunctionsResponse>;
|
|
2771
|
+
delete(params: DeleteFunctionParams): Promise<void>;
|
|
2772
|
+
invoke<TResult = unknown>(params: InvokeFunctionParams): Promise<InvokeFunctionResponse<TResult>>;
|
|
2773
|
+
getAllowance(params: GetAllowanceParams): Promise<CreditAllowance | null>;
|
|
2774
|
+
listAllowances(): Promise<ListAllowancesResponse>;
|
|
2775
|
+
createAllowance(params: CreateAllowanceParams): Promise<CreateAllowanceResponse>;
|
|
2776
|
+
revokeAllowance(params: RevokeAllowanceParams): Promise<RevokeAllowanceResponse>;
|
|
2849
2777
|
}
|
|
2850
|
-
|
|
2851
|
-
|
|
2778
|
+
|
|
2779
|
+
declare class CreditsResource {
|
|
2780
|
+
private client;
|
|
2781
|
+
constructor(client: AlvaClient);
|
|
2782
|
+
wallet(): Promise<CreditWallet>;
|
|
2783
|
+
items(params: CreditWalletItemsParams): Promise<CreditWalletItemsResponse>;
|
|
2784
|
+
private graphql;
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
type CompanyFiscalQuarter = 'Q1' | 'Q2' | 'Q3' | 'Q4';
|
|
2788
|
+
type CompanyEarningsEvent = 'latest-completed' | 'next-confirmed';
|
|
2789
|
+
type CompanyEarningsStatus = 'UPCOMING' | 'COMPLETED';
|
|
2790
|
+
type CompanyEarningsContentStatus = 'AVAILABLE' | 'NOT_AVAILABLE_YET' | 'UNAVAILABLE';
|
|
2791
|
+
type CompanyEarningsSession = 'BEFORE_MARKET_OPEN' | 'AFTER_MARKET_CLOSE';
|
|
2792
|
+
interface CompanyNarrative {
|
|
2793
|
+
asOf: string;
|
|
2794
|
+
generatedAtMs: number;
|
|
2795
|
+
narrative: string;
|
|
2796
|
+
peers: string;
|
|
2797
|
+
}
|
|
2798
|
+
interface CompanyNarrativeSnapshot {
|
|
2799
|
+
asOf: string;
|
|
2800
|
+
generatedAtMs: number;
|
|
2801
|
+
narrative: string;
|
|
2802
|
+
}
|
|
2803
|
+
interface CompanyNarrativeChangeLogEntry {
|
|
2804
|
+
asOf: string;
|
|
2805
|
+
generatedAtMs: number;
|
|
2806
|
+
narrativeChangeLog: string | null;
|
|
2807
|
+
}
|
|
2808
|
+
interface CompanyNarrativeHistory {
|
|
2809
|
+
snapshots: CompanyNarrativeSnapshot[];
|
|
2810
|
+
changeLog: CompanyNarrativeChangeLogEntry[];
|
|
2811
|
+
}
|
|
2812
|
+
interface CompanyNarrativeContext {
|
|
2852
2813
|
ticker: string;
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
candidates: ThesisAssetCandidate[];
|
|
2814
|
+
current: CompanyNarrative | null;
|
|
2815
|
+
history: CompanyNarrativeHistory | null;
|
|
2856
2816
|
}
|
|
2857
|
-
interface
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2817
|
+
interface CompanyEarningsPeriod {
|
|
2818
|
+
fiscalYear: number;
|
|
2819
|
+
fiscalQuarter: CompanyFiscalQuarter;
|
|
2820
|
+
label: string;
|
|
2821
|
+
fiscalDateEnding: string;
|
|
2822
|
+
earningsDate: string;
|
|
2823
|
+
session: CompanyEarningsSession | null;
|
|
2824
|
+
status: CompanyEarningsStatus;
|
|
2825
|
+
isDefault: boolean;
|
|
2861
2826
|
}
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
cover_url: string;
|
|
2867
|
-
url?: string | null;
|
|
2827
|
+
interface CompanyEarningsCatalog {
|
|
2828
|
+
periods: CompanyEarningsPeriod[];
|
|
2829
|
+
defaultPeriod: CompanyEarningsPeriod | null;
|
|
2830
|
+
unresolvedEventCount: number;
|
|
2868
2831
|
}
|
|
2869
|
-
interface
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2832
|
+
interface CompanyPreEarningsAnalysis {
|
|
2833
|
+
status: CompanyEarningsContentStatus;
|
|
2834
|
+
asOf: string | null;
|
|
2835
|
+
summary: string | null;
|
|
2836
|
+
whatWouldChangeView: string | null;
|
|
2837
|
+
mainQuestion: string | null;
|
|
2838
|
+
investorFocus: string[];
|
|
2839
|
+
consensusAndGuidance: string | null;
|
|
2840
|
+
stockSetup: string | null;
|
|
2841
|
+
eventRisk: string | null;
|
|
2842
|
+
whatWouldDriveUpside: string | null;
|
|
2843
|
+
bullCase: string | null;
|
|
2844
|
+
baseCase: string | null;
|
|
2845
|
+
bearCase: string | null;
|
|
2846
|
+
keyAsymmetry: string | null;
|
|
2847
|
+
consensusN: number | null;
|
|
2848
|
+
consensusObservedAt: string | null;
|
|
2849
|
+
}
|
|
2850
|
+
interface CompanyEarningsRelease {
|
|
2851
|
+
status: CompanyEarningsContentStatus;
|
|
2852
|
+
releaseDate: string | null;
|
|
2853
|
+
url: string | null;
|
|
2854
|
+
}
|
|
2855
|
+
interface CompanyEarningsTranscriptEntry {
|
|
2856
|
+
speaker: string;
|
|
2873
2857
|
title: string;
|
|
2874
|
-
|
|
2875
|
-
entity_ids: ThesisID[];
|
|
2876
|
-
entity_stances?: ThesisEntityStance[];
|
|
2877
|
-
visibility: ThesisVisibility;
|
|
2878
|
-
medias?: ThesisMedia[];
|
|
2879
|
-
closed: boolean;
|
|
2880
|
-
closing_note: string;
|
|
2881
|
-
author_kind: string;
|
|
2882
|
-
author_ref: string;
|
|
2883
|
-
archived: boolean;
|
|
2884
|
-
version_archived?: boolean;
|
|
2885
|
-
note?: string;
|
|
2858
|
+
content: string;
|
|
2886
2859
|
}
|
|
2887
|
-
interface
|
|
2888
|
-
|
|
2860
|
+
interface CompanyEarningsTranscriptSection {
|
|
2861
|
+
name: string;
|
|
2862
|
+
entries: CompanyEarningsTranscriptEntry[];
|
|
2889
2863
|
}
|
|
2890
|
-
interface
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
username: string;
|
|
2864
|
+
interface CompanyEarningsTranscript {
|
|
2865
|
+
status: CompanyEarningsContentStatus;
|
|
2866
|
+
date: string | null;
|
|
2867
|
+
publishedAtMs: number | null;
|
|
2868
|
+
sections: CompanyEarningsTranscriptSection[];
|
|
2896
2869
|
}
|
|
2897
|
-
interface
|
|
2898
|
-
|
|
2870
|
+
interface CompanyPostEarningsSummary {
|
|
2871
|
+
status: CompanyEarningsContentStatus;
|
|
2872
|
+
asOf: string | null;
|
|
2873
|
+
reportedCurrency: string | null;
|
|
2874
|
+
evidenceState: 'INITIAL_PRINT' | 'POST_CALL' | null;
|
|
2875
|
+
openingQuote: string | null;
|
|
2876
|
+
openingQuoteSpeaker: string | null;
|
|
2877
|
+
openingQuoteTitle: string | null;
|
|
2878
|
+
openingQuoteNote: string | null;
|
|
2879
|
+
buriedSignals: string[];
|
|
2880
|
+
whatYouShouldKnow: string[];
|
|
2881
|
+
consensusN: number | null;
|
|
2882
|
+
consensusObservedAt: string | null;
|
|
2883
|
+
}
|
|
2884
|
+
interface CompanyEarningsContext {
|
|
2885
|
+
ticker: string;
|
|
2886
|
+
period: CompanyEarningsPeriod;
|
|
2887
|
+
preEarningsAnalysis: CompanyPreEarningsAnalysis;
|
|
2888
|
+
earningsRelease: CompanyEarningsRelease;
|
|
2889
|
+
earningsTranscript: CompanyEarningsTranscript;
|
|
2890
|
+
postEarningsSummary: CompanyPostEarningsSummary;
|
|
2891
|
+
}
|
|
2892
|
+
type CompanyEarningsParams = {
|
|
2893
|
+
ticker: string;
|
|
2894
|
+
event?: CompanyEarningsEvent;
|
|
2895
|
+
fiscalYear?: never;
|
|
2896
|
+
fiscalQuarter?: never;
|
|
2897
|
+
} | {
|
|
2899
2898
|
ticker: string;
|
|
2899
|
+
event?: never;
|
|
2900
|
+
fiscalYear: number;
|
|
2901
|
+
fiscalQuarter: CompanyFiscalQuarter;
|
|
2902
|
+
};
|
|
2903
|
+
declare class MarketsResource {
|
|
2904
|
+
private client;
|
|
2905
|
+
constructor(client: AlvaClient);
|
|
2906
|
+
narrative(ticker: string): Promise<CompanyNarrativeContext>;
|
|
2907
|
+
earningsPeriods(ticker: string): Promise<CompanyEarningsCatalog>;
|
|
2908
|
+
earnings(params: CompanyEarningsParams): Promise<CompanyEarningsContext>;
|
|
2909
|
+
private selectPeriod;
|
|
2910
|
+
private notFound;
|
|
2911
|
+
private graphql;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
type AgentScheduleStatus = 'active' | 'paused' | 'completed' | 'failed';
|
|
2915
|
+
type AgentScheduleFailureCode = 'target_invalid' | 'delivery_exhausted' | 'payload_conflict';
|
|
2916
|
+
type AgentScheduleRule = {
|
|
2917
|
+
kind: 'at';
|
|
2918
|
+
timestamp: string;
|
|
2919
|
+
} | {
|
|
2920
|
+
kind: 'every';
|
|
2921
|
+
interval: string;
|
|
2922
|
+
} | {
|
|
2923
|
+
kind: 'cron';
|
|
2924
|
+
expression: string;
|
|
2925
|
+
timezone: string;
|
|
2926
|
+
};
|
|
2927
|
+
interface AgentScheduleBounds {
|
|
2928
|
+
startsAt?: string;
|
|
2929
|
+
until?: string;
|
|
2930
|
+
maxOccurrences?: number;
|
|
2931
|
+
}
|
|
2932
|
+
interface AgentSchedule {
|
|
2900
2933
|
name: string;
|
|
2901
|
-
|
|
2902
|
-
|
|
2934
|
+
rule: AgentScheduleRule;
|
|
2935
|
+
bounds: AgentScheduleBounds;
|
|
2936
|
+
text: string;
|
|
2937
|
+
status: AgentScheduleStatus;
|
|
2938
|
+
failure?: {
|
|
2939
|
+
code: AgentScheduleFailureCode;
|
|
2940
|
+
at?: string;
|
|
2941
|
+
};
|
|
2942
|
+
occurrencesUsed: number;
|
|
2943
|
+
nextFireAt?: string;
|
|
2944
|
+
createdAt: string;
|
|
2945
|
+
updatedAt: string;
|
|
2903
2946
|
}
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2947
|
+
type AgentScheduleTarget = {
|
|
2948
|
+
channelId: string | number;
|
|
2949
|
+
inboxPath?: never;
|
|
2950
|
+
} | {
|
|
2951
|
+
inboxPath: string;
|
|
2952
|
+
channelId?: never;
|
|
2953
|
+
};
|
|
2954
|
+
type PutAgentScheduleParams = AgentScheduleTarget & {
|
|
2955
|
+
name: string;
|
|
2956
|
+
rule: AgentScheduleRule | {
|
|
2957
|
+
kind: 'after';
|
|
2958
|
+
duration: string;
|
|
2959
|
+
};
|
|
2960
|
+
bounds?: AgentScheduleBounds;
|
|
2961
|
+
text: string;
|
|
2962
|
+
};
|
|
2963
|
+
type ManageAgentScheduleParams = AgentScheduleTarget & {
|
|
2964
|
+
name: string;
|
|
2965
|
+
};
|
|
2966
|
+
declare class SchedulesResource {
|
|
2967
|
+
private client;
|
|
2968
|
+
constructor(client: AlvaClient);
|
|
2969
|
+
list(params: AgentScheduleTarget): Promise<AgentSchedule[]>;
|
|
2970
|
+
put(params: PutAgentScheduleParams): Promise<AgentSchedule>;
|
|
2971
|
+
pause(params: ManageAgentScheduleParams): Promise<AgentSchedule>;
|
|
2972
|
+
resume(params: ManageAgentScheduleParams): Promise<AgentSchedule>;
|
|
2973
|
+
delete(params: ManageAgentScheduleParams): Promise<void>;
|
|
2974
|
+
/** Resolve the authenticated viewer's unique Agent Channel for CLI defaults. */
|
|
2975
|
+
agentChannelId(): Promise<string>;
|
|
2976
|
+
private manage;
|
|
2977
|
+
private update;
|
|
2978
|
+
private graphql;
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
/**
|
|
2982
|
+
* Push steward tool commands (mono-meta #935). Every call names the steward by
|
|
2983
|
+
* its own Session Inbox path, which the host supplies to the embedded `alva`
|
|
2984
|
+
* tool; the Backend resolves it to the caller's ready steward binding and
|
|
2985
|
+
* scopes every delivery to that binding's Channel.
|
|
2986
|
+
*/
|
|
2987
|
+
type StewardDecision = 'immediate' | 'digest' | 'suppress';
|
|
2988
|
+
interface StewardTarget {
|
|
2989
|
+
inboxPath: string;
|
|
2990
|
+
}
|
|
2991
|
+
interface StewardDecideParams extends StewardTarget {
|
|
2992
|
+
deliveryId: string;
|
|
2993
|
+
decision: StewardDecision;
|
|
2994
|
+
reason: string;
|
|
2995
|
+
}
|
|
2996
|
+
interface StewardForwardParams extends StewardTarget {
|
|
2997
|
+
deliveryId: string;
|
|
2998
|
+
/** Idempotency key; the CLI generates a UUID when omitted. */
|
|
2999
|
+
requestId?: string;
|
|
3000
|
+
}
|
|
3001
|
+
interface StewardSendParams extends StewardTarget {
|
|
3002
|
+
body: string;
|
|
3003
|
+
/** Omit or pass [] for a For-You-only Brief that covers no ledger delivery. */
|
|
3004
|
+
deliveryIds?: string[];
|
|
3005
|
+
requestId?: string;
|
|
3006
|
+
}
|
|
3007
|
+
type StewardSourceKind = 'FEED' | 'MARKET_ENTITY' | 'THESIS_FEED';
|
|
3008
|
+
interface StewardPendingParams extends StewardTarget {
|
|
3009
|
+
/** @deprecated Use `pendingPage` for explicit single-page reads. */
|
|
3010
|
+
after?: string;
|
|
3011
|
+
/** First page only: lower bound on decision time. */
|
|
3012
|
+
sinceMs?: number;
|
|
3013
|
+
/** First page only: fixed upper bound of the Brief window (the digest_request's untilMs). */
|
|
3014
|
+
untilMs?: number;
|
|
3015
|
+
first?: number;
|
|
2907
3016
|
}
|
|
2908
|
-
interface
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
read_complete: boolean;
|
|
2912
|
-
last_attempt_ms?: number;
|
|
2913
|
-
last_completed_ms?: number;
|
|
3017
|
+
interface StewardPendingPageParams extends StewardPendingParams {
|
|
3018
|
+
/** Opaque cursor from the previous page's `nextCursor`; carries the window. */
|
|
3019
|
+
after?: string;
|
|
2914
3020
|
}
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
3021
|
+
type StewardPendingFullParams = Omit<StewardPendingParams, 'after'> & {
|
|
3022
|
+
after?: undefined;
|
|
3023
|
+
};
|
|
3024
|
+
interface StewardBriefedParams extends StewardTarget {
|
|
3025
|
+
deliveryIds: string[];
|
|
3026
|
+
digestRunId: string;
|
|
2919
3027
|
}
|
|
2920
|
-
interface
|
|
2921
|
-
|
|
2922
|
-
url?: string;
|
|
2923
|
-
published_at_ms?: number;
|
|
3028
|
+
interface StewardDigestRunParams extends StewardTarget {
|
|
3029
|
+
digestRunId: string;
|
|
2924
3030
|
}
|
|
2925
|
-
interface
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
stance: string;
|
|
2931
|
-
explanation: string;
|
|
2932
|
-
information_kind: string;
|
|
2933
|
-
evidence_excerpt?: ThesisSignalEvidenceExcerpt;
|
|
2934
|
-
source: ThesisSignalSource;
|
|
3031
|
+
interface StewardSendDigestRunParams extends StewardDigestRunParams {
|
|
3032
|
+
/** Exact reviewed coverage; omit or pass [] for a For-You-only Brief. */
|
|
3033
|
+
deliveryIds?: string[];
|
|
3034
|
+
/** Omit when complete reviewed coverage produces no useful Brief content. */
|
|
3035
|
+
body?: string;
|
|
2935
3036
|
}
|
|
2936
|
-
interface
|
|
2937
|
-
|
|
2938
|
-
cursor: string;
|
|
2939
|
-
signal: ThesisSignal;
|
|
3037
|
+
interface StewardDecideResult {
|
|
3038
|
+
state: string;
|
|
2940
3039
|
}
|
|
2941
|
-
interface
|
|
2942
|
-
|
|
2943
|
-
|
|
3040
|
+
interface StewardForwardResult {
|
|
3041
|
+
channelMessageId: string;
|
|
3042
|
+
state: string;
|
|
2944
3043
|
}
|
|
2945
|
-
interface
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
3044
|
+
interface StewardSendResult {
|
|
3045
|
+
channelMessageId: string;
|
|
3046
|
+
/** The idempotency key used; pass it as digestRunId to `briefed`. */
|
|
3047
|
+
requestId: string;
|
|
2949
3048
|
}
|
|
2950
|
-
interface
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
/** Exact STOCK ticker symbols resolved by Backend during creation. */
|
|
2961
|
-
tickers?: string[];
|
|
2962
|
-
/** Omitted means public, as defined by the REST contract. */
|
|
2963
|
-
visibility?: 'public' | 'private';
|
|
2964
|
-
/** Thesis return switch; omitted keeps the default (on). */
|
|
2965
|
-
track_return?: boolean;
|
|
3049
|
+
interface StewardPendingItem {
|
|
3050
|
+
deliveryId: string;
|
|
3051
|
+
feedEntryId: string;
|
|
3052
|
+
source: {
|
|
3053
|
+
kind: StewardSourceKind;
|
|
3054
|
+
id: string;
|
|
3055
|
+
};
|
|
3056
|
+
decisionReason: string;
|
|
3057
|
+
consumedAtMs: number;
|
|
3058
|
+
alertSnapshot?: string | null;
|
|
2966
3059
|
}
|
|
2967
|
-
interface
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
title?: string;
|
|
2975
|
-
entity_ids?: ThesisID[];
|
|
2976
|
-
/** Full replacement: resubmit existing directions when only editing the body. */
|
|
2977
|
-
entity_stances?: ThesisEntityStance[];
|
|
2978
|
-
/** Required so an update cannot inadvertently publish a private thesis. */
|
|
2979
|
-
visibility: ThesisVisibility;
|
|
2980
|
-
archived?: boolean;
|
|
2981
|
-
note?: string;
|
|
2982
|
-
/** Thesis return switch; omitted keeps the current decision or default. */
|
|
2983
|
-
track_return?: boolean;
|
|
3060
|
+
interface StewardPendingPage {
|
|
3061
|
+
items: StewardPendingItem[];
|
|
3062
|
+
/** Cursor for the next page; `null` when this page was the last. */
|
|
3063
|
+
nextCursor: string | null;
|
|
3064
|
+
/** The window every page of this Brief was read with. */
|
|
3065
|
+
windowSinceMs: number;
|
|
3066
|
+
windowUntilMs: number;
|
|
2984
3067
|
}
|
|
2985
|
-
interface
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
3068
|
+
interface StewardPendingResult {
|
|
3069
|
+
items: StewardPendingItem[];
|
|
3070
|
+
/** The fixed window used for the complete read. */
|
|
3071
|
+
windowSinceMs: number;
|
|
3072
|
+
windowUntilMs: number;
|
|
2990
3073
|
}
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
3074
|
+
type StewardDigestRunState = 'EXPECTED' | 'RUNNING' | 'SEND_UNCERTAIN' | 'SENT' | 'INTENTIONALLY_EMPTY' | 'FAILED_BEFORE_SEND' | 'FAILED' | 'FAILED_EXPIRED';
|
|
3075
|
+
interface StewardDigestRun {
|
|
3076
|
+
digestRunId: string;
|
|
3077
|
+
state: StewardDigestRunState;
|
|
3078
|
+
scheduleId: string;
|
|
3079
|
+
scheduleVersion: number;
|
|
3080
|
+
occurrenceIndex: number;
|
|
3081
|
+
windowSinceMs: number;
|
|
3082
|
+
windowUntilMs: number;
|
|
3083
|
+
scanCompletedAtMs?: number | null;
|
|
3084
|
+
bodySha256?: string | null;
|
|
3085
|
+
coverageSha256?: string | null;
|
|
3086
|
+
channelMessageId?: string | null;
|
|
3087
|
+
attempts: number;
|
|
3088
|
+
lastError: string;
|
|
3089
|
+
startedAtMs?: number | null;
|
|
3090
|
+
completedAtMs?: number | null;
|
|
3091
|
+
sendUncertainAtMs?: number | null;
|
|
2995
3092
|
}
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3093
|
+
declare class StewardResource {
|
|
3094
|
+
private client;
|
|
3095
|
+
constructor(client: AlvaClient);
|
|
3096
|
+
decide(params: StewardDecideParams): Promise<StewardDecideResult>;
|
|
3097
|
+
forward(params: StewardForwardParams): Promise<StewardForwardResult>;
|
|
3098
|
+
send(params: StewardSendParams): Promise<StewardSendResult>;
|
|
3099
|
+
pending(params: StewardPendingParams & {
|
|
3100
|
+
after: string;
|
|
3101
|
+
}): Promise<StewardPendingPage>;
|
|
3102
|
+
pending(params: StewardPendingFullParams): Promise<StewardPendingResult>;
|
|
3103
|
+
pending(params: StewardPendingParams): Promise<StewardPendingResult | StewardPendingPage>;
|
|
3104
|
+
pendingPage(params: StewardPendingPageParams): Promise<StewardPendingPage>;
|
|
3105
|
+
private pendingPageWithRetry;
|
|
3106
|
+
briefed(params: StewardBriefedParams): Promise<{
|
|
3107
|
+
ok: true;
|
|
3108
|
+
}>;
|
|
3109
|
+
digestRun(params: StewardDigestRunParams): Promise<StewardDigestRun>;
|
|
3110
|
+
digestRunPending(params: StewardDigestRunParams): Promise<StewardPendingItem[]>;
|
|
3111
|
+
sendDigestRun(params: StewardSendDigestRunParams): Promise<StewardDigestRun>;
|
|
3112
|
+
private graphql;
|
|
3002
3113
|
}
|
|
3003
|
-
|
|
3004
|
-
|
|
3114
|
+
|
|
3115
|
+
interface TradingPairCandidate {
|
|
3116
|
+
/** Underlying ticker returned by the market catalog. */
|
|
3117
|
+
symbol: string;
|
|
3118
|
+
/** Complete canonical identity used by OHLCV, Altra, and orders. */
|
|
3119
|
+
tradingPair: string;
|
|
3120
|
+
market: string;
|
|
3121
|
+
instrumentType: string;
|
|
3122
|
+
underlyingType?: string;
|
|
3123
|
+
quote: string;
|
|
3124
|
+
type?: string;
|
|
3125
|
+
description?: string;
|
|
3126
|
+
feeRate?: number;
|
|
3127
|
+
symbolIconUrl?: string;
|
|
3005
3128
|
}
|
|
3006
|
-
interface
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3129
|
+
interface TradingPairSearchParams {
|
|
3130
|
+
symbol: string;
|
|
3131
|
+
market?: string;
|
|
3132
|
+
instrumentType?: string;
|
|
3133
|
+
underlyingType?: string;
|
|
3134
|
+
quote?: string;
|
|
3135
|
+
limit?: number;
|
|
3010
3136
|
}
|
|
3011
|
-
interface
|
|
3012
|
-
|
|
3137
|
+
interface TradingPairSearchResponse {
|
|
3138
|
+
query: string;
|
|
3139
|
+
candidates: TradingPairCandidate[];
|
|
3140
|
+
truncated?: boolean;
|
|
3013
3141
|
}
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
* starts Signal/Alert setup, or invokes rewrite as a side effect of CRUD.
|
|
3017
|
-
*/
|
|
3018
|
-
declare class ThesesResource {
|
|
3142
|
+
type TradingPairResolveFilters = Omit<TradingPairSearchParams, 'symbol' | 'limit'>;
|
|
3143
|
+
declare class TradingPairsResource {
|
|
3019
3144
|
private client;
|
|
3020
3145
|
constructor(client: AlvaClient);
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
assetCandidates(text: string, params?: ThesisAssetCandidatesParams): Promise<ThesisAssetCandidatesResponse>;
|
|
3026
|
-
/** The Thesis return of a Playbook's current publication; detail revalues it. */
|
|
3027
|
-
thesisReturn(id: ThesisID, params?: ThesisReturnParams): Promise<ThesisReturnResult>;
|
|
3028
|
-
/**
|
|
3029
|
-
* List every watchpoint of a Thesis (its current set, in number order): the
|
|
3030
|
-
* things the Thesis depends on, or that would show it right or wrong.
|
|
3031
|
-
*/
|
|
3032
|
-
watchpoints(id: ThesisID): Promise<ThesisWatchpointsResult>;
|
|
3033
|
-
create(params: CreateThesisParams): Promise<ThesisResponse>;
|
|
3034
|
-
get(id: ThesisID): Promise<ThesisGetResponse>;
|
|
3035
|
-
getVersion(id: ThesisID, authorVersionID: ThesisID): Promise<ThesisResponse>;
|
|
3036
|
-
/** Lists reader-visible Updates, with editorial revisions folded together. */
|
|
3037
|
-
listUpdates(id: ThesisID, params?: {
|
|
3038
|
-
first?: number;
|
|
3039
|
-
cursor?: string;
|
|
3040
|
-
}): Promise<{
|
|
3041
|
-
versions: Thesis[];
|
|
3042
|
-
next_cursor: string;
|
|
3043
|
-
}>;
|
|
3044
|
-
signals(id: ThesisID, params?: ListThesisSignalsParams): Promise<ThesisSignalsResponse>;
|
|
3045
|
-
update(id: ThesisID, params: UpdateThesisParams): Promise<ThesisResponse>;
|
|
3046
|
-
/**
|
|
3047
|
-
* Archive or unarchive the current version without asking callers to resend
|
|
3048
|
-
* its body. Unarchiving publishes the current content as a new Update; an
|
|
3049
|
-
* archived Thesis takes no other Update.
|
|
3050
|
-
*/
|
|
3051
|
-
setArchived(id: ThesisID, params: SetThesisArchivedParams): Promise<ThesisResponse>;
|
|
3052
|
-
setStarred(id: ThesisID, isStarred: boolean): Promise<ThesisStarredResponse>;
|
|
3053
|
-
setSignalEnabled(id: ThesisID, enabled: boolean): Promise<ThesisSignalEnabledResponse>;
|
|
3054
|
-
setVisibility(id: ThesisID, params: SetThesisVisibilityParams): Promise<ThesisResponse>;
|
|
3055
|
-
rewrite(params: RewriteThesisParams): Promise<RewriteThesisResponse>;
|
|
3146
|
+
search(params: TradingPairSearchParams): Promise<TradingPairSearchResponse>;
|
|
3147
|
+
resolve(params: ({
|
|
3148
|
+
pair: string;
|
|
3149
|
+
} & TradingPairResolveFilters) | Omit<TradingPairSearchParams, 'limit'>): Promise<TradingPairCandidate>;
|
|
3056
3150
|
}
|
|
3057
3151
|
|
|
3058
3152
|
interface CreateCompanyNewsParams {
|
|
@@ -3337,4 +3431,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
|
|
|
3337
3431
|
/** SDK version, injected at build time from package.json. */
|
|
3338
3432
|
declare const VERSION: string;
|
|
3339
3433
|
|
|
3340
|
-
export { type AddToWatchlistResult, type AgentSchedule, type AgentScheduleBounds, type AgentScheduleFailureCode, type AgentScheduleRule, type AgentScheduleStatus, type AgentScheduleTarget, AlertsResource, AlvaClient, type AlvaClientConfig, AlvaError, type AutomationAlertDelivery, type AutomationAlertDeliveryGetRequest, AutomationAlertDeliveryResource, type AutomationAlertDeliveryUpdateRequest, type AutomationAlertDeliveryUpdateResponse, type AutomationEmailDelivery, AutomationResource, type ChannelGroupAdminInfo, type ChannelGroupCallerInfo, type ChannelGroupHistoryParams, type ChannelGroupHistoryResponse, type ChannelGroupSubscription, type ChannelGroupSubscriptionContextResponse, type ChannelGroupSubscriptionListResponse, type ChannelGroupSubscriptionMutationParams, type ChannelGroupSubscriptionMutationResponse, type ChannelGroupSubscriptionSessionParams, type ChannelGroupSubscriptionTarget, type ChannelGroupSubscriptionTargetType, CliUsageError, type CompanyEarningsCatalog, type CompanyEarningsContentStatus, type CompanyEarningsContext, type CompanyEarningsEvent, type CompanyEarningsParams, type CompanyEarningsPeriod, type CompanyEarningsRelease, type CompanyEarningsSession, type CompanyEarningsStatus, type CompanyEarningsTranscript, type CompanyEarningsTranscriptEntry, type CompanyEarningsTranscriptSection, type CompanyFiscalQuarter, type CompanyNarrative, type CompanyNarrativeChangeLogEntry, type CompanyNarrativeContext, type CompanyNarrativeHistory, type CompanyNarrativeSnapshot, CompanyNewsResource, type CompanyPostEarningsSummary, type CompanyPreEarningsAnalysis, type CreateAllowanceParams, type CreateAllowanceResponse, type CreateCompanyNewsParams, type CreateCompanyNewsResponse, type CreateThesisParams, type CreditAllowance, type CreditWallet, type CreditWalletItem, type CreditWalletItemConnection, type CreditWalletItemEdge, type CreditWalletItemsParams, type CreditWalletItemsResponse, type CreditWalletPageInfo, type DeleteFunctionParams, type FeedDeleteRequest, type FeedDeleteResponse, type FeedListItem, type FeedListParams, type FeedListResponse, type FeedListStatus, type FeedStatusUpdateRequest, type FeedStatusUpdateResponse, type FollowPageInfo, type FollowPageParams, type FollowPlaybookResponse, type FollowProfile, type FollowProfileKind, type FollowedProfilesParams, FollowsResource, type ForYouConnection, type ForYouEntry, type ForYouListParams, ForYouResource, type ForYouThesesParams, type FsChmodParams, type FsCopyParams, type FsEntry, type FsGrantParams, type FsMkdirParams, type FsRawWriteParams, type FsReadParams, type FsReaddirParams, type FsReaddirResponse, type FsReadlinkParams, type FsRemoveParams, type FsRenameParams, type FsRevokeParams, type FsStat, type FsSymlinkParams, type FsWriteParams, type FsWriteResponse, type GetAllowanceParams, type GroupChatMessage, type InvokeFunctionParams, type InvokeFunctionResponse, type ListAllowancesResponse, type ListFunctionsParams, type ListFunctionsResponse, type ListThesesParams, type ListThesisSignalsParams, type ManageAgentScheduleParams, MarketsResource, type NotificationPreference, type NotificationPreferenceKey, type NotificationPreferenceUpdateParams, type NotificationPreferenceUpdateResponse, type NotificationPreferencesResponse, PBSV_UPDATE_MESSAGE, type PlaybookFollowParams, type PlaybookFunction, type PlaybookSkillFile, type PlaybookSkillFileMeta, type PlaybookSkillMeta, type PlaybookSkillSummary, type PlaybookSkillTagEntry, type ProfileFollowResult, type ProfileRefParams, type ProfilesPage, type PutAgentScheduleParams, type RegisterFunctionParams, type RegisterFunctionResponse, type RelatedThesesPage, type RemoveFromWatchlistResult, type ResolvedTicker, type RevokeAllowanceParams, type RevokeAllowanceResponse, type RewriteThesisParams, type RewriteThesisResponse, SUBSCRIBE_MANAGE_MESSAGE, SUBSCRIBE_PROPOSE_MESSAGE, SUBSCRIBE_RESULT_MESSAGE, SchedulesResource, type SearchProfilesParams, type SetThesisArchivedParams, type SetThesisVisibilityParams, type SkillDoc, type SkillEndpointMetadata, type SkillEndpointTier, type SkillMetadata, type SkillSummary, type StewardBriefedParams, type StewardDecideParams, type StewardDecision, type StewardDigestRun, type StewardDigestRunParams, type StewardDigestRunState, type StewardForwardParams, type StewardPendingFullParams, type StewardPendingItem, type StewardPendingPage, type StewardPendingPageParams, type StewardPendingParams, type StewardPendingResult, StewardResource, type StewardSendDigestRunParams, type StewardSendParams, type StewardTarget, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type SubscribeApi, type SubscribeBatchParams, type SubscribeBatchResponse, type SubscribeProposalInput, type SubscribeProposalResult, ThesesResource, type Thesis, type ThesisAssetCandidate, type ThesisAssetCandidatesResponse, type ThesisAssetMention, type ThesisAssetStance, type ThesisAuthor, type ThesisEntity, type ThesisEntityStance, type ThesisGetResponse, type ThesisID, type ThesisListPage, type ThesisMedia, type ThesisPageParams, type ThesisPublicationSummary, type ThesisPublisher, type ThesisReadScope, type ThesisRecommendation, type ThesisRecommendationPage, type ThesisResearchStatus, type ThesisResponse, type ThesisRewriteMode, type ThesisSignal, type ThesisSignalEnabledResponse, type ThesisSignalEntry, type ThesisSignalEvidenceExcerpt, type ThesisSignalSource, type ThesisSignalsResponse, type ThesisSourceReference, type ThesisStarredResponse, type ThesisVisibility, type TradingPairCandidate, type TradingPairSearchParams, type TradingPairSearchResponse, TradingPairsResource, type TrendingPlaybookItem, type TrendingPlaybooksDir, type TrendingPlaybooksParams, type TrendingPlaybooksResponse, type TrendingPlaybooksSort, UDF_AUTH_REQUIRED_MESSAGE, UDF_CONSENT_REQUEST_MESSAGE, UDF_CONSENT_RESPONSE_MESSAGE, type UdfApi, UdfAuthRequiredError, type UdfButtonEventDetail, type UdfButtonOptions, UdfConsentDeniedError, UdfConsentRequiredError, UdfConsentTimeoutError, type UdfDescriptor, UdfError, UdfExecutionError, UdfFunctionDisabledError, UdfFunctionNotFoundError, UdfInsufficientCredits, type UdfInvokeResponse, UdfPidMismatchError, UdfRateLimitedError, UdfTokenExpiredError, UdfTokenInvalidError, UdfTransportError, type UnfollowPlaybookResponse, type UnresolvedTicker, type UnsubscribeBatchParams, type UnsubscribeBatchResponse, type UpdateThesisParams, VERSION, type WatchlistPage, type WatchlistTicker, type WatchlistTickerKind, type WatchlistTickerSpec, type WatchlistTickersParams, type XAccount, type XConnectionStatus, type XPost, type XReadPage, type XReadParams, XResource, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, subscribe, udf };
|
|
3434
|
+
export { type AddToWatchlistResult, type AgentSchedule, type AgentScheduleBounds, type AgentScheduleFailureCode, type AgentScheduleRule, type AgentScheduleStatus, type AgentScheduleTarget, AlertsResource, AlvaClient, type AlvaClientConfig, AlvaError, type AutomationAlertDelivery, type AutomationAlertDeliveryGetRequest, AutomationAlertDeliveryResource, type AutomationAlertDeliveryUpdateRequest, type AutomationAlertDeliveryUpdateResponse, type AutomationEmailDelivery, AutomationResource, type ChannelGroupAdminInfo, type ChannelGroupCallerInfo, type ChannelGroupHistoryParams, type ChannelGroupHistoryResponse, type ChannelGroupSubscription, type ChannelGroupSubscriptionContextResponse, type ChannelGroupSubscriptionListResponse, type ChannelGroupSubscriptionMutationParams, type ChannelGroupSubscriptionMutationResponse, type ChannelGroupSubscriptionSessionParams, type ChannelGroupSubscriptionTarget, type ChannelGroupSubscriptionTargetType, CliUsageError, type CompanyEarningsCatalog, type CompanyEarningsContentStatus, type CompanyEarningsContext, type CompanyEarningsEvent, type CompanyEarningsParams, type CompanyEarningsPeriod, type CompanyEarningsRelease, type CompanyEarningsSession, type CompanyEarningsStatus, type CompanyEarningsTranscript, type CompanyEarningsTranscriptEntry, type CompanyEarningsTranscriptSection, type CompanyFiscalQuarter, type CompanyNarrative, type CompanyNarrativeChangeLogEntry, type CompanyNarrativeContext, type CompanyNarrativeHistory, type CompanyNarrativeSnapshot, CompanyNewsResource, type CompanyPostEarningsSummary, type CompanyPreEarningsAnalysis, type CreateAllowanceParams, type CreateAllowanceResponse, type CreateCompanyNewsParams, type CreateCompanyNewsResponse, type CreateThesisParams, type CreditAllowance, type CreditWallet, type CreditWalletItem, type CreditWalletItemConnection, type CreditWalletItemEdge, type CreditWalletItemsParams, type CreditWalletItemsResponse, type CreditWalletPageInfo, type DeleteFunctionParams, type FeedDeleteRequest, type FeedDeleteResponse, type FeedListItem, type FeedListParams, type FeedListResponse, type FeedListStatus, type FeedStatusUpdateRequest, type FeedStatusUpdateResponse, type FollowPageInfo, type FollowPageParams, type FollowPlaybookResponse, type FollowProfile, type FollowProfileKind, type FollowedProfilesParams, type FollowingThesesPage, type FollowingThesesParams, type FollowingThesisAuthor, type FollowingThesisItem, FollowsResource, type ForYouConnection, type ForYouEntry, type ForYouListParams, ForYouResource, type ForYouThesesParams, type FsChmodParams, type FsCopyParams, type FsEntry, type FsGrantParams, type FsMkdirParams, type FsRawWriteParams, type FsReadParams, type FsReaddirParams, type FsReaddirResponse, type FsReadlinkParams, type FsRemoveParams, type FsRenameParams, type FsRevokeParams, type FsStat, type FsSymlinkParams, type FsWriteParams, type FsWriteResponse, type GetAllowanceParams, type GroupChatMessage, type InvokeFunctionParams, type InvokeFunctionResponse, type ListAllowancesResponse, type ListFunctionsParams, type ListFunctionsResponse, type ListThesesParams, type ListThesisSignalsParams, type ManageAgentScheduleParams, MarketsResource, type NotificationPreference, type NotificationPreferenceKey, type NotificationPreferenceUpdateParams, type NotificationPreferenceUpdateResponse, type NotificationPreferencesResponse, PBSV_UPDATE_MESSAGE, type PlaybookFollowParams, type PlaybookFunction, type PlaybookSkillFile, type PlaybookSkillFileMeta, type PlaybookSkillMeta, type PlaybookSkillSummary, type PlaybookSkillTagEntry, type ProfileFollowResult, type ProfileRefParams, type ProfilesPage, type PutAgentScheduleParams, type RegisterFunctionParams, type RegisterFunctionResponse, type RelatedThesesPage, type RemoveFromWatchlistResult, type ResolvedTicker, type RevokeAllowanceParams, type RevokeAllowanceResponse, type RewriteThesisParams, type RewriteThesisResponse, SUBSCRIBE_MANAGE_MESSAGE, SUBSCRIBE_PROPOSE_MESSAGE, SUBSCRIBE_RESULT_MESSAGE, SchedulesResource, type SearchProfilesParams, type SetThesisArchivedParams, type SetThesisVisibilityParams, type SkillDoc, type SkillEndpointMetadata, type SkillEndpointTier, type SkillMetadata, type SkillSummary, type StewardBriefedParams, type StewardDecideParams, type StewardDecision, type StewardDigestRun, type StewardDigestRunParams, type StewardDigestRunState, type StewardForwardParams, type StewardPendingFullParams, type StewardPendingItem, type StewardPendingPage, type StewardPendingPageParams, type StewardPendingParams, type StewardPendingResult, StewardResource, type StewardSendDigestRunParams, type StewardSendParams, type StewardTarget, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type SubscribeApi, type SubscribeBatchParams, type SubscribeBatchResponse, type SubscribeProposalInput, type SubscribeProposalResult, ThesesResource, type Thesis, type ThesisAssetCandidate, type ThesisAssetCandidatesResponse, type ThesisAssetMention, type ThesisAssetStance, type ThesisAuthor, type ThesisEntity, type ThesisEntityStance, type ThesisGetResponse, type ThesisID, type ThesisListPage, type ThesisMedia, type ThesisPageParams, type ThesisPublicationSummary, type ThesisPublisher, type ThesisReadScope, type ThesisRecommendation, type ThesisRecommendationPage, type ThesisResearchStatus, type ThesisResponse, type ThesisRewriteMode, type ThesisSignal, type ThesisSignalEnabledResponse, type ThesisSignalEntry, type ThesisSignalEvidenceExcerpt, type ThesisSignalSource, type ThesisSignalsResponse, type ThesisSourceReference, type ThesisStarredResponse, type ThesisVisibility, type TradingPairCandidate, type TradingPairSearchParams, type TradingPairSearchResponse, TradingPairsResource, type TrendingPlaybookItem, type TrendingPlaybooksDir, type TrendingPlaybooksParams, type TrendingPlaybooksResponse, type TrendingPlaybooksSort, UDF_AUTH_REQUIRED_MESSAGE, UDF_CONSENT_REQUEST_MESSAGE, UDF_CONSENT_RESPONSE_MESSAGE, type UdfApi, UdfAuthRequiredError, type UdfButtonEventDetail, type UdfButtonOptions, UdfConsentDeniedError, UdfConsentRequiredError, UdfConsentTimeoutError, type UdfDescriptor, UdfError, UdfExecutionError, UdfFunctionDisabledError, UdfFunctionNotFoundError, UdfInsufficientCredits, type UdfInvokeResponse, UdfPidMismatchError, UdfRateLimitedError, UdfTokenExpiredError, UdfTokenInvalidError, UdfTransportError, type UnfollowPlaybookResponse, type UnresolvedTicker, type UnsubscribeBatchParams, type UnsubscribeBatchResponse, type UpdateThesisParams, VERSION, type WatchlistPage, type WatchlistTicker, type WatchlistTickerKind, type WatchlistTickerSpec, type WatchlistTickersParams, type XAccount, type XConnectionStatus, type XPost, type XReadPage, type XReadParams, XResource, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, subscribe, udf };
|