@alva-ai/toolkit 0.35.0 → 0.36.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/browser.global.js +59 -49
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.d.ts +83 -11
- package/dist/cli.js +185 -114
- package/dist/cli.js.map +1 -1
- package/dist/dispatch.d.ts +83 -11
- package/dist/dispatch.js +74 -72
- package/dist/dispatch.js.map +1 -1
- package/dist/index.cjs +143 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +84 -12
- package/dist/index.d.ts +84 -12
- package/dist/index.js +143 -65
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2743,14 +2743,87 @@ interface RelatedThesesPage {
|
|
|
2743
2743
|
}[];
|
|
2744
2744
|
nextCursor: string | null;
|
|
2745
2745
|
}
|
|
2746
|
+
interface ThesisReturnParams {
|
|
2747
|
+
/** Revalue at the latest prices and include each Update's positions. */
|
|
2748
|
+
detail?: boolean;
|
|
2749
|
+
}
|
|
2750
|
+
/** A position of one Update, as ThesisPositionReturn in GraphQL. */
|
|
2751
|
+
interface ThesisPositionReturn {
|
|
2752
|
+
entityId: string;
|
|
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;
|
|
2762
|
+
}
|
|
2763
|
+
/** One Update on the return chart. */
|
|
2764
|
+
interface ThesisUpdateReturn {
|
|
2765
|
+
authorVersionId: string;
|
|
2766
|
+
publishedAtMs: number;
|
|
2767
|
+
startValue: number;
|
|
2768
|
+
updateReturn: number | null;
|
|
2769
|
+
positions: ThesisPositionReturn[];
|
|
2770
|
+
}
|
|
2771
|
+
/** The Thesis return; values are fractions (0.05 is +5%). */
|
|
2772
|
+
interface ThesisReturnValue {
|
|
2773
|
+
live: boolean;
|
|
2774
|
+
value: number;
|
|
2775
|
+
firstFillAtMs: number | null;
|
|
2776
|
+
pricedAtMs: number | null;
|
|
2777
|
+
stale: boolean;
|
|
2778
|
+
computedAtMs: number;
|
|
2779
|
+
updates: ThesisUpdateReturn[];
|
|
2780
|
+
}
|
|
2781
|
+
interface ThesisReturnResult {
|
|
2782
|
+
playbookId: string;
|
|
2783
|
+
/** UNSET, ON or OFF; null when the current publication is not readable. */
|
|
2784
|
+
returnTracking: 'UNSET' | 'ON' | 'OFF' | null;
|
|
2785
|
+
/** Null when the Thesis is not tracked. */
|
|
2786
|
+
thesisReturn: ThesisReturnValue | null;
|
|
2787
|
+
}
|
|
2746
2788
|
|
|
2747
2789
|
/** Thesis IDs are signed int64 values represented losslessly as decimal strings. */
|
|
2748
2790
|
type ThesisID = string;
|
|
2749
2791
|
type ThesisVisibility = 'public' | 'private' | 'paid';
|
|
2750
|
-
|
|
2792
|
+
/** unknown: not judged; none: judged without a current long or short. */
|
|
2793
|
+
type ThesisAssetStance = 'unknown' | 'bullish' | 'bearish' | 'none';
|
|
2751
2794
|
interface ThesisEntityStance {
|
|
2752
2795
|
entity_id: ThesisID;
|
|
2753
2796
|
stance: ThesisAssetStance;
|
|
2797
|
+
/** Full direction in responses; stance reports none as unknown there. */
|
|
2798
|
+
direction?: ThesisAssetStance;
|
|
2799
|
+
}
|
|
2800
|
+
/** GraphQL direction, including NONE. */
|
|
2801
|
+
type ThesisDirection = 'UNKNOWN' | 'BULLISH' | 'BEARISH' | 'NONE';
|
|
2802
|
+
interface ThesisSelectedDirection {
|
|
2803
|
+
entityId: ThesisID;
|
|
2804
|
+
direction: ThesisDirection;
|
|
2805
|
+
}
|
|
2806
|
+
type ThesisReturnTracking = 'UNSET' | 'ON' | 'OFF';
|
|
2807
|
+
/** What publishing the selected entities with their directions would store. */
|
|
2808
|
+
interface ThesisReturnPreview {
|
|
2809
|
+
/** The Thesis's return switch now; UNSET for a new Thesis. */
|
|
2810
|
+
tracking: ThesisReturnTracking;
|
|
2811
|
+
/** Ask the author whether to keep the return on. */
|
|
2812
|
+
askSwitch: boolean;
|
|
2813
|
+
/** Directions publishing would store; UNKNOWN could not be judged. */
|
|
2814
|
+
directions: ThesisSelectedDirection[];
|
|
2815
|
+
/** Exits that keep the previous direction (last-leg rule). */
|
|
2816
|
+
keptEntityIds: ThesisID[];
|
|
2817
|
+
/** Publishing this draft fails with THESIS_RETURN_LAST_LEG. */
|
|
2818
|
+
lastLegRemoved: boolean;
|
|
2819
|
+
}
|
|
2820
|
+
interface ThesisAssetCandidatesParams {
|
|
2821
|
+
/** Known catalog IDs to classify; with discover false, only these. */
|
|
2822
|
+
entityIds?: ThesisID[];
|
|
2823
|
+
/** The Thesis being updated: its current directions seed carried tickers. */
|
|
2824
|
+
thesisId?: ThesisID;
|
|
2825
|
+
/** False skips ticker discovery. Defaults to true. */
|
|
2826
|
+
discover?: boolean;
|
|
2754
2827
|
}
|
|
2755
2828
|
interface ThesisAssetCandidate {
|
|
2756
2829
|
entityId: ThesisID;
|
|
@@ -2767,6 +2840,8 @@ interface ThesisAssetMention {
|
|
|
2767
2840
|
}
|
|
2768
2841
|
interface ThesisAssetCandidatesResponse {
|
|
2769
2842
|
mentions: ThesisAssetMention[];
|
|
2843
|
+
/** Null only from a server without the preview. */
|
|
2844
|
+
returnPreview: ThesisReturnPreview | null;
|
|
2770
2845
|
}
|
|
2771
2846
|
/** Canonical server-supported candidate rewrite operation. */
|
|
2772
2847
|
type ThesisRewriteMode = 'reformat' | 'shorten' | 'enrich';
|
|
@@ -2870,6 +2945,8 @@ interface CreateThesisParams {
|
|
|
2870
2945
|
tickers?: string[];
|
|
2871
2946
|
/** Omitted means public, as defined by the REST contract. */
|
|
2872
2947
|
visibility?: 'public' | 'private';
|
|
2948
|
+
/** Thesis return switch; omitted keeps the default (on). */
|
|
2949
|
+
track_return?: boolean;
|
|
2873
2950
|
}
|
|
2874
2951
|
interface UpdateThesisParams {
|
|
2875
2952
|
/** Full media replacement; pass current medias for a text-only update. */
|
|
@@ -2884,9 +2961,10 @@ interface UpdateThesisParams {
|
|
|
2884
2961
|
entity_stances?: ThesisEntityStance[];
|
|
2885
2962
|
/** Required so an update cannot inadvertently publish a private thesis. */
|
|
2886
2963
|
visibility: ThesisVisibility;
|
|
2887
|
-
editorial?: boolean;
|
|
2888
2964
|
archived?: boolean;
|
|
2889
2965
|
note?: string;
|
|
2966
|
+
/** Thesis return switch; omitted keeps the current decision or default. */
|
|
2967
|
+
track_return?: boolean;
|
|
2890
2968
|
}
|
|
2891
2969
|
interface SetThesisArchivedParams {
|
|
2892
2970
|
/** Caller-supplied, stable non-zero UUID for this archive transition. */
|
|
@@ -2909,10 +2987,6 @@ interface ThesisSignalEnabledResponse {
|
|
|
2909
2987
|
interface SetThesisVisibilityParams {
|
|
2910
2988
|
visibility: 'public' | 'private';
|
|
2911
2989
|
}
|
|
2912
|
-
interface CloseThesisParams {
|
|
2913
|
-
expected_author_version_id: ThesisID;
|
|
2914
|
-
note?: string;
|
|
2915
|
-
}
|
|
2916
2990
|
interface RewriteThesisParams {
|
|
2917
2991
|
body: string;
|
|
2918
2992
|
/** Omitted selects the canonical `reformat` mode. */
|
|
@@ -2932,7 +3006,9 @@ declare class ThesesResource {
|
|
|
2932
3006
|
list(params: ListThesesParams): Promise<ThesisListPage>;
|
|
2933
3007
|
/** Related publications always use the current source version. */
|
|
2934
3008
|
related(id: ThesisID, params?: ThesisPageParams): Promise<RelatedThesesPage>;
|
|
2935
|
-
assetCandidates(text: string): Promise<ThesisAssetCandidatesResponse>;
|
|
3009
|
+
assetCandidates(text: string, params?: ThesisAssetCandidatesParams): Promise<ThesisAssetCandidatesResponse>;
|
|
3010
|
+
/** The Thesis return of a Playbook's current publication; detail revalues it. */
|
|
3011
|
+
thesisReturn(id: ThesisID, params?: ThesisReturnParams): Promise<ThesisReturnResult>;
|
|
2936
3012
|
create(params: CreateThesisParams): Promise<ThesisResponse>;
|
|
2937
3013
|
get(id: ThesisID): Promise<ThesisGetResponse>;
|
|
2938
3014
|
getVersion(id: ThesisID, authorVersionID: ThesisID): Promise<ThesisResponse>;
|
|
@@ -2944,8 +3020,6 @@ declare class ThesesResource {
|
|
|
2944
3020
|
versions: Thesis[];
|
|
2945
3021
|
next_cursor: string;
|
|
2946
3022
|
}>;
|
|
2947
|
-
/** Deletes only the selected Update; never falls back to whole-Thesis deletion. */
|
|
2948
|
-
deleteUpdate(id: ThesisID, authorVersionID: ThesisID, expectedAuthorVersionID: ThesisID): Promise<ThesisResponse>;
|
|
2949
3023
|
signals(id: ThesisID, params?: ListThesisSignalsParams): Promise<ThesisSignalsResponse>;
|
|
2950
3024
|
update(id: ThesisID, params: UpdateThesisParams): Promise<ThesisResponse>;
|
|
2951
3025
|
/** Archive or restore the current version without asking callers to resend its body. */
|
|
@@ -2953,8 +3027,6 @@ declare class ThesesResource {
|
|
|
2953
3027
|
setStarred(id: ThesisID, isStarred: boolean): Promise<ThesisStarredResponse>;
|
|
2954
3028
|
setSignalEnabled(id: ThesisID, enabled: boolean): Promise<ThesisSignalEnabledResponse>;
|
|
2955
3029
|
setVisibility(id: ThesisID, params: SetThesisVisibilityParams): Promise<ThesisResponse>;
|
|
2956
|
-
close(id: ThesisID, params: CloseThesisParams): Promise<ThesisResponse>;
|
|
2957
|
-
delete(id: ThesisID): Promise<Record<string, never>>;
|
|
2958
3030
|
rewrite(params: RewriteThesisParams): Promise<RewriteThesisResponse>;
|
|
2959
3031
|
}
|
|
2960
3032
|
|
|
@@ -3240,4 +3312,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
|
|
|
3240
3312
|
/** SDK version, injected at build time from package.json. */
|
|
3241
3313
|
declare const VERSION: string;
|
|
3242
3314
|
|
|
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
|
|
3315
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -2743,14 +2743,87 @@ interface RelatedThesesPage {
|
|
|
2743
2743
|
}[];
|
|
2744
2744
|
nextCursor: string | null;
|
|
2745
2745
|
}
|
|
2746
|
+
interface ThesisReturnParams {
|
|
2747
|
+
/** Revalue at the latest prices and include each Update's positions. */
|
|
2748
|
+
detail?: boolean;
|
|
2749
|
+
}
|
|
2750
|
+
/** A position of one Update, as ThesisPositionReturn in GraphQL. */
|
|
2751
|
+
interface ThesisPositionReturn {
|
|
2752
|
+
entityId: string;
|
|
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;
|
|
2762
|
+
}
|
|
2763
|
+
/** One Update on the return chart. */
|
|
2764
|
+
interface ThesisUpdateReturn {
|
|
2765
|
+
authorVersionId: string;
|
|
2766
|
+
publishedAtMs: number;
|
|
2767
|
+
startValue: number;
|
|
2768
|
+
updateReturn: number | null;
|
|
2769
|
+
positions: ThesisPositionReturn[];
|
|
2770
|
+
}
|
|
2771
|
+
/** The Thesis return; values are fractions (0.05 is +5%). */
|
|
2772
|
+
interface ThesisReturnValue {
|
|
2773
|
+
live: boolean;
|
|
2774
|
+
value: number;
|
|
2775
|
+
firstFillAtMs: number | null;
|
|
2776
|
+
pricedAtMs: number | null;
|
|
2777
|
+
stale: boolean;
|
|
2778
|
+
computedAtMs: number;
|
|
2779
|
+
updates: ThesisUpdateReturn[];
|
|
2780
|
+
}
|
|
2781
|
+
interface ThesisReturnResult {
|
|
2782
|
+
playbookId: string;
|
|
2783
|
+
/** UNSET, ON or OFF; null when the current publication is not readable. */
|
|
2784
|
+
returnTracking: 'UNSET' | 'ON' | 'OFF' | null;
|
|
2785
|
+
/** Null when the Thesis is not tracked. */
|
|
2786
|
+
thesisReturn: ThesisReturnValue | null;
|
|
2787
|
+
}
|
|
2746
2788
|
|
|
2747
2789
|
/** Thesis IDs are signed int64 values represented losslessly as decimal strings. */
|
|
2748
2790
|
type ThesisID = string;
|
|
2749
2791
|
type ThesisVisibility = 'public' | 'private' | 'paid';
|
|
2750
|
-
|
|
2792
|
+
/** unknown: not judged; none: judged without a current long or short. */
|
|
2793
|
+
type ThesisAssetStance = 'unknown' | 'bullish' | 'bearish' | 'none';
|
|
2751
2794
|
interface ThesisEntityStance {
|
|
2752
2795
|
entity_id: ThesisID;
|
|
2753
2796
|
stance: ThesisAssetStance;
|
|
2797
|
+
/** Full direction in responses; stance reports none as unknown there. */
|
|
2798
|
+
direction?: ThesisAssetStance;
|
|
2799
|
+
}
|
|
2800
|
+
/** GraphQL direction, including NONE. */
|
|
2801
|
+
type ThesisDirection = 'UNKNOWN' | 'BULLISH' | 'BEARISH' | 'NONE';
|
|
2802
|
+
interface ThesisSelectedDirection {
|
|
2803
|
+
entityId: ThesisID;
|
|
2804
|
+
direction: ThesisDirection;
|
|
2805
|
+
}
|
|
2806
|
+
type ThesisReturnTracking = 'UNSET' | 'ON' | 'OFF';
|
|
2807
|
+
/** What publishing the selected entities with their directions would store. */
|
|
2808
|
+
interface ThesisReturnPreview {
|
|
2809
|
+
/** The Thesis's return switch now; UNSET for a new Thesis. */
|
|
2810
|
+
tracking: ThesisReturnTracking;
|
|
2811
|
+
/** Ask the author whether to keep the return on. */
|
|
2812
|
+
askSwitch: boolean;
|
|
2813
|
+
/** Directions publishing would store; UNKNOWN could not be judged. */
|
|
2814
|
+
directions: ThesisSelectedDirection[];
|
|
2815
|
+
/** Exits that keep the previous direction (last-leg rule). */
|
|
2816
|
+
keptEntityIds: ThesisID[];
|
|
2817
|
+
/** Publishing this draft fails with THESIS_RETURN_LAST_LEG. */
|
|
2818
|
+
lastLegRemoved: boolean;
|
|
2819
|
+
}
|
|
2820
|
+
interface ThesisAssetCandidatesParams {
|
|
2821
|
+
/** Known catalog IDs to classify; with discover false, only these. */
|
|
2822
|
+
entityIds?: ThesisID[];
|
|
2823
|
+
/** The Thesis being updated: its current directions seed carried tickers. */
|
|
2824
|
+
thesisId?: ThesisID;
|
|
2825
|
+
/** False skips ticker discovery. Defaults to true. */
|
|
2826
|
+
discover?: boolean;
|
|
2754
2827
|
}
|
|
2755
2828
|
interface ThesisAssetCandidate {
|
|
2756
2829
|
entityId: ThesisID;
|
|
@@ -2767,6 +2840,8 @@ interface ThesisAssetMention {
|
|
|
2767
2840
|
}
|
|
2768
2841
|
interface ThesisAssetCandidatesResponse {
|
|
2769
2842
|
mentions: ThesisAssetMention[];
|
|
2843
|
+
/** Null only from a server without the preview. */
|
|
2844
|
+
returnPreview: ThesisReturnPreview | null;
|
|
2770
2845
|
}
|
|
2771
2846
|
/** Canonical server-supported candidate rewrite operation. */
|
|
2772
2847
|
type ThesisRewriteMode = 'reformat' | 'shorten' | 'enrich';
|
|
@@ -2870,6 +2945,8 @@ interface CreateThesisParams {
|
|
|
2870
2945
|
tickers?: string[];
|
|
2871
2946
|
/** Omitted means public, as defined by the REST contract. */
|
|
2872
2947
|
visibility?: 'public' | 'private';
|
|
2948
|
+
/** Thesis return switch; omitted keeps the default (on). */
|
|
2949
|
+
track_return?: boolean;
|
|
2873
2950
|
}
|
|
2874
2951
|
interface UpdateThesisParams {
|
|
2875
2952
|
/** Full media replacement; pass current medias for a text-only update. */
|
|
@@ -2884,9 +2961,10 @@ interface UpdateThesisParams {
|
|
|
2884
2961
|
entity_stances?: ThesisEntityStance[];
|
|
2885
2962
|
/** Required so an update cannot inadvertently publish a private thesis. */
|
|
2886
2963
|
visibility: ThesisVisibility;
|
|
2887
|
-
editorial?: boolean;
|
|
2888
2964
|
archived?: boolean;
|
|
2889
2965
|
note?: string;
|
|
2966
|
+
/** Thesis return switch; omitted keeps the current decision or default. */
|
|
2967
|
+
track_return?: boolean;
|
|
2890
2968
|
}
|
|
2891
2969
|
interface SetThesisArchivedParams {
|
|
2892
2970
|
/** Caller-supplied, stable non-zero UUID for this archive transition. */
|
|
@@ -2909,10 +2987,6 @@ interface ThesisSignalEnabledResponse {
|
|
|
2909
2987
|
interface SetThesisVisibilityParams {
|
|
2910
2988
|
visibility: 'public' | 'private';
|
|
2911
2989
|
}
|
|
2912
|
-
interface CloseThesisParams {
|
|
2913
|
-
expected_author_version_id: ThesisID;
|
|
2914
|
-
note?: string;
|
|
2915
|
-
}
|
|
2916
2990
|
interface RewriteThesisParams {
|
|
2917
2991
|
body: string;
|
|
2918
2992
|
/** Omitted selects the canonical `reformat` mode. */
|
|
@@ -2932,7 +3006,9 @@ declare class ThesesResource {
|
|
|
2932
3006
|
list(params: ListThesesParams): Promise<ThesisListPage>;
|
|
2933
3007
|
/** Related publications always use the current source version. */
|
|
2934
3008
|
related(id: ThesisID, params?: ThesisPageParams): Promise<RelatedThesesPage>;
|
|
2935
|
-
assetCandidates(text: string): Promise<ThesisAssetCandidatesResponse>;
|
|
3009
|
+
assetCandidates(text: string, params?: ThesisAssetCandidatesParams): Promise<ThesisAssetCandidatesResponse>;
|
|
3010
|
+
/** The Thesis return of a Playbook's current publication; detail revalues it. */
|
|
3011
|
+
thesisReturn(id: ThesisID, params?: ThesisReturnParams): Promise<ThesisReturnResult>;
|
|
2936
3012
|
create(params: CreateThesisParams): Promise<ThesisResponse>;
|
|
2937
3013
|
get(id: ThesisID): Promise<ThesisGetResponse>;
|
|
2938
3014
|
getVersion(id: ThesisID, authorVersionID: ThesisID): Promise<ThesisResponse>;
|
|
@@ -2944,8 +3020,6 @@ declare class ThesesResource {
|
|
|
2944
3020
|
versions: Thesis[];
|
|
2945
3021
|
next_cursor: string;
|
|
2946
3022
|
}>;
|
|
2947
|
-
/** Deletes only the selected Update; never falls back to whole-Thesis deletion. */
|
|
2948
|
-
deleteUpdate(id: ThesisID, authorVersionID: ThesisID, expectedAuthorVersionID: ThesisID): Promise<ThesisResponse>;
|
|
2949
3023
|
signals(id: ThesisID, params?: ListThesisSignalsParams): Promise<ThesisSignalsResponse>;
|
|
2950
3024
|
update(id: ThesisID, params: UpdateThesisParams): Promise<ThesisResponse>;
|
|
2951
3025
|
/** Archive or restore the current version without asking callers to resend its body. */
|
|
@@ -2953,8 +3027,6 @@ declare class ThesesResource {
|
|
|
2953
3027
|
setStarred(id: ThesisID, isStarred: boolean): Promise<ThesisStarredResponse>;
|
|
2954
3028
|
setSignalEnabled(id: ThesisID, enabled: boolean): Promise<ThesisSignalEnabledResponse>;
|
|
2955
3029
|
setVisibility(id: ThesisID, params: SetThesisVisibilityParams): Promise<ThesisResponse>;
|
|
2956
|
-
close(id: ThesisID, params: CloseThesisParams): Promise<ThesisResponse>;
|
|
2957
|
-
delete(id: ThesisID): Promise<Record<string, never>>;
|
|
2958
3030
|
rewrite(params: RewriteThesisParams): Promise<RewriteThesisResponse>;
|
|
2959
3031
|
}
|
|
2960
3032
|
|
|
@@ -3240,4 +3312,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
|
|
|
3240
3312
|
/** SDK version, injected at build time from package.json. */
|
|
3241
3313
|
declare const VERSION: string;
|
|
3242
3314
|
|
|
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
|
|
3315
|
+
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 };
|