Variable FlowStateSchemaConst
FlowStateSchema: Struct<
{
capturedAt: typeof String$;
events: Array$<
Struct<
{
causedBy: NullOr<typeof String$>;
data: Union<
[
Struct<
{
_tag: Literal<[(...)]>;
corsFlag: optional<Struct<(...)>>;
duration: typeof Number$;
method: typeof String$;
requestBody: optional<typeof Unknown>;
requestHeaders: Record$<typeof String$, typeof String$>;
responseBody: optional<typeof Unknown>;
responseHeaders: Record$<typeof String$, typeof String$>;
status: typeof Number$;
url: typeof String$;
},
>,
Struct<
{
_tag: Literal<[(...)]>;
authorization: optional<Struct<(...)>>;
collectors: optional<Array$<(...)>>;
error: optional<Struct<(...)>>;
eventName: optional<typeof String$>;
httpStatus: optional<typeof Number$>;
interactionId: optional<typeof String$>;
interactionToken: optional<typeof String$>;
nodeDescription: optional<typeof String$>;
nodeId: optional<typeof String$>;
nodeName: optional<typeof String$>;
nodeStatus: typeof String$;
previousStatus: optional<typeof String$>;
requestId: optional<typeof String$>;
responseBody: optional<typeof Unknown>;
session: optional<typeof String$>;
},
>,
Struct<{ _tag: Literal<[(...)]>; config: typeof Unknown }>,
],
>;
flags: Struct<
{
isAuthRelated: typeof Boolean$;
isCors: typeof Boolean$;
isError: typeof Boolean$;
},
>;
flowId: NullOr<typeof String$>;
id: typeof String$;
oidcSemantics: optional<
Struct<
{
_tag: Literal<["oidc-semantics"]>;
clientId: optional<typeof String$>;
dpop: optional<
Struct<{ nonce: ...; proofJwt: ...; tokenType: ... }>,
>;
error: optional<Struct<{ error: ...; errorDescription: ... }>>;
grantType: optional<typeof String$>;
nonce: optional<typeof String$>;
oidcPhase: Union<
[
Literal<(...)>,
Literal<(...)>,
Literal<(...)>,
Literal<(...)>,
Literal<(...)>,
Literal<(...)>,
Literal<(...)>,
Literal<(...)>,
Literal<(...)>,
],
>;
par: optional<Struct<{ expiresIn: ...; requestUri: ... }>>;
pkce: optional<Struct<{ challengeMethod: ...; hasVerifier: ... }>>;
state: optional<typeof String$>;
tokens: optional<
Struct<
{
accessToken: ...;
expiresIn: ...;
idToken: ...;
refreshToken: ...;
tokenType: ...;
},
>,
>;
},
>,
>;
source: Union<
[
Literal<["network"]>,
Literal<["sdk"]>,
Literal<["dom"]>,
Literal<["session"]>,
],
>;
timestamp: typeof Number$;
type: Union<
[
Literal<["network:request"]>,
Literal<["network:response"]>,
Literal<["network:cors-flag"]>,
Literal<["sdk:node-change"]>,
Literal<["sdk:action"]>,
Literal<["sdk:config"]>,
Literal<["sdk:journey-step"]>,
],
>;
},
>,
>;
flowId: NullOr<typeof String$>;
lastSdkEventId: optionalWith<
NullOr<typeof String$>,
{ flowStateSchemaTypeLastSdkEventIdType: () => null },
>;
summary: Struct<
{
corsFlags: Array$<
Struct<
{
allowCredentials: optional<typeof String$>;
allowOrigin: optional<typeof String$>;
method: typeof String$;
preflightStatus: optional<typeof Number$>;
reason: Union<
[
Literal<[(...)]>,
Literal<[(...)]>,
Literal<[(...)]>,
Literal<[(...)]>,
Literal<[(...)]>,
],
>;
url: typeof String$;
},
>,
>;
duration: typeof Number$;
errorCount: typeof Number$;
nodeCount: typeof Number$;
sdkConnected: typeof Boolean$;
},
>;
},
> = ...