@novu/framework 2.9.0 → 2.10.0-alpha.1
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/cjs/base.schema.types-BApIn9jr.d.cts +135 -0
- package/dist/cjs/{health-check.types-D_KcRiM_.d.cts → health-check.types-CBl2aQ8k.d.cts} +21 -131
- package/dist/cjs/{index-S0QKfWxm.d.cts → index-D3UJoqjc.d.cts} +5 -1
- package/dist/cjs/index.cjs +37 -38
- package/dist/cjs/index.d.cts +4 -2
- package/dist/cjs/internal/index.cjs +1 -2
- package/dist/cjs/internal/index.d.cts +13 -67
- package/dist/cjs/servers/express.cjs +65 -66
- package/dist/cjs/servers/express.d.cts +5 -3
- package/dist/cjs/servers/h3.cjs +37 -38
- package/dist/cjs/servers/h3.d.cts +5 -3
- package/dist/cjs/servers/lambda.cjs +51 -52
- package/dist/cjs/servers/lambda.d.cts +6 -4
- package/dist/cjs/servers/nest.cjs +57 -58
- package/dist/cjs/servers/nest.d.cts +6 -4
- package/dist/cjs/servers/next.cjs +72 -73
- package/dist/cjs/servers/next.d.cts +5 -3
- package/dist/cjs/servers/nuxt.cjs +37 -38
- package/dist/cjs/servers/nuxt.d.cts +5 -3
- package/dist/cjs/servers/remix.cjs +37 -38
- package/dist/cjs/servers/remix.d.cts +5 -3
- package/dist/cjs/servers/sveltekit.cjs +35 -36
- package/dist/cjs/servers/sveltekit.d.cts +5 -3
- package/dist/cjs/step-resolver.cjs +1 -0
- package/dist/cjs/step-resolver.d.cts +32 -0
- package/dist/cjs/validator.types-BeoiKdnR.d.cts +66 -0
- package/dist/cjs/validators.cjs +1 -0
- package/dist/cjs/validators.d.cts +23 -0
- package/dist/esm/base.schema.types-BApIn9jr.d.ts +135 -0
- package/dist/esm/chunk-7YRWUU4W.js +95 -0
- package/dist/esm/chunk-AZJKOVFF.js +1 -0
- package/dist/esm/chunk-C734BFYR.js +1 -0
- package/dist/esm/{chunk-YLCZR2QR.js → chunk-HQVOLRIB.js} +4 -5
- package/dist/esm/chunk-JFMDTNSL.js +1 -0
- package/dist/esm/chunk-PLPQUHX6.js +1 -0
- package/dist/esm/{health-check.types-D_KcRiM_.d.ts → health-check.types-23Z3Ne4i.d.ts} +21 -131
- package/dist/esm/{index-CmEcpAEO.d.ts → index-B6Kq7kjS.d.ts} +5 -1
- package/dist/esm/index.d.ts +4 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal/index.d.ts +13 -67
- package/dist/esm/internal/index.js +1 -1
- package/dist/esm/servers/express.d.ts +5 -3
- package/dist/esm/servers/express.js +1 -1
- package/dist/esm/servers/h3.d.ts +5 -3
- package/dist/esm/servers/h3.js +1 -1
- package/dist/esm/servers/lambda.d.ts +6 -4
- package/dist/esm/servers/lambda.js +1 -1
- package/dist/esm/servers/nest.d.ts +6 -4
- package/dist/esm/servers/nest.js +1 -1
- package/dist/esm/servers/next.d.ts +5 -3
- package/dist/esm/servers/next.js +1 -1
- package/dist/esm/servers/nuxt.d.ts +5 -3
- package/dist/esm/servers/nuxt.js +1 -1
- package/dist/esm/servers/remix.d.ts +5 -3
- package/dist/esm/servers/remix.js +1 -1
- package/dist/esm/servers/sveltekit.d.ts +5 -3
- package/dist/esm/servers/sveltekit.js +1 -1
- package/dist/esm/step-resolver.d.ts +32 -0
- package/dist/esm/step-resolver.js +1 -0
- package/dist/esm/validator.types-BIQli_m1.d.ts +66 -0
- package/dist/esm/validators.d.ts +23 -0
- package/dist/esm/validators.js +1 -0
- package/package.json +24 -2
- package/step-resolver/package.json +4 -0
- package/validators/package.json +4 -0
- package/dist/esm/chunk-ZF4VXELU.js +0 -95
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { JSONSchema, FromSchema as FromSchema$1 } from 'json-schema-to-ts';
|
|
2
|
+
import zod from 'zod';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A minimal JSON schema type.
|
|
6
|
+
*
|
|
7
|
+
* This type is used to narrow the type of a JSON schema to a minimal type
|
|
8
|
+
* that is compatible with the `json-schema-to-ts` library.
|
|
9
|
+
*/
|
|
10
|
+
type JsonSchemaMinimal = {
|
|
11
|
+
type: 'object';
|
|
12
|
+
} | {
|
|
13
|
+
anyOf: unknown[];
|
|
14
|
+
} | {
|
|
15
|
+
allOf: unknown[];
|
|
16
|
+
} | {
|
|
17
|
+
oneOf: unknown[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A JSON schema
|
|
21
|
+
*/
|
|
22
|
+
type JsonSchema = Exclude<JSONSchema, boolean> & JsonSchemaMinimal;
|
|
23
|
+
/**
|
|
24
|
+
* Infer the data type of a JsonSchema.
|
|
25
|
+
*
|
|
26
|
+
* @param T - The `JsonSchema` to infer the data type of.
|
|
27
|
+
* @param Options - Configuration options for the type inference. The `validated` flag determines whether the schema has been validated. If `validated` is true, all properties are required unless specified otherwise. If false, properties with default values are optional.
|
|
28
|
+
*
|
|
29
|
+
* @returns The inferred type.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const mySchema = {
|
|
34
|
+
* type: 'object',
|
|
35
|
+
* properties: {
|
|
36
|
+
* name: { type: 'string' },
|
|
37
|
+
* email: { type: 'string' },
|
|
38
|
+
* },
|
|
39
|
+
* required: ['name'],
|
|
40
|
+
* additionalProperties: false,
|
|
41
|
+
* } as const satisfies JsonSchema;
|
|
42
|
+
*
|
|
43
|
+
* // has type { name: string, email?: string }
|
|
44
|
+
* type MySchema = InferJsonSchema<typeof mySchema, { validated: true }>;
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
type InferJsonSchema<T, Options extends {
|
|
48
|
+
validated: boolean;
|
|
49
|
+
}> = T extends JsonSchemaMinimal ? T extends JSONSchema ? Options['validated'] extends true ? FromSchema$1<T> : FromSchema$1<T, {
|
|
50
|
+
keepDefaultedPropertiesOptional: true;
|
|
51
|
+
}> : never : never;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* A ZodSchema used to validate a JSON object.
|
|
55
|
+
*/
|
|
56
|
+
type ZodSchema = zod.ZodType<Record<string, unknown>, zod.ZodTypeDef, Record<string, unknown>>;
|
|
57
|
+
/**
|
|
58
|
+
* A minimal ZodSchema type.
|
|
59
|
+
*
|
|
60
|
+
* It is necessary to define a minimal ZodSchema type to enable correct inference
|
|
61
|
+
* when Zod is not available, as Typescript doesn't support detection of module
|
|
62
|
+
* availability via `typeof import('zod')`.
|
|
63
|
+
*/
|
|
64
|
+
type ZodSchemaMinimal = {
|
|
65
|
+
readonly safeParseAsync: unknown;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Infer the data type of a ZodSchema.
|
|
69
|
+
*
|
|
70
|
+
* @param T - The ZodSchema to infer the data type of.
|
|
71
|
+
* @param Options - Configuration options for the type inference. The `validated` flag determines whether the schema has been validated. If `validated` is true, all properties are required unless specified otherwise. If false, properties with default values are optional.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const mySchema = z.object({
|
|
76
|
+
* name: z.string(),
|
|
77
|
+
* email: z.string().optional(),
|
|
78
|
+
* });
|
|
79
|
+
*
|
|
80
|
+
* // has type { name: string, email?: string }
|
|
81
|
+
* type MySchema = InferZodSchema<typeof mySchema>;
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
type InferZodSchema<T, Options extends {
|
|
85
|
+
validated: boolean;
|
|
86
|
+
}> = T extends ZodSchemaMinimal ? T extends {
|
|
87
|
+
readonly _output: infer Output extends Record<string, unknown>;
|
|
88
|
+
readonly _input: infer Input extends Record<string, unknown>;
|
|
89
|
+
} ? Options['validated'] extends true ? Output : Input : never : never;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A schema used to validate a JSON object.
|
|
93
|
+
*/
|
|
94
|
+
type Schema = JsonSchemaMinimal | ZodSchemaMinimal;
|
|
95
|
+
/**
|
|
96
|
+
* Main utility type for schema inference
|
|
97
|
+
*
|
|
98
|
+
* @param T - The Schema to infer the type of.
|
|
99
|
+
* @param Options - Configuration options for the type inference. The `validated` flag determines whether the schema has been validated. If `validated` is true, all properties are required unless specified otherwise. If false, properties with default values are optional.
|
|
100
|
+
*/
|
|
101
|
+
type InferSchema<T extends Schema, Options extends {
|
|
102
|
+
validated: boolean;
|
|
103
|
+
}> = InferJsonSchema<T, Options> | InferZodSchema<T, Options>;
|
|
104
|
+
/**
|
|
105
|
+
* Infer the type of a Schema for unvalidated data.
|
|
106
|
+
*
|
|
107
|
+
* The resulting type has default properties set to optional,
|
|
108
|
+
* reflecting the fact that the data is unvalidated and has
|
|
109
|
+
* not had default properties set.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* type MySchema = FromSchemaUnvalidated<typeof mySchema>;
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
type FromSchemaUnvalidated<T extends Schema> = InferSchema<T, {
|
|
117
|
+
validated: false;
|
|
118
|
+
}>;
|
|
119
|
+
/**
|
|
120
|
+
* Infer the type of a Schema for validated data.
|
|
121
|
+
*
|
|
122
|
+
* The resulting type has default properties set to required,
|
|
123
|
+
* reflecting the fact that the data has been validated and
|
|
124
|
+
* default properties have been set.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* type MySchema = FromSchema<typeof mySchema>;
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
type FromSchema<T extends Schema> = InferSchema<T, {
|
|
132
|
+
validated: true;
|
|
133
|
+
}>;
|
|
134
|
+
|
|
135
|
+
export type { FromSchemaUnvalidated as F, JsonSchema as J, Schema as S, ZodSchema as Z, FromSchema as a, ZodSchemaMinimal as b };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import zod from 'zod';
|
|
1
|
+
import { F as FromSchemaUnvalidated, S as Schema, a as FromSchema, J as JsonSchema } from './base.schema.types-BApIn9jr.cjs';
|
|
3
2
|
|
|
4
3
|
type CodeResult = {
|
|
5
4
|
code: string;
|
|
@@ -28,6 +27,12 @@ type ClientOptions = {
|
|
|
28
27
|
* Defaults to true.
|
|
29
28
|
*/
|
|
30
29
|
strictAuthentication?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Enable verbose logging for workflow discovery and execution.
|
|
32
|
+
* When set to `false`, discovery and execution logs will be suppressed.
|
|
33
|
+
* Defaults to `true` in development, `false` in production.
|
|
34
|
+
*/
|
|
35
|
+
verbose?: boolean;
|
|
31
36
|
};
|
|
32
37
|
|
|
33
38
|
type ContextType = string;
|
|
@@ -191,6 +196,7 @@ declare enum CronExpression {
|
|
|
191
196
|
EVERY_WEEKEND = "0 0 * * 6,0",
|
|
192
197
|
EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT = "0 0 1 * *",
|
|
193
198
|
EVERY_1ST_DAY_OF_MONTH_AT_NOON = "0 12 1 * *",
|
|
199
|
+
EVERY_2ND_DAY_OF_MONTH_AT_10AM = "0 10 2 * *",
|
|
194
200
|
EVERY_2ND_HOUR = "0 */2 * * *",
|
|
195
201
|
EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM = "0 1-23/2 * * *",
|
|
196
202
|
EVERY_2ND_MONTH = "0 0 1 */2 *",
|
|
@@ -4100,134 +4106,6 @@ declare const providerSchemas: {
|
|
|
4100
4106
|
};
|
|
4101
4107
|
};
|
|
4102
4108
|
|
|
4103
|
-
/**
|
|
4104
|
-
* A minimal JSON schema type.
|
|
4105
|
-
*
|
|
4106
|
-
* This type is used to narrow the type of a JSON schema to a minimal type
|
|
4107
|
-
* that is compatible with the `json-schema-to-ts` library.
|
|
4108
|
-
*/
|
|
4109
|
-
type JsonSchemaMinimal = {
|
|
4110
|
-
type: 'object';
|
|
4111
|
-
} | {
|
|
4112
|
-
anyOf: unknown[];
|
|
4113
|
-
} | {
|
|
4114
|
-
allOf: unknown[];
|
|
4115
|
-
} | {
|
|
4116
|
-
oneOf: unknown[];
|
|
4117
|
-
};
|
|
4118
|
-
/**
|
|
4119
|
-
* A JSON schema
|
|
4120
|
-
*/
|
|
4121
|
-
type JsonSchema = Exclude<JSONSchema, boolean> & JsonSchemaMinimal;
|
|
4122
|
-
/**
|
|
4123
|
-
* Infer the data type of a JsonSchema.
|
|
4124
|
-
*
|
|
4125
|
-
* @param T - The `JsonSchema` to infer the data type of.
|
|
4126
|
-
* @param Options - Configuration options for the type inference. The `validated` flag determines whether the schema has been validated. If `validated` is true, all properties are required unless specified otherwise. If false, properties with default values are optional.
|
|
4127
|
-
*
|
|
4128
|
-
* @returns The inferred type.
|
|
4129
|
-
*
|
|
4130
|
-
* @example
|
|
4131
|
-
* ```ts
|
|
4132
|
-
* const mySchema = {
|
|
4133
|
-
* type: 'object',
|
|
4134
|
-
* properties: {
|
|
4135
|
-
* name: { type: 'string' },
|
|
4136
|
-
* email: { type: 'string' },
|
|
4137
|
-
* },
|
|
4138
|
-
* required: ['name'],
|
|
4139
|
-
* additionalProperties: false,
|
|
4140
|
-
* } as const satisfies JsonSchema;
|
|
4141
|
-
*
|
|
4142
|
-
* // has type { name: string, email?: string }
|
|
4143
|
-
* type MySchema = InferJsonSchema<typeof mySchema, { validated: true }>;
|
|
4144
|
-
* ```
|
|
4145
|
-
*/
|
|
4146
|
-
type InferJsonSchema<T, Options extends {
|
|
4147
|
-
validated: boolean;
|
|
4148
|
-
}> = T extends JsonSchemaMinimal ? T extends JSONSchema ? Options['validated'] extends true ? FromSchema$1<T> : FromSchema$1<T, {
|
|
4149
|
-
keepDefaultedPropertiesOptional: true;
|
|
4150
|
-
}> : never : never;
|
|
4151
|
-
|
|
4152
|
-
/**
|
|
4153
|
-
* A ZodSchema used to validate a JSON object.
|
|
4154
|
-
*/
|
|
4155
|
-
type ZodSchema = zod.ZodType<Record<string, unknown>, zod.ZodTypeDef, Record<string, unknown>>;
|
|
4156
|
-
/**
|
|
4157
|
-
* A minimal ZodSchema type.
|
|
4158
|
-
*
|
|
4159
|
-
* It is necessary to define a minimal ZodSchema type to enable correct inference
|
|
4160
|
-
* when Zod is not available, as Typescript doesn't support detection of module
|
|
4161
|
-
* availability via `typeof import('zod')`.
|
|
4162
|
-
*/
|
|
4163
|
-
type ZodSchemaMinimal = {
|
|
4164
|
-
readonly safeParseAsync: unknown;
|
|
4165
|
-
};
|
|
4166
|
-
/**
|
|
4167
|
-
* Infer the data type of a ZodSchema.
|
|
4168
|
-
*
|
|
4169
|
-
* @param T - The ZodSchema to infer the data type of.
|
|
4170
|
-
* @param Options - Configuration options for the type inference. The `validated` flag determines whether the schema has been validated. If `validated` is true, all properties are required unless specified otherwise. If false, properties with default values are optional.
|
|
4171
|
-
*
|
|
4172
|
-
* @example
|
|
4173
|
-
* ```ts
|
|
4174
|
-
* const mySchema = z.object({
|
|
4175
|
-
* name: z.string(),
|
|
4176
|
-
* email: z.string().optional(),
|
|
4177
|
-
* });
|
|
4178
|
-
*
|
|
4179
|
-
* // has type { name: string, email?: string }
|
|
4180
|
-
* type MySchema = InferZodSchema<typeof mySchema>;
|
|
4181
|
-
* ```
|
|
4182
|
-
*/
|
|
4183
|
-
type InferZodSchema<T, Options extends {
|
|
4184
|
-
validated: boolean;
|
|
4185
|
-
}> = T extends ZodSchemaMinimal ? T extends ZodSchema ? Options['validated'] extends true ? zod.infer<T> : zod.input<T> : never : never;
|
|
4186
|
-
|
|
4187
|
-
/**
|
|
4188
|
-
* A schema used to validate a JSON object.
|
|
4189
|
-
*/
|
|
4190
|
-
type Schema = JsonSchemaMinimal | ZodSchemaMinimal;
|
|
4191
|
-
/**
|
|
4192
|
-
* Main utility type for schema inference
|
|
4193
|
-
*
|
|
4194
|
-
* @param T - The Schema to infer the type of.
|
|
4195
|
-
* @param Options - Configuration options for the type inference. The `validated` flag determines whether the schema has been validated. If `validated` is true, all properties are required unless specified otherwise. If false, properties with default values are optional.
|
|
4196
|
-
*/
|
|
4197
|
-
type InferSchema<T extends Schema, Options extends {
|
|
4198
|
-
validated: boolean;
|
|
4199
|
-
}> = InferJsonSchema<T, Options> | InferZodSchema<T, Options>;
|
|
4200
|
-
/**
|
|
4201
|
-
* Infer the type of a Schema for unvalidated data.
|
|
4202
|
-
*
|
|
4203
|
-
* The resulting type has default properties set to optional,
|
|
4204
|
-
* reflecting the fact that the data is unvalidated and has
|
|
4205
|
-
* not had default properties set.
|
|
4206
|
-
*
|
|
4207
|
-
* @example
|
|
4208
|
-
* ```ts
|
|
4209
|
-
* type MySchema = FromSchemaUnvalidated<typeof mySchema>;
|
|
4210
|
-
* ```
|
|
4211
|
-
*/
|
|
4212
|
-
type FromSchemaUnvalidated<T extends Schema> = InferSchema<T, {
|
|
4213
|
-
validated: false;
|
|
4214
|
-
}>;
|
|
4215
|
-
/**
|
|
4216
|
-
* Infer the type of a Schema for validated data.
|
|
4217
|
-
*
|
|
4218
|
-
* The resulting type has default properties set to required,
|
|
4219
|
-
* reflecting the fact that the data has been validated and
|
|
4220
|
-
* default properties have been set.
|
|
4221
|
-
*
|
|
4222
|
-
* @example
|
|
4223
|
-
* ```ts
|
|
4224
|
-
* type MySchema = FromSchema<typeof mySchema>;
|
|
4225
|
-
* ```
|
|
4226
|
-
*/
|
|
4227
|
-
type FromSchema<T extends Schema> = InferSchema<T, {
|
|
4228
|
-
validated: true;
|
|
4229
|
-
}>;
|
|
4230
|
-
|
|
4231
4109
|
type Passthrough = {
|
|
4232
4110
|
body?: Record<string, unknown>;
|
|
4233
4111
|
headers?: Record<string, string>;
|
|
@@ -4636,6 +4514,18 @@ declare const channelStepSchemas: {
|
|
|
4636
4514
|
readonly body: {
|
|
4637
4515
|
readonly type: "string";
|
|
4638
4516
|
};
|
|
4517
|
+
readonly from: {
|
|
4518
|
+
readonly type: "object";
|
|
4519
|
+
readonly properties: {
|
|
4520
|
+
readonly email: {
|
|
4521
|
+
readonly type: "string";
|
|
4522
|
+
};
|
|
4523
|
+
readonly name: {
|
|
4524
|
+
readonly type: "string";
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4527
|
+
readonly additionalProperties: false;
|
|
4528
|
+
};
|
|
4639
4529
|
};
|
|
4640
4530
|
readonly required: readonly ["subject", "body"];
|
|
4641
4531
|
readonly additionalProperties: false;
|
|
@@ -5357,4 +5247,4 @@ type HealthCheck = {
|
|
|
5357
5247
|
};
|
|
5358
5248
|
};
|
|
5359
5249
|
|
|
5360
|
-
export { type
|
|
5250
|
+
export { type InAppOutputUnvalidated as $, ActionStepEnum as A, type StepOutput as B, CronExpression as C, type DiscoverProviderOutput as D, type Either as E, type ActionStep as F, GetActionEnum as G, type HealthCheck as H, type CustomStep as I, JobStatusEnum as J, type ChannelStep as K, type EmailOutput as L, type EmailOutputUnvalidated as M, type EmailResult as N, type SmsOutput as O, PostActionEnum as P, type SmsOutputUnvalidated as Q, type SmsResult as R, SeverityLevelEnum as S, type PushOutput as T, type PushOutputUnvalidated as U, type PushResult as V, type Workflow as W, type ChatOutput as X, type ChatOutputUnvalidated as Y, type ChatResult as Z, type InAppOutput as _, type ClientOptions as a, type InAppResult as a0, type DelayRegularOutput as a1, type DelayRegularOutputUnvalidated as a2, type DelayTimedOutput as a3, type DelayTimedOutputUnvalidated as a4, type DelayDynamicOutput as a5, type DelayDynamicOutputUnvalidated as a6, type DelayOutput as a7, type DelayOutputUnvalidated as a8, type DelayResult as a9, type WorkflowPreferences as aA, type WorkflowOptions as aB, type DigestRegularOutput as aa, type DigestRegularOutputUnvalidated as ab, type DigestTimedOutput as ac, type DigestTimedOutputUnvalidated as ad, type DigestOutput as ae, type DigestOutputUnvalidated as af, type DigestResult as ag, type ThrottleOutput as ah, type ThrottleOutputUnvalidated as ai, type ThrottleResult as aj, type Step as ak, type Subscriber as al, type Awaitable as am, type Prettify as an, type ConditionalPartial as ao, type Indexable as ap, type PickOptional as aq, type PickRequired as ar, type PickRequiredKeys as as, type PickOptionalKeys as at, type DeepPartial as au, type DeepRequired as av, type ExecuteInput as aw, type Execute as ax, type WorkflowPreference as ay, type ChannelPreference as az, actionStepSchemas as b, channelStepSchemas as c, ChannelStepEnum as d, WorkflowChannelEnum as e, type CodeResult as f, type ContextValue as g, type ContextPayload as h, type ContextResolved as i, type StepType as j, type DiscoverStepOutput as k, type DiscoverWorkflowOutput as l, type DiscoverOutput as m, type EventTriggerResult as n, type EventTriggerParams as o, providerSchemas as p, type EventTriggerResponse as q, type CancelEventTriggerResponse as r, type Event as s, type State as t, type ExecuteOutputMetadata as u, type ExecuteOutputOptions as v, type ExecuteOutput as w, type Skip as x, type StepOptions as y, type StepContext as z };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as ClientOptions, W as Workflow, H as HealthCheck, m as DiscoverOutput, s as Event, w as ExecuteOutput, f as CodeResult, o as EventTriggerParams, am as Awaitable, ax as Execute, aB as WorkflowOptions } from './health-check.types-CBl2aQ8k.cjs';
|
|
2
|
+
import { S as Schema, a as FromSchema, F as FromSchemaUnvalidated } from './base.schema.types-BApIn9jr.cjs';
|
|
3
|
+
import './step-resolver.cjs';
|
|
2
4
|
|
|
3
5
|
declare class Client {
|
|
4
6
|
private discoveredWorkflows;
|
|
@@ -8,8 +10,10 @@ declare class Client {
|
|
|
8
10
|
apiUrl: string;
|
|
9
11
|
version: string;
|
|
10
12
|
strictAuthentication: boolean;
|
|
13
|
+
verbose: boolean;
|
|
11
14
|
constructor(options?: ClientOptions);
|
|
12
15
|
private buildOptions;
|
|
16
|
+
private log;
|
|
13
17
|
/**
|
|
14
18
|
* Adds workflows to the client.
|
|
15
19
|
*
|