Meshpocalypse Semantic
Preparing search index...
ATFTrustSystem
Class ATFTrustSystem
Index
Constructors
constructor
Methods
attempt
ACL
Bypass
attempt
Self
Promotion
can
Promote
demote
get
Agent
get
Event
Log
get
Level
hydrate
is
Authorized
persist
promote
record
Error
record
Read
record
Violation
record
Write
register
Constructors
constructor
new
ATFTrustSystem
(
criteria
?:
PromotionCriteria
[]
,
maxEventLog
?:
number
,
persistence
?:
ATFPersistenceAdapter
|
null
,
reviewManager
?:
TrustReviewManager
|
null
,
)
:
ATFTrustSystem
Parameters
criteria
:
PromotionCriteria
[]
= DEFAULT_PROMOTION_CRITERIA
maxEventLog
:
number
= 10_000
persistence
:
ATFPersistenceAdapter
|
null
= null
reviewManager
:
TrustReviewManager
|
null
= null
Returns
ATFTrustSystem
Methods
attempt
ACL
Bypass
attemptACLBypass
(
did
:
string
,
requiredLevel
:
ATFLevel
,
)
:
{
allowed
:
boolean
;
reason
:
string
}
Parameters
did
:
string
requiredLevel
:
ATFLevel
Returns
{
allowed
:
boolean
;
reason
:
string
}
attempt
Self
Promotion
attemptSelfPromotion
(
_did
:
string
)
:
{
allowed
:
boolean
;
reason
:
string
}
Parameters
_did
:
string
Returns
{
allowed
:
boolean
;
reason
:
string
}
can
Promote
canPromote
(
did
:
string
)
:
boolean
Parameters
did
:
string
Returns
boolean
demote
demote
(
did
:
string
,
reason
?:
string
)
:
void
Parameters
did
:
string
Optional
reason
:
string
Returns
void
get
Agent
getAgent
(
did
:
string
)
:
ATFAgent
|
undefined
Parameters
did
:
string
Returns
ATFAgent
|
undefined
get
Event
Log
getEventLog
()
:
readonly
ATFEvent
[]
Returns
readonly
ATFEvent
[]
get
Level
getLevel
(
did
:
string
)
:
ATFLevel
Parameters
did
:
string
Returns
ATFLevel
hydrate
hydrate
()
:
Promise
<
void
>
Returns
Promise
<
void
>
is
Authorized
isAuthorized
(
did
:
string
,
requiredLevel
:
ATFLevel
)
:
boolean
Parameters
did
:
string
requiredLevel
:
ATFLevel
Returns
boolean
persist
persist
()
:
Promise
<
void
>
Returns
Promise
<
void
>
promote
promote
(
did
:
string
,
humanApproved
?:
boolean
)
:
boolean
Parameters
did
:
string
humanApproved
:
boolean
= false
Returns
boolean
record
Error
recordError
(
did
:
string
,
detail
?:
string
)
:
void
Parameters
did
:
string
Optional
detail
:
string
Returns
void
record
Read
recordRead
(
did
:
string
)
:
void
Parameters
did
:
string
Returns
void
record
Violation
recordViolation
(
did
:
string
,
detail
:
string
)
:
void
Parameters
did
:
string
detail
:
string
Returns
void
record
Write
recordWrite
(
did
:
string
)
:
void
Parameters
did
:
string
Returns
void
register
register
(
did
:
string
,
initialLevel
?:
ATFLevel
)
:
ATFAgent
Parameters
did
:
string
initialLevel
:
ATFLevel
= ATF_LEVELS.INTERN
Returns
ATFAgent
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
attempt
ACL
Bypass
attempt
Self
Promotion
can
Promote
demote
get
Agent
get
Event
Log
get
Level
hydrate
is
Authorized
persist
promote
record
Error
record
Read
record
Violation
record
Write
register
Meshpocalypse Semantic
Loading...