@privy-io/node 0.4.1 → 0.6.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/CHANGELOG.md +27 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/lib/identity-token.d.mts.map +1 -1
- package/lib/identity-token.d.ts.map +1 -1
- package/lib/identity-token.js +10 -0
- package/lib/identity-token.js.map +1 -1
- package/lib/identity-token.mjs +10 -0
- package/lib/identity-token.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api/services/ethereum.d.mts +7 -7
- package/public-api/services/ethereum.d.mts.map +1 -1
- package/public-api/services/ethereum.d.ts +7 -7
- package/public-api/services/ethereum.d.ts.map +1 -1
- package/public-api/services/ethereum.js.map +1 -1
- package/public-api/services/ethereum.mjs.map +1 -1
- package/public-api/services/solana.d.mts +4 -4
- package/public-api/services/solana.d.mts.map +1 -1
- package/public-api/services/solana.d.ts +4 -4
- package/public-api/services/solana.d.ts.map +1 -1
- package/public-api/services/solana.js.map +1 -1
- package/public-api/services/solana.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/policies.d.mts +122 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +122 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/users.d.mts +6 -3
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +6 -3
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +1 -1
- package/resources/users.mjs +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +2 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +2 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +531 -208
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +531 -208
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +2 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +2 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/src/client.ts +42 -0
- package/src/lib/identity-token.ts +11 -0
- package/src/public-api/services/ethereum.ts +15 -7
- package/src/public-api/services/solana.ts +9 -4
- package/src/resources/index.ts +21 -0
- package/src/resources/policies.ts +210 -2
- package/src/resources/users.ts +6 -16
- package/src/resources/wallets/index.ts +21 -0
- package/src/resources/wallets/transactions.ts +2 -2
- package/src/resources/wallets/wallets.ts +707 -240
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ethereum.js","sourceRoot":"","sources":["../../src/public-api/services/ethereum.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ethereum.js","sourceRoot":"","sources":["../../src/public-api/services/ethereum.ts"],"names":[],"mappings":";;;AAYA,MAAa,oBAAoB;IAG/B,YAAY,mBAAwC;QAClD,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IAEM,KAAK,CAAC,WAAW,CACtB,QAAgB,EAChB,EAAE,OAAO,EAAE,GAAG,KAAK,EAAyC;QAE5D,IAAI,MAA2D,CAAC;QAChE,IAAI,OAAO,YAAY,UAAU,EAAE,CAAC;YAClC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AK,CAAC,eAAe,CAC1B,QAAgB,EAChB,KAAgD;QAEhD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,EAAE;YAC5D,GAAG,KAAK;YACR,MAAM,EAAE,qBAAqB;YAC7B,UAAU,EAAE,UAAU;SACvB,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAEM,KAAK,CAAC,aAAa,CACxB,QAAgB,EAChB,KAA8C;QAE9C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,EAAE;YAC5D,GAAG,KAAK;YACR,MAAM,EAAE,sBAAsB;YAC9B,UAAU,EAAE,UAAU;SACvB,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAEM,KAAK,CAAC,eAAe,CAC1B,QAAgB,EAChB,KAAgD;QAEhD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,EAAE;YAC5D,GAAG,KAAK;YACR,MAAM,EAAE,qBAAqB;YAC7B,UAAU,EAAE,UAAU;SACvB,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF;AAhGD,oDAgGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ethereum.mjs","sourceRoot":"","sources":["../../src/public-api/services/ethereum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ethereum.mjs","sourceRoot":"","sources":["../../src/public-api/services/ethereum.ts"],"names":[],"mappings":"AAYA,MAAM,OAAO,oBAAoB;IAG/B,YAAY,mBAAwC;QAClD,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IAEM,KAAK,CAAC,WAAW,CACtB,QAAgB,EAChB,EAAE,OAAO,EAAE,GAAG,KAAK,EAAyC;QAE5D,IAAI,MA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QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAEM,KAAK,CAAC,eAAe,CAC1B,QAAgB,EAChB,KAAgD;QAEhD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,EAAE;YAC5D,GAAG,KAAK;YACR,MAAM,EAAE,qBAAqB;YAC7B,UAAU,EAAE,UAAU;SACvB,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAEM,KAAK,CAAC,aAAa,CACxB,QAAgB,EAChB,KAA8C;QAE9C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,EAAE;YAC5D,GAAG,KAAK;YACR,MAAM,EAAE,sBAAsB;YAC9B,UAAU,EAAE,UAAU;SACvB,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAEM,KAAK,CAAC,eAAe,CAC1B,QAAgB,EAChB,KAAgD;QAEhD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,EAAE;YAC5D,GAAG,KAAK;YACR,MAAM,EAAE,qBAAqB;YAC7B,UAAU,EAAE,UAAU;SACvB,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SolanaSignAndSendTransactionRpcResponse, SolanaSignMessageRpcResponse, SolanaSignTransactionRpcResponse, WalletRpcParams } from "../../resources.mjs";
|
|
2
2
|
import { PrivyWalletsService, ReplaceParams } from "./wallets.mjs";
|
|
3
3
|
import { PrivyWalletsRpcInput } from "./wallets.mjs";
|
|
4
4
|
export declare class PrivySolanaService {
|
|
5
5
|
private privyWalletsService;
|
|
6
6
|
constructor(privyWalletsService: PrivyWalletsService);
|
|
7
|
-
signMessage(walletId: string, { message, ...input }: PrivySolanaService.SignMessageInput): Promise<
|
|
8
|
-
signTransaction(walletId: string, { transaction, ...input }: PrivySolanaService.SignTransactionInput): Promise<
|
|
9
|
-
signAndSendTransaction(walletId: string, { transaction, ...input }: PrivySolanaService.SignAndSendTransactionInput): Promise<
|
|
7
|
+
signMessage(walletId: string, { message, ...input }: PrivySolanaService.SignMessageInput): Promise<SolanaSignMessageRpcResponse.Data>;
|
|
8
|
+
signTransaction(walletId: string, { transaction, ...input }: PrivySolanaService.SignTransactionInput): Promise<SolanaSignTransactionRpcResponse.Data>;
|
|
9
|
+
signAndSendTransaction(walletId: string, { transaction, ...input }: PrivySolanaService.SignAndSendTransactionInput): Promise<SolanaSignAndSendTransactionRpcResponse.Data>;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* The namespace for types related to the Solana service class.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solana.d.mts","sourceRoot":"","sources":["../../src/public-api/services/solana.ts"],"names":[],"mappings":"OAAO,
|
|
1
|
+
{"version":3,"file":"solana.d.mts","sourceRoot":"","sources":["../../src/public-api/services/solana.ts"],"names":[],"mappings":"OAAO,EACL,uCAAuC,EACvC,4BAA4B,EAC5B,gCAAgC,EAChC,eAAe,EAChB;OACM,EAAE,mBAAmB,EAAE,aAAa,EAAE;OACtC,EAAE,oBAAoB,EAAE;AAE/B,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,mBAAmB,CAAsB;gBAErC,mBAAmB,EAAE,mBAAmB;IAIvC,WAAW,CACtB,QAAQ,EAAE,MAAM,EAChB,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,gBAAgB,GACzD,OAAO,CAAC,4BAA4B,CAAC,IAAI,CAAC;IAoBhC,eAAe,CAC1B,QAAQ,EAAE,MAAM,EAChB,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,oBAAoB,GACjE,OAAO,CAAC,gCAAgC,CAAC,IAAI,CAAC;IAoBpC,sBAAsB,CACjC,QAAQ,EAAE,MAAM,EAChB,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,2BAA2B,GACxE,OAAO,CAAC,uCAAuC,CAAC,IAAI,CAAC;CAmBzD;AAGD;;;;GAIG;AACH,yBAAiB,kBAAkB,CAAC;IAClC;;;;OAIG;IACH,KAAY,gBAAgB,GAAG,aAAa,CAAC,oBAAoB,CAAC,eAAe,CAAC,yBAAyB,CAAC,EAAE;QAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAAA;KAAC,CAAC,CAAC;IAC9I;;;;OAIG;IACH,KAAY,oBAAoB,GAAG,aAAa,CAAC,oBAAoB,CAAC,eAAe,CAAC,6BAA6B,CAAC,EAAE;QAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAA;KAAC,CAAC,CAAC;IAC1J;;;;OAIG;IACH,KAAY,2BAA2B,GAAG,aAAa,CAAC,oBAAoB,CAAC,eAAe,CAAC,oCAAoC,CAAC,EAAE;QAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAA;KAAC,CAAC,CAAC;CACzK"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SolanaSignAndSendTransactionRpcResponse, SolanaSignMessageRpcResponse, SolanaSignTransactionRpcResponse, WalletRpcParams } from "../../resources.js";
|
|
2
2
|
import { PrivyWalletsService, ReplaceParams } from "./wallets.js";
|
|
3
3
|
import { PrivyWalletsRpcInput } from "./wallets.js";
|
|
4
4
|
export declare class PrivySolanaService {
|
|
5
5
|
private privyWalletsService;
|
|
6
6
|
constructor(privyWalletsService: PrivyWalletsService);
|
|
7
|
-
signMessage(walletId: string, { message, ...input }: PrivySolanaService.SignMessageInput): Promise<
|
|
8
|
-
signTransaction(walletId: string, { transaction, ...input }: PrivySolanaService.SignTransactionInput): Promise<
|
|
9
|
-
signAndSendTransaction(walletId: string, { transaction, ...input }: PrivySolanaService.SignAndSendTransactionInput): Promise<
|
|
7
|
+
signMessage(walletId: string, { message, ...input }: PrivySolanaService.SignMessageInput): Promise<SolanaSignMessageRpcResponse.Data>;
|
|
8
|
+
signTransaction(walletId: string, { transaction, ...input }: PrivySolanaService.SignTransactionInput): Promise<SolanaSignTransactionRpcResponse.Data>;
|
|
9
|
+
signAndSendTransaction(walletId: string, { transaction, ...input }: PrivySolanaService.SignAndSendTransactionInput): Promise<SolanaSignAndSendTransactionRpcResponse.Data>;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* The namespace for types related to the Solana service class.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../src/public-api/services/solana.ts"],"names":[],"mappings":"OAAO,
|
|
1
|
+
{"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../src/public-api/services/solana.ts"],"names":[],"mappings":"OAAO,EACL,uCAAuC,EACvC,4BAA4B,EAC5B,gCAAgC,EAChC,eAAe,EAChB;OACM,EAAE,mBAAmB,EAAE,aAAa,EAAE;OACtC,EAAE,oBAAoB,EAAE;AAE/B,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,mBAAmB,CAAsB;gBAErC,mBAAmB,EAAE,mBAAmB;IAIvC,WAAW,CACtB,QAAQ,EAAE,MAAM,EAChB,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,gBAAgB,GACzD,OAAO,CAAC,4BAA4B,CAAC,IAAI,CAAC;IAoBhC,eAAe,CAC1B,QAAQ,EAAE,MAAM,EAChB,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,oBAAoB,GACjE,OAAO,CAAC,gCAAgC,CAAC,IAAI,CAAC;IAoBpC,sBAAsB,CACjC,QAAQ,EAAE,MAAM,EAChB,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,2BAA2B,GACxE,OAAO,CAAC,uCAAuC,CAAC,IAAI,CAAC;CAmBzD;AAGD;;;;GAIG;AACH,yBAAiB,kBAAkB,CAAC;IAClC;;;;OAIG;IACH,KAAY,gBAAgB,GAAG,aAAa,CAAC,oBAAoB,CAAC,eAAe,CAAC,yBAAyB,CAAC,EAAE;QAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAAA;KAAC,CAAC,CAAC;IAC9I;;;;OAIG;IACH,KAAY,oBAAoB,GAAG,aAAa,CAAC,oBAAoB,CAAC,eAAe,CAAC,6BAA6B,CAAC,EAAE;QAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAA;KAAC,CAAC,CAAC;IAC1J;;;;OAIG;IACH,KAAY,2BAA2B,GAAG,aAAa,CAAC,oBAAoB,CAAC,eAAe,CAAC,oCAAoC,CAAC,EAAE;QAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAA;KAAC,CAAC,CAAC;CACzK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solana.js","sourceRoot":"","sources":["../../src/public-api/services/solana.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"solana.js","sourceRoot":"","sources":["../../src/public-api/services/solana.ts"],"names":[],"mappings":";;;AASA,MAAa,kBAAkB;IAG7B,YAAY,mBAAwC;QAClD,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IAEM,KAAK,CAAC,WAAW,CACtB,QAAgB,EAChB,EAAE,OAAO,EAAE,GAAG,KAAK,EAAuC;QAE1D,IAAI,MAAwD,CAAC;QAC7D,IAAI,OAAO,YAAY,UAAU,EAAE,CAAC;YAClC,mFAAmF;YACnF,MAAM,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;QACpF,CAAC;aAAM,CAAC;YACN,2CAA2C;YAC3C,MAAM,GAAG,EAAE,OAAO,EAAE,QAAQ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C;QAC5F,CAAC;aAAM,CAAC;YACN,2CAA2C;YAC3C,MAAM,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;QAC/C,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,EAAE;YAC5D,GAAG,KAAK;YACR,MAAM,EAAE,wBAAwB;YAChC,UAAU,EAAE,QAAQ;YACpB,MAAM;SACP,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF;AA3ED,gDA2EC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solana.mjs","sourceRoot":"","sources":["../../src/public-api/services/solana.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"solana.mjs","sourceRoot":"","sources":["../../src/public-api/services/solana.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,kBAAkB;IAG7B,YAAY,mBAAwC;QAClD,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IAEM,KAAK,CAAC,WAAW,CACtB,QAAgB,EAChB,EAAE,OAAO,EAAE,GAAG,KAAK,EAAuC;QAE1D,IAAI,MAAwD,CAAC;QAC7D,IAAI,OAAO,YAAY,UAAU,EAAE,CAAC;YAClC,mFAAmF;YACnF,MAAM,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;QACpF,CAAC;aAAM,CAAC;YACN,2CAA2C;YAC3C,MAAM,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;QAC3C,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,EAAE;YAC5D,GAAG,KAAK;YACR,MAAM,EAAE,aAAa;YACrB,UAAU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CAAC,GAAG,CAAC,QAAQ,EAAE;YAC5D,GAAG,KAAK;YACR,MAAM,EAAE,wBAAwB;YAChC,UAAU,EAAE,QAAQ;YACpB,MAAM;SACP,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -3,5 +3,5 @@ export { KeyQuorums, type KeyQuorum, type KeyQuorumDeleteResponse, type KeyQuoru
|
|
|
3
3
|
export { Policies, type Policy, type PolicyCreateRuleResponse, type PolicyDeleteResponse, type PolicyDeleteRuleResponse, type PolicyUpdateRuleResponse, type PolicyGetRuleResponse, type PolicyCreateParams, type PolicyCreateRuleParams, type PolicyDeleteParams, type PolicyDeleteRuleParams, type PolicyUpdateParams, type PolicyUpdateRuleParams, type PolicyGetRuleParams, } from "./policies.mjs";
|
|
4
4
|
export { Transactions, type TransactionGetResponse } from "./transactions.mjs";
|
|
5
5
|
export { Users, type AuthenticatedUser, type LinkedAccount, type User, type LinkedAccountEthereumEmbeddedWallet, type LinkedAccountSolanaEmbeddedWallet, type LinkedAccountBitcoinSegwitEmbeddedWallet, type LinkedAccountBitcoinTaprootEmbeddedWallet, type LinkedAccountCurveSigningEmbeddedWallet, type LinkedAccountEmbeddedWallet, type LinkedAccountEmbeddedWalletWithID, type SmartWalletType, type LinkedAccountSmartWallet, type UserCreateParams, type UserListParams, type UserGetByCustomAuthIDParams, type UserGetByDiscordUsernameParams, type UserGetByEmailAddressParams, type UserGetByFarcasterIDParams, type UserGetByGitHubUsernameParams, type UserGetByPhoneNumberParams, type UserGetBySmartWalletAddressParams, type UserGetByTelegramUserIDParams, type UserGetByTelegramUsernameParams, type UserGetByTwitterSubjectParams, type UserGetByTwitterUsernameParams, type UserGetByWalletAddressParams, type UserPregenerateWalletsParams, type UserSearchParams, type UserSetCustomMetadataParams, type UserUnlinkLinkedAccountParams, type UsersCursor, } from "./users.mjs";
|
|
6
|
-
export { Wallets, type CurveSigningChainType, type FirstClassChainType, type Wallet, type WalletChainType, type WalletExportResponse, type WalletInitImportResponse, type WalletRawSignResponse, type WalletRpcResponse, type WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse, type WalletCreateParams, type WalletListParams, type WalletExportParams, type WalletInitImportParams, type WalletRawSignParams, type WalletRpcParams, type WalletSubmitImportParams, type WalletUpdateParams, type WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams, type WalletsCursor, } from "./wallets/wallets.mjs";
|
|
6
|
+
export { Wallets, type CurveSigningChainType, type FirstClassChainType, type Wallet, type WalletChainType, type ExtendedChainType, type EthereumPersonalSignRpcInput, type EthereumSignTransactionRpcInput, type EthereumSendTransactionRpcInput, type EthereumSignTypedDataRpcInput, type EthereumSignUserOperationRpcInput, type EthereumSign7702AuthorizationRpcInput, type EthereumSecp256k1SignRpcInput, type SolanaSignTransactionRpcInput, type SolanaSignAndSendTransactionRpcInput, type SolanaSignMessageRpcInput, type EthereumSignTransactionRpcResponse, type EthereumSendTransactionRpcResponse, type EthereumPersonalSignRpcResponse, type EthereumSignTypedDataRpcResponse, type EthereumSignUserOperationRpcResponse, type EthereumSign7702AuthorizationRpcResponse, type EthereumSecp256k1SignRpcResponse, type SolanaSignTransactionRpcResponse, type SolanaSignAndSendTransactionRpcResponse, type SolanaSignMessageRpcResponse, type WalletExportResponse, type WalletInitImportResponse, type WalletRawSignResponse, type WalletRpcResponse, type WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse, type WalletCreateParams, type WalletListParams, type WalletExportParams, type WalletInitImportParams, type WalletRawSignParams, type WalletRpcParams, type WalletSubmitImportParams, type WalletUpdateParams, type WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams, type WalletsCursor, } from "./wallets/wallets.mjs";
|
|
7
7
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names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B,EAC3B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC1C,KAAK,aAAa,GACnB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export { KeyQuorums, type KeyQuorum, type KeyQuorumDeleteResponse, type KeyQuoru
|
|
|
3
3
|
export { Policies, type Policy, type PolicyCreateRuleResponse, type PolicyDeleteResponse, type PolicyDeleteRuleResponse, type PolicyUpdateRuleResponse, type PolicyGetRuleResponse, type PolicyCreateParams, type PolicyCreateRuleParams, type PolicyDeleteParams, type PolicyDeleteRuleParams, type PolicyUpdateParams, type PolicyUpdateRuleParams, type PolicyGetRuleParams, } from "./policies.js";
|
|
4
4
|
export { Transactions, type TransactionGetResponse } from "./transactions.js";
|
|
5
5
|
export { Users, type AuthenticatedUser, type LinkedAccount, type User, type LinkedAccountEthereumEmbeddedWallet, type LinkedAccountSolanaEmbeddedWallet, type LinkedAccountBitcoinSegwitEmbeddedWallet, type LinkedAccountBitcoinTaprootEmbeddedWallet, type LinkedAccountCurveSigningEmbeddedWallet, type LinkedAccountEmbeddedWallet, type LinkedAccountEmbeddedWalletWithID, type SmartWalletType, type LinkedAccountSmartWallet, type UserCreateParams, type UserListParams, type UserGetByCustomAuthIDParams, type UserGetByDiscordUsernameParams, type UserGetByEmailAddressParams, type UserGetByFarcasterIDParams, type UserGetByGitHubUsernameParams, type UserGetByPhoneNumberParams, type UserGetBySmartWalletAddressParams, type UserGetByTelegramUserIDParams, type UserGetByTelegramUsernameParams, type UserGetByTwitterSubjectParams, type UserGetByTwitterUsernameParams, type UserGetByWalletAddressParams, type UserPregenerateWalletsParams, type UserSearchParams, type UserSetCustomMetadataParams, type UserUnlinkLinkedAccountParams, type UsersCursor, } from "./users.js";
|
|
6
|
-
export { Wallets, type CurveSigningChainType, type FirstClassChainType, type Wallet, type WalletChainType, type WalletExportResponse, type WalletInitImportResponse, type WalletRawSignResponse, type WalletRpcResponse, type WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse, type WalletCreateParams, type WalletListParams, type WalletExportParams, type WalletInitImportParams, type WalletRawSignParams, type WalletRpcParams, type WalletSubmitImportParams, type WalletUpdateParams, type WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams, type WalletsCursor, } from "./wallets/wallets.js";
|
|
6
|
+
export { Wallets, type CurveSigningChainType, type FirstClassChainType, type Wallet, type WalletChainType, type ExtendedChainType, type EthereumPersonalSignRpcInput, type EthereumSignTransactionRpcInput, type EthereumSendTransactionRpcInput, type EthereumSignTypedDataRpcInput, type EthereumSignUserOperationRpcInput, type EthereumSign7702AuthorizationRpcInput, type EthereumSecp256k1SignRpcInput, type SolanaSignTransactionRpcInput, type SolanaSignAndSendTransactionRpcInput, type SolanaSignMessageRpcInput, type EthereumSignTransactionRpcResponse, type EthereumSendTransactionRpcResponse, type EthereumPersonalSignRpcResponse, type EthereumSignTypedDataRpcResponse, type EthereumSignUserOperationRpcResponse, type EthereumSign7702AuthorizationRpcResponse, type EthereumSecp256k1SignRpcResponse, type SolanaSignTransactionRpcResponse, type SolanaSignAndSendTransactionRpcResponse, type SolanaSignMessageRpcResponse, type WalletExportResponse, type WalletInitImportResponse, type WalletRawSignResponse, type WalletRpcResponse, type WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse, type WalletCreateParams, type WalletListParams, type WalletExportParams, type WalletInitImportParams, type WalletRawSignParams, type WalletRpcParams, type WalletSubmitImportParams, type WalletUpdateParams, type WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams, type WalletsCursor, } from "./wallets/wallets.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,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B,EACxB,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC1C,KAAK,aAAa,GACnB"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAMuB;AALrB,yGAAA,UAAU,OAAA;AAMZ,gDAOuB;AANrB,yGAAA,UAAU,OAAA;AAOZ,0CAeoB;AAdlB,oGAAA,QAAQ,OAAA;AAeV,kDAA2E;AAAlE,4GAAA,YAAY,OAAA;AACrB,oCAiCiB;AAhCf,8FAAA,KAAK,OAAA;AAiCP,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAMuB;AALrB,yGAAA,UAAU,OAAA;AAMZ,gDAOuB;AANrB,yGAAA,UAAU,OAAA;AAOZ,0CAeoB;AAdlB,oGAAA,QAAQ,OAAA;AAeV,kDAA2E;AAAlE,4GAAA,YAAY,OAAA;AACrB,oCAiCiB;AAhCf,8FAAA,KAAK,OAAA;AAiCP,gDA4C2B;AA3CzB,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,UAAU,GAKX;OACM,EACL,UAAU,GAMX;OACM,EACL,QAAQ,GAcT;OACM,EAAE,YAAY,EAA+B;OAC7C,EACL,KAAK,GAgCN;OACM,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,UAAU,GAKX;OACM,EACL,UAAU,GAMX;OACM,EACL,QAAQ,GAcT;OACM,EAAE,YAAY,EAA+B;OAC7C,EACL,KAAK,GAgCN;OACM,EACL,OAAO,GA2CR"}
|
package/resources/policies.d.mts
CHANGED
|
@@ -146,7 +146,7 @@ export interface Policy {
|
|
|
146
146
|
/**
|
|
147
147
|
* The chain type the policy applies to.
|
|
148
148
|
*/
|
|
149
|
-
chain_type: 'ethereum' | 'solana';
|
|
149
|
+
chain_type: 'ethereum' | 'solana' | 'tron';
|
|
150
150
|
/**
|
|
151
151
|
* Unix timestamp of when the policy was created in milliseconds.
|
|
152
152
|
*/
|
|
@@ -176,11 +176,11 @@ export declare namespace Policy {
|
|
|
176
176
|
* Action to take if the conditions are true.
|
|
177
177
|
*/
|
|
178
178
|
action: 'ALLOW' | 'DENY';
|
|
179
|
-
conditions: Array<Rule.EthereumTransactionCondition | Rule.EthereumCalldataCondition | Rule.EthereumTypedDataDomainCondition | Rule.EthereumTypedDataMessageCondition | Rule.Ethereum7702AuthorizationCondition | Rule.SolanaProgramInstructionCondition | Rule.SolanaSystemProgramInstructionCondition | Rule.SolanaTokenProgramInstructionCondition | Rule.SystemCondition>;
|
|
179
|
+
conditions: Array<Rule.EthereumTransactionCondition | Rule.EthereumCalldataCondition | Rule.EthereumTypedDataDomainCondition | Rule.EthereumTypedDataMessageCondition | Rule.Ethereum7702AuthorizationCondition | Rule.SolanaProgramInstructionCondition | Rule.SolanaSystemProgramInstructionCondition | Rule.SolanaTokenProgramInstructionCondition | Rule.SystemCondition | Rule.TronTransactionCondition>;
|
|
180
180
|
/**
|
|
181
181
|
* Method the rule applies to.
|
|
182
182
|
*/
|
|
183
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | '*';
|
|
183
|
+
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'signTransactionBytes' | '*';
|
|
184
184
|
name: string;
|
|
185
185
|
}
|
|
186
186
|
namespace Rule {
|
|
@@ -287,6 +287,19 @@ export declare namespace Policy {
|
|
|
287
287
|
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
288
288
|
value: string | Array<string>;
|
|
289
289
|
}
|
|
290
|
+
/**
|
|
291
|
+
* TRON transaction fields for TransferContract and TriggerSmartContract
|
|
292
|
+
* transaction types.
|
|
293
|
+
*/
|
|
294
|
+
interface TronTransactionCondition {
|
|
295
|
+
/**
|
|
296
|
+
* Supported TRON transaction fields in format "TransactionType.field_name"
|
|
297
|
+
*/
|
|
298
|
+
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
299
|
+
field_source: 'tron_transaction';
|
|
300
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
301
|
+
value: string | Array<string>;
|
|
302
|
+
}
|
|
290
303
|
}
|
|
291
304
|
}
|
|
292
305
|
/**
|
|
@@ -299,11 +312,11 @@ export interface PolicyCreateRuleResponse {
|
|
|
299
312
|
* Action to take if the conditions are true.
|
|
300
313
|
*/
|
|
301
314
|
action: 'ALLOW' | 'DENY';
|
|
302
|
-
conditions: Array<PolicyCreateRuleResponse.EthereumTransactionCondition | PolicyCreateRuleResponse.EthereumCalldataCondition | PolicyCreateRuleResponse.EthereumTypedDataDomainCondition | PolicyCreateRuleResponse.EthereumTypedDataMessageCondition | PolicyCreateRuleResponse.Ethereum7702AuthorizationCondition | PolicyCreateRuleResponse.SolanaProgramInstructionCondition | PolicyCreateRuleResponse.SolanaSystemProgramInstructionCondition | PolicyCreateRuleResponse.SolanaTokenProgramInstructionCondition | PolicyCreateRuleResponse.SystemCondition>;
|
|
315
|
+
conditions: Array<PolicyCreateRuleResponse.EthereumTransactionCondition | PolicyCreateRuleResponse.EthereumCalldataCondition | PolicyCreateRuleResponse.EthereumTypedDataDomainCondition | PolicyCreateRuleResponse.EthereumTypedDataMessageCondition | PolicyCreateRuleResponse.Ethereum7702AuthorizationCondition | PolicyCreateRuleResponse.SolanaProgramInstructionCondition | PolicyCreateRuleResponse.SolanaSystemProgramInstructionCondition | PolicyCreateRuleResponse.SolanaTokenProgramInstructionCondition | PolicyCreateRuleResponse.SystemCondition | PolicyCreateRuleResponse.TronTransactionCondition>;
|
|
303
316
|
/**
|
|
304
317
|
* Method the rule applies to.
|
|
305
318
|
*/
|
|
306
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | '*';
|
|
319
|
+
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'signTransactionBytes' | '*';
|
|
307
320
|
name: string;
|
|
308
321
|
}
|
|
309
322
|
export declare namespace PolicyCreateRuleResponse {
|
|
@@ -410,6 +423,19 @@ export declare namespace PolicyCreateRuleResponse {
|
|
|
410
423
|
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
411
424
|
value: string | Array<string>;
|
|
412
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* TRON transaction fields for TransferContract and TriggerSmartContract
|
|
428
|
+
* transaction types.
|
|
429
|
+
*/
|
|
430
|
+
interface TronTransactionCondition {
|
|
431
|
+
/**
|
|
432
|
+
* Supported TRON transaction fields in format "TransactionType.field_name"
|
|
433
|
+
*/
|
|
434
|
+
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
435
|
+
field_source: 'tron_transaction';
|
|
436
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
437
|
+
value: string | Array<string>;
|
|
438
|
+
}
|
|
413
439
|
}
|
|
414
440
|
export interface PolicyDeleteResponse {
|
|
415
441
|
/**
|
|
@@ -429,11 +455,11 @@ export interface PolicyUpdateRuleResponse {
|
|
|
429
455
|
* Action to take if the conditions are true.
|
|
430
456
|
*/
|
|
431
457
|
action: 'ALLOW' | 'DENY';
|
|
432
|
-
conditions: Array<PolicyUpdateRuleResponse.EthereumTransactionCondition | PolicyUpdateRuleResponse.EthereumCalldataCondition | PolicyUpdateRuleResponse.EthereumTypedDataDomainCondition | PolicyUpdateRuleResponse.EthereumTypedDataMessageCondition | PolicyUpdateRuleResponse.Ethereum7702AuthorizationCondition | PolicyUpdateRuleResponse.SolanaProgramInstructionCondition | PolicyUpdateRuleResponse.SolanaSystemProgramInstructionCondition | PolicyUpdateRuleResponse.SolanaTokenProgramInstructionCondition | PolicyUpdateRuleResponse.SystemCondition>;
|
|
458
|
+
conditions: Array<PolicyUpdateRuleResponse.EthereumTransactionCondition | PolicyUpdateRuleResponse.EthereumCalldataCondition | PolicyUpdateRuleResponse.EthereumTypedDataDomainCondition | PolicyUpdateRuleResponse.EthereumTypedDataMessageCondition | PolicyUpdateRuleResponse.Ethereum7702AuthorizationCondition | PolicyUpdateRuleResponse.SolanaProgramInstructionCondition | PolicyUpdateRuleResponse.SolanaSystemProgramInstructionCondition | PolicyUpdateRuleResponse.SolanaTokenProgramInstructionCondition | PolicyUpdateRuleResponse.SystemCondition | PolicyUpdateRuleResponse.TronTransactionCondition>;
|
|
433
459
|
/**
|
|
434
460
|
* Method the rule applies to.
|
|
435
461
|
*/
|
|
436
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | '*';
|
|
462
|
+
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'signTransactionBytes' | '*';
|
|
437
463
|
name: string;
|
|
438
464
|
}
|
|
439
465
|
export declare namespace PolicyUpdateRuleResponse {
|
|
@@ -540,6 +566,19 @@ export declare namespace PolicyUpdateRuleResponse {
|
|
|
540
566
|
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
541
567
|
value: string | Array<string>;
|
|
542
568
|
}
|
|
569
|
+
/**
|
|
570
|
+
* TRON transaction fields for TransferContract and TriggerSmartContract
|
|
571
|
+
* transaction types.
|
|
572
|
+
*/
|
|
573
|
+
interface TronTransactionCondition {
|
|
574
|
+
/**
|
|
575
|
+
* Supported TRON transaction fields in format "TransactionType.field_name"
|
|
576
|
+
*/
|
|
577
|
+
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
578
|
+
field_source: 'tron_transaction';
|
|
579
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
580
|
+
value: string | Array<string>;
|
|
581
|
+
}
|
|
543
582
|
}
|
|
544
583
|
/**
|
|
545
584
|
* A rule that defines the conditions and action to take if the conditions are
|
|
@@ -551,11 +590,11 @@ export interface PolicyGetRuleResponse {
|
|
|
551
590
|
* Action to take if the conditions are true.
|
|
552
591
|
*/
|
|
553
592
|
action: 'ALLOW' | 'DENY';
|
|
554
|
-
conditions: Array<PolicyGetRuleResponse.EthereumTransactionCondition | PolicyGetRuleResponse.EthereumCalldataCondition | PolicyGetRuleResponse.EthereumTypedDataDomainCondition | PolicyGetRuleResponse.EthereumTypedDataMessageCondition | PolicyGetRuleResponse.Ethereum7702AuthorizationCondition | PolicyGetRuleResponse.SolanaProgramInstructionCondition | PolicyGetRuleResponse.SolanaSystemProgramInstructionCondition | PolicyGetRuleResponse.SolanaTokenProgramInstructionCondition | PolicyGetRuleResponse.SystemCondition>;
|
|
593
|
+
conditions: Array<PolicyGetRuleResponse.EthereumTransactionCondition | PolicyGetRuleResponse.EthereumCalldataCondition | PolicyGetRuleResponse.EthereumTypedDataDomainCondition | PolicyGetRuleResponse.EthereumTypedDataMessageCondition | PolicyGetRuleResponse.Ethereum7702AuthorizationCondition | PolicyGetRuleResponse.SolanaProgramInstructionCondition | PolicyGetRuleResponse.SolanaSystemProgramInstructionCondition | PolicyGetRuleResponse.SolanaTokenProgramInstructionCondition | PolicyGetRuleResponse.SystemCondition | PolicyGetRuleResponse.TronTransactionCondition>;
|
|
555
594
|
/**
|
|
556
595
|
* Method the rule applies to.
|
|
557
596
|
*/
|
|
558
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | '*';
|
|
597
|
+
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'signTransactionBytes' | '*';
|
|
559
598
|
name: string;
|
|
560
599
|
}
|
|
561
600
|
export declare namespace PolicyGetRuleResponse {
|
|
@@ -662,12 +701,25 @@ export declare namespace PolicyGetRuleResponse {
|
|
|
662
701
|
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
663
702
|
value: string | Array<string>;
|
|
664
703
|
}
|
|
704
|
+
/**
|
|
705
|
+
* TRON transaction fields for TransferContract and TriggerSmartContract
|
|
706
|
+
* transaction types.
|
|
707
|
+
*/
|
|
708
|
+
interface TronTransactionCondition {
|
|
709
|
+
/**
|
|
710
|
+
* Supported TRON transaction fields in format "TransactionType.field_name"
|
|
711
|
+
*/
|
|
712
|
+
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
713
|
+
field_source: 'tron_transaction';
|
|
714
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
715
|
+
value: string | Array<string>;
|
|
716
|
+
}
|
|
665
717
|
}
|
|
666
718
|
export interface PolicyCreateParams {
|
|
667
719
|
/**
|
|
668
720
|
* Body param: The chain type the policy applies to.
|
|
669
721
|
*/
|
|
670
|
-
chain_type: 'ethereum' | 'solana';
|
|
722
|
+
chain_type: 'ethereum' | 'solana' | 'tron';
|
|
671
723
|
/**
|
|
672
724
|
* Body param: Name to assign to policy.
|
|
673
725
|
*/
|
|
@@ -706,11 +758,11 @@ export declare namespace PolicyCreateParams {
|
|
|
706
758
|
* Action to take if the conditions are true.
|
|
707
759
|
*/
|
|
708
760
|
action: 'ALLOW' | 'DENY';
|
|
709
|
-
conditions: Array<Rule.EthereumTransactionCondition | Rule.EthereumCalldataCondition | Rule.EthereumTypedDataDomainCondition | Rule.EthereumTypedDataMessageCondition | Rule.Ethereum7702AuthorizationCondition | Rule.SolanaProgramInstructionCondition | Rule.SolanaSystemProgramInstructionCondition | Rule.SolanaTokenProgramInstructionCondition | Rule.SystemCondition>;
|
|
761
|
+
conditions: Array<Rule.EthereumTransactionCondition | Rule.EthereumCalldataCondition | Rule.EthereumTypedDataDomainCondition | Rule.EthereumTypedDataMessageCondition | Rule.Ethereum7702AuthorizationCondition | Rule.SolanaProgramInstructionCondition | Rule.SolanaSystemProgramInstructionCondition | Rule.SolanaTokenProgramInstructionCondition | Rule.SystemCondition | Rule.TronTransactionCondition>;
|
|
710
762
|
/**
|
|
711
763
|
* Method the rule applies to.
|
|
712
764
|
*/
|
|
713
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | '*';
|
|
765
|
+
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'signTransactionBytes' | '*';
|
|
714
766
|
name: string;
|
|
715
767
|
}
|
|
716
768
|
namespace Rule {
|
|
@@ -817,6 +869,19 @@ export declare namespace PolicyCreateParams {
|
|
|
817
869
|
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
818
870
|
value: string | Array<string>;
|
|
819
871
|
}
|
|
872
|
+
/**
|
|
873
|
+
* TRON transaction fields for TransferContract and TriggerSmartContract
|
|
874
|
+
* transaction types.
|
|
875
|
+
*/
|
|
876
|
+
interface TronTransactionCondition {
|
|
877
|
+
/**
|
|
878
|
+
* Supported TRON transaction fields in format "TransactionType.field_name"
|
|
879
|
+
*/
|
|
880
|
+
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
881
|
+
field_source: 'tron_transaction';
|
|
882
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
883
|
+
value: string | Array<string>;
|
|
884
|
+
}
|
|
820
885
|
}
|
|
821
886
|
/**
|
|
822
887
|
* The P-256 public key of the owner of the resource, in base64-encoded DER format.
|
|
@@ -843,11 +908,11 @@ export interface PolicyCreateRuleParams {
|
|
|
843
908
|
/**
|
|
844
909
|
* Body param:
|
|
845
910
|
*/
|
|
846
|
-
conditions: Array<PolicyCreateRuleParams.EthereumTransactionCondition | PolicyCreateRuleParams.EthereumCalldataCondition | PolicyCreateRuleParams.EthereumTypedDataDomainCondition | PolicyCreateRuleParams.EthereumTypedDataMessageCondition | PolicyCreateRuleParams.Ethereum7702AuthorizationCondition | PolicyCreateRuleParams.SolanaProgramInstructionCondition | PolicyCreateRuleParams.SolanaSystemProgramInstructionCondition | PolicyCreateRuleParams.SolanaTokenProgramInstructionCondition | PolicyCreateRuleParams.SystemCondition>;
|
|
911
|
+
conditions: Array<PolicyCreateRuleParams.EthereumTransactionCondition | PolicyCreateRuleParams.EthereumCalldataCondition | PolicyCreateRuleParams.EthereumTypedDataDomainCondition | PolicyCreateRuleParams.EthereumTypedDataMessageCondition | PolicyCreateRuleParams.Ethereum7702AuthorizationCondition | PolicyCreateRuleParams.SolanaProgramInstructionCondition | PolicyCreateRuleParams.SolanaSystemProgramInstructionCondition | PolicyCreateRuleParams.SolanaTokenProgramInstructionCondition | PolicyCreateRuleParams.SystemCondition | PolicyCreateRuleParams.TronTransactionCondition>;
|
|
847
912
|
/**
|
|
848
913
|
* Body param: Method the rule applies to.
|
|
849
914
|
*/
|
|
850
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | '*';
|
|
915
|
+
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'signTransactionBytes' | '*';
|
|
851
916
|
/**
|
|
852
917
|
* Body param:
|
|
853
918
|
*/
|
|
@@ -962,6 +1027,19 @@ export declare namespace PolicyCreateRuleParams {
|
|
|
962
1027
|
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
963
1028
|
value: string | Array<string>;
|
|
964
1029
|
}
|
|
1030
|
+
/**
|
|
1031
|
+
* TRON transaction fields for TransferContract and TriggerSmartContract
|
|
1032
|
+
* transaction types.
|
|
1033
|
+
*/
|
|
1034
|
+
interface TronTransactionCondition {
|
|
1035
|
+
/**
|
|
1036
|
+
* Supported TRON transaction fields in format "TransactionType.field_name"
|
|
1037
|
+
*/
|
|
1038
|
+
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
1039
|
+
field_source: 'tron_transaction';
|
|
1040
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1041
|
+
value: string | Array<string>;
|
|
1042
|
+
}
|
|
965
1043
|
}
|
|
966
1044
|
export interface PolicyDeleteParams {
|
|
967
1045
|
/**
|
|
@@ -1032,11 +1110,11 @@ export declare namespace PolicyUpdateParams {
|
|
|
1032
1110
|
* Action to take if the conditions are true.
|
|
1033
1111
|
*/
|
|
1034
1112
|
action: 'ALLOW' | 'DENY';
|
|
1035
|
-
conditions: Array<Rule.EthereumTransactionCondition | Rule.EthereumCalldataCondition | Rule.EthereumTypedDataDomainCondition | Rule.EthereumTypedDataMessageCondition | Rule.Ethereum7702AuthorizationCondition | Rule.SolanaProgramInstructionCondition | Rule.SolanaSystemProgramInstructionCondition | Rule.SolanaTokenProgramInstructionCondition | Rule.SystemCondition>;
|
|
1113
|
+
conditions: Array<Rule.EthereumTransactionCondition | Rule.EthereumCalldataCondition | Rule.EthereumTypedDataDomainCondition | Rule.EthereumTypedDataMessageCondition | Rule.Ethereum7702AuthorizationCondition | Rule.SolanaProgramInstructionCondition | Rule.SolanaSystemProgramInstructionCondition | Rule.SolanaTokenProgramInstructionCondition | Rule.SystemCondition | Rule.TronTransactionCondition>;
|
|
1036
1114
|
/**
|
|
1037
1115
|
* Method the rule applies to.
|
|
1038
1116
|
*/
|
|
1039
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | '*';
|
|
1117
|
+
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'signTransactionBytes' | '*';
|
|
1040
1118
|
name: string;
|
|
1041
1119
|
}
|
|
1042
1120
|
namespace Rule {
|
|
@@ -1143,6 +1221,19 @@ export declare namespace PolicyUpdateParams {
|
|
|
1143
1221
|
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1144
1222
|
value: string | Array<string>;
|
|
1145
1223
|
}
|
|
1224
|
+
/**
|
|
1225
|
+
* TRON transaction fields for TransferContract and TriggerSmartContract
|
|
1226
|
+
* transaction types.
|
|
1227
|
+
*/
|
|
1228
|
+
interface TronTransactionCondition {
|
|
1229
|
+
/**
|
|
1230
|
+
* Supported TRON transaction fields in format "TransactionType.field_name"
|
|
1231
|
+
*/
|
|
1232
|
+
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
1233
|
+
field_source: 'tron_transaction';
|
|
1234
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1235
|
+
value: string | Array<string>;
|
|
1236
|
+
}
|
|
1146
1237
|
}
|
|
1147
1238
|
}
|
|
1148
1239
|
export interface PolicyUpdateRuleParams {
|
|
@@ -1157,11 +1248,11 @@ export interface PolicyUpdateRuleParams {
|
|
|
1157
1248
|
/**
|
|
1158
1249
|
* Body param:
|
|
1159
1250
|
*/
|
|
1160
|
-
conditions: Array<PolicyUpdateRuleParams.EthereumTransactionCondition | PolicyUpdateRuleParams.EthereumCalldataCondition | PolicyUpdateRuleParams.EthereumTypedDataDomainCondition | PolicyUpdateRuleParams.EthereumTypedDataMessageCondition | PolicyUpdateRuleParams.Ethereum7702AuthorizationCondition | PolicyUpdateRuleParams.SolanaProgramInstructionCondition | PolicyUpdateRuleParams.SolanaSystemProgramInstructionCondition | PolicyUpdateRuleParams.SolanaTokenProgramInstructionCondition | PolicyUpdateRuleParams.SystemCondition>;
|
|
1251
|
+
conditions: Array<PolicyUpdateRuleParams.EthereumTransactionCondition | PolicyUpdateRuleParams.EthereumCalldataCondition | PolicyUpdateRuleParams.EthereumTypedDataDomainCondition | PolicyUpdateRuleParams.EthereumTypedDataMessageCondition | PolicyUpdateRuleParams.Ethereum7702AuthorizationCondition | PolicyUpdateRuleParams.SolanaProgramInstructionCondition | PolicyUpdateRuleParams.SolanaSystemProgramInstructionCondition | PolicyUpdateRuleParams.SolanaTokenProgramInstructionCondition | PolicyUpdateRuleParams.SystemCondition | PolicyUpdateRuleParams.TronTransactionCondition>;
|
|
1161
1252
|
/**
|
|
1162
1253
|
* Body param: Method the rule applies to.
|
|
1163
1254
|
*/
|
|
1164
|
-
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | '*';
|
|
1255
|
+
method: 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'signTransactionBytes' | '*';
|
|
1165
1256
|
/**
|
|
1166
1257
|
* Body param:
|
|
1167
1258
|
*/
|
|
@@ -1276,6 +1367,19 @@ export declare namespace PolicyUpdateRuleParams {
|
|
|
1276
1367
|
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1277
1368
|
value: string | Array<string>;
|
|
1278
1369
|
}
|
|
1370
|
+
/**
|
|
1371
|
+
* TRON transaction fields for TransferContract and TriggerSmartContract
|
|
1372
|
+
* transaction types.
|
|
1373
|
+
*/
|
|
1374
|
+
interface TronTransactionCondition {
|
|
1375
|
+
/**
|
|
1376
|
+
* Supported TRON transaction fields in format "TransactionType.field_name"
|
|
1377
|
+
*/
|
|
1378
|
+
field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
|
|
1379
|
+
field_source: 'tron_transaction';
|
|
1380
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
1381
|
+
value: string | Array<string>;
|
|
1382
|
+
}
|
|
1279
1383
|
}
|
|
1280
1384
|
export interface PolicyGetRuleParams {
|
|
1281
1385
|
policy_id: string;
|