@wolfcola/devtools-types 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +7 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lib/auth-event.schema.d.ts +289 -0
- package/dist/src/lib/auth-event.schema.d.ts.map +1 -0
- package/dist/src/lib/auth-event.schema.js +142 -0
- package/dist/src/lib/auth-event.schema.js.map +1 -0
- package/dist/src/lib/auth-event.types.d.ts +13 -0
- package/dist/src/lib/auth-event.types.d.ts.map +1 -0
- package/dist/src/lib/auth-event.types.js +2 -0
- package/dist/src/lib/auth-event.types.js.map +1 -0
- package/dist/src/lib/cors-flag.types.d.ts +2 -0
- package/dist/src/lib/cors-flag.types.d.ts.map +1 -0
- package/dist/src/lib/cors-flag.types.js +2 -0
- package/dist/src/lib/cors-flag.types.js.map +1 -0
- package/dist/src/lib/flow-export.schema.d.ts +151 -0
- package/dist/src/lib/flow-export.schema.d.ts.map +1 -0
- package/dist/src/lib/flow-export.schema.js +9 -0
- package/dist/src/lib/flow-export.schema.js.map +1 -0
- package/dist/src/lib/flow-state.schema.d.ts +161 -0
- package/dist/src/lib/flow-state.schema.d.ts.map +1 -0
- package/dist/src/lib/flow-state.schema.js +17 -0
- package/dist/src/lib/flow-state.schema.js.map +1 -0
- package/dist/src/lib/flow-state.types.d.ts +2 -0
- package/dist/src/lib/flow-state.types.d.ts.map +1 -0
- package/dist/src/lib/flow-state.types.js +2 -0
- package/dist/src/lib/flow-state.types.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/package.json +30 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
export declare const FlowExportSchema: Schema.Struct<{
|
|
3
|
+
version: Schema.Literal<[1]>;
|
|
4
|
+
exportedAt: typeof Schema.String;
|
|
5
|
+
redacted: typeof Schema.Boolean;
|
|
6
|
+
flow: Schema.Struct<{
|
|
7
|
+
flowId: Schema.NullOr<typeof Schema.String>;
|
|
8
|
+
capturedAt: typeof Schema.String;
|
|
9
|
+
events: Schema.Array$<Schema.Struct<{
|
|
10
|
+
id: typeof Schema.String;
|
|
11
|
+
timestamp: typeof Schema.Number;
|
|
12
|
+
type: Schema.Union<[Schema.Literal<["network:request"]>, Schema.Literal<["network:response"]>, Schema.Literal<["network:cors-flag"]>, Schema.Literal<["sdk:node-change"]>, Schema.Literal<["sdk:action"]>, Schema.Literal<["sdk:config"]>, Schema.Literal<["sdk:journey-step"]>, Schema.Literal<["sdk:oidc-state"]>, Schema.Literal<["dom:form-submit"]>, Schema.Literal<["dom:redirect"]>, Schema.Literal<["session:cookie"]>, Schema.Literal<["session:storage"]>]>;
|
|
13
|
+
source: Schema.Union<[Schema.Literal<["network"]>, Schema.Literal<["sdk"]>, Schema.Literal<["dom"]>, Schema.Literal<["session"]>]>;
|
|
14
|
+
flowId: Schema.NullOr<typeof Schema.String>;
|
|
15
|
+
causedBy: Schema.NullOr<typeof Schema.String>;
|
|
16
|
+
data: Schema.Union<[Schema.Struct<{
|
|
17
|
+
_tag: Schema.Literal<["network"]>;
|
|
18
|
+
url: typeof Schema.String;
|
|
19
|
+
method: typeof Schema.String;
|
|
20
|
+
status: typeof Schema.Number;
|
|
21
|
+
requestHeaders: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
22
|
+
responseHeaders: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
23
|
+
duration: typeof Schema.Number;
|
|
24
|
+
corsFlag: Schema.optional<Schema.Struct<{
|
|
25
|
+
url: typeof Schema.String;
|
|
26
|
+
reason: Schema.Union<[Schema.Literal<["status-zero"]>, Schema.Literal<["missing-allow-origin"]>, Schema.Literal<["credentials-mismatch"]>, Schema.Literal<["wildcard-with-credentials"]>, Schema.Literal<["preflight-failed"]>]>;
|
|
27
|
+
method: typeof Schema.String;
|
|
28
|
+
preflightStatus: Schema.optional<typeof Schema.Number>;
|
|
29
|
+
allowOrigin: Schema.optional<typeof Schema.String>;
|
|
30
|
+
allowCredentials: Schema.optional<typeof Schema.String>;
|
|
31
|
+
}>>;
|
|
32
|
+
requestBody: Schema.optional<typeof Schema.Unknown>;
|
|
33
|
+
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
34
|
+
}>, Schema.Struct<{
|
|
35
|
+
_tag: Schema.Literal<["sdk"]>;
|
|
36
|
+
nodeStatus: typeof Schema.String;
|
|
37
|
+
previousStatus: Schema.optional<typeof Schema.String>;
|
|
38
|
+
interactionId: Schema.optional<typeof Schema.String>;
|
|
39
|
+
interactionToken: Schema.optional<typeof Schema.String>;
|
|
40
|
+
nodeId: Schema.optional<typeof Schema.String>;
|
|
41
|
+
requestId: Schema.optional<typeof Schema.String>;
|
|
42
|
+
nodeName: Schema.optional<typeof Schema.String>;
|
|
43
|
+
nodeDescription: Schema.optional<typeof Schema.String>;
|
|
44
|
+
eventName: Schema.optional<typeof Schema.String>;
|
|
45
|
+
httpStatus: Schema.optional<typeof Schema.Number>;
|
|
46
|
+
collectors: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
47
|
+
error: Schema.optional<Schema.Struct<{
|
|
48
|
+
code: typeof Schema.String;
|
|
49
|
+
message: typeof Schema.String;
|
|
50
|
+
type: typeof Schema.String;
|
|
51
|
+
internalHttpStatus: Schema.optional<typeof Schema.Number>;
|
|
52
|
+
}>>;
|
|
53
|
+
authorization: Schema.optional<Schema.Struct<{
|
|
54
|
+
code: Schema.optional<typeof Schema.String>;
|
|
55
|
+
state: Schema.optional<typeof Schema.String>;
|
|
56
|
+
}>>;
|
|
57
|
+
session: Schema.optional<typeof Schema.String>;
|
|
58
|
+
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
59
|
+
}>, Schema.Struct<{
|
|
60
|
+
_tag: Schema.Literal<["sdk-config"]>;
|
|
61
|
+
config: typeof Schema.Unknown;
|
|
62
|
+
}>, Schema.Struct<{
|
|
63
|
+
_tag: Schema.Literal<["dom"]>;
|
|
64
|
+
element: Schema.optional<typeof Schema.String>;
|
|
65
|
+
url: Schema.optional<typeof Schema.String>;
|
|
66
|
+
}>, Schema.Struct<{
|
|
67
|
+
_tag: Schema.Literal<["session"]>;
|
|
68
|
+
key: typeof Schema.String;
|
|
69
|
+
before: Schema.optional<typeof Schema.String>;
|
|
70
|
+
after: Schema.optional<typeof Schema.String>;
|
|
71
|
+
}>, Schema.Struct<{
|
|
72
|
+
_tag: Schema.Literal<["journey"]>;
|
|
73
|
+
stepType: Schema.Union<[Schema.Literal<["Step"]>, Schema.Literal<["LoginSuccess"]>, Schema.Literal<["LoginFailure"]>]>;
|
|
74
|
+
callbacks: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
75
|
+
authId: Schema.optional<typeof Schema.String>;
|
|
76
|
+
tokenId: Schema.optional<typeof Schema.String>;
|
|
77
|
+
successUrl: Schema.optional<typeof Schema.String>;
|
|
78
|
+
realm: Schema.optional<typeof Schema.String>;
|
|
79
|
+
stage: Schema.optional<typeof Schema.String>;
|
|
80
|
+
header: Schema.optional<typeof Schema.String>;
|
|
81
|
+
description: Schema.optional<typeof Schema.String>;
|
|
82
|
+
errorCode: Schema.optional<typeof Schema.Number>;
|
|
83
|
+
errorMessage: Schema.optional<typeof Schema.String>;
|
|
84
|
+
errorReason: Schema.optional<typeof Schema.String>;
|
|
85
|
+
}>, Schema.Struct<{
|
|
86
|
+
_tag: Schema.Literal<["oidc"]>;
|
|
87
|
+
phase: Schema.Union<[Schema.Literal<["authorize"]>, Schema.Literal<["exchange"]>, Schema.Literal<["revoke"]>, Schema.Literal<["userinfo"]>, Schema.Literal<["logout"]>]>;
|
|
88
|
+
status: Schema.Union<[Schema.Literal<["success"]>, Schema.Literal<["error"]>]>;
|
|
89
|
+
clientId: Schema.optional<typeof Schema.String>;
|
|
90
|
+
errorCode: Schema.optional<typeof Schema.String>;
|
|
91
|
+
errorMessage: Schema.optional<typeof Schema.String>;
|
|
92
|
+
}>]>;
|
|
93
|
+
flags: Schema.Struct<{
|
|
94
|
+
isCors: typeof Schema.Boolean;
|
|
95
|
+
isError: typeof Schema.Boolean;
|
|
96
|
+
isAuthRelated: typeof Schema.Boolean;
|
|
97
|
+
}>;
|
|
98
|
+
oidcSemantics: Schema.optional<Schema.Struct<{
|
|
99
|
+
_tag: Schema.Literal<["oidc-semantics"]>;
|
|
100
|
+
oidcPhase: Schema.Union<[Schema.Literal<["discovery"]>, Schema.Literal<["authorize"]>, Schema.Literal<["par"]>, Schema.Literal<["token"]>, Schema.Literal<["userinfo"]>, Schema.Literal<["revocation"]>, Schema.Literal<["introspection"]>, Schema.Literal<["end-session"]>, Schema.Literal<["jwks"]>]>;
|
|
101
|
+
grantType: Schema.optional<typeof Schema.String>;
|
|
102
|
+
pkce: Schema.optional<Schema.Struct<{
|
|
103
|
+
challengeMethod: typeof Schema.String;
|
|
104
|
+
hasVerifier: typeof Schema.Boolean;
|
|
105
|
+
}>>;
|
|
106
|
+
dpop: Schema.optional<Schema.Struct<{
|
|
107
|
+
proofJwt: Schema.optional<typeof Schema.String>;
|
|
108
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
109
|
+
nonce: Schema.optional<typeof Schema.String>;
|
|
110
|
+
}>>;
|
|
111
|
+
par: Schema.optional<Schema.Struct<{
|
|
112
|
+
requestUri: Schema.optional<typeof Schema.String>;
|
|
113
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
114
|
+
}>>;
|
|
115
|
+
state: Schema.optional<typeof Schema.String>;
|
|
116
|
+
nonce: Schema.optional<typeof Schema.String>;
|
|
117
|
+
clientId: Schema.optional<typeof Schema.String>;
|
|
118
|
+
tokens: Schema.optional<Schema.Struct<{
|
|
119
|
+
accessToken: Schema.optional<typeof Schema.Boolean>;
|
|
120
|
+
refreshToken: Schema.optional<typeof Schema.Boolean>;
|
|
121
|
+
idToken: Schema.optional<typeof Schema.Boolean>;
|
|
122
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
123
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
124
|
+
}>>;
|
|
125
|
+
error: Schema.optional<Schema.Struct<{
|
|
126
|
+
error: typeof Schema.String;
|
|
127
|
+
errorDescription: Schema.optional<typeof Schema.String>;
|
|
128
|
+
}>>;
|
|
129
|
+
}>>;
|
|
130
|
+
}>>;
|
|
131
|
+
summary: Schema.Struct<{
|
|
132
|
+
nodeCount: typeof Schema.Number;
|
|
133
|
+
errorCount: typeof Schema.Number;
|
|
134
|
+
corsFlags: Schema.Array$<Schema.Struct<{
|
|
135
|
+
url: typeof Schema.String;
|
|
136
|
+
reason: Schema.Union<[Schema.Literal<["status-zero"]>, Schema.Literal<["missing-allow-origin"]>, Schema.Literal<["credentials-mismatch"]>, Schema.Literal<["wildcard-with-credentials"]>, Schema.Literal<["preflight-failed"]>]>;
|
|
137
|
+
method: typeof Schema.String;
|
|
138
|
+
preflightStatus: Schema.optional<typeof Schema.Number>;
|
|
139
|
+
allowOrigin: Schema.optional<typeof Schema.String>;
|
|
140
|
+
allowCredentials: Schema.optional<typeof Schema.String>;
|
|
141
|
+
}>>;
|
|
142
|
+
duration: typeof Schema.Number;
|
|
143
|
+
sdkConnected: typeof Schema.Boolean;
|
|
144
|
+
}>;
|
|
145
|
+
lastSdkEventId: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
146
|
+
default: () => null;
|
|
147
|
+
}>;
|
|
148
|
+
}>;
|
|
149
|
+
}>;
|
|
150
|
+
export type FlowExport = Schema.Schema.Type<typeof FlowExportSchema>;
|
|
151
|
+
//# sourceMappingURL=flow-export.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-export.schema.d.ts","sourceRoot":"","sources":["../../../src/lib/flow-export.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
import { FlowStateSchema } from './flow-state.schema.js';
|
|
3
|
+
export const FlowExportSchema = Schema.Struct({
|
|
4
|
+
version: Schema.Literal(1),
|
|
5
|
+
exportedAt: Schema.String,
|
|
6
|
+
redacted: Schema.Boolean,
|
|
7
|
+
flow: FlowStateSchema,
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=flow-export.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-export.schema.js","sourceRoot":"","sources":["../../../src/lib/flow-export.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,QAAQ,EAAE,MAAM,CAAC,OAAO;IACxB,IAAI,EAAE,eAAe;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
export declare const FlowSummarySchema: Schema.Struct<{
|
|
3
|
+
nodeCount: typeof Schema.Number;
|
|
4
|
+
errorCount: typeof Schema.Number;
|
|
5
|
+
corsFlags: Schema.Array$<Schema.Struct<{
|
|
6
|
+
url: typeof Schema.String;
|
|
7
|
+
reason: Schema.Union<[Schema.Literal<["status-zero"]>, Schema.Literal<["missing-allow-origin"]>, Schema.Literal<["credentials-mismatch"]>, Schema.Literal<["wildcard-with-credentials"]>, Schema.Literal<["preflight-failed"]>]>;
|
|
8
|
+
method: typeof Schema.String;
|
|
9
|
+
preflightStatus: Schema.optional<typeof Schema.Number>;
|
|
10
|
+
allowOrigin: Schema.optional<typeof Schema.String>;
|
|
11
|
+
allowCredentials: Schema.optional<typeof Schema.String>;
|
|
12
|
+
}>>;
|
|
13
|
+
duration: typeof Schema.Number;
|
|
14
|
+
sdkConnected: typeof Schema.Boolean;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const FlowStateSchema: Schema.Struct<{
|
|
17
|
+
flowId: Schema.NullOr<typeof Schema.String>;
|
|
18
|
+
capturedAt: typeof Schema.String;
|
|
19
|
+
events: Schema.Array$<Schema.Struct<{
|
|
20
|
+
id: typeof Schema.String;
|
|
21
|
+
timestamp: typeof Schema.Number;
|
|
22
|
+
type: Schema.Union<[Schema.Literal<["network:request"]>, Schema.Literal<["network:response"]>, Schema.Literal<["network:cors-flag"]>, Schema.Literal<["sdk:node-change"]>, Schema.Literal<["sdk:action"]>, Schema.Literal<["sdk:config"]>, Schema.Literal<["sdk:journey-step"]>, Schema.Literal<["sdk:oidc-state"]>, Schema.Literal<["dom:form-submit"]>, Schema.Literal<["dom:redirect"]>, Schema.Literal<["session:cookie"]>, Schema.Literal<["session:storage"]>]>;
|
|
23
|
+
source: Schema.Union<[Schema.Literal<["network"]>, Schema.Literal<["sdk"]>, Schema.Literal<["dom"]>, Schema.Literal<["session"]>]>;
|
|
24
|
+
flowId: Schema.NullOr<typeof Schema.String>;
|
|
25
|
+
causedBy: Schema.NullOr<typeof Schema.String>;
|
|
26
|
+
data: Schema.Union<[Schema.Struct<{
|
|
27
|
+
_tag: Schema.Literal<["network"]>;
|
|
28
|
+
url: typeof Schema.String;
|
|
29
|
+
method: typeof Schema.String;
|
|
30
|
+
status: typeof Schema.Number;
|
|
31
|
+
requestHeaders: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
32
|
+
responseHeaders: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
33
|
+
duration: typeof Schema.Number;
|
|
34
|
+
corsFlag: Schema.optional<Schema.Struct<{
|
|
35
|
+
url: typeof Schema.String;
|
|
36
|
+
reason: Schema.Union<[Schema.Literal<["status-zero"]>, Schema.Literal<["missing-allow-origin"]>, Schema.Literal<["credentials-mismatch"]>, Schema.Literal<["wildcard-with-credentials"]>, Schema.Literal<["preflight-failed"]>]>;
|
|
37
|
+
method: typeof Schema.String;
|
|
38
|
+
preflightStatus: Schema.optional<typeof Schema.Number>;
|
|
39
|
+
allowOrigin: Schema.optional<typeof Schema.String>;
|
|
40
|
+
allowCredentials: Schema.optional<typeof Schema.String>;
|
|
41
|
+
}>>;
|
|
42
|
+
requestBody: Schema.optional<typeof Schema.Unknown>;
|
|
43
|
+
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
44
|
+
}>, Schema.Struct<{
|
|
45
|
+
_tag: Schema.Literal<["sdk"]>;
|
|
46
|
+
nodeStatus: typeof Schema.String;
|
|
47
|
+
previousStatus: Schema.optional<typeof Schema.String>;
|
|
48
|
+
interactionId: Schema.optional<typeof Schema.String>;
|
|
49
|
+
interactionToken: Schema.optional<typeof Schema.String>;
|
|
50
|
+
nodeId: Schema.optional<typeof Schema.String>;
|
|
51
|
+
requestId: Schema.optional<typeof Schema.String>;
|
|
52
|
+
nodeName: Schema.optional<typeof Schema.String>;
|
|
53
|
+
nodeDescription: Schema.optional<typeof Schema.String>;
|
|
54
|
+
eventName: Schema.optional<typeof Schema.String>;
|
|
55
|
+
httpStatus: Schema.optional<typeof Schema.Number>;
|
|
56
|
+
collectors: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
57
|
+
error: Schema.optional<Schema.Struct<{
|
|
58
|
+
code: typeof Schema.String;
|
|
59
|
+
message: typeof Schema.String;
|
|
60
|
+
type: typeof Schema.String;
|
|
61
|
+
internalHttpStatus: Schema.optional<typeof Schema.Number>;
|
|
62
|
+
}>>;
|
|
63
|
+
authorization: Schema.optional<Schema.Struct<{
|
|
64
|
+
code: Schema.optional<typeof Schema.String>;
|
|
65
|
+
state: Schema.optional<typeof Schema.String>;
|
|
66
|
+
}>>;
|
|
67
|
+
session: Schema.optional<typeof Schema.String>;
|
|
68
|
+
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
69
|
+
}>, Schema.Struct<{
|
|
70
|
+
_tag: Schema.Literal<["sdk-config"]>;
|
|
71
|
+
config: typeof Schema.Unknown;
|
|
72
|
+
}>, Schema.Struct<{
|
|
73
|
+
_tag: Schema.Literal<["dom"]>;
|
|
74
|
+
element: Schema.optional<typeof Schema.String>;
|
|
75
|
+
url: Schema.optional<typeof Schema.String>;
|
|
76
|
+
}>, Schema.Struct<{
|
|
77
|
+
_tag: Schema.Literal<["session"]>;
|
|
78
|
+
key: typeof Schema.String;
|
|
79
|
+
before: Schema.optional<typeof Schema.String>;
|
|
80
|
+
after: Schema.optional<typeof Schema.String>;
|
|
81
|
+
}>, Schema.Struct<{
|
|
82
|
+
_tag: Schema.Literal<["journey"]>;
|
|
83
|
+
stepType: Schema.Union<[Schema.Literal<["Step"]>, Schema.Literal<["LoginSuccess"]>, Schema.Literal<["LoginFailure"]>]>;
|
|
84
|
+
callbacks: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
85
|
+
authId: Schema.optional<typeof Schema.String>;
|
|
86
|
+
tokenId: Schema.optional<typeof Schema.String>;
|
|
87
|
+
successUrl: Schema.optional<typeof Schema.String>;
|
|
88
|
+
realm: Schema.optional<typeof Schema.String>;
|
|
89
|
+
stage: Schema.optional<typeof Schema.String>;
|
|
90
|
+
header: Schema.optional<typeof Schema.String>;
|
|
91
|
+
description: Schema.optional<typeof Schema.String>;
|
|
92
|
+
errorCode: Schema.optional<typeof Schema.Number>;
|
|
93
|
+
errorMessage: Schema.optional<typeof Schema.String>;
|
|
94
|
+
errorReason: Schema.optional<typeof Schema.String>;
|
|
95
|
+
}>, Schema.Struct<{
|
|
96
|
+
_tag: Schema.Literal<["oidc"]>;
|
|
97
|
+
phase: Schema.Union<[Schema.Literal<["authorize"]>, Schema.Literal<["exchange"]>, Schema.Literal<["revoke"]>, Schema.Literal<["userinfo"]>, Schema.Literal<["logout"]>]>;
|
|
98
|
+
status: Schema.Union<[Schema.Literal<["success"]>, Schema.Literal<["error"]>]>;
|
|
99
|
+
clientId: Schema.optional<typeof Schema.String>;
|
|
100
|
+
errorCode: Schema.optional<typeof Schema.String>;
|
|
101
|
+
errorMessage: Schema.optional<typeof Schema.String>;
|
|
102
|
+
}>]>;
|
|
103
|
+
flags: Schema.Struct<{
|
|
104
|
+
isCors: typeof Schema.Boolean;
|
|
105
|
+
isError: typeof Schema.Boolean;
|
|
106
|
+
isAuthRelated: typeof Schema.Boolean;
|
|
107
|
+
}>;
|
|
108
|
+
oidcSemantics: Schema.optional<Schema.Struct<{
|
|
109
|
+
_tag: Schema.Literal<["oidc-semantics"]>;
|
|
110
|
+
oidcPhase: Schema.Union<[Schema.Literal<["discovery"]>, Schema.Literal<["authorize"]>, Schema.Literal<["par"]>, Schema.Literal<["token"]>, Schema.Literal<["userinfo"]>, Schema.Literal<["revocation"]>, Schema.Literal<["introspection"]>, Schema.Literal<["end-session"]>, Schema.Literal<["jwks"]>]>;
|
|
111
|
+
grantType: Schema.optional<typeof Schema.String>;
|
|
112
|
+
pkce: Schema.optional<Schema.Struct<{
|
|
113
|
+
challengeMethod: typeof Schema.String;
|
|
114
|
+
hasVerifier: typeof Schema.Boolean;
|
|
115
|
+
}>>;
|
|
116
|
+
dpop: Schema.optional<Schema.Struct<{
|
|
117
|
+
proofJwt: Schema.optional<typeof Schema.String>;
|
|
118
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
119
|
+
nonce: Schema.optional<typeof Schema.String>;
|
|
120
|
+
}>>;
|
|
121
|
+
par: Schema.optional<Schema.Struct<{
|
|
122
|
+
requestUri: Schema.optional<typeof Schema.String>;
|
|
123
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
124
|
+
}>>;
|
|
125
|
+
state: Schema.optional<typeof Schema.String>;
|
|
126
|
+
nonce: Schema.optional<typeof Schema.String>;
|
|
127
|
+
clientId: Schema.optional<typeof Schema.String>;
|
|
128
|
+
tokens: Schema.optional<Schema.Struct<{
|
|
129
|
+
accessToken: Schema.optional<typeof Schema.Boolean>;
|
|
130
|
+
refreshToken: Schema.optional<typeof Schema.Boolean>;
|
|
131
|
+
idToken: Schema.optional<typeof Schema.Boolean>;
|
|
132
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
133
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
134
|
+
}>>;
|
|
135
|
+
error: Schema.optional<Schema.Struct<{
|
|
136
|
+
error: typeof Schema.String;
|
|
137
|
+
errorDescription: Schema.optional<typeof Schema.String>;
|
|
138
|
+
}>>;
|
|
139
|
+
}>>;
|
|
140
|
+
}>>;
|
|
141
|
+
summary: Schema.Struct<{
|
|
142
|
+
nodeCount: typeof Schema.Number;
|
|
143
|
+
errorCount: typeof Schema.Number;
|
|
144
|
+
corsFlags: Schema.Array$<Schema.Struct<{
|
|
145
|
+
url: typeof Schema.String;
|
|
146
|
+
reason: Schema.Union<[Schema.Literal<["status-zero"]>, Schema.Literal<["missing-allow-origin"]>, Schema.Literal<["credentials-mismatch"]>, Schema.Literal<["wildcard-with-credentials"]>, Schema.Literal<["preflight-failed"]>]>;
|
|
147
|
+
method: typeof Schema.String;
|
|
148
|
+
preflightStatus: Schema.optional<typeof Schema.Number>;
|
|
149
|
+
allowOrigin: Schema.optional<typeof Schema.String>;
|
|
150
|
+
allowCredentials: Schema.optional<typeof Schema.String>;
|
|
151
|
+
}>>;
|
|
152
|
+
duration: typeof Schema.Number;
|
|
153
|
+
sdkConnected: typeof Schema.Boolean;
|
|
154
|
+
}>;
|
|
155
|
+
lastSdkEventId: Schema.optionalWith<Schema.NullOr<typeof Schema.String>, {
|
|
156
|
+
default: () => null;
|
|
157
|
+
}>;
|
|
158
|
+
}>;
|
|
159
|
+
export type FlowSummary = Schema.Schema.Type<typeof FlowSummarySchema>;
|
|
160
|
+
export type FlowState = Schema.Schema.Type<typeof FlowStateSchema>;
|
|
161
|
+
//# sourceMappingURL=flow-state.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-state.schema.d.ts","sourceRoot":"","sources":["../../../src/lib/flow-state.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;EAM5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM1B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACvE,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
import { AuthEventSchema, CorsFlagSchema } from './auth-event.schema.js';
|
|
3
|
+
export const FlowSummarySchema = Schema.Struct({
|
|
4
|
+
nodeCount: Schema.Number,
|
|
5
|
+
errorCount: Schema.Number,
|
|
6
|
+
corsFlags: Schema.Array(CorsFlagSchema),
|
|
7
|
+
duration: Schema.Number,
|
|
8
|
+
sdkConnected: Schema.Boolean,
|
|
9
|
+
});
|
|
10
|
+
export const FlowStateSchema = Schema.Struct({
|
|
11
|
+
flowId: Schema.NullOr(Schema.String),
|
|
12
|
+
capturedAt: Schema.String,
|
|
13
|
+
events: Schema.Array(AuthEventSchema),
|
|
14
|
+
summary: FlowSummarySchema,
|
|
15
|
+
lastSdkEventId: Schema.optionalWith(Schema.NullOr(Schema.String), { default: () => null }),
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=flow-state.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-state.schema.js","sourceRoot":"","sources":["../../../src/lib/flow-state.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEzE,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC,MAAM;IACvB,YAAY,EAAE,MAAM,CAAC,OAAO;CAC7B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC;IACrC,OAAO,EAAE,iBAAiB;IAC1B,cAAc,EAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;CAC3F,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-state.types.d.ts","sourceRoot":"","sources":["../../../src/lib/flow-state.types.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-state.types.js","sourceRoot":"","sources":["../../../src/lib/flow-state.types.ts"],"names":[],"mappings":""}
|