@vaultum/sdk 0.1.10 → 0.1.11

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/README.md CHANGED
@@ -24,6 +24,7 @@ const client = new VaultumClient({
24
24
  // Create an account
25
25
  const account = await client.createAccount({
26
26
  sessionKeyAddress: '0x...',
27
+ signerSource: 'walletconnect', // or 'turnkey'
27
28
  owners: ['0x...', '0x...'],
28
29
  threshold: 2,
29
30
  });
package/dist/index.d.mts CHANGED
@@ -58,10 +58,13 @@ interface WalletChallengeResponse {
58
58
  digest: Hex;
59
59
  expiresAt?: string;
60
60
  }
61
+ type SignerSource = 'turnkey' | 'walletconnect';
62
+ type WalletSource = SignerSource | 'unknown';
61
63
  interface UserWalletInfo {
62
64
  address: Address;
63
65
  chainId?: number;
64
66
  type?: string;
67
+ source?: WalletSource;
65
68
  }
66
69
  interface WalletsResponse {
67
70
  wallets: UserWalletInfo[];
@@ -132,6 +135,8 @@ interface AccountCreateResult {
132
135
  chain: string;
133
136
  factory: Address;
134
137
  address: Address;
138
+ signerAddress?: Address;
139
+ signerSource?: SignerSource;
135
140
  config: {
136
141
  owners: Address[];
137
142
  threshold: number;
@@ -972,8 +977,12 @@ interface PortfolioTokensResponse {
972
977
  details?: unknown;
973
978
  }
974
979
  interface OpWaitResponse {
980
+ id?: string;
975
981
  state?: string;
982
+ chain?: string;
976
983
  txHash?: string | null;
984
+ error?: string | null;
985
+ sender?: string;
977
986
  }
978
987
 
979
988
  declare const API: {
@@ -1400,6 +1409,7 @@ declare class VaultumClient {
1400
1409
  getCapabilities(signal?: AbortSignal): Promise<Capabilities>;
1401
1410
  createAccount(options: {
1402
1411
  sessionKeyAddress: Address;
1412
+ signerSource: SignerSource;
1403
1413
  chain?: string;
1404
1414
  vaultIndex?: number;
1405
1415
  sponsorshipMode?: 'required' | 'prefer' | 'disabled';
@@ -2382,4 +2392,4 @@ declare function hashCrossChainRootTypedData(params: CrossChainRootTypedDataPara
2382
2392
 
2383
2393
  declare const VERSION: string;
2384
2394
 
2385
- export { API, type AccountCreateResult, type AccountOperation, type AccountOperations, type AccountRoles, type AccountVerifyResult, type ActorPermissions, type AddressBookEntry, type AddressBookPage, type AddressCapabilities, type AggregatedRecoveryInitiateResponse, type AggregatedRecoveryPrepareExecutionResponse, type AggregatedRecoveryStatus, type AllowlistRoots, type AllowlistStatus, type ApiUser, type ArmedStatus, type AuthMeResponse, type AuthSelectedChainResponse, type AuthTokenResponse, type Automation, type AutomationDetails, type AutomationExecution, type AutomationExecutionStatus, type AutomationPage, type AutomationResponse, type AutomationStatus, type AutomationType, type BanStatus, CONTRACTS, type CanaryOptIn, type Capabilities, type ContractName, type CrossChainConfig, type CrossChainGasLimit, type CrossChainPendingProposal, type CrossChainReceiverState, type CrossChainRootTypedDataParams, type CrossChainRootTypedMessage, type CrossChainSkipProposal, type CursorPage, type EIP712Template, ENTRYPOINT_V07, type EnabledFeature, type ExecuteCall, FEATURE_IDS, FEATURE_ID_STRINGS, type FeatureConfig, type FeatureInfo, type FeatureInternal, type FinalizedProposal, GOVERNANCE_DOMAIN_NAME, GOVERNANCE_DOMAIN_VERSION, type GloballyPaused, type GuardianApproval, type GuardianConfig, type HasRole, type HealthStatus, type IsGuardian, type LogoutResponse, type NativeLimitConfig, type NativeLimitStatus, type OnChainRecoveryStatus, type OpWaitResponse, type OperationResult, type OperationState, type OtpInitResponse, type OtpVerifyResponse, type PackedUserOperation, type PasskeySignupResponse, type PasskeySuborgsResponse, type PortfolioTokenItem, type PortfolioTokensResponse, type Proposal, type ProposalCall, type ProposalDigest, type ProposalSignature, type ProposalsPage, type QuoteResponse, type QuoteResponseRaw, type RecoveryGuardians, type RecoveryProposal, type RecoveryProposalInfo, type RecoveryProposalState, type RecoveryStatus, type RegistryFeatures, type RegistryVersion, type RelayEstimate, type RequestContext, type RequestInterceptor, type ResponseContext, type ResponseInterceptor, type RetryConfig, type RoleBudget, type RoleInfo, type RolesInfo, type SDKErrorCode, type SelectorIndex, type SessionKeyCount, type SessionKeyInfo, type SessionKeyList, type SessionKeyPolicySigner, type SessionKeyRoles, type SessionKeyStatus, type SessionKeyTokenLimit, type SettlementPrepareResult, type SettlementQuote, type SettlementTokens, type SpendingLimitBucket, type SpendingLimitPreview, type SpendingLimitStatus, type SpendingLimitSummary, type TargetIndex, type TimestampValidation, type TimingConfig, type TokenLimitConfig, type TokenLimitFullStatus, type TokenLimitStatus, type TokenMaxTransfer, type TriggerAutomationResponse, UserOpBuilder, type UserOpBuilderConfig, type UserOpGasLimits, type UserOpResponse, type UserOpSimulationResponse, type UserOpTemplate, type UserOperation, type UserWalletInfo, VERSION, type ValidatorSelectorPermitted, type VaultDeployment, type VaultGroup, type VaultGroupsResponse, type VaultState, VaultumClient, type VaultumConfig, VaultumError, type WaitOptions, type WalletChallengeResponse, type WalletsResponse, buildCrossChainRootTypedData, createUserOpBuilder, getUserOpHash, hashCrossChainRootTypedData, packGasFees, packGasLimits, parseQuoteResponse, unpackGasFees, unpackGasLimits };
2395
+ export { API, type AccountCreateResult, type AccountOperation, type AccountOperations, type AccountRoles, type AccountVerifyResult, type ActorPermissions, type AddressBookEntry, type AddressBookPage, type AddressCapabilities, type AggregatedRecoveryInitiateResponse, type AggregatedRecoveryPrepareExecutionResponse, type AggregatedRecoveryStatus, type AllowlistRoots, type AllowlistStatus, type ApiUser, type ArmedStatus, type AuthMeResponse, type AuthSelectedChainResponse, type AuthTokenResponse, type Automation, type AutomationDetails, type AutomationExecution, type AutomationExecutionStatus, type AutomationPage, type AutomationResponse, type AutomationStatus, type AutomationType, type BanStatus, CONTRACTS, type CanaryOptIn, type Capabilities, type ContractName, type CrossChainConfig, type CrossChainGasLimit, type CrossChainPendingProposal, type CrossChainReceiverState, type CrossChainRootTypedDataParams, type CrossChainRootTypedMessage, type CrossChainSkipProposal, type CursorPage, type EIP712Template, ENTRYPOINT_V07, type EnabledFeature, type ExecuteCall, FEATURE_IDS, FEATURE_ID_STRINGS, type FeatureConfig, type FeatureInfo, type FeatureInternal, type FinalizedProposal, GOVERNANCE_DOMAIN_NAME, GOVERNANCE_DOMAIN_VERSION, type GloballyPaused, type GuardianApproval, type GuardianConfig, type HasRole, type HealthStatus, type IsGuardian, type LogoutResponse, type NativeLimitConfig, type NativeLimitStatus, type OnChainRecoveryStatus, type OpWaitResponse, type OperationResult, type OperationState, type OtpInitResponse, type OtpVerifyResponse, type PackedUserOperation, type PasskeySignupResponse, type PasskeySuborgsResponse, type PortfolioTokenItem, type PortfolioTokensResponse, type Proposal, type ProposalCall, type ProposalDigest, type ProposalSignature, type ProposalsPage, type QuoteResponse, type QuoteResponseRaw, type RecoveryGuardians, type RecoveryProposal, type RecoveryProposalInfo, type RecoveryProposalState, type RecoveryStatus, type RegistryFeatures, type RegistryVersion, type RelayEstimate, type RequestContext, type RequestInterceptor, type ResponseContext, type ResponseInterceptor, type RetryConfig, type RoleBudget, type RoleInfo, type RolesInfo, type SDKErrorCode, type SelectorIndex, type SessionKeyCount, type SessionKeyInfo, type SessionKeyList, type SessionKeyPolicySigner, type SessionKeyRoles, type SessionKeyStatus, type SessionKeyTokenLimit, type SettlementPrepareResult, type SettlementQuote, type SettlementTokens, type SignerSource, type SpendingLimitBucket, type SpendingLimitPreview, type SpendingLimitStatus, type SpendingLimitSummary, type TargetIndex, type TimestampValidation, type TimingConfig, type TokenLimitConfig, type TokenLimitFullStatus, type TokenLimitStatus, type TokenMaxTransfer, type TriggerAutomationResponse, UserOpBuilder, type UserOpBuilderConfig, type UserOpGasLimits, type UserOpResponse, type UserOpSimulationResponse, type UserOpTemplate, type UserOperation, type UserWalletInfo, VERSION, type ValidatorSelectorPermitted, type VaultDeployment, type VaultGroup, type VaultGroupsResponse, type VaultState, VaultumClient, type VaultumConfig, VaultumError, type WaitOptions, type WalletChallengeResponse, type WalletSource, type WalletsResponse, buildCrossChainRootTypedData, createUserOpBuilder, getUserOpHash, hashCrossChainRootTypedData, packGasFees, packGasLimits, parseQuoteResponse, unpackGasFees, unpackGasLimits };
package/dist/index.d.ts CHANGED
@@ -58,10 +58,13 @@ interface WalletChallengeResponse {
58
58
  digest: Hex;
59
59
  expiresAt?: string;
60
60
  }
61
+ type SignerSource = 'turnkey' | 'walletconnect';
62
+ type WalletSource = SignerSource | 'unknown';
61
63
  interface UserWalletInfo {
62
64
  address: Address;
63
65
  chainId?: number;
64
66
  type?: string;
67
+ source?: WalletSource;
65
68
  }
66
69
  interface WalletsResponse {
67
70
  wallets: UserWalletInfo[];
@@ -132,6 +135,8 @@ interface AccountCreateResult {
132
135
  chain: string;
133
136
  factory: Address;
134
137
  address: Address;
138
+ signerAddress?: Address;
139
+ signerSource?: SignerSource;
135
140
  config: {
136
141
  owners: Address[];
137
142
  threshold: number;
@@ -972,8 +977,12 @@ interface PortfolioTokensResponse {
972
977
  details?: unknown;
973
978
  }
974
979
  interface OpWaitResponse {
980
+ id?: string;
975
981
  state?: string;
982
+ chain?: string;
976
983
  txHash?: string | null;
984
+ error?: string | null;
985
+ sender?: string;
977
986
  }
978
987
 
979
988
  declare const API: {
@@ -1400,6 +1409,7 @@ declare class VaultumClient {
1400
1409
  getCapabilities(signal?: AbortSignal): Promise<Capabilities>;
1401
1410
  createAccount(options: {
1402
1411
  sessionKeyAddress: Address;
1412
+ signerSource: SignerSource;
1403
1413
  chain?: string;
1404
1414
  vaultIndex?: number;
1405
1415
  sponsorshipMode?: 'required' | 'prefer' | 'disabled';
@@ -2382,4 +2392,4 @@ declare function hashCrossChainRootTypedData(params: CrossChainRootTypedDataPara
2382
2392
 
2383
2393
  declare const VERSION: string;
2384
2394
 
2385
- export { API, type AccountCreateResult, type AccountOperation, type AccountOperations, type AccountRoles, type AccountVerifyResult, type ActorPermissions, type AddressBookEntry, type AddressBookPage, type AddressCapabilities, type AggregatedRecoveryInitiateResponse, type AggregatedRecoveryPrepareExecutionResponse, type AggregatedRecoveryStatus, type AllowlistRoots, type AllowlistStatus, type ApiUser, type ArmedStatus, type AuthMeResponse, type AuthSelectedChainResponse, type AuthTokenResponse, type Automation, type AutomationDetails, type AutomationExecution, type AutomationExecutionStatus, type AutomationPage, type AutomationResponse, type AutomationStatus, type AutomationType, type BanStatus, CONTRACTS, type CanaryOptIn, type Capabilities, type ContractName, type CrossChainConfig, type CrossChainGasLimit, type CrossChainPendingProposal, type CrossChainReceiverState, type CrossChainRootTypedDataParams, type CrossChainRootTypedMessage, type CrossChainSkipProposal, type CursorPage, type EIP712Template, ENTRYPOINT_V07, type EnabledFeature, type ExecuteCall, FEATURE_IDS, FEATURE_ID_STRINGS, type FeatureConfig, type FeatureInfo, type FeatureInternal, type FinalizedProposal, GOVERNANCE_DOMAIN_NAME, GOVERNANCE_DOMAIN_VERSION, type GloballyPaused, type GuardianApproval, type GuardianConfig, type HasRole, type HealthStatus, type IsGuardian, type LogoutResponse, type NativeLimitConfig, type NativeLimitStatus, type OnChainRecoveryStatus, type OpWaitResponse, type OperationResult, type OperationState, type OtpInitResponse, type OtpVerifyResponse, type PackedUserOperation, type PasskeySignupResponse, type PasskeySuborgsResponse, type PortfolioTokenItem, type PortfolioTokensResponse, type Proposal, type ProposalCall, type ProposalDigest, type ProposalSignature, type ProposalsPage, type QuoteResponse, type QuoteResponseRaw, type RecoveryGuardians, type RecoveryProposal, type RecoveryProposalInfo, type RecoveryProposalState, type RecoveryStatus, type RegistryFeatures, type RegistryVersion, type RelayEstimate, type RequestContext, type RequestInterceptor, type ResponseContext, type ResponseInterceptor, type RetryConfig, type RoleBudget, type RoleInfo, type RolesInfo, type SDKErrorCode, type SelectorIndex, type SessionKeyCount, type SessionKeyInfo, type SessionKeyList, type SessionKeyPolicySigner, type SessionKeyRoles, type SessionKeyStatus, type SessionKeyTokenLimit, type SettlementPrepareResult, type SettlementQuote, type SettlementTokens, type SpendingLimitBucket, type SpendingLimitPreview, type SpendingLimitStatus, type SpendingLimitSummary, type TargetIndex, type TimestampValidation, type TimingConfig, type TokenLimitConfig, type TokenLimitFullStatus, type TokenLimitStatus, type TokenMaxTransfer, type TriggerAutomationResponse, UserOpBuilder, type UserOpBuilderConfig, type UserOpGasLimits, type UserOpResponse, type UserOpSimulationResponse, type UserOpTemplate, type UserOperation, type UserWalletInfo, VERSION, type ValidatorSelectorPermitted, type VaultDeployment, type VaultGroup, type VaultGroupsResponse, type VaultState, VaultumClient, type VaultumConfig, VaultumError, type WaitOptions, type WalletChallengeResponse, type WalletsResponse, buildCrossChainRootTypedData, createUserOpBuilder, getUserOpHash, hashCrossChainRootTypedData, packGasFees, packGasLimits, parseQuoteResponse, unpackGasFees, unpackGasLimits };
2395
+ export { API, type AccountCreateResult, type AccountOperation, type AccountOperations, type AccountRoles, type AccountVerifyResult, type ActorPermissions, type AddressBookEntry, type AddressBookPage, type AddressCapabilities, type AggregatedRecoveryInitiateResponse, type AggregatedRecoveryPrepareExecutionResponse, type AggregatedRecoveryStatus, type AllowlistRoots, type AllowlistStatus, type ApiUser, type ArmedStatus, type AuthMeResponse, type AuthSelectedChainResponse, type AuthTokenResponse, type Automation, type AutomationDetails, type AutomationExecution, type AutomationExecutionStatus, type AutomationPage, type AutomationResponse, type AutomationStatus, type AutomationType, type BanStatus, CONTRACTS, type CanaryOptIn, type Capabilities, type ContractName, type CrossChainConfig, type CrossChainGasLimit, type CrossChainPendingProposal, type CrossChainReceiverState, type CrossChainRootTypedDataParams, type CrossChainRootTypedMessage, type CrossChainSkipProposal, type CursorPage, type EIP712Template, ENTRYPOINT_V07, type EnabledFeature, type ExecuteCall, FEATURE_IDS, FEATURE_ID_STRINGS, type FeatureConfig, type FeatureInfo, type FeatureInternal, type FinalizedProposal, GOVERNANCE_DOMAIN_NAME, GOVERNANCE_DOMAIN_VERSION, type GloballyPaused, type GuardianApproval, type GuardianConfig, type HasRole, type HealthStatus, type IsGuardian, type LogoutResponse, type NativeLimitConfig, type NativeLimitStatus, type OnChainRecoveryStatus, type OpWaitResponse, type OperationResult, type OperationState, type OtpInitResponse, type OtpVerifyResponse, type PackedUserOperation, type PasskeySignupResponse, type PasskeySuborgsResponse, type PortfolioTokenItem, type PortfolioTokensResponse, type Proposal, type ProposalCall, type ProposalDigest, type ProposalSignature, type ProposalsPage, type QuoteResponse, type QuoteResponseRaw, type RecoveryGuardians, type RecoveryProposal, type RecoveryProposalInfo, type RecoveryProposalState, type RecoveryStatus, type RegistryFeatures, type RegistryVersion, type RelayEstimate, type RequestContext, type RequestInterceptor, type ResponseContext, type ResponseInterceptor, type RetryConfig, type RoleBudget, type RoleInfo, type RolesInfo, type SDKErrorCode, type SelectorIndex, type SessionKeyCount, type SessionKeyInfo, type SessionKeyList, type SessionKeyPolicySigner, type SessionKeyRoles, type SessionKeyStatus, type SessionKeyTokenLimit, type SettlementPrepareResult, type SettlementQuote, type SettlementTokens, type SignerSource, type SpendingLimitBucket, type SpendingLimitPreview, type SpendingLimitStatus, type SpendingLimitSummary, type TargetIndex, type TimestampValidation, type TimingConfig, type TokenLimitConfig, type TokenLimitFullStatus, type TokenLimitStatus, type TokenMaxTransfer, type TriggerAutomationResponse, UserOpBuilder, type UserOpBuilderConfig, type UserOpGasLimits, type UserOpResponse, type UserOpSimulationResponse, type UserOpTemplate, type UserOperation, type UserWalletInfo, VERSION, type ValidatorSelectorPermitted, type VaultDeployment, type VaultGroup, type VaultGroupsResponse, type VaultState, VaultumClient, type VaultumConfig, VaultumError, type WaitOptions, type WalletChallengeResponse, type WalletSource, type WalletsResponse, buildCrossChainRootTypedData, createUserOpBuilder, getUserOpHash, hashCrossChainRootTypedData, packGasFees, packGasLimits, parseQuoteResponse, unpackGasFees, unpackGasLimits };
package/dist/index.js CHANGED
@@ -909,7 +909,8 @@ var VaultumClient = class {
909
909
  wallets: (raw.wallets || []).map((w) => ({
910
910
  address: w.address.toLowerCase(),
911
911
  chainId: w.chain_id,
912
- type: w.type
912
+ type: w.type,
913
+ source: w.source
913
914
  }))
914
915
  };
915
916
  }
@@ -924,7 +925,8 @@ var VaultumClient = class {
924
925
  wallets: (raw.wallets || []).map((w) => ({
925
926
  address: w.address.toLowerCase(),
926
927
  chainId: w.chain_id,
927
- type: w.type
928
+ type: w.type,
929
+ source: w.source
928
930
  }))
929
931
  };
930
932
  }
@@ -1002,6 +1004,7 @@ var VaultumClient = class {
1002
1004
  async createAccount(options) {
1003
1005
  return this.request("POST", API.accounts.create, {
1004
1006
  sessionKeyAddress: options.sessionKeyAddress.toLowerCase(),
1007
+ signerSource: options.signerSource,
1005
1008
  type: "create",
1006
1009
  chain: options.chain ?? this.chain,
1007
1010
  vaultIndex: options.vaultIndex,
@@ -2149,7 +2152,7 @@ function hashCrossChainRootTypedData(params) {
2149
2152
  }
2150
2153
 
2151
2154
  // src/index.ts
2152
- var VERSION = "0.1.10";
2155
+ var VERSION = "0.1.11";
2153
2156
  // Annotate the CommonJS export names for ESM import in node:
2154
2157
  0 && (module.exports = {
2155
2158
  API,
package/dist/index.mjs CHANGED
@@ -873,7 +873,8 @@ var VaultumClient = class {
873
873
  wallets: (raw.wallets || []).map((w) => ({
874
874
  address: w.address.toLowerCase(),
875
875
  chainId: w.chain_id,
876
- type: w.type
876
+ type: w.type,
877
+ source: w.source
877
878
  }))
878
879
  };
879
880
  }
@@ -888,7 +889,8 @@ var VaultumClient = class {
888
889
  wallets: (raw.wallets || []).map((w) => ({
889
890
  address: w.address.toLowerCase(),
890
891
  chainId: w.chain_id,
891
- type: w.type
892
+ type: w.type,
893
+ source: w.source
892
894
  }))
893
895
  };
894
896
  }
@@ -966,6 +968,7 @@ var VaultumClient = class {
966
968
  async createAccount(options) {
967
969
  return this.request("POST", API.accounts.create, {
968
970
  sessionKeyAddress: options.sessionKeyAddress.toLowerCase(),
971
+ signerSource: options.signerSource,
969
972
  type: "create",
970
973
  chain: options.chain ?? this.chain,
971
974
  vaultIndex: options.vaultIndex,
@@ -2113,7 +2116,7 @@ function hashCrossChainRootTypedData(params) {
2113
2116
  }
2114
2117
 
2115
2118
  // src/index.ts
2116
- var VERSION = "0.1.10";
2119
+ var VERSION = "0.1.11";
2117
2120
  export {
2118
2121
  API,
2119
2122
  CONTRACTS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaultum/sdk",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "TypeScript SDK for Vaultum smart wallet",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",