Preparing search index...
The search index is not available
Vincent Docs
Vincent Docs
vincent-ability-sdk
PolicyContext
Interface PolicyContext<AllowSchema, DenySchema>
interface
PolicyContext
<
AllowSchema
extends
z.ZodType
=
z.ZodUndefined
,
DenySchema
extends
z.ZodType
=
z.ZodUndefined
,
>
{
allow
:
AllowSchema
extends
ZodUndefined
?
()
=>
ContextAllowResponseNoResult
:
(
result
:
TypeOf
<
AllowSchema
>
,
)
=>
ContextAllowResponse
<
TypeOf
<
AllowSchema
>
>
;
deny
:
DenySchema
extends
ZodUndefined
?
()
=>
ContextDenyResponseNoResult
:
(
result
:
TypeOf
<
DenySchema
>
,
runtimeError
?:
string
,
)
=>
ContextDenyResponse
<
TypeOf
<
DenySchema
>
>
;
abilityIpfsCid
:
string
;
appId
:
number
;
appVersion
:
number
;
delegation
:
{
delegateeAddress
:
string
;
delegatorPkpInfo
:
{
tokenId
:
string
;
ethAddress
:
string
;
publicKey
:
string
;
}
;
}
;
}
Type Parameters
AllowSchema
extends
z.ZodType
=
z.ZodUndefined
DenySchema
extends
z.ZodType
=
z.ZodUndefined
Hierarchy
BaseContext
PolicyContext
Index
Properties
allow
deny
ability
Ipfs
Cid
app
Id
app
Version
delegation
Properties
allow
allow
:
AllowSchema
extends
ZodUndefined
?
()
=>
ContextAllowResponseNoResult
:
(
result
:
TypeOf
<
AllowSchema
>
,
)
=>
ContextAllowResponse
<
TypeOf
<
AllowSchema
>
>
deny
deny
:
DenySchema
extends
ZodUndefined
?
()
=>
ContextDenyResponseNoResult
:
(
result
:
TypeOf
<
DenySchema
>
,
runtimeError
?:
string
,
)
=>
ContextDenyResponse
<
TypeOf
<
DenySchema
>
>
ability
Ipfs
Cid
abilityIpfsCid
:
string
app
Id
appId
:
number
app
Version
appVersion
:
number
delegation
delegation
:
{
delegateeAddress
:
string
;
delegatorPkpInfo
:
{
tokenId
:
string
;
ethAddress
:
string
;
publicKey
:
string
;
}
;
}
Settings
Theme
OS
Light
Dark
On This Page
Properties
allow
deny
ability
Ipfs
Cid
app
Id
app
Version
delegation
Vincent Docs
Loading...