@joai/warps 4.32.0 → 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 +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -590,6 +590,7 @@ type WarpStateAction = {
|
|
|
590
590
|
auto?: boolean;
|
|
591
591
|
next?: WarpNextConfig;
|
|
592
592
|
when?: string;
|
|
593
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
593
594
|
};
|
|
594
595
|
type WarpMountAction = {
|
|
595
596
|
type: 'mount';
|
|
@@ -600,6 +601,7 @@ type WarpMountAction = {
|
|
|
600
601
|
auto?: boolean;
|
|
601
602
|
next?: WarpNextConfig;
|
|
602
603
|
when?: string;
|
|
604
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
603
605
|
};
|
|
604
606
|
type WarpUnmountAction = {
|
|
605
607
|
type: 'unmount';
|
|
@@ -610,6 +612,7 @@ type WarpUnmountAction = {
|
|
|
610
612
|
auto?: boolean;
|
|
611
613
|
next?: WarpNextConfig;
|
|
612
614
|
when?: string;
|
|
615
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
613
616
|
};
|
|
614
617
|
type WarpLoopAction = {
|
|
615
618
|
type: 'loop';
|
|
@@ -619,6 +622,7 @@ type WarpLoopAction = {
|
|
|
619
622
|
auto?: boolean;
|
|
620
623
|
next?: WarpNextConfig;
|
|
621
624
|
when?: string;
|
|
625
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
622
626
|
delay?: number;
|
|
623
627
|
maxIterations?: number;
|
|
624
628
|
};
|
|
@@ -631,6 +635,7 @@ type WarpInlineAction = {
|
|
|
631
635
|
auto?: boolean;
|
|
632
636
|
silent?: boolean;
|
|
633
637
|
when?: string;
|
|
638
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
634
639
|
output?: Record<string, string>;
|
|
635
640
|
};
|
|
636
641
|
type WarpTransferAction = {
|
|
@@ -645,6 +650,7 @@ type WarpTransferAction = {
|
|
|
645
650
|
auto?: boolean;
|
|
646
651
|
next?: WarpNextConfig;
|
|
647
652
|
when?: string;
|
|
653
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
648
654
|
};
|
|
649
655
|
type WarpContractAction = {
|
|
650
656
|
type: WarpActionType;
|
|
@@ -661,6 +667,7 @@ type WarpContractAction = {
|
|
|
661
667
|
auto?: boolean;
|
|
662
668
|
next?: WarpNextConfig;
|
|
663
669
|
when?: string;
|
|
670
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
664
671
|
};
|
|
665
672
|
type WarpQueryAction = {
|
|
666
673
|
type: WarpActionType;
|
|
@@ -674,6 +681,7 @@ type WarpQueryAction = {
|
|
|
674
681
|
auto?: boolean;
|
|
675
682
|
next?: WarpNextConfig;
|
|
676
683
|
when?: string;
|
|
684
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
677
685
|
};
|
|
678
686
|
type WarpCollectAction = {
|
|
679
687
|
type: WarpActionType;
|
|
@@ -684,6 +692,7 @@ type WarpCollectAction = {
|
|
|
684
692
|
auto?: boolean;
|
|
685
693
|
next?: WarpNextConfig;
|
|
686
694
|
when?: string;
|
|
695
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
687
696
|
};
|
|
688
697
|
type WarpComputeAction = {
|
|
689
698
|
type: 'compute';
|
|
@@ -693,6 +702,7 @@ type WarpComputeAction = {
|
|
|
693
702
|
auto?: boolean;
|
|
694
703
|
next?: WarpNextConfig;
|
|
695
704
|
when?: string;
|
|
705
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
696
706
|
};
|
|
697
707
|
type WarpCollectDestination = WarpCollectDestinationHttp | string;
|
|
698
708
|
type WarpCollectDestinationHttp = {
|
|
@@ -708,6 +718,7 @@ type WarpLinkAction = {
|
|
|
708
718
|
inputs?: WarpActionInput[];
|
|
709
719
|
auto?: boolean;
|
|
710
720
|
when?: string;
|
|
721
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
711
722
|
};
|
|
712
723
|
type WarpMcpAction = {
|
|
713
724
|
type: WarpActionType;
|
|
@@ -718,6 +729,7 @@ type WarpMcpAction = {
|
|
|
718
729
|
auto?: boolean;
|
|
719
730
|
next?: WarpNextConfig;
|
|
720
731
|
when?: string;
|
|
732
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
721
733
|
};
|
|
722
734
|
type WarpMcpDestination = {
|
|
723
735
|
url: string;
|
|
@@ -735,6 +747,7 @@ type WarpPromptAction = {
|
|
|
735
747
|
auto?: boolean;
|
|
736
748
|
next?: WarpNextConfig;
|
|
737
749
|
when?: string;
|
|
750
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
738
751
|
};
|
|
739
752
|
type WarpActionInputSource = 'field' | 'query' | 'user:wallet' | 'hidden';
|
|
740
753
|
type BaseWarpActionInputType = 'string' | 'string[]' | 'json' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'uint128' | 'uint256' | 'biguint' | 'bool' | 'address' | 'hex' | 'datetime' | 'email' | 'textarea' | 'file' | string;
|
|
@@ -971,6 +984,7 @@ declare const splitInput: (input: string) => [WarpActionInputType, string];
|
|
|
971
984
|
declare const hasInputPrefix: (input: string) => boolean;
|
|
972
985
|
|
|
973
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>;
|
|
974
988
|
|
|
975
989
|
/** Resolve a next config into an array of strings for the given path, optionally filtering by when conditions. */
|
|
976
990
|
declare const resolveNextStrings: (raw: WarpNextConfig | null | undefined, path: "success" | "error", output?: WarpExecutionOutput) => string[] | null;
|
|
@@ -1553,4 +1567,4 @@ declare function resolveInputs(trigger: WebhookTrigger, payload: unknown): Recor
|
|
|
1553
1567
|
*/
|
|
1554
1568
|
declare function resolvePath(obj: unknown, path: string): unknown;
|
|
1555
1569
|
|
|
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 };
|
|
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
|
@@ -590,6 +590,7 @@ type WarpStateAction = {
|
|
|
590
590
|
auto?: boolean;
|
|
591
591
|
next?: WarpNextConfig;
|
|
592
592
|
when?: string;
|
|
593
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
593
594
|
};
|
|
594
595
|
type WarpMountAction = {
|
|
595
596
|
type: 'mount';
|
|
@@ -600,6 +601,7 @@ type WarpMountAction = {
|
|
|
600
601
|
auto?: boolean;
|
|
601
602
|
next?: WarpNextConfig;
|
|
602
603
|
when?: string;
|
|
604
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
603
605
|
};
|
|
604
606
|
type WarpUnmountAction = {
|
|
605
607
|
type: 'unmount';
|
|
@@ -610,6 +612,7 @@ type WarpUnmountAction = {
|
|
|
610
612
|
auto?: boolean;
|
|
611
613
|
next?: WarpNextConfig;
|
|
612
614
|
when?: string;
|
|
615
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
613
616
|
};
|
|
614
617
|
type WarpLoopAction = {
|
|
615
618
|
type: 'loop';
|
|
@@ -619,6 +622,7 @@ type WarpLoopAction = {
|
|
|
619
622
|
auto?: boolean;
|
|
620
623
|
next?: WarpNextConfig;
|
|
621
624
|
when?: string;
|
|
625
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
622
626
|
delay?: number;
|
|
623
627
|
maxIterations?: number;
|
|
624
628
|
};
|
|
@@ -631,6 +635,7 @@ type WarpInlineAction = {
|
|
|
631
635
|
auto?: boolean;
|
|
632
636
|
silent?: boolean;
|
|
633
637
|
when?: string;
|
|
638
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
634
639
|
output?: Record<string, string>;
|
|
635
640
|
};
|
|
636
641
|
type WarpTransferAction = {
|
|
@@ -645,6 +650,7 @@ type WarpTransferAction = {
|
|
|
645
650
|
auto?: boolean;
|
|
646
651
|
next?: WarpNextConfig;
|
|
647
652
|
when?: string;
|
|
653
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
648
654
|
};
|
|
649
655
|
type WarpContractAction = {
|
|
650
656
|
type: WarpActionType;
|
|
@@ -661,6 +667,7 @@ type WarpContractAction = {
|
|
|
661
667
|
auto?: boolean;
|
|
662
668
|
next?: WarpNextConfig;
|
|
663
669
|
when?: string;
|
|
670
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
664
671
|
};
|
|
665
672
|
type WarpQueryAction = {
|
|
666
673
|
type: WarpActionType;
|
|
@@ -674,6 +681,7 @@ type WarpQueryAction = {
|
|
|
674
681
|
auto?: boolean;
|
|
675
682
|
next?: WarpNextConfig;
|
|
676
683
|
when?: string;
|
|
684
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
677
685
|
};
|
|
678
686
|
type WarpCollectAction = {
|
|
679
687
|
type: WarpActionType;
|
|
@@ -684,6 +692,7 @@ type WarpCollectAction = {
|
|
|
684
692
|
auto?: boolean;
|
|
685
693
|
next?: WarpNextConfig;
|
|
686
694
|
when?: string;
|
|
695
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
687
696
|
};
|
|
688
697
|
type WarpComputeAction = {
|
|
689
698
|
type: 'compute';
|
|
@@ -693,6 +702,7 @@ type WarpComputeAction = {
|
|
|
693
702
|
auto?: boolean;
|
|
694
703
|
next?: WarpNextConfig;
|
|
695
704
|
when?: string;
|
|
705
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
696
706
|
};
|
|
697
707
|
type WarpCollectDestination = WarpCollectDestinationHttp | string;
|
|
698
708
|
type WarpCollectDestinationHttp = {
|
|
@@ -708,6 +718,7 @@ type WarpLinkAction = {
|
|
|
708
718
|
inputs?: WarpActionInput[];
|
|
709
719
|
auto?: boolean;
|
|
710
720
|
when?: string;
|
|
721
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
711
722
|
};
|
|
712
723
|
type WarpMcpAction = {
|
|
713
724
|
type: WarpActionType;
|
|
@@ -718,6 +729,7 @@ type WarpMcpAction = {
|
|
|
718
729
|
auto?: boolean;
|
|
719
730
|
next?: WarpNextConfig;
|
|
720
731
|
when?: string;
|
|
732
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
721
733
|
};
|
|
722
734
|
type WarpMcpDestination = {
|
|
723
735
|
url: string;
|
|
@@ -735,6 +747,7 @@ type WarpPromptAction = {
|
|
|
735
747
|
auto?: boolean;
|
|
736
748
|
next?: WarpNextConfig;
|
|
737
749
|
when?: string;
|
|
750
|
+
messages?: Record<WarpMessageName, WarpText>;
|
|
738
751
|
};
|
|
739
752
|
type WarpActionInputSource = 'field' | 'query' | 'user:wallet' | 'hidden';
|
|
740
753
|
type BaseWarpActionInputType = 'string' | 'string[]' | 'json' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'uint128' | 'uint256' | 'biguint' | 'bool' | 'address' | 'hex' | 'datetime' | 'email' | 'textarea' | 'file' | string;
|
|
@@ -971,6 +984,7 @@ declare const splitInput: (input: string) => [WarpActionInputType, string];
|
|
|
971
984
|
declare const hasInputPrefix: (input: string) => boolean;
|
|
972
985
|
|
|
973
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>;
|
|
974
988
|
|
|
975
989
|
/** Resolve a next config into an array of strings for the given path, optionally filtering by when conditions. */
|
|
976
990
|
declare const resolveNextStrings: (raw: WarpNextConfig | null | undefined, path: "success" | "error", output?: WarpExecutionOutput) => string[] | null;
|
|
@@ -1553,4 +1567,4 @@ declare function resolveInputs(trigger: WebhookTrigger, payload: unknown): Recor
|
|
|
1553
1567
|
*/
|
|
1554
1568
|
declare function resolvePath(obj: unknown, path: string): unknown;
|
|
1555
1569
|
|
|
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 };
|
|
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 };
|