@wolfcola/devtools-types 0.0.0 → 1.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/README.md +256 -0
- package/dist/src/lib/auth-event.schema.d.ts +19 -35
- package/dist/src/lib/auth-event.schema.d.ts.map +1 -1
- package/dist/src/lib/auth-event.schema.js +9 -17
- package/dist/src/lib/auth-event.schema.js.map +1 -1
- package/dist/src/lib/flow-export.schema.d.ts +9 -17
- package/dist/src/lib/flow-export.schema.d.ts.map +1 -1
- package/dist/src/lib/flow-state.schema.d.ts +9 -17
- package/dist/src/lib/flow-state.schema.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +11 -3
package/README.md
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
# @wolfcola/devtools-types
|
|
2
|
+
|
|
3
|
+
Shared [Effect Schema](https://effect.website/docs/schema/introduction/) definitions and TypeScript types for WolfCola DevTools. This package is the single source of truth for the shape of every event that flows between the SDK bridges and the DevTools extension.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- [Installation](#installation)
|
|
8
|
+
- [AuthEvent](#authevent)
|
|
9
|
+
- [Data variants](#data-variants)
|
|
10
|
+
- [NetworkData](#networkdata)
|
|
11
|
+
- [SdkData — DaVinci](#sdkdata--davinci)
|
|
12
|
+
- [JourneyData — AM trees](#journeydata--am-trees)
|
|
13
|
+
- [OidcData — OIDC/OAuth](#oidcdata--oidcoauth)
|
|
14
|
+
- [SessionData](#sessiondata)
|
|
15
|
+
- [SdkConfigData](#sdkconfigdata)
|
|
16
|
+
- [DomData](#domdata)
|
|
17
|
+
- [Runtime validation](#runtime-validation)
|
|
18
|
+
- [Exported symbols](#exported-symbols)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pnpm add @wolfcola/devtools-types
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`effect` is a peer dependency — add it to your project if it isn't already present.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## AuthEvent
|
|
33
|
+
|
|
34
|
+
Every event, regardless of source, conforms to the `AuthEvent` envelope:
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
import type { AuthEvent } from '@wolfcola/devtools-types';
|
|
38
|
+
|
|
39
|
+
// Shape
|
|
40
|
+
{
|
|
41
|
+
id: string; // crypto.randomUUID()
|
|
42
|
+
timestamp: number; // performance.now()
|
|
43
|
+
type: AuthEventType; // e.g. 'sdk:node-change', 'network:response'
|
|
44
|
+
source: 'network' | 'sdk' | 'dom' | 'session';
|
|
45
|
+
flowId: string | null;
|
|
46
|
+
causedBy: string | null;
|
|
47
|
+
data: NetworkData | SdkData | JourneyData | OidcData | SessionData | SdkConfigData | DomData;
|
|
48
|
+
flags: {
|
|
49
|
+
isCors: boolean;
|
|
50
|
+
isError: boolean;
|
|
51
|
+
isAuthRelated: boolean;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Event types
|
|
57
|
+
|
|
58
|
+
| `type` | `source` | Description |
|
|
59
|
+
| ------------------- | --------- | ------------------------------------- |
|
|
60
|
+
| `network:request` | `network` | Outbound HTTP request captured by HAR |
|
|
61
|
+
| `network:response` | `network` | HTTP response with status + headers |
|
|
62
|
+
| `network:cors-flag` | `network` | Detected CORS policy violation |
|
|
63
|
+
| `sdk:node-change` | `sdk` | DaVinci node status transition |
|
|
64
|
+
| `sdk:config` | `sdk` | SDK client configuration snapshot |
|
|
65
|
+
| `sdk:journey-step` | `sdk` | AM authentication tree step result |
|
|
66
|
+
| `sdk:oidc-state` | `sdk` | OIDC/OAuth endpoint outcome |
|
|
67
|
+
| `dom:form-submit` | `dom` | Form submission detected in the page |
|
|
68
|
+
| `dom:redirect` | `dom` | Client-side redirect detected |
|
|
69
|
+
| `session:cookie` | `session` | `document.cookie` changed |
|
|
70
|
+
| `session:storage` | `session` | `localStorage` key changed |
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Data variants
|
|
75
|
+
|
|
76
|
+
The `data` field is a discriminated union — use `_tag` to narrow it.
|
|
77
|
+
|
|
78
|
+
### NetworkData
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
{
|
|
82
|
+
_tag: 'network';
|
|
83
|
+
url: string;
|
|
84
|
+
method: string;
|
|
85
|
+
status: number;
|
|
86
|
+
requestHeaders: Record<string, string>;
|
|
87
|
+
responseHeaders: Record<string, string>;
|
|
88
|
+
duration: number;
|
|
89
|
+
corsFlag?: CorsFlag;
|
|
90
|
+
requestBody?: unknown;
|
|
91
|
+
responseBody?: unknown;
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
`CorsFlag` carries the reason (`'status-zero' | 'missing-allow-origin' | 'credentials-mismatch' | 'wildcard-with-credentials' | 'preflight-failed'`) plus optional preflight details.
|
|
96
|
+
|
|
97
|
+
### SdkData — DaVinci
|
|
98
|
+
|
|
99
|
+
Emitted on every DaVinci node status transition by `attachDevToolsBridge`.
|
|
100
|
+
|
|
101
|
+
```ts
|
|
102
|
+
{
|
|
103
|
+
_tag: 'sdk';
|
|
104
|
+
nodeStatus: string; // 'next' | 'error' | 'success' | ...
|
|
105
|
+
previousStatus?: string;
|
|
106
|
+
interactionId?: string;
|
|
107
|
+
interactionToken?: string;
|
|
108
|
+
nodeId?: string;
|
|
109
|
+
requestId?: string; // DaVinci cache key (maps to raw HTTP response)
|
|
110
|
+
nodeName?: string;
|
|
111
|
+
nodeDescription?: string;
|
|
112
|
+
eventName?: string;
|
|
113
|
+
httpStatus?: number;
|
|
114
|
+
collectors?: unknown[]; // Form fields / UI descriptors
|
|
115
|
+
error?: SdkError;
|
|
116
|
+
authorization?: SdkAuthorization;
|
|
117
|
+
session?: string;
|
|
118
|
+
responseBody?: unknown; // Full DaVinci server response (from cache)
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### JourneyData — AM trees
|
|
123
|
+
|
|
124
|
+
Emitted by `attachJourneyBridge` for each RTK Query mutation that settles.
|
|
125
|
+
|
|
126
|
+
```ts
|
|
127
|
+
{
|
|
128
|
+
_tag: 'journey';
|
|
129
|
+
stepType: 'Step' | 'LoginSuccess' | 'LoginFailure';
|
|
130
|
+
callbacks?: unknown[]; // Full AM callback objects (with input/output arrays)
|
|
131
|
+
authId?: string; // Present on Step
|
|
132
|
+
tokenId?: string; // Present on LoginSuccess (session token)
|
|
133
|
+
successUrl?: string; // Present on LoginSuccess
|
|
134
|
+
realm?: string;
|
|
135
|
+
stage?: string;
|
|
136
|
+
header?: string;
|
|
137
|
+
description?: string;
|
|
138
|
+
errorCode?: number; // Present on LoginFailure
|
|
139
|
+
errorMessage?: string;
|
|
140
|
+
errorReason?: string;
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### OidcData — OIDC/OAuth
|
|
145
|
+
|
|
146
|
+
Emitted by `attachOidcBridge` for each RTK Query mutation that settles.
|
|
147
|
+
|
|
148
|
+
```ts
|
|
149
|
+
{
|
|
150
|
+
_tag: 'oidc';
|
|
151
|
+
phase: 'authorize' | 'exchange' | 'revoke' | 'userinfo' | 'logout';
|
|
152
|
+
status: 'success' | 'error';
|
|
153
|
+
clientId?: string;
|
|
154
|
+
errorCode?: string; // OAuth error code (e.g. 'invalid_grant')
|
|
155
|
+
errorMessage?: string; // Human-readable error description
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### SessionData
|
|
160
|
+
|
|
161
|
+
```ts
|
|
162
|
+
{
|
|
163
|
+
_tag: 'session';
|
|
164
|
+
key: string; // localStorage key or 'document.cookie'
|
|
165
|
+
before?: string;
|
|
166
|
+
after?: string;
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### SdkConfigData
|
|
171
|
+
|
|
172
|
+
```ts
|
|
173
|
+
{
|
|
174
|
+
_tag: 'sdk-config';
|
|
175
|
+
config: unknown; // The raw config object passed to attachDevToolsBridge
|
|
176
|
+
}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### DomData
|
|
180
|
+
|
|
181
|
+
```ts
|
|
182
|
+
{
|
|
183
|
+
_tag: 'dom';
|
|
184
|
+
element?: string; // CSS selector of the form element
|
|
185
|
+
url?: string; // Redirect target URL
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Runtime validation
|
|
192
|
+
|
|
193
|
+
All schemas are [Effect Schema](https://effect.website/docs/schema/introduction/) definitions — use them directly for decoding untrusted data at message boundaries.
|
|
194
|
+
|
|
195
|
+
```ts
|
|
196
|
+
import { Schema } from 'effect';
|
|
197
|
+
import { AuthEventSchema } from '@wolfcola/devtools-types';
|
|
198
|
+
|
|
199
|
+
const decode = Schema.decodeUnknownEither(AuthEventSchema);
|
|
200
|
+
|
|
201
|
+
// In a service worker or message handler:
|
|
202
|
+
const result = decode(rawMessage);
|
|
203
|
+
if (Either.isLeft(result)) {
|
|
204
|
+
// validation failed — result.left carries detailed parse errors
|
|
205
|
+
} else {
|
|
206
|
+
const event = result.right; // AuthEvent, fully typed
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Exported symbols
|
|
213
|
+
|
|
214
|
+
| Export | Kind | Description |
|
|
215
|
+
| ------------------------ | ------ | ------------------------------------ |
|
|
216
|
+
| `AuthEventSchema` | Schema | Full envelope validator |
|
|
217
|
+
| `AuthEventTypeSchema` | Schema | Union of all event type literals |
|
|
218
|
+
| `AuthEventFlagsSchema` | Schema | `{ isCors, isError, isAuthRelated }` |
|
|
219
|
+
| `NetworkDataSchema` | Schema | Network event data |
|
|
220
|
+
| `SdkDataSchema` | Schema | DaVinci SDK node data |
|
|
221
|
+
| `SdkConfigDataSchema` | Schema | SDK config snapshot |
|
|
222
|
+
| `JourneyDataSchema` | Schema | AM journey step data |
|
|
223
|
+
| `OidcDataSchema` | Schema | OIDC/OAuth phase data |
|
|
224
|
+
| `SessionDataSchema` | Schema | Cookie / localStorage diff |
|
|
225
|
+
| `DomDataSchema` | Schema | DOM event data |
|
|
226
|
+
| `SdkErrorSchema` | Schema | Error object sub-schema |
|
|
227
|
+
| `SdkAuthorizationSchema` | Schema | Authorization code/state sub-schema |
|
|
228
|
+
| `AuthEvent` | Type | Inferred from `AuthEventSchema` |
|
|
229
|
+
| `AuthEventType` | Type | Inferred from `AuthEventTypeSchema` |
|
|
230
|
+
| `AuthEventFlags` | Type | Inferred from `AuthEventFlagsSchema` |
|
|
231
|
+
| `NetworkData` | Type | Inferred from `NetworkDataSchema` |
|
|
232
|
+
| `SdkData` | Type | Inferred from `SdkDataSchema` |
|
|
233
|
+
| `JourneyData` | Type | Inferred from `JourneyDataSchema` |
|
|
234
|
+
| `OidcData` | Type | Inferred from `OidcDataSchema` |
|
|
235
|
+
| `SessionData` | Type | Inferred from `SessionDataSchema` |
|
|
236
|
+
| `SdkConfigData` | Type | Inferred from `SdkConfigDataSchema` |
|
|
237
|
+
| `DomData` | Type | Inferred from `DomDataSchema` |
|
|
238
|
+
| `FlowStateSchema` | Schema | Aggregated event collection |
|
|
239
|
+
| `FlowState` | Type | Inferred from `FlowStateSchema` |
|
|
240
|
+
| `FlowExportSchema` | Schema | Versioned export envelope |
|
|
241
|
+
| `FlowExport` | Type | Inferred from `FlowExportSchema` |
|
|
242
|
+
| `OidcSemanticsSchema` | Schema | OIDC phase annotation |
|
|
243
|
+
| `OidcSemantics` | Type | Inferred from `OidcSemanticsSchema` |
|
|
244
|
+
| `CorsFlagSchema` | Schema | CORS violation data |
|
|
245
|
+
| `CorsFlag` | Type | Inferred from `CorsFlagSchema` |
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## Consumers
|
|
250
|
+
|
|
251
|
+
This package is used by all other packages in the monorepo:
|
|
252
|
+
|
|
253
|
+
- **[`devtools-core`](../devtools-core)** — annotators and diagnosis engine operate on these types
|
|
254
|
+
- **[`devtools-extension`](../devtools-extension)** — browser extension
|
|
255
|
+
- **[`vscode-extension`](../vscode-extension)** — VS Code extension
|
|
256
|
+
- **[`devtools-bridge`](../devtools-bridge)** — SDK adapter emits AuthEvents
|
|
@@ -14,8 +14,7 @@ export declare const CorsFlagSchema: Schema.Struct<{
|
|
|
14
14
|
allowCredentials: Schema.optional<typeof Schema.String>;
|
|
15
15
|
}>;
|
|
16
16
|
export type CorsFlag = Schema.Schema.Type<typeof CorsFlagSchema>;
|
|
17
|
-
export declare const NetworkDataSchema: Schema.
|
|
18
|
-
_tag: Schema.Literal<["network"]>;
|
|
17
|
+
export declare const NetworkDataSchema: Schema.TaggedStruct<"network", {
|
|
19
18
|
url: typeof Schema.String;
|
|
20
19
|
method: typeof Schema.String;
|
|
21
20
|
status: typeof Schema.Number;
|
|
@@ -43,8 +42,7 @@ export declare const SdkAuthorizationSchema: Schema.Struct<{
|
|
|
43
42
|
code: Schema.optional<typeof Schema.String>;
|
|
44
43
|
state: Schema.optional<typeof Schema.String>;
|
|
45
44
|
}>;
|
|
46
|
-
export declare const SdkDataSchema: Schema.
|
|
47
|
-
_tag: Schema.Literal<["sdk"]>;
|
|
45
|
+
export declare const SdkDataSchema: Schema.TaggedStruct<"sdk", {
|
|
48
46
|
nodeStatus: typeof Schema.String;
|
|
49
47
|
previousStatus: Schema.optional<typeof Schema.String>;
|
|
50
48
|
interactionId: Schema.optional<typeof Schema.String>;
|
|
@@ -69,23 +67,19 @@ export declare const SdkDataSchema: Schema.Struct<{
|
|
|
69
67
|
session: Schema.optional<typeof Schema.String>;
|
|
70
68
|
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
71
69
|
}>;
|
|
72
|
-
export declare const SdkConfigDataSchema: Schema.
|
|
73
|
-
_tag: Schema.Literal<["sdk-config"]>;
|
|
70
|
+
export declare const SdkConfigDataSchema: Schema.TaggedStruct<"sdk-config", {
|
|
74
71
|
config: typeof Schema.Unknown;
|
|
75
72
|
}>;
|
|
76
|
-
export declare const DomDataSchema: Schema.
|
|
77
|
-
_tag: Schema.Literal<["dom"]>;
|
|
73
|
+
export declare const DomDataSchema: Schema.TaggedStruct<"dom", {
|
|
78
74
|
element: Schema.optional<typeof Schema.String>;
|
|
79
75
|
url: Schema.optional<typeof Schema.String>;
|
|
80
76
|
}>;
|
|
81
|
-
export declare const SessionDataSchema: Schema.
|
|
82
|
-
_tag: Schema.Literal<["session"]>;
|
|
77
|
+
export declare const SessionDataSchema: Schema.TaggedStruct<"session", {
|
|
83
78
|
key: typeof Schema.String;
|
|
84
79
|
before: Schema.optional<typeof Schema.String>;
|
|
85
80
|
after: Schema.optional<typeof Schema.String>;
|
|
86
81
|
}>;
|
|
87
|
-
export declare const JourneyDataSchema: Schema.
|
|
88
|
-
_tag: Schema.Literal<["journey"]>;
|
|
82
|
+
export declare const JourneyDataSchema: Schema.TaggedStruct<"journey", {
|
|
89
83
|
stepType: Schema.Union<[Schema.Literal<["Step"]>, Schema.Literal<["LoginSuccess"]>, Schema.Literal<["LoginFailure"]>]>;
|
|
90
84
|
callbacks: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
91
85
|
authId: Schema.optional<typeof Schema.String>;
|
|
@@ -99,8 +93,7 @@ export declare const JourneyDataSchema: Schema.Struct<{
|
|
|
99
93
|
errorMessage: Schema.optional<typeof Schema.String>;
|
|
100
94
|
errorReason: Schema.optional<typeof Schema.String>;
|
|
101
95
|
}>;
|
|
102
|
-
export declare const OidcDataSchema: Schema.
|
|
103
|
-
_tag: Schema.Literal<["oidc"]>;
|
|
96
|
+
export declare const OidcDataSchema: Schema.TaggedStruct<"oidc", {
|
|
104
97
|
phase: Schema.Union<[Schema.Literal<["authorize"]>, Schema.Literal<["exchange"]>, Schema.Literal<["revoke"]>, Schema.Literal<["userinfo"]>, Schema.Literal<["logout"]>]>;
|
|
105
98
|
status: Schema.Union<[Schema.Literal<["success"]>, Schema.Literal<["error"]>]>;
|
|
106
99
|
clientId: Schema.optional<typeof Schema.String>;
|
|
@@ -108,7 +101,7 @@ export declare const OidcDataSchema: Schema.Struct<{
|
|
|
108
101
|
errorMessage: Schema.optional<typeof Schema.String>;
|
|
109
102
|
}>;
|
|
110
103
|
export declare const OidcPkceSchema: Schema.Struct<{
|
|
111
|
-
challengeMethod: typeof Schema.String
|
|
104
|
+
challengeMethod: Schema.optional<typeof Schema.String>;
|
|
112
105
|
hasVerifier: typeof Schema.Boolean;
|
|
113
106
|
}>;
|
|
114
107
|
export declare const OidcDpopSchema: Schema.Struct<{
|
|
@@ -131,12 +124,11 @@ export declare const OidcErrorSchema: Schema.Struct<{
|
|
|
131
124
|
error: typeof Schema.String;
|
|
132
125
|
errorDescription: Schema.optional<typeof Schema.String>;
|
|
133
126
|
}>;
|
|
134
|
-
export declare const OidcSemanticsSchema: Schema.
|
|
135
|
-
_tag: Schema.Literal<["oidc-semantics"]>;
|
|
127
|
+
export declare const OidcSemanticsSchema: Schema.TaggedStruct<"oidc-semantics", {
|
|
136
128
|
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
129
|
grantType: Schema.optional<typeof Schema.String>;
|
|
138
130
|
pkce: Schema.optional<Schema.Struct<{
|
|
139
|
-
challengeMethod: typeof Schema.String
|
|
131
|
+
challengeMethod: Schema.optional<typeof Schema.String>;
|
|
140
132
|
hasVerifier: typeof Schema.Boolean;
|
|
141
133
|
}>>;
|
|
142
134
|
dpop: Schema.optional<Schema.Struct<{
|
|
@@ -171,8 +163,7 @@ export declare const AuthEventSchema: Schema.Struct<{
|
|
|
171
163
|
source: Schema.Union<[Schema.Literal<["network"]>, Schema.Literal<["sdk"]>, Schema.Literal<["dom"]>, Schema.Literal<["session"]>]>;
|
|
172
164
|
flowId: Schema.NullOr<typeof Schema.String>;
|
|
173
165
|
causedBy: Schema.NullOr<typeof Schema.String>;
|
|
174
|
-
data: Schema.Union<[Schema.
|
|
175
|
-
_tag: Schema.Literal<["network"]>;
|
|
166
|
+
data: Schema.Union<[Schema.TaggedStruct<"network", {
|
|
176
167
|
url: typeof Schema.String;
|
|
177
168
|
method: typeof Schema.String;
|
|
178
169
|
status: typeof Schema.Number;
|
|
@@ -189,8 +180,7 @@ export declare const AuthEventSchema: Schema.Struct<{
|
|
|
189
180
|
}>>;
|
|
190
181
|
requestBody: Schema.optional<typeof Schema.Unknown>;
|
|
191
182
|
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
192
|
-
}>, Schema.
|
|
193
|
-
_tag: Schema.Literal<["sdk"]>;
|
|
183
|
+
}>, Schema.TaggedStruct<"sdk", {
|
|
194
184
|
nodeStatus: typeof Schema.String;
|
|
195
185
|
previousStatus: Schema.optional<typeof Schema.String>;
|
|
196
186
|
interactionId: Schema.optional<typeof Schema.String>;
|
|
@@ -214,20 +204,16 @@ export declare const AuthEventSchema: Schema.Struct<{
|
|
|
214
204
|
}>>;
|
|
215
205
|
session: Schema.optional<typeof Schema.String>;
|
|
216
206
|
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
217
|
-
}>, Schema.
|
|
218
|
-
_tag: Schema.Literal<["sdk-config"]>;
|
|
207
|
+
}>, Schema.TaggedStruct<"sdk-config", {
|
|
219
208
|
config: typeof Schema.Unknown;
|
|
220
|
-
}>, Schema.
|
|
221
|
-
_tag: Schema.Literal<["dom"]>;
|
|
209
|
+
}>, Schema.TaggedStruct<"dom", {
|
|
222
210
|
element: Schema.optional<typeof Schema.String>;
|
|
223
211
|
url: Schema.optional<typeof Schema.String>;
|
|
224
|
-
}>, Schema.
|
|
225
|
-
_tag: Schema.Literal<["session"]>;
|
|
212
|
+
}>, Schema.TaggedStruct<"session", {
|
|
226
213
|
key: typeof Schema.String;
|
|
227
214
|
before: Schema.optional<typeof Schema.String>;
|
|
228
215
|
after: Schema.optional<typeof Schema.String>;
|
|
229
|
-
}>, Schema.
|
|
230
|
-
_tag: Schema.Literal<["journey"]>;
|
|
216
|
+
}>, Schema.TaggedStruct<"journey", {
|
|
231
217
|
stepType: Schema.Union<[Schema.Literal<["Step"]>, Schema.Literal<["LoginSuccess"]>, Schema.Literal<["LoginFailure"]>]>;
|
|
232
218
|
callbacks: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
233
219
|
authId: Schema.optional<typeof Schema.String>;
|
|
@@ -240,8 +226,7 @@ export declare const AuthEventSchema: Schema.Struct<{
|
|
|
240
226
|
errorCode: Schema.optional<typeof Schema.Number>;
|
|
241
227
|
errorMessage: Schema.optional<typeof Schema.String>;
|
|
242
228
|
errorReason: Schema.optional<typeof Schema.String>;
|
|
243
|
-
}>, Schema.
|
|
244
|
-
_tag: Schema.Literal<["oidc"]>;
|
|
229
|
+
}>, Schema.TaggedStruct<"oidc", {
|
|
245
230
|
phase: Schema.Union<[Schema.Literal<["authorize"]>, Schema.Literal<["exchange"]>, Schema.Literal<["revoke"]>, Schema.Literal<["userinfo"]>, Schema.Literal<["logout"]>]>;
|
|
246
231
|
status: Schema.Union<[Schema.Literal<["success"]>, Schema.Literal<["error"]>]>;
|
|
247
232
|
clientId: Schema.optional<typeof Schema.String>;
|
|
@@ -253,12 +238,11 @@ export declare const AuthEventSchema: Schema.Struct<{
|
|
|
253
238
|
isError: typeof Schema.Boolean;
|
|
254
239
|
isAuthRelated: typeof Schema.Boolean;
|
|
255
240
|
}>;
|
|
256
|
-
oidcSemantics: Schema.optional<Schema.
|
|
257
|
-
_tag: Schema.Literal<["oidc-semantics"]>;
|
|
241
|
+
oidcSemantics: Schema.optional<Schema.TaggedStruct<"oidc-semantics", {
|
|
258
242
|
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
243
|
grantType: Schema.optional<typeof Schema.String>;
|
|
260
244
|
pkce: Schema.optional<Schema.Struct<{
|
|
261
|
-
challengeMethod: typeof Schema.String
|
|
245
|
+
challengeMethod: Schema.optional<typeof Schema.String>;
|
|
262
246
|
hasVerifier: typeof Schema.Boolean;
|
|
263
247
|
}>>;
|
|
264
248
|
dpop: Schema.optional<Schema.Struct<{
|
|
@@ -1 +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
|
|
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;;;;;;;;;;;;;;;;;EAU5B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;EAGjC,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAgBxB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;EAE9B,CAAC;AAEH,eAAO,MAAM,aAAa;;;EAGxB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;EAI5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;EAiB5B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;EAYzB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE3E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB1B,CAAC"}
|
|
@@ -13,8 +13,7 @@ export const CorsFlagSchema = Schema.Struct({
|
|
|
13
13
|
allowOrigin: Schema.optional(Schema.String),
|
|
14
14
|
allowCredentials: Schema.optional(Schema.String),
|
|
15
15
|
});
|
|
16
|
-
export const NetworkDataSchema = Schema.
|
|
17
|
-
_tag: Schema.Literal('network'),
|
|
16
|
+
export const NetworkDataSchema = Schema.TaggedStruct('network', {
|
|
18
17
|
url: Schema.String,
|
|
19
18
|
method: Schema.String,
|
|
20
19
|
status: Schema.Number,
|
|
@@ -35,8 +34,7 @@ export const SdkAuthorizationSchema = Schema.Struct({
|
|
|
35
34
|
code: Schema.optional(Schema.String),
|
|
36
35
|
state: Schema.optional(Schema.String),
|
|
37
36
|
});
|
|
38
|
-
export const SdkDataSchema = Schema.
|
|
39
|
-
_tag: Schema.Literal('sdk'),
|
|
37
|
+
export const SdkDataSchema = Schema.TaggedStruct('sdk', {
|
|
40
38
|
nodeStatus: Schema.String,
|
|
41
39
|
previousStatus: Schema.optional(Schema.String),
|
|
42
40
|
interactionId: Schema.optional(Schema.String),
|
|
@@ -53,23 +51,19 @@ export const SdkDataSchema = Schema.Struct({
|
|
|
53
51
|
session: Schema.optional(Schema.String),
|
|
54
52
|
responseBody: Schema.optional(Schema.Unknown),
|
|
55
53
|
});
|
|
56
|
-
export const SdkConfigDataSchema = Schema.
|
|
57
|
-
_tag: Schema.Literal('sdk-config'),
|
|
54
|
+
export const SdkConfigDataSchema = Schema.TaggedStruct('sdk-config', {
|
|
58
55
|
config: Schema.Unknown,
|
|
59
56
|
});
|
|
60
|
-
export const DomDataSchema = Schema.
|
|
61
|
-
_tag: Schema.Literal('dom'),
|
|
57
|
+
export const DomDataSchema = Schema.TaggedStruct('dom', {
|
|
62
58
|
element: Schema.optional(Schema.String),
|
|
63
59
|
url: Schema.optional(Schema.String),
|
|
64
60
|
});
|
|
65
|
-
export const SessionDataSchema = Schema.
|
|
66
|
-
_tag: Schema.Literal('session'),
|
|
61
|
+
export const SessionDataSchema = Schema.TaggedStruct('session', {
|
|
67
62
|
key: Schema.String,
|
|
68
63
|
before: Schema.optional(Schema.String),
|
|
69
64
|
after: Schema.optional(Schema.String),
|
|
70
65
|
});
|
|
71
|
-
export const JourneyDataSchema = Schema.
|
|
72
|
-
_tag: Schema.Literal('journey'),
|
|
66
|
+
export const JourneyDataSchema = Schema.TaggedStruct('journey', {
|
|
73
67
|
stepType: Schema.Union(Schema.Literal('Step'), Schema.Literal('LoginSuccess'), Schema.Literal('LoginFailure')),
|
|
74
68
|
callbacks: Schema.optional(Schema.Array(Schema.Unknown)),
|
|
75
69
|
authId: Schema.optional(Schema.String),
|
|
@@ -83,8 +77,7 @@ export const JourneyDataSchema = Schema.Struct({
|
|
|
83
77
|
errorMessage: Schema.optional(Schema.String),
|
|
84
78
|
errorReason: Schema.optional(Schema.String),
|
|
85
79
|
});
|
|
86
|
-
export const OidcDataSchema = Schema.
|
|
87
|
-
_tag: Schema.Literal('oidc'),
|
|
80
|
+
export const OidcDataSchema = Schema.TaggedStruct('oidc', {
|
|
88
81
|
phase: Schema.Union(Schema.Literal('authorize'), Schema.Literal('exchange'), Schema.Literal('revoke'), Schema.Literal('userinfo'), Schema.Literal('logout')),
|
|
89
82
|
status: Schema.Union(Schema.Literal('success'), Schema.Literal('error')),
|
|
90
83
|
clientId: Schema.optional(Schema.String),
|
|
@@ -92,7 +85,7 @@ export const OidcDataSchema = Schema.Struct({
|
|
|
92
85
|
errorMessage: Schema.optional(Schema.String),
|
|
93
86
|
});
|
|
94
87
|
export const OidcPkceSchema = Schema.Struct({
|
|
95
|
-
challengeMethod: Schema.String,
|
|
88
|
+
challengeMethod: Schema.optional(Schema.String),
|
|
96
89
|
hasVerifier: Schema.Boolean,
|
|
97
90
|
});
|
|
98
91
|
export const OidcDpopSchema = Schema.Struct({
|
|
@@ -115,8 +108,7 @@ export const OidcErrorSchema = Schema.Struct({
|
|
|
115
108
|
error: Schema.String,
|
|
116
109
|
errorDescription: Schema.optional(Schema.String),
|
|
117
110
|
});
|
|
118
|
-
export const OidcSemanticsSchema = Schema.
|
|
119
|
-
_tag: Schema.Literal('oidc-semantics'),
|
|
111
|
+
export const OidcSemanticsSchema = Schema.TaggedStruct('oidc-semantics', {
|
|
120
112
|
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
113
|
grantType: Schema.optional(Schema.String),
|
|
122
114
|
pkce: Schema.optional(OidcPkceSchema),
|
|
@@ -1 +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,iBAAiB,CAAC,EACjC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAC5B,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAC5B,MAAM,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAClC,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAChC,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,EACjC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,EAC9B,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAChC,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,MAAM,CAAC,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC,OAAO;IACvB,aAAa,EAAE,MAAM,CAAC,OAAO;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,GAAG,EAAE,MAAM,CAAC,MAAM;IAClB,MAAM,EAAE,MAAM,CAAC,KAAK,CAClB,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,EAC7B,MAAM,CAAC,OAAO,CAAC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AAa,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;CACxC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,IAAI,EAAE,mBAAmB;IACzB,MAAM,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"}
|
|
@@ -13,8 +13,7 @@ export declare const FlowExportSchema: Schema.Struct<{
|
|
|
13
13
|
source: Schema.Union<[Schema.Literal<["network"]>, Schema.Literal<["sdk"]>, Schema.Literal<["dom"]>, Schema.Literal<["session"]>]>;
|
|
14
14
|
flowId: Schema.NullOr<typeof Schema.String>;
|
|
15
15
|
causedBy: Schema.NullOr<typeof Schema.String>;
|
|
16
|
-
data: Schema.Union<[Schema.
|
|
17
|
-
_tag: Schema.Literal<["network"]>;
|
|
16
|
+
data: Schema.Union<[Schema.TaggedStruct<"network", {
|
|
18
17
|
url: typeof Schema.String;
|
|
19
18
|
method: typeof Schema.String;
|
|
20
19
|
status: typeof Schema.Number;
|
|
@@ -31,8 +30,7 @@ export declare const FlowExportSchema: Schema.Struct<{
|
|
|
31
30
|
}>>;
|
|
32
31
|
requestBody: Schema.optional<typeof Schema.Unknown>;
|
|
33
32
|
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
34
|
-
}>, Schema.
|
|
35
|
-
_tag: Schema.Literal<["sdk"]>;
|
|
33
|
+
}>, Schema.TaggedStruct<"sdk", {
|
|
36
34
|
nodeStatus: typeof Schema.String;
|
|
37
35
|
previousStatus: Schema.optional<typeof Schema.String>;
|
|
38
36
|
interactionId: Schema.optional<typeof Schema.String>;
|
|
@@ -56,20 +54,16 @@ export declare const FlowExportSchema: Schema.Struct<{
|
|
|
56
54
|
}>>;
|
|
57
55
|
session: Schema.optional<typeof Schema.String>;
|
|
58
56
|
responseBody: Schema.optional<typeof Schema.Unknown>;
|
|
59
|
-
}>, Schema.
|
|
60
|
-
_tag: Schema.Literal<["sdk-config"]>;
|
|
57
|
+
}>, Schema.TaggedStruct<"sdk-config", {
|
|
61
58
|
config: typeof Schema.Unknown;
|
|
62
|
-
}>, Schema.
|
|
63
|
-
_tag: Schema.Literal<["dom"]>;
|
|
59
|
+
}>, Schema.TaggedStruct<"dom", {
|
|
64
60
|
element: Schema.optional<typeof Schema.String>;
|
|
65
61
|
url: Schema.optional<typeof Schema.String>;
|
|
66
|
-
}>, Schema.
|
|
67
|
-
_tag: Schema.Literal<["session"]>;
|
|
62
|
+
}>, Schema.TaggedStruct<"session", {
|
|
68
63
|
key: typeof Schema.String;
|
|
69
64
|
before: Schema.optional<typeof Schema.String>;
|
|
70
65
|
after: Schema.optional<typeof Schema.String>;
|
|
71
|
-
}>, Schema.
|
|
72
|
-
_tag: Schema.Literal<["journey"]>;
|
|
66
|
+
}>, Schema.TaggedStruct<"journey", {
|
|
73
67
|
stepType: Schema.Union<[Schema.Literal<["Step"]>, Schema.Literal<["LoginSuccess"]>, Schema.Literal<["LoginFailure"]>]>;
|
|
74
68
|
callbacks: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
75
69
|
authId: Schema.optional<typeof Schema.String>;
|
|
@@ -82,8 +76,7 @@ export declare const FlowExportSchema: Schema.Struct<{
|
|
|
82
76
|
errorCode: Schema.optional<typeof Schema.Number>;
|
|
83
77
|
errorMessage: Schema.optional<typeof Schema.String>;
|
|
84
78
|
errorReason: Schema.optional<typeof Schema.String>;
|
|
85
|
-
}>, Schema.
|
|
86
|
-
_tag: Schema.Literal<["oidc"]>;
|
|
79
|
+
}>, Schema.TaggedStruct<"oidc", {
|
|
87
80
|
phase: Schema.Union<[Schema.Literal<["authorize"]>, Schema.Literal<["exchange"]>, Schema.Literal<["revoke"]>, Schema.Literal<["userinfo"]>, Schema.Literal<["logout"]>]>;
|
|
88
81
|
status: Schema.Union<[Schema.Literal<["success"]>, Schema.Literal<["error"]>]>;
|
|
89
82
|
clientId: Schema.optional<typeof Schema.String>;
|
|
@@ -95,12 +88,11 @@ export declare const FlowExportSchema: Schema.Struct<{
|
|
|
95
88
|
isError: typeof Schema.Boolean;
|
|
96
89
|
isAuthRelated: typeof Schema.Boolean;
|
|
97
90
|
}>;
|
|
98
|
-
oidcSemantics: Schema.optional<Schema.
|
|
99
|
-
_tag: Schema.Literal<["oidc-semantics"]>;
|
|
91
|
+
oidcSemantics: Schema.optional<Schema.TaggedStruct<"oidc-semantics", {
|
|
100
92
|
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
93
|
grantType: Schema.optional<typeof Schema.String>;
|
|
102
94
|
pkce: Schema.optional<Schema.Struct<{
|
|
103
|
-
challengeMethod: typeof Schema.String
|
|
95
|
+
challengeMethod: Schema.optional<typeof Schema.String>;
|
|
104
96
|
hasVerifier: typeof Schema.Boolean;
|
|
105
97
|
}>>;
|
|
106
98
|
dpop: Schema.optional<Schema.Struct<{
|
|
@@ -1 +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
|
|
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"}
|