@alva-ai/toolkit 0.28.1-beta.1 → 0.29.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
@@ -549,6 +549,8 @@ interface PlaybookDraftResponse {
549
549
  playbook_path: string;
550
550
  }
551
551
  interface PlaybookReleaseRequest {
552
+ /** Explicit consent to deliver bundled non-public Feeds to the Playbook audience. */
553
+ confirm_bundled_feed_exposure?: boolean;
552
554
  name: string;
553
555
  version: string;
554
556
  feeds: Array<{
@@ -2351,6 +2353,48 @@ interface ThesisGetResponse extends ThesisResponse {
2351
2353
  author: ThesisAuthor;
2352
2354
  entities: ThesisEntity[];
2353
2355
  }
2356
+ interface ThesisResearchStatus {
2357
+ state: string;
2358
+ pending_work: number;
2359
+ read_complete: boolean;
2360
+ last_attempt_ms?: number;
2361
+ last_completed_ms?: number;
2362
+ }
2363
+ interface ThesisSignalEvidenceExcerpt {
2364
+ text: string;
2365
+ omitted_before: boolean;
2366
+ omitted_after: boolean;
2367
+ }
2368
+ interface ThesisSignalSource {
2369
+ title: string;
2370
+ url?: string;
2371
+ published_at_ms?: number;
2372
+ }
2373
+ interface ThesisSignal {
2374
+ id: ThesisID;
2375
+ thesis_id: ThesisID;
2376
+ author_version_id: ThesisID;
2377
+ statement_snapshot: string;
2378
+ stance: string;
2379
+ explanation: string;
2380
+ information_kind: string;
2381
+ evidence_excerpt?: ThesisSignalEvidenceExcerpt;
2382
+ source: ThesisSignalSource;
2383
+ }
2384
+ interface ThesisSignalEntry {
2385
+ feed_entry_id: ThesisID;
2386
+ cursor: string;
2387
+ signal: ThesisSignal;
2388
+ }
2389
+ interface ListThesisSignalsParams {
2390
+ first?: number;
2391
+ cursor?: string;
2392
+ }
2393
+ interface ThesisSignalsResponse {
2394
+ research: ThesisResearchStatus;
2395
+ entries: ThesisSignalEntry[];
2396
+ next_cursor: string;
2397
+ }
2354
2398
  interface CreateThesisParams {
2355
2399
  /** Caller-supplied, stable non-zero UUID. Reuse it only to resolve ambiguity. */
2356
2400
  request_id: string;
@@ -2397,6 +2441,8 @@ declare class ThesesResource {
2397
2441
  constructor(client: AlvaClient);
2398
2442
  create(params: CreateThesisParams): Promise<ThesisResponse>;
2399
2443
  get(id: ThesisID): Promise<ThesisGetResponse>;
2444
+ getVersion(id: ThesisID, authorVersionID: ThesisID): Promise<ThesisResponse>;
2445
+ signals(id: ThesisID, params?: ListThesisSignalsParams): Promise<ThesisSignalsResponse>;
2400
2446
  update(id: ThesisID, params: UpdateThesisParams): Promise<ThesisResponse>;
2401
2447
  setVisibility(id: ThesisID, params: SetThesisVisibilityParams): Promise<ThesisResponse>;
2402
2448
  close(id: ThesisID, params: CloseThesisParams): Promise<ThesisResponse>;
@@ -2664,4 +2710,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
2664
2710
  /** SDK version, injected at build time from package.json. */
2665
2711
  declare const VERSION: string;
2666
2712
 
2667
- 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, type CompanyPostEarningsSummary, type CompanyPreEarningsAnalysis, type CreateAllowanceParams, type CreateAllowanceResponse, 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 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 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 RevokeAllowanceParams, type RevokeAllowanceResponse, type RewriteThesisParams, type RewriteThesisResponse, SUBSCRIBE_MANAGE_MESSAGE, SUBSCRIBE_PROPOSE_MESSAGE, SUBSCRIBE_RESULT_MESSAGE, SchedulesResource, 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 ThesisAuthor, type ThesisEntity, type ThesisGetResponse, type ThesisID, type ThesisResponse, type ThesisRewriteMode, 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, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, subscribe, udf };
2713
+ 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, type CompanyPostEarningsSummary, type CompanyPreEarningsAnalysis, type CreateAllowanceParams, type CreateAllowanceResponse, 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 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 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 RevokeAllowanceParams, type RevokeAllowanceResponse, type RewriteThesisParams, type RewriteThesisResponse, SUBSCRIBE_MANAGE_MESSAGE, SUBSCRIBE_PROPOSE_MESSAGE, SUBSCRIBE_RESULT_MESSAGE, SchedulesResource, 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 ThesisAuthor, type ThesisEntity, type ThesisGetResponse, type ThesisID, type ThesisResearchStatus, type ThesisResponse, type ThesisRewriteMode, type ThesisSignal, type ThesisSignalEntry, type ThesisSignalEvidenceExcerpt, type ThesisSignalSource, type ThesisSignalsResponse, 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, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, subscribe, udf };
package/dist/index.d.ts CHANGED
@@ -549,6 +549,8 @@ interface PlaybookDraftResponse {
549
549
  playbook_path: string;
550
550
  }
551
551
  interface PlaybookReleaseRequest {
552
+ /** Explicit consent to deliver bundled non-public Feeds to the Playbook audience. */
553
+ confirm_bundled_feed_exposure?: boolean;
552
554
  name: string;
553
555
  version: string;
554
556
  feeds: Array<{
@@ -2351,6 +2353,48 @@ interface ThesisGetResponse extends ThesisResponse {
2351
2353
  author: ThesisAuthor;
2352
2354
  entities: ThesisEntity[];
2353
2355
  }
2356
+ interface ThesisResearchStatus {
2357
+ state: string;
2358
+ pending_work: number;
2359
+ read_complete: boolean;
2360
+ last_attempt_ms?: number;
2361
+ last_completed_ms?: number;
2362
+ }
2363
+ interface ThesisSignalEvidenceExcerpt {
2364
+ text: string;
2365
+ omitted_before: boolean;
2366
+ omitted_after: boolean;
2367
+ }
2368
+ interface ThesisSignalSource {
2369
+ title: string;
2370
+ url?: string;
2371
+ published_at_ms?: number;
2372
+ }
2373
+ interface ThesisSignal {
2374
+ id: ThesisID;
2375
+ thesis_id: ThesisID;
2376
+ author_version_id: ThesisID;
2377
+ statement_snapshot: string;
2378
+ stance: string;
2379
+ explanation: string;
2380
+ information_kind: string;
2381
+ evidence_excerpt?: ThesisSignalEvidenceExcerpt;
2382
+ source: ThesisSignalSource;
2383
+ }
2384
+ interface ThesisSignalEntry {
2385
+ feed_entry_id: ThesisID;
2386
+ cursor: string;
2387
+ signal: ThesisSignal;
2388
+ }
2389
+ interface ListThesisSignalsParams {
2390
+ first?: number;
2391
+ cursor?: string;
2392
+ }
2393
+ interface ThesisSignalsResponse {
2394
+ research: ThesisResearchStatus;
2395
+ entries: ThesisSignalEntry[];
2396
+ next_cursor: string;
2397
+ }
2354
2398
  interface CreateThesisParams {
2355
2399
  /** Caller-supplied, stable non-zero UUID. Reuse it only to resolve ambiguity. */
2356
2400
  request_id: string;
@@ -2397,6 +2441,8 @@ declare class ThesesResource {
2397
2441
  constructor(client: AlvaClient);
2398
2442
  create(params: CreateThesisParams): Promise<ThesisResponse>;
2399
2443
  get(id: ThesisID): Promise<ThesisGetResponse>;
2444
+ getVersion(id: ThesisID, authorVersionID: ThesisID): Promise<ThesisResponse>;
2445
+ signals(id: ThesisID, params?: ListThesisSignalsParams): Promise<ThesisSignalsResponse>;
2400
2446
  update(id: ThesisID, params: UpdateThesisParams): Promise<ThesisResponse>;
2401
2447
  setVisibility(id: ThesisID, params: SetThesisVisibilityParams): Promise<ThesisResponse>;
2402
2448
  close(id: ThesisID, params: CloseThesisParams): Promise<ThesisResponse>;
@@ -2664,4 +2710,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
2664
2710
  /** SDK version, injected at build time from package.json. */
2665
2711
  declare const VERSION: string;
2666
2712
 
2667
- 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, type CompanyPostEarningsSummary, type CompanyPreEarningsAnalysis, type CreateAllowanceParams, type CreateAllowanceResponse, 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 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 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 RevokeAllowanceParams, type RevokeAllowanceResponse, type RewriteThesisParams, type RewriteThesisResponse, SUBSCRIBE_MANAGE_MESSAGE, SUBSCRIBE_PROPOSE_MESSAGE, SUBSCRIBE_RESULT_MESSAGE, SchedulesResource, 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 ThesisAuthor, type ThesisEntity, type ThesisGetResponse, type ThesisID, type ThesisResponse, type ThesisRewriteMode, 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, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, subscribe, udf };
2713
+ 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, type CompanyPostEarningsSummary, type CompanyPreEarningsAnalysis, type CreateAllowanceParams, type CreateAllowanceResponse, 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 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 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 RevokeAllowanceParams, type RevokeAllowanceResponse, type RewriteThesisParams, type RewriteThesisResponse, SUBSCRIBE_MANAGE_MESSAGE, SUBSCRIBE_PROPOSE_MESSAGE, SUBSCRIBE_RESULT_MESSAGE, SchedulesResource, 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 ThesisAuthor, type ThesisEntity, type ThesisGetResponse, type ThesisID, type ThesisResearchStatus, type ThesisResponse, type ThesisRewriteMode, type ThesisSignal, type ThesisSignalEntry, type ThesisSignalEvidenceExcerpt, type ThesisSignalSource, type ThesisSignalsResponse, 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, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, subscribe, udf };
package/dist/index.js CHANGED
@@ -568,7 +568,8 @@ var ReleaseResource = class {
568
568
  version: params.version,
569
569
  feeds: params.feeds,
570
570
  changelog: params.changelog,
571
- readme_url: params.readme_url
571
+ readme_url: params.readme_url,
572
+ confirm_bundled_feed_exposure: params.confirm_bundled_feed_exposure
572
573
  }
573
574
  });
574
575
  }
@@ -4091,6 +4092,47 @@ var ThesesResource = class {
4091
4092
  await this.client._request("GET", `/api/v1/theses/${requireID(id, "id")}`)
4092
4093
  );
4093
4094
  }
4095
+ async getVersion(id, authorVersionID) {
4096
+ this.client._requireAuth();
4097
+ const thesisID = requireID(id, "id");
4098
+ const versionID = requireID(authorVersionID, "author_version_id");
4099
+ const response = thesisResponse(
4100
+ await this.client._request(
4101
+ "GET",
4102
+ `/api/v1/theses/${thesisID}/versions/${versionID}`
4103
+ )
4104
+ );
4105
+ if (response.thesis.id !== thesisID || response.thesis.author_version_id !== versionID) {
4106
+ throw invalidResponse2(
4107
+ "version response must match the requested thesis and author version"
4108
+ );
4109
+ }
4110
+ return response;
4111
+ }
4112
+ async signals(id, params = {}) {
4113
+ this.client._requireAuth();
4114
+ const first = params.first ?? 20;
4115
+ if (!Number.isInteger(first) || first < 1 || first > 50) {
4116
+ throw invalidArgument("first must be an integer between 1 and 50");
4117
+ }
4118
+ if (params.cursor !== void 0 && typeof params.cursor !== "string") {
4119
+ throw invalidArgument("cursor must be a string");
4120
+ }
4121
+ return thesisSignalsResponse(
4122
+ await this.client._request(
4123
+ "GET",
4124
+ `/api/v1/theses/${requireID(id, "id")}/signals`,
4125
+ {
4126
+ query: {
4127
+ first,
4128
+ ...params.cursor === void 0 ? {} : { cursor: params.cursor }
4129
+ }
4130
+ }
4131
+ ),
4132
+ id,
4133
+ first
4134
+ );
4135
+ }
4094
4136
  async update(id, params) {
4095
4137
  this.client._requireAuth();
4096
4138
  const body = updateBody(params);
@@ -4262,6 +4304,112 @@ function thesisGetResponse(response) {
4262
4304
  });
4263
4305
  return { thesis: base.thesis, author, entities };
4264
4306
  }
4307
+ function thesisSignalsResponse(response, thesisID, first) {
4308
+ if (!isRecord2(response) || !isRecord2(response.research) || !Array.isArray(response.entries) || response.entries.length > first) {
4309
+ throw invalidResponse2("invalid Signal history response");
4310
+ }
4311
+ const research = response.research;
4312
+ const status = {
4313
+ state: responseText(research.state, "research.state"),
4314
+ pending_work: responseNonnegativeInteger(
4315
+ research.pending_work,
4316
+ "research.pending_work"
4317
+ ),
4318
+ read_complete: responseBoolean(
4319
+ research.read_complete,
4320
+ "research.read_complete"
4321
+ )
4322
+ };
4323
+ if (research.last_attempt_ms !== void 0)
4324
+ status.last_attempt_ms = responseNonnegativeInteger(
4325
+ research.last_attempt_ms,
4326
+ "research.last_attempt_ms"
4327
+ );
4328
+ if (research.last_completed_ms !== void 0)
4329
+ status.last_completed_ms = responseNonnegativeInteger(
4330
+ research.last_completed_ms,
4331
+ "research.last_completed_ms"
4332
+ );
4333
+ const entries = response.entries.map((raw) => {
4334
+ if (!isRecord2(raw) || !isRecord2(raw.signal) || !isRecord2(raw.signal.source)) {
4335
+ throw invalidResponse2("entry must include a Signal and source");
4336
+ }
4337
+ const signal = raw.signal;
4338
+ const source = signal.source;
4339
+ const signalID = responseID(signal.thesis_id, "signal.thesis_id");
4340
+ if (signalID !== thesisID)
4341
+ throw invalidResponse2("Signal belongs to another Thesis");
4342
+ const cursor = responseNonemptyText(raw.cursor, "entry.cursor");
4343
+ const mappedSource = {
4344
+ title: responseText(source.title, "source.title")
4345
+ };
4346
+ if (source.url !== void 0)
4347
+ mappedSource.url = responseText(source.url, "source.url");
4348
+ if (source.published_at_ms !== void 0)
4349
+ mappedSource.published_at_ms = responseNonnegativeInteger(
4350
+ source.published_at_ms,
4351
+ "source.published_at_ms"
4352
+ );
4353
+ const mappedSignal = {
4354
+ id: responseID(signal.id, "signal.id"),
4355
+ thesis_id: signalID,
4356
+ author_version_id: responseID(
4357
+ signal.author_version_id,
4358
+ "signal.author_version_id"
4359
+ ),
4360
+ statement_snapshot: responseNonemptyText(
4361
+ signal.statement_snapshot,
4362
+ "signal.statement_snapshot"
4363
+ ),
4364
+ stance: responseText(signal.stance, "signal.stance"),
4365
+ explanation: responseText(signal.explanation, "signal.explanation"),
4366
+ information_kind: responseText(
4367
+ signal.information_kind,
4368
+ "signal.information_kind"
4369
+ ),
4370
+ source: mappedSource
4371
+ };
4372
+ if (signal.evidence_excerpt !== void 0) {
4373
+ if (!isRecord2(signal.evidence_excerpt))
4374
+ throw invalidResponse2("invalid evidence excerpt");
4375
+ mappedSignal.evidence_excerpt = {
4376
+ text: responseNonemptyText(
4377
+ signal.evidence_excerpt.text,
4378
+ "evidence_excerpt.text"
4379
+ ),
4380
+ omitted_before: responseBoolean(
4381
+ signal.evidence_excerpt.omitted_before,
4382
+ "evidence_excerpt.omitted_before"
4383
+ ),
4384
+ omitted_after: responseBoolean(
4385
+ signal.evidence_excerpt.omitted_after,
4386
+ "evidence_excerpt.omitted_after"
4387
+ )
4388
+ };
4389
+ }
4390
+ return {
4391
+ feed_entry_id: responseID(raw.feed_entry_id, "feed_entry_id"),
4392
+ cursor,
4393
+ signal: mappedSignal
4394
+ };
4395
+ });
4396
+ const nextCursor = responseText(response.next_cursor, "next_cursor");
4397
+ if (nextCursor && nextCursor !== entries[entries.length - 1]?.cursor) {
4398
+ throw invalidResponse2("next_cursor must match the final entry");
4399
+ }
4400
+ return { research: status, entries, next_cursor: nextCursor };
4401
+ }
4402
+ function responseNonnegativeInteger(value, field) {
4403
+ if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 0) {
4404
+ throw invalidResponse2(field + " must be a nonnegative safe integer");
4405
+ }
4406
+ return value;
4407
+ }
4408
+ function responseNonemptyText(value, field) {
4409
+ const valueText = responseText(value, field);
4410
+ if (!valueText.trim()) throw invalidResponse2(field + " must be nonempty");
4411
+ return valueText;
4412
+ }
4265
4413
  function requireRequestID(value) {
4266
4414
  if (!UUID.test(value) || /^0{8}-0{4}-0{4}-0{4}-0{12}$/i.test(value)) {
4267
4415
  throw invalidArgument("request_id must be a non-zero RFC 4122 UUID");
@@ -5252,7 +5400,7 @@ var installPlaybookRuntime = (targetWindow) => {
5252
5400
  };
5253
5401
 
5254
5402
  // src/index.ts
5255
- var VERSION = true ? "0.28.1-beta.1" : "dev";
5403
+ var VERSION = true ? "0.29.0" : "dev";
5256
5404
  export {
5257
5405
  AlertsResource,
5258
5406
  AlvaClient,