@wolfcola/devtools-types 0.0.0-snapshot-20260510204633
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 +38 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './lib/auth-event.schema.js';
|
|
2
|
+
export * from './lib/auth-event.types.js';
|
|
3
|
+
export * from './lib/flow-export.schema.js';
|
|
4
|
+
export * from './lib/flow-state.schema.js';
|
|
5
|
+
export * from './lib/flow-state.types.js';
|
|
6
|
+
export * from './lib/cors-flag.types.js';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './lib/auth-event.schema.js';
|
|
2
|
+
export * from './lib/auth-event.types.js';
|
|
3
|
+
export * from './lib/flow-export.schema.js';
|
|
4
|
+
export * from './lib/flow-state.schema.js';
|
|
5
|
+
export * from './lib/flow-state.types.js';
|
|
6
|
+
export * from './lib/cors-flag.types.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
export declare const AuthEventTypeSchema: 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"]>]>;
|
|
3
|
+
export declare const AuthEventFlagsSchema: Schema.Struct<{
|
|
4
|
+
isCors: typeof Schema.Boolean;
|
|
5
|
+
isError: typeof Schema.Boolean;
|
|
6
|
+
isAuthRelated: typeof Schema.Boolean;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const CorsFlagSchema: Schema.Struct<{
|
|
9
|
+
url: typeof Schema.String;
|
|
10
|
+
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"]>]>;
|
|
11
|
+
method: typeof Schema.String;
|
|
12
|
+
preflightStatus: Schema.optional<typeof Schema.Number>;
|
|
13
|
+
allowOrigin: Schema.optional<typeof Schema.String>;
|
|
14
|
+
allowCredentials: Schema.optional<typeof Schema.String>;
|
|
15
|
+
}>;
|
|
16
|
+
export type CorsFlag = Schema.Schema.Type<typeof CorsFlagSchema>;
|
|
17
|
+
export declare const NetworkDataSchema: Schema.Struct<{
|
|
18
|
+
_tag: Schema.Literal<["network"]>;
|
|
19
|
+
url: typeof Schema.String;
|
|
20
|
+
method: typeof Schema.String;
|
|
21
|
+
status: typeof Schema.Number;
|
|
22
|
+
requestHeaders: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
23
|
+
responseHeaders: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
24
|
+
duration: typeof Schema.Number;
|
|
25
|
+
corsFlag: Schema.optional<Schema.Struct<{
|
|
26
|
+
url: typeof Schema.String;
|
|
27
|
+
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"]>]>;
|
|
28
|
+
method: typeof Schema.String;
|
|
29
|
+
preflightStatus: Schema.optional<typeof Schema.Number>;
|
|
30
|
+
allowOrigin: Schema.optional<typeof Schema.String>;
|
|
31
|
+
allowCredentials: Schema.optional<typeof Schema.String>;
|
|
32
|
+
}>>;
|
|
33
|
+
requestBody: Schema.optional<typeof Schema.Unknown>;
|
|
34
|
+
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const SdkErrorSchema: Schema.Struct<{
|
|
37
|
+
code: typeof Schema.String;
|
|
38
|
+
message: typeof Schema.String;
|
|
39
|
+
type: typeof Schema.String;
|
|
40
|
+
internalHttpStatus: Schema.optional<typeof Schema.Number>;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const SdkAuthorizationSchema: Schema.Struct<{
|
|
43
|
+
code: Schema.optional<typeof Schema.String>;
|
|
44
|
+
state: Schema.optional<typeof Schema.String>;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const SdkDataSchema: Schema.Struct<{
|
|
47
|
+
_tag: Schema.Literal<["sdk"]>;
|
|
48
|
+
nodeStatus: typeof Schema.String;
|
|
49
|
+
previousStatus: Schema.optional<typeof Schema.String>;
|
|
50
|
+
interactionId: Schema.optional<typeof Schema.String>;
|
|
51
|
+
interactionToken: Schema.optional<typeof Schema.String>;
|
|
52
|
+
nodeId: Schema.optional<typeof Schema.String>;
|
|
53
|
+
requestId: Schema.optional<typeof Schema.String>;
|
|
54
|
+
nodeName: Schema.optional<typeof Schema.String>;
|
|
55
|
+
nodeDescription: Schema.optional<typeof Schema.String>;
|
|
56
|
+
eventName: Schema.optional<typeof Schema.String>;
|
|
57
|
+
httpStatus: Schema.optional<typeof Schema.Number>;
|
|
58
|
+
collectors: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
59
|
+
error: Schema.optional<Schema.Struct<{
|
|
60
|
+
code: typeof Schema.String;
|
|
61
|
+
message: typeof Schema.String;
|
|
62
|
+
type: typeof Schema.String;
|
|
63
|
+
internalHttpStatus: Schema.optional<typeof Schema.Number>;
|
|
64
|
+
}>>;
|
|
65
|
+
authorization: Schema.optional<Schema.Struct<{
|
|
66
|
+
code: Schema.optional<typeof Schema.String>;
|
|
67
|
+
state: Schema.optional<typeof Schema.String>;
|
|
68
|
+
}>>;
|
|
69
|
+
session: Schema.optional<typeof Schema.String>;
|
|
70
|
+
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
71
|
+
}>;
|
|
72
|
+
export declare const SdkConfigDataSchema: Schema.Struct<{
|
|
73
|
+
_tag: Schema.Literal<["sdk-config"]>;
|
|
74
|
+
config: typeof Schema.Unknown;
|
|
75
|
+
}>;
|
|
76
|
+
export declare const DomDataSchema: Schema.Struct<{
|
|
77
|
+
_tag: Schema.Literal<["dom"]>;
|
|
78
|
+
element: Schema.optional<typeof Schema.String>;
|
|
79
|
+
url: Schema.optional<typeof Schema.String>;
|
|
80
|
+
}>;
|
|
81
|
+
export declare const SessionDataSchema: Schema.Struct<{
|
|
82
|
+
_tag: Schema.Literal<["session"]>;
|
|
83
|
+
key: typeof Schema.String;
|
|
84
|
+
before: Schema.optional<typeof Schema.String>;
|
|
85
|
+
after: Schema.optional<typeof Schema.String>;
|
|
86
|
+
}>;
|
|
87
|
+
export declare const JourneyDataSchema: Schema.Struct<{
|
|
88
|
+
_tag: Schema.Literal<["journey"]>;
|
|
89
|
+
stepType: Schema.Union<[Schema.Literal<["Step"]>, Schema.Literal<["LoginSuccess"]>, Schema.Literal<["LoginFailure"]>]>;
|
|
90
|
+
callbacks: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
91
|
+
authId: Schema.optional<typeof Schema.String>;
|
|
92
|
+
tokenId: Schema.optional<typeof Schema.String>;
|
|
93
|
+
successUrl: Schema.optional<typeof Schema.String>;
|
|
94
|
+
realm: Schema.optional<typeof Schema.String>;
|
|
95
|
+
stage: Schema.optional<typeof Schema.String>;
|
|
96
|
+
header: Schema.optional<typeof Schema.String>;
|
|
97
|
+
description: Schema.optional<typeof Schema.String>;
|
|
98
|
+
errorCode: Schema.optional<typeof Schema.Number>;
|
|
99
|
+
errorMessage: Schema.optional<typeof Schema.String>;
|
|
100
|
+
errorReason: Schema.optional<typeof Schema.String>;
|
|
101
|
+
}>;
|
|
102
|
+
export declare const OidcDataSchema: Schema.Struct<{
|
|
103
|
+
_tag: Schema.Literal<["oidc"]>;
|
|
104
|
+
phase: Schema.Union<[Schema.Literal<["authorize"]>, Schema.Literal<["exchange"]>, Schema.Literal<["revoke"]>, Schema.Literal<["userinfo"]>, Schema.Literal<["logout"]>]>;
|
|
105
|
+
status: Schema.Union<[Schema.Literal<["success"]>, Schema.Literal<["error"]>]>;
|
|
106
|
+
clientId: Schema.optional<typeof Schema.String>;
|
|
107
|
+
errorCode: Schema.optional<typeof Schema.String>;
|
|
108
|
+
errorMessage: Schema.optional<typeof Schema.String>;
|
|
109
|
+
}>;
|
|
110
|
+
export declare const OidcPkceSchema: Schema.Struct<{
|
|
111
|
+
challengeMethod: typeof Schema.String;
|
|
112
|
+
hasVerifier: typeof Schema.Boolean;
|
|
113
|
+
}>;
|
|
114
|
+
export declare const OidcDpopSchema: Schema.Struct<{
|
|
115
|
+
proofJwt: Schema.optional<typeof Schema.String>;
|
|
116
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
117
|
+
nonce: Schema.optional<typeof Schema.String>;
|
|
118
|
+
}>;
|
|
119
|
+
export declare const OidcParSchema: Schema.Struct<{
|
|
120
|
+
requestUri: Schema.optional<typeof Schema.String>;
|
|
121
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
122
|
+
}>;
|
|
123
|
+
export declare const OidcTokensSchema: Schema.Struct<{
|
|
124
|
+
accessToken: Schema.optional<typeof Schema.Boolean>;
|
|
125
|
+
refreshToken: Schema.optional<typeof Schema.Boolean>;
|
|
126
|
+
idToken: Schema.optional<typeof Schema.Boolean>;
|
|
127
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
128
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
129
|
+
}>;
|
|
130
|
+
export declare const OidcErrorSchema: Schema.Struct<{
|
|
131
|
+
error: typeof Schema.String;
|
|
132
|
+
errorDescription: Schema.optional<typeof Schema.String>;
|
|
133
|
+
}>;
|
|
134
|
+
export declare const OidcSemanticsSchema: Schema.Struct<{
|
|
135
|
+
_tag: Schema.Literal<["oidc-semantics"]>;
|
|
136
|
+
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"]>]>;
|
|
137
|
+
grantType: Schema.optional<typeof Schema.String>;
|
|
138
|
+
pkce: Schema.optional<Schema.Struct<{
|
|
139
|
+
challengeMethod: typeof Schema.String;
|
|
140
|
+
hasVerifier: typeof Schema.Boolean;
|
|
141
|
+
}>>;
|
|
142
|
+
dpop: Schema.optional<Schema.Struct<{
|
|
143
|
+
proofJwt: Schema.optional<typeof Schema.String>;
|
|
144
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
145
|
+
nonce: Schema.optional<typeof Schema.String>;
|
|
146
|
+
}>>;
|
|
147
|
+
par: Schema.optional<Schema.Struct<{
|
|
148
|
+
requestUri: Schema.optional<typeof Schema.String>;
|
|
149
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
150
|
+
}>>;
|
|
151
|
+
state: Schema.optional<typeof Schema.String>;
|
|
152
|
+
nonce: Schema.optional<typeof Schema.String>;
|
|
153
|
+
clientId: Schema.optional<typeof Schema.String>;
|
|
154
|
+
tokens: Schema.optional<Schema.Struct<{
|
|
155
|
+
accessToken: Schema.optional<typeof Schema.Boolean>;
|
|
156
|
+
refreshToken: Schema.optional<typeof Schema.Boolean>;
|
|
157
|
+
idToken: Schema.optional<typeof Schema.Boolean>;
|
|
158
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
159
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
160
|
+
}>>;
|
|
161
|
+
error: Schema.optional<Schema.Struct<{
|
|
162
|
+
error: typeof Schema.String;
|
|
163
|
+
errorDescription: Schema.optional<typeof Schema.String>;
|
|
164
|
+
}>>;
|
|
165
|
+
}>;
|
|
166
|
+
export type OidcSemantics = Schema.Schema.Type<typeof OidcSemanticsSchema>;
|
|
167
|
+
export declare const AuthEventSchema: Schema.Struct<{
|
|
168
|
+
id: typeof Schema.String;
|
|
169
|
+
timestamp: typeof Schema.Number;
|
|
170
|
+
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"]>]>;
|
|
171
|
+
source: Schema.Union<[Schema.Literal<["network"]>, Schema.Literal<["sdk"]>, Schema.Literal<["dom"]>, Schema.Literal<["session"]>]>;
|
|
172
|
+
flowId: Schema.NullOr<typeof Schema.String>;
|
|
173
|
+
causedBy: Schema.NullOr<typeof Schema.String>;
|
|
174
|
+
data: Schema.Union<[Schema.Struct<{
|
|
175
|
+
_tag: Schema.Literal<["network"]>;
|
|
176
|
+
url: typeof Schema.String;
|
|
177
|
+
method: typeof Schema.String;
|
|
178
|
+
status: typeof Schema.Number;
|
|
179
|
+
requestHeaders: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
180
|
+
responseHeaders: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
181
|
+
duration: typeof Schema.Number;
|
|
182
|
+
corsFlag: Schema.optional<Schema.Struct<{
|
|
183
|
+
url: typeof Schema.String;
|
|
184
|
+
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"]>]>;
|
|
185
|
+
method: typeof Schema.String;
|
|
186
|
+
preflightStatus: Schema.optional<typeof Schema.Number>;
|
|
187
|
+
allowOrigin: Schema.optional<typeof Schema.String>;
|
|
188
|
+
allowCredentials: Schema.optional<typeof Schema.String>;
|
|
189
|
+
}>>;
|
|
190
|
+
requestBody: Schema.optional<typeof Schema.Unknown>;
|
|
191
|
+
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
192
|
+
}>, Schema.Struct<{
|
|
193
|
+
_tag: Schema.Literal<["sdk"]>;
|
|
194
|
+
nodeStatus: typeof Schema.String;
|
|
195
|
+
previousStatus: Schema.optional<typeof Schema.String>;
|
|
196
|
+
interactionId: Schema.optional<typeof Schema.String>;
|
|
197
|
+
interactionToken: Schema.optional<typeof Schema.String>;
|
|
198
|
+
nodeId: Schema.optional<typeof Schema.String>;
|
|
199
|
+
requestId: Schema.optional<typeof Schema.String>;
|
|
200
|
+
nodeName: Schema.optional<typeof Schema.String>;
|
|
201
|
+
nodeDescription: Schema.optional<typeof Schema.String>;
|
|
202
|
+
eventName: Schema.optional<typeof Schema.String>;
|
|
203
|
+
httpStatus: Schema.optional<typeof Schema.Number>;
|
|
204
|
+
collectors: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
205
|
+
error: Schema.optional<Schema.Struct<{
|
|
206
|
+
code: typeof Schema.String;
|
|
207
|
+
message: typeof Schema.String;
|
|
208
|
+
type: typeof Schema.String;
|
|
209
|
+
internalHttpStatus: Schema.optional<typeof Schema.Number>;
|
|
210
|
+
}>>;
|
|
211
|
+
authorization: Schema.optional<Schema.Struct<{
|
|
212
|
+
code: Schema.optional<typeof Schema.String>;
|
|
213
|
+
state: Schema.optional<typeof Schema.String>;
|
|
214
|
+
}>>;
|
|
215
|
+
session: Schema.optional<typeof Schema.String>;
|
|
216
|
+
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
217
|
+
}>, Schema.Struct<{
|
|
218
|
+
_tag: Schema.Literal<["sdk-config"]>;
|
|
219
|
+
config: typeof Schema.Unknown;
|
|
220
|
+
}>, Schema.Struct<{
|
|
221
|
+
_tag: Schema.Literal<["dom"]>;
|
|
222
|
+
element: Schema.optional<typeof Schema.String>;
|
|
223
|
+
url: Schema.optional<typeof Schema.String>;
|
|
224
|
+
}>, Schema.Struct<{
|
|
225
|
+
_tag: Schema.Literal<["session"]>;
|
|
226
|
+
key: typeof Schema.String;
|
|
227
|
+
before: Schema.optional<typeof Schema.String>;
|
|
228
|
+
after: Schema.optional<typeof Schema.String>;
|
|
229
|
+
}>, Schema.Struct<{
|
|
230
|
+
_tag: Schema.Literal<["journey"]>;
|
|
231
|
+
stepType: Schema.Union<[Schema.Literal<["Step"]>, Schema.Literal<["LoginSuccess"]>, Schema.Literal<["LoginFailure"]>]>;
|
|
232
|
+
callbacks: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
233
|
+
authId: Schema.optional<typeof Schema.String>;
|
|
234
|
+
tokenId: Schema.optional<typeof Schema.String>;
|
|
235
|
+
successUrl: Schema.optional<typeof Schema.String>;
|
|
236
|
+
realm: Schema.optional<typeof Schema.String>;
|
|
237
|
+
stage: Schema.optional<typeof Schema.String>;
|
|
238
|
+
header: Schema.optional<typeof Schema.String>;
|
|
239
|
+
description: Schema.optional<typeof Schema.String>;
|
|
240
|
+
errorCode: Schema.optional<typeof Schema.Number>;
|
|
241
|
+
errorMessage: Schema.optional<typeof Schema.String>;
|
|
242
|
+
errorReason: Schema.optional<typeof Schema.String>;
|
|
243
|
+
}>, Schema.Struct<{
|
|
244
|
+
_tag: Schema.Literal<["oidc"]>;
|
|
245
|
+
phase: Schema.Union<[Schema.Literal<["authorize"]>, Schema.Literal<["exchange"]>, Schema.Literal<["revoke"]>, Schema.Literal<["userinfo"]>, Schema.Literal<["logout"]>]>;
|
|
246
|
+
status: Schema.Union<[Schema.Literal<["success"]>, Schema.Literal<["error"]>]>;
|
|
247
|
+
clientId: Schema.optional<typeof Schema.String>;
|
|
248
|
+
errorCode: Schema.optional<typeof Schema.String>;
|
|
249
|
+
errorMessage: Schema.optional<typeof Schema.String>;
|
|
250
|
+
}>]>;
|
|
251
|
+
flags: Schema.Struct<{
|
|
252
|
+
isCors: typeof Schema.Boolean;
|
|
253
|
+
isError: typeof Schema.Boolean;
|
|
254
|
+
isAuthRelated: typeof Schema.Boolean;
|
|
255
|
+
}>;
|
|
256
|
+
oidcSemantics: Schema.optional<Schema.Struct<{
|
|
257
|
+
_tag: Schema.Literal<["oidc-semantics"]>;
|
|
258
|
+
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"]>]>;
|
|
259
|
+
grantType: Schema.optional<typeof Schema.String>;
|
|
260
|
+
pkce: Schema.optional<Schema.Struct<{
|
|
261
|
+
challengeMethod: typeof Schema.String;
|
|
262
|
+
hasVerifier: typeof Schema.Boolean;
|
|
263
|
+
}>>;
|
|
264
|
+
dpop: Schema.optional<Schema.Struct<{
|
|
265
|
+
proofJwt: Schema.optional<typeof Schema.String>;
|
|
266
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
267
|
+
nonce: Schema.optional<typeof Schema.String>;
|
|
268
|
+
}>>;
|
|
269
|
+
par: Schema.optional<Schema.Struct<{
|
|
270
|
+
requestUri: Schema.optional<typeof Schema.String>;
|
|
271
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
272
|
+
}>>;
|
|
273
|
+
state: Schema.optional<typeof Schema.String>;
|
|
274
|
+
nonce: Schema.optional<typeof Schema.String>;
|
|
275
|
+
clientId: Schema.optional<typeof Schema.String>;
|
|
276
|
+
tokens: Schema.optional<Schema.Struct<{
|
|
277
|
+
accessToken: Schema.optional<typeof Schema.Boolean>;
|
|
278
|
+
refreshToken: Schema.optional<typeof Schema.Boolean>;
|
|
279
|
+
idToken: Schema.optional<typeof Schema.Boolean>;
|
|
280
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
281
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
282
|
+
}>>;
|
|
283
|
+
error: Schema.optional<Schema.Struct<{
|
|
284
|
+
error: typeof Schema.String;
|
|
285
|
+
errorDescription: Schema.optional<typeof Schema.String>;
|
|
286
|
+
}>>;
|
|
287
|
+
}>>;
|
|
288
|
+
}>;
|
|
289
|
+
//# sourceMappingURL=auth-event.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-event.schema.d.ts","sourceRoot":"","sources":["../../../src/lib/auth-event.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,mBAAmB,icAa/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;EAI/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;EAazB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC;AAEjE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAW5B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;EAGjC,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;EAiBxB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;EAK5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;EAkB5B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;EAazB,CAAC;AAEH,eAAO,MAAM,cAAc;;;EAGzB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;EAIzB,CAAC;AAEH,eAAO,MAAM,aAAa;;;EAGxB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;EAM3B,CAAC;AAEH,eAAO,MAAM,eAAe;;;EAG1B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsB9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE3E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB1B,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
export const AuthEventTypeSchema = 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'));
|
|
3
|
+
export const AuthEventFlagsSchema = Schema.Struct({
|
|
4
|
+
isCors: Schema.Boolean,
|
|
5
|
+
isError: Schema.Boolean,
|
|
6
|
+
isAuthRelated: Schema.Boolean,
|
|
7
|
+
});
|
|
8
|
+
export const CorsFlagSchema = Schema.Struct({
|
|
9
|
+
url: Schema.String,
|
|
10
|
+
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')),
|
|
11
|
+
method: Schema.String,
|
|
12
|
+
preflightStatus: Schema.optional(Schema.Number),
|
|
13
|
+
allowOrigin: Schema.optional(Schema.String),
|
|
14
|
+
allowCredentials: Schema.optional(Schema.String),
|
|
15
|
+
});
|
|
16
|
+
export const NetworkDataSchema = Schema.Struct({
|
|
17
|
+
_tag: Schema.Literal('network'),
|
|
18
|
+
url: Schema.String,
|
|
19
|
+
method: Schema.String,
|
|
20
|
+
status: Schema.Number,
|
|
21
|
+
requestHeaders: Schema.Record({ key: Schema.String, value: Schema.String }),
|
|
22
|
+
responseHeaders: Schema.Record({ key: Schema.String, value: Schema.String }),
|
|
23
|
+
duration: Schema.Number,
|
|
24
|
+
corsFlag: Schema.optional(CorsFlagSchema),
|
|
25
|
+
requestBody: Schema.optional(Schema.Unknown),
|
|
26
|
+
responseBody: Schema.optional(Schema.Unknown),
|
|
27
|
+
});
|
|
28
|
+
export const SdkErrorSchema = Schema.Struct({
|
|
29
|
+
code: Schema.String,
|
|
30
|
+
message: Schema.String,
|
|
31
|
+
type: Schema.String,
|
|
32
|
+
internalHttpStatus: Schema.optional(Schema.Number),
|
|
33
|
+
});
|
|
34
|
+
export const SdkAuthorizationSchema = Schema.Struct({
|
|
35
|
+
code: Schema.optional(Schema.String),
|
|
36
|
+
state: Schema.optional(Schema.String),
|
|
37
|
+
});
|
|
38
|
+
export const SdkDataSchema = Schema.Struct({
|
|
39
|
+
_tag: Schema.Literal('sdk'),
|
|
40
|
+
nodeStatus: Schema.String,
|
|
41
|
+
previousStatus: Schema.optional(Schema.String),
|
|
42
|
+
interactionId: Schema.optional(Schema.String),
|
|
43
|
+
interactionToken: Schema.optional(Schema.String),
|
|
44
|
+
nodeId: Schema.optional(Schema.String),
|
|
45
|
+
requestId: Schema.optional(Schema.String),
|
|
46
|
+
nodeName: Schema.optional(Schema.String),
|
|
47
|
+
nodeDescription: Schema.optional(Schema.String),
|
|
48
|
+
eventName: Schema.optional(Schema.String),
|
|
49
|
+
httpStatus: Schema.optional(Schema.Number),
|
|
50
|
+
collectors: Schema.optional(Schema.Array(Schema.Unknown)),
|
|
51
|
+
error: Schema.optional(SdkErrorSchema),
|
|
52
|
+
authorization: Schema.optional(SdkAuthorizationSchema),
|
|
53
|
+
session: Schema.optional(Schema.String),
|
|
54
|
+
responseBody: Schema.optional(Schema.Unknown),
|
|
55
|
+
});
|
|
56
|
+
export const SdkConfigDataSchema = Schema.Struct({
|
|
57
|
+
_tag: Schema.Literal('sdk-config'),
|
|
58
|
+
config: Schema.Unknown,
|
|
59
|
+
});
|
|
60
|
+
export const DomDataSchema = Schema.Struct({
|
|
61
|
+
_tag: Schema.Literal('dom'),
|
|
62
|
+
element: Schema.optional(Schema.String),
|
|
63
|
+
url: Schema.optional(Schema.String),
|
|
64
|
+
});
|
|
65
|
+
export const SessionDataSchema = Schema.Struct({
|
|
66
|
+
_tag: Schema.Literal('session'),
|
|
67
|
+
key: Schema.String,
|
|
68
|
+
before: Schema.optional(Schema.String),
|
|
69
|
+
after: Schema.optional(Schema.String),
|
|
70
|
+
});
|
|
71
|
+
export const JourneyDataSchema = 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(Schema.Unknown)),
|
|
75
|
+
authId: Schema.optional(Schema.String),
|
|
76
|
+
tokenId: Schema.optional(Schema.String),
|
|
77
|
+
successUrl: Schema.optional(Schema.String),
|
|
78
|
+
realm: Schema.optional(Schema.String),
|
|
79
|
+
stage: Schema.optional(Schema.String),
|
|
80
|
+
header: Schema.optional(Schema.String),
|
|
81
|
+
description: Schema.optional(Schema.String),
|
|
82
|
+
errorCode: Schema.optional(Schema.Number),
|
|
83
|
+
errorMessage: Schema.optional(Schema.String),
|
|
84
|
+
errorReason: Schema.optional(Schema.String),
|
|
85
|
+
});
|
|
86
|
+
export const OidcDataSchema = Schema.Struct({
|
|
87
|
+
_tag: Schema.Literal('oidc'),
|
|
88
|
+
phase: Schema.Union(Schema.Literal('authorize'), Schema.Literal('exchange'), Schema.Literal('revoke'), Schema.Literal('userinfo'), Schema.Literal('logout')),
|
|
89
|
+
status: Schema.Union(Schema.Literal('success'), Schema.Literal('error')),
|
|
90
|
+
clientId: Schema.optional(Schema.String),
|
|
91
|
+
errorCode: Schema.optional(Schema.String),
|
|
92
|
+
errorMessage: Schema.optional(Schema.String),
|
|
93
|
+
});
|
|
94
|
+
export const OidcPkceSchema = Schema.Struct({
|
|
95
|
+
challengeMethod: Schema.String,
|
|
96
|
+
hasVerifier: Schema.Boolean,
|
|
97
|
+
});
|
|
98
|
+
export const OidcDpopSchema = Schema.Struct({
|
|
99
|
+
proofJwt: Schema.optional(Schema.String),
|
|
100
|
+
tokenType: Schema.optional(Schema.String),
|
|
101
|
+
nonce: Schema.optional(Schema.String),
|
|
102
|
+
});
|
|
103
|
+
export const OidcParSchema = Schema.Struct({
|
|
104
|
+
requestUri: Schema.optional(Schema.String),
|
|
105
|
+
expiresIn: Schema.optional(Schema.Number),
|
|
106
|
+
});
|
|
107
|
+
export const OidcTokensSchema = Schema.Struct({
|
|
108
|
+
accessToken: Schema.optional(Schema.Boolean),
|
|
109
|
+
refreshToken: Schema.optional(Schema.Boolean),
|
|
110
|
+
idToken: Schema.optional(Schema.Boolean),
|
|
111
|
+
tokenType: Schema.optional(Schema.String),
|
|
112
|
+
expiresIn: Schema.optional(Schema.Number),
|
|
113
|
+
});
|
|
114
|
+
export const OidcErrorSchema = Schema.Struct({
|
|
115
|
+
error: Schema.String,
|
|
116
|
+
errorDescription: Schema.optional(Schema.String),
|
|
117
|
+
});
|
|
118
|
+
export const OidcSemanticsSchema = Schema.Struct({
|
|
119
|
+
_tag: Schema.Literal('oidc-semantics'),
|
|
120
|
+
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')),
|
|
121
|
+
grantType: Schema.optional(Schema.String),
|
|
122
|
+
pkce: Schema.optional(OidcPkceSchema),
|
|
123
|
+
dpop: Schema.optional(OidcDpopSchema),
|
|
124
|
+
par: Schema.optional(OidcParSchema),
|
|
125
|
+
state: Schema.optional(Schema.String),
|
|
126
|
+
nonce: Schema.optional(Schema.String),
|
|
127
|
+
clientId: Schema.optional(Schema.String),
|
|
128
|
+
tokens: Schema.optional(OidcTokensSchema),
|
|
129
|
+
error: Schema.optional(OidcErrorSchema),
|
|
130
|
+
});
|
|
131
|
+
export const AuthEventSchema = Schema.Struct({
|
|
132
|
+
id: Schema.String,
|
|
133
|
+
timestamp: Schema.Number,
|
|
134
|
+
type: AuthEventTypeSchema,
|
|
135
|
+
source: Schema.Union(Schema.Literal('network'), Schema.Literal('sdk'), Schema.Literal('dom'), Schema.Literal('session')),
|
|
136
|
+
flowId: Schema.NullOr(Schema.String),
|
|
137
|
+
causedBy: Schema.NullOr(Schema.String),
|
|
138
|
+
data: Schema.Union(NetworkDataSchema, SdkDataSchema, SdkConfigDataSchema, DomDataSchema, SessionDataSchema, JourneyDataSchema, OidcDataSchema),
|
|
139
|
+
flags: AuthEventFlagsSchema,
|
|
140
|
+
oidcSemantics: Schema.optional(OidcSemanticsSchema),
|
|
141
|
+
});
|
|
142
|
+
//# sourceMappingURL=auth-event.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-event.schema.js","sourceRoot":"","sources":["../../../src/lib/auth-event.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAC7C,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,EACjC,MAAM,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAClC,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,EACnC,MAAM,CAAC,OAAO,CAAC,iBAA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EAAE,MAAM,CAAC,KAAK,CAClB,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EACzB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EACrB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EACrB,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAC1B;IACD,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,KAAK,CAChB,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,CACf;IACD,KAAK,EAAE,oBAAoB;IAC3B,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC;CACpD,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Schema } from 'effect';
|
|
2
|
+
import type { AuthEventSchema, AuthEventTypeSchema, AuthEventFlagsSchema, NetworkDataSchema, SdkDataSchema, SdkConfigDataSchema, DomDataSchema, SessionDataSchema, JourneyDataSchema, OidcDataSchema } from './auth-event.schema.js';
|
|
3
|
+
export type AuthEventType = Schema.Schema.Type<typeof AuthEventTypeSchema>;
|
|
4
|
+
export type AuthEventFlags = Schema.Schema.Type<typeof AuthEventFlagsSchema>;
|
|
5
|
+
export type NetworkData = Schema.Schema.Type<typeof NetworkDataSchema>;
|
|
6
|
+
export type SdkData = Schema.Schema.Type<typeof SdkDataSchema>;
|
|
7
|
+
export type SdkConfigData = Schema.Schema.Type<typeof SdkConfigDataSchema>;
|
|
8
|
+
export type DomData = Schema.Schema.Type<typeof DomDataSchema>;
|
|
9
|
+
export type SessionData = Schema.Schema.Type<typeof SessionDataSchema>;
|
|
10
|
+
export type JourneyData = Schema.Schema.Type<typeof JourneyDataSchema>;
|
|
11
|
+
export type OidcData = Schema.Schema.Type<typeof OidcDataSchema>;
|
|
12
|
+
export type AuthEvent = Schema.Schema.Type<typeof AuthEventSchema>;
|
|
13
|
+
//# sourceMappingURL=auth-event.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-event.types.d.ts","sourceRoot":"","sources":["../../../src/lib/auth-event.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC3E,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC7E,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACvE,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAC/D,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC3E,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAC/D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACvE,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACvE,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC;AACjE,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-event.types.js","sourceRoot":"","sources":["../../../src/lib/auth-event.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cors-flag.types.d.ts","sourceRoot":"","sources":["../../../src/lib/cors-flag.types.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cors-flag.types.js","sourceRoot":"","sources":["../../../src/lib/cors-flag.types.ts"],"names":[],"mappings":""}
|