@joai/warps 4.32.0 → 4.34.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
@@ -530,6 +530,10 @@ type WarpNextConfig = WarpNextEntry | WarpNextEntry[] | {
530
530
  success?: WarpNextEntry | WarpNextEntry[];
531
531
  error?: WarpNextEntry | WarpNextEntry[];
532
532
  };
533
+ type WarpRelatedEntry = string | {
534
+ identifier: string;
535
+ bot?: string;
536
+ };
533
537
  type Warp = {
534
538
  protocol: string;
535
539
  chain?: WarpChainName;
@@ -545,7 +549,7 @@ type Warp = {
545
549
  output?: Record<WarpOutputName, WarpResulutionPath>;
546
550
  messages?: Record<WarpMessageName, WarpText>;
547
551
  ui?: string;
548
- related?: string[];
552
+ related?: WarpRelatedEntry[];
549
553
  schedule?: WarpSchedule;
550
554
  sections?: WarpSection[];
551
555
  meta?: WarpMeta;
@@ -590,6 +594,7 @@ type WarpStateAction = {
590
594
  auto?: boolean;
591
595
  next?: WarpNextConfig;
592
596
  when?: string;
597
+ messages?: Record<WarpMessageName, WarpText>;
593
598
  };
594
599
  type WarpMountAction = {
595
600
  type: 'mount';
@@ -600,6 +605,7 @@ type WarpMountAction = {
600
605
  auto?: boolean;
601
606
  next?: WarpNextConfig;
602
607
  when?: string;
608
+ messages?: Record<WarpMessageName, WarpText>;
603
609
  };
604
610
  type WarpUnmountAction = {
605
611
  type: 'unmount';
@@ -610,6 +616,7 @@ type WarpUnmountAction = {
610
616
  auto?: boolean;
611
617
  next?: WarpNextConfig;
612
618
  when?: string;
619
+ messages?: Record<WarpMessageName, WarpText>;
613
620
  };
614
621
  type WarpLoopAction = {
615
622
  type: 'loop';
@@ -619,6 +626,7 @@ type WarpLoopAction = {
619
626
  auto?: boolean;
620
627
  next?: WarpNextConfig;
621
628
  when?: string;
629
+ messages?: Record<WarpMessageName, WarpText>;
622
630
  delay?: number;
623
631
  maxIterations?: number;
624
632
  };
@@ -631,6 +639,7 @@ type WarpInlineAction = {
631
639
  auto?: boolean;
632
640
  silent?: boolean;
633
641
  when?: string;
642
+ messages?: Record<WarpMessageName, WarpText>;
634
643
  output?: Record<string, string>;
635
644
  };
636
645
  type WarpTransferAction = {
@@ -645,6 +654,7 @@ type WarpTransferAction = {
645
654
  auto?: boolean;
646
655
  next?: WarpNextConfig;
647
656
  when?: string;
657
+ messages?: Record<WarpMessageName, WarpText>;
648
658
  };
649
659
  type WarpContractAction = {
650
660
  type: WarpActionType;
@@ -661,6 +671,7 @@ type WarpContractAction = {
661
671
  auto?: boolean;
662
672
  next?: WarpNextConfig;
663
673
  when?: string;
674
+ messages?: Record<WarpMessageName, WarpText>;
664
675
  };
665
676
  type WarpQueryAction = {
666
677
  type: WarpActionType;
@@ -674,6 +685,7 @@ type WarpQueryAction = {
674
685
  auto?: boolean;
675
686
  next?: WarpNextConfig;
676
687
  when?: string;
688
+ messages?: Record<WarpMessageName, WarpText>;
677
689
  };
678
690
  type WarpCollectAction = {
679
691
  type: WarpActionType;
@@ -684,6 +696,7 @@ type WarpCollectAction = {
684
696
  auto?: boolean;
685
697
  next?: WarpNextConfig;
686
698
  when?: string;
699
+ messages?: Record<WarpMessageName, WarpText>;
687
700
  };
688
701
  type WarpComputeAction = {
689
702
  type: 'compute';
@@ -693,6 +706,7 @@ type WarpComputeAction = {
693
706
  auto?: boolean;
694
707
  next?: WarpNextConfig;
695
708
  when?: string;
709
+ messages?: Record<WarpMessageName, WarpText>;
696
710
  };
697
711
  type WarpCollectDestination = WarpCollectDestinationHttp | string;
698
712
  type WarpCollectDestinationHttp = {
@@ -708,6 +722,7 @@ type WarpLinkAction = {
708
722
  inputs?: WarpActionInput[];
709
723
  auto?: boolean;
710
724
  when?: string;
725
+ messages?: Record<WarpMessageName, WarpText>;
711
726
  };
712
727
  type WarpMcpAction = {
713
728
  type: WarpActionType;
@@ -718,6 +733,7 @@ type WarpMcpAction = {
718
733
  auto?: boolean;
719
734
  next?: WarpNextConfig;
720
735
  when?: string;
736
+ messages?: Record<WarpMessageName, WarpText>;
721
737
  };
722
738
  type WarpMcpDestination = {
723
739
  url: string;
@@ -735,6 +751,7 @@ type WarpPromptAction = {
735
751
  auto?: boolean;
736
752
  next?: WarpNextConfig;
737
753
  when?: string;
754
+ messages?: Record<WarpMessageName, WarpText>;
738
755
  };
739
756
  type WarpActionInputSource = 'field' | 'query' | 'user:wallet' | 'hidden';
740
757
  type BaseWarpActionInputType = 'string' | 'string[]' | 'json' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'uint128' | 'uint256' | 'biguint' | 'bool' | 'address' | 'hex' | 'datetime' | 'email' | 'textarea' | 'file' | string;
@@ -971,6 +988,7 @@ declare const splitInput: (input: string) => [WarpActionInputType, string];
971
988
  declare const hasInputPrefix: (input: string) => boolean;
972
989
 
973
990
  declare const applyOutputToMessages: (warp: Warp, output: Record<string, any>, config?: WarpClientConfig) => Record<string, string>;
991
+ declare const resolveActionMessages: (action: WarpAction, output: Record<string, any>, config?: WarpClientConfig) => Record<string, string>;
974
992
 
975
993
  /** Resolve a next config into an array of strings for the given path, optionally filtering by when conditions. */
976
994
  declare const resolveNextStrings: (raw: WarpNextConfig | null | undefined, path: "success" | "error", output?: WarpExecutionOutput) => string[] | null;
@@ -1553,4 +1571,4 @@ declare function resolveInputs(trigger: WebhookTrigger, payload: unknown): Recor
1553
1571
  */
1554
1572
  declare function resolvePath(obj: unknown, path: string): unknown;
1555
1573
 
1556
- export { type AdapterTypeRegistry, type AdapterWarpAbiBuilder, type AdapterWarpBrandBuilder, type AdapterWarpBuilder, type AdapterWarpDataLoader, type AdapterWarpExecutor, type AdapterWarpExplorer, type AdapterWarpOutput, type AdapterWarpRegistry, type AdapterWarpSerializer, type AdapterWarpWallet, type BaseWarpActionInputType, type BaseWarpBuilder, BrowserCryptoProvider, type BuiltInWarpWalletProvider, CLOUD_WALLET_PROVIDERS, CacheTtl, type ChainAdapter, type ChainAdapterFactory, type ClientCacheConfig, type ClientIndexConfig, type ClientTransformConfig, type CodecFunc, type CombinedWarpBuilder, type ContractDeployParams, type ContractFlags, type ContractUpgradeParams, type CryptoProvider, type DetectionResult, type DetectionResultFromHtml, EvmWalletChainNames, type ExecutionHandlers, type GeneratedSourceInfo, type GeneratedSourceType, type HttpAuthHeaders, type InterpolationBag, MultiversxWalletChainNames, NodeCryptoProvider, type ProtocolName, type ResolvedInput, type SignableMessage, type TransformRunner, WARP_LANGUAGES, type WalletCache, type WalletProvider, type WalletProviderFactory, type Warp, type WarpAbi, type WarpAbiContents, type WarpAction, type WarpActionExecutionResult, type WarpActionExecutionStatus, type WarpActionIndex, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputPositionAssetObject, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, type WarpAdapterGenericRemoteTransaction, type WarpAdapterGenericTransaction, type WarpAdapterGenericType, type WarpAdapterGenericValue, WarpAssets, type WarpBrand, WarpBrandBuilder, type WarpBrandColors, type WarpBrandCta, type WarpBrandLogo, type WarpBrandLogoThemed, type WarpBrandSiteConfig, type WarpBrandSiteRoute, type WarpBrandUrls, WarpBuilder, WarpCache, type WarpCacheAdapter, type WarpCacheConfig, WarpCacheKey, type WarpChainAccount, type WarpChainAction, type WarpChainActionStatus, type WarpChainAsset, type WarpChainAssetLogo, type WarpChainAssetLogoThemed, type WarpChainAssetNftMetadata, type WarpChainAssetType, type WarpChainAssetValue, WarpChainDisplayNames, type WarpChainEnv, type WarpChainInfo, type WarpChainInfoLogo, type WarpChainInfoLogoThemed, WarpChainLogos, WarpChainName, WarpChainResolver, WarpClient, type WarpClientConfig, type WarpCollectAction, type WarpCollectDestination, type WarpCollectDestinationHttp, WarpCompositeResolver, type WarpComputeAction, WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractVerification, type WarpDataLoaderOptions, type WarpExecutable, type WarpExecutionMessages, type WarpExecutionNextInfo, type WarpExecutionOutput, WarpExecutor, type WarpExplorerName, WarpFactory, type WarpI18nText, type WarpIdentifierInfo, type WarpIdentifierType, WarpIndex, type WarpInlineAction, WarpInputTypes, WarpInterpolator, type WarpLinkAction, WarpLinkBuilder, WarpLinkDetecter, type WarpLocale, WarpLogger, type WarpLoopAction, type WarpMcpAction, type WarpMcpDestination, type WarpMessageName, type WarpMeta, type WarpMountAction, type WarpNativeValue, type WarpNextConfig, type WarpNextEntry, type WarpOutputName, WarpPlatformName, type WarpPlatformValue, WarpPlatforms, type WarpPromptAction, WarpProtocolVersions, type WarpProviderConfig, type WarpProviderPreferences, type WarpQueryAction, type WarpRegistryConfigInfo, type WarpRegistryInfo, type WarpResolver, type WarpResolverResult, type WarpResulutionPath, type WarpSchedule, type WarpSearchHit, type WarpSearchResult, type WarpSecret, type WarpSection, WarpSerializer, type WarpStateAction, type WarpStructValue, type WarpText, type WarpTheme, type WarpTransferAction, type WarpTrigger, type WarpTrustStatus, type WarpTypeHandler, WarpTypeRegistry, type WarpUnmountAction, type WarpUser, type WarpUserWallets, WarpValidator, type WarpVarPlaceholder, type WarpWalletDetails, type WarpWalletProvider, address, applyOutputToMessages, asset, biguint, bool, buildGeneratedFallbackWarpIdentifier, buildGeneratedSourceWarpIdentifier, buildInputsContext, buildMappedOutput, buildNestedPayload, bytesToBase64, bytesToHex, checkWarpAssetBalance, cleanWarpIdentifier, createAuthHeaders, createAuthMessage, createCryptoProvider, createDefaultWalletProvider, createHttpAuthHeaders, createSignableMessage, createWarpI18nText, createWarpIdentifier, doesWarpRequireWallet, evaluateOutputCommon, evaluateWhenCondition, extractCollectOutput, extractIdentifierInfoFromUrl, extractInlineOutput, extractPromptOutput, extractQueryStringFromIdentifier, extractQueryStringFromUrl, extractResolvedInputValues, extractWarpSecrets, findWarpAdapterForChain, getChainDisplayName, getChainLogo, getCryptoProvider, getGeneratedSourceWarpName, getLatestProtocolIdentifier, getMppFetch, getNextInfo, getNextInfoForStatus, getProviderConfig, getRandomBytes, getRandomHex, getRequiredAssetIds, getWalletFromConfigOrFail, getWarpActionByIndex, getWarpBrandLogoUrl, getWarpChainAssetLogoUrl, getWarpChainInfoLogoUrl, getWarpIdentifierWithQuery, getWarpInfoFromIdentifier, getWarpInputAction, getWarpWalletAddress, getWarpWalletAddressFromConfig, getWarpWalletExternalId, getWarpWalletExternalIdFromConfig, getWarpWalletExternalIdFromConfigOrFail, getWarpWalletMnemonic, getWarpWalletMnemonicFromConfig, getWarpWalletPrivateKey, getWarpWalletPrivateKeyFromConfig, hasInputPrefix, hex, initializeWalletCache, isEqualWarpIdentifier, isGeneratedSourcePrivateIdentifier, isPlatformValue, isWarpActionAutoExecute, isWarpI18nText, isWarpWalletReadOnly, matchesTrigger, mergeNestedPayload, normalizeAndValidateMnemonic, normalizeMnemonic, option, parseOutputOutIndex, parseSignedMessage, parseWarpQueryStringToObject, removeWarpChainPrefix, removeWarpWalletFromConfig, replacePlaceholders, replacePlaceholdersInWhenExpression, resolveInputs, resolveNextString, resolveNextStrings, resolvePath, resolvePlatformValue, resolveWarpText, safeWindow, setCryptoProvider, setWarpWalletInConfig, shiftBigintBy, splitInput, stampGeneratedWarpMeta, string, struct, testCryptoAvailability, toInputPayloadValue, toPreviewText, tuple, uint16, uint32, uint64, uint8, validateMnemonicLength, validateSignedMessage, vector, withAdapterFallback };
1574
+ export { type AdapterTypeRegistry, type AdapterWarpAbiBuilder, type AdapterWarpBrandBuilder, type AdapterWarpBuilder, type AdapterWarpDataLoader, type AdapterWarpExecutor, type AdapterWarpExplorer, type AdapterWarpOutput, type AdapterWarpRegistry, type AdapterWarpSerializer, type AdapterWarpWallet, type BaseWarpActionInputType, type BaseWarpBuilder, BrowserCryptoProvider, type BuiltInWarpWalletProvider, CLOUD_WALLET_PROVIDERS, CacheTtl, type ChainAdapter, type ChainAdapterFactory, type ClientCacheConfig, type ClientIndexConfig, type ClientTransformConfig, type CodecFunc, type CombinedWarpBuilder, type ContractDeployParams, type ContractFlags, type ContractUpgradeParams, type CryptoProvider, type DetectionResult, type DetectionResultFromHtml, EvmWalletChainNames, type ExecutionHandlers, type GeneratedSourceInfo, type GeneratedSourceType, type HttpAuthHeaders, type InterpolationBag, MultiversxWalletChainNames, NodeCryptoProvider, type ProtocolName, type ResolvedInput, type SignableMessage, type TransformRunner, WARP_LANGUAGES, type WalletCache, type WalletProvider, type WalletProviderFactory, type Warp, type WarpAbi, type WarpAbiContents, type WarpAction, type WarpActionExecutionResult, type WarpActionExecutionStatus, type WarpActionIndex, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputPositionAssetObject, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, type WarpAdapterGenericRemoteTransaction, type WarpAdapterGenericTransaction, type WarpAdapterGenericType, type WarpAdapterGenericValue, WarpAssets, type WarpBrand, WarpBrandBuilder, type WarpBrandColors, type WarpBrandCta, type WarpBrandLogo, type WarpBrandLogoThemed, type WarpBrandSiteConfig, type WarpBrandSiteRoute, type WarpBrandUrls, WarpBuilder, WarpCache, type WarpCacheAdapter, type WarpCacheConfig, WarpCacheKey, type WarpChainAccount, type WarpChainAction, type WarpChainActionStatus, type WarpChainAsset, type WarpChainAssetLogo, type WarpChainAssetLogoThemed, type WarpChainAssetNftMetadata, type WarpChainAssetType, type WarpChainAssetValue, WarpChainDisplayNames, type WarpChainEnv, type WarpChainInfo, type WarpChainInfoLogo, type WarpChainInfoLogoThemed, WarpChainLogos, WarpChainName, WarpChainResolver, WarpClient, type WarpClientConfig, type WarpCollectAction, type WarpCollectDestination, type WarpCollectDestinationHttp, WarpCompositeResolver, type WarpComputeAction, WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractVerification, type WarpDataLoaderOptions, type WarpExecutable, type WarpExecutionMessages, type WarpExecutionNextInfo, type WarpExecutionOutput, WarpExecutor, type WarpExplorerName, WarpFactory, type WarpI18nText, type WarpIdentifierInfo, type WarpIdentifierType, WarpIndex, type WarpInlineAction, WarpInputTypes, WarpInterpolator, type WarpLinkAction, WarpLinkBuilder, WarpLinkDetecter, type WarpLocale, WarpLogger, type WarpLoopAction, type WarpMcpAction, type WarpMcpDestination, type WarpMessageName, type WarpMeta, type WarpMountAction, type WarpNativeValue, type WarpNextConfig, type WarpNextEntry, type WarpOutputName, WarpPlatformName, type WarpPlatformValue, WarpPlatforms, type WarpPromptAction, WarpProtocolVersions, type WarpProviderConfig, type WarpProviderPreferences, type WarpQueryAction, type WarpRegistryConfigInfo, type WarpRegistryInfo, type WarpRelatedEntry, type WarpResolver, type WarpResolverResult, type WarpResulutionPath, type WarpSchedule, type WarpSearchHit, type WarpSearchResult, type WarpSecret, type WarpSection, WarpSerializer, type WarpStateAction, type WarpStructValue, type WarpText, type WarpTheme, type WarpTransferAction, type WarpTrigger, type WarpTrustStatus, type WarpTypeHandler, WarpTypeRegistry, type WarpUnmountAction, type WarpUser, type WarpUserWallets, WarpValidator, type WarpVarPlaceholder, type WarpWalletDetails, type WarpWalletProvider, address, applyOutputToMessages, asset, biguint, bool, buildGeneratedFallbackWarpIdentifier, buildGeneratedSourceWarpIdentifier, buildInputsContext, buildMappedOutput, buildNestedPayload, bytesToBase64, bytesToHex, checkWarpAssetBalance, cleanWarpIdentifier, createAuthHeaders, createAuthMessage, createCryptoProvider, createDefaultWalletProvider, createHttpAuthHeaders, createSignableMessage, createWarpI18nText, createWarpIdentifier, doesWarpRequireWallet, evaluateOutputCommon, evaluateWhenCondition, extractCollectOutput, extractIdentifierInfoFromUrl, extractInlineOutput, extractPromptOutput, extractQueryStringFromIdentifier, extractQueryStringFromUrl, extractResolvedInputValues, extractWarpSecrets, findWarpAdapterForChain, getChainDisplayName, getChainLogo, getCryptoProvider, getGeneratedSourceWarpName, getLatestProtocolIdentifier, getMppFetch, getNextInfo, getNextInfoForStatus, getProviderConfig, getRandomBytes, getRandomHex, getRequiredAssetIds, getWalletFromConfigOrFail, getWarpActionByIndex, getWarpBrandLogoUrl, getWarpChainAssetLogoUrl, getWarpChainInfoLogoUrl, getWarpIdentifierWithQuery, getWarpInfoFromIdentifier, getWarpInputAction, getWarpWalletAddress, getWarpWalletAddressFromConfig, getWarpWalletExternalId, getWarpWalletExternalIdFromConfig, getWarpWalletExternalIdFromConfigOrFail, getWarpWalletMnemonic, getWarpWalletMnemonicFromConfig, getWarpWalletPrivateKey, getWarpWalletPrivateKeyFromConfig, hasInputPrefix, hex, initializeWalletCache, isEqualWarpIdentifier, isGeneratedSourcePrivateIdentifier, isPlatformValue, isWarpActionAutoExecute, isWarpI18nText, isWarpWalletReadOnly, matchesTrigger, mergeNestedPayload, normalizeAndValidateMnemonic, normalizeMnemonic, option, parseOutputOutIndex, parseSignedMessage, parseWarpQueryStringToObject, removeWarpChainPrefix, removeWarpWalletFromConfig, replacePlaceholders, replacePlaceholdersInWhenExpression, resolveActionMessages, resolveInputs, resolveNextString, resolveNextStrings, resolvePath, resolvePlatformValue, resolveWarpText, safeWindow, setCryptoProvider, setWarpWalletInConfig, shiftBigintBy, splitInput, stampGeneratedWarpMeta, string, struct, testCryptoAvailability, toInputPayloadValue, toPreviewText, tuple, uint16, uint32, uint64, uint8, validateMnemonicLength, validateSignedMessage, vector, withAdapterFallback };
package/dist/index.d.ts CHANGED
@@ -530,6 +530,10 @@ type WarpNextConfig = WarpNextEntry | WarpNextEntry[] | {
530
530
  success?: WarpNextEntry | WarpNextEntry[];
531
531
  error?: WarpNextEntry | WarpNextEntry[];
532
532
  };
533
+ type WarpRelatedEntry = string | {
534
+ identifier: string;
535
+ bot?: string;
536
+ };
533
537
  type Warp = {
534
538
  protocol: string;
535
539
  chain?: WarpChainName;
@@ -545,7 +549,7 @@ type Warp = {
545
549
  output?: Record<WarpOutputName, WarpResulutionPath>;
546
550
  messages?: Record<WarpMessageName, WarpText>;
547
551
  ui?: string;
548
- related?: string[];
552
+ related?: WarpRelatedEntry[];
549
553
  schedule?: WarpSchedule;
550
554
  sections?: WarpSection[];
551
555
  meta?: WarpMeta;
@@ -590,6 +594,7 @@ type WarpStateAction = {
590
594
  auto?: boolean;
591
595
  next?: WarpNextConfig;
592
596
  when?: string;
597
+ messages?: Record<WarpMessageName, WarpText>;
593
598
  };
594
599
  type WarpMountAction = {
595
600
  type: 'mount';
@@ -600,6 +605,7 @@ type WarpMountAction = {
600
605
  auto?: boolean;
601
606
  next?: WarpNextConfig;
602
607
  when?: string;
608
+ messages?: Record<WarpMessageName, WarpText>;
603
609
  };
604
610
  type WarpUnmountAction = {
605
611
  type: 'unmount';
@@ -610,6 +616,7 @@ type WarpUnmountAction = {
610
616
  auto?: boolean;
611
617
  next?: WarpNextConfig;
612
618
  when?: string;
619
+ messages?: Record<WarpMessageName, WarpText>;
613
620
  };
614
621
  type WarpLoopAction = {
615
622
  type: 'loop';
@@ -619,6 +626,7 @@ type WarpLoopAction = {
619
626
  auto?: boolean;
620
627
  next?: WarpNextConfig;
621
628
  when?: string;
629
+ messages?: Record<WarpMessageName, WarpText>;
622
630
  delay?: number;
623
631
  maxIterations?: number;
624
632
  };
@@ -631,6 +639,7 @@ type WarpInlineAction = {
631
639
  auto?: boolean;
632
640
  silent?: boolean;
633
641
  when?: string;
642
+ messages?: Record<WarpMessageName, WarpText>;
634
643
  output?: Record<string, string>;
635
644
  };
636
645
  type WarpTransferAction = {
@@ -645,6 +654,7 @@ type WarpTransferAction = {
645
654
  auto?: boolean;
646
655
  next?: WarpNextConfig;
647
656
  when?: string;
657
+ messages?: Record<WarpMessageName, WarpText>;
648
658
  };
649
659
  type WarpContractAction = {
650
660
  type: WarpActionType;
@@ -661,6 +671,7 @@ type WarpContractAction = {
661
671
  auto?: boolean;
662
672
  next?: WarpNextConfig;
663
673
  when?: string;
674
+ messages?: Record<WarpMessageName, WarpText>;
664
675
  };
665
676
  type WarpQueryAction = {
666
677
  type: WarpActionType;
@@ -674,6 +685,7 @@ type WarpQueryAction = {
674
685
  auto?: boolean;
675
686
  next?: WarpNextConfig;
676
687
  when?: string;
688
+ messages?: Record<WarpMessageName, WarpText>;
677
689
  };
678
690
  type WarpCollectAction = {
679
691
  type: WarpActionType;
@@ -684,6 +696,7 @@ type WarpCollectAction = {
684
696
  auto?: boolean;
685
697
  next?: WarpNextConfig;
686
698
  when?: string;
699
+ messages?: Record<WarpMessageName, WarpText>;
687
700
  };
688
701
  type WarpComputeAction = {
689
702
  type: 'compute';
@@ -693,6 +706,7 @@ type WarpComputeAction = {
693
706
  auto?: boolean;
694
707
  next?: WarpNextConfig;
695
708
  when?: string;
709
+ messages?: Record<WarpMessageName, WarpText>;
696
710
  };
697
711
  type WarpCollectDestination = WarpCollectDestinationHttp | string;
698
712
  type WarpCollectDestinationHttp = {
@@ -708,6 +722,7 @@ type WarpLinkAction = {
708
722
  inputs?: WarpActionInput[];
709
723
  auto?: boolean;
710
724
  when?: string;
725
+ messages?: Record<WarpMessageName, WarpText>;
711
726
  };
712
727
  type WarpMcpAction = {
713
728
  type: WarpActionType;
@@ -718,6 +733,7 @@ type WarpMcpAction = {
718
733
  auto?: boolean;
719
734
  next?: WarpNextConfig;
720
735
  when?: string;
736
+ messages?: Record<WarpMessageName, WarpText>;
721
737
  };
722
738
  type WarpMcpDestination = {
723
739
  url: string;
@@ -735,6 +751,7 @@ type WarpPromptAction = {
735
751
  auto?: boolean;
736
752
  next?: WarpNextConfig;
737
753
  when?: string;
754
+ messages?: Record<WarpMessageName, WarpText>;
738
755
  };
739
756
  type WarpActionInputSource = 'field' | 'query' | 'user:wallet' | 'hidden';
740
757
  type BaseWarpActionInputType = 'string' | 'string[]' | 'json' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'uint128' | 'uint256' | 'biguint' | 'bool' | 'address' | 'hex' | 'datetime' | 'email' | 'textarea' | 'file' | string;
@@ -971,6 +988,7 @@ declare const splitInput: (input: string) => [WarpActionInputType, string];
971
988
  declare const hasInputPrefix: (input: string) => boolean;
972
989
 
973
990
  declare const applyOutputToMessages: (warp: Warp, output: Record<string, any>, config?: WarpClientConfig) => Record<string, string>;
991
+ declare const resolveActionMessages: (action: WarpAction, output: Record<string, any>, config?: WarpClientConfig) => Record<string, string>;
974
992
 
975
993
  /** Resolve a next config into an array of strings for the given path, optionally filtering by when conditions. */
976
994
  declare const resolveNextStrings: (raw: WarpNextConfig | null | undefined, path: "success" | "error", output?: WarpExecutionOutput) => string[] | null;
@@ -1553,4 +1571,4 @@ declare function resolveInputs(trigger: WebhookTrigger, payload: unknown): Recor
1553
1571
  */
1554
1572
  declare function resolvePath(obj: unknown, path: string): unknown;
1555
1573
 
1556
- export { type AdapterTypeRegistry, type AdapterWarpAbiBuilder, type AdapterWarpBrandBuilder, type AdapterWarpBuilder, type AdapterWarpDataLoader, type AdapterWarpExecutor, type AdapterWarpExplorer, type AdapterWarpOutput, type AdapterWarpRegistry, type AdapterWarpSerializer, type AdapterWarpWallet, type BaseWarpActionInputType, type BaseWarpBuilder, BrowserCryptoProvider, type BuiltInWarpWalletProvider, CLOUD_WALLET_PROVIDERS, CacheTtl, type ChainAdapter, type ChainAdapterFactory, type ClientCacheConfig, type ClientIndexConfig, type ClientTransformConfig, type CodecFunc, type CombinedWarpBuilder, type ContractDeployParams, type ContractFlags, type ContractUpgradeParams, type CryptoProvider, type DetectionResult, type DetectionResultFromHtml, EvmWalletChainNames, type ExecutionHandlers, type GeneratedSourceInfo, type GeneratedSourceType, type HttpAuthHeaders, type InterpolationBag, MultiversxWalletChainNames, NodeCryptoProvider, type ProtocolName, type ResolvedInput, type SignableMessage, type TransformRunner, WARP_LANGUAGES, type WalletCache, type WalletProvider, type WalletProviderFactory, type Warp, type WarpAbi, type WarpAbiContents, type WarpAction, type WarpActionExecutionResult, type WarpActionExecutionStatus, type WarpActionIndex, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputPositionAssetObject, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, type WarpAdapterGenericRemoteTransaction, type WarpAdapterGenericTransaction, type WarpAdapterGenericType, type WarpAdapterGenericValue, WarpAssets, type WarpBrand, WarpBrandBuilder, type WarpBrandColors, type WarpBrandCta, type WarpBrandLogo, type WarpBrandLogoThemed, type WarpBrandSiteConfig, type WarpBrandSiteRoute, type WarpBrandUrls, WarpBuilder, WarpCache, type WarpCacheAdapter, type WarpCacheConfig, WarpCacheKey, type WarpChainAccount, type WarpChainAction, type WarpChainActionStatus, type WarpChainAsset, type WarpChainAssetLogo, type WarpChainAssetLogoThemed, type WarpChainAssetNftMetadata, type WarpChainAssetType, type WarpChainAssetValue, WarpChainDisplayNames, type WarpChainEnv, type WarpChainInfo, type WarpChainInfoLogo, type WarpChainInfoLogoThemed, WarpChainLogos, WarpChainName, WarpChainResolver, WarpClient, type WarpClientConfig, type WarpCollectAction, type WarpCollectDestination, type WarpCollectDestinationHttp, WarpCompositeResolver, type WarpComputeAction, WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractVerification, type WarpDataLoaderOptions, type WarpExecutable, type WarpExecutionMessages, type WarpExecutionNextInfo, type WarpExecutionOutput, WarpExecutor, type WarpExplorerName, WarpFactory, type WarpI18nText, type WarpIdentifierInfo, type WarpIdentifierType, WarpIndex, type WarpInlineAction, WarpInputTypes, WarpInterpolator, type WarpLinkAction, WarpLinkBuilder, WarpLinkDetecter, type WarpLocale, WarpLogger, type WarpLoopAction, type WarpMcpAction, type WarpMcpDestination, type WarpMessageName, type WarpMeta, type WarpMountAction, type WarpNativeValue, type WarpNextConfig, type WarpNextEntry, type WarpOutputName, WarpPlatformName, type WarpPlatformValue, WarpPlatforms, type WarpPromptAction, WarpProtocolVersions, type WarpProviderConfig, type WarpProviderPreferences, type WarpQueryAction, type WarpRegistryConfigInfo, type WarpRegistryInfo, type WarpResolver, type WarpResolverResult, type WarpResulutionPath, type WarpSchedule, type WarpSearchHit, type WarpSearchResult, type WarpSecret, type WarpSection, WarpSerializer, type WarpStateAction, type WarpStructValue, type WarpText, type WarpTheme, type WarpTransferAction, type WarpTrigger, type WarpTrustStatus, type WarpTypeHandler, WarpTypeRegistry, type WarpUnmountAction, type WarpUser, type WarpUserWallets, WarpValidator, type WarpVarPlaceholder, type WarpWalletDetails, type WarpWalletProvider, address, applyOutputToMessages, asset, biguint, bool, buildGeneratedFallbackWarpIdentifier, buildGeneratedSourceWarpIdentifier, buildInputsContext, buildMappedOutput, buildNestedPayload, bytesToBase64, bytesToHex, checkWarpAssetBalance, cleanWarpIdentifier, createAuthHeaders, createAuthMessage, createCryptoProvider, createDefaultWalletProvider, createHttpAuthHeaders, createSignableMessage, createWarpI18nText, createWarpIdentifier, doesWarpRequireWallet, evaluateOutputCommon, evaluateWhenCondition, extractCollectOutput, extractIdentifierInfoFromUrl, extractInlineOutput, extractPromptOutput, extractQueryStringFromIdentifier, extractQueryStringFromUrl, extractResolvedInputValues, extractWarpSecrets, findWarpAdapterForChain, getChainDisplayName, getChainLogo, getCryptoProvider, getGeneratedSourceWarpName, getLatestProtocolIdentifier, getMppFetch, getNextInfo, getNextInfoForStatus, getProviderConfig, getRandomBytes, getRandomHex, getRequiredAssetIds, getWalletFromConfigOrFail, getWarpActionByIndex, getWarpBrandLogoUrl, getWarpChainAssetLogoUrl, getWarpChainInfoLogoUrl, getWarpIdentifierWithQuery, getWarpInfoFromIdentifier, getWarpInputAction, getWarpWalletAddress, getWarpWalletAddressFromConfig, getWarpWalletExternalId, getWarpWalletExternalIdFromConfig, getWarpWalletExternalIdFromConfigOrFail, getWarpWalletMnemonic, getWarpWalletMnemonicFromConfig, getWarpWalletPrivateKey, getWarpWalletPrivateKeyFromConfig, hasInputPrefix, hex, initializeWalletCache, isEqualWarpIdentifier, isGeneratedSourcePrivateIdentifier, isPlatformValue, isWarpActionAutoExecute, isWarpI18nText, isWarpWalletReadOnly, matchesTrigger, mergeNestedPayload, normalizeAndValidateMnemonic, normalizeMnemonic, option, parseOutputOutIndex, parseSignedMessage, parseWarpQueryStringToObject, removeWarpChainPrefix, removeWarpWalletFromConfig, replacePlaceholders, replacePlaceholdersInWhenExpression, resolveInputs, resolveNextString, resolveNextStrings, resolvePath, resolvePlatformValue, resolveWarpText, safeWindow, setCryptoProvider, setWarpWalletInConfig, shiftBigintBy, splitInput, stampGeneratedWarpMeta, string, struct, testCryptoAvailability, toInputPayloadValue, toPreviewText, tuple, uint16, uint32, uint64, uint8, validateMnemonicLength, validateSignedMessage, vector, withAdapterFallback };
1574
+ export { type AdapterTypeRegistry, type AdapterWarpAbiBuilder, type AdapterWarpBrandBuilder, type AdapterWarpBuilder, type AdapterWarpDataLoader, type AdapterWarpExecutor, type AdapterWarpExplorer, type AdapterWarpOutput, type AdapterWarpRegistry, type AdapterWarpSerializer, type AdapterWarpWallet, type BaseWarpActionInputType, type BaseWarpBuilder, BrowserCryptoProvider, type BuiltInWarpWalletProvider, CLOUD_WALLET_PROVIDERS, CacheTtl, type ChainAdapter, type ChainAdapterFactory, type ClientCacheConfig, type ClientIndexConfig, type ClientTransformConfig, type CodecFunc, type CombinedWarpBuilder, type ContractDeployParams, type ContractFlags, type ContractUpgradeParams, type CryptoProvider, type DetectionResult, type DetectionResultFromHtml, EvmWalletChainNames, type ExecutionHandlers, type GeneratedSourceInfo, type GeneratedSourceType, type HttpAuthHeaders, type InterpolationBag, MultiversxWalletChainNames, NodeCryptoProvider, type ProtocolName, type ResolvedInput, type SignableMessage, type TransformRunner, WARP_LANGUAGES, type WalletCache, type WalletProvider, type WalletProviderFactory, type Warp, type WarpAbi, type WarpAbiContents, type WarpAction, type WarpActionExecutionResult, type WarpActionExecutionStatus, type WarpActionIndex, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputPositionAssetObject, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, type WarpAdapterGenericRemoteTransaction, type WarpAdapterGenericTransaction, type WarpAdapterGenericType, type WarpAdapterGenericValue, WarpAssets, type WarpBrand, WarpBrandBuilder, type WarpBrandColors, type WarpBrandCta, type WarpBrandLogo, type WarpBrandLogoThemed, type WarpBrandSiteConfig, type WarpBrandSiteRoute, type WarpBrandUrls, WarpBuilder, WarpCache, type WarpCacheAdapter, type WarpCacheConfig, WarpCacheKey, type WarpChainAccount, type WarpChainAction, type WarpChainActionStatus, type WarpChainAsset, type WarpChainAssetLogo, type WarpChainAssetLogoThemed, type WarpChainAssetNftMetadata, type WarpChainAssetType, type WarpChainAssetValue, WarpChainDisplayNames, type WarpChainEnv, type WarpChainInfo, type WarpChainInfoLogo, type WarpChainInfoLogoThemed, WarpChainLogos, WarpChainName, WarpChainResolver, WarpClient, type WarpClientConfig, type WarpCollectAction, type WarpCollectDestination, type WarpCollectDestinationHttp, WarpCompositeResolver, type WarpComputeAction, WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractVerification, type WarpDataLoaderOptions, type WarpExecutable, type WarpExecutionMessages, type WarpExecutionNextInfo, type WarpExecutionOutput, WarpExecutor, type WarpExplorerName, WarpFactory, type WarpI18nText, type WarpIdentifierInfo, type WarpIdentifierType, WarpIndex, type WarpInlineAction, WarpInputTypes, WarpInterpolator, type WarpLinkAction, WarpLinkBuilder, WarpLinkDetecter, type WarpLocale, WarpLogger, type WarpLoopAction, type WarpMcpAction, type WarpMcpDestination, type WarpMessageName, type WarpMeta, type WarpMountAction, type WarpNativeValue, type WarpNextConfig, type WarpNextEntry, type WarpOutputName, WarpPlatformName, type WarpPlatformValue, WarpPlatforms, type WarpPromptAction, WarpProtocolVersions, type WarpProviderConfig, type WarpProviderPreferences, type WarpQueryAction, type WarpRegistryConfigInfo, type WarpRegistryInfo, type WarpRelatedEntry, type WarpResolver, type WarpResolverResult, type WarpResulutionPath, type WarpSchedule, type WarpSearchHit, type WarpSearchResult, type WarpSecret, type WarpSection, WarpSerializer, type WarpStateAction, type WarpStructValue, type WarpText, type WarpTheme, type WarpTransferAction, type WarpTrigger, type WarpTrustStatus, type WarpTypeHandler, WarpTypeRegistry, type WarpUnmountAction, type WarpUser, type WarpUserWallets, WarpValidator, type WarpVarPlaceholder, type WarpWalletDetails, type WarpWalletProvider, address, applyOutputToMessages, asset, biguint, bool, buildGeneratedFallbackWarpIdentifier, buildGeneratedSourceWarpIdentifier, buildInputsContext, buildMappedOutput, buildNestedPayload, bytesToBase64, bytesToHex, checkWarpAssetBalance, cleanWarpIdentifier, createAuthHeaders, createAuthMessage, createCryptoProvider, createDefaultWalletProvider, createHttpAuthHeaders, createSignableMessage, createWarpI18nText, createWarpIdentifier, doesWarpRequireWallet, evaluateOutputCommon, evaluateWhenCondition, extractCollectOutput, extractIdentifierInfoFromUrl, extractInlineOutput, extractPromptOutput, extractQueryStringFromIdentifier, extractQueryStringFromUrl, extractResolvedInputValues, extractWarpSecrets, findWarpAdapterForChain, getChainDisplayName, getChainLogo, getCryptoProvider, getGeneratedSourceWarpName, getLatestProtocolIdentifier, getMppFetch, getNextInfo, getNextInfoForStatus, getProviderConfig, getRandomBytes, getRandomHex, getRequiredAssetIds, getWalletFromConfigOrFail, getWarpActionByIndex, getWarpBrandLogoUrl, getWarpChainAssetLogoUrl, getWarpChainInfoLogoUrl, getWarpIdentifierWithQuery, getWarpInfoFromIdentifier, getWarpInputAction, getWarpWalletAddress, getWarpWalletAddressFromConfig, getWarpWalletExternalId, getWarpWalletExternalIdFromConfig, getWarpWalletExternalIdFromConfigOrFail, getWarpWalletMnemonic, getWarpWalletMnemonicFromConfig, getWarpWalletPrivateKey, getWarpWalletPrivateKeyFromConfig, hasInputPrefix, hex, initializeWalletCache, isEqualWarpIdentifier, isGeneratedSourcePrivateIdentifier, isPlatformValue, isWarpActionAutoExecute, isWarpI18nText, isWarpWalletReadOnly, matchesTrigger, mergeNestedPayload, normalizeAndValidateMnemonic, normalizeMnemonic, option, parseOutputOutIndex, parseSignedMessage, parseWarpQueryStringToObject, removeWarpChainPrefix, removeWarpWalletFromConfig, replacePlaceholders, replacePlaceholdersInWhenExpression, resolveActionMessages, resolveInputs, resolveNextString, resolveNextStrings, resolvePath, resolvePlatformValue, resolveWarpText, safeWindow, setCryptoProvider, setWarpWalletInConfig, shiftBigintBy, splitInput, stampGeneratedWarpMeta, string, struct, testCryptoAvailability, toInputPayloadValue, toPreviewText, tuple, uint16, uint32, uint64, uint8, validateMnemonicLength, validateSignedMessage, vector, withAdapterFallback };