@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.
@@ -23,8 +23,7 @@ export declare const FlowStateSchema: Schema.Struct<{
23
23
  source: Schema.Union<[Schema.Literal<["network"]>, Schema.Literal<["sdk"]>, Schema.Literal<["dom"]>, Schema.Literal<["session"]>]>;
24
24
  flowId: Schema.NullOr<typeof Schema.String>;
25
25
  causedBy: Schema.NullOr<typeof Schema.String>;
26
- data: Schema.Union<[Schema.Struct<{
27
- _tag: Schema.Literal<["network"]>;
26
+ data: Schema.Union<[Schema.TaggedStruct<"network", {
28
27
  url: typeof Schema.String;
29
28
  method: typeof Schema.String;
30
29
  status: typeof Schema.Number;
@@ -41,8 +40,7 @@ export declare const FlowStateSchema: Schema.Struct<{
41
40
  }>>;
42
41
  requestBody: Schema.optional<typeof Schema.Unknown>;
43
42
  responseBody: Schema.optional<typeof Schema.Unknown>;
44
- }>, Schema.Struct<{
45
- _tag: Schema.Literal<["sdk"]>;
43
+ }>, Schema.TaggedStruct<"sdk", {
46
44
  nodeStatus: typeof Schema.String;
47
45
  previousStatus: Schema.optional<typeof Schema.String>;
48
46
  interactionId: Schema.optional<typeof Schema.String>;
@@ -66,20 +64,16 @@ export declare const FlowStateSchema: Schema.Struct<{
66
64
  }>>;
67
65
  session: Schema.optional<typeof Schema.String>;
68
66
  responseBody: Schema.optional<typeof Schema.Unknown>;
69
- }>, Schema.Struct<{
70
- _tag: Schema.Literal<["sdk-config"]>;
67
+ }>, Schema.TaggedStruct<"sdk-config", {
71
68
  config: typeof Schema.Unknown;
72
- }>, Schema.Struct<{
73
- _tag: Schema.Literal<["dom"]>;
69
+ }>, Schema.TaggedStruct<"dom", {
74
70
  element: Schema.optional<typeof Schema.String>;
75
71
  url: Schema.optional<typeof Schema.String>;
76
- }>, Schema.Struct<{
77
- _tag: Schema.Literal<["session"]>;
72
+ }>, Schema.TaggedStruct<"session", {
78
73
  key: typeof Schema.String;
79
74
  before: Schema.optional<typeof Schema.String>;
80
75
  after: Schema.optional<typeof Schema.String>;
81
- }>, Schema.Struct<{
82
- _tag: Schema.Literal<["journey"]>;
76
+ }>, Schema.TaggedStruct<"journey", {
83
77
  stepType: Schema.Union<[Schema.Literal<["Step"]>, Schema.Literal<["LoginSuccess"]>, Schema.Literal<["LoginFailure"]>]>;
84
78
  callbacks: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
85
79
  authId: Schema.optional<typeof Schema.String>;
@@ -92,8 +86,7 @@ export declare const FlowStateSchema: Schema.Struct<{
92
86
  errorCode: Schema.optional<typeof Schema.Number>;
93
87
  errorMessage: Schema.optional<typeof Schema.String>;
94
88
  errorReason: Schema.optional<typeof Schema.String>;
95
- }>, Schema.Struct<{
96
- _tag: Schema.Literal<["oidc"]>;
89
+ }>, Schema.TaggedStruct<"oidc", {
97
90
  phase: Schema.Union<[Schema.Literal<["authorize"]>, Schema.Literal<["exchange"]>, Schema.Literal<["revoke"]>, Schema.Literal<["userinfo"]>, Schema.Literal<["logout"]>]>;
98
91
  status: Schema.Union<[Schema.Literal<["success"]>, Schema.Literal<["error"]>]>;
99
92
  clientId: Schema.optional<typeof Schema.String>;
@@ -105,12 +98,11 @@ export declare const FlowStateSchema: Schema.Struct<{
105
98
  isError: typeof Schema.Boolean;
106
99
  isAuthRelated: typeof Schema.Boolean;
107
100
  }>;
108
- oidcSemantics: Schema.optional<Schema.Struct<{
109
- _tag: Schema.Literal<["oidc-semantics"]>;
101
+ oidcSemantics: Schema.optional<Schema.TaggedStruct<"oidc-semantics", {
110
102
  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
103
  grantType: Schema.optional<typeof Schema.String>;
112
104
  pkce: Schema.optional<Schema.Struct<{
113
- challengeMethod: typeof Schema.String;
105
+ challengeMethod: Schema.optional<typeof Schema.String>;
114
106
  hasVerifier: typeof Schema.Boolean;
115
107
  }>>;
116
108
  dpop: Schema.optional<Schema.Struct<{
@@ -1 +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"}
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"}