@secrecy/lib
Preparing search index...
BaseClient
Class BaseClient
Hierarchy (
View Summary
)
BaseClient
SecrecyClient
Index
Constructors
constructor
Properties
client
secrecy
Urls
session
Id
Methods
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
BaseClient
(
opts
:
BaseClientOptions
)
:
BaseClient
Parameters
opts
:
BaseClientOptions
Returns
BaseClient
Properties
Protected
client
client
:
TRPCClient
secrecy
Urls
secrecyUrls
:
SecrecyUrls
session
Id
sessionId
:
string
Methods
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
client
secrecy
Urls
session
Id
Methods
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...