@secrecy/lib
Preparing search index...
SecrecyClient
Class SecrecyClient
Hierarchy (
View Summary
)
BaseClient
SecrecyClient
Index
Constructors
constructor
Properties
app
client
cloud
db
group
identity
mail
organization
pay
pseudonym
secrecy
Urls
session
Id
user
wallet
Accessors
api
Client
current
Group
current
Identity
current
Identity
Private
Key
group
Identities
key
Pairs
public
Key
ua
Identity
ua
Private
Key
Methods
decrypt
Anonymous
get
Private
Key
get
Sponsorship
Link
get
User
get
Users
logout
me
report
User
search
Users
update
Profile
get
Base
Client
get
Payment
Request
get
User
get
Users
is
Crypto
Transaction
Done
Constructors
constructor
new
SecrecyClient
(
opts
:
SecrecyClientOptions
)
:
SecrecyClient
Parameters
opts
:
SecrecyClientOptions
Returns
SecrecyClient
Properties
app
app
:
SecrecyAppClient
Protected
client
client
:
TRPCClient
cloud
cloud
:
SecrecyCloudClient
db
db
:
SecrecyDbClient
group
group
:
SecrecyGroupClient
identity
identity
:
SecrecyIdentityClient
mail
mail
:
SecrecyMailClient
organization
organization
:
SecrecyOrganizationClient
pay
pay
:
SecrecyPayClient
pseudonym
pseudonym
:
SecrecyPseudonymClient
secrecy
Urls
secrecyUrls
:
SecrecyUrls
session
Id
sessionId
:
string
user
user
:
SecrecyUserClient
wallet
wallet
:
SecrecyWalletClient
Accessors
api
Client
get
apiClient
()
:
Readonly
<
ApiClient
>
Returns
Readonly
<
ApiClient
>
current
Group
set
currentGroup
(
groupId
:
string
|
null
)
:
void
Parameters
groupId
:
string
|
null
Returns
void
current
Identity
get
currentIdentity
()
:
Readonly
<
|
{
appId
:
string
;
identityPubKey
:
string
;
kind
:
"USER_APP"
;
userId
:
string
;
}
|
{
groupId
:
string
;
groupOwnerPubKey
:
string
;
groupRole
:
"ADMIN"
|
"MEMBER"
;
identityPubKey
:
string
;
kind
:
"GROUP"
;
sharedByPubKey
:
string
;
sharedToPubKey
:
string
;
}
,
>
Returns
Readonly
<
|
{
appId
:
string
;
identityPubKey
:
string
;
kind
:
"USER_APP"
;
userId
:
string
;
}
|
{
groupId
:
string
;
groupOwnerPubKey
:
string
;
groupRole
:
"ADMIN"
|
"MEMBER"
;
identityPubKey
:
string
;
kind
:
"GROUP"
;
sharedByPubKey
:
string
;
sharedToPubKey
:
string
;
}
,
>
current
Identity
Private
Key
get
currentIdentityPrivateKey
()
:
string
Returns
string
group
Identities
get
groupIdentities
()
:
readonly
Readonly
<
{
groupId
:
string
;
groupOwnerPubKey
:
string
;
groupRole
:
"ADMIN"
|
"MEMBER"
;
identityPubKey
:
string
;
kind
:
"GROUP"
;
sharedByPubKey
:
string
;
sharedToPubKey
:
string
;
}
,
>
[]
Returns
readonly
Readonly
<
{
groupId
:
string
;
groupOwnerPubKey
:
string
;
groupRole
:
"ADMIN"
|
"MEMBER"
;
identityPubKey
:
string
;
kind
:
"GROUP"
;
sharedByPubKey
:
string
;
sharedToPubKey
:
string
;
}
,
>
[]
key
Pairs
get
keyPairs
()
:
Readonly
<
Record
<
string
,
string
>
>
Returns
Readonly
<
Record
<
string
,
string
>
>
public
Key
get
publicKey
()
:
string
Returns
string
ua
Identity
get
uaIdentity
()
:
Readonly
<
UserAppIdentity
>
Returns
Readonly
<
UserAppIdentity
>
ua
Private
Key
get
uaPrivateKey
()
:
string
Returns
string
Methods
decrypt
Anonymous
decryptAnonymous
(
data
:
Uint8Array
)
:
Uint8Array
Parameters
data
:
Uint8Array
Returns
Uint8Array
get
Private
Key
getPrivateKey
(
pubKey
:
string
)
:
string
Parameters
pubKey
:
string
Returns
string
get
Sponsorship
Link
getSponsorshipLink
(
__namedParameters
:
{
backUrl
:
string
}
,
)
:
Promise
<
string
|
null
>
Parameters
__namedParameters
:
{
backUrl
:
string
}
Returns
Promise
<
string
|
null
>
get
User
getUser
(
userId
:
string
)
:
Promise
<
{}
>
Parameters
userId
:
string
Returns
Promise
<
{}
>
get
Users
getUsers
(
userIds
:
string
[]
)
:
Promise
<
{}
[]
>
Parameters
userIds
:
string
[]
Returns
Promise
<
{}
[]
>
logout
logout
(
sessionId
?:
string
|
null
)
:
Promise
<
void
>
Parameters
Optional
sessionId
:
string
|
null
Returns
Promise
<
void
>
me
me
()
:
Promise
<
{}
&
{}
&
{}
>
Returns
Promise
<
{}
&
{}
&
{}
>
report
User
reportUser
(
data
:
{}
)
:
Promise
<
{}
>
Parameters
data
:
{}
Returns
Promise
<
{}
>
search
Users
searchUsers
(
search
:
string
)
:
Promise
<
{}
[]
>
Parameters
search
:
string
Returns
Promise
<
{}
[]
>
update
Profile
updateProfile
(
data
:
{}
)
:
Promise
<
{}
&
{}
>
Parameters
data
:
{}
Returns
Promise
<
{}
&
{}
>
Static
Readonly
get
Base
Client
getBaseClient
(
opts
?:
CreateTrpcClientOptions
)
:
TRPCClient
Parameters
opts
:
CreateTrpcClientOptions
= {}
Returns
TRPCClient
Static
get
Payment
Request
getPaymentRequest
(
__namedParameters
:
{
opts
?:
CreateTrpcClientOptions
;
paymentRequestId
:
string
;
secrecyIdSeller
:
string
;
}
,
)
:
Promise
<
Record
<
string
,
unknown
>
>
Parameters
__namedParameters
:
{
opts
?:
CreateTrpcClientOptions
;
paymentRequestId
:
string
;
secrecyIdSeller
:
string
;
}
Returns
Promise
<
Record
<
string
,
unknown
>
>
Static
get
User
getUser
(
userId
:
string
,
opts
?:
CreateTrpcClientOptions
)
:
Promise
<
{}
>
Parameters
userId
:
string
Optional
opts
:
CreateTrpcClientOptions
Returns
Promise
<
{}
>
Static
get
Users
getUsers
(
userIds
:
string
[]
,
opts
?:
CreateTrpcClientOptions
)
:
Promise
<
{}
[]
>
Parameters
userIds
:
string
[]
Optional
opts
:
CreateTrpcClientOptions
Returns
Promise
<
{}
[]
>
Static
is
Crypto
Transaction
Done
isCryptoTransactionDone
(
__namedParameters
:
{
idOrHash
:
string
;
network
?:
InfuraNetwork
;
opts
?:
CreateTrpcClientOptions
;
}
,
)
:
Promise
<
boolean
>
Parameters
__namedParameters
:
{
idOrHash
:
string
;
network
?:
InfuraNetwork
;
opts
?:
CreateTrpcClientOptions
}
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
app
client
cloud
db
group
identity
mail
organization
pay
pseudonym
secrecy
Urls
session
Id
user
wallet
Accessors
api
Client
current
Group
current
Identity
current
Identity
Private
Key
group
Identities
key
Pairs
public
Key
ua
Identity
ua
Private
Key
Methods
decrypt
Anonymous
get
Private
Key
get
Sponsorship
Link
get
User
get
Users
logout
me
report
User
search
Users
update
Profile
get
Base
Client
get
Payment
Request
get
User
get
Users
is
Crypto
Transaction
Done
@secrecy/lib
Loading...