@autentikar/step 2.1.0-alpha.5 → 2.1.0-alpha.7

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/context.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as StorageItem, a as Step } from './index-CwsFhl0J.js';
1
+ import { S as StorageItem, a as Step } from './index-Mf6wbjK6.js';
2
2
  import 'file-type/core';
3
3
  import 'zod';
4
4
 
@@ -67,6 +67,7 @@ declare class AutentikarResponse extends Response {
67
67
  output: unknown;
68
68
  } & Record<string, unknown>) | undefined;
69
69
  readonly next: string | undefined;
70
+ readonly error: string | undefined;
70
71
  constructor(bodyInit?: BodyInit | null, init?: AutentikarResponseInit);
71
72
  static json(data: any, init: AutentikarResponseInit): AutentikarResponse;
72
73
  }
@@ -92,6 +93,9 @@ type StepIdentityData = {
92
93
  type: "CELLPHONE";
93
94
  cellphone: string;
94
95
  country?: string;
96
+ } | {
97
+ type: "CONSENT";
98
+ value: "OWN" | "AUTENTIKAR" | "NONE";
95
99
  };
96
100
  declare class StepRequest implements Step {
97
101
  private step;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import 'file-type/core';
2
2
  import 'zod';
3
- export { m as AppEnv, l as AppEnvVariables, f as AppEnvironments, A as AutentikarRequest, b as AutentikarResponse, F as FlowContext, e as IdentityDto, I as IdentitySchemaDto, k as Method, h as MethodContextFlow, i as MethodContextInstance, M as MethodContextOrganization, j as MethodContextStep, P as PersistentType, R as Resource, g as Staging, p as StepContext, n as StepDefinition, c as StepIdentityData, o as StepInstance, d as StepRequest, S as StorageItem } from './index-CwsFhl0J.js';
3
+ export { m as AppEnv, l as AppEnvVariables, f as AppEnvironments, A as AutentikarRequest, b as AutentikarResponse, F as FlowContext, e as IdentityDto, I as IdentitySchemaDto, k as Method, h as MethodContextFlow, i as MethodContextInstance, M as MethodContextOrganization, j as MethodContextStep, P as PersistentType, R as Resource, g as Staging, p as StepContext, n as StepDefinition, c as StepIdentityData, o as StepInstance, d as StepRequest, S as StorageItem } from './index-Mf6wbjK6.js';
package/dist/index.js CHANGED
@@ -73,12 +73,14 @@ var AutentikarResponse = class _AutentikarResponse extends Response {
73
73
  akStatus;
74
74
  data;
75
75
  next;
76
+ error;
76
77
  constructor(bodyInit, init) {
77
78
  super(bodyInit, init);
78
79
  this.success = init?.success;
79
80
  this.akStatus = init?.akStatus;
80
81
  this.data = init?.data;
81
82
  this.next = init?.next;
83
+ this.error = init?.error;
82
84
  }
83
85
  static json(data, init) {
84
86
  const body = JSON.stringify(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autentikar/step",
3
- "version": "2.1.0-alpha.5",
3
+ "version": "2.1.0-alpha.7",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist"