@alva-ai/toolkit 0.38.0-beta.1 → 0.38.0-beta.2

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
@@ -2265,6 +2265,10 @@ interface Thesis {
2265
2265
  interface ThesisResponse {
2266
2266
  thesis: Thesis;
2267
2267
  }
2268
+ /** A created Thesis and its clickable web url, e.g. `https://alva.ai/thesis/123`. */
2269
+ interface ThesisCreateResponse extends ThesisResponse {
2270
+ url: string;
2271
+ }
2268
2272
  interface ThesisAuthor {
2269
2273
  id: ThesisID;
2270
2274
  kind: string;
@@ -2427,7 +2431,7 @@ declare class ThesesResource {
2427
2431
  * things the Thesis depends on, or that would show it right or wrong.
2428
2432
  */
2429
2433
  watchpoints(id: ThesisID): Promise<ThesisWatchpointsResult>;
2430
- create(params: CreateThesisParams): Promise<ThesisResponse>;
2434
+ create(params: CreateThesisParams): Promise<ThesisCreateResponse>;
2431
2435
  get(id: ThesisID): Promise<ThesisGetResponse>;
2432
2436
  getVersion(id: ThesisID, authorVersionID: ThesisID): Promise<ThesisResponse>;
2433
2437
  /** Lists reader-visible Updates, with editorial revisions folded together. */
@@ -3431,4 +3435,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
3431
3435
  /** SDK version, injected at build time from package.json. */
3432
3436
  declare const VERSION: string;
3433
3437
 
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 };
3438
+ 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 ThesisCreateResponse, 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
@@ -2265,6 +2265,10 @@ interface Thesis {
2265
2265
  interface ThesisResponse {
2266
2266
  thesis: Thesis;
2267
2267
  }
2268
+ /** A created Thesis and its clickable web url, e.g. `https://alva.ai/thesis/123`. */
2269
+ interface ThesisCreateResponse extends ThesisResponse {
2270
+ url: string;
2271
+ }
2268
2272
  interface ThesisAuthor {
2269
2273
  id: ThesisID;
2270
2274
  kind: string;
@@ -2427,7 +2431,7 @@ declare class ThesesResource {
2427
2431
  * things the Thesis depends on, or that would show it right or wrong.
2428
2432
  */
2429
2433
  watchpoints(id: ThesisID): Promise<ThesisWatchpointsResult>;
2430
- create(params: CreateThesisParams): Promise<ThesisResponse>;
2434
+ create(params: CreateThesisParams): Promise<ThesisCreateResponse>;
2431
2435
  get(id: ThesisID): Promise<ThesisGetResponse>;
2432
2436
  getVersion(id: ThesisID, authorVersionID: ThesisID): Promise<ThesisResponse>;
2433
2437
  /** Lists reader-visible Updates, with editorial revisions folded together. */
@@ -3431,4 +3435,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
3431
3435
  /** SDK version, injected at build time from package.json. */
3432
3436
  declare const VERSION: string;
3433
3437
 
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 };
3438
+ 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 ThesisCreateResponse, 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.js CHANGED
@@ -1297,6 +1297,20 @@ function graphQLErrorMessage(errors) {
1297
1297
  return messages.length > 0 ? messages.join("; ") : "GraphQL request failed";
1298
1298
  }
1299
1299
 
1300
+ // src/resources/webOrigin.ts
1301
+ function webOriginFromApiBase(apiBaseUrl) {
1302
+ try {
1303
+ const host = new URL(apiBaseUrl).hostname;
1304
+ const match = /^api-llm\.([a-z0-9-]+)\.alva\.ai$/i.exec(host);
1305
+ if (match) {
1306
+ const env = match[1].toLowerCase();
1307
+ return env === "prd" ? "https://alva.ai" : `https://${env}.alva.ai`;
1308
+ }
1309
+ } catch {
1310
+ }
1311
+ return "https://alva.ai";
1312
+ }
1313
+
1300
1314
  // src/resources/playbooks.ts
1301
1315
  var PLAYBOOK_VISIBILITIES = [
1302
1316
  "public",
@@ -1447,18 +1461,6 @@ var PlaybooksResource = class {
1447
1461
  );
1448
1462
  }
1449
1463
  };
1450
- function webOriginFromApiBase(apiBaseUrl) {
1451
- try {
1452
- const host = new URL(apiBaseUrl).hostname;
1453
- const match = /^api-llm\.([a-z0-9-]+)\.alva\.ai$/i.exec(host);
1454
- if (match) {
1455
- const env = match[1].toLowerCase();
1456
- return env === "prd" ? "https://alva.ai" : `https://${env}.alva.ai`;
1457
- }
1458
- } catch {
1459
- }
1460
- return "https://alva.ai";
1461
- }
1462
1464
  function toAgentPlaybook(raw, webOrigin) {
1463
1465
  const username = raw.creator?.name ?? "";
1464
1466
  const name = raw.name ?? "";
@@ -3272,7 +3274,8 @@ var ThesesResource = class {
3272
3274
  await this.client._request("POST", "/api/v1/theses", { body })
3273
3275
  );
3274
3276
  requireKeptWeights(body.entity_stances, response.thesis.entity_stances);
3275
- return response;
3277
+ const webOrigin = webOriginFromApiBase(this.client.baseUrl);
3278
+ return { ...response, url: `${webOrigin}/thesis/${response.thesis.id}` };
3276
3279
  }
3277
3280
  async get(id) {
3278
3281
  this.client._requireAuth();
@@ -7403,7 +7406,7 @@ var installPlaybookRuntime = (targetWindow) => {
7403
7406
  };
7404
7407
 
7405
7408
  // src/index.ts
7406
- var VERSION = true ? "0.38.0-beta.1" : "dev";
7409
+ var VERSION = true ? "0.38.0-beta.2" : "dev";
7407
7410
  export {
7408
7411
  AlertsResource,
7409
7412
  AlvaClient,