@request-seal/core API
Preparing search index...
index
createPolicy
Function createPolicy
createPolicy
(
input
:
unknown
,
)
:
Result
<
Readonly
<
{
algorithms
:
readonly
SigningAlgorithm
[]
;
components
:
InnerList
;
content
:
|
"not_required"
|
Readonly
<
{
algorithms
:
readonly
string
[]
;
kind
:
"content"
|
"representation"
;
section
:
"headers"
|
"trailers"
;
}
,
>
;
extraComponents
:
"reject"
|
"allow"
;
fieldSchemas
:
Readonly
<
Record
<
string
,
Schema
>
>
;
freshness
:
|
"not_evaluated"
|
Readonly
<
{
clock
:
()
=>
number
;
maxAge
:
number
|
null
;
requireExpires
:
boolean
;
skew
:
number
;
}
,
>
;
keyResolver
:
KeyResolver
;
maxSignatures
:
number
;
replay
:
|
"not_required"
|
Readonly
<
{
commitment
:
(
facts
:
ReplayFacts
,
context
:
Context
,
)
=>
|
Result
<
Uint8Array
<
ArrayBufferLike
>
>
|
Promise
<
Result
<
Uint8Array
<
(...)
>
>
>
;
identifier
:
"nonce"
;
namespace
:
Uint8Array
;
store
:
ReplayStore
;
timeoutMs
:
number
;
}
,
>
;
}
,
>
,
>
Snapshot, validate, and brand an explicit verification policy.
Parameters
input
:
unknown
Returns
Result
<
Readonly
<
{
algorithms
:
readonly
SigningAlgorithm
[]
;
components
:
InnerList
;
content
:
|
"not_required"
|
Readonly
<
{
algorithms
:
readonly
string
[]
;
kind
:
"content"
|
"representation"
;
section
:
"headers"
|
"trailers"
;
}
,
>
;
extraComponents
:
"reject"
|
"allow"
;
fieldSchemas
:
Readonly
<
Record
<
string
,
Schema
>
>
;
freshness
:
|
"not_evaluated"
|
Readonly
<
{
clock
:
()
=>
number
;
maxAge
:
number
|
null
;
requireExpires
:
boolean
;
skew
:
number
;
}
,
>
;
keyResolver
:
KeyResolver
;
maxSignatures
:
number
;
replay
:
|
"not_required"
|
Readonly
<
{
commitment
:
(
facts
:
ReplayFacts
,
context
:
Context
,
)
=>
|
Result
<
Uint8Array
<
ArrayBufferLike
>
>
|
Promise
<
Result
<
Uint8Array
<
(...)
>
>
>
;
identifier
:
"nonce"
;
namespace
:
Uint8Array
;
store
:
ReplayStore
;
timeoutMs
:
number
;
}
,
>
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@request-seal/core API
Loading...
Snapshot, validate, and brand an explicit verification policy.