@autentikar/step 2.0.0-alpha.19 → 2.0.0-alpha.20

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-mVvTh40G.js';
1
+ import { S as StorageItem, a as Step } from './index-9E524NfU.js';
2
2
  import 'file-type/core';
3
3
  import 'zod';
4
4
 
@@ -31,6 +31,7 @@ type MethodContextOrganization = {
31
31
  };
32
32
  type MethodContextFlow = {
33
33
  id: string;
34
+ params: unknown;
34
35
  };
35
36
  type MethodContextInstance = {
36
37
  id: string;
@@ -63,5 +64,31 @@ type AppEnv = {
63
64
  instance: string;
64
65
  };
65
66
  };
67
+ declare class StepDefinition {
68
+ readonly id: string;
69
+ readonly flow: string;
70
+ readonly type: string;
71
+ readonly user_interaction: boolean;
72
+ readonly return_result: boolean;
73
+ end_after_processing: undefined | {
74
+ dispatch: "NO";
75
+ } | {
76
+ dispatch: "AUTO";
77
+ };
78
+ readonly params: Record<string, string> | undefined;
79
+ readonly output: Record<string, string> | undefined;
80
+ readonly milestone: undefined | {
81
+ cloud_hidden?: boolean;
82
+ call_webhook?: boolean;
83
+ };
84
+ constructor(id: string, flow: string, type: string, user_interaction: boolean, return_result: boolean, end_after_processing: undefined | {
85
+ dispatch: "NO";
86
+ } | {
87
+ dispatch: "AUTO";
88
+ }, params: Record<string, string> | undefined, output: Record<string, string> | undefined, milestone: undefined | {
89
+ cloud_hidden?: boolean;
90
+ call_webhook?: boolean;
91
+ });
92
+ }
66
93
 
67
- export { type AppEnvironments as A, 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 };
94
+ export { type AppEnvironments as A, 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 };
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, g as Method, f as MethodContext, d as MethodContextFlow, e as MethodContextInstance, M as MethodContextOrganization, P as PersistentType, c as Staging, b as StepRequest, S as StorageItem } from './index-mVvTh40G.js';
3
+ export { h as AppEnv, A as AppEnvironments, g as Method, f as MethodContext, d as MethodContextFlow, e as MethodContextInstance, M as MethodContextOrganization, P as PersistentType, c as Staging, i as StepDefinition, b as StepRequest, S as StorageItem } from './index-9E524NfU.js';
package/dist/index.js CHANGED
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
+ StepDefinition: () => StepDefinition,
33
34
  StepRequest: () => StepRequest,
34
35
  StorageItem: () => StorageItem
35
36
  });
@@ -78,8 +79,22 @@ var StorageItem = class {
78
79
  return getContentTypeFromBuffer(this.buffer);
79
80
  }
80
81
  };
82
+ var StepDefinition = class {
83
+ constructor(id, flow, type, user_interaction, return_result, end_after_processing, params, output, milestone) {
84
+ this.id = id;
85
+ this.flow = flow;
86
+ this.type = type;
87
+ this.user_interaction = user_interaction;
88
+ this.return_result = return_result;
89
+ this.end_after_processing = end_after_processing;
90
+ this.params = params;
91
+ this.output = output;
92
+ this.milestone = milestone;
93
+ }
94
+ };
81
95
  // Annotate the CommonJS export names for ESM import in node:
82
96
  0 && (module.exports = {
97
+ StepDefinition,
83
98
  StepRequest,
84
99
  StorageItem
85
100
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autentikar/step",
3
- "version": "2.0.0-alpha.19",
3
+ "version": "2.0.0-alpha.20",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist"