@coinbase/cdp-sdk 1.35.0 → 1.36.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/CHANGELOG.md +18 -0
- package/_cjs/accounts/evm/types.js +3 -0
- package/_cjs/accounts/evm/types.js.map +1 -1
- package/_cjs/accounts/solana/types.js +3 -0
- package/_cjs/accounts/solana/types.js.map +1 -1
- package/_cjs/actions/evm/transfer/accountTransferStrategy.js +0 -11
- package/_cjs/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
- package/_cjs/actions/evm/transfer/smartAccountTransferStrategy.js +0 -8
- package/_cjs/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
- package/_cjs/actions/evm/types.js +3 -0
- package/_cjs/actions/evm/types.js.map +1 -1
- package/_cjs/actions/solana/types.js +3 -0
- package/_cjs/actions/solana/types.js.map +1 -1
- package/_cjs/auth/errors.js +3 -0
- package/_cjs/auth/errors.js.map +1 -1
- package/_cjs/auth/hooks/axios/withAuth.js +3 -0
- package/_cjs/auth/hooks/axios/withAuth.js.map +1 -1
- package/_cjs/auth/utils/hash.js +3 -0
- package/_cjs/auth/utils/hash.js.map +1 -1
- package/_cjs/auth/utils/http.js +3 -0
- package/_cjs/auth/utils/http.js.map +1 -1
- package/_cjs/auth/utils/jwt.js +3 -0
- package/_cjs/auth/utils/jwt.js.map +1 -1
- package/_cjs/auth/utils/ws.js +3 -0
- package/_cjs/auth/utils/ws.js.map +1 -1
- package/_cjs/client/evm/evm.js +10 -0
- package/_cjs/client/evm/evm.js.map +1 -1
- package/_cjs/client/evm/evm.types.js +3 -0
- package/_cjs/client/evm/evm.types.js.map +1 -1
- package/_cjs/client/policies/policies.js +3 -0
- package/_cjs/client/policies/policies.js.map +1 -1
- package/_cjs/client/policies/policies.types.js +3 -0
- package/_cjs/client/policies/policies.types.js.map +1 -1
- package/_cjs/client/solana/solana.js +3 -0
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/client/solana/solana.types.js +3 -0
- package/_cjs/client/solana/solana.types.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +30 -3
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/policies/solanaSchema.js +75 -1
- package/_cjs/policies/solanaSchema.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/accounts/evm/types.js +3 -0
- package/_esm/accounts/evm/types.js.map +1 -1
- package/_esm/accounts/solana/types.js +3 -0
- package/_esm/accounts/solana/types.js.map +1 -1
- package/_esm/actions/evm/transfer/accountTransferStrategy.js +0 -11
- package/_esm/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
- package/_esm/actions/evm/transfer/smartAccountTransferStrategy.js +0 -8
- package/_esm/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
- package/_esm/actions/evm/types.js +3 -0
- package/_esm/actions/evm/types.js.map +1 -1
- package/_esm/actions/solana/types.js +3 -0
- package/_esm/actions/solana/types.js.map +1 -1
- package/_esm/auth/errors.js +3 -0
- package/_esm/auth/errors.js.map +1 -1
- package/_esm/auth/hooks/axios/withAuth.js +3 -0
- package/_esm/auth/hooks/axios/withAuth.js.map +1 -1
- package/_esm/auth/utils/hash.js +3 -0
- package/_esm/auth/utils/hash.js.map +1 -1
- package/_esm/auth/utils/http.js +3 -0
- package/_esm/auth/utils/http.js.map +1 -1
- package/_esm/auth/utils/jwt.js +3 -0
- package/_esm/auth/utils/jwt.js.map +1 -1
- package/_esm/auth/utils/ws.js +3 -0
- package/_esm/auth/utils/ws.js.map +1 -1
- package/_esm/client/evm/evm.js +10 -0
- package/_esm/client/evm/evm.js.map +1 -1
- package/_esm/client/evm/evm.types.js +3 -0
- package/_esm/client/evm/evm.types.js.map +1 -1
- package/_esm/client/policies/policies.js +3 -0
- package/_esm/client/policies/policies.js.map +1 -1
- package/_esm/client/policies/policies.types.js +3 -0
- package/_esm/client/policies/policies.types.js.map +1 -1
- package/_esm/client/solana/solana.js +3 -0
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/client/solana/solana.types.js +3 -0
- package/_esm/client/solana/solana.types.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +28 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/policies/solanaSchema.js +74 -0
- package/_esm/policies/solanaSchema.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/accounts/evm/types.d.ts +16 -0
- package/_types/accounts/evm/types.d.ts.map +1 -1
- package/_types/accounts/solana/types.d.ts +8 -0
- package/_types/accounts/solana/types.d.ts.map +1 -1
- package/_types/actions/evm/spend-permissions/types.d.ts +1 -1
- package/_types/actions/evm/spend-permissions/types.d.ts.map +1 -1
- package/_types/actions/evm/transfer/accountTransferStrategy.d.ts.map +1 -1
- package/_types/actions/evm/transfer/smartAccountTransferStrategy.d.ts.map +1 -1
- package/_types/actions/evm/types.d.ts +3 -0
- package/_types/actions/evm/types.d.ts.map +1 -1
- package/_types/actions/solana/types.d.ts +3 -0
- package/_types/actions/solana/types.d.ts.map +1 -1
- package/_types/auth/errors.d.ts +3 -0
- package/_types/auth/errors.d.ts.map +1 -1
- package/_types/auth/hooks/axios/withAuth.d.ts +3 -0
- package/_types/auth/hooks/axios/withAuth.d.ts.map +1 -1
- package/_types/auth/utils/hash.d.ts +3 -0
- package/_types/auth/utils/hash.d.ts.map +1 -1
- package/_types/auth/utils/http.d.ts +3 -0
- package/_types/auth/utils/http.d.ts.map +1 -1
- package/_types/auth/utils/jwt.d.ts +3 -0
- package/_types/auth/utils/jwt.d.ts.map +1 -1
- package/_types/auth/utils/ws.d.ts +3 -0
- package/_types/auth/utils/ws.d.ts.map +1 -1
- package/_types/client/evm/evm.d.ts +3 -0
- package/_types/client/evm/evm.d.ts.map +1 -1
- package/_types/client/evm/evm.types.d.ts +3 -0
- package/_types/client/evm/evm.types.d.ts.map +1 -1
- package/_types/client/policies/policies.d.ts +3 -0
- package/_types/client/policies/policies.d.ts.map +1 -1
- package/_types/client/policies/policies.types.d.ts +3 -0
- package/_types/client/policies/policies.types.d.ts.map +1 -1
- package/_types/client/solana/solana.d.ts +3 -0
- package/_types/client/solana/solana.d.ts.map +1 -1
- package/_types/client/solana/solana.types.d.ts +3 -0
- package/_types/client/solana/solana.types.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +152 -7
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/policies/solanaSchema.d.ts +852 -0
- package/_types/policies/solanaSchema.d.ts.map +1 -1
- package/_types/policies/types.d.ts +948 -0
- package/_types/policies/types.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/accounts/evm/types.ts +18 -2
- package/accounts/solana/types.ts +9 -0
- package/actions/evm/spend-permissions/types.ts +1 -1
- package/actions/evm/transfer/accountTransferStrategy.ts +0 -12
- package/actions/evm/transfer/smartAccountTransferStrategy.ts +0 -8
- package/actions/evm/types.ts +4 -0
- package/actions/solana/types.ts +4 -0
- package/auth/errors.ts +4 -0
- package/auth/hooks/axios/withAuth.ts +4 -0
- package/auth/utils/hash.ts +4 -0
- package/auth/utils/http.ts +4 -0
- package/auth/utils/jwt.ts +4 -0
- package/auth/utils/ws.ts +4 -0
- package/client/evm/evm.ts +14 -0
- package/client/evm/evm.types.ts +4 -0
- package/client/policies/policies.ts +4 -0
- package/client/policies/policies.types.ts +4 -0
- package/client/solana/solana.ts +4 -0
- package/client/solana/solana.types.ts +4 -0
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +179 -8
- package/package.json +1 -1
- package/policies/solanaSchema.ts +100 -0
- package/version.ts +1 -1
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js +0 -61
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js +0 -319
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +0 -514
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.msw.js +0 -179
- package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js +0 -45
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/faucets/faucets.msw.js +0 -47
- package/_cjs/openapi-client/generated/faucets/faucets.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/index.msw.js +0 -30
- package/_cjs/openapi-client/generated/index.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.msw.js +0 -139
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/onramp/onramp.msw.js +0 -98
- package/_cjs/openapi-client/generated/onramp/onramp.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.msw.js +0 -270
- package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js +0 -1387
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js +0 -294
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js +0 -43
- package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js +0 -84
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js.map +0 -1
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js +0 -52
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js.map +0 -1
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js +0 -289
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +0 -1
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +0 -488
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +0 -1
- package/_esm/openapi-client/generated/evm-swaps/evm-swaps.msw.js +0 -167
- package/_esm/openapi-client/generated/evm-swaps/evm-swaps.msw.js.map +0 -1
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js +0 -39
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js.map +0 -1
- package/_esm/openapi-client/generated/faucets/faucets.msw.js +0 -39
- package/_esm/openapi-client/generated/faucets/faucets.msw.js.map +0 -1
- package/_esm/openapi-client/generated/index.msw.js +0 -14
- package/_esm/openapi-client/generated/index.msw.js.map +0 -1
- package/_esm/openapi-client/generated/onchain-data/onchain-data.msw.js +0 -129
- package/_esm/openapi-client/generated/onchain-data/onchain-data.msw.js.map +0 -1
- package/_esm/openapi-client/generated/onramp/onramp.msw.js +0 -90
- package/_esm/openapi-client/generated/onramp/onramp.msw.js.map +0 -1
- package/_esm/openapi-client/generated/payments-alpha/payments-alpha.msw.js +0 -250
- package/_esm/openapi-client/generated/payments-alpha/payments-alpha.msw.js.map +0 -1
- package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js +0 -1293
- package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js.map +0 -1
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js +0 -268
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +0 -1
- package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js +0 -37
- package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js.map +0 -1
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js +0 -74
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js.map +0 -1
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.msw.d.ts +0 -9
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts +0 -30
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts +0 -26
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.msw.d.ts +0 -12
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.msw.d.ts +0 -6
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/faucets/faucets.msw.d.ts +0 -8
- package/_types/openapi-client/generated/faucets/faucets.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/index.msw.d.ts +0 -14
- package/_types/openapi-client/generated/index.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/onchain-data/onchain-data.msw.d.ts +0 -10
- package/_types/openapi-client/generated/onchain-data/onchain-data.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/onramp/onramp.msw.d.ts +0 -8
- package/_types/openapi-client/generated/onramp/onramp.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/payments-alpha/payments-alpha.msw.d.ts +0 -20
- package/_types/openapi-client/generated/payments-alpha/payments-alpha.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts +0 -93
- package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts +0 -26
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.msw.d.ts +0 -6
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.msw.d.ts +0 -10
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.msw.d.ts.map +0 -1
- package/openapi-client/generated/end-user-accounts/end-user-accounts.msw.ts +0 -95
- package/openapi-client/generated/evm-accounts/evm-accounts.msw.ts +0 -523
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.ts +0 -705
- package/openapi-client/generated/evm-swaps/evm-swaps.msw.ts +0 -217
- package/openapi-client/generated/evm-token-balances/evm-token-balances.msw.ts +0 -57
- package/openapi-client/generated/faucets/faucets.msw.ts +0 -76
- package/openapi-client/generated/index.msw.ts +0 -13
- package/openapi-client/generated/onchain-data/onchain-data.msw.ts +0 -185
- package/openapi-client/generated/onramp/onramp.msw.ts +0 -135
- package/openapi-client/generated/payments-alpha/payments-alpha.msw.ts +0 -369
- package/openapi-client/generated/policy-engine/policy-engine.msw.ts +0 -1912
- package/openapi-client/generated/solana-accounts/solana-accounts.msw.ts +0 -478
- package/openapi-client/generated/solana-token-balances/solana-token-balances.msw.ts +0 -55
- package/openapi-client/generated/x402-facilitator/x402-facilitator.msw.ts +0 -136
|
@@ -53,6 +53,153 @@ export declare const MintAddressOperatorEnum: z.ZodEnum<["in", "not in"]>;
|
|
|
53
53
|
* These operators determine how token mint addresses are evaluated against a list.
|
|
54
54
|
*/
|
|
55
55
|
export type MintAddressOperator = z.infer<typeof MintAddressOperatorEnum>;
|
|
56
|
+
/**
|
|
57
|
+
* Enum for KnownIdlType values
|
|
58
|
+
*/
|
|
59
|
+
export declare const KnownIdlTypeEnum: z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>;
|
|
60
|
+
/**
|
|
61
|
+
* Type representing known Solana programs that have established IDL specifications.
|
|
62
|
+
* These programs can be referenced directly by name in policy rules.
|
|
63
|
+
*/
|
|
64
|
+
export type KnownIdlType = z.infer<typeof KnownIdlTypeEnum>;
|
|
65
|
+
/**
|
|
66
|
+
* Schema for IDL specifications following Anchor's IDL format v0.30+
|
|
67
|
+
*/
|
|
68
|
+
export declare const IdlSchema: z.ZodObject<{
|
|
69
|
+
/** The program address */
|
|
70
|
+
address: z.ZodString;
|
|
71
|
+
/** Array of instruction specifications */
|
|
72
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
73
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
74
|
+
/** The program address */
|
|
75
|
+
address: z.ZodString;
|
|
76
|
+
/** Array of instruction specifications */
|
|
77
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
78
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
79
|
+
/** The program address */
|
|
80
|
+
address: z.ZodString;
|
|
81
|
+
/** Array of instruction specifications */
|
|
82
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
83
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
84
|
+
export type Idl = z.infer<typeof IdlSchema>;
|
|
85
|
+
/**
|
|
86
|
+
* Enum for SolDataParameterOperator values
|
|
87
|
+
*/
|
|
88
|
+
export declare const SolDataParameterOperatorEnum: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
89
|
+
/**
|
|
90
|
+
* Type representing the operators that can be used for Solana data parameter comparisons.
|
|
91
|
+
*/
|
|
92
|
+
export type SolDataParameterOperator = z.infer<typeof SolDataParameterOperatorEnum>;
|
|
93
|
+
/**
|
|
94
|
+
* Enum for SolDataParameterListOperator values
|
|
95
|
+
*/
|
|
96
|
+
export declare const SolDataParameterListOperatorEnum: z.ZodEnum<["in", "not in"]>;
|
|
97
|
+
/**
|
|
98
|
+
* Type representing the operators that can be used for Solana data parameter list comparisons.
|
|
99
|
+
*/
|
|
100
|
+
export type SolDataParameterListOperator = z.infer<typeof SolDataParameterListOperatorEnum>;
|
|
101
|
+
/**
|
|
102
|
+
* Schema for Solana data parameter conditions (single value)
|
|
103
|
+
*/
|
|
104
|
+
export declare const SolDataParameterConditionSchema: z.ZodObject<{
|
|
105
|
+
/** The parameter name */
|
|
106
|
+
name: z.ZodString;
|
|
107
|
+
/** The operator to use for the comparison */
|
|
108
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
109
|
+
/** The value to compare against */
|
|
110
|
+
value: z.ZodString;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
value: string;
|
|
113
|
+
name: string;
|
|
114
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
115
|
+
}, {
|
|
116
|
+
value: string;
|
|
117
|
+
name: string;
|
|
118
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
119
|
+
}>;
|
|
120
|
+
export type SolDataParameterCondition = z.infer<typeof SolDataParameterConditionSchema>;
|
|
121
|
+
/**
|
|
122
|
+
* Schema for Solana data parameter conditions (list values)
|
|
123
|
+
*/
|
|
124
|
+
export declare const SolDataParameterConditionListSchema: z.ZodObject<{
|
|
125
|
+
/** The parameter name */
|
|
126
|
+
name: z.ZodString;
|
|
127
|
+
/** The operator to use for the comparison */
|
|
128
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
129
|
+
/** The values to compare against */
|
|
130
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
values: string[];
|
|
133
|
+
name: string;
|
|
134
|
+
operator: "in" | "not in";
|
|
135
|
+
}, {
|
|
136
|
+
values: string[];
|
|
137
|
+
name: string;
|
|
138
|
+
operator: "in" | "not in";
|
|
139
|
+
}>;
|
|
140
|
+
export type SolDataParameterConditionList = z.infer<typeof SolDataParameterConditionListSchema>;
|
|
141
|
+
/**
|
|
142
|
+
* Schema for Solana data conditions
|
|
143
|
+
*/
|
|
144
|
+
export declare const SolDataConditionSchema: z.ZodObject<{
|
|
145
|
+
/** The instruction name */
|
|
146
|
+
instruction: z.ZodString;
|
|
147
|
+
/** Parameter conditions for the instruction */
|
|
148
|
+
params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
149
|
+
/** The parameter name */
|
|
150
|
+
name: z.ZodString;
|
|
151
|
+
/** The operator to use for the comparison */
|
|
152
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
153
|
+
/** The value to compare against */
|
|
154
|
+
value: z.ZodString;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
value: string;
|
|
157
|
+
name: string;
|
|
158
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
159
|
+
}, {
|
|
160
|
+
value: string;
|
|
161
|
+
name: string;
|
|
162
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
163
|
+
}>, z.ZodObject<{
|
|
164
|
+
/** The parameter name */
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
/** The operator to use for the comparison */
|
|
167
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
168
|
+
/** The values to compare against */
|
|
169
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
values: string[];
|
|
172
|
+
name: string;
|
|
173
|
+
operator: "in" | "not in";
|
|
174
|
+
}, {
|
|
175
|
+
values: string[];
|
|
176
|
+
name: string;
|
|
177
|
+
operator: "in" | "not in";
|
|
178
|
+
}>]>, "many">>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
instruction: string;
|
|
181
|
+
params?: ({
|
|
182
|
+
value: string;
|
|
183
|
+
name: string;
|
|
184
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
185
|
+
} | {
|
|
186
|
+
values: string[];
|
|
187
|
+
name: string;
|
|
188
|
+
operator: "in" | "not in";
|
|
189
|
+
})[] | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
instruction: string;
|
|
192
|
+
params?: ({
|
|
193
|
+
value: string;
|
|
194
|
+
name: string;
|
|
195
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
196
|
+
} | {
|
|
197
|
+
values: string[];
|
|
198
|
+
name: string;
|
|
199
|
+
operator: "in" | "not in";
|
|
200
|
+
})[] | undefined;
|
|
201
|
+
}>;
|
|
202
|
+
export type SolDataCondition = z.infer<typeof SolDataConditionSchema>;
|
|
56
203
|
/**
|
|
57
204
|
* Schema for Solana address criterions
|
|
58
205
|
*/
|
|
@@ -180,6 +327,135 @@ export declare const MintAddressCriterionSchema: z.ZodObject<{
|
|
|
180
327
|
addresses: string[];
|
|
181
328
|
}>;
|
|
182
329
|
export type MintAddressCriterion = z.infer<typeof MintAddressCriterionSchema>;
|
|
330
|
+
/**
|
|
331
|
+
* Schema for Solana data criterions
|
|
332
|
+
*/
|
|
333
|
+
export declare const SolDataCriterionSchema: z.ZodObject<{
|
|
334
|
+
/** The type of criterion, must be "solData" for Solana data-based rules. */
|
|
335
|
+
type: z.ZodLiteral<"solData">;
|
|
336
|
+
/**
|
|
337
|
+
* List of IDL specifications. Can contain known program names (strings) or custom IDL objects.
|
|
338
|
+
*/
|
|
339
|
+
idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
|
|
340
|
+
/** The program address */
|
|
341
|
+
address: z.ZodString;
|
|
342
|
+
/** Array of instruction specifications */
|
|
343
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
344
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
345
|
+
/** The program address */
|
|
346
|
+
address: z.ZodString;
|
|
347
|
+
/** Array of instruction specifications */
|
|
348
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
349
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
350
|
+
/** The program address */
|
|
351
|
+
address: z.ZodString;
|
|
352
|
+
/** Array of instruction specifications */
|
|
353
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
354
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">;
|
|
355
|
+
/**
|
|
356
|
+
* A list of conditions to apply against the transaction instruction.
|
|
357
|
+
* Only one condition must evaluate to true for this criterion to be met.
|
|
358
|
+
*/
|
|
359
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
360
|
+
/** The instruction name */
|
|
361
|
+
instruction: z.ZodString;
|
|
362
|
+
/** Parameter conditions for the instruction */
|
|
363
|
+
params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
364
|
+
/** The parameter name */
|
|
365
|
+
name: z.ZodString;
|
|
366
|
+
/** The operator to use for the comparison */
|
|
367
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
368
|
+
/** The value to compare against */
|
|
369
|
+
value: z.ZodString;
|
|
370
|
+
}, "strip", z.ZodTypeAny, {
|
|
371
|
+
value: string;
|
|
372
|
+
name: string;
|
|
373
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
374
|
+
}, {
|
|
375
|
+
value: string;
|
|
376
|
+
name: string;
|
|
377
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
378
|
+
}>, z.ZodObject<{
|
|
379
|
+
/** The parameter name */
|
|
380
|
+
name: z.ZodString;
|
|
381
|
+
/** The operator to use for the comparison */
|
|
382
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
383
|
+
/** The values to compare against */
|
|
384
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
values: string[];
|
|
387
|
+
name: string;
|
|
388
|
+
operator: "in" | "not in";
|
|
389
|
+
}, {
|
|
390
|
+
values: string[];
|
|
391
|
+
name: string;
|
|
392
|
+
operator: "in" | "not in";
|
|
393
|
+
}>]>, "many">>;
|
|
394
|
+
}, "strip", z.ZodTypeAny, {
|
|
395
|
+
instruction: string;
|
|
396
|
+
params?: ({
|
|
397
|
+
value: string;
|
|
398
|
+
name: string;
|
|
399
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
400
|
+
} | {
|
|
401
|
+
values: string[];
|
|
402
|
+
name: string;
|
|
403
|
+
operator: "in" | "not in";
|
|
404
|
+
})[] | undefined;
|
|
405
|
+
}, {
|
|
406
|
+
instruction: string;
|
|
407
|
+
params?: ({
|
|
408
|
+
value: string;
|
|
409
|
+
name: string;
|
|
410
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
411
|
+
} | {
|
|
412
|
+
values: string[];
|
|
413
|
+
name: string;
|
|
414
|
+
operator: "in" | "not in";
|
|
415
|
+
})[] | undefined;
|
|
416
|
+
}>, "many">;
|
|
417
|
+
}, "strip", z.ZodTypeAny, {
|
|
418
|
+
type: "solData";
|
|
419
|
+
conditions: {
|
|
420
|
+
instruction: string;
|
|
421
|
+
params?: ({
|
|
422
|
+
value: string;
|
|
423
|
+
name: string;
|
|
424
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
425
|
+
} | {
|
|
426
|
+
values: string[];
|
|
427
|
+
name: string;
|
|
428
|
+
operator: "in" | "not in";
|
|
429
|
+
})[] | undefined;
|
|
430
|
+
}[];
|
|
431
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
|
|
432
|
+
/** The program address */
|
|
433
|
+
address: z.ZodString;
|
|
434
|
+
/** Array of instruction specifications */
|
|
435
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
436
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
437
|
+
}, {
|
|
438
|
+
type: "solData";
|
|
439
|
+
conditions: {
|
|
440
|
+
instruction: string;
|
|
441
|
+
params?: ({
|
|
442
|
+
value: string;
|
|
443
|
+
name: string;
|
|
444
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
445
|
+
} | {
|
|
446
|
+
values: string[];
|
|
447
|
+
name: string;
|
|
448
|
+
operator: "in" | "not in";
|
|
449
|
+
})[] | undefined;
|
|
450
|
+
}[];
|
|
451
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
|
|
452
|
+
/** The program address */
|
|
453
|
+
address: z.ZodString;
|
|
454
|
+
/** Array of instruction specifications */
|
|
455
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
456
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
457
|
+
}>;
|
|
458
|
+
export type SolDataCriterion = z.infer<typeof SolDataCriterionSchema>;
|
|
183
459
|
/**
|
|
184
460
|
* Schema for criteria used in SignSolTransaction operations
|
|
185
461
|
*/
|
|
@@ -285,6 +561,130 @@ export declare const SignSolTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
285
561
|
type: "mintAddress";
|
|
286
562
|
operator: "in" | "not in";
|
|
287
563
|
addresses: string[];
|
|
564
|
+
}>, z.ZodObject<{
|
|
565
|
+
/** The type of criterion, must be "solData" for Solana data-based rules. */
|
|
566
|
+
type: z.ZodLiteral<"solData">;
|
|
567
|
+
/**
|
|
568
|
+
* List of IDL specifications. Can contain known program names (strings) or custom IDL objects.
|
|
569
|
+
*/
|
|
570
|
+
idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
|
|
571
|
+
/** The program address */
|
|
572
|
+
address: z.ZodString;
|
|
573
|
+
/** Array of instruction specifications */
|
|
574
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
575
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
576
|
+
/** The program address */
|
|
577
|
+
address: z.ZodString;
|
|
578
|
+
/** Array of instruction specifications */
|
|
579
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
580
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
581
|
+
/** The program address */
|
|
582
|
+
address: z.ZodString;
|
|
583
|
+
/** Array of instruction specifications */
|
|
584
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
585
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">;
|
|
586
|
+
/**
|
|
587
|
+
* A list of conditions to apply against the transaction instruction.
|
|
588
|
+
* Only one condition must evaluate to true for this criterion to be met.
|
|
589
|
+
*/
|
|
590
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
591
|
+
/** The instruction name */
|
|
592
|
+
instruction: z.ZodString;
|
|
593
|
+
/** Parameter conditions for the instruction */
|
|
594
|
+
params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
595
|
+
/** The parameter name */
|
|
596
|
+
name: z.ZodString;
|
|
597
|
+
/** The operator to use for the comparison */
|
|
598
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
599
|
+
/** The value to compare against */
|
|
600
|
+
value: z.ZodString;
|
|
601
|
+
}, "strip", z.ZodTypeAny, {
|
|
602
|
+
value: string;
|
|
603
|
+
name: string;
|
|
604
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
605
|
+
}, {
|
|
606
|
+
value: string;
|
|
607
|
+
name: string;
|
|
608
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
609
|
+
}>, z.ZodObject<{
|
|
610
|
+
/** The parameter name */
|
|
611
|
+
name: z.ZodString;
|
|
612
|
+
/** The operator to use for the comparison */
|
|
613
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
614
|
+
/** The values to compare against */
|
|
615
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
616
|
+
}, "strip", z.ZodTypeAny, {
|
|
617
|
+
values: string[];
|
|
618
|
+
name: string;
|
|
619
|
+
operator: "in" | "not in";
|
|
620
|
+
}, {
|
|
621
|
+
values: string[];
|
|
622
|
+
name: string;
|
|
623
|
+
operator: "in" | "not in";
|
|
624
|
+
}>]>, "many">>;
|
|
625
|
+
}, "strip", z.ZodTypeAny, {
|
|
626
|
+
instruction: string;
|
|
627
|
+
params?: ({
|
|
628
|
+
value: string;
|
|
629
|
+
name: string;
|
|
630
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
631
|
+
} | {
|
|
632
|
+
values: string[];
|
|
633
|
+
name: string;
|
|
634
|
+
operator: "in" | "not in";
|
|
635
|
+
})[] | undefined;
|
|
636
|
+
}, {
|
|
637
|
+
instruction: string;
|
|
638
|
+
params?: ({
|
|
639
|
+
value: string;
|
|
640
|
+
name: string;
|
|
641
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
642
|
+
} | {
|
|
643
|
+
values: string[];
|
|
644
|
+
name: string;
|
|
645
|
+
operator: "in" | "not in";
|
|
646
|
+
})[] | undefined;
|
|
647
|
+
}>, "many">;
|
|
648
|
+
}, "strip", z.ZodTypeAny, {
|
|
649
|
+
type: "solData";
|
|
650
|
+
conditions: {
|
|
651
|
+
instruction: string;
|
|
652
|
+
params?: ({
|
|
653
|
+
value: string;
|
|
654
|
+
name: string;
|
|
655
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
656
|
+
} | {
|
|
657
|
+
values: string[];
|
|
658
|
+
name: string;
|
|
659
|
+
operator: "in" | "not in";
|
|
660
|
+
})[] | undefined;
|
|
661
|
+
}[];
|
|
662
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
|
|
663
|
+
/** The program address */
|
|
664
|
+
address: z.ZodString;
|
|
665
|
+
/** Array of instruction specifications */
|
|
666
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
667
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
668
|
+
}, {
|
|
669
|
+
type: "solData";
|
|
670
|
+
conditions: {
|
|
671
|
+
instruction: string;
|
|
672
|
+
params?: ({
|
|
673
|
+
value: string;
|
|
674
|
+
name: string;
|
|
675
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
676
|
+
} | {
|
|
677
|
+
values: string[];
|
|
678
|
+
name: string;
|
|
679
|
+
operator: "in" | "not in";
|
|
680
|
+
})[] | undefined;
|
|
681
|
+
}[];
|
|
682
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
|
|
683
|
+
/** The program address */
|
|
684
|
+
address: z.ZodString;
|
|
685
|
+
/** Array of instruction specifications */
|
|
686
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
687
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
288
688
|
}>]>, "many">;
|
|
289
689
|
/**
|
|
290
690
|
* Type representing a set of criteria for the signSolTransaction operation.
|
|
@@ -396,6 +796,130 @@ export declare const SendSolTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
396
796
|
type: "mintAddress";
|
|
397
797
|
operator: "in" | "not in";
|
|
398
798
|
addresses: string[];
|
|
799
|
+
}>, z.ZodObject<{
|
|
800
|
+
/** The type of criterion, must be "solData" for Solana data-based rules. */
|
|
801
|
+
type: z.ZodLiteral<"solData">;
|
|
802
|
+
/**
|
|
803
|
+
* List of IDL specifications. Can contain known program names (strings) or custom IDL objects.
|
|
804
|
+
*/
|
|
805
|
+
idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
|
|
806
|
+
/** The program address */
|
|
807
|
+
address: z.ZodString;
|
|
808
|
+
/** Array of instruction specifications */
|
|
809
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
810
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
811
|
+
/** The program address */
|
|
812
|
+
address: z.ZodString;
|
|
813
|
+
/** Array of instruction specifications */
|
|
814
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
815
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
816
|
+
/** The program address */
|
|
817
|
+
address: z.ZodString;
|
|
818
|
+
/** Array of instruction specifications */
|
|
819
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
820
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">;
|
|
821
|
+
/**
|
|
822
|
+
* A list of conditions to apply against the transaction instruction.
|
|
823
|
+
* Only one condition must evaluate to true for this criterion to be met.
|
|
824
|
+
*/
|
|
825
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
826
|
+
/** The instruction name */
|
|
827
|
+
instruction: z.ZodString;
|
|
828
|
+
/** Parameter conditions for the instruction */
|
|
829
|
+
params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
830
|
+
/** The parameter name */
|
|
831
|
+
name: z.ZodString;
|
|
832
|
+
/** The operator to use for the comparison */
|
|
833
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
834
|
+
/** The value to compare against */
|
|
835
|
+
value: z.ZodString;
|
|
836
|
+
}, "strip", z.ZodTypeAny, {
|
|
837
|
+
value: string;
|
|
838
|
+
name: string;
|
|
839
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
840
|
+
}, {
|
|
841
|
+
value: string;
|
|
842
|
+
name: string;
|
|
843
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
844
|
+
}>, z.ZodObject<{
|
|
845
|
+
/** The parameter name */
|
|
846
|
+
name: z.ZodString;
|
|
847
|
+
/** The operator to use for the comparison */
|
|
848
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
849
|
+
/** The values to compare against */
|
|
850
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
851
|
+
}, "strip", z.ZodTypeAny, {
|
|
852
|
+
values: string[];
|
|
853
|
+
name: string;
|
|
854
|
+
operator: "in" | "not in";
|
|
855
|
+
}, {
|
|
856
|
+
values: string[];
|
|
857
|
+
name: string;
|
|
858
|
+
operator: "in" | "not in";
|
|
859
|
+
}>]>, "many">>;
|
|
860
|
+
}, "strip", z.ZodTypeAny, {
|
|
861
|
+
instruction: string;
|
|
862
|
+
params?: ({
|
|
863
|
+
value: string;
|
|
864
|
+
name: string;
|
|
865
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
866
|
+
} | {
|
|
867
|
+
values: string[];
|
|
868
|
+
name: string;
|
|
869
|
+
operator: "in" | "not in";
|
|
870
|
+
})[] | undefined;
|
|
871
|
+
}, {
|
|
872
|
+
instruction: string;
|
|
873
|
+
params?: ({
|
|
874
|
+
value: string;
|
|
875
|
+
name: string;
|
|
876
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
877
|
+
} | {
|
|
878
|
+
values: string[];
|
|
879
|
+
name: string;
|
|
880
|
+
operator: "in" | "not in";
|
|
881
|
+
})[] | undefined;
|
|
882
|
+
}>, "many">;
|
|
883
|
+
}, "strip", z.ZodTypeAny, {
|
|
884
|
+
type: "solData";
|
|
885
|
+
conditions: {
|
|
886
|
+
instruction: string;
|
|
887
|
+
params?: ({
|
|
888
|
+
value: string;
|
|
889
|
+
name: string;
|
|
890
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
891
|
+
} | {
|
|
892
|
+
values: string[];
|
|
893
|
+
name: string;
|
|
894
|
+
operator: "in" | "not in";
|
|
895
|
+
})[] | undefined;
|
|
896
|
+
}[];
|
|
897
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
|
|
898
|
+
/** The program address */
|
|
899
|
+
address: z.ZodString;
|
|
900
|
+
/** Array of instruction specifications */
|
|
901
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
902
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
903
|
+
}, {
|
|
904
|
+
type: "solData";
|
|
905
|
+
conditions: {
|
|
906
|
+
instruction: string;
|
|
907
|
+
params?: ({
|
|
908
|
+
value: string;
|
|
909
|
+
name: string;
|
|
910
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
911
|
+
} | {
|
|
912
|
+
values: string[];
|
|
913
|
+
name: string;
|
|
914
|
+
operator: "in" | "not in";
|
|
915
|
+
})[] | undefined;
|
|
916
|
+
}[];
|
|
917
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
|
|
918
|
+
/** The program address */
|
|
919
|
+
address: z.ZodString;
|
|
920
|
+
/** Array of instruction specifications */
|
|
921
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
922
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
399
923
|
}>]>, "many">;
|
|
400
924
|
/**
|
|
401
925
|
* Type representing a set of criteria for the sendSolTransaction operation.
|
|
@@ -532,6 +1056,130 @@ export declare const SignSolTransactionRuleSchema: z.ZodObject<{
|
|
|
532
1056
|
type: "mintAddress";
|
|
533
1057
|
operator: "in" | "not in";
|
|
534
1058
|
addresses: string[];
|
|
1059
|
+
}>, z.ZodObject<{
|
|
1060
|
+
/** The type of criterion, must be "solData" for Solana data-based rules. */
|
|
1061
|
+
type: z.ZodLiteral<"solData">;
|
|
1062
|
+
/**
|
|
1063
|
+
* List of IDL specifications. Can contain known program names (strings) or custom IDL objects.
|
|
1064
|
+
*/
|
|
1065
|
+
idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
|
|
1066
|
+
/** The program address */
|
|
1067
|
+
address: z.ZodString;
|
|
1068
|
+
/** Array of instruction specifications */
|
|
1069
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1070
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1071
|
+
/** The program address */
|
|
1072
|
+
address: z.ZodString;
|
|
1073
|
+
/** Array of instruction specifications */
|
|
1074
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1075
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1076
|
+
/** The program address */
|
|
1077
|
+
address: z.ZodString;
|
|
1078
|
+
/** Array of instruction specifications */
|
|
1079
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1080
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">;
|
|
1081
|
+
/**
|
|
1082
|
+
* A list of conditions to apply against the transaction instruction.
|
|
1083
|
+
* Only one condition must evaluate to true for this criterion to be met.
|
|
1084
|
+
*/
|
|
1085
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
1086
|
+
/** The instruction name */
|
|
1087
|
+
instruction: z.ZodString;
|
|
1088
|
+
/** Parameter conditions for the instruction */
|
|
1089
|
+
params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1090
|
+
/** The parameter name */
|
|
1091
|
+
name: z.ZodString;
|
|
1092
|
+
/** The operator to use for the comparison */
|
|
1093
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
1094
|
+
/** The value to compare against */
|
|
1095
|
+
value: z.ZodString;
|
|
1096
|
+
}, "strip", z.ZodTypeAny, {
|
|
1097
|
+
value: string;
|
|
1098
|
+
name: string;
|
|
1099
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1100
|
+
}, {
|
|
1101
|
+
value: string;
|
|
1102
|
+
name: string;
|
|
1103
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1104
|
+
}>, z.ZodObject<{
|
|
1105
|
+
/** The parameter name */
|
|
1106
|
+
name: z.ZodString;
|
|
1107
|
+
/** The operator to use for the comparison */
|
|
1108
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
1109
|
+
/** The values to compare against */
|
|
1110
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
1111
|
+
}, "strip", z.ZodTypeAny, {
|
|
1112
|
+
values: string[];
|
|
1113
|
+
name: string;
|
|
1114
|
+
operator: "in" | "not in";
|
|
1115
|
+
}, {
|
|
1116
|
+
values: string[];
|
|
1117
|
+
name: string;
|
|
1118
|
+
operator: "in" | "not in";
|
|
1119
|
+
}>]>, "many">>;
|
|
1120
|
+
}, "strip", z.ZodTypeAny, {
|
|
1121
|
+
instruction: string;
|
|
1122
|
+
params?: ({
|
|
1123
|
+
value: string;
|
|
1124
|
+
name: string;
|
|
1125
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1126
|
+
} | {
|
|
1127
|
+
values: string[];
|
|
1128
|
+
name: string;
|
|
1129
|
+
operator: "in" | "not in";
|
|
1130
|
+
})[] | undefined;
|
|
1131
|
+
}, {
|
|
1132
|
+
instruction: string;
|
|
1133
|
+
params?: ({
|
|
1134
|
+
value: string;
|
|
1135
|
+
name: string;
|
|
1136
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1137
|
+
} | {
|
|
1138
|
+
values: string[];
|
|
1139
|
+
name: string;
|
|
1140
|
+
operator: "in" | "not in";
|
|
1141
|
+
})[] | undefined;
|
|
1142
|
+
}>, "many">;
|
|
1143
|
+
}, "strip", z.ZodTypeAny, {
|
|
1144
|
+
type: "solData";
|
|
1145
|
+
conditions: {
|
|
1146
|
+
instruction: string;
|
|
1147
|
+
params?: ({
|
|
1148
|
+
value: string;
|
|
1149
|
+
name: string;
|
|
1150
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1151
|
+
} | {
|
|
1152
|
+
values: string[];
|
|
1153
|
+
name: string;
|
|
1154
|
+
operator: "in" | "not in";
|
|
1155
|
+
})[] | undefined;
|
|
1156
|
+
}[];
|
|
1157
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
|
|
1158
|
+
/** The program address */
|
|
1159
|
+
address: z.ZodString;
|
|
1160
|
+
/** Array of instruction specifications */
|
|
1161
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1162
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
1163
|
+
}, {
|
|
1164
|
+
type: "solData";
|
|
1165
|
+
conditions: {
|
|
1166
|
+
instruction: string;
|
|
1167
|
+
params?: ({
|
|
1168
|
+
value: string;
|
|
1169
|
+
name: string;
|
|
1170
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1171
|
+
} | {
|
|
1172
|
+
values: string[];
|
|
1173
|
+
name: string;
|
|
1174
|
+
operator: "in" | "not in";
|
|
1175
|
+
})[] | undefined;
|
|
1176
|
+
}[];
|
|
1177
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
|
|
1178
|
+
/** The program address */
|
|
1179
|
+
address: z.ZodString;
|
|
1180
|
+
/** Array of instruction specifications */
|
|
1181
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1182
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
535
1183
|
}>]>, "many">;
|
|
536
1184
|
}, "strip", z.ZodTypeAny, {
|
|
537
1185
|
action: "reject" | "accept";
|
|
@@ -556,6 +1204,26 @@ export declare const SignSolTransactionRuleSchema: z.ZodObject<{
|
|
|
556
1204
|
type: "mintAddress";
|
|
557
1205
|
operator: "in" | "not in";
|
|
558
1206
|
addresses: string[];
|
|
1207
|
+
} | {
|
|
1208
|
+
type: "solData";
|
|
1209
|
+
conditions: {
|
|
1210
|
+
instruction: string;
|
|
1211
|
+
params?: ({
|
|
1212
|
+
value: string;
|
|
1213
|
+
name: string;
|
|
1214
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1215
|
+
} | {
|
|
1216
|
+
values: string[];
|
|
1217
|
+
name: string;
|
|
1218
|
+
operator: "in" | "not in";
|
|
1219
|
+
})[] | undefined;
|
|
1220
|
+
}[];
|
|
1221
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
|
|
1222
|
+
/** The program address */
|
|
1223
|
+
address: z.ZodString;
|
|
1224
|
+
/** Array of instruction specifications */
|
|
1225
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1226
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
559
1227
|
})[];
|
|
560
1228
|
}, {
|
|
561
1229
|
action: "reject" | "accept";
|
|
@@ -580,6 +1248,26 @@ export declare const SignSolTransactionRuleSchema: z.ZodObject<{
|
|
|
580
1248
|
type: "mintAddress";
|
|
581
1249
|
operator: "in" | "not in";
|
|
582
1250
|
addresses: string[];
|
|
1251
|
+
} | {
|
|
1252
|
+
type: "solData";
|
|
1253
|
+
conditions: {
|
|
1254
|
+
instruction: string;
|
|
1255
|
+
params?: ({
|
|
1256
|
+
value: string;
|
|
1257
|
+
name: string;
|
|
1258
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1259
|
+
} | {
|
|
1260
|
+
values: string[];
|
|
1261
|
+
name: string;
|
|
1262
|
+
operator: "in" | "not in";
|
|
1263
|
+
})[] | undefined;
|
|
1264
|
+
}[];
|
|
1265
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
|
|
1266
|
+
/** The program address */
|
|
1267
|
+
address: z.ZodString;
|
|
1268
|
+
/** Array of instruction specifications */
|
|
1269
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1270
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
583
1271
|
})[];
|
|
584
1272
|
}>;
|
|
585
1273
|
export type SignSolTransactionRule = z.infer<typeof SignSolTransactionRuleSchema>;
|
|
@@ -704,6 +1392,130 @@ export declare const SendSolTransactionRuleSchema: z.ZodObject<{
|
|
|
704
1392
|
type: "mintAddress";
|
|
705
1393
|
operator: "in" | "not in";
|
|
706
1394
|
addresses: string[];
|
|
1395
|
+
}>, z.ZodObject<{
|
|
1396
|
+
/** The type of criterion, must be "solData" for Solana data-based rules. */
|
|
1397
|
+
type: z.ZodLiteral<"solData">;
|
|
1398
|
+
/**
|
|
1399
|
+
* List of IDL specifications. Can contain known program names (strings) or custom IDL objects.
|
|
1400
|
+
*/
|
|
1401
|
+
idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
|
|
1402
|
+
/** The program address */
|
|
1403
|
+
address: z.ZodString;
|
|
1404
|
+
/** Array of instruction specifications */
|
|
1405
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1406
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1407
|
+
/** The program address */
|
|
1408
|
+
address: z.ZodString;
|
|
1409
|
+
/** Array of instruction specifications */
|
|
1410
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1411
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1412
|
+
/** The program address */
|
|
1413
|
+
address: z.ZodString;
|
|
1414
|
+
/** Array of instruction specifications */
|
|
1415
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1416
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">;
|
|
1417
|
+
/**
|
|
1418
|
+
* A list of conditions to apply against the transaction instruction.
|
|
1419
|
+
* Only one condition must evaluate to true for this criterion to be met.
|
|
1420
|
+
*/
|
|
1421
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
1422
|
+
/** The instruction name */
|
|
1423
|
+
instruction: z.ZodString;
|
|
1424
|
+
/** Parameter conditions for the instruction */
|
|
1425
|
+
params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1426
|
+
/** The parameter name */
|
|
1427
|
+
name: z.ZodString;
|
|
1428
|
+
/** The operator to use for the comparison */
|
|
1429
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
1430
|
+
/** The value to compare against */
|
|
1431
|
+
value: z.ZodString;
|
|
1432
|
+
}, "strip", z.ZodTypeAny, {
|
|
1433
|
+
value: string;
|
|
1434
|
+
name: string;
|
|
1435
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1436
|
+
}, {
|
|
1437
|
+
value: string;
|
|
1438
|
+
name: string;
|
|
1439
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1440
|
+
}>, z.ZodObject<{
|
|
1441
|
+
/** The parameter name */
|
|
1442
|
+
name: z.ZodString;
|
|
1443
|
+
/** The operator to use for the comparison */
|
|
1444
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
1445
|
+
/** The values to compare against */
|
|
1446
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
1447
|
+
}, "strip", z.ZodTypeAny, {
|
|
1448
|
+
values: string[];
|
|
1449
|
+
name: string;
|
|
1450
|
+
operator: "in" | "not in";
|
|
1451
|
+
}, {
|
|
1452
|
+
values: string[];
|
|
1453
|
+
name: string;
|
|
1454
|
+
operator: "in" | "not in";
|
|
1455
|
+
}>]>, "many">>;
|
|
1456
|
+
}, "strip", z.ZodTypeAny, {
|
|
1457
|
+
instruction: string;
|
|
1458
|
+
params?: ({
|
|
1459
|
+
value: string;
|
|
1460
|
+
name: string;
|
|
1461
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1462
|
+
} | {
|
|
1463
|
+
values: string[];
|
|
1464
|
+
name: string;
|
|
1465
|
+
operator: "in" | "not in";
|
|
1466
|
+
})[] | undefined;
|
|
1467
|
+
}, {
|
|
1468
|
+
instruction: string;
|
|
1469
|
+
params?: ({
|
|
1470
|
+
value: string;
|
|
1471
|
+
name: string;
|
|
1472
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1473
|
+
} | {
|
|
1474
|
+
values: string[];
|
|
1475
|
+
name: string;
|
|
1476
|
+
operator: "in" | "not in";
|
|
1477
|
+
})[] | undefined;
|
|
1478
|
+
}>, "many">;
|
|
1479
|
+
}, "strip", z.ZodTypeAny, {
|
|
1480
|
+
type: "solData";
|
|
1481
|
+
conditions: {
|
|
1482
|
+
instruction: string;
|
|
1483
|
+
params?: ({
|
|
1484
|
+
value: string;
|
|
1485
|
+
name: string;
|
|
1486
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1487
|
+
} | {
|
|
1488
|
+
values: string[];
|
|
1489
|
+
name: string;
|
|
1490
|
+
operator: "in" | "not in";
|
|
1491
|
+
})[] | undefined;
|
|
1492
|
+
}[];
|
|
1493
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
|
|
1494
|
+
/** The program address */
|
|
1495
|
+
address: z.ZodString;
|
|
1496
|
+
/** Array of instruction specifications */
|
|
1497
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1498
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
1499
|
+
}, {
|
|
1500
|
+
type: "solData";
|
|
1501
|
+
conditions: {
|
|
1502
|
+
instruction: string;
|
|
1503
|
+
params?: ({
|
|
1504
|
+
value: string;
|
|
1505
|
+
name: string;
|
|
1506
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1507
|
+
} | {
|
|
1508
|
+
values: string[];
|
|
1509
|
+
name: string;
|
|
1510
|
+
operator: "in" | "not in";
|
|
1511
|
+
})[] | undefined;
|
|
1512
|
+
}[];
|
|
1513
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
|
|
1514
|
+
/** The program address */
|
|
1515
|
+
address: z.ZodString;
|
|
1516
|
+
/** Array of instruction specifications */
|
|
1517
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1518
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
707
1519
|
}>]>, "many">;
|
|
708
1520
|
}, "strip", z.ZodTypeAny, {
|
|
709
1521
|
action: "reject" | "accept";
|
|
@@ -728,6 +1540,26 @@ export declare const SendSolTransactionRuleSchema: z.ZodObject<{
|
|
|
728
1540
|
type: "mintAddress";
|
|
729
1541
|
operator: "in" | "not in";
|
|
730
1542
|
addresses: string[];
|
|
1543
|
+
} | {
|
|
1544
|
+
type: "solData";
|
|
1545
|
+
conditions: {
|
|
1546
|
+
instruction: string;
|
|
1547
|
+
params?: ({
|
|
1548
|
+
value: string;
|
|
1549
|
+
name: string;
|
|
1550
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1551
|
+
} | {
|
|
1552
|
+
values: string[];
|
|
1553
|
+
name: string;
|
|
1554
|
+
operator: "in" | "not in";
|
|
1555
|
+
})[] | undefined;
|
|
1556
|
+
}[];
|
|
1557
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
|
|
1558
|
+
/** The program address */
|
|
1559
|
+
address: z.ZodString;
|
|
1560
|
+
/** Array of instruction specifications */
|
|
1561
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1562
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
731
1563
|
})[];
|
|
732
1564
|
}, {
|
|
733
1565
|
action: "reject" | "accept";
|
|
@@ -752,6 +1584,26 @@ export declare const SendSolTransactionRuleSchema: z.ZodObject<{
|
|
|
752
1584
|
type: "mintAddress";
|
|
753
1585
|
operator: "in" | "not in";
|
|
754
1586
|
addresses: string[];
|
|
1587
|
+
} | {
|
|
1588
|
+
type: "solData";
|
|
1589
|
+
conditions: {
|
|
1590
|
+
instruction: string;
|
|
1591
|
+
params?: ({
|
|
1592
|
+
value: string;
|
|
1593
|
+
name: string;
|
|
1594
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1595
|
+
} | {
|
|
1596
|
+
values: string[];
|
|
1597
|
+
name: string;
|
|
1598
|
+
operator: "in" | "not in";
|
|
1599
|
+
})[] | undefined;
|
|
1600
|
+
}[];
|
|
1601
|
+
idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
|
|
1602
|
+
/** The program address */
|
|
1603
|
+
address: z.ZodString;
|
|
1604
|
+
/** Array of instruction specifications */
|
|
1605
|
+
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1606
|
+
}, z.ZodTypeAny, "passthrough">)[];
|
|
755
1607
|
})[];
|
|
756
1608
|
}>;
|
|
757
1609
|
export type SendSolTransactionRule = z.infer<typeof SendSolTransactionRuleSchema>;
|