@autentikar/step 2.1.0-alpha.7 → 2.1.0-alpha.8
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
|
@@ -5,7 +5,10 @@ interface Step {
|
|
|
5
5
|
params<TValue = unknown>(extend?: unknown): Promise<TValue | undefined>;
|
|
6
6
|
milestone(type: string, status: string, success: boolean): Promise<void>;
|
|
7
7
|
future(type: string, id: string, ttl: number): Promise<void>;
|
|
8
|
+
/** @deprecated Use addStepData*/
|
|
8
9
|
identity(organization_id: string, instance_id: string, link_session: string | undefined, identity: IdentityDto, data: StepIdentityData): Promise<any>;
|
|
10
|
+
addStepData(link_session: string | undefined, identity: IdentityDto, data: StepIdentityData): Promise<any>;
|
|
11
|
+
getStepData(type: StepIdentityData["type"], link_session: string | undefined): Promise<StepIdentityData | undefined>;
|
|
9
12
|
addVendorStat(params: {
|
|
10
13
|
vendor: string;
|
|
11
14
|
service: string;
|
|
@@ -82,10 +85,10 @@ type StepIdentityData = {
|
|
|
82
85
|
};
|
|
83
86
|
} | {
|
|
84
87
|
type: "FACE";
|
|
85
|
-
provider: "FACETEC" | "IDENTY";
|
|
86
|
-
audit_low
|
|
88
|
+
provider: "FACETEC" | "IDENTY" | "2D" | ({} & string);
|
|
89
|
+
audit_low?: string;
|
|
87
90
|
audit: string;
|
|
88
|
-
map
|
|
91
|
+
map?: string;
|
|
89
92
|
} | {
|
|
90
93
|
type: "EMAIL";
|
|
91
94
|
email: string;
|
|
@@ -96,10 +99,13 @@ type StepIdentityData = {
|
|
|
96
99
|
} | {
|
|
97
100
|
type: "CONSENT";
|
|
98
101
|
value: "OWN" | "AUTENTIKAR" | "NONE";
|
|
102
|
+
text?: string;
|
|
99
103
|
};
|
|
100
104
|
declare class StepRequest implements Step {
|
|
101
105
|
private step;
|
|
102
106
|
constructor(params: Step);
|
|
107
|
+
addStepData(link_session: string | undefined, identity: IdentityDto, data: StepIdentityData): Promise<any>;
|
|
108
|
+
getStepData(type: StepIdentityData["type"], link_session: string | undefined): Promise<StepIdentityData | undefined>;
|
|
103
109
|
addVendorStat(params: {
|
|
104
110
|
vendor: string;
|
|
105
111
|
service: string;
|
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-
|
|
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-CbAkULr8.js';
|
package/dist/index.js
CHANGED
|
@@ -99,6 +99,12 @@ var StepRequest = class {
|
|
|
99
99
|
constructor(params) {
|
|
100
100
|
this.step = params;
|
|
101
101
|
}
|
|
102
|
+
async addStepData(link_session, identity, data) {
|
|
103
|
+
return this.step.addStepData(link_session, identity, data);
|
|
104
|
+
}
|
|
105
|
+
async getStepData(type, link_session) {
|
|
106
|
+
return this.step.getStepData(type, link_session);
|
|
107
|
+
}
|
|
102
108
|
addVendorStat(params) {
|
|
103
109
|
return this.step.addVendorStat(params);
|
|
104
110
|
}
|