Interface: KratosActionContext
Kratos webhook context as templated by function(ctx) ctx. Fields are documented in https://www.ory.sh/docs/kratos/hooks/configure-hooks under "Available web hook context". All fields are optional from saflib's perspective: presence depends on which flow stage fired the hook (e.g. identity is present on after.<method> hooks, absent on before).
[key: string]: unknown allows forward-compatible additions without forcing saflib version bumps. Consumers narrow as they need.
Indexable
[key: string]: unknown
Properties
flow?
optionalflow:object
Index Signature
[key: string]: unknown
active?
optionalactive:string
expires_at?
optionalexpires_at:string
id?
optionalid:string
issued_at?
optionalissued_at:string
request_url?
optionalrequest_url:string
state?
optionalstate:string
type?
optionaltype:"browser"|"api"
identity?
optionalidentity:object
Index Signature
[key: string]: unknown
id?
optionalid:string
schema_id?
optionalschema_id:string
traits?
optionaltraits:Record<string,unknown>>
request_cookies?
optionalrequest_cookies:Record<string,string>>
request_headers?
optionalrequest_headers:Record<string,string[]>
request_method?
optionalrequest_method:string
request_url?
optionalrequest_url:string
session?
optionalsession:object
Index Signature
[key: string]: unknown
id?
optionalid:string
identity_id?
optionalidentity_id:string