@novu/api 0.0.1-alpha.148 → 0.0.1-alpha.150

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 (204) hide show
  1. package/RUNTIMES.md +27 -1
  2. package/funcs/cancel.js +4 -4
  3. package/funcs/cancel.js.map +1 -1
  4. package/funcs/integrationsCreate.js +4 -4
  5. package/funcs/integrationsCreate.js.map +1 -1
  6. package/funcs/integrationsDelete.js +4 -4
  7. package/funcs/integrationsDelete.js.map +1 -1
  8. package/funcs/integrationsList.js +4 -4
  9. package/funcs/integrationsList.js.map +1 -1
  10. package/funcs/integrationsListActive.js +4 -4
  11. package/funcs/integrationsListActive.js.map +1 -1
  12. package/funcs/integrationsSetAsPrimary.js +4 -4
  13. package/funcs/integrationsSetAsPrimary.js.map +1 -1
  14. package/funcs/integrationsUpdate.js +4 -4
  15. package/funcs/integrationsUpdate.js.map +1 -1
  16. package/funcs/integrationsWebhooksRetrieve.js +4 -4
  17. package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
  18. package/funcs/messagesDelete.js +4 -4
  19. package/funcs/messagesDelete.js.map +1 -1
  20. package/funcs/messagesDeleteByTransactionId.js +4 -4
  21. package/funcs/messagesDeleteByTransactionId.js.map +1 -1
  22. package/funcs/messagesRetrieve.js +4 -4
  23. package/funcs/messagesRetrieve.js.map +1 -1
  24. package/funcs/notificationsList.js +4 -4
  25. package/funcs/notificationsList.js.map +1 -1
  26. package/funcs/notificationsRetrieve.js +4 -4
  27. package/funcs/notificationsRetrieve.js.map +1 -1
  28. package/funcs/notificationsStatsGraph.js +4 -4
  29. package/funcs/notificationsStatsGraph.js.map +1 -1
  30. package/funcs/notificationsStatsRetrieve.js +4 -4
  31. package/funcs/notificationsStatsRetrieve.js.map +1 -1
  32. package/funcs/subscribersAuthenticationChatAccessOauth.js +4 -4
  33. package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
  34. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +5 -5
  35. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
  36. package/funcs/subscribersCreate.js +4 -4
  37. package/funcs/subscribersCreate.js.map +1 -1
  38. package/funcs/subscribersCreateBulk.js +4 -4
  39. package/funcs/subscribersCreateBulk.js.map +1 -1
  40. package/funcs/subscribersCredentialsAppend.js +4 -4
  41. package/funcs/subscribersCredentialsAppend.js.map +1 -1
  42. package/funcs/subscribersCredentialsDelete.js +4 -4
  43. package/funcs/subscribersCredentialsDelete.js.map +1 -1
  44. package/funcs/subscribersCredentialsUpdate.js +4 -4
  45. package/funcs/subscribersCredentialsUpdate.js.map +1 -1
  46. package/funcs/subscribersDelete.js +4 -4
  47. package/funcs/subscribersDelete.js.map +1 -1
  48. package/funcs/subscribersList.js +6 -6
  49. package/funcs/subscribersList.js.map +1 -1
  50. package/funcs/subscribersMessagesMarkAll.js +4 -4
  51. package/funcs/subscribersMessagesMarkAll.js.map +1 -1
  52. package/funcs/subscribersMessagesMarkAllAs.js +4 -4
  53. package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
  54. package/funcs/subscribersMessagesUpdateAsSeen.js +4 -4
  55. package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
  56. package/funcs/subscribersNotificationsFeed.js +4 -4
  57. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  58. package/funcs/subscribersNotificationsUnseenCount.js +4 -4
  59. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  60. package/funcs/subscribersPreferencesList.js +4 -4
  61. package/funcs/subscribersPreferencesList.js.map +1 -1
  62. package/funcs/subscribersPreferencesRetrieveByLevel.js +4 -4
  63. package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
  64. package/funcs/subscribersPreferencesUpdate.js +4 -4
  65. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  66. package/funcs/subscribersPreferencesUpdateGlobal.js +4 -4
  67. package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
  68. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +4 -4
  69. package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
  70. package/funcs/subscribersRetrieve.js +4 -4
  71. package/funcs/subscribersRetrieve.js.map +1 -1
  72. package/funcs/subscribersUpdate.js +4 -4
  73. package/funcs/subscribersUpdate.js.map +1 -1
  74. package/funcs/topicsCreate.js +4 -4
  75. package/funcs/topicsCreate.js.map +1 -1
  76. package/funcs/topicsDelete.js +4 -4
  77. package/funcs/topicsDelete.js.map +1 -1
  78. package/funcs/topicsList.js +4 -4
  79. package/funcs/topicsList.js.map +1 -1
  80. package/funcs/topicsRename.js +4 -4
  81. package/funcs/topicsRename.js.map +1 -1
  82. package/funcs/topicsRetrieve.js +4 -4
  83. package/funcs/topicsRetrieve.js.map +1 -1
  84. package/funcs/topicsSubscribersAssign.js +4 -4
  85. package/funcs/topicsSubscribersAssign.js.map +1 -1
  86. package/funcs/topicsSubscribersRemove.js +4 -4
  87. package/funcs/topicsSubscribersRemove.js.map +1 -1
  88. package/funcs/topicsSubscribersRetrieve.js +4 -4
  89. package/funcs/topicsSubscribersRetrieve.js.map +1 -1
  90. package/funcs/trigger.js +4 -4
  91. package/funcs/trigger.js.map +1 -1
  92. package/funcs/triggerBroadcast.js +4 -4
  93. package/funcs/triggerBroadcast.js.map +1 -1
  94. package/funcs/triggerBulk.js +4 -4
  95. package/funcs/triggerBulk.js.map +1 -1
  96. package/lib/config.d.ts +3 -3
  97. package/lib/config.js +4 -5
  98. package/lib/config.js.map +1 -1
  99. package/lib/encodings.js +18 -19
  100. package/lib/encodings.js.map +1 -1
  101. package/lib/http.js +1 -2
  102. package/lib/http.js.map +1 -1
  103. package/lib/matchers.js +5 -6
  104. package/lib/matchers.js.map +1 -1
  105. package/lib/primitives.js +1 -1
  106. package/lib/primitives.js.map +1 -1
  107. package/lib/retries.js +3 -4
  108. package/lib/retries.js.map +1 -1
  109. package/lib/sdks.js +15 -16
  110. package/lib/sdks.js.map +1 -1
  111. package/lib/security.js +1 -1
  112. package/lib/security.js.map +1 -1
  113. package/lib/url.js +1 -1
  114. package/lib/url.js.map +1 -1
  115. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +0 -5
  116. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
  117. package/models/components/activitynotificationexecutiondetailresponsedto.js +0 -4
  118. package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
  119. package/models/components/activitynotificationjobresponsedto.d.ts +49 -19
  120. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
  121. package/models/components/activitynotificationjobresponsedto.js +29 -23
  122. package/models/components/activitynotificationjobresponsedto.js.map +1 -1
  123. package/models/components/builderfieldtype.d.ts +46 -0
  124. package/models/components/builderfieldtype.d.ts.map +1 -0
  125. package/models/components/builderfieldtype.js +56 -0
  126. package/models/components/builderfieldtype.js.map +1 -0
  127. package/models/components/createintegrationrequestdto.d.ts +3 -3
  128. package/models/components/createintegrationrequestdto.d.ts.map +1 -1
  129. package/models/components/createintegrationrequestdto.js +3 -3
  130. package/models/components/createintegrationrequestdto.js.map +1 -1
  131. package/models/components/digestregularmetadata.d.ts +8 -8
  132. package/models/components/digestregularmetadata.d.ts.map +1 -1
  133. package/models/components/digestregularmetadata.js +13 -13
  134. package/models/components/digestregularmetadata.js.map +1 -1
  135. package/models/components/digestwitheventsdto.d.ts +95 -0
  136. package/models/components/digestwitheventsdto.d.ts.map +1 -0
  137. package/models/components/digestwitheventsdto.js +91 -0
  138. package/models/components/digestwitheventsdto.js.map +1 -0
  139. package/models/components/fieldfilterpartdto.d.ts +122 -0
  140. package/models/components/fieldfilterpartdto.d.ts.map +1 -0
  141. package/models/components/fieldfilterpartdto.js +116 -0
  142. package/models/components/fieldfilterpartdto.js.map +1 -0
  143. package/models/components/index.d.ts +4 -0
  144. package/models/components/index.d.ts.map +1 -1
  145. package/models/components/index.js +4 -0
  146. package/models/components/index.js.map +1 -1
  147. package/models/components/integrationresponsedto.d.ts +3 -3
  148. package/models/components/integrationresponsedto.d.ts.map +1 -1
  149. package/models/components/integrationresponsedto.js +3 -3
  150. package/models/components/integrationresponsedto.js.map +1 -1
  151. package/models/components/notificationstep.d.ts +3 -3
  152. package/models/components/notificationstep.d.ts.map +1 -1
  153. package/models/components/notificationstep.js +3 -3
  154. package/models/components/notificationstep.js.map +1 -1
  155. package/models/components/notificationstepvariant.d.ts +3 -3
  156. package/models/components/notificationstepvariant.d.ts.map +1 -1
  157. package/models/components/notificationstepvariant.js +3 -3
  158. package/models/components/notificationstepvariant.js.map +1 -1
  159. package/models/components/notificationtriggervariableresponse.d.ts +15 -15
  160. package/models/components/notificationtriggervariableresponse.d.ts.map +1 -1
  161. package/models/components/notificationtriggervariableresponse.js +20 -19
  162. package/models/components/notificationtriggervariableresponse.js.map +1 -1
  163. package/models/components/stepfilterdto.d.ts +63 -0
  164. package/models/components/stepfilterdto.d.ts.map +1 -0
  165. package/models/components/stepfilterdto.js +86 -0
  166. package/models/components/stepfilterdto.js.map +1 -0
  167. package/models/components/subscriberresponsedto.d.ts +2 -2
  168. package/models/components/subscriberresponsedto.d.ts.map +1 -1
  169. package/models/components/subscriberresponsedto.js +2 -2
  170. package/models/components/subscriberresponsedto.js.map +1 -1
  171. package/models/components/updateintegrationrequestdto.d.ts +3 -3
  172. package/models/components/updateintegrationrequestdto.d.ts.map +1 -1
  173. package/models/components/updateintegrationrequestdto.js +3 -3
  174. package/models/components/updateintegrationrequestdto.js.map +1 -1
  175. package/models/errors/httpclienterrors.js +2 -2
  176. package/models/errors/httpclienterrors.js.map +1 -1
  177. package/package.json +1 -1
  178. package/sdk/integrations.js +1 -2
  179. package/sdk/integrations.js.map +1 -1
  180. package/sdk/notifications.js +1 -2
  181. package/sdk/notifications.js.map +1 -1
  182. package/sdk/sdk.js +5 -10
  183. package/sdk/sdk.js.map +1 -1
  184. package/sdk/subscribers.js +6 -12
  185. package/sdk/subscribers.js.map +1 -1
  186. package/sdk/topics.js +1 -2
  187. package/sdk/topics.js.map +1 -1
  188. package/src/funcs/subscribersList.ts +2 -2
  189. package/src/lib/config.ts +3 -3
  190. package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +0 -9
  191. package/src/models/components/activitynotificationjobresponsedto.ts +47 -41
  192. package/src/models/components/builderfieldtype.ts +39 -0
  193. package/src/models/components/createintegrationrequestdto.ts +9 -9
  194. package/src/models/components/digestregularmetadata.ts +18 -15
  195. package/src/models/components/digestwitheventsdto.ts +127 -0
  196. package/src/models/components/fieldfilterpartdto.ts +139 -0
  197. package/src/models/components/index.ts +4 -0
  198. package/src/models/components/integrationresponsedto.ts +9 -9
  199. package/src/models/components/notificationstep.ts +9 -9
  200. package/src/models/components/notificationstepvariant.ts +9 -9
  201. package/src/models/components/notificationtriggervariableresponse.ts +44 -24
  202. package/src/models/components/stepfilterdto.ts +112 -0
  203. package/src/models/components/subscriberresponsedto.ts +4 -4
  204. package/src/models/components/updateintegrationrequestdto.ts +9 -9
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  /**
12
12
  * The value of the variable
13
13
  */
14
- export type Value = {};
14
+ export type NotificationTriggerVariableResponseValue = {};
15
15
 
16
16
  /**
17
17
  * The type of the variable
@@ -36,7 +36,7 @@ export type NotificationTriggerVariableResponse = {
36
36
  /**
37
37
  * The value of the variable
38
38
  */
39
- value?: Value | undefined;
39
+ value?: NotificationTriggerVariableResponseValue | undefined;
40
40
  /**
41
41
  * The type of the variable
42
42
  */
@@ -44,43 +44,61 @@ export type NotificationTriggerVariableResponse = {
44
44
  };
45
45
 
46
46
  /** @internal */
47
- export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
48
- .object({});
47
+ export const NotificationTriggerVariableResponseValue$inboundSchema: z.ZodType<
48
+ NotificationTriggerVariableResponseValue,
49
+ z.ZodTypeDef,
50
+ unknown
51
+ > = z.object({});
49
52
 
50
53
  /** @internal */
51
- export type Value$Outbound = {};
54
+ export type NotificationTriggerVariableResponseValue$Outbound = {};
52
55
 
53
56
  /** @internal */
54
- export const Value$outboundSchema: z.ZodType<
55
- Value$Outbound,
57
+ export const NotificationTriggerVariableResponseValue$outboundSchema: z.ZodType<
58
+ NotificationTriggerVariableResponseValue$Outbound,
56
59
  z.ZodTypeDef,
57
- Value
60
+ NotificationTriggerVariableResponseValue
58
61
  > = z.object({});
59
62
 
60
63
  /**
61
64
  * @internal
62
65
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
66
  */
64
- export namespace Value$ {
65
- /** @deprecated use `Value$inboundSchema` instead. */
66
- export const inboundSchema = Value$inboundSchema;
67
- /** @deprecated use `Value$outboundSchema` instead. */
68
- export const outboundSchema = Value$outboundSchema;
69
- /** @deprecated use `Value$Outbound` instead. */
70
- export type Outbound = Value$Outbound;
67
+ export namespace NotificationTriggerVariableResponseValue$ {
68
+ /** @deprecated use `NotificationTriggerVariableResponseValue$inboundSchema` instead. */
69
+ export const inboundSchema =
70
+ NotificationTriggerVariableResponseValue$inboundSchema;
71
+ /** @deprecated use `NotificationTriggerVariableResponseValue$outboundSchema` instead. */
72
+ export const outboundSchema =
73
+ NotificationTriggerVariableResponseValue$outboundSchema;
74
+ /** @deprecated use `NotificationTriggerVariableResponseValue$Outbound` instead. */
75
+ export type Outbound = NotificationTriggerVariableResponseValue$Outbound;
71
76
  }
72
77
 
73
- export function valueToJSON(value: Value): string {
74
- return JSON.stringify(Value$outboundSchema.parse(value));
78
+ export function notificationTriggerVariableResponseValueToJSON(
79
+ notificationTriggerVariableResponseValue:
80
+ NotificationTriggerVariableResponseValue,
81
+ ): string {
82
+ return JSON.stringify(
83
+ NotificationTriggerVariableResponseValue$outboundSchema.parse(
84
+ notificationTriggerVariableResponseValue,
85
+ ),
86
+ );
75
87
  }
76
88
 
77
- export function valueFromJSON(
89
+ export function notificationTriggerVariableResponseValueFromJSON(
78
90
  jsonString: string,
79
- ): SafeParseResult<Value, SDKValidationError> {
91
+ ): SafeParseResult<
92
+ NotificationTriggerVariableResponseValue,
93
+ SDKValidationError
94
+ > {
80
95
  return safeParse(
81
96
  jsonString,
82
- (x) => Value$inboundSchema.parse(JSON.parse(x)),
83
- `Failed to parse 'Value' from JSON`,
97
+ (x) =>
98
+ NotificationTriggerVariableResponseValue$inboundSchema.parse(
99
+ JSON.parse(x),
100
+ ),
101
+ `Failed to parse 'NotificationTriggerVariableResponseValue' from JSON`,
84
102
  );
85
103
  }
86
104
 
@@ -114,14 +132,15 @@ export const NotificationTriggerVariableResponse$inboundSchema: z.ZodType<
114
132
  unknown
115
133
  > = z.object({
116
134
  name: z.string(),
117
- value: z.lazy(() => Value$inboundSchema).optional(),
135
+ value: z.lazy(() => NotificationTriggerVariableResponseValue$inboundSchema)
136
+ .optional(),
118
137
  type: NotificationTriggerVariableResponseType$inboundSchema.optional(),
119
138
  });
120
139
 
121
140
  /** @internal */
122
141
  export type NotificationTriggerVariableResponse$Outbound = {
123
142
  name: string;
124
- value?: Value$Outbound | undefined;
143
+ value?: NotificationTriggerVariableResponseValue$Outbound | undefined;
125
144
  type?: string | undefined;
126
145
  };
127
146
 
@@ -132,7 +151,8 @@ export const NotificationTriggerVariableResponse$outboundSchema: z.ZodType<
132
151
  NotificationTriggerVariableResponse
133
152
  > = z.object({
134
153
  name: z.string(),
135
- value: z.lazy(() => Value$outboundSchema).optional(),
154
+ value: z.lazy(() => NotificationTriggerVariableResponseValue$outboundSchema)
155
+ .optional(),
136
156
  type: NotificationTriggerVariableResponseType$outboundSchema.optional(),
137
157
  });
138
158
 
@@ -0,0 +1,112 @@
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 { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ BuilderFieldType,
12
+ BuilderFieldType$inboundSchema,
13
+ BuilderFieldType$outboundSchema,
14
+ } from "./builderfieldtype.js";
15
+ import {
16
+ FieldFilterPartDto,
17
+ FieldFilterPartDto$inboundSchema,
18
+ FieldFilterPartDto$Outbound,
19
+ FieldFilterPartDto$outboundSchema,
20
+ } from "./fieldfilterpartdto.js";
21
+
22
+ export const Value = {
23
+ And: "AND",
24
+ Or: "OR",
25
+ } as const;
26
+ export type Value = ClosedEnum<typeof Value>;
27
+
28
+ export type StepFilterDto = {
29
+ isNegated: boolean;
30
+ type: BuilderFieldType;
31
+ value: Value;
32
+ children: Array<FieldFilterPartDto>;
33
+ };
34
+
35
+ /** @internal */
36
+ export const Value$inboundSchema: z.ZodNativeEnum<typeof Value> = z.nativeEnum(
37
+ Value,
38
+ );
39
+
40
+ /** @internal */
41
+ export const Value$outboundSchema: z.ZodNativeEnum<typeof Value> =
42
+ Value$inboundSchema;
43
+
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export namespace Value$ {
49
+ /** @deprecated use `Value$inboundSchema` instead. */
50
+ export const inboundSchema = Value$inboundSchema;
51
+ /** @deprecated use `Value$outboundSchema` instead. */
52
+ export const outboundSchema = Value$outboundSchema;
53
+ }
54
+
55
+ /** @internal */
56
+ export const StepFilterDto$inboundSchema: z.ZodType<
57
+ StepFilterDto,
58
+ z.ZodTypeDef,
59
+ unknown
60
+ > = z.object({
61
+ isNegated: z.boolean(),
62
+ type: BuilderFieldType$inboundSchema,
63
+ value: Value$inboundSchema,
64
+ children: z.array(FieldFilterPartDto$inboundSchema),
65
+ });
66
+
67
+ /** @internal */
68
+ export type StepFilterDto$Outbound = {
69
+ isNegated: boolean;
70
+ type: string;
71
+ value: string;
72
+ children: Array<FieldFilterPartDto$Outbound>;
73
+ };
74
+
75
+ /** @internal */
76
+ export const StepFilterDto$outboundSchema: z.ZodType<
77
+ StepFilterDto$Outbound,
78
+ z.ZodTypeDef,
79
+ StepFilterDto
80
+ > = z.object({
81
+ isNegated: z.boolean(),
82
+ type: BuilderFieldType$outboundSchema,
83
+ value: Value$outboundSchema,
84
+ children: z.array(FieldFilterPartDto$outboundSchema),
85
+ });
86
+
87
+ /**
88
+ * @internal
89
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
+ */
91
+ export namespace StepFilterDto$ {
92
+ /** @deprecated use `StepFilterDto$inboundSchema` instead. */
93
+ export const inboundSchema = StepFilterDto$inboundSchema;
94
+ /** @deprecated use `StepFilterDto$outboundSchema` instead. */
95
+ export const outboundSchema = StepFilterDto$outboundSchema;
96
+ /** @deprecated use `StepFilterDto$Outbound` instead. */
97
+ export type Outbound = StepFilterDto$Outbound;
98
+ }
99
+
100
+ export function stepFilterDtoToJSON(stepFilterDto: StepFilterDto): string {
101
+ return JSON.stringify(StepFilterDto$outboundSchema.parse(stepFilterDto));
102
+ }
103
+
104
+ export function stepFilterDtoFromJSON(
105
+ jsonString: string,
106
+ ): SafeParseResult<StepFilterDto, SDKValidationError> {
107
+ return safeParse(
108
+ jsonString,
109
+ (x) => StepFilterDto$inboundSchema.parse(JSON.parse(x)),
110
+ `Failed to parse 'StepFilterDto' from JSON`,
111
+ );
112
+ }
@@ -30,7 +30,7 @@ export type SubscriberResponseDto = {
30
30
  /**
31
31
  * The email address of the subscriber.
32
32
  */
33
- email?: string | undefined;
33
+ email?: string | null | undefined;
34
34
  /**
35
35
  * The phone number of the subscriber.
36
36
  */
@@ -98,7 +98,7 @@ export const SubscriberResponseDto$inboundSchema: z.ZodType<
98
98
  _id: z.string().optional(),
99
99
  firstName: z.string().optional(),
100
100
  lastName: z.string().optional(),
101
- email: z.string().optional(),
101
+ email: z.nullable(z.string()).optional(),
102
102
  phone: z.string().optional(),
103
103
  avatar: z.string().optional(),
104
104
  locale: z.string().optional(),
@@ -127,7 +127,7 @@ export type SubscriberResponseDto$Outbound = {
127
127
  _id?: string | undefined;
128
128
  firstName?: string | undefined;
129
129
  lastName?: string | undefined;
130
- email?: string | undefined;
130
+ email?: string | null | undefined;
131
131
  phone?: string | undefined;
132
132
  avatar?: string | undefined;
133
133
  locale?: string | undefined;
@@ -153,7 +153,7 @@ export const SubscriberResponseDto$outboundSchema: z.ZodType<
153
153
  id: z.string().optional(),
154
154
  firstName: z.string().optional(),
155
155
  lastName: z.string().optional(),
156
- email: z.string().optional(),
156
+ email: z.nullable(z.string()).optional(),
157
157
  phone: z.string().optional(),
158
158
  avatar: z.string().optional(),
159
159
  locale: z.string().optional(),
@@ -14,11 +14,11 @@ import {
14
14
  CredentialsDto$outboundSchema,
15
15
  } from "./credentialsdto.js";
16
16
  import {
17
- StepFilter,
18
- StepFilter$inboundSchema,
19
- StepFilter$Outbound,
20
- StepFilter$outboundSchema,
21
- } from "./stepfilter.js";
17
+ StepFilterDto,
18
+ StepFilterDto$inboundSchema,
19
+ StepFilterDto$Outbound,
20
+ StepFilterDto$outboundSchema,
21
+ } from "./stepfilterdto.js";
22
22
 
23
23
  export type UpdateIntegrationRequestDto = {
24
24
  name?: string | undefined;
@@ -34,7 +34,7 @@ export type UpdateIntegrationRequestDto = {
34
34
  */
35
35
  removeNovuBranding?: boolean | undefined;
36
36
  check?: boolean | undefined;
37
- conditions?: Array<StepFilter> | undefined;
37
+ conditions?: Array<StepFilterDto> | undefined;
38
38
  };
39
39
 
40
40
  /** @internal */
@@ -50,7 +50,7 @@ export const UpdateIntegrationRequestDto$inboundSchema: z.ZodType<
50
50
  credentials: CredentialsDto$inboundSchema.optional(),
51
51
  removeNovuBranding: z.boolean().optional(),
52
52
  check: z.boolean().optional(),
53
- conditions: z.array(StepFilter$inboundSchema).optional(),
53
+ conditions: z.array(StepFilterDto$inboundSchema).optional(),
54
54
  }).transform((v) => {
55
55
  return remap$(v, {
56
56
  "_environmentId": "environmentId",
@@ -66,7 +66,7 @@ export type UpdateIntegrationRequestDto$Outbound = {
66
66
  credentials?: CredentialsDto$Outbound | undefined;
67
67
  removeNovuBranding?: boolean | undefined;
68
68
  check?: boolean | undefined;
69
- conditions?: Array<StepFilter$Outbound> | undefined;
69
+ conditions?: Array<StepFilterDto$Outbound> | undefined;
70
70
  };
71
71
 
72
72
  /** @internal */
@@ -82,7 +82,7 @@ export const UpdateIntegrationRequestDto$outboundSchema: z.ZodType<
82
82
  credentials: CredentialsDto$outboundSchema.optional(),
83
83
  removeNovuBranding: z.boolean().optional(),
84
84
  check: z.boolean().optional(),
85
- conditions: z.array(StepFilter$outboundSchema).optional(),
85
+ conditions: z.array(StepFilterDto$outboundSchema).optional(),
86
86
  }).transform((v) => {
87
87
  return remap$(v, {
88
88
  environmentId: "_environmentId",