@vleap/warps 0.8.0 → 0.8.1

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.mts CHANGED
@@ -37,6 +37,7 @@ type Warp = {
37
37
  name: string;
38
38
  title: string;
39
39
  description: string | null;
40
+ bot?: string;
40
41
  preview: string;
41
42
  vars?: Record<WarpVarPlaceholder, string>;
42
43
  actions: WarpAction[];
@@ -49,7 +50,7 @@ type WarpMeta = {
49
50
  createdAt: string;
50
51
  };
51
52
  type WarpAction = WarpContractAction | WarpQueryAction | WarpLinkAction;
52
- type WarpActionType = 'contract' | 'query' | 'link';
53
+ type WarpActionType = 'contract' | 'query' | 'collect' | 'link';
53
54
  type WarpContractAction = {
54
55
  type: WarpActionType;
55
56
  label: string;
@@ -85,6 +86,16 @@ type WarpQueryAction = {
85
86
  abi?: string;
86
87
  inputs?: WarpActionInput[];
87
88
  };
89
+ type WarpCollectAction = {
90
+ type: WarpActionType;
91
+ label: string;
92
+ description?: string | null;
93
+ destination: {
94
+ url: string;
95
+ method: 'GET' | 'POST';
96
+ headers: Record<string, string>;
97
+ };
98
+ };
88
99
  type WarpActionInputSource = 'field' | 'query';
89
100
  type BaseWarpActionInputType = 'string' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'biguint' | 'bool' | 'address' | 'token' | 'codemeta' | 'hex' | 'esdt' | 'nft';
90
101
  type WarpActionInputType = string;
@@ -92,7 +103,9 @@ type WarpActionInputPosition = 'value' | 'transfer' | `arg:${1 | 2 | 3 | 4 | 5 |
92
103
  type WarpActionInputModifier = 'scale';
93
104
  type WarpActionInput = {
94
105
  name: string;
106
+ as?: string;
95
107
  description?: string | null;
108
+ bot?: string;
96
109
  type: WarpActionInputType;
97
110
  position: WarpActionInputPosition;
98
111
  source: WarpActionInputSource;
@@ -368,4 +381,4 @@ declare class WarpUtils {
368
381
  static getNextStepUrl(warp: Warp, config: WarpConfig): string | null;
369
382
  }
370
383
 
371
- export { type BaseWarpActionInputType, type Brand, BrandBuilder, type BrandColors, type BrandCta, type BrandMeta, type BrandUrls, type ChainEnv, Config, type RegistryInfo, type TrustStatus, type Warp, type WarpAction, type WarpActionExecutionResult, WarpActionExecutor, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, WarpArgSerializer, WarpBuilder, type WarpCacheConfig, type WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractActionTransfer, WarpContractLoader, type WarpContractVerification, type WarpIdType, WarpIndex, WarpLink, type WarpLinkAction, type WarpMeta, type WarpNativeValue, type WarpQueryAction, WarpRegistry, type WarpSearchHit, type WarpSearchResult, WarpUtils, type WarpVarPlaceholder, address, biguint, boolean, codemeta, composite, esdt, getChainId, getLatestProtocolIdentifier, hex, list, nothing, option, optional, shiftBigintBy, string, toPreviewText, toTypedRegistryInfo, token, u16, u32, u64, u8, variadic };
384
+ export { type BaseWarpActionInputType, type Brand, BrandBuilder, type BrandColors, type BrandCta, type BrandMeta, type BrandUrls, type ChainEnv, Config, type RegistryInfo, type TrustStatus, type Warp, type WarpAction, type WarpActionExecutionResult, WarpActionExecutor, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, WarpArgSerializer, WarpBuilder, type WarpCacheConfig, type WarpCollectAction, type WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractActionTransfer, WarpContractLoader, type WarpContractVerification, type WarpIdType, WarpIndex, WarpLink, type WarpLinkAction, type WarpMeta, type WarpNativeValue, type WarpQueryAction, WarpRegistry, type WarpSearchHit, type WarpSearchResult, WarpUtils, type WarpVarPlaceholder, address, biguint, boolean, codemeta, composite, esdt, getChainId, getLatestProtocolIdentifier, hex, list, nothing, option, optional, shiftBigintBy, string, toPreviewText, toTypedRegistryInfo, token, u16, u32, u64, u8, variadic };
package/dist/index.d.ts CHANGED
@@ -37,6 +37,7 @@ type Warp = {
37
37
  name: string;
38
38
  title: string;
39
39
  description: string | null;
40
+ bot?: string;
40
41
  preview: string;
41
42
  vars?: Record<WarpVarPlaceholder, string>;
42
43
  actions: WarpAction[];
@@ -49,7 +50,7 @@ type WarpMeta = {
49
50
  createdAt: string;
50
51
  };
51
52
  type WarpAction = WarpContractAction | WarpQueryAction | WarpLinkAction;
52
- type WarpActionType = 'contract' | 'query' | 'link';
53
+ type WarpActionType = 'contract' | 'query' | 'collect' | 'link';
53
54
  type WarpContractAction = {
54
55
  type: WarpActionType;
55
56
  label: string;
@@ -85,6 +86,16 @@ type WarpQueryAction = {
85
86
  abi?: string;
86
87
  inputs?: WarpActionInput[];
87
88
  };
89
+ type WarpCollectAction = {
90
+ type: WarpActionType;
91
+ label: string;
92
+ description?: string | null;
93
+ destination: {
94
+ url: string;
95
+ method: 'GET' | 'POST';
96
+ headers: Record<string, string>;
97
+ };
98
+ };
88
99
  type WarpActionInputSource = 'field' | 'query';
89
100
  type BaseWarpActionInputType = 'string' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'biguint' | 'bool' | 'address' | 'token' | 'codemeta' | 'hex' | 'esdt' | 'nft';
90
101
  type WarpActionInputType = string;
@@ -92,7 +103,9 @@ type WarpActionInputPosition = 'value' | 'transfer' | `arg:${1 | 2 | 3 | 4 | 5 |
92
103
  type WarpActionInputModifier = 'scale';
93
104
  type WarpActionInput = {
94
105
  name: string;
106
+ as?: string;
95
107
  description?: string | null;
108
+ bot?: string;
96
109
  type: WarpActionInputType;
97
110
  position: WarpActionInputPosition;
98
111
  source: WarpActionInputSource;
@@ -368,4 +381,4 @@ declare class WarpUtils {
368
381
  static getNextStepUrl(warp: Warp, config: WarpConfig): string | null;
369
382
  }
370
383
 
371
- export { type BaseWarpActionInputType, type Brand, BrandBuilder, type BrandColors, type BrandCta, type BrandMeta, type BrandUrls, type ChainEnv, Config, type RegistryInfo, type TrustStatus, type Warp, type WarpAction, type WarpActionExecutionResult, WarpActionExecutor, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, WarpArgSerializer, WarpBuilder, type WarpCacheConfig, type WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractActionTransfer, WarpContractLoader, type WarpContractVerification, type WarpIdType, WarpIndex, WarpLink, type WarpLinkAction, type WarpMeta, type WarpNativeValue, type WarpQueryAction, WarpRegistry, type WarpSearchHit, type WarpSearchResult, WarpUtils, type WarpVarPlaceholder, address, biguint, boolean, codemeta, composite, esdt, getChainId, getLatestProtocolIdentifier, hex, list, nothing, option, optional, shiftBigintBy, string, toPreviewText, toTypedRegistryInfo, token, u16, u32, u64, u8, variadic };
384
+ export { type BaseWarpActionInputType, type Brand, BrandBuilder, type BrandColors, type BrandCta, type BrandMeta, type BrandUrls, type ChainEnv, Config, type RegistryInfo, type TrustStatus, type Warp, type WarpAction, type WarpActionExecutionResult, WarpActionExecutor, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, WarpArgSerializer, WarpBuilder, type WarpCacheConfig, type WarpCollectAction, type WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractActionTransfer, WarpContractLoader, type WarpContractVerification, type WarpIdType, WarpIndex, WarpLink, type WarpLinkAction, type WarpMeta, type WarpNativeValue, type WarpQueryAction, WarpRegistry, type WarpSearchHit, type WarpSearchResult, WarpUtils, type WarpVarPlaceholder, address, biguint, boolean, codemeta, composite, esdt, getChainId, getLatestProtocolIdentifier, hex, list, nothing, option, optional, shiftBigintBy, string, toPreviewText, toTypedRegistryInfo, token, u16, u32, u64, u8, variadic };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vleap/warps",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",