@joai/warps 4.31.2 → 4.33.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
@@ -458,6 +458,9 @@ declare const WarpConstants: {
458
458
  ArgCompositeSeparator: string;
459
459
  ArgListSeparator: string;
460
460
  ArgStructSeparator: string;
461
+ Append: {
462
+ Prefix: string;
463
+ };
461
464
  Transform: {
462
465
  Prefix: string;
463
466
  };
@@ -587,6 +590,7 @@ type WarpStateAction = {
587
590
  auto?: boolean;
588
591
  next?: WarpNextConfig;
589
592
  when?: string;
593
+ messages?: Record<WarpMessageName, WarpText>;
590
594
  };
591
595
  type WarpMountAction = {
592
596
  type: 'mount';
@@ -597,6 +601,7 @@ type WarpMountAction = {
597
601
  auto?: boolean;
598
602
  next?: WarpNextConfig;
599
603
  when?: string;
604
+ messages?: Record<WarpMessageName, WarpText>;
600
605
  };
601
606
  type WarpUnmountAction = {
602
607
  type: 'unmount';
@@ -607,6 +612,7 @@ type WarpUnmountAction = {
607
612
  auto?: boolean;
608
613
  next?: WarpNextConfig;
609
614
  when?: string;
615
+ messages?: Record<WarpMessageName, WarpText>;
610
616
  };
611
617
  type WarpLoopAction = {
612
618
  type: 'loop';
@@ -616,6 +622,7 @@ type WarpLoopAction = {
616
622
  auto?: boolean;
617
623
  next?: WarpNextConfig;
618
624
  when?: string;
625
+ messages?: Record<WarpMessageName, WarpText>;
619
626
  delay?: number;
620
627
  maxIterations?: number;
621
628
  };
@@ -628,6 +635,8 @@ type WarpInlineAction = {
628
635
  auto?: boolean;
629
636
  silent?: boolean;
630
637
  when?: string;
638
+ messages?: Record<WarpMessageName, WarpText>;
639
+ output?: Record<string, string>;
631
640
  };
632
641
  type WarpTransferAction = {
633
642
  type: WarpActionType;
@@ -641,6 +650,7 @@ type WarpTransferAction = {
641
650
  auto?: boolean;
642
651
  next?: WarpNextConfig;
643
652
  when?: string;
653
+ messages?: Record<WarpMessageName, WarpText>;
644
654
  };
645
655
  type WarpContractAction = {
646
656
  type: WarpActionType;
@@ -657,6 +667,7 @@ type WarpContractAction = {
657
667
  auto?: boolean;
658
668
  next?: WarpNextConfig;
659
669
  when?: string;
670
+ messages?: Record<WarpMessageName, WarpText>;
660
671
  };
661
672
  type WarpQueryAction = {
662
673
  type: WarpActionType;
@@ -670,6 +681,7 @@ type WarpQueryAction = {
670
681
  auto?: boolean;
671
682
  next?: WarpNextConfig;
672
683
  when?: string;
684
+ messages?: Record<WarpMessageName, WarpText>;
673
685
  };
674
686
  type WarpCollectAction = {
675
687
  type: WarpActionType;
@@ -680,6 +692,7 @@ type WarpCollectAction = {
680
692
  auto?: boolean;
681
693
  next?: WarpNextConfig;
682
694
  when?: string;
695
+ messages?: Record<WarpMessageName, WarpText>;
683
696
  };
684
697
  type WarpComputeAction = {
685
698
  type: 'compute';
@@ -689,6 +702,7 @@ type WarpComputeAction = {
689
702
  auto?: boolean;
690
703
  next?: WarpNextConfig;
691
704
  when?: string;
705
+ messages?: Record<WarpMessageName, WarpText>;
692
706
  };
693
707
  type WarpCollectDestination = WarpCollectDestinationHttp | string;
694
708
  type WarpCollectDestinationHttp = {
@@ -704,6 +718,7 @@ type WarpLinkAction = {
704
718
  inputs?: WarpActionInput[];
705
719
  auto?: boolean;
706
720
  when?: string;
721
+ messages?: Record<WarpMessageName, WarpText>;
707
722
  };
708
723
  type WarpMcpAction = {
709
724
  type: WarpActionType;
@@ -714,6 +729,7 @@ type WarpMcpAction = {
714
729
  auto?: boolean;
715
730
  next?: WarpNextConfig;
716
731
  when?: string;
732
+ messages?: Record<WarpMessageName, WarpText>;
717
733
  };
718
734
  type WarpMcpDestination = {
719
735
  url: string;
@@ -731,6 +747,7 @@ type WarpPromptAction = {
731
747
  auto?: boolean;
732
748
  next?: WarpNextConfig;
733
749
  when?: string;
750
+ messages?: Record<WarpMessageName, WarpText>;
734
751
  };
735
752
  type WarpActionInputSource = 'field' | 'query' | 'user:wallet' | 'hidden';
736
753
  type BaseWarpActionInputType = 'string' | 'string[]' | 'json' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'uint128' | 'uint256' | 'biguint' | 'bool' | 'address' | 'hex' | 'datetime' | 'email' | 'textarea' | 'file' | string;
@@ -967,6 +984,7 @@ declare const splitInput: (input: string) => [WarpActionInputType, string];
967
984
  declare const hasInputPrefix: (input: string) => boolean;
968
985
 
969
986
  declare const applyOutputToMessages: (warp: Warp, output: Record<string, any>, config?: WarpClientConfig) => Record<string, string>;
987
+ declare const resolveActionMessages: (action: WarpAction, output: Record<string, any>, config?: WarpClientConfig) => Record<string, string>;
970
988
 
971
989
  /** Resolve a next config into an array of strings for the given path, optionally filtering by when conditions. */
972
990
  declare const resolveNextStrings: (raw: WarpNextConfig | null | undefined, path: "success" | "error", output?: WarpExecutionOutput) => string[] | null;
@@ -1002,6 +1020,7 @@ declare const extractPromptOutput: (warp: Warp, promptValue: string, actionIndex
1002
1020
  };
1003
1021
  output: WarpExecutionOutput;
1004
1022
  }>;
1023
+ declare const extractInlineOutput: (action: WarpInlineAction, result: WarpActionExecutionResult, envs: Record<string, any> | undefined) => WarpExecutionOutput;
1005
1024
  declare const parseOutputOutIndex: (outputPath: string) => number | null;
1006
1025
 
1007
1026
  declare const isPlatformValue: <T>(value: WarpPlatformValue<T>) => value is Partial<Record<WarpPlatformName, T>>;
@@ -1548,4 +1567,4 @@ declare function resolveInputs(trigger: WebhookTrigger, payload: unknown): Recor
1548
1567
  */
1549
1568
  declare function resolvePath(obj: unknown, path: string): unknown;
1550
1569
 
1551
- 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, 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 };
1570
+ 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, 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
@@ -458,6 +458,9 @@ declare const WarpConstants: {
458
458
  ArgCompositeSeparator: string;
459
459
  ArgListSeparator: string;
460
460
  ArgStructSeparator: string;
461
+ Append: {
462
+ Prefix: string;
463
+ };
461
464
  Transform: {
462
465
  Prefix: string;
463
466
  };
@@ -587,6 +590,7 @@ type WarpStateAction = {
587
590
  auto?: boolean;
588
591
  next?: WarpNextConfig;
589
592
  when?: string;
593
+ messages?: Record<WarpMessageName, WarpText>;
590
594
  };
591
595
  type WarpMountAction = {
592
596
  type: 'mount';
@@ -597,6 +601,7 @@ type WarpMountAction = {
597
601
  auto?: boolean;
598
602
  next?: WarpNextConfig;
599
603
  when?: string;
604
+ messages?: Record<WarpMessageName, WarpText>;
600
605
  };
601
606
  type WarpUnmountAction = {
602
607
  type: 'unmount';
@@ -607,6 +612,7 @@ type WarpUnmountAction = {
607
612
  auto?: boolean;
608
613
  next?: WarpNextConfig;
609
614
  when?: string;
615
+ messages?: Record<WarpMessageName, WarpText>;
610
616
  };
611
617
  type WarpLoopAction = {
612
618
  type: 'loop';
@@ -616,6 +622,7 @@ type WarpLoopAction = {
616
622
  auto?: boolean;
617
623
  next?: WarpNextConfig;
618
624
  when?: string;
625
+ messages?: Record<WarpMessageName, WarpText>;
619
626
  delay?: number;
620
627
  maxIterations?: number;
621
628
  };
@@ -628,6 +635,8 @@ type WarpInlineAction = {
628
635
  auto?: boolean;
629
636
  silent?: boolean;
630
637
  when?: string;
638
+ messages?: Record<WarpMessageName, WarpText>;
639
+ output?: Record<string, string>;
631
640
  };
632
641
  type WarpTransferAction = {
633
642
  type: WarpActionType;
@@ -641,6 +650,7 @@ type WarpTransferAction = {
641
650
  auto?: boolean;
642
651
  next?: WarpNextConfig;
643
652
  when?: string;
653
+ messages?: Record<WarpMessageName, WarpText>;
644
654
  };
645
655
  type WarpContractAction = {
646
656
  type: WarpActionType;
@@ -657,6 +667,7 @@ type WarpContractAction = {
657
667
  auto?: boolean;
658
668
  next?: WarpNextConfig;
659
669
  when?: string;
670
+ messages?: Record<WarpMessageName, WarpText>;
660
671
  };
661
672
  type WarpQueryAction = {
662
673
  type: WarpActionType;
@@ -670,6 +681,7 @@ type WarpQueryAction = {
670
681
  auto?: boolean;
671
682
  next?: WarpNextConfig;
672
683
  when?: string;
684
+ messages?: Record<WarpMessageName, WarpText>;
673
685
  };
674
686
  type WarpCollectAction = {
675
687
  type: WarpActionType;
@@ -680,6 +692,7 @@ type WarpCollectAction = {
680
692
  auto?: boolean;
681
693
  next?: WarpNextConfig;
682
694
  when?: string;
695
+ messages?: Record<WarpMessageName, WarpText>;
683
696
  };
684
697
  type WarpComputeAction = {
685
698
  type: 'compute';
@@ -689,6 +702,7 @@ type WarpComputeAction = {
689
702
  auto?: boolean;
690
703
  next?: WarpNextConfig;
691
704
  when?: string;
705
+ messages?: Record<WarpMessageName, WarpText>;
692
706
  };
693
707
  type WarpCollectDestination = WarpCollectDestinationHttp | string;
694
708
  type WarpCollectDestinationHttp = {
@@ -704,6 +718,7 @@ type WarpLinkAction = {
704
718
  inputs?: WarpActionInput[];
705
719
  auto?: boolean;
706
720
  when?: string;
721
+ messages?: Record<WarpMessageName, WarpText>;
707
722
  };
708
723
  type WarpMcpAction = {
709
724
  type: WarpActionType;
@@ -714,6 +729,7 @@ type WarpMcpAction = {
714
729
  auto?: boolean;
715
730
  next?: WarpNextConfig;
716
731
  when?: string;
732
+ messages?: Record<WarpMessageName, WarpText>;
717
733
  };
718
734
  type WarpMcpDestination = {
719
735
  url: string;
@@ -731,6 +747,7 @@ type WarpPromptAction = {
731
747
  auto?: boolean;
732
748
  next?: WarpNextConfig;
733
749
  when?: string;
750
+ messages?: Record<WarpMessageName, WarpText>;
734
751
  };
735
752
  type WarpActionInputSource = 'field' | 'query' | 'user:wallet' | 'hidden';
736
753
  type BaseWarpActionInputType = 'string' | 'string[]' | 'json' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'uint128' | 'uint256' | 'biguint' | 'bool' | 'address' | 'hex' | 'datetime' | 'email' | 'textarea' | 'file' | string;
@@ -967,6 +984,7 @@ declare const splitInput: (input: string) => [WarpActionInputType, string];
967
984
  declare const hasInputPrefix: (input: string) => boolean;
968
985
 
969
986
  declare const applyOutputToMessages: (warp: Warp, output: Record<string, any>, config?: WarpClientConfig) => Record<string, string>;
987
+ declare const resolveActionMessages: (action: WarpAction, output: Record<string, any>, config?: WarpClientConfig) => Record<string, string>;
970
988
 
971
989
  /** Resolve a next config into an array of strings for the given path, optionally filtering by when conditions. */
972
990
  declare const resolveNextStrings: (raw: WarpNextConfig | null | undefined, path: "success" | "error", output?: WarpExecutionOutput) => string[] | null;
@@ -1002,6 +1020,7 @@ declare const extractPromptOutput: (warp: Warp, promptValue: string, actionIndex
1002
1020
  };
1003
1021
  output: WarpExecutionOutput;
1004
1022
  }>;
1023
+ declare const extractInlineOutput: (action: WarpInlineAction, result: WarpActionExecutionResult, envs: Record<string, any> | undefined) => WarpExecutionOutput;
1005
1024
  declare const parseOutputOutIndex: (outputPath: string) => number | null;
1006
1025
 
1007
1026
  declare const isPlatformValue: <T>(value: WarpPlatformValue<T>) => value is Partial<Record<WarpPlatformName, T>>;
@@ -1548,4 +1567,4 @@ declare function resolveInputs(trigger: WebhookTrigger, payload: unknown): Recor
1548
1567
  */
1549
1568
  declare function resolvePath(obj: unknown, path: string): unknown;
1550
1569
 
1551
- 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, 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 };
1570
+ 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, 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 };