@novu/api 0.0.1-alpha.192 → 0.0.1-alpha.193

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.
Files changed (144) hide show
  1. package/lib/config.d.ts +3 -3
  2. package/lib/config.js +3 -3
  3. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +4 -83
  4. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
  5. package/models/components/activitynotificationexecutiondetailresponsedto.js +7 -56
  6. package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
  7. package/models/components/activitynotificationjobresponsedto.d.ts +3 -3
  8. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
  9. package/models/components/activitynotificationjobresponsedto.js +3 -3
  10. package/models/components/activitynotificationjobresponsedto.js.map +1 -1
  11. package/models/components/activitynotificationresponsedto.d.ts +112 -0
  12. package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
  13. package/models/components/activitynotificationresponsedto.js +94 -1
  14. package/models/components/activitynotificationresponsedto.js.map +1 -1
  15. package/models/components/activitynotificationstepresponsedto.d.ts +139 -3
  16. package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
  17. package/models/components/activitynotificationstepresponsedto.js +117 -4
  18. package/models/components/activitynotificationstepresponsedto.js.map +1 -1
  19. package/models/components/activitynotificationtemplateresponsedto.d.ts +3 -3
  20. package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
  21. package/models/components/activitynotificationtemplateresponsedto.js +3 -3
  22. package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
  23. package/models/components/{builderfieldtype.d.ts → builderfieldtypeenum.d.ts} +8 -8
  24. package/models/components/builderfieldtypeenum.d.ts.map +1 -0
  25. package/models/components/{builderfieldtype.js → builderfieldtypeenum.js} +12 -12
  26. package/models/components/builderfieldtypeenum.js.map +1 -0
  27. package/models/components/{digestwitheventsdto.d.ts → digestmetadatadto.d.ts} +47 -14
  28. package/models/components/digestmetadatadto.d.ts.map +1 -0
  29. package/models/components/{digestwitheventsdto.js → digestmetadatadto.js} +32 -17
  30. package/models/components/digestmetadatadto.js.map +1 -0
  31. package/models/components/digesttimedconfigdto.d.ts +106 -0
  32. package/models/components/digesttimedconfigdto.d.ts.map +1 -0
  33. package/models/components/digesttimedconfigdto.js +99 -0
  34. package/models/components/digesttimedconfigdto.js.map +1 -0
  35. package/models/components/digesttypeenum.d.ts +37 -0
  36. package/models/components/digesttypeenum.d.ts.map +1 -0
  37. package/models/components/digesttypeenum.js +54 -0
  38. package/models/components/digesttypeenum.js.map +1 -0
  39. package/models/components/digestunitenum.d.ts +46 -0
  40. package/models/components/digestunitenum.d.ts.map +1 -0
  41. package/models/components/digestunitenum.js +57 -0
  42. package/models/components/digestunitenum.js.map +1 -0
  43. package/models/components/executiondetailssourceenum.d.ts +40 -0
  44. package/models/components/executiondetailssourceenum.d.ts.map +1 -0
  45. package/models/components/executiondetailssourceenum.js +55 -0
  46. package/models/components/executiondetailssourceenum.js.map +1 -0
  47. package/models/components/executiondetailsstatusenum.d.ts +46 -0
  48. package/models/components/executiondetailsstatusenum.d.ts.map +1 -0
  49. package/models/components/executiondetailsstatusenum.js +57 -0
  50. package/models/components/executiondetailsstatusenum.js.map +1 -0
  51. package/models/components/index.d.ts +14 -5
  52. package/models/components/index.d.ts.map +1 -1
  53. package/models/components/index.js +14 -5
  54. package/models/components/index.js.map +1 -1
  55. package/models/components/monthlytypeenum.d.ts +34 -0
  56. package/models/components/monthlytypeenum.d.ts.map +1 -0
  57. package/models/components/monthlytypeenum.js +53 -0
  58. package/models/components/monthlytypeenum.js.map +1 -0
  59. package/models/components/notificationstepdata.d.ts +113 -0
  60. package/models/components/notificationstepdata.d.ts.map +1 -0
  61. package/models/components/notificationstepdata.js +142 -0
  62. package/models/components/notificationstepdata.js.map +1 -0
  63. package/models/components/notificationstepdto.d.ts +116 -0
  64. package/models/components/notificationstepdto.d.ts.map +1 -0
  65. package/models/components/notificationstepdto.js +145 -0
  66. package/models/components/notificationstepdto.js.map +1 -0
  67. package/models/components/notificationtrigger.d.ts +8 -26
  68. package/models/components/notificationtrigger.d.ts.map +1 -1
  69. package/models/components/notificationtrigger.js +13 -16
  70. package/models/components/notificationtrigger.js.map +1 -1
  71. package/models/components/notificationtriggerdto.d.ts +77 -0
  72. package/models/components/notificationtriggerdto.d.ts.map +1 -0
  73. package/models/components/notificationtriggerdto.js +89 -0
  74. package/models/components/notificationtriggerdto.js.map +1 -0
  75. package/models/components/ordinalenum.d.ts +46 -0
  76. package/models/components/ordinalenum.d.ts.map +1 -0
  77. package/models/components/{stepfilter.js → ordinalenum.js} +23 -20
  78. package/models/components/ordinalenum.js.map +1 -0
  79. package/models/components/ordinalvalueenum.d.ts +58 -0
  80. package/models/components/ordinalvalueenum.d.ts.map +1 -0
  81. package/models/components/ordinalvalueenum.js +61 -0
  82. package/models/components/ordinalvalueenum.js.map +1 -0
  83. package/models/components/replycallback.d.ts +37 -0
  84. package/models/components/replycallback.d.ts.map +1 -0
  85. package/models/components/replycallback.js +61 -0
  86. package/models/components/replycallback.js.map +1 -0
  87. package/models/components/stepfilterdto.d.ts +2 -2
  88. package/models/components/stepfilterdto.d.ts.map +1 -1
  89. package/models/components/stepfilterdto.js +3 -3
  90. package/models/components/stepfilterdto.js.map +1 -1
  91. package/models/components/timedconfig.d.ts +8 -8
  92. package/models/components/timedconfig.d.ts.map +1 -1
  93. package/models/components/timedconfig.js +13 -14
  94. package/models/components/timedconfig.js.map +1 -1
  95. package/models/components/workflowresponse.d.ts +3 -3
  96. package/models/components/workflowresponse.d.ts.map +1 -1
  97. package/models/components/workflowresponse.js +3 -3
  98. package/models/components/workflowresponse.js.map +1 -1
  99. package/package.json +1 -1
  100. package/src/lib/config.ts +3 -3
  101. package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +16 -81
  102. package/src/models/components/activitynotificationjobresponsedto.ts +9 -9
  103. package/src/models/components/activitynotificationresponsedto.ts +228 -0
  104. package/src/models/components/activitynotificationstepresponsedto.ts +294 -9
  105. package/src/models/components/activitynotificationtemplateresponsedto.ts +9 -9
  106. package/src/models/components/builderfieldtypeenum.ts +39 -0
  107. package/src/models/components/digestmetadatadto.ts +185 -0
  108. package/src/models/components/digesttimedconfigdto.ts +157 -0
  109. package/src/models/components/digesttypeenum.ts +40 -0
  110. package/src/models/components/digestunitenum.ts +43 -0
  111. package/src/models/components/executiondetailssourceenum.ts +43 -0
  112. package/src/models/components/executiondetailsstatusenum.ts +45 -0
  113. package/src/models/components/index.ts +14 -5
  114. package/src/models/components/monthlytypeenum.ts +39 -0
  115. package/src/models/components/notificationstepdata.ts +287 -0
  116. package/src/models/components/notificationstepdto.ts +297 -0
  117. package/src/models/components/notificationtrigger.ts +18 -33
  118. package/src/models/components/notificationtriggerdto.ts +130 -0
  119. package/src/models/components/ordinalenum.ts +41 -0
  120. package/src/models/components/ordinalvalueenum.ts +47 -0
  121. package/src/models/components/replycallback.ts +72 -0
  122. package/src/models/components/stepfilterdto.ts +7 -7
  123. package/src/models/components/timedconfig.ts +16 -14
  124. package/src/models/components/workflowresponse.ts +9 -9
  125. package/models/components/builderfieldtype.d.ts.map +0 -1
  126. package/models/components/builderfieldtype.js.map +0 -1
  127. package/models/components/digestwitheventsdto.d.ts.map +0 -1
  128. package/models/components/digestwitheventsdto.js.map +0 -1
  129. package/models/components/notificationstep.d.ts +0 -121
  130. package/models/components/notificationstep.d.ts.map +0 -1
  131. package/models/components/notificationstep.js +0 -190
  132. package/models/components/notificationstep.js.map +0 -1
  133. package/models/components/notificationstepvariant.d.ts +0 -118
  134. package/models/components/notificationstepvariant.d.ts.map +0 -1
  135. package/models/components/notificationstepvariant.js +0 -189
  136. package/models/components/notificationstepvariant.js.map +0 -1
  137. package/models/components/stepfilter.d.ts +0 -25
  138. package/models/components/stepfilter.d.ts.map +0 -1
  139. package/models/components/stepfilter.js.map +0 -1
  140. package/src/models/components/builderfieldtype.ts +0 -39
  141. package/src/models/components/digestwitheventsdto.ts +0 -127
  142. package/src/models/components/notificationstep.ts +0 -341
  143. package/src/models/components/notificationstepvariant.ts +0 -358
  144. package/src/models/components/stepfilter.ts +0 -54
@@ -1,358 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- DelayRegularMetadata,
12
- DelayRegularMetadata$inboundSchema,
13
- DelayRegularMetadata$Outbound,
14
- DelayRegularMetadata$outboundSchema,
15
- } from "./delayregularmetadata.js";
16
- import {
17
- DelayScheduledMetadata,
18
- DelayScheduledMetadata$inboundSchema,
19
- DelayScheduledMetadata$Outbound,
20
- DelayScheduledMetadata$outboundSchema,
21
- } from "./delayscheduledmetadata.js";
22
- import {
23
- DigestRegularMetadata,
24
- DigestRegularMetadata$inboundSchema,
25
- DigestRegularMetadata$Outbound,
26
- DigestRegularMetadata$outboundSchema,
27
- } from "./digestregularmetadata.js";
28
- import {
29
- DigestTimedMetadata,
30
- DigestTimedMetadata$inboundSchema,
31
- DigestTimedMetadata$Outbound,
32
- DigestTimedMetadata$outboundSchema,
33
- } from "./digesttimedmetadata.js";
34
- import {
35
- MessageTemplate,
36
- MessageTemplate$inboundSchema,
37
- MessageTemplate$Outbound,
38
- MessageTemplate$outboundSchema,
39
- } from "./messagetemplate.js";
40
- import {
41
- StepFilterDto,
42
- StepFilterDto$inboundSchema,
43
- StepFilterDto$Outbound,
44
- StepFilterDto$outboundSchema,
45
- } from "./stepfilterdto.js";
46
-
47
- export type NotificationStepVariantParentId = {};
48
-
49
- export type NotificationStepVariantMetadata =
50
- | DelayScheduledMetadata
51
- | DelayRegularMetadata
52
- | DigestTimedMetadata
53
- | DigestRegularMetadata;
54
-
55
- export type NotificationStepVariantReplyCallback = {};
56
-
57
- export type NotificationStepVariant = {
58
- id?: string | undefined;
59
- uuid?: string | undefined;
60
- name?: string | undefined;
61
- templateId?: string | undefined;
62
- active?: boolean | undefined;
63
- shouldStopOnFail?: boolean | undefined;
64
- template?: MessageTemplate | undefined;
65
- filters?: Array<StepFilterDto> | undefined;
66
- parentId?: NotificationStepVariantParentId | undefined;
67
- metadata?:
68
- | DelayScheduledMetadata
69
- | DelayRegularMetadata
70
- | DigestTimedMetadata
71
- | DigestRegularMetadata
72
- | undefined;
73
- replyCallback?: NotificationStepVariantReplyCallback | undefined;
74
- };
75
-
76
- /** @internal */
77
- export const NotificationStepVariantParentId$inboundSchema: z.ZodType<
78
- NotificationStepVariantParentId,
79
- z.ZodTypeDef,
80
- unknown
81
- > = z.object({});
82
-
83
- /** @internal */
84
- export type NotificationStepVariantParentId$Outbound = {};
85
-
86
- /** @internal */
87
- export const NotificationStepVariantParentId$outboundSchema: z.ZodType<
88
- NotificationStepVariantParentId$Outbound,
89
- z.ZodTypeDef,
90
- NotificationStepVariantParentId
91
- > = z.object({});
92
-
93
- /**
94
- * @internal
95
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
96
- */
97
- export namespace NotificationStepVariantParentId$ {
98
- /** @deprecated use `NotificationStepVariantParentId$inboundSchema` instead. */
99
- export const inboundSchema = NotificationStepVariantParentId$inboundSchema;
100
- /** @deprecated use `NotificationStepVariantParentId$outboundSchema` instead. */
101
- export const outboundSchema = NotificationStepVariantParentId$outboundSchema;
102
- /** @deprecated use `NotificationStepVariantParentId$Outbound` instead. */
103
- export type Outbound = NotificationStepVariantParentId$Outbound;
104
- }
105
-
106
- export function notificationStepVariantParentIdToJSON(
107
- notificationStepVariantParentId: NotificationStepVariantParentId,
108
- ): string {
109
- return JSON.stringify(
110
- NotificationStepVariantParentId$outboundSchema.parse(
111
- notificationStepVariantParentId,
112
- ),
113
- );
114
- }
115
-
116
- export function notificationStepVariantParentIdFromJSON(
117
- jsonString: string,
118
- ): SafeParseResult<NotificationStepVariantParentId, SDKValidationError> {
119
- return safeParse(
120
- jsonString,
121
- (x) => NotificationStepVariantParentId$inboundSchema.parse(JSON.parse(x)),
122
- `Failed to parse 'NotificationStepVariantParentId' from JSON`,
123
- );
124
- }
125
-
126
- /** @internal */
127
- export const NotificationStepVariantMetadata$inboundSchema: z.ZodType<
128
- NotificationStepVariantMetadata,
129
- z.ZodTypeDef,
130
- unknown
131
- > = z.union([
132
- DelayScheduledMetadata$inboundSchema,
133
- DelayRegularMetadata$inboundSchema,
134
- DigestTimedMetadata$inboundSchema,
135
- DigestRegularMetadata$inboundSchema,
136
- ]);
137
-
138
- /** @internal */
139
- export type NotificationStepVariantMetadata$Outbound =
140
- | DelayScheduledMetadata$Outbound
141
- | DelayRegularMetadata$Outbound
142
- | DigestTimedMetadata$Outbound
143
- | DigestRegularMetadata$Outbound;
144
-
145
- /** @internal */
146
- export const NotificationStepVariantMetadata$outboundSchema: z.ZodType<
147
- NotificationStepVariantMetadata$Outbound,
148
- z.ZodTypeDef,
149
- NotificationStepVariantMetadata
150
- > = z.union([
151
- DelayScheduledMetadata$outboundSchema,
152
- DelayRegularMetadata$outboundSchema,
153
- DigestTimedMetadata$outboundSchema,
154
- DigestRegularMetadata$outboundSchema,
155
- ]);
156
-
157
- /**
158
- * @internal
159
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
160
- */
161
- export namespace NotificationStepVariantMetadata$ {
162
- /** @deprecated use `NotificationStepVariantMetadata$inboundSchema` instead. */
163
- export const inboundSchema = NotificationStepVariantMetadata$inboundSchema;
164
- /** @deprecated use `NotificationStepVariantMetadata$outboundSchema` instead. */
165
- export const outboundSchema = NotificationStepVariantMetadata$outboundSchema;
166
- /** @deprecated use `NotificationStepVariantMetadata$Outbound` instead. */
167
- export type Outbound = NotificationStepVariantMetadata$Outbound;
168
- }
169
-
170
- export function notificationStepVariantMetadataToJSON(
171
- notificationStepVariantMetadata: NotificationStepVariantMetadata,
172
- ): string {
173
- return JSON.stringify(
174
- NotificationStepVariantMetadata$outboundSchema.parse(
175
- notificationStepVariantMetadata,
176
- ),
177
- );
178
- }
179
-
180
- export function notificationStepVariantMetadataFromJSON(
181
- jsonString: string,
182
- ): SafeParseResult<NotificationStepVariantMetadata, SDKValidationError> {
183
- return safeParse(
184
- jsonString,
185
- (x) => NotificationStepVariantMetadata$inboundSchema.parse(JSON.parse(x)),
186
- `Failed to parse 'NotificationStepVariantMetadata' from JSON`,
187
- );
188
- }
189
-
190
- /** @internal */
191
- export const NotificationStepVariantReplyCallback$inboundSchema: z.ZodType<
192
- NotificationStepVariantReplyCallback,
193
- z.ZodTypeDef,
194
- unknown
195
- > = z.object({});
196
-
197
- /** @internal */
198
- export type NotificationStepVariantReplyCallback$Outbound = {};
199
-
200
- /** @internal */
201
- export const NotificationStepVariantReplyCallback$outboundSchema: z.ZodType<
202
- NotificationStepVariantReplyCallback$Outbound,
203
- z.ZodTypeDef,
204
- NotificationStepVariantReplyCallback
205
- > = z.object({});
206
-
207
- /**
208
- * @internal
209
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
210
- */
211
- export namespace NotificationStepVariantReplyCallback$ {
212
- /** @deprecated use `NotificationStepVariantReplyCallback$inboundSchema` instead. */
213
- export const inboundSchema =
214
- NotificationStepVariantReplyCallback$inboundSchema;
215
- /** @deprecated use `NotificationStepVariantReplyCallback$outboundSchema` instead. */
216
- export const outboundSchema =
217
- NotificationStepVariantReplyCallback$outboundSchema;
218
- /** @deprecated use `NotificationStepVariantReplyCallback$Outbound` instead. */
219
- export type Outbound = NotificationStepVariantReplyCallback$Outbound;
220
- }
221
-
222
- export function notificationStepVariantReplyCallbackToJSON(
223
- notificationStepVariantReplyCallback: NotificationStepVariantReplyCallback,
224
- ): string {
225
- return JSON.stringify(
226
- NotificationStepVariantReplyCallback$outboundSchema.parse(
227
- notificationStepVariantReplyCallback,
228
- ),
229
- );
230
- }
231
-
232
- export function notificationStepVariantReplyCallbackFromJSON(
233
- jsonString: string,
234
- ): SafeParseResult<NotificationStepVariantReplyCallback, SDKValidationError> {
235
- return safeParse(
236
- jsonString,
237
- (x) =>
238
- NotificationStepVariantReplyCallback$inboundSchema.parse(JSON.parse(x)),
239
- `Failed to parse 'NotificationStepVariantReplyCallback' from JSON`,
240
- );
241
- }
242
-
243
- /** @internal */
244
- export const NotificationStepVariant$inboundSchema: z.ZodType<
245
- NotificationStepVariant,
246
- z.ZodTypeDef,
247
- unknown
248
- > = z.object({
249
- _id: z.string().optional(),
250
- uuid: z.string().optional(),
251
- name: z.string().optional(),
252
- _templateId: z.string().optional(),
253
- active: z.boolean().optional(),
254
- shouldStopOnFail: z.boolean().optional(),
255
- template: MessageTemplate$inboundSchema.optional(),
256
- filters: z.array(StepFilterDto$inboundSchema).optional(),
257
- _parentId: z.lazy(() => NotificationStepVariantParentId$inboundSchema)
258
- .optional(),
259
- metadata: z.union([
260
- DelayScheduledMetadata$inboundSchema,
261
- DelayRegularMetadata$inboundSchema,
262
- DigestTimedMetadata$inboundSchema,
263
- DigestRegularMetadata$inboundSchema,
264
- ]).optional(),
265
- replyCallback: z.lazy(() =>
266
- NotificationStepVariantReplyCallback$inboundSchema
267
- ).optional(),
268
- }).transform((v) => {
269
- return remap$(v, {
270
- "_id": "id",
271
- "_templateId": "templateId",
272
- "_parentId": "parentId",
273
- });
274
- });
275
-
276
- /** @internal */
277
- export type NotificationStepVariant$Outbound = {
278
- _id?: string | undefined;
279
- uuid?: string | undefined;
280
- name?: string | undefined;
281
- _templateId?: string | undefined;
282
- active?: boolean | undefined;
283
- shouldStopOnFail?: boolean | undefined;
284
- template?: MessageTemplate$Outbound | undefined;
285
- filters?: Array<StepFilterDto$Outbound> | undefined;
286
- _parentId?: NotificationStepVariantParentId$Outbound | undefined;
287
- metadata?:
288
- | DelayScheduledMetadata$Outbound
289
- | DelayRegularMetadata$Outbound
290
- | DigestTimedMetadata$Outbound
291
- | DigestRegularMetadata$Outbound
292
- | undefined;
293
- replyCallback?: NotificationStepVariantReplyCallback$Outbound | undefined;
294
- };
295
-
296
- /** @internal */
297
- export const NotificationStepVariant$outboundSchema: z.ZodType<
298
- NotificationStepVariant$Outbound,
299
- z.ZodTypeDef,
300
- NotificationStepVariant
301
- > = z.object({
302
- id: z.string().optional(),
303
- uuid: z.string().optional(),
304
- name: z.string().optional(),
305
- templateId: z.string().optional(),
306
- active: z.boolean().optional(),
307
- shouldStopOnFail: z.boolean().optional(),
308
- template: MessageTemplate$outboundSchema.optional(),
309
- filters: z.array(StepFilterDto$outboundSchema).optional(),
310
- parentId: z.lazy(() => NotificationStepVariantParentId$outboundSchema)
311
- .optional(),
312
- metadata: z.union([
313
- DelayScheduledMetadata$outboundSchema,
314
- DelayRegularMetadata$outboundSchema,
315
- DigestTimedMetadata$outboundSchema,
316
- DigestRegularMetadata$outboundSchema,
317
- ]).optional(),
318
- replyCallback: z.lazy(() =>
319
- NotificationStepVariantReplyCallback$outboundSchema
320
- ).optional(),
321
- }).transform((v) => {
322
- return remap$(v, {
323
- id: "_id",
324
- templateId: "_templateId",
325
- parentId: "_parentId",
326
- });
327
- });
328
-
329
- /**
330
- * @internal
331
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
332
- */
333
- export namespace NotificationStepVariant$ {
334
- /** @deprecated use `NotificationStepVariant$inboundSchema` instead. */
335
- export const inboundSchema = NotificationStepVariant$inboundSchema;
336
- /** @deprecated use `NotificationStepVariant$outboundSchema` instead. */
337
- export const outboundSchema = NotificationStepVariant$outboundSchema;
338
- /** @deprecated use `NotificationStepVariant$Outbound` instead. */
339
- export type Outbound = NotificationStepVariant$Outbound;
340
- }
341
-
342
- export function notificationStepVariantToJSON(
343
- notificationStepVariant: NotificationStepVariant,
344
- ): string {
345
- return JSON.stringify(
346
- NotificationStepVariant$outboundSchema.parse(notificationStepVariant),
347
- );
348
- }
349
-
350
- export function notificationStepVariantFromJSON(
351
- jsonString: string,
352
- ): SafeParseResult<NotificationStepVariant, SDKValidationError> {
353
- return safeParse(
354
- jsonString,
355
- (x) => NotificationStepVariant$inboundSchema.parse(JSON.parse(x)),
356
- `Failed to parse 'NotificationStepVariant' from JSON`,
357
- );
358
- }
@@ -1,54 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- export type StepFilter = {};
11
-
12
- /** @internal */
13
- export const StepFilter$inboundSchema: z.ZodType<
14
- StepFilter,
15
- z.ZodTypeDef,
16
- unknown
17
- > = z.object({});
18
-
19
- /** @internal */
20
- export type StepFilter$Outbound = {};
21
-
22
- /** @internal */
23
- export const StepFilter$outboundSchema: z.ZodType<
24
- StepFilter$Outbound,
25
- z.ZodTypeDef,
26
- StepFilter
27
- > = z.object({});
28
-
29
- /**
30
- * @internal
31
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
32
- */
33
- export namespace StepFilter$ {
34
- /** @deprecated use `StepFilter$inboundSchema` instead. */
35
- export const inboundSchema = StepFilter$inboundSchema;
36
- /** @deprecated use `StepFilter$outboundSchema` instead. */
37
- export const outboundSchema = StepFilter$outboundSchema;
38
- /** @deprecated use `StepFilter$Outbound` instead. */
39
- export type Outbound = StepFilter$Outbound;
40
- }
41
-
42
- export function stepFilterToJSON(stepFilter: StepFilter): string {
43
- return JSON.stringify(StepFilter$outboundSchema.parse(stepFilter));
44
- }
45
-
46
- export function stepFilterFromJSON(
47
- jsonString: string,
48
- ): SafeParseResult<StepFilter, SDKValidationError> {
49
- return safeParse(
50
- jsonString,
51
- (x) => StepFilter$inboundSchema.parse(JSON.parse(x)),
52
- `Failed to parse 'StepFilter' from JSON`,
53
- );
54
- }