@alva-ai/toolkit 0.34.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2015,6 +2015,142 @@ declare class SubscriptionsResource {
2015
2015
  unsubscribeBatch(params: UnsubscribeBatchParams): Promise<UnsubscribeBatchResponse>;
2016
2016
  }
2017
2017
 
2018
+ /** Market entity kinds that can be added to the watchlist. */
2019
+ type WatchlistTickerKind = 'STOCK' | 'ETF' | 'CRYPTO';
2020
+ /** Public profile kinds: USER is an Alva user, PERSON a curated person. */
2021
+ type FollowProfileKind = 'USER' | 'PERSON';
2022
+ /** One requested symbol with an optional kind for just that symbol. */
2023
+ interface WatchlistTickerSpec {
2024
+ ticker: string;
2025
+ kind?: WatchlistTickerKind;
2026
+ }
2027
+ interface WatchlistTickersParams {
2028
+ /**
2029
+ * 1-50 ticker symbols, matched exactly (case-insensitive). A spec's own
2030
+ * kind overrides `kind`, so one call can mix kinds (NVDA and BTC:crypto).
2031
+ */
2032
+ tickers: Array<string | WatchlistTickerSpec>;
2033
+ /** Default kind for tickers without their own kind. */
2034
+ kind?: WatchlistTickerKind;
2035
+ }
2036
+ interface ResolvedTicker {
2037
+ /** The symbol as the caller supplied it, normalized to upper case. */
2038
+ input: string;
2039
+ entityId: string;
2040
+ ticker: string;
2041
+ name: string;
2042
+ kind: string;
2043
+ }
2044
+ interface UnresolvedTicker {
2045
+ input: string;
2046
+ /** The kind the lookup was restricted to, when one was given. */
2047
+ kind?: WatchlistTickerKind;
2048
+ /** NOT_FOUND or FAILED_PRECONDITION (several entities share the symbol). */
2049
+ code: string;
2050
+ message: string;
2051
+ }
2052
+ interface AddToWatchlistResult {
2053
+ /** Tickers newly added to the watchlist by this call. */
2054
+ added: ResolvedTicker[];
2055
+ /** Tickers already in the watchlist; nothing was written for them. */
2056
+ unchanged: ResolvedTicker[];
2057
+ unresolved: UnresolvedTicker[];
2058
+ }
2059
+ interface RemoveFromWatchlistResult {
2060
+ /** Tickers removed from the watchlist by this call. */
2061
+ removed: ResolvedTicker[];
2062
+ /**
2063
+ * Tickers that were not in the watchlist. The removal is still recorded, so
2064
+ * holdings sync will not add them later.
2065
+ */
2066
+ unchanged: ResolvedTicker[];
2067
+ unresolved: UnresolvedTicker[];
2068
+ }
2069
+ interface FollowPageParams {
2070
+ first?: number;
2071
+ after?: string;
2072
+ }
2073
+ interface FollowPageInfo {
2074
+ endCursor: string;
2075
+ hasNextPage: boolean;
2076
+ }
2077
+ interface WatchlistTicker {
2078
+ entityId: string;
2079
+ ticker: string;
2080
+ name: string;
2081
+ kind: string;
2082
+ addedAtMs: number;
2083
+ }
2084
+ interface WatchlistPage {
2085
+ totalCount: number;
2086
+ tickers: WatchlistTicker[];
2087
+ pageInfo: FollowPageInfo;
2088
+ }
2089
+ interface FollowProfile {
2090
+ kind: FollowProfileKind;
2091
+ id: string;
2092
+ displayName: string;
2093
+ /** Alva username; USER profiles only. */
2094
+ username?: string;
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;
2102
+ }
2103
+ interface SearchProfilesParams {
2104
+ query: string;
2105
+ kind?: FollowProfileKind;
2106
+ first?: number;
2107
+ }
2108
+ interface ProfileRefParams {
2109
+ kind: FollowProfileKind;
2110
+ id: string;
2111
+ }
2112
+ interface FollowedProfilesParams extends FollowPageParams {
2113
+ kind?: FollowProfileKind;
2114
+ }
2115
+ interface ProfilesPage {
2116
+ profiles: FollowProfile[];
2117
+ pageInfo: FollowPageInfo;
2118
+ }
2119
+ interface ProfileFollowResult {
2120
+ following: boolean;
2121
+ profile: FollowProfile | null;
2122
+ }
2123
+ /**
2124
+ * The Alva App's ticker watchlist (add/remove) and people follows (Alva users
2125
+ * and curated people). Gateway stores watchlist entries as ticker follows.
2126
+ * Playbook follows stay in `client.subscriptions`; Thesis bookmarks are
2127
+ * Thesis star/unstar. The user always comes from the API key; there is no
2128
+ * identity override.
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
+
2018
2154
  /**
2019
2155
  * Product-facing alert API. The current transport still calls the legacy
2020
2156
  * subscription and notification-history endpoints.
@@ -2389,7 +2525,7 @@ interface StewardSendParams extends StewardTarget {
2389
2525
  }
2390
2526
  type StewardSourceKind = 'FEED' | 'MARKET_ENTITY' | 'THESIS_FEED';
2391
2527
  interface StewardPendingParams extends StewardTarget {
2392
- /** Opaque cursor from the previous page's `nextCursor`; carries the window. */
2528
+ /** @deprecated Use `pendingPage` for explicit single-page reads. */
2393
2529
  after?: string;
2394
2530
  /** First page only: lower bound on decision time. */
2395
2531
  sinceMs?: number;
@@ -2397,10 +2533,26 @@ interface StewardPendingParams extends StewardTarget {
2397
2533
  untilMs?: number;
2398
2534
  first?: number;
2399
2535
  }
2536
+ interface StewardPendingPageParams extends StewardPendingParams {
2537
+ /** Opaque cursor from the previous page's `nextCursor`; carries the window. */
2538
+ after?: string;
2539
+ }
2540
+ type StewardPendingFullParams = Omit<StewardPendingParams, 'after'> & {
2541
+ after?: undefined;
2542
+ };
2400
2543
  interface StewardBriefedParams extends StewardTarget {
2401
2544
  deliveryIds: string[];
2402
2545
  digestRunId: string;
2403
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;
2555
+ }
2404
2556
  interface StewardDecideResult {
2405
2557
  state: string;
2406
2558
  }
@@ -2432,16 +2584,50 @@ interface StewardPendingPage {
2432
2584
  windowSinceMs: number;
2433
2585
  windowUntilMs: number;
2434
2586
  }
2587
+ interface StewardPendingResult {
2588
+ items: StewardPendingItem[];
2589
+ /** The fixed window used for the complete read. */
2590
+ windowSinceMs: number;
2591
+ windowUntilMs: number;
2592
+ }
2593
+ type StewardDigestRunState = 'EXPECTED' | 'RUNNING' | 'SEND_UNCERTAIN' | 'SENT' | 'INTENTIONALLY_EMPTY' | 'FAILED_BEFORE_SEND' | 'FAILED' | 'FAILED_EXPIRED';
2594
+ interface StewardDigestRun {
2595
+ digestRunId: string;
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;
2611
+ }
2435
2612
  declare class StewardResource {
2436
2613
  private client;
2437
2614
  constructor(client: AlvaClient);
2438
2615
  decide(params: StewardDecideParams): Promise<StewardDecideResult>;
2439
2616
  forward(params: StewardForwardParams): Promise<StewardForwardResult>;
2440
2617
  send(params: StewardSendParams): Promise<StewardSendResult>;
2441
- pending(params: StewardPendingParams): Promise<StewardPendingPage>;
2618
+ pending(params: StewardPendingParams & {
2619
+ after: string;
2620
+ }): Promise<StewardPendingPage>;
2621
+ pending(params: StewardPendingFullParams): Promise<StewardPendingResult>;
2622
+ pending(params: StewardPendingParams): Promise<StewardPendingResult | StewardPendingPage>;
2623
+ pendingPage(params: StewardPendingPageParams): Promise<StewardPendingPage>;
2624
+ private pendingPageWithRetry;
2442
2625
  briefed(params: StewardBriefedParams): Promise<{
2443
2626
  ok: true;
2444
2627
  }>;
2628
+ digestRun(params: StewardDigestRunParams): Promise<StewardDigestRun>;
2629
+ digestRunPending(params: StewardDigestRunParams): Promise<StewardPendingItem[]>;
2630
+ sendDigestRun(params: StewardSendDigestRunParams): Promise<StewardDigestRun>;
2445
2631
  private graphql;
2446
2632
  }
2447
2633
 
@@ -2851,6 +3037,7 @@ declare class AlvaClient {
2851
3037
  private _notifications?;
2852
3038
  private _notificationPreferences?;
2853
3039
  private _subscriptions?;
3040
+ private _follows?;
2854
3041
  private _alerts?;
2855
3042
  private _channelGroupSubscriptions?;
2856
3043
  private _feedback?;
@@ -2885,6 +3072,7 @@ declare class AlvaClient {
2885
3072
  get notifications(): NotificationsResource;
2886
3073
  get notificationPreferences(): NotificationPreferencesResource;
2887
3074
  get subscriptions(): SubscriptionsResource;
3075
+ get follows(): FollowsResource;
2888
3076
  get alerts(): AlertsResource;
2889
3077
  get channelGroupSubscriptions(): ChannelGroupSubscriptionsResource;
2890
3078
  get feedback(): FeedbackResource;
@@ -3052,4 +3240,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
3052
3240
  /** SDK version, injected at build time from package.json. */
3053
3241
  declare const VERSION: string;
3054
3242
 
3055
- export { 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 CloseThesisParams, 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 FollowPlaybookResponse, 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 PutAgentScheduleParams, type RegisterFunctionParams, type RegisterFunctionResponse, type RelatedThesesPage, type RevokeAllowanceParams, type RevokeAllowanceResponse, type RewriteThesisParams, type RewriteThesisResponse, SUBSCRIBE_MANAGE_MESSAGE, SUBSCRIBE_PROPOSE_MESSAGE, SUBSCRIBE_RESULT_MESSAGE, SchedulesResource, type SetThesisArchivedParams, type SetThesisVisibilityParams, type SkillDoc, type SkillEndpointMetadata, type SkillEndpointTier, type SkillMetadata, type SkillSummary, type StewardBriefedParams, type StewardDecideParams, type StewardDecision, type StewardForwardParams, type StewardPendingItem, type StewardPendingPage, type StewardPendingParams, StewardResource, 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 UnsubscribeBatchParams, type UnsubscribeBatchResponse, type UpdateThesisParams, VERSION, type XAccount, type XConnectionStatus, type XPost, type XReadPage, type XReadParams, XResource, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, subscribe, udf };
3243
+ 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 CloseThesisParams, 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 };
package/dist/index.d.ts CHANGED
@@ -2015,6 +2015,142 @@ declare class SubscriptionsResource {
2015
2015
  unsubscribeBatch(params: UnsubscribeBatchParams): Promise<UnsubscribeBatchResponse>;
2016
2016
  }
2017
2017
 
2018
+ /** Market entity kinds that can be added to the watchlist. */
2019
+ type WatchlistTickerKind = 'STOCK' | 'ETF' | 'CRYPTO';
2020
+ /** Public profile kinds: USER is an Alva user, PERSON a curated person. */
2021
+ type FollowProfileKind = 'USER' | 'PERSON';
2022
+ /** One requested symbol with an optional kind for just that symbol. */
2023
+ interface WatchlistTickerSpec {
2024
+ ticker: string;
2025
+ kind?: WatchlistTickerKind;
2026
+ }
2027
+ interface WatchlistTickersParams {
2028
+ /**
2029
+ * 1-50 ticker symbols, matched exactly (case-insensitive). A spec's own
2030
+ * kind overrides `kind`, so one call can mix kinds (NVDA and BTC:crypto).
2031
+ */
2032
+ tickers: Array<string | WatchlistTickerSpec>;
2033
+ /** Default kind for tickers without their own kind. */
2034
+ kind?: WatchlistTickerKind;
2035
+ }
2036
+ interface ResolvedTicker {
2037
+ /** The symbol as the caller supplied it, normalized to upper case. */
2038
+ input: string;
2039
+ entityId: string;
2040
+ ticker: string;
2041
+ name: string;
2042
+ kind: string;
2043
+ }
2044
+ interface UnresolvedTicker {
2045
+ input: string;
2046
+ /** The kind the lookup was restricted to, when one was given. */
2047
+ kind?: WatchlistTickerKind;
2048
+ /** NOT_FOUND or FAILED_PRECONDITION (several entities share the symbol). */
2049
+ code: string;
2050
+ message: string;
2051
+ }
2052
+ interface AddToWatchlistResult {
2053
+ /** Tickers newly added to the watchlist by this call. */
2054
+ added: ResolvedTicker[];
2055
+ /** Tickers already in the watchlist; nothing was written for them. */
2056
+ unchanged: ResolvedTicker[];
2057
+ unresolved: UnresolvedTicker[];
2058
+ }
2059
+ interface RemoveFromWatchlistResult {
2060
+ /** Tickers removed from the watchlist by this call. */
2061
+ removed: ResolvedTicker[];
2062
+ /**
2063
+ * Tickers that were not in the watchlist. The removal is still recorded, so
2064
+ * holdings sync will not add them later.
2065
+ */
2066
+ unchanged: ResolvedTicker[];
2067
+ unresolved: UnresolvedTicker[];
2068
+ }
2069
+ interface FollowPageParams {
2070
+ first?: number;
2071
+ after?: string;
2072
+ }
2073
+ interface FollowPageInfo {
2074
+ endCursor: string;
2075
+ hasNextPage: boolean;
2076
+ }
2077
+ interface WatchlistTicker {
2078
+ entityId: string;
2079
+ ticker: string;
2080
+ name: string;
2081
+ kind: string;
2082
+ addedAtMs: number;
2083
+ }
2084
+ interface WatchlistPage {
2085
+ totalCount: number;
2086
+ tickers: WatchlistTicker[];
2087
+ pageInfo: FollowPageInfo;
2088
+ }
2089
+ interface FollowProfile {
2090
+ kind: FollowProfileKind;
2091
+ id: string;
2092
+ displayName: string;
2093
+ /** Alva username; USER profiles only. */
2094
+ username?: string;
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;
2102
+ }
2103
+ interface SearchProfilesParams {
2104
+ query: string;
2105
+ kind?: FollowProfileKind;
2106
+ first?: number;
2107
+ }
2108
+ interface ProfileRefParams {
2109
+ kind: FollowProfileKind;
2110
+ id: string;
2111
+ }
2112
+ interface FollowedProfilesParams extends FollowPageParams {
2113
+ kind?: FollowProfileKind;
2114
+ }
2115
+ interface ProfilesPage {
2116
+ profiles: FollowProfile[];
2117
+ pageInfo: FollowPageInfo;
2118
+ }
2119
+ interface ProfileFollowResult {
2120
+ following: boolean;
2121
+ profile: FollowProfile | null;
2122
+ }
2123
+ /**
2124
+ * The Alva App's ticker watchlist (add/remove) and people follows (Alva users
2125
+ * and curated people). Gateway stores watchlist entries as ticker follows.
2126
+ * Playbook follows stay in `client.subscriptions`; Thesis bookmarks are
2127
+ * Thesis star/unstar. The user always comes from the API key; there is no
2128
+ * identity override.
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
+
2018
2154
  /**
2019
2155
  * Product-facing alert API. The current transport still calls the legacy
2020
2156
  * subscription and notification-history endpoints.
@@ -2389,7 +2525,7 @@ interface StewardSendParams extends StewardTarget {
2389
2525
  }
2390
2526
  type StewardSourceKind = 'FEED' | 'MARKET_ENTITY' | 'THESIS_FEED';
2391
2527
  interface StewardPendingParams extends StewardTarget {
2392
- /** Opaque cursor from the previous page's `nextCursor`; carries the window. */
2528
+ /** @deprecated Use `pendingPage` for explicit single-page reads. */
2393
2529
  after?: string;
2394
2530
  /** First page only: lower bound on decision time. */
2395
2531
  sinceMs?: number;
@@ -2397,10 +2533,26 @@ interface StewardPendingParams extends StewardTarget {
2397
2533
  untilMs?: number;
2398
2534
  first?: number;
2399
2535
  }
2536
+ interface StewardPendingPageParams extends StewardPendingParams {
2537
+ /** Opaque cursor from the previous page's `nextCursor`; carries the window. */
2538
+ after?: string;
2539
+ }
2540
+ type StewardPendingFullParams = Omit<StewardPendingParams, 'after'> & {
2541
+ after?: undefined;
2542
+ };
2400
2543
  interface StewardBriefedParams extends StewardTarget {
2401
2544
  deliveryIds: string[];
2402
2545
  digestRunId: string;
2403
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;
2555
+ }
2404
2556
  interface StewardDecideResult {
2405
2557
  state: string;
2406
2558
  }
@@ -2432,16 +2584,50 @@ interface StewardPendingPage {
2432
2584
  windowSinceMs: number;
2433
2585
  windowUntilMs: number;
2434
2586
  }
2587
+ interface StewardPendingResult {
2588
+ items: StewardPendingItem[];
2589
+ /** The fixed window used for the complete read. */
2590
+ windowSinceMs: number;
2591
+ windowUntilMs: number;
2592
+ }
2593
+ type StewardDigestRunState = 'EXPECTED' | 'RUNNING' | 'SEND_UNCERTAIN' | 'SENT' | 'INTENTIONALLY_EMPTY' | 'FAILED_BEFORE_SEND' | 'FAILED' | 'FAILED_EXPIRED';
2594
+ interface StewardDigestRun {
2595
+ digestRunId: string;
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;
2611
+ }
2435
2612
  declare class StewardResource {
2436
2613
  private client;
2437
2614
  constructor(client: AlvaClient);
2438
2615
  decide(params: StewardDecideParams): Promise<StewardDecideResult>;
2439
2616
  forward(params: StewardForwardParams): Promise<StewardForwardResult>;
2440
2617
  send(params: StewardSendParams): Promise<StewardSendResult>;
2441
- pending(params: StewardPendingParams): Promise<StewardPendingPage>;
2618
+ pending(params: StewardPendingParams & {
2619
+ after: string;
2620
+ }): Promise<StewardPendingPage>;
2621
+ pending(params: StewardPendingFullParams): Promise<StewardPendingResult>;
2622
+ pending(params: StewardPendingParams): Promise<StewardPendingResult | StewardPendingPage>;
2623
+ pendingPage(params: StewardPendingPageParams): Promise<StewardPendingPage>;
2624
+ private pendingPageWithRetry;
2442
2625
  briefed(params: StewardBriefedParams): Promise<{
2443
2626
  ok: true;
2444
2627
  }>;
2628
+ digestRun(params: StewardDigestRunParams): Promise<StewardDigestRun>;
2629
+ digestRunPending(params: StewardDigestRunParams): Promise<StewardPendingItem[]>;
2630
+ sendDigestRun(params: StewardSendDigestRunParams): Promise<StewardDigestRun>;
2445
2631
  private graphql;
2446
2632
  }
2447
2633
 
@@ -2851,6 +3037,7 @@ declare class AlvaClient {
2851
3037
  private _notifications?;
2852
3038
  private _notificationPreferences?;
2853
3039
  private _subscriptions?;
3040
+ private _follows?;
2854
3041
  private _alerts?;
2855
3042
  private _channelGroupSubscriptions?;
2856
3043
  private _feedback?;
@@ -2885,6 +3072,7 @@ declare class AlvaClient {
2885
3072
  get notifications(): NotificationsResource;
2886
3073
  get notificationPreferences(): NotificationPreferencesResource;
2887
3074
  get subscriptions(): SubscriptionsResource;
3075
+ get follows(): FollowsResource;
2888
3076
  get alerts(): AlertsResource;
2889
3077
  get channelGroupSubscriptions(): ChannelGroupSubscriptionsResource;
2890
3078
  get feedback(): FeedbackResource;
@@ -3052,4 +3240,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
3052
3240
  /** SDK version, injected at build time from package.json. */
3053
3241
  declare const VERSION: string;
3054
3242
 
3055
- export { 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 CloseThesisParams, 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 FollowPlaybookResponse, 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 PutAgentScheduleParams, type RegisterFunctionParams, type RegisterFunctionResponse, type RelatedThesesPage, type RevokeAllowanceParams, type RevokeAllowanceResponse, type RewriteThesisParams, type RewriteThesisResponse, SUBSCRIBE_MANAGE_MESSAGE, SUBSCRIBE_PROPOSE_MESSAGE, SUBSCRIBE_RESULT_MESSAGE, SchedulesResource, type SetThesisArchivedParams, type SetThesisVisibilityParams, type SkillDoc, type SkillEndpointMetadata, type SkillEndpointTier, type SkillMetadata, type SkillSummary, type StewardBriefedParams, type StewardDecideParams, type StewardDecision, type StewardForwardParams, type StewardPendingItem, type StewardPendingPage, type StewardPendingParams, StewardResource, 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 UnsubscribeBatchParams, type UnsubscribeBatchResponse, type UpdateThesisParams, VERSION, type XAccount, type XConnectionStatus, type XPost, type XReadPage, type XReadParams, XResource, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, subscribe, udf };
3243
+ 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 CloseThesisParams, 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 };