@canton-network/core-wallet-user-rpc-client 1.11.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +59 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Code generated by @open-rpc/generator DO NOT EDIT.\nimport _ from 'lodash'\n\nimport { RequestArgs, RequestPayload } from '@canton-network/core-types'\nimport { RpcTransport } from '@canton-network/core-rpc-transport'\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/**\n *\n * Network ID\n *\n */\nexport type NetworkId = string\n/**\n *\n * The name of the API key.\n *\n */\nexport type Name = string\n/**\n *\n * Description of network\n *\n */\nexport type Description = string\n/**\n *\n * Synchronizer ID\n *\n */\nexport type SynchronizerId = string\n/**\n *\n * Identity Provider ID\n *\n */\nexport type IdentityProviderId = string\nexport type Method = string\nexport type Scope = string\nexport type ClientId = string\nexport type ClientSecret = string\n/**\n *\n * Issuer of identity provider\n *\n */\nexport type Issuer = string\nexport type Audience = string\n/**\n *\n * Represents the type of auth for a specified network\n *\n */\nexport interface Auth {\n method: Method\n scope: Scope\n clientId: ClientId\n clientSecret?: ClientSecret\n issuer?: Issuer\n audience: Audience\n}\n/**\n *\n * Ledger api url\n *\n */\nexport type LedgerApi = string\n/**\n *\n * Connected network metadata. Privileged credentials (adminAuth, serviceAccountAuth) are included only for the admin user.\n *\n */\nexport interface Network {\n id: NetworkId\n name: Name\n description: Description\n synchronizerId?: SynchronizerId\n identityProviderId: IdentityProviderId\n auth: Auth\n adminAuth?: Auth\n serviceAccountAuth?: Auth\n ledgerApi: LedgerApi\n}\n/**\n *\n * Ledger api url\n *\n */\nexport type NetworkName = string\n/**\n *\n * The unique identifier of the API key.\n *\n */\nexport type Id = string\n/**\n *\n * Type of identity provider (oauth / self_signed)\n *\n */\nexport type Type = any\n/**\n *\n * The configuration URL for the identity provider.\n *\n */\nexport type ConfigUrl = string\n/**\n *\n * Structure representing the Identity Providers\n *\n */\nexport interface Idp {\n id: Id\n type: Type\n issuer: Issuer\n configUrl?: ConfigUrl\n}\n/**\n *\n * Set as primary wallet for dApp usage.\n *\n */\nexport type Primary = boolean\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type PartyHint = string\n/**\n *\n * The signing provider ID the wallet corresponds to.\n *\n */\nexport type SigningProviderId = string\nexport type VaultName = string\n/**\n *\n * The party id of the wallet to be removed.\n *\n */\nexport type PartyId = string\n/**\n *\n * Filter wallets by network IDs.\n *\n */\nexport type NetworkIds = NetworkId[]\n/**\n *\n * Filter wallets by signing provider IDs.\n *\n */\nexport type SigningProviderIds = SigningProviderId[]\n/**\n *\n * Filter for the wallets to be returned.\n *\n */\nexport interface WalletFilter {\n networkIds?: NetworkIds\n signingProviderIds?: SigningProviderIds\n}\n/**\n *\n * The internal transaction identifier.\n *\n */\nexport type TransactionId = string\n/**\n *\n * The internal identifier of the pending message-signing request.\n *\n */\nexport type MessageId = string\n/**\n *\n * The signature of the message.\n *\n */\nexport type Signature = string\nexport type SignedBy = string\n/**\n *\n * The origin (dApp URL) that initiated this transaction request.\n *\n */\nexport type Origin = string\n/**\n *\n * Limit of transactions to return.\n *\n */\nexport type Limit = number\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type CursorAsString = string\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type Cursor = CursorAsString\n/**\n *\n * Authentication method configured for this network\n *\n */\nexport type AuthMethod = string\n/**\n *\n * Network metadata exposed by listNetworks without sensitive auth configuration\n *\n */\nexport interface PublicNetwork {\n id: NetworkId\n name: Name\n description: Description\n synchronizerId?: SynchronizerId\n identityProviderId: IdentityProviderId\n ledgerApi: LedgerApi\n authMethod: AuthMethod\n clientId?: ClientId\n scope?: Scope\n audience?: Audience\n}\nexport type Networks = PublicNetwork[]\n/**\n *\n * The access token for the session.\n *\n */\nexport type AccessToken = string\nexport type Idps = Idp[]\n/**\n *\n * The status of the wallet.\n *\n */\nexport type WalletStatus = 'initialized' | 'allocated' | 'removed'\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type Hint = string\n/**\n *\n * The public key of the party.\n *\n */\nexport type PublicKey = string\n/**\n *\n * The namespace of the party.\n *\n */\nexport type Namespace = string\n/**\n *\n * External transaction ID from signing provider.\n *\n */\nexport type ExternalTxId = string\n/**\n *\n * The topology transactions\n *\n */\nexport type TopologyTransactions = string\n/**\n *\n * Whether the wallet is disabled. Wallets are disabled when no signing provider matches the party's namespace during sync. Disabled wallets use participant as the default signing provider.\n *\n */\nexport type Disabled = boolean\n/**\n *\n * The reason for the current status.\n *\n */\nexport type Reason = string\nexport type PartyLevelRight = any\n/**\n *\n * The rights of the user for the network.\n *\n */\nexport type Rights = UserLevelRight[]\n/**\n *\n * Structure representing a wallet\n *\n */\nexport interface Wallet {\n primary: Primary\n partyId: PartyId\n status: WalletStatus\n hint: Hint\n publicKey: PublicKey\n namespace: Namespace\n networkId: NetworkId\n signingProviderId: SigningProviderId\n externalTxId?: ExternalTxId\n topologyTransactions?: TopologyTransactions\n disabled?: Disabled\n reason?: Reason\n rights: Rights\n}\ntype AlwaysTrue = any\n/**\n *\n * Non-disabled wallets added in this syncWallets call.\n *\n */\nexport type SyncWalletsResultAdded = Wallet[]\n/**\n *\n * Existing wallets that either got downgraded to status initialized or their rights changed in this syncWallets call.\n *\n */\nexport type SyncWalletsResultUpdated = Wallet[]\n/**\n *\n * Either wallets added in this iteration that are disabled, or existing wallet that were updated to be disabled in this syncWallets call.\n *\n */\nexport type SyncWalletsResultDisabled = Wallet[]\n/**\n *\n * Whether wallet sync is needed. Returns true if there are disabled wallets or parties on the ledger that aren't in the store.\n *\n */\nexport type WalletSyncNeeded = boolean\nexport type TxStatusSigned = 'signed'\nexport interface SignResultSigned {\n status: TxStatusSigned\n signature: Signature\n signedBy: SignedBy\n partyId: PartyId\n externalTxId?: ExternalTxId\n}\nexport type TxStatusPending = 'pending'\nexport interface SignResultPending {\n status: TxStatusPending\n partyId: PartyId\n externalTxId: ExternalTxId\n}\nexport type TxStatusRejected = 'rejected'\nexport interface SignResultRejected {\n status: TxStatusRejected\n partyId: PartyId\n externalTxId: ExternalTxId\n}\nexport type TxStatusFailed = 'failed'\nexport interface SignResultFailed {\n status: TxStatusFailed\n partyId: PartyId\n externalTxId: ExternalTxId\n}\n/**\n *\n * The status of the transaction.\n *\n */\nexport type Status = string\n/**\n *\n * The message to sign.\n *\n */\nexport type Message = string\n/**\n *\n * The timestamp when the API key was created.\n *\n */\nexport type CreatedAt = string\n/**\n *\n * The timestamp when the transaction was signed.\n *\n */\nexport type SignedAt = string\nexport interface MessageRaw {\n id: MessageId\n status: Status\n partyId: PartyId\n publicKey: PublicKey\n message: Message\n origin?: Origin\n createdAt: CreatedAt\n signedAt?: SignedAt\n signature?: Signature\n}\nexport type Messages = MessageRaw[]\nexport type UserLevelRight = any\n/**\n *\n * Structure representing the connected network session\n *\n */\nexport interface Session {\n id: Id\n origin?: Origin\n network: Network\n idp: Idp\n accessToken: AccessToken\n status: Status\n reason?: Reason\n rights: Rights\n}\nexport type Sessions = Session[]\n/**\n *\n * The unique identifier of the command associated with the transaction.\n *\n */\nexport type CommandId = string\n/**\n *\n * The transaction data corresponding to the command ID.\n *\n */\nexport type PreparedTransaction = string\n/**\n *\n * The hash of the prepared transaction.\n *\n */\nexport type PreparedTransactionHash = string\n/**\n *\n * Optional payload associated with the transaction.\n *\n */\nexport type Payload = string\nexport interface Transaction {\n id: TransactionId\n commandId: CommandId\n status: Status\n createdAt?: CreatedAt\n signedAt?: SignedAt\n preparedTransaction: PreparedTransaction\n preparedTransactionHash: PreparedTransactionHash\n payload?: Payload\n origin?: Origin\n externalTxId?: ExternalTxId\n}\nexport type Transactions = Transaction[]\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type NextCursor = string\n/**\n *\n * Number of total transactions for the user.\n *\n */\nexport type Count = number\n/**\n *\n * The unique identifier of the current user.\n *\n */\nexport type UserIdentifier = string\n/**\n *\n * Whether the current user is an admin.\n *\n */\nexport type IsAdminFlag = boolean\n/**\n *\n * The generated API key.\n *\n */\nexport type ApiKeyResult = string\nexport interface ApiKey {\n id: Id\n name: Name\n createdAt: CreatedAt\n}\n/**\n *\n * The list of API keys.\n *\n */\nexport type ApiKeys = ApiKey[]\n/**\n *\n * The list of signing provider's available vault names.\n *\n */\nexport type Vaults = VaultName[]\nexport interface AddNetworkParams {\n network: Network\n}\nexport interface RemoveNetworkParams {\n networkName: NetworkName\n}\nexport interface GetNetworkParams {\n networkId: NetworkId\n}\nexport interface SelfSignedAccessTokenParams {\n networkId: NetworkId\n clientId: ClientId\n}\nexport interface AddIdpParams {\n idp: Idp\n}\nexport interface RemoveIdpParams {\n identityProviderId: IdentityProviderId\n}\nexport interface CreateWalletParams {\n primary?: Primary\n partyHint: PartyHint\n signingProviderId: SigningProviderId\n vaultName?: VaultName\n}\nexport interface AllocatePartyForWalletParams {\n partyId: PartyId\n}\nexport interface SetPrimaryWalletParams {\n partyId: PartyId\n}\nexport interface RemoveWalletParams {\n partyId: PartyId\n}\nexport interface ListWalletsParams {\n filter?: WalletFilter\n}\nexport interface SignParams {\n transactionId: TransactionId\n partyId: PartyId\n}\nexport interface SignMessageParams {\n messageId: MessageId\n partyId?: PartyId\n}\nexport interface GetMessageToSignParams {\n messageId: MessageId\n}\nexport interface DeleteMessageToSignParams {\n messageId: MessageId\n}\nexport interface ExecuteParams {\n signature: Signature\n partyId: PartyId\n transactionId: TransactionId\n signedBy: SignedBy\n}\nexport interface AddSessionParams {\n origin: Origin\n networkId: NetworkId\n}\nexport interface GetTransactionParams {\n transactionId: TransactionId\n}\nexport interface ListTransactionsParams {\n limit?: Limit\n cursor?: Cursor\n}\nexport interface DeleteTransactionParams {\n transactionId: TransactionId\n}\nexport interface GenerateApiKeyParams {\n name: Name\n}\nexport interface RemoveApiKeyParams {\n id: Id\n}\nexport interface ListSigningProviderVaultsParams {\n signingProviderId: SigningProviderId\n}\n/**\n *\n * Represents a null value, used in responses where no data is returned.\n *\n */\nexport type Null = null\nexport interface ListNetworksResult {\n networks: Networks\n}\nexport interface GetNetworkResult {\n network: Network\n}\nexport interface SelfSignedAccessTokenResult {\n accessToken: AccessToken\n}\nexport interface ListIdpsResult {\n idps: Idps\n}\nexport interface CreateWalletResult {\n wallet: Wallet\n}\nexport interface AllocatePartyForWalletResult {\n wallet: Wallet\n}\nexport interface RemovePartyResult {\n [key: string]: any\n}\n/**\n *\n * An array of wallets that match the filter criteria.\n *\n */\nexport type ListWalletsResult = Wallet[]\n/**\n *\n * Added, updated and disabled wallets as a result of the sync.\n *\n */\nexport interface SyncWalletsResult {\n added: SyncWalletsResultAdded\n updated: SyncWalletsResultUpdated\n disabled: SyncWalletsResultDisabled\n}\nexport interface IsWalletSyncNeededResult {\n walletSyncNeeded: WalletSyncNeeded\n}\nexport type SignResult =\n SignResultSigned | SignResultPending | SignResultRejected | SignResultFailed\nexport interface SignMessageResult {\n signature: Signature\n publicKey: PublicKey\n}\nexport interface GetMessageToSignResult {\n message: MessageRaw\n}\nexport interface ListMessagesToSignResult {\n messages: Messages\n}\nexport interface ExecuteResult {\n [key: string]: any\n}\n/**\n *\n * Structure representing the connected network session\n *\n */\nexport interface AddSessionResult {\n id: Id\n origin?: Origin\n network: Network\n idp: Idp\n accessToken: AccessToken\n status: Status\n reason?: Reason\n rights: Rights\n}\nexport interface ListSessionsResult {\n sessions: Sessions\n}\nexport interface GetTransactionResult {\n id: TransactionId\n commandId: CommandId\n status: Status\n createdAt?: CreatedAt\n signedAt?: SignedAt\n preparedTransaction: PreparedTransaction\n preparedTransactionHash: PreparedTransactionHash\n payload?: Payload\n origin?: Origin\n externalTxId?: ExternalTxId\n}\nexport interface ListTransactionsResult {\n transactions: Transactions\n nextCursor?: NextCursor\n count: Count\n}\nexport interface GetUserResult {\n userId: UserIdentifier\n isAdmin: IsAdminFlag\n}\nexport interface GeneratedApiKey {\n id: Id\n apiKey: ApiKeyResult\n}\nexport interface ListApiKeysResult {\n apiKeys: ApiKeys\n}\nexport interface ListSigningProviderVaultsResult {\n vaults: Vaults\n}\n/**\n *\n * Generated! Represents an alias to any of the provided schemas\n *\n */\n\nexport type AddNetwork = (params: AddNetworkParams) => Promise<Null>\nexport type RemoveNetwork = (params: RemoveNetworkParams) => Promise<Null>\nexport type ListNetworks = () => Promise<ListNetworksResult>\nexport type GetNetwork = (params: GetNetworkParams) => Promise<GetNetworkResult>\nexport type SelfSignedAccessToken = (\n params: SelfSignedAccessTokenParams\n) => Promise<SelfSignedAccessTokenResult>\nexport type AddIdp = (params: AddIdpParams) => Promise<Null>\nexport type RemoveIdp = (params: RemoveIdpParams) => Promise<Null>\nexport type ListIdps = () => Promise<ListIdpsResult>\nexport type CreateWallet = (\n params: CreateWalletParams\n) => Promise<CreateWalletResult>\nexport type AllocatePartyForWallet = (\n params: AllocatePartyForWalletParams\n) => Promise<AllocatePartyForWalletResult>\nexport type SetPrimaryWallet = (params: SetPrimaryWalletParams) => Promise<Null>\nexport type RemoveWallet = (\n params: RemoveWalletParams\n) => Promise<RemovePartyResult>\nexport type ListWallets = (\n params: ListWalletsParams\n) => Promise<ListWalletsResult>\nexport type SyncWallets = () => Promise<SyncWalletsResult>\nexport type IsWalletSyncNeeded = () => Promise<IsWalletSyncNeededResult>\nexport type Sign = (params: SignParams) => Promise<SignResult>\nexport type SignMessage = (\n params: SignMessageParams\n) => Promise<SignMessageResult>\nexport type GetMessageToSign = (\n params: GetMessageToSignParams\n) => Promise<GetMessageToSignResult>\nexport type ListMessagesToSign = () => Promise<ListMessagesToSignResult>\nexport type DeleteMessageToSign = (\n params: DeleteMessageToSignParams\n) => Promise<Null>\nexport type Execute = (params: ExecuteParams) => Promise<ExecuteResult>\nexport type AddSession = (params: AddSessionParams) => Promise<AddSessionResult>\nexport type RemoveSession = () => Promise<Null>\nexport type ListSessions = () => Promise<ListSessionsResult>\nexport type GetTransaction = (\n params: GetTransactionParams\n) => Promise<GetTransactionResult>\nexport type ListTransactions = (\n params: ListTransactionsParams\n) => Promise<ListTransactionsResult>\nexport type DeleteTransaction = (\n params: DeleteTransactionParams\n) => Promise<Null>\nexport type GetUser = () => Promise<GetUserResult>\nexport type GenerateApiKey = (\n params: GenerateApiKeyParams\n) => Promise<GeneratedApiKey>\nexport type ListApiKeys = () => Promise<ListApiKeysResult>\nexport type RemoveApiKey = (params: RemoveApiKeyParams) => Promise<Null>\nexport type ListSigningProviderVaults = (\n params: ListSigningProviderVaultsParams\n) => Promise<ListSigningProviderVaultsResult>\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\ntype Params<T> = T extends (...args: infer A) => any\n ? A extends []\n ? never\n : A[0]\n : never\ntype Result<T> = T extends (...args: any[]) => Promise<infer R> ? R : never\n\nexport type RpcTypes = {\n addNetwork: {\n params: Params<AddNetwork>\n result: Result<AddNetwork>\n }\n\n removeNetwork: {\n params: Params<RemoveNetwork>\n result: Result<RemoveNetwork>\n }\n\n listNetworks: {\n params: Params<ListNetworks>\n result: Result<ListNetworks>\n }\n\n getNetwork: {\n params: Params<GetNetwork>\n result: Result<GetNetwork>\n }\n\n selfSignedAccessToken: {\n params: Params<SelfSignedAccessToken>\n result: Result<SelfSignedAccessToken>\n }\n\n addIdp: {\n params: Params<AddIdp>\n result: Result<AddIdp>\n }\n\n removeIdp: {\n params: Params<RemoveIdp>\n result: Result<RemoveIdp>\n }\n\n listIdps: {\n params: Params<ListIdps>\n result: Result<ListIdps>\n }\n\n createWallet: {\n params: Params<CreateWallet>\n result: Result<CreateWallet>\n }\n\n allocatePartyForWallet: {\n params: Params<AllocatePartyForWallet>\n result: Result<AllocatePartyForWallet>\n }\n\n setPrimaryWallet: {\n params: Params<SetPrimaryWallet>\n result: Result<SetPrimaryWallet>\n }\n\n removeWallet: {\n params: Params<RemoveWallet>\n result: Result<RemoveWallet>\n }\n\n listWallets: {\n params: Params<ListWallets>\n result: Result<ListWallets>\n }\n\n syncWallets: {\n params: Params<SyncWallets>\n result: Result<SyncWallets>\n }\n\n isWalletSyncNeeded: {\n params: Params<IsWalletSyncNeeded>\n result: Result<IsWalletSyncNeeded>\n }\n\n sign: {\n params: Params<Sign>\n result: Result<Sign>\n }\n\n signMessage: {\n params: Params<SignMessage>\n result: Result<SignMessage>\n }\n\n getMessageToSign: {\n params: Params<GetMessageToSign>\n result: Result<GetMessageToSign>\n }\n\n listMessagesToSign: {\n params: Params<ListMessagesToSign>\n result: Result<ListMessagesToSign>\n }\n\n deleteMessageToSign: {\n params: Params<DeleteMessageToSign>\n result: Result<DeleteMessageToSign>\n }\n\n execute: {\n params: Params<Execute>\n result: Result<Execute>\n }\n\n addSession: {\n params: Params<AddSession>\n result: Result<AddSession>\n }\n\n removeSession: {\n params: Params<RemoveSession>\n result: Result<RemoveSession>\n }\n\n listSessions: {\n params: Params<ListSessions>\n result: Result<ListSessions>\n }\n\n getTransaction: {\n params: Params<GetTransaction>\n result: Result<GetTransaction>\n }\n\n listTransactions: {\n params: Params<ListTransactions>\n result: Result<ListTransactions>\n }\n\n deleteTransaction: {\n params: Params<DeleteTransaction>\n result: Result<DeleteTransaction>\n }\n\n getUser: {\n params: Params<GetUser>\n result: Result<GetUser>\n }\n\n generateApiKey: {\n params: Params<GenerateApiKey>\n result: Result<GenerateApiKey>\n }\n\n listApiKeys: {\n params: Params<ListApiKeys>\n result: Result<ListApiKeys>\n }\n\n removeApiKey: {\n params: Params<RemoveApiKey>\n result: Result<RemoveApiKey>\n }\n\n listSigningProviderVaults: {\n params: Params<ListSigningProviderVaults>\n result: Result<ListSigningProviderVaults>\n }\n}\n\nexport class WalletJSONRPCUserAPI {\n public transport: RpcTransport\n\n constructor(transport: RpcTransport) {\n this.transport = transport\n }\n\n public async request<M extends keyof RpcTypes>(\n args: RequestArgs<RpcTypes, M>\n ): Promise<RpcTypes[M]['result']> {\n const response = await this.transport.submit(args as RequestPayload)\n\n if ('error' in response) {\n throw new Error(\n 'RPC error: ' +\n response.error.code +\n ' - ' +\n response.error.message\n )\n } else {\n return response.result as RpcTypes[M]['result']\n }\n }\n}\nexport default WalletJSONRPCUserAPI\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA85BA,IAAa,uBAAb,MAAkC;CAG9B,YAAY,WAAyB;EAF9B,gBAAA,MAAA,aAAA,KAAA,CAAA;EAGH,KAAK,YAAY;CACrB;CAEA,MAAa,QACT,MAC8B;EAC9B,MAAM,WAAW,MAAM,KAAK,UAAU,OAAO,IAAsB;EAEnE,IAAI,WAAW,UACX,MAAM,IAAI,MACN,gBACI,SAAS,MAAM,OACf,QACA,SAAS,MAAM,OACvB;OAEA,OAAO,SAAS;CAExB;AACJ"}
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Code generated by @open-rpc/generator DO NOT EDIT.\nimport _ from 'lodash'\n\nimport { RequestArgs, RequestPayload } from '@canton-network/core-types'\nimport { RpcTransport } from '@canton-network/core-rpc-transport'\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/**\n *\n * The network ID the wallet corresponds to.\n *\n */\nexport type NetworkId = string\nexport type Name = string\n/**\n *\n * Description of network\n *\n */\nexport type Description = string\n/**\n *\n * Synchronizer ID\n *\n */\nexport type SynchronizerId = string\n/**\n *\n * Identity Provider ID\n *\n */\nexport type IdentityProviderId = string\nexport type Method = string\nexport type Scope = string\nexport type ClientId = string\nexport type ClientSecret = string\n/**\n *\n * Issuer of identity provider\n *\n */\nexport type Issuer = string\nexport type Audience = string\n/**\n *\n * Represents the type of auth for a specified network\n *\n */\nexport interface Auth {\n method: Method\n scope: Scope\n clientId: ClientId\n clientSecret?: ClientSecret\n issuer?: Issuer\n audience: Audience\n}\n/**\n *\n * Ledger api url\n *\n */\nexport type LedgerApi = string\n/**\n *\n * Connected network metadata. Privileged credentials (adminAuth, serviceAccountAuth) are included only for the admin user.\n *\n */\nexport interface Network {\n id: NetworkId\n name: Name\n description: Description\n synchronizerId?: SynchronizerId\n identityProviderId: IdentityProviderId\n auth: Auth\n adminAuth?: Auth\n serviceAccountAuth?: Auth\n ledgerApi: LedgerApi\n}\n/**\n *\n * Ledger api url\n *\n */\nexport type NetworkName = string\nexport type Id = string\n/**\n *\n * Type of identity provider (oauth / self_signed)\n *\n */\nexport type Type = any\n/**\n *\n * The configuration URL for the identity provider.\n *\n */\nexport type ConfigUrl = string\n/**\n *\n * Structure representing the Identity Providers\n *\n */\nexport interface Idp {\n id: Id\n type: Type\n issuer: Issuer\n configUrl?: ConfigUrl\n}\n/**\n *\n * Set as primary wallet for dApp usage.\n *\n */\nexport type Primary = boolean\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type PartyHint = string\n/**\n *\n * The signing provider ID the wallet corresponds to.\n *\n */\nexport type SigningProviderId = string\n/**\n *\n * Name of signing provider's key to use for getting keys.\n *\n */\nexport type KeyName = string\n/**\n *\n * The party ID corresponding to the wallet.\n *\n */\nexport type PartyId = string\n/**\n *\n * Filter wallets by network IDs.\n *\n */\nexport type NetworkIds = NetworkId[]\n/**\n *\n * Filter wallets by signing provider IDs.\n *\n */\nexport type SigningProviderIds = SigningProviderId[]\n/**\n *\n * Filter for the wallets to be returned.\n *\n */\nexport interface WalletFilter {\n networkIds?: NetworkIds\n signingProviderIds?: SigningProviderIds\n}\n/**\n *\n * The internal transaction identifier.\n *\n */\nexport type TransactionId = string\n/**\n *\n * The internal identifier of the pending message-signing request.\n *\n */\nexport type MessageId = string\n/**\n *\n * The signature of the message.\n *\n */\nexport type Signature = string\nexport type SignedBy = string\n/**\n *\n * The origin (dApp URL) that initiated this transaction request.\n *\n */\nexport type Origin = string\n/**\n *\n * Limit of transactions to return.\n *\n */\nexport type Limit = number\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type CursorAsString = string\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type Cursor = CursorAsString\n/**\n *\n * The public key of the party.\n *\n */\nexport type PublicKey = string\n/**\n *\n * Authentication method configured for this network\n *\n */\nexport type AuthMethod = string\n/**\n *\n * Network metadata exposed by listNetworks without sensitive auth configuration\n *\n */\nexport interface PublicNetwork {\n id: NetworkId\n name: Name\n description: Description\n synchronizerId?: SynchronizerId\n identityProviderId: IdentityProviderId\n ledgerApi: LedgerApi\n authMethod: AuthMethod\n clientId?: ClientId\n scope?: Scope\n audience?: Audience\n}\nexport type Networks = PublicNetwork[]\n/**\n *\n * The access token for the session.\n *\n */\nexport type AccessToken = string\nexport type Idps = Idp[]\n/**\n *\n * The status of the wallet.\n *\n */\nexport type WalletStatus = 'initialized' | 'allocated' | 'removed'\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type Hint = string\n/**\n *\n * The namespace of the party.\n *\n */\nexport type Namespace = string\n/**\n *\n * Unique identifier of the signed transaction given by the Signing Provider. This may not be the same as the internal txId given by the Wallet Gateway.\n *\n */\nexport type ExternalTxId = string\n/**\n *\n * The topology transactions\n *\n */\nexport type TopologyTransactions = string\n/**\n *\n * Whether the wallet is disabled. Wallets are disabled when no signing provider matches the party's namespace during sync. Disabled wallets use participant as the default signing provider.\n *\n */\nexport type Disabled = boolean\n/**\n *\n * Reason for the wallet state, e.g., 'no signing provider matched'.\n *\n */\nexport type Reason = string\nexport type PartyLevelRight = any\n/**\n *\n * The rights of the wallet.\n *\n */\nexport type Rights = PartyLevelRight[]\n/**\n *\n * Structure representing a wallet\n *\n */\nexport interface Wallet {\n primary: Primary\n partyId: PartyId\n status: WalletStatus\n hint: Hint\n publicKey: PublicKey\n namespace: Namespace\n networkId: NetworkId\n signingProviderId: SigningProviderId\n externalTxId?: ExternalTxId\n topologyTransactions?: TopologyTransactions\n disabled?: Disabled\n reason?: Reason\n rights: Rights\n}\ntype AlwaysTrue = any\n/**\n *\n * Non-disabled wallets added in this syncWallets call.\n *\n */\nexport type SyncWalletsResultAdded = Wallet[]\n/**\n *\n * Existing wallets that either got downgraded to status initialized or their rights changed in this syncWallets call.\n *\n */\nexport type SyncWalletsResultUpdated = Wallet[]\n/**\n *\n * Either wallets added in this iteration that are disabled, or existing wallet that were updated to be disabled in this syncWallets call.\n *\n */\nexport type SyncWalletsResultDisabled = Wallet[]\n/**\n *\n * Whether wallet sync is needed. Returns true if there are disabled wallets or parties on the ledger that aren't in the store.\n *\n */\nexport type WalletSyncNeeded = boolean\nexport type TxStatusSigned = 'signed'\nexport interface SignResultSigned {\n status: TxStatusSigned\n signature: Signature\n signedBy: SignedBy\n partyId: PartyId\n externalTxId?: ExternalTxId\n}\nexport type TxStatusPending = 'pending'\nexport interface SignResultPending {\n status: TxStatusPending\n partyId: PartyId\n externalTxId: ExternalTxId\n}\nexport type TxStatusRejected = 'rejected'\nexport interface SignResultRejected {\n status: TxStatusRejected\n partyId: PartyId\n externalTxId: ExternalTxId\n}\nexport type TxStatusFailed = 'failed'\nexport interface SignResultFailed {\n status: TxStatusFailed\n partyId: PartyId\n externalTxId: ExternalTxId\n}\n/**\n *\n * The status of the transaction.\n *\n */\nexport type Status = string\n/**\n *\n * The message to sign.\n *\n */\nexport type Message = string\n/**\n *\n * The timestamp when the API key was created.\n *\n */\nexport type CreatedAt = string\n/**\n *\n * The timestamp when the transaction was signed.\n *\n */\nexport type SignedAt = string\nexport interface MessageRaw {\n id: MessageId\n status: Status\n partyId: PartyId\n publicKey: PublicKey\n message: Message\n origin?: Origin\n createdAt: CreatedAt\n signedAt?: SignedAt\n signature?: Signature\n}\nexport type Messages = MessageRaw[]\nexport type UserLevelRight = any\n/**\n *\n * Structure representing the connected network session\n *\n */\nexport interface Session {\n id: Id\n origin?: Origin\n network: Network\n idp: Idp\n accessToken: AccessToken\n status: Status\n reason?: Reason\n rights: Rights\n}\nexport type Sessions = Session[]\n/**\n *\n * The unique identifier of the command associated with the transaction.\n *\n */\nexport type CommandId = string\n/**\n *\n * The transaction data corresponding to the command ID.\n *\n */\nexport type PreparedTransaction = string\n/**\n *\n * The hash of the prepared transaction.\n *\n */\nexport type PreparedTransactionHash = string\n/**\n *\n * Optional payload associated with the transaction.\n *\n */\nexport type Payload = string\nexport interface Transaction {\n id: TransactionId\n commandId: CommandId\n status: Status\n createdAt?: CreatedAt\n signedAt?: SignedAt\n preparedTransaction: PreparedTransaction\n preparedTransactionHash: PreparedTransactionHash\n payload?: Payload\n origin?: Origin\n externalTxId?: ExternalTxId\n}\nexport type Transactions = Transaction[]\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type NextCursor = string\n/**\n *\n * Number of total transactions for the user.\n *\n */\nexport type Count = number\n/**\n *\n * The unique identifier of the current user.\n *\n */\nexport type UserIdentifier = string\n/**\n *\n * Whether the current user is an admin.\n *\n */\nexport type IsAdminFlag = boolean\n/**\n *\n * The generated API key.\n *\n */\nexport type ApiKeyResult = string\nexport interface ApiKey {\n id: Id\n name: Name\n createdAt: CreatedAt\n}\n/**\n *\n * The list of API keys.\n *\n */\nexport type ApiKeys = ApiKey[]\nexport interface Key {\n id: Id\n name: Name\n publicKey: PublicKey\n}\n/**\n *\n * The list of signing provider's available keys.\n *\n */\nexport type Keys = Key[]\n/**\n *\n * Represents a null value, used in responses where no data is returned.\n *\n */\nexport type Null = null\nexport interface AddNetworkParams {\n network: Network\n}\nexport interface RemoveNetworkParams {\n networkName: NetworkName\n}\nexport interface GetNetworkParams {\n networkId: NetworkId\n}\nexport interface SelfSignedAccessTokenParams {\n networkId: NetworkId\n clientId: ClientId\n clientSecret: ClientSecret\n}\nexport interface AddIdpParams {\n idp: Idp\n}\nexport interface RemoveIdpParams {\n identityProviderId: IdentityProviderId\n}\nexport interface CreateWalletParams {\n primary?: Primary\n partyHint: PartyHint\n signingProviderId: SigningProviderId\n keyName?: KeyName\n}\nexport interface AllocatePartyForWalletParams {\n partyId: PartyId\n}\nexport interface SetPrimaryWalletParams {\n partyId: PartyId\n}\nexport interface RemoveWalletParams {\n partyId: PartyId\n}\nexport interface ListWalletsParams {\n filter?: WalletFilter\n}\nexport interface SignParams {\n transactionId: TransactionId\n partyId: PartyId\n}\nexport interface SignMessageParams {\n messageId: MessageId\n partyId?: PartyId\n}\nexport interface GetMessageToSignParams {\n messageId: MessageId\n}\nexport interface DeleteMessageToSignParams {\n messageId: MessageId\n}\nexport interface ExecuteParams {\n signature: Signature\n partyId: PartyId\n transactionId: TransactionId\n signedBy: SignedBy\n}\nexport interface AddSessionParams {\n origin: Origin\n networkId: NetworkId\n}\nexport interface GetTransactionParams {\n transactionId: TransactionId\n}\nexport interface ListTransactionsParams {\n limit?: Limit\n cursor?: Cursor\n}\nexport interface DeleteTransactionParams {\n transactionId: TransactionId\n}\nexport interface GenerateApiKeyParams {\n name: Name\n}\nexport interface RemoveApiKeyParams {\n id: Id\n}\nexport interface ListSigningProviderKeysParams {\n signingProviderId: SigningProviderId\n}\nexport interface GetWalletParams {\n partyId: PartyId\n}\nexport interface ChangeSigningProviderParams {\n signingProviderId: SigningProviderId\n partyId: PartyId\n publicKey: PublicKey\n}\nexport interface ListNetworksResult {\n networks: Networks\n}\nexport interface GetNetworkResult {\n network: Network\n}\nexport interface SelfSignedAccessTokenResult {\n accessToken: AccessToken\n}\nexport interface ListIdpsResult {\n idps: Idps\n}\nexport interface CreateWalletResult {\n wallet: Wallet\n}\nexport interface AllocatePartyForWalletResult {\n wallet: Wallet\n}\nexport interface RemovePartyResult {\n [key: string]: any\n}\n/**\n *\n * An array of wallets that match the filter criteria.\n *\n */\nexport type ListWalletsResult = Wallet[]\n/**\n *\n * Added, updated and disabled wallets as a result of the sync.\n *\n */\nexport interface SyncWalletsResult {\n added: SyncWalletsResultAdded\n updated: SyncWalletsResultUpdated\n disabled: SyncWalletsResultDisabled\n}\nexport interface IsWalletSyncNeededResult {\n walletSyncNeeded: WalletSyncNeeded\n}\nexport type SignResult =\n SignResultSigned | SignResultPending | SignResultRejected | SignResultFailed\nexport interface SignMessageResult {\n signature: Signature\n publicKey: PublicKey\n}\nexport interface GetMessageToSignResult {\n message: MessageRaw\n}\nexport interface ListMessagesToSignResult {\n messages: Messages\n}\nexport interface ExecuteResult {\n [key: string]: any\n}\n/**\n *\n * Structure representing the connected network session\n *\n */\nexport interface AddSessionResult {\n id: Id\n origin?: Origin\n network: Network\n idp: Idp\n accessToken: AccessToken\n status: Status\n reason?: Reason\n rights: Rights\n}\nexport interface ListSessionsResult {\n sessions: Sessions\n}\nexport interface GetTransactionResult {\n id: TransactionId\n commandId: CommandId\n status: Status\n createdAt?: CreatedAt\n signedAt?: SignedAt\n preparedTransaction: PreparedTransaction\n preparedTransactionHash: PreparedTransactionHash\n payload?: Payload\n origin?: Origin\n externalTxId?: ExternalTxId\n}\nexport interface ListTransactionsResult {\n transactions: Transactions\n nextCursor?: NextCursor\n count: Count\n}\nexport interface GetUserResult {\n userId: UserIdentifier\n isAdmin: IsAdminFlag\n}\nexport interface GeneratedApiKey {\n id: Id\n apiKey: ApiKeyResult\n}\nexport interface ListApiKeysResult {\n apiKeys: ApiKeys\n}\nexport interface ListSigningProviderKeysResult {\n keys: Keys\n}\nexport type GetWalletResult = Wallet | Null\n/**\n *\n * Generated! Represents an alias to any of the provided schemas\n *\n */\n\nexport type AddNetwork = (params: AddNetworkParams) => Promise<Null>\nexport type RemoveNetwork = (params: RemoveNetworkParams) => Promise<Null>\nexport type ListNetworks = () => Promise<ListNetworksResult>\nexport type GetNetwork = (params: GetNetworkParams) => Promise<GetNetworkResult>\nexport type SelfSignedAccessToken = (\n params: SelfSignedAccessTokenParams\n) => Promise<SelfSignedAccessTokenResult>\nexport type AddIdp = (params: AddIdpParams) => Promise<Null>\nexport type RemoveIdp = (params: RemoveIdpParams) => Promise<Null>\nexport type ListIdps = () => Promise<ListIdpsResult>\nexport type CreateWallet = (\n params: CreateWalletParams\n) => Promise<CreateWalletResult>\nexport type AllocatePartyForWallet = (\n params: AllocatePartyForWalletParams\n) => Promise<AllocatePartyForWalletResult>\nexport type SetPrimaryWallet = (params: SetPrimaryWalletParams) => Promise<Null>\nexport type RemoveWallet = (\n params: RemoveWalletParams\n) => Promise<RemovePartyResult>\nexport type ListWallets = (\n params: ListWalletsParams\n) => Promise<ListWalletsResult>\nexport type SyncWallets = () => Promise<SyncWalletsResult>\nexport type IsWalletSyncNeeded = () => Promise<IsWalletSyncNeededResult>\nexport type Sign = (params: SignParams) => Promise<SignResult>\nexport type SignMessage = (\n params: SignMessageParams\n) => Promise<SignMessageResult>\nexport type GetMessageToSign = (\n params: GetMessageToSignParams\n) => Promise<GetMessageToSignResult>\nexport type ListMessagesToSign = () => Promise<ListMessagesToSignResult>\nexport type DeleteMessageToSign = (\n params: DeleteMessageToSignParams\n) => Promise<Null>\nexport type Execute = (params: ExecuteParams) => Promise<ExecuteResult>\nexport type AddSession = (params: AddSessionParams) => Promise<AddSessionResult>\nexport type RemoveSession = () => Promise<Null>\nexport type ListSessions = () => Promise<ListSessionsResult>\nexport type GetTransaction = (\n params: GetTransactionParams\n) => Promise<GetTransactionResult>\nexport type ListTransactions = (\n params: ListTransactionsParams\n) => Promise<ListTransactionsResult>\nexport type DeleteTransaction = (\n params: DeleteTransactionParams\n) => Promise<Null>\nexport type GetUser = () => Promise<GetUserResult>\nexport type GenerateApiKey = (\n params: GenerateApiKeyParams\n) => Promise<GeneratedApiKey>\nexport type ListApiKeys = () => Promise<ListApiKeysResult>\nexport type RemoveApiKey = (params: RemoveApiKeyParams) => Promise<Null>\nexport type ListSigningProviderKeys = (\n params: ListSigningProviderKeysParams\n) => Promise<ListSigningProviderKeysResult>\nexport type GetWallet = (params: GetWalletParams) => Promise<GetWalletResult>\nexport type ChangeSigningProvider = (\n params: ChangeSigningProviderParams\n) => Promise<Null>\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\ntype Params<T> = T extends (...args: infer A) => any\n ? A extends []\n ? never\n : A[0]\n : never\ntype Result<T> = T extends (...args: any[]) => Promise<infer R> ? R : never\n\nexport type RpcTypes = {\n addNetwork: {\n params: Params<AddNetwork>\n result: Result<AddNetwork>\n }\n\n removeNetwork: {\n params: Params<RemoveNetwork>\n result: Result<RemoveNetwork>\n }\n\n listNetworks: {\n params: Params<ListNetworks>\n result: Result<ListNetworks>\n }\n\n getNetwork: {\n params: Params<GetNetwork>\n result: Result<GetNetwork>\n }\n\n selfSignedAccessToken: {\n params: Params<SelfSignedAccessToken>\n result: Result<SelfSignedAccessToken>\n }\n\n addIdp: {\n params: Params<AddIdp>\n result: Result<AddIdp>\n }\n\n removeIdp: {\n params: Params<RemoveIdp>\n result: Result<RemoveIdp>\n }\n\n listIdps: {\n params: Params<ListIdps>\n result: Result<ListIdps>\n }\n\n createWallet: {\n params: Params<CreateWallet>\n result: Result<CreateWallet>\n }\n\n allocatePartyForWallet: {\n params: Params<AllocatePartyForWallet>\n result: Result<AllocatePartyForWallet>\n }\n\n setPrimaryWallet: {\n params: Params<SetPrimaryWallet>\n result: Result<SetPrimaryWallet>\n }\n\n removeWallet: {\n params: Params<RemoveWallet>\n result: Result<RemoveWallet>\n }\n\n listWallets: {\n params: Params<ListWallets>\n result: Result<ListWallets>\n }\n\n syncWallets: {\n params: Params<SyncWallets>\n result: Result<SyncWallets>\n }\n\n isWalletSyncNeeded: {\n params: Params<IsWalletSyncNeeded>\n result: Result<IsWalletSyncNeeded>\n }\n\n sign: {\n params: Params<Sign>\n result: Result<Sign>\n }\n\n signMessage: {\n params: Params<SignMessage>\n result: Result<SignMessage>\n }\n\n getMessageToSign: {\n params: Params<GetMessageToSign>\n result: Result<GetMessageToSign>\n }\n\n listMessagesToSign: {\n params: Params<ListMessagesToSign>\n result: Result<ListMessagesToSign>\n }\n\n deleteMessageToSign: {\n params: Params<DeleteMessageToSign>\n result: Result<DeleteMessageToSign>\n }\n\n execute: {\n params: Params<Execute>\n result: Result<Execute>\n }\n\n addSession: {\n params: Params<AddSession>\n result: Result<AddSession>\n }\n\n removeSession: {\n params: Params<RemoveSession>\n result: Result<RemoveSession>\n }\n\n listSessions: {\n params: Params<ListSessions>\n result: Result<ListSessions>\n }\n\n getTransaction: {\n params: Params<GetTransaction>\n result: Result<GetTransaction>\n }\n\n listTransactions: {\n params: Params<ListTransactions>\n result: Result<ListTransactions>\n }\n\n deleteTransaction: {\n params: Params<DeleteTransaction>\n result: Result<DeleteTransaction>\n }\n\n getUser: {\n params: Params<GetUser>\n result: Result<GetUser>\n }\n\n generateApiKey: {\n params: Params<GenerateApiKey>\n result: Result<GenerateApiKey>\n }\n\n listApiKeys: {\n params: Params<ListApiKeys>\n result: Result<ListApiKeys>\n }\n\n removeApiKey: {\n params: Params<RemoveApiKey>\n result: Result<RemoveApiKey>\n }\n\n listSigningProviderKeys: {\n params: Params<ListSigningProviderKeys>\n result: Result<ListSigningProviderKeys>\n }\n\n getWallet: {\n params: Params<GetWallet>\n result: Result<GetWallet>\n }\n\n changeSigningProvider: {\n params: Params<ChangeSigningProvider>\n result: Result<ChangeSigningProvider>\n }\n}\n\nexport class WalletJSONRPCUserAPI {\n public transport: RpcTransport\n\n constructor(transport: RpcTransport) {\n this.transport = transport\n }\n\n public async request<M extends keyof RpcTypes>(\n args: RequestArgs<RpcTypes, M>\n ): Promise<RpcTypes[M]['result']> {\n const response = await this.transport.submit(args as RequestPayload)\n\n if ('error' in response) {\n throw new Error(\n 'RPC error: ' +\n response.error.code +\n ' - ' +\n response.error.message\n )\n } else {\n return response.result as RpcTypes[M]['result']\n }\n }\n}\nexport default WalletJSONRPCUserAPI\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAs7BA,IAAa,uBAAb,MAAkC;CAG9B,YAAY,WAAyB;EAF9B,gBAAA,MAAA,aAAA,KAAA,CAAA;EAGH,KAAK,YAAY;CACrB;CAEA,MAAa,QACT,MAC8B;EAC9B,MAAM,WAAW,MAAM,KAAK,UAAU,OAAO,IAAsB;EAEnE,IAAI,WAAW,UACX,MAAM,IAAI,MACN,gBACI,SAAS,MAAM,OACf,QACA,SAAS,MAAM,OACvB;OAEA,OAAO,SAAS;CAExB;AACJ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,10 @@ import { RequestArgs } from '@canton-network/core-types';
|
|
|
2
2
|
import { RpcTransport } from '@canton-network/core-rpc-transport';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* The network ID the wallet corresponds to.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
export type NetworkId = string;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* The name of the API key.
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
9
|
export type Name = string;
|
|
15
10
|
/**
|
|
16
11
|
*
|
|
@@ -82,11 +77,6 @@ export interface Network {
|
|
|
82
77
|
*
|
|
83
78
|
*/
|
|
84
79
|
export type NetworkName = string;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* The unique identifier of the API key.
|
|
88
|
-
*
|
|
89
|
-
*/
|
|
90
80
|
export type Id = string;
|
|
91
81
|
/**
|
|
92
82
|
*
|
|
@@ -129,10 +119,15 @@ export type PartyHint = string;
|
|
|
129
119
|
*
|
|
130
120
|
*/
|
|
131
121
|
export type SigningProviderId = string;
|
|
132
|
-
export type VaultName = string;
|
|
133
122
|
/**
|
|
134
123
|
*
|
|
135
|
-
*
|
|
124
|
+
* Name of signing provider's key to use for getting keys.
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
export type KeyName = string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* The party ID corresponding to the wallet.
|
|
136
131
|
*
|
|
137
132
|
*/
|
|
138
133
|
export type PartyId = string;
|
|
@@ -200,6 +195,12 @@ export type CursorAsString = string;
|
|
|
200
195
|
*
|
|
201
196
|
*/
|
|
202
197
|
export type Cursor = CursorAsString;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* The public key of the party.
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
203
|
+
export type PublicKey = string;
|
|
203
204
|
/**
|
|
204
205
|
*
|
|
205
206
|
* Authentication method configured for this network
|
|
@@ -243,12 +244,6 @@ export type WalletStatus = 'initialized' | 'allocated' | 'removed';
|
|
|
243
244
|
*
|
|
244
245
|
*/
|
|
245
246
|
export type Hint = string;
|
|
246
|
-
/**
|
|
247
|
-
*
|
|
248
|
-
* The public key of the party.
|
|
249
|
-
*
|
|
250
|
-
*/
|
|
251
|
-
export type PublicKey = string;
|
|
252
247
|
/**
|
|
253
248
|
*
|
|
254
249
|
* The namespace of the party.
|
|
@@ -257,7 +252,7 @@ export type PublicKey = string;
|
|
|
257
252
|
export type Namespace = string;
|
|
258
253
|
/**
|
|
259
254
|
*
|
|
260
|
-
*
|
|
255
|
+
* Unique identifier of the signed transaction given by the Signing Provider. This may not be the same as the internal txId given by the Wallet Gateway.
|
|
261
256
|
*
|
|
262
257
|
*/
|
|
263
258
|
export type ExternalTxId = string;
|
|
@@ -275,17 +270,17 @@ export type TopologyTransactions = string;
|
|
|
275
270
|
export type Disabled = boolean;
|
|
276
271
|
/**
|
|
277
272
|
*
|
|
278
|
-
*
|
|
273
|
+
* Reason for the wallet state, e.g., 'no signing provider matched'.
|
|
279
274
|
*
|
|
280
275
|
*/
|
|
281
276
|
export type Reason = string;
|
|
282
277
|
export type PartyLevelRight = any;
|
|
283
278
|
/**
|
|
284
279
|
*
|
|
285
|
-
* The rights of the
|
|
280
|
+
* The rights of the wallet.
|
|
286
281
|
*
|
|
287
282
|
*/
|
|
288
|
-
export type Rights =
|
|
283
|
+
export type Rights = PartyLevelRight[];
|
|
289
284
|
/**
|
|
290
285
|
*
|
|
291
286
|
* Structure representing a wallet
|
|
@@ -487,12 +482,23 @@ export interface ApiKey {
|
|
|
487
482
|
*
|
|
488
483
|
*/
|
|
489
484
|
export type ApiKeys = ApiKey[];
|
|
485
|
+
export interface Key {
|
|
486
|
+
id: Id;
|
|
487
|
+
name: Name;
|
|
488
|
+
publicKey: PublicKey;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
*
|
|
492
|
+
* The list of signing provider's available keys.
|
|
493
|
+
*
|
|
494
|
+
*/
|
|
495
|
+
export type Keys = Key[];
|
|
490
496
|
/**
|
|
491
497
|
*
|
|
492
|
-
*
|
|
498
|
+
* Represents a null value, used in responses where no data is returned.
|
|
493
499
|
*
|
|
494
500
|
*/
|
|
495
|
-
export type
|
|
501
|
+
export type Null = null;
|
|
496
502
|
export interface AddNetworkParams {
|
|
497
503
|
network: Network;
|
|
498
504
|
}
|
|
@@ -505,6 +511,7 @@ export interface GetNetworkParams {
|
|
|
505
511
|
export interface SelfSignedAccessTokenParams {
|
|
506
512
|
networkId: NetworkId;
|
|
507
513
|
clientId: ClientId;
|
|
514
|
+
clientSecret: ClientSecret;
|
|
508
515
|
}
|
|
509
516
|
export interface AddIdpParams {
|
|
510
517
|
idp: Idp;
|
|
@@ -516,7 +523,7 @@ export interface CreateWalletParams {
|
|
|
516
523
|
primary?: Primary;
|
|
517
524
|
partyHint: PartyHint;
|
|
518
525
|
signingProviderId: SigningProviderId;
|
|
519
|
-
|
|
526
|
+
keyName?: KeyName;
|
|
520
527
|
}
|
|
521
528
|
export interface AllocatePartyForWalletParams {
|
|
522
529
|
partyId: PartyId;
|
|
@@ -570,15 +577,17 @@ export interface GenerateApiKeyParams {
|
|
|
570
577
|
export interface RemoveApiKeyParams {
|
|
571
578
|
id: Id;
|
|
572
579
|
}
|
|
573
|
-
export interface
|
|
580
|
+
export interface ListSigningProviderKeysParams {
|
|
574
581
|
signingProviderId: SigningProviderId;
|
|
575
582
|
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
583
|
+
export interface GetWalletParams {
|
|
584
|
+
partyId: PartyId;
|
|
585
|
+
}
|
|
586
|
+
export interface ChangeSigningProviderParams {
|
|
587
|
+
signingProviderId: SigningProviderId;
|
|
588
|
+
partyId: PartyId;
|
|
589
|
+
publicKey: PublicKey;
|
|
590
|
+
}
|
|
582
591
|
export interface ListNetworksResult {
|
|
583
592
|
networks: Networks;
|
|
584
593
|
}
|
|
@@ -679,9 +688,10 @@ export interface GeneratedApiKey {
|
|
|
679
688
|
export interface ListApiKeysResult {
|
|
680
689
|
apiKeys: ApiKeys;
|
|
681
690
|
}
|
|
682
|
-
export interface
|
|
683
|
-
|
|
691
|
+
export interface ListSigningProviderKeysResult {
|
|
692
|
+
keys: Keys;
|
|
684
693
|
}
|
|
694
|
+
export type GetWalletResult = Wallet | Null;
|
|
685
695
|
/**
|
|
686
696
|
*
|
|
687
697
|
* Generated! Represents an alias to any of the provided schemas
|
|
@@ -718,7 +728,9 @@ export type GetUser = () => Promise<GetUserResult>;
|
|
|
718
728
|
export type GenerateApiKey = (params: GenerateApiKeyParams) => Promise<GeneratedApiKey>;
|
|
719
729
|
export type ListApiKeys = () => Promise<ListApiKeysResult>;
|
|
720
730
|
export type RemoveApiKey = (params: RemoveApiKeyParams) => Promise<Null>;
|
|
721
|
-
export type
|
|
731
|
+
export type ListSigningProviderKeys = (params: ListSigningProviderKeysParams) => Promise<ListSigningProviderKeysResult>;
|
|
732
|
+
export type GetWallet = (params: GetWalletParams) => Promise<GetWalletResult>;
|
|
733
|
+
export type ChangeSigningProvider = (params: ChangeSigningProviderParams) => Promise<Null>;
|
|
722
734
|
type Params<T> = T extends (...args: infer A) => any ? A extends [] ? never : A[0] : never;
|
|
723
735
|
type Result<T> = T extends (...args: any[]) => Promise<infer R> ? R : never;
|
|
724
736
|
export type RpcTypes = {
|
|
@@ -846,9 +858,17 @@ export type RpcTypes = {
|
|
|
846
858
|
params: Params<RemoveApiKey>;
|
|
847
859
|
result: Result<RemoveApiKey>;
|
|
848
860
|
};
|
|
849
|
-
|
|
850
|
-
params: Params<
|
|
851
|
-
result: Result<
|
|
861
|
+
listSigningProviderKeys: {
|
|
862
|
+
params: Params<ListSigningProviderKeys>;
|
|
863
|
+
result: Result<ListSigningProviderKeys>;
|
|
864
|
+
};
|
|
865
|
+
getWallet: {
|
|
866
|
+
params: Params<GetWallet>;
|
|
867
|
+
result: Result<GetWallet>;
|
|
868
|
+
};
|
|
869
|
+
changeSigningProvider: {
|
|
870
|
+
params: Params<ChangeSigningProvider>;
|
|
871
|
+
result: Result<ChangeSigningProvider>;
|
|
852
872
|
};
|
|
853
873
|
};
|
|
854
874
|
export declare class WalletJSONRPCUserAPI {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAkB,MAAM,4BAA4B,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AAGjE;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAC9B;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAA;AACzB;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAChC;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAA;AACnC;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAA;AACvC,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAC3B,MAAM,MAAM,KAAK,GAAG,MAAM,CAAA;AAC1B,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAA;AAC7B,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AACjC;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAC3B,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAA;AAC7B;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,EAAE,QAAQ,CAAA;IAClB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,QAAQ,CAAA;CACrB;AAC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,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,GAC/B,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;CAcpC;AACD,eAAe,oBAAoB,CAAA"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Code generated by @open-rpc/generator DO NOT EDIT.\nimport _ from 'lodash'\n\nimport { RequestArgs, RequestPayload } from '@canton-network/core-types'\nimport { RpcTransport } from '@canton-network/core-rpc-transport'\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/**\n *\n * Network ID\n *\n */\nexport type NetworkId = string\n/**\n *\n * The name of the API key.\n *\n */\nexport type Name = string\n/**\n *\n * Description of network\n *\n */\nexport type Description = string\n/**\n *\n * Synchronizer ID\n *\n */\nexport type SynchronizerId = string\n/**\n *\n * Identity Provider ID\n *\n */\nexport type IdentityProviderId = string\nexport type Method = string\nexport type Scope = string\nexport type ClientId = string\nexport type ClientSecret = string\n/**\n *\n * Issuer of identity provider\n *\n */\nexport type Issuer = string\nexport type Audience = string\n/**\n *\n * Represents the type of auth for a specified network\n *\n */\nexport interface Auth {\n method: Method\n scope: Scope\n clientId: ClientId\n clientSecret?: ClientSecret\n issuer?: Issuer\n audience: Audience\n}\n/**\n *\n * Ledger api url\n *\n */\nexport type LedgerApi = string\n/**\n *\n * Connected network metadata. Privileged credentials (adminAuth, serviceAccountAuth) are included only for the admin user.\n *\n */\nexport interface Network {\n id: NetworkId\n name: Name\n description: Description\n synchronizerId?: SynchronizerId\n identityProviderId: IdentityProviderId\n auth: Auth\n adminAuth?: Auth\n serviceAccountAuth?: Auth\n ledgerApi: LedgerApi\n}\n/**\n *\n * Ledger api url\n *\n */\nexport type NetworkName = string\n/**\n *\n * The unique identifier of the API key.\n *\n */\nexport type Id = string\n/**\n *\n * Type of identity provider (oauth / self_signed)\n *\n */\nexport type Type = any\n/**\n *\n * The configuration URL for the identity provider.\n *\n */\nexport type ConfigUrl = string\n/**\n *\n * Structure representing the Identity Providers\n *\n */\nexport interface Idp {\n id: Id\n type: Type\n issuer: Issuer\n configUrl?: ConfigUrl\n}\n/**\n *\n * Set as primary wallet for dApp usage.\n *\n */\nexport type Primary = boolean\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type PartyHint = string\n/**\n *\n * The signing provider ID the wallet corresponds to.\n *\n */\nexport type SigningProviderId = string\nexport type VaultName = string\n/**\n *\n * The party id of the wallet to be removed.\n *\n */\nexport type PartyId = string\n/**\n *\n * Filter wallets by network IDs.\n *\n */\nexport type NetworkIds = NetworkId[]\n/**\n *\n * Filter wallets by signing provider IDs.\n *\n */\nexport type SigningProviderIds = SigningProviderId[]\n/**\n *\n * Filter for the wallets to be returned.\n *\n */\nexport interface WalletFilter {\n networkIds?: NetworkIds\n signingProviderIds?: SigningProviderIds\n}\n/**\n *\n * The internal transaction identifier.\n *\n */\nexport type TransactionId = string\n/**\n *\n * The internal identifier of the pending message-signing request.\n *\n */\nexport type MessageId = string\n/**\n *\n * The signature of the message.\n *\n */\nexport type Signature = string\nexport type SignedBy = string\n/**\n *\n * The origin (dApp URL) that initiated this transaction request.\n *\n */\nexport type Origin = string\n/**\n *\n * Limit of transactions to return.\n *\n */\nexport type Limit = number\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type CursorAsString = string\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type Cursor = CursorAsString\n/**\n *\n * Authentication method configured for this network\n *\n */\nexport type AuthMethod = string\n/**\n *\n * Network metadata exposed by listNetworks without sensitive auth configuration\n *\n */\nexport interface PublicNetwork {\n id: NetworkId\n name: Name\n description: Description\n synchronizerId?: SynchronizerId\n identityProviderId: IdentityProviderId\n ledgerApi: LedgerApi\n authMethod: AuthMethod\n clientId?: ClientId\n scope?: Scope\n audience?: Audience\n}\nexport type Networks = PublicNetwork[]\n/**\n *\n * The access token for the session.\n *\n */\nexport type AccessToken = string\nexport type Idps = Idp[]\n/**\n *\n * The status of the wallet.\n *\n */\nexport type WalletStatus = 'initialized' | 'allocated' | 'removed'\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type Hint = string\n/**\n *\n * The public key of the party.\n *\n */\nexport type PublicKey = string\n/**\n *\n * The namespace of the party.\n *\n */\nexport type Namespace = string\n/**\n *\n * External transaction ID from signing provider.\n *\n */\nexport type ExternalTxId = string\n/**\n *\n * The topology transactions\n *\n */\nexport type TopologyTransactions = string\n/**\n *\n * Whether the wallet is disabled. Wallets are disabled when no signing provider matches the party's namespace during sync. Disabled wallets use participant as the default signing provider.\n *\n */\nexport type Disabled = boolean\n/**\n *\n * The reason for the current status.\n *\n */\nexport type Reason = string\nexport type PartyLevelRight = any\n/**\n *\n * The rights of the user for the network.\n *\n */\nexport type Rights = UserLevelRight[]\n/**\n *\n * Structure representing a wallet\n *\n */\nexport interface Wallet {\n primary: Primary\n partyId: PartyId\n status: WalletStatus\n hint: Hint\n publicKey: PublicKey\n namespace: Namespace\n networkId: NetworkId\n signingProviderId: SigningProviderId\n externalTxId?: ExternalTxId\n topologyTransactions?: TopologyTransactions\n disabled?: Disabled\n reason?: Reason\n rights: Rights\n}\ntype AlwaysTrue = any\n/**\n *\n * Non-disabled wallets added in this syncWallets call.\n *\n */\nexport type SyncWalletsResultAdded = Wallet[]\n/**\n *\n * Existing wallets that either got downgraded to status initialized or their rights changed in this syncWallets call.\n *\n */\nexport type SyncWalletsResultUpdated = Wallet[]\n/**\n *\n * Either wallets added in this iteration that are disabled, or existing wallet that were updated to be disabled in this syncWallets call.\n *\n */\nexport type SyncWalletsResultDisabled = Wallet[]\n/**\n *\n * Whether wallet sync is needed. Returns true if there are disabled wallets or parties on the ledger that aren't in the store.\n *\n */\nexport type WalletSyncNeeded = boolean\nexport type TxStatusSigned = 'signed'\nexport interface SignResultSigned {\n status: TxStatusSigned\n signature: Signature\n signedBy: SignedBy\n partyId: PartyId\n externalTxId?: ExternalTxId\n}\nexport type TxStatusPending = 'pending'\nexport interface SignResultPending {\n status: TxStatusPending\n partyId: PartyId\n externalTxId: ExternalTxId\n}\nexport type TxStatusRejected = 'rejected'\nexport interface SignResultRejected {\n status: TxStatusRejected\n partyId: PartyId\n externalTxId: ExternalTxId\n}\nexport type TxStatusFailed = 'failed'\nexport interface SignResultFailed {\n status: TxStatusFailed\n partyId: PartyId\n externalTxId: ExternalTxId\n}\n/**\n *\n * The status of the transaction.\n *\n */\nexport type Status = string\n/**\n *\n * The message to sign.\n *\n */\nexport type Message = string\n/**\n *\n * The timestamp when the API key was created.\n *\n */\nexport type CreatedAt = string\n/**\n *\n * The timestamp when the transaction was signed.\n *\n */\nexport type SignedAt = string\nexport interface MessageRaw {\n id: MessageId\n status: Status\n partyId: PartyId\n publicKey: PublicKey\n message: Message\n origin?: Origin\n createdAt: CreatedAt\n signedAt?: SignedAt\n signature?: Signature\n}\nexport type Messages = MessageRaw[]\nexport type UserLevelRight = any\n/**\n *\n * Structure representing the connected network session\n *\n */\nexport interface Session {\n id: Id\n origin?: Origin\n network: Network\n idp: Idp\n accessToken: AccessToken\n status: Status\n reason?: Reason\n rights: Rights\n}\nexport type Sessions = Session[]\n/**\n *\n * The unique identifier of the command associated with the transaction.\n *\n */\nexport type CommandId = string\n/**\n *\n * The transaction data corresponding to the command ID.\n *\n */\nexport type PreparedTransaction = string\n/**\n *\n * The hash of the prepared transaction.\n *\n */\nexport type PreparedTransactionHash = string\n/**\n *\n * Optional payload associated with the transaction.\n *\n */\nexport type Payload = string\nexport interface Transaction {\n id: TransactionId\n commandId: CommandId\n status: Status\n createdAt?: CreatedAt\n signedAt?: SignedAt\n preparedTransaction: PreparedTransaction\n preparedTransactionHash: PreparedTransactionHash\n payload?: Payload\n origin?: Origin\n externalTxId?: ExternalTxId\n}\nexport type Transactions = Transaction[]\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type NextCursor = string\n/**\n *\n * Number of total transactions for the user.\n *\n */\nexport type Count = number\n/**\n *\n * The unique identifier of the current user.\n *\n */\nexport type UserIdentifier = string\n/**\n *\n * Whether the current user is an admin.\n *\n */\nexport type IsAdminFlag = boolean\n/**\n *\n * The generated API key.\n *\n */\nexport type ApiKeyResult = string\nexport interface ApiKey {\n id: Id\n name: Name\n createdAt: CreatedAt\n}\n/**\n *\n * The list of API keys.\n *\n */\nexport type ApiKeys = ApiKey[]\n/**\n *\n * The list of signing provider's available vault names.\n *\n */\nexport type Vaults = VaultName[]\nexport interface AddNetworkParams {\n network: Network\n}\nexport interface RemoveNetworkParams {\n networkName: NetworkName\n}\nexport interface GetNetworkParams {\n networkId: NetworkId\n}\nexport interface SelfSignedAccessTokenParams {\n networkId: NetworkId\n clientId: ClientId\n}\nexport interface AddIdpParams {\n idp: Idp\n}\nexport interface RemoveIdpParams {\n identityProviderId: IdentityProviderId\n}\nexport interface CreateWalletParams {\n primary?: Primary\n partyHint: PartyHint\n signingProviderId: SigningProviderId\n vaultName?: VaultName\n}\nexport interface AllocatePartyForWalletParams {\n partyId: PartyId\n}\nexport interface SetPrimaryWalletParams {\n partyId: PartyId\n}\nexport interface RemoveWalletParams {\n partyId: PartyId\n}\nexport interface ListWalletsParams {\n filter?: WalletFilter\n}\nexport interface SignParams {\n transactionId: TransactionId\n partyId: PartyId\n}\nexport interface SignMessageParams {\n messageId: MessageId\n partyId?: PartyId\n}\nexport interface GetMessageToSignParams {\n messageId: MessageId\n}\nexport interface DeleteMessageToSignParams {\n messageId: MessageId\n}\nexport interface ExecuteParams {\n signature: Signature\n partyId: PartyId\n transactionId: TransactionId\n signedBy: SignedBy\n}\nexport interface AddSessionParams {\n origin: Origin\n networkId: NetworkId\n}\nexport interface GetTransactionParams {\n transactionId: TransactionId\n}\nexport interface ListTransactionsParams {\n limit?: Limit\n cursor?: Cursor\n}\nexport interface DeleteTransactionParams {\n transactionId: TransactionId\n}\nexport interface GenerateApiKeyParams {\n name: Name\n}\nexport interface RemoveApiKeyParams {\n id: Id\n}\nexport interface ListSigningProviderVaultsParams {\n signingProviderId: SigningProviderId\n}\n/**\n *\n * Represents a null value, used in responses where no data is returned.\n *\n */\nexport type Null = null\nexport interface ListNetworksResult {\n networks: Networks\n}\nexport interface GetNetworkResult {\n network: Network\n}\nexport interface SelfSignedAccessTokenResult {\n accessToken: AccessToken\n}\nexport interface ListIdpsResult {\n idps: Idps\n}\nexport interface CreateWalletResult {\n wallet: Wallet\n}\nexport interface AllocatePartyForWalletResult {\n wallet: Wallet\n}\nexport interface RemovePartyResult {\n [key: string]: any\n}\n/**\n *\n * An array of wallets that match the filter criteria.\n *\n */\nexport type ListWalletsResult = Wallet[]\n/**\n *\n * Added, updated and disabled wallets as a result of the sync.\n *\n */\nexport interface SyncWalletsResult {\n added: SyncWalletsResultAdded\n updated: SyncWalletsResultUpdated\n disabled: SyncWalletsResultDisabled\n}\nexport interface IsWalletSyncNeededResult {\n walletSyncNeeded: WalletSyncNeeded\n}\nexport type SignResult =\n SignResultSigned | SignResultPending | SignResultRejected | SignResultFailed\nexport interface SignMessageResult {\n signature: Signature\n publicKey: PublicKey\n}\nexport interface GetMessageToSignResult {\n message: MessageRaw\n}\nexport interface ListMessagesToSignResult {\n messages: Messages\n}\nexport interface ExecuteResult {\n [key: string]: any\n}\n/**\n *\n * Structure representing the connected network session\n *\n */\nexport interface AddSessionResult {\n id: Id\n origin?: Origin\n network: Network\n idp: Idp\n accessToken: AccessToken\n status: Status\n reason?: Reason\n rights: Rights\n}\nexport interface ListSessionsResult {\n sessions: Sessions\n}\nexport interface GetTransactionResult {\n id: TransactionId\n commandId: CommandId\n status: Status\n createdAt?: CreatedAt\n signedAt?: SignedAt\n preparedTransaction: PreparedTransaction\n preparedTransactionHash: PreparedTransactionHash\n payload?: Payload\n origin?: Origin\n externalTxId?: ExternalTxId\n}\nexport interface ListTransactionsResult {\n transactions: Transactions\n nextCursor?: NextCursor\n count: Count\n}\nexport interface GetUserResult {\n userId: UserIdentifier\n isAdmin: IsAdminFlag\n}\nexport interface GeneratedApiKey {\n id: Id\n apiKey: ApiKeyResult\n}\nexport interface ListApiKeysResult {\n apiKeys: ApiKeys\n}\nexport interface ListSigningProviderVaultsResult {\n vaults: Vaults\n}\n/**\n *\n * Generated! Represents an alias to any of the provided schemas\n *\n */\n\nexport type AddNetwork = (params: AddNetworkParams) => Promise<Null>\nexport type RemoveNetwork = (params: RemoveNetworkParams) => Promise<Null>\nexport type ListNetworks = () => Promise<ListNetworksResult>\nexport type GetNetwork = (params: GetNetworkParams) => Promise<GetNetworkResult>\nexport type SelfSignedAccessToken = (\n params: SelfSignedAccessTokenParams\n) => Promise<SelfSignedAccessTokenResult>\nexport type AddIdp = (params: AddIdpParams) => Promise<Null>\nexport type RemoveIdp = (params: RemoveIdpParams) => Promise<Null>\nexport type ListIdps = () => Promise<ListIdpsResult>\nexport type CreateWallet = (\n params: CreateWalletParams\n) => Promise<CreateWalletResult>\nexport type AllocatePartyForWallet = (\n params: AllocatePartyForWalletParams\n) => Promise<AllocatePartyForWalletResult>\nexport type SetPrimaryWallet = (params: SetPrimaryWalletParams) => Promise<Null>\nexport type RemoveWallet = (\n params: RemoveWalletParams\n) => Promise<RemovePartyResult>\nexport type ListWallets = (\n params: ListWalletsParams\n) => Promise<ListWalletsResult>\nexport type SyncWallets = () => Promise<SyncWalletsResult>\nexport type IsWalletSyncNeeded = () => Promise<IsWalletSyncNeededResult>\nexport type Sign = (params: SignParams) => Promise<SignResult>\nexport type SignMessage = (\n params: SignMessageParams\n) => Promise<SignMessageResult>\nexport type GetMessageToSign = (\n params: GetMessageToSignParams\n) => Promise<GetMessageToSignResult>\nexport type ListMessagesToSign = () => Promise<ListMessagesToSignResult>\nexport type DeleteMessageToSign = (\n params: DeleteMessageToSignParams\n) => Promise<Null>\nexport type Execute = (params: ExecuteParams) => Promise<ExecuteResult>\nexport type AddSession = (params: AddSessionParams) => Promise<AddSessionResult>\nexport type RemoveSession = () => Promise<Null>\nexport type ListSessions = () => Promise<ListSessionsResult>\nexport type GetTransaction = (\n params: GetTransactionParams\n) => Promise<GetTransactionResult>\nexport type ListTransactions = (\n params: ListTransactionsParams\n) => Promise<ListTransactionsResult>\nexport type DeleteTransaction = (\n params: DeleteTransactionParams\n) => Promise<Null>\nexport type GetUser = () => Promise<GetUserResult>\nexport type GenerateApiKey = (\n params: GenerateApiKeyParams\n) => Promise<GeneratedApiKey>\nexport type ListApiKeys = () => Promise<ListApiKeysResult>\nexport type RemoveApiKey = (params: RemoveApiKeyParams) => Promise<Null>\nexport type ListSigningProviderVaults = (\n params: ListSigningProviderVaultsParams\n) => Promise<ListSigningProviderVaultsResult>\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\ntype Params<T> = T extends (...args: infer A) => any\n ? A extends []\n ? never\n : A[0]\n : never\ntype Result<T> = T extends (...args: any[]) => Promise<infer R> ? R : never\n\nexport type RpcTypes = {\n addNetwork: {\n params: Params<AddNetwork>\n result: Result<AddNetwork>\n }\n\n removeNetwork: {\n params: Params<RemoveNetwork>\n result: Result<RemoveNetwork>\n }\n\n listNetworks: {\n params: Params<ListNetworks>\n result: Result<ListNetworks>\n }\n\n getNetwork: {\n params: Params<GetNetwork>\n result: Result<GetNetwork>\n }\n\n selfSignedAccessToken: {\n params: Params<SelfSignedAccessToken>\n result: Result<SelfSignedAccessToken>\n }\n\n addIdp: {\n params: Params<AddIdp>\n result: Result<AddIdp>\n }\n\n removeIdp: {\n params: Params<RemoveIdp>\n result: Result<RemoveIdp>\n }\n\n listIdps: {\n params: Params<ListIdps>\n result: Result<ListIdps>\n }\n\n createWallet: {\n params: Params<CreateWallet>\n result: Result<CreateWallet>\n }\n\n allocatePartyForWallet: {\n params: Params<AllocatePartyForWallet>\n result: Result<AllocatePartyForWallet>\n }\n\n setPrimaryWallet: {\n params: Params<SetPrimaryWallet>\n result: Result<SetPrimaryWallet>\n }\n\n removeWallet: {\n params: Params<RemoveWallet>\n result: Result<RemoveWallet>\n }\n\n listWallets: {\n params: Params<ListWallets>\n result: Result<ListWallets>\n }\n\n syncWallets: {\n params: Params<SyncWallets>\n result: Result<SyncWallets>\n }\n\n isWalletSyncNeeded: {\n params: Params<IsWalletSyncNeeded>\n result: Result<IsWalletSyncNeeded>\n }\n\n sign: {\n params: Params<Sign>\n result: Result<Sign>\n }\n\n signMessage: {\n params: Params<SignMessage>\n result: Result<SignMessage>\n }\n\n getMessageToSign: {\n params: Params<GetMessageToSign>\n result: Result<GetMessageToSign>\n }\n\n listMessagesToSign: {\n params: Params<ListMessagesToSign>\n result: Result<ListMessagesToSign>\n }\n\n deleteMessageToSign: {\n params: Params<DeleteMessageToSign>\n result: Result<DeleteMessageToSign>\n }\n\n execute: {\n params: Params<Execute>\n result: Result<Execute>\n }\n\n addSession: {\n params: Params<AddSession>\n result: Result<AddSession>\n }\n\n removeSession: {\n params: Params<RemoveSession>\n result: Result<RemoveSession>\n }\n\n listSessions: {\n params: Params<ListSessions>\n result: Result<ListSessions>\n }\n\n getTransaction: {\n params: Params<GetTransaction>\n result: Result<GetTransaction>\n }\n\n listTransactions: {\n params: Params<ListTransactions>\n result: Result<ListTransactions>\n }\n\n deleteTransaction: {\n params: Params<DeleteTransaction>\n result: Result<DeleteTransaction>\n }\n\n getUser: {\n params: Params<GetUser>\n result: Result<GetUser>\n }\n\n generateApiKey: {\n params: Params<GenerateApiKey>\n result: Result<GenerateApiKey>\n }\n\n listApiKeys: {\n params: Params<ListApiKeys>\n result: Result<ListApiKeys>\n }\n\n removeApiKey: {\n params: Params<RemoveApiKey>\n result: Result<RemoveApiKey>\n }\n\n listSigningProviderVaults: {\n params: Params<ListSigningProviderVaults>\n result: Result<ListSigningProviderVaults>\n }\n}\n\nexport class WalletJSONRPCUserAPI {\n public transport: RpcTransport\n\n constructor(transport: RpcTransport) {\n this.transport = transport\n }\n\n public async request<M extends keyof RpcTypes>(\n args: RequestArgs<RpcTypes, M>\n ): Promise<RpcTypes[M]['result']> {\n const response = await this.transport.submit(args as RequestPayload)\n\n if ('error' in response) {\n throw new Error(\n 'RPC error: ' +\n response.error.code +\n ' - ' +\n response.error.message\n )\n } else {\n return response.result as RpcTypes[M]['result']\n }\n }\n}\nexport default WalletJSONRPCUserAPI\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA85BA,IAAa,uBAAb,MAAkC;CAG9B,YAAY,WAAyB;EAF9B,gBAAA,MAAA,aAAA,KAAA,CAAA;EAGH,KAAK,YAAY;CACrB;CAEA,MAAa,QACT,MAC8B;EAC9B,MAAM,WAAW,MAAM,KAAK,UAAU,OAAO,IAAsB;EAEnE,IAAI,WAAW,UACX,MAAM,IAAI,MACN,gBACI,SAAS,MAAM,OACf,QACA,SAAS,MAAM,OACvB;OAEA,OAAO,SAAS;CAExB;AACJ"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Code generated by @open-rpc/generator DO NOT EDIT.\nimport _ from 'lodash'\n\nimport { RequestArgs, RequestPayload } from '@canton-network/core-types'\nimport { RpcTransport } from '@canton-network/core-rpc-transport'\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/**\n *\n * The network ID the wallet corresponds to.\n *\n */\nexport type NetworkId = string\nexport type Name = string\n/**\n *\n * Description of network\n *\n */\nexport type Description = string\n/**\n *\n * Synchronizer ID\n *\n */\nexport type SynchronizerId = string\n/**\n *\n * Identity Provider ID\n *\n */\nexport type IdentityProviderId = string\nexport type Method = string\nexport type Scope = string\nexport type ClientId = string\nexport type ClientSecret = string\n/**\n *\n * Issuer of identity provider\n *\n */\nexport type Issuer = string\nexport type Audience = string\n/**\n *\n * Represents the type of auth for a specified network\n *\n */\nexport interface Auth {\n method: Method\n scope: Scope\n clientId: ClientId\n clientSecret?: ClientSecret\n issuer?: Issuer\n audience: Audience\n}\n/**\n *\n * Ledger api url\n *\n */\nexport type LedgerApi = string\n/**\n *\n * Connected network metadata. Privileged credentials (adminAuth, serviceAccountAuth) are included only for the admin user.\n *\n */\nexport interface Network {\n id: NetworkId\n name: Name\n description: Description\n synchronizerId?: SynchronizerId\n identityProviderId: IdentityProviderId\n auth: Auth\n adminAuth?: Auth\n serviceAccountAuth?: Auth\n ledgerApi: LedgerApi\n}\n/**\n *\n * Ledger api url\n *\n */\nexport type NetworkName = string\nexport type Id = string\n/**\n *\n * Type of identity provider (oauth / self_signed)\n *\n */\nexport type Type = any\n/**\n *\n * The configuration URL for the identity provider.\n *\n */\nexport type ConfigUrl = string\n/**\n *\n * Structure representing the Identity Providers\n *\n */\nexport interface Idp {\n id: Id\n type: Type\n issuer: Issuer\n configUrl?: ConfigUrl\n}\n/**\n *\n * Set as primary wallet for dApp usage.\n *\n */\nexport type Primary = boolean\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type PartyHint = string\n/**\n *\n * The signing provider ID the wallet corresponds to.\n *\n */\nexport type SigningProviderId = string\n/**\n *\n * Name of signing provider's key to use for getting keys.\n *\n */\nexport type KeyName = string\n/**\n *\n * The party ID corresponding to the wallet.\n *\n */\nexport type PartyId = string\n/**\n *\n * Filter wallets by network IDs.\n *\n */\nexport type NetworkIds = NetworkId[]\n/**\n *\n * Filter wallets by signing provider IDs.\n *\n */\nexport type SigningProviderIds = SigningProviderId[]\n/**\n *\n * Filter for the wallets to be returned.\n *\n */\nexport interface WalletFilter {\n networkIds?: NetworkIds\n signingProviderIds?: SigningProviderIds\n}\n/**\n *\n * The internal transaction identifier.\n *\n */\nexport type TransactionId = string\n/**\n *\n * The internal identifier of the pending message-signing request.\n *\n */\nexport type MessageId = string\n/**\n *\n * The signature of the message.\n *\n */\nexport type Signature = string\nexport type SignedBy = string\n/**\n *\n * The origin (dApp URL) that initiated this transaction request.\n *\n */\nexport type Origin = string\n/**\n *\n * Limit of transactions to return.\n *\n */\nexport type Limit = number\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type CursorAsString = string\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type Cursor = CursorAsString\n/**\n *\n * The public key of the party.\n *\n */\nexport type PublicKey = string\n/**\n *\n * Authentication method configured for this network\n *\n */\nexport type AuthMethod = string\n/**\n *\n * Network metadata exposed by listNetworks without sensitive auth configuration\n *\n */\nexport interface PublicNetwork {\n id: NetworkId\n name: Name\n description: Description\n synchronizerId?: SynchronizerId\n identityProviderId: IdentityProviderId\n ledgerApi: LedgerApi\n authMethod: AuthMethod\n clientId?: ClientId\n scope?: Scope\n audience?: Audience\n}\nexport type Networks = PublicNetwork[]\n/**\n *\n * The access token for the session.\n *\n */\nexport type AccessToken = string\nexport type Idps = Idp[]\n/**\n *\n * The status of the wallet.\n *\n */\nexport type WalletStatus = 'initialized' | 'allocated' | 'removed'\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type Hint = string\n/**\n *\n * The namespace of the party.\n *\n */\nexport type Namespace = string\n/**\n *\n * Unique identifier of the signed transaction given by the Signing Provider. This may not be the same as the internal txId given by the Wallet Gateway.\n *\n */\nexport type ExternalTxId = string\n/**\n *\n * The topology transactions\n *\n */\nexport type TopologyTransactions = string\n/**\n *\n * Whether the wallet is disabled. Wallets are disabled when no signing provider matches the party's namespace during sync. Disabled wallets use participant as the default signing provider.\n *\n */\nexport type Disabled = boolean\n/**\n *\n * Reason for the wallet state, e.g., 'no signing provider matched'.\n *\n */\nexport type Reason = string\nexport type PartyLevelRight = any\n/**\n *\n * The rights of the wallet.\n *\n */\nexport type Rights = PartyLevelRight[]\n/**\n *\n * Structure representing a wallet\n *\n */\nexport interface Wallet {\n primary: Primary\n partyId: PartyId\n status: WalletStatus\n hint: Hint\n publicKey: PublicKey\n namespace: Namespace\n networkId: NetworkId\n signingProviderId: SigningProviderId\n externalTxId?: ExternalTxId\n topologyTransactions?: TopologyTransactions\n disabled?: Disabled\n reason?: Reason\n rights: Rights\n}\ntype AlwaysTrue = any\n/**\n *\n * Non-disabled wallets added in this syncWallets call.\n *\n */\nexport type SyncWalletsResultAdded = Wallet[]\n/**\n *\n * Existing wallets that either got downgraded to status initialized or their rights changed in this syncWallets call.\n *\n */\nexport type SyncWalletsResultUpdated = Wallet[]\n/**\n *\n * Either wallets added in this iteration that are disabled, or existing wallet that were updated to be disabled in this syncWallets call.\n *\n */\nexport type SyncWalletsResultDisabled = Wallet[]\n/**\n *\n * Whether wallet sync is needed. Returns true if there are disabled wallets or parties on the ledger that aren't in the store.\n *\n */\nexport type WalletSyncNeeded = boolean\nexport type TxStatusSigned = 'signed'\nexport interface SignResultSigned {\n status: TxStatusSigned\n signature: Signature\n signedBy: SignedBy\n partyId: PartyId\n externalTxId?: ExternalTxId\n}\nexport type TxStatusPending = 'pending'\nexport interface SignResultPending {\n status: TxStatusPending\n partyId: PartyId\n externalTxId: ExternalTxId\n}\nexport type TxStatusRejected = 'rejected'\nexport interface SignResultRejected {\n status: TxStatusRejected\n partyId: PartyId\n externalTxId: ExternalTxId\n}\nexport type TxStatusFailed = 'failed'\nexport interface SignResultFailed {\n status: TxStatusFailed\n partyId: PartyId\n externalTxId: ExternalTxId\n}\n/**\n *\n * The status of the transaction.\n *\n */\nexport type Status = string\n/**\n *\n * The message to sign.\n *\n */\nexport type Message = string\n/**\n *\n * The timestamp when the API key was created.\n *\n */\nexport type CreatedAt = string\n/**\n *\n * The timestamp when the transaction was signed.\n *\n */\nexport type SignedAt = string\nexport interface MessageRaw {\n id: MessageId\n status: Status\n partyId: PartyId\n publicKey: PublicKey\n message: Message\n origin?: Origin\n createdAt: CreatedAt\n signedAt?: SignedAt\n signature?: Signature\n}\nexport type Messages = MessageRaw[]\nexport type UserLevelRight = any\n/**\n *\n * Structure representing the connected network session\n *\n */\nexport interface Session {\n id: Id\n origin?: Origin\n network: Network\n idp: Idp\n accessToken: AccessToken\n status: Status\n reason?: Reason\n rights: Rights\n}\nexport type Sessions = Session[]\n/**\n *\n * The unique identifier of the command associated with the transaction.\n *\n */\nexport type CommandId = string\n/**\n *\n * The transaction data corresponding to the command ID.\n *\n */\nexport type PreparedTransaction = string\n/**\n *\n * The hash of the prepared transaction.\n *\n */\nexport type PreparedTransactionHash = string\n/**\n *\n * Optional payload associated with the transaction.\n *\n */\nexport type Payload = string\nexport interface Transaction {\n id: TransactionId\n commandId: CommandId\n status: Status\n createdAt?: CreatedAt\n signedAt?: SignedAt\n preparedTransaction: PreparedTransaction\n preparedTransactionHash: PreparedTransactionHash\n payload?: Payload\n origin?: Origin\n externalTxId?: ExternalTxId\n}\nexport type Transactions = Transaction[]\n/**\n *\n * Cursor for next page of results.\n *\n */\nexport type NextCursor = string\n/**\n *\n * Number of total transactions for the user.\n *\n */\nexport type Count = number\n/**\n *\n * The unique identifier of the current user.\n *\n */\nexport type UserIdentifier = string\n/**\n *\n * Whether the current user is an admin.\n *\n */\nexport type IsAdminFlag = boolean\n/**\n *\n * The generated API key.\n *\n */\nexport type ApiKeyResult = string\nexport interface ApiKey {\n id: Id\n name: Name\n createdAt: CreatedAt\n}\n/**\n *\n * The list of API keys.\n *\n */\nexport type ApiKeys = ApiKey[]\nexport interface Key {\n id: Id\n name: Name\n publicKey: PublicKey\n}\n/**\n *\n * The list of signing provider's available keys.\n *\n */\nexport type Keys = Key[]\n/**\n *\n * Represents a null value, used in responses where no data is returned.\n *\n */\nexport type Null = null\nexport interface AddNetworkParams {\n network: Network\n}\nexport interface RemoveNetworkParams {\n networkName: NetworkName\n}\nexport interface GetNetworkParams {\n networkId: NetworkId\n}\nexport interface SelfSignedAccessTokenParams {\n networkId: NetworkId\n clientId: ClientId\n clientSecret: ClientSecret\n}\nexport interface AddIdpParams {\n idp: Idp\n}\nexport interface RemoveIdpParams {\n identityProviderId: IdentityProviderId\n}\nexport interface CreateWalletParams {\n primary?: Primary\n partyHint: PartyHint\n signingProviderId: SigningProviderId\n keyName?: KeyName\n}\nexport interface AllocatePartyForWalletParams {\n partyId: PartyId\n}\nexport interface SetPrimaryWalletParams {\n partyId: PartyId\n}\nexport interface RemoveWalletParams {\n partyId: PartyId\n}\nexport interface ListWalletsParams {\n filter?: WalletFilter\n}\nexport interface SignParams {\n transactionId: TransactionId\n partyId: PartyId\n}\nexport interface SignMessageParams {\n messageId: MessageId\n partyId?: PartyId\n}\nexport interface GetMessageToSignParams {\n messageId: MessageId\n}\nexport interface DeleteMessageToSignParams {\n messageId: MessageId\n}\nexport interface ExecuteParams {\n signature: Signature\n partyId: PartyId\n transactionId: TransactionId\n signedBy: SignedBy\n}\nexport interface AddSessionParams {\n origin: Origin\n networkId: NetworkId\n}\nexport interface GetTransactionParams {\n transactionId: TransactionId\n}\nexport interface ListTransactionsParams {\n limit?: Limit\n cursor?: Cursor\n}\nexport interface DeleteTransactionParams {\n transactionId: TransactionId\n}\nexport interface GenerateApiKeyParams {\n name: Name\n}\nexport interface RemoveApiKeyParams {\n id: Id\n}\nexport interface ListSigningProviderKeysParams {\n signingProviderId: SigningProviderId\n}\nexport interface GetWalletParams {\n partyId: PartyId\n}\nexport interface ChangeSigningProviderParams {\n signingProviderId: SigningProviderId\n partyId: PartyId\n publicKey: PublicKey\n}\nexport interface ListNetworksResult {\n networks: Networks\n}\nexport interface GetNetworkResult {\n network: Network\n}\nexport interface SelfSignedAccessTokenResult {\n accessToken: AccessToken\n}\nexport interface ListIdpsResult {\n idps: Idps\n}\nexport interface CreateWalletResult {\n wallet: Wallet\n}\nexport interface AllocatePartyForWalletResult {\n wallet: Wallet\n}\nexport interface RemovePartyResult {\n [key: string]: any\n}\n/**\n *\n * An array of wallets that match the filter criteria.\n *\n */\nexport type ListWalletsResult = Wallet[]\n/**\n *\n * Added, updated and disabled wallets as a result of the sync.\n *\n */\nexport interface SyncWalletsResult {\n added: SyncWalletsResultAdded\n updated: SyncWalletsResultUpdated\n disabled: SyncWalletsResultDisabled\n}\nexport interface IsWalletSyncNeededResult {\n walletSyncNeeded: WalletSyncNeeded\n}\nexport type SignResult =\n SignResultSigned | SignResultPending | SignResultRejected | SignResultFailed\nexport interface SignMessageResult {\n signature: Signature\n publicKey: PublicKey\n}\nexport interface GetMessageToSignResult {\n message: MessageRaw\n}\nexport interface ListMessagesToSignResult {\n messages: Messages\n}\nexport interface ExecuteResult {\n [key: string]: any\n}\n/**\n *\n * Structure representing the connected network session\n *\n */\nexport interface AddSessionResult {\n id: Id\n origin?: Origin\n network: Network\n idp: Idp\n accessToken: AccessToken\n status: Status\n reason?: Reason\n rights: Rights\n}\nexport interface ListSessionsResult {\n sessions: Sessions\n}\nexport interface GetTransactionResult {\n id: TransactionId\n commandId: CommandId\n status: Status\n createdAt?: CreatedAt\n signedAt?: SignedAt\n preparedTransaction: PreparedTransaction\n preparedTransactionHash: PreparedTransactionHash\n payload?: Payload\n origin?: Origin\n externalTxId?: ExternalTxId\n}\nexport interface ListTransactionsResult {\n transactions: Transactions\n nextCursor?: NextCursor\n count: Count\n}\nexport interface GetUserResult {\n userId: UserIdentifier\n isAdmin: IsAdminFlag\n}\nexport interface GeneratedApiKey {\n id: Id\n apiKey: ApiKeyResult\n}\nexport interface ListApiKeysResult {\n apiKeys: ApiKeys\n}\nexport interface ListSigningProviderKeysResult {\n keys: Keys\n}\nexport type GetWalletResult = Wallet | Null\n/**\n *\n * Generated! Represents an alias to any of the provided schemas\n *\n */\n\nexport type AddNetwork = (params: AddNetworkParams) => Promise<Null>\nexport type RemoveNetwork = (params: RemoveNetworkParams) => Promise<Null>\nexport type ListNetworks = () => Promise<ListNetworksResult>\nexport type GetNetwork = (params: GetNetworkParams) => Promise<GetNetworkResult>\nexport type SelfSignedAccessToken = (\n params: SelfSignedAccessTokenParams\n) => Promise<SelfSignedAccessTokenResult>\nexport type AddIdp = (params: AddIdpParams) => Promise<Null>\nexport type RemoveIdp = (params: RemoveIdpParams) => Promise<Null>\nexport type ListIdps = () => Promise<ListIdpsResult>\nexport type CreateWallet = (\n params: CreateWalletParams\n) => Promise<CreateWalletResult>\nexport type AllocatePartyForWallet = (\n params: AllocatePartyForWalletParams\n) => Promise<AllocatePartyForWalletResult>\nexport type SetPrimaryWallet = (params: SetPrimaryWalletParams) => Promise<Null>\nexport type RemoveWallet = (\n params: RemoveWalletParams\n) => Promise<RemovePartyResult>\nexport type ListWallets = (\n params: ListWalletsParams\n) => Promise<ListWalletsResult>\nexport type SyncWallets = () => Promise<SyncWalletsResult>\nexport type IsWalletSyncNeeded = () => Promise<IsWalletSyncNeededResult>\nexport type Sign = (params: SignParams) => Promise<SignResult>\nexport type SignMessage = (\n params: SignMessageParams\n) => Promise<SignMessageResult>\nexport type GetMessageToSign = (\n params: GetMessageToSignParams\n) => Promise<GetMessageToSignResult>\nexport type ListMessagesToSign = () => Promise<ListMessagesToSignResult>\nexport type DeleteMessageToSign = (\n params: DeleteMessageToSignParams\n) => Promise<Null>\nexport type Execute = (params: ExecuteParams) => Promise<ExecuteResult>\nexport type AddSession = (params: AddSessionParams) => Promise<AddSessionResult>\nexport type RemoveSession = () => Promise<Null>\nexport type ListSessions = () => Promise<ListSessionsResult>\nexport type GetTransaction = (\n params: GetTransactionParams\n) => Promise<GetTransactionResult>\nexport type ListTransactions = (\n params: ListTransactionsParams\n) => Promise<ListTransactionsResult>\nexport type DeleteTransaction = (\n params: DeleteTransactionParams\n) => Promise<Null>\nexport type GetUser = () => Promise<GetUserResult>\nexport type GenerateApiKey = (\n params: GenerateApiKeyParams\n) => Promise<GeneratedApiKey>\nexport type ListApiKeys = () => Promise<ListApiKeysResult>\nexport type RemoveApiKey = (params: RemoveApiKeyParams) => Promise<Null>\nexport type ListSigningProviderKeys = (\n params: ListSigningProviderKeysParams\n) => Promise<ListSigningProviderKeysResult>\nexport type GetWallet = (params: GetWalletParams) => Promise<GetWalletResult>\nexport type ChangeSigningProvider = (\n params: ChangeSigningProviderParams\n) => Promise<Null>\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\ntype Params<T> = T extends (...args: infer A) => any\n ? A extends []\n ? never\n : A[0]\n : never\ntype Result<T> = T extends (...args: any[]) => Promise<infer R> ? R : never\n\nexport type RpcTypes = {\n addNetwork: {\n params: Params<AddNetwork>\n result: Result<AddNetwork>\n }\n\n removeNetwork: {\n params: Params<RemoveNetwork>\n result: Result<RemoveNetwork>\n }\n\n listNetworks: {\n params: Params<ListNetworks>\n result: Result<ListNetworks>\n }\n\n getNetwork: {\n params: Params<GetNetwork>\n result: Result<GetNetwork>\n }\n\n selfSignedAccessToken: {\n params: Params<SelfSignedAccessToken>\n result: Result<SelfSignedAccessToken>\n }\n\n addIdp: {\n params: Params<AddIdp>\n result: Result<AddIdp>\n }\n\n removeIdp: {\n params: Params<RemoveIdp>\n result: Result<RemoveIdp>\n }\n\n listIdps: {\n params: Params<ListIdps>\n result: Result<ListIdps>\n }\n\n createWallet: {\n params: Params<CreateWallet>\n result: Result<CreateWallet>\n }\n\n allocatePartyForWallet: {\n params: Params<AllocatePartyForWallet>\n result: Result<AllocatePartyForWallet>\n }\n\n setPrimaryWallet: {\n params: Params<SetPrimaryWallet>\n result: Result<SetPrimaryWallet>\n }\n\n removeWallet: {\n params: Params<RemoveWallet>\n result: Result<RemoveWallet>\n }\n\n listWallets: {\n params: Params<ListWallets>\n result: Result<ListWallets>\n }\n\n syncWallets: {\n params: Params<SyncWallets>\n result: Result<SyncWallets>\n }\n\n isWalletSyncNeeded: {\n params: Params<IsWalletSyncNeeded>\n result: Result<IsWalletSyncNeeded>\n }\n\n sign: {\n params: Params<Sign>\n result: Result<Sign>\n }\n\n signMessage: {\n params: Params<SignMessage>\n result: Result<SignMessage>\n }\n\n getMessageToSign: {\n params: Params<GetMessageToSign>\n result: Result<GetMessageToSign>\n }\n\n listMessagesToSign: {\n params: Params<ListMessagesToSign>\n result: Result<ListMessagesToSign>\n }\n\n deleteMessageToSign: {\n params: Params<DeleteMessageToSign>\n result: Result<DeleteMessageToSign>\n }\n\n execute: {\n params: Params<Execute>\n result: Result<Execute>\n }\n\n addSession: {\n params: Params<AddSession>\n result: Result<AddSession>\n }\n\n removeSession: {\n params: Params<RemoveSession>\n result: Result<RemoveSession>\n }\n\n listSessions: {\n params: Params<ListSessions>\n result: Result<ListSessions>\n }\n\n getTransaction: {\n params: Params<GetTransaction>\n result: Result<GetTransaction>\n }\n\n listTransactions: {\n params: Params<ListTransactions>\n result: Result<ListTransactions>\n }\n\n deleteTransaction: {\n params: Params<DeleteTransaction>\n result: Result<DeleteTransaction>\n }\n\n getUser: {\n params: Params<GetUser>\n result: Result<GetUser>\n }\n\n generateApiKey: {\n params: Params<GenerateApiKey>\n result: Result<GenerateApiKey>\n }\n\n listApiKeys: {\n params: Params<ListApiKeys>\n result: Result<ListApiKeys>\n }\n\n removeApiKey: {\n params: Params<RemoveApiKey>\n result: Result<RemoveApiKey>\n }\n\n listSigningProviderKeys: {\n params: Params<ListSigningProviderKeys>\n result: Result<ListSigningProviderKeys>\n }\n\n getWallet: {\n params: Params<GetWallet>\n result: Result<GetWallet>\n }\n\n changeSigningProvider: {\n params: Params<ChangeSigningProvider>\n result: Result<ChangeSigningProvider>\n }\n}\n\nexport class WalletJSONRPCUserAPI {\n public transport: RpcTransport\n\n constructor(transport: RpcTransport) {\n this.transport = transport\n }\n\n public async request<M extends keyof RpcTypes>(\n args: RequestArgs<RpcTypes, M>\n ): Promise<RpcTypes[M]['result']> {\n const response = await this.transport.submit(args as RequestPayload)\n\n if ('error' in response) {\n throw new Error(\n 'RPC error: ' +\n response.error.code +\n ' - ' +\n response.error.message\n )\n } else {\n return response.result as RpcTypes[M]['result']\n }\n }\n}\nexport default WalletJSONRPCUserAPI\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAs7BA,IAAa,uBAAb,MAAkC;CAG9B,YAAY,WAAyB;EAF9B,gBAAA,MAAA,aAAA,KAAA,CAAA;EAGH,KAAK,YAAY;CACrB;CAEA,MAAa,QACT,MAC8B;EAC9B,MAAM,WAAW,MAAM,KAAK,UAAU,OAAO,IAAsB;EAEnE,IAAI,WAAW,UACX,MAAM,IAAI,MACN,gBACI,SAAS,MAAM,OACf,QACA,SAAS,MAAM,OACvB;OAEA,OAAO,SAAS;CAExB;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canton-network/core-wallet-user-rpc-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript client generated by OpenRPC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,11 +22,12 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"
|
|
26
|
-
"@canton-network/core-
|
|
27
|
-
"
|
|
25
|
+
"@canton-network/core-rpc-transport": "^1.12.0",
|
|
26
|
+
"@canton-network/core-types": "^1.12.0",
|
|
27
|
+
"lodash": "^4.18.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@canton-network/core-eslint-config": "^0.4.0",
|
|
30
31
|
"@types/isomorphic-fetch": "^0.0.39",
|
|
31
32
|
"@types/json-schema": "7.0.15",
|
|
32
33
|
"@types/lodash": "^4.17.24",
|
|
@@ -35,8 +36,7 @@
|
|
|
35
36
|
"prettier": "3.9.4",
|
|
36
37
|
"tsdown": "^0.22.9",
|
|
37
38
|
"typedoc": "^0.28.20",
|
|
38
|
-
"typescript": "^5.9.3"
|
|
39
|
-
"@canton-network/core-eslint-config": "^0.2.1"
|
|
39
|
+
"typescript": "^5.9.3"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|