@autentikar/step 2.0.0-alpha.22 → 2.0.0-alpha.24

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-ssFn-GXQ.js';
1
+ import { S as StorageItem, a as Step } from './index-UgNZaBs3.js';
2
2
  import 'file-type/core';
3
3
  import 'zod';
4
4
 
@@ -31,11 +31,14 @@ type MethodContextOrganization = {
31
31
  };
32
32
  type MethodContextFlow = {
33
33
  id: string;
34
- params: unknown;
34
+ webhook: string | undefined;
35
35
  };
36
36
  type MethodContextInstance = {
37
37
  id: string;
38
38
  };
39
+ type MethodContextStep = {
40
+ params: unknown;
41
+ };
39
42
  type PersistentType = "FILESYSTEM" | "MONGODB" | "S3" | "NFS" | "S3-MRAP" | "CDN";
40
43
  declare class StorageItem {
41
44
  readonly path: string;
@@ -56,6 +59,7 @@ type MethodContext = {
56
59
  org: MethodContextOrganization;
57
60
  flow: MethodContextFlow;
58
61
  instance: MethodContextInstance;
62
+ step: MethodContextStep;
59
63
  };
60
64
  type Method = (req: Request, output: Record<string, string>, context: MethodContext) => Promise<unknown>;
61
65
  type AppEnv = {
@@ -112,4 +116,4 @@ declare class StepContext {
112
116
  isExpired(): boolean | 0 | undefined;
113
117
  }
114
118
 
115
- export { type AppEnvironments as A, FlowContext as F, type MethodContextOrganization as M, type PersistentType as P, StorageItem as S, type Step as a, StepRequest as b, type Staging as c, type MethodContextFlow as d, type MethodContextInstance as e, type MethodContext as f, type Method as g, type AppEnv as h, StepDefinition as i, StepInstance as j, StepContext as k };
119
+ export { type AppEnvironments as A, FlowContext as F, type MethodContextOrganization as M, type PersistentType as P, StorageItem as S, type Step as a, StepRequest as b, type Staging as c, type MethodContextFlow as d, type MethodContextInstance as e, type MethodContextStep as f, type MethodContext as g, type Method as h, type AppEnv as i, StepDefinition as j, StepInstance as k, StepContext as l };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import 'file-type/core';
2
2
  import 'zod';
3
- export { h as AppEnv, A as AppEnvironments, F as FlowContext, g as Method, f as MethodContext, d as MethodContextFlow, e as MethodContextInstance, M as MethodContextOrganization, P as PersistentType, c as Staging, k as StepContext, i as StepDefinition, j as StepInstance, b as StepRequest, S as StorageItem } from './index-ssFn-GXQ.js';
3
+ export { i as AppEnv, A as AppEnvironments, F as FlowContext, h as Method, g as MethodContext, d as MethodContextFlow, e as MethodContextInstance, M as MethodContextOrganization, f as MethodContextStep, P as PersistentType, c as Staging, l as StepContext, j as StepDefinition, k as StepInstance, b as StepRequest, S as StorageItem } from './index-UgNZaBs3.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autentikar/step",
3
- "version": "2.0.0-alpha.22",
3
+ "version": "2.0.0-alpha.24",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist"