@novu/api 1.2.0 → 1.3.0
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/FUNCTIONS.md +5 -22
- package/README.md +48 -74
- package/bin/mcp-server.js +289 -23
- package/bin/mcp-server.js.map +59 -57
- package/docs/sdks/credentials/README.md +15 -27
- package/docs/sdks/integrations/README.md +30 -54
- package/docs/sdks/messages/README.md +15 -27
- package/docs/sdks/notifications/README.md +10 -18
- package/docs/sdks/novu/README.md +44 -57
- package/docs/sdks/novumessages/README.md +15 -27
- package/docs/sdks/novunotifications/README.md +10 -18
- package/docs/sdks/novusubscribers/README.md +5 -9
- package/docs/sdks/novutopics/README.md +5 -9
- package/docs/sdks/preferences/README.md +10 -18
- package/docs/sdks/properties/README.md +5 -9
- package/docs/sdks/subscribers/README.md +34 -57
- package/docs/sdks/subscriptions/README.md +16 -28
- package/docs/sdks/topics/README.md +25 -45
- package/funcs/cancel.d.ts +1 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +2 -0
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.d.ts +1 -1
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +2 -0
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts +1 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +2 -0
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts +1 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +2 -0
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts +1 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +2 -0
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +2 -0
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts +1 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +2 -0
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/messagesDelete.d.ts +1 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +2 -0
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +2 -0
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +2 -0
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +2 -0
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts +1 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +2 -0
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/subscribersCreate.d.ts +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +2 -0
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +2 -0
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +2 -0
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +2 -0
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +2 -0
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts +4 -3
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +5 -2
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +2 -0
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +2 -0
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +2 -0
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +2 -0
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +2 -0
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPatch.d.ts +1 -1
- package/funcs/subscribersPatch.d.ts.map +1 -1
- package/funcs/subscribersPatch.js +2 -0
- package/funcs/subscribersPatch.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +2 -0
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +2 -0
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +2 -0
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts +2 -2
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +3 -1
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersSearch.d.ts +1 -1
- package/funcs/subscribersSearch.d.ts.map +1 -1
- package/funcs/subscribersSearch.js +2 -0
- package/funcs/subscribersSearch.js.map +1 -1
- package/funcs/subscribersTopicsList.d.ts +1 -1
- package/funcs/subscribersTopicsList.d.ts.map +1 -1
- package/funcs/subscribersTopicsList.js +2 -0
- package/funcs/subscribersTopicsList.js.map +1 -1
- package/funcs/topicsCreate.d.ts +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +2 -0
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts +1 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +2 -0
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsGet.d.ts +1 -1
- package/funcs/topicsGet.d.ts.map +1 -1
- package/funcs/topicsGet.js +2 -0
- package/funcs/topicsGet.js.map +1 -1
- package/funcs/topicsList.d.ts +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +2 -0
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +2 -0
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/topicsSubscriptionsCreate.d.ts +1 -1
- package/funcs/topicsSubscriptionsCreate.d.ts.map +1 -1
- package/funcs/topicsSubscriptionsCreate.js +2 -0
- package/funcs/topicsSubscriptionsCreate.js.map +1 -1
- package/funcs/topicsSubscriptionsDelete.d.ts +1 -1
- package/funcs/topicsSubscriptionsDelete.d.ts.map +1 -1
- package/funcs/topicsSubscriptionsDelete.js +2 -0
- package/funcs/topicsSubscriptionsDelete.js.map +1 -1
- package/funcs/topicsSubscriptionsList.d.ts +2 -2
- package/funcs/topicsSubscriptionsList.d.ts.map +1 -1
- package/funcs/topicsSubscriptionsList.js +3 -1
- package/funcs/topicsSubscriptionsList.js.map +1 -1
- package/funcs/topicsUpdate.d.ts +1 -1
- package/funcs/topicsUpdate.d.ts.map +1 -1
- package/funcs/topicsUpdate.js +2 -0
- package/funcs/topicsUpdate.js.map +1 -1
- package/funcs/trigger.d.ts +1 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +5 -1
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts +1 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +5 -1
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts +1 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +5 -1
- package/funcs/triggerBulk.js.map +1 -1
- package/hooks/types.d.ts +2 -0
- package/hooks/types.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +7 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +1 -0
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +3 -3
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/subscribersDelete.d.ts.map +1 -1
- package/mcp-server/tools/subscribersDelete.js +3 -2
- package/mcp-server/tools/subscribersDelete.js.map +1 -1
- package/mcp-server/tools/subscribersRetrieve.js +1 -1
- package/mcp-server/tools/topicsSubscriptionsList.js +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/notificationfeeditemdto.d.ts +2 -2
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js +2 -2
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/components/payloadvalidationerrordto.d.ts +125 -0
- package/models/components/payloadvalidationerrordto.d.ts.map +1 -0
- package/models/components/payloadvalidationerrordto.js +160 -0
- package/models/components/payloadvalidationerrordto.js.map +1 -0
- package/models/components/updateintegrationrequestdto.d.ts +0 -5
- package/models/components/updateintegrationrequestdto.d.ts.map +1 -1
- package/models/components/updateintegrationrequestdto.js +0 -2
- package/models/components/updateintegrationrequestdto.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/payloadvalidationexceptiondto.d.ts +222 -0
- package/models/errors/payloadvalidationexceptiondto.d.ts.map +1 -0
- package/models/errors/payloadvalidationexceptiondto.js +212 -0
- package/models/errors/payloadvalidationexceptiondto.js.map +1 -0
- package/models/errors/sdkerror.d.ts +14 -2
- package/models/errors/sdkerror.d.ts.map +1 -1
- package/models/errors/sdkerror.js +1 -1
- package/models/errors/sdkerror.js.map +1 -1
- package/package.json +1 -1
- package/sdk/subscribers.d.ts +4 -3
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +4 -3
- package/sdk/subscribers.js.map +1 -1
- package/sdk/subscriptions.d.ts +1 -1
- package/sdk/subscriptions.js +1 -1
- package/sources/json-development.json +227 -46
- package/src/funcs/cancel.ts +2 -6
- package/src/funcs/integrationsCreate.ts +2 -6
- package/src/funcs/integrationsDelete.ts +2 -6
- package/src/funcs/integrationsList.ts +2 -6
- package/src/funcs/integrationsListActive.ts +2 -6
- package/src/funcs/integrationsSetAsPrimary.ts +2 -6
- package/src/funcs/integrationsUpdate.ts +2 -6
- package/src/funcs/messagesDelete.ts +2 -6
- package/src/funcs/messagesDeleteByTransactionId.ts +2 -6
- package/src/funcs/messagesRetrieve.ts +2 -6
- package/src/funcs/notificationsList.ts +2 -6
- package/src/funcs/notificationsRetrieve.ts +2 -6
- package/src/funcs/subscribersCreate.ts +2 -6
- package/src/funcs/subscribersCreateBulk.ts +2 -6
- package/src/funcs/subscribersCredentialsAppend.ts +2 -6
- package/src/funcs/subscribersCredentialsDelete.ts +2 -6
- package/src/funcs/subscribersCredentialsUpdate.ts +2 -6
- package/src/funcs/subscribersDelete.ts +5 -8
- package/src/funcs/subscribersMessagesMarkAll.ts +2 -6
- package/src/funcs/subscribersMessagesMarkAllAs.ts +2 -6
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +2 -6
- package/src/funcs/subscribersNotificationsFeed.ts +2 -6
- package/src/funcs/subscribersNotificationsUnseenCount.ts +2 -6
- package/src/funcs/subscribersPatch.ts +2 -6
- package/src/funcs/subscribersPreferencesList.ts +2 -6
- package/src/funcs/subscribersPreferencesUpdate.ts +2 -6
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +2 -6
- package/src/funcs/subscribersRetrieve.ts +3 -7
- package/src/funcs/subscribersSearch.ts +2 -6
- package/src/funcs/subscribersTopicsList.ts +2 -6
- package/src/funcs/topicsCreate.ts +2 -6
- package/src/funcs/topicsDelete.ts +2 -6
- package/src/funcs/topicsGet.ts +2 -6
- package/src/funcs/topicsList.ts +2 -6
- package/src/funcs/topicsSubscribersRetrieve.ts +2 -6
- package/src/funcs/topicsSubscriptionsCreate.ts +2 -6
- package/src/funcs/topicsSubscriptionsDelete.ts +2 -6
- package/src/funcs/topicsSubscriptionsList.ts +3 -7
- package/src/funcs/topicsUpdate.ts +2 -6
- package/src/funcs/trigger.ts +9 -7
- package/src/funcs/triggerBroadcast.ts +9 -7
- package/src/funcs/triggerBulk.ts +9 -7
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/sdks.ts +10 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/subscribersDelete.ts +3 -2
- package/src/mcp-server/tools/subscribersRetrieve.ts +1 -1
- package/src/mcp-server/tools/topicsSubscriptionsList.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/notificationfeeditemdto.ts +4 -4
- package/src/models/components/payloadvalidationerrordto.ts +299 -0
- package/src/models/components/updateintegrationrequestdto.ts +0 -7
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/payloadvalidationexceptiondto.ts +466 -0
- package/src/models/errors/sdkerror.ts +18 -3
- package/src/sdk/subscribers.ts +4 -3
- package/src/sdk/subscriptions.ts +1 -1
|
@@ -0,0 +1,299 @@
|
|
|
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 Value5 = string | number | boolean | { [k: string]: any };
|
|
11
|
+
|
|
12
|
+
export type Value4 = {};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The actual value that failed validation
|
|
16
|
+
*/
|
|
17
|
+
export type PayloadValidationErrorDtoValue =
|
|
18
|
+
| Value4
|
|
19
|
+
| string
|
|
20
|
+
| number
|
|
21
|
+
| boolean
|
|
22
|
+
| Array<string | number | boolean | { [k: string]: any } | null>;
|
|
23
|
+
|
|
24
|
+
export type PayloadValidationErrorDto = {
|
|
25
|
+
/**
|
|
26
|
+
* Field path that failed validation
|
|
27
|
+
*/
|
|
28
|
+
field: string;
|
|
29
|
+
/**
|
|
30
|
+
* Validation error message
|
|
31
|
+
*/
|
|
32
|
+
message: string;
|
|
33
|
+
/**
|
|
34
|
+
* The actual value that failed validation
|
|
35
|
+
*/
|
|
36
|
+
value?:
|
|
37
|
+
| Value4
|
|
38
|
+
| string
|
|
39
|
+
| number
|
|
40
|
+
| boolean
|
|
41
|
+
| Array<string | number | boolean | { [k: string]: any } | null>
|
|
42
|
+
| null
|
|
43
|
+
| undefined;
|
|
44
|
+
/**
|
|
45
|
+
* JSON Schema path where the validation failed
|
|
46
|
+
*/
|
|
47
|
+
schemaPath?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const Value5$inboundSchema: z.ZodType<Value5, z.ZodTypeDef, unknown> = z
|
|
52
|
+
.union([z.string(), z.number(), z.boolean(), z.record(z.any())]);
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type Value5$Outbound = string | number | boolean | { [k: string]: any };
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const Value5$outboundSchema: z.ZodType<
|
|
59
|
+
Value5$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
Value5
|
|
62
|
+
> = z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace Value5$ {
|
|
69
|
+
/** @deprecated use `Value5$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema = Value5$inboundSchema;
|
|
71
|
+
/** @deprecated use `Value5$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema = Value5$outboundSchema;
|
|
73
|
+
/** @deprecated use `Value5$Outbound` instead. */
|
|
74
|
+
export type Outbound = Value5$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function value5ToJSON(value5: Value5): string {
|
|
78
|
+
return JSON.stringify(Value5$outboundSchema.parse(value5));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function value5FromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<Value5, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => Value5$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'Value5' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const Value4$inboundSchema: z.ZodType<Value4, z.ZodTypeDef, unknown> = z
|
|
93
|
+
.object({});
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export type Value4$Outbound = {};
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const Value4$outboundSchema: z.ZodType<
|
|
100
|
+
Value4$Outbound,
|
|
101
|
+
z.ZodTypeDef,
|
|
102
|
+
Value4
|
|
103
|
+
> = z.object({});
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
108
|
+
*/
|
|
109
|
+
export namespace Value4$ {
|
|
110
|
+
/** @deprecated use `Value4$inboundSchema` instead. */
|
|
111
|
+
export const inboundSchema = Value4$inboundSchema;
|
|
112
|
+
/** @deprecated use `Value4$outboundSchema` instead. */
|
|
113
|
+
export const outboundSchema = Value4$outboundSchema;
|
|
114
|
+
/** @deprecated use `Value4$Outbound` instead. */
|
|
115
|
+
export type Outbound = Value4$Outbound;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function value4ToJSON(value4: Value4): string {
|
|
119
|
+
return JSON.stringify(Value4$outboundSchema.parse(value4));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function value4FromJSON(
|
|
123
|
+
jsonString: string,
|
|
124
|
+
): SafeParseResult<Value4, SDKValidationError> {
|
|
125
|
+
return safeParse(
|
|
126
|
+
jsonString,
|
|
127
|
+
(x) => Value4$inboundSchema.parse(JSON.parse(x)),
|
|
128
|
+
`Failed to parse 'Value4' from JSON`,
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** @internal */
|
|
133
|
+
export const PayloadValidationErrorDtoValue$inboundSchema: z.ZodType<
|
|
134
|
+
PayloadValidationErrorDtoValue,
|
|
135
|
+
z.ZodTypeDef,
|
|
136
|
+
unknown
|
|
137
|
+
> = z.union([
|
|
138
|
+
z.lazy(() => Value4$inboundSchema),
|
|
139
|
+
z.string(),
|
|
140
|
+
z.number(),
|
|
141
|
+
z.boolean(),
|
|
142
|
+
z.array(
|
|
143
|
+
z.nullable(
|
|
144
|
+
z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]),
|
|
145
|
+
),
|
|
146
|
+
),
|
|
147
|
+
]);
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export type PayloadValidationErrorDtoValue$Outbound =
|
|
151
|
+
| Value4$Outbound
|
|
152
|
+
| string
|
|
153
|
+
| number
|
|
154
|
+
| boolean
|
|
155
|
+
| Array<string | number | boolean | { [k: string]: any } | null>;
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const PayloadValidationErrorDtoValue$outboundSchema: z.ZodType<
|
|
159
|
+
PayloadValidationErrorDtoValue$Outbound,
|
|
160
|
+
z.ZodTypeDef,
|
|
161
|
+
PayloadValidationErrorDtoValue
|
|
162
|
+
> = z.union([
|
|
163
|
+
z.lazy(() => Value4$outboundSchema),
|
|
164
|
+
z.string(),
|
|
165
|
+
z.number(),
|
|
166
|
+
z.boolean(),
|
|
167
|
+
z.array(
|
|
168
|
+
z.nullable(
|
|
169
|
+
z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]),
|
|
170
|
+
),
|
|
171
|
+
),
|
|
172
|
+
]);
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
177
|
+
*/
|
|
178
|
+
export namespace PayloadValidationErrorDtoValue$ {
|
|
179
|
+
/** @deprecated use `PayloadValidationErrorDtoValue$inboundSchema` instead. */
|
|
180
|
+
export const inboundSchema = PayloadValidationErrorDtoValue$inboundSchema;
|
|
181
|
+
/** @deprecated use `PayloadValidationErrorDtoValue$outboundSchema` instead. */
|
|
182
|
+
export const outboundSchema = PayloadValidationErrorDtoValue$outboundSchema;
|
|
183
|
+
/** @deprecated use `PayloadValidationErrorDtoValue$Outbound` instead. */
|
|
184
|
+
export type Outbound = PayloadValidationErrorDtoValue$Outbound;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function payloadValidationErrorDtoValueToJSON(
|
|
188
|
+
payloadValidationErrorDtoValue: PayloadValidationErrorDtoValue,
|
|
189
|
+
): string {
|
|
190
|
+
return JSON.stringify(
|
|
191
|
+
PayloadValidationErrorDtoValue$outboundSchema.parse(
|
|
192
|
+
payloadValidationErrorDtoValue,
|
|
193
|
+
),
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export function payloadValidationErrorDtoValueFromJSON(
|
|
198
|
+
jsonString: string,
|
|
199
|
+
): SafeParseResult<PayloadValidationErrorDtoValue, SDKValidationError> {
|
|
200
|
+
return safeParse(
|
|
201
|
+
jsonString,
|
|
202
|
+
(x) => PayloadValidationErrorDtoValue$inboundSchema.parse(JSON.parse(x)),
|
|
203
|
+
`Failed to parse 'PayloadValidationErrorDtoValue' from JSON`,
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/** @internal */
|
|
208
|
+
export const PayloadValidationErrorDto$inboundSchema: z.ZodType<
|
|
209
|
+
PayloadValidationErrorDto,
|
|
210
|
+
z.ZodTypeDef,
|
|
211
|
+
unknown
|
|
212
|
+
> = z.object({
|
|
213
|
+
field: z.string(),
|
|
214
|
+
message: z.string(),
|
|
215
|
+
value: z.nullable(
|
|
216
|
+
z.union([
|
|
217
|
+
z.lazy(() => Value4$inboundSchema),
|
|
218
|
+
z.string(),
|
|
219
|
+
z.number(),
|
|
220
|
+
z.boolean(),
|
|
221
|
+
z.array(
|
|
222
|
+
z.nullable(
|
|
223
|
+
z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]),
|
|
224
|
+
),
|
|
225
|
+
),
|
|
226
|
+
]),
|
|
227
|
+
).optional(),
|
|
228
|
+
schemaPath: z.string().optional(),
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
/** @internal */
|
|
232
|
+
export type PayloadValidationErrorDto$Outbound = {
|
|
233
|
+
field: string;
|
|
234
|
+
message: string;
|
|
235
|
+
value?:
|
|
236
|
+
| Value4$Outbound
|
|
237
|
+
| string
|
|
238
|
+
| number
|
|
239
|
+
| boolean
|
|
240
|
+
| Array<string | number | boolean | { [k: string]: any } | null>
|
|
241
|
+
| null
|
|
242
|
+
| undefined;
|
|
243
|
+
schemaPath?: string | undefined;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
/** @internal */
|
|
247
|
+
export const PayloadValidationErrorDto$outboundSchema: z.ZodType<
|
|
248
|
+
PayloadValidationErrorDto$Outbound,
|
|
249
|
+
z.ZodTypeDef,
|
|
250
|
+
PayloadValidationErrorDto
|
|
251
|
+
> = z.object({
|
|
252
|
+
field: z.string(),
|
|
253
|
+
message: z.string(),
|
|
254
|
+
value: z.nullable(
|
|
255
|
+
z.union([
|
|
256
|
+
z.lazy(() => Value4$outboundSchema),
|
|
257
|
+
z.string(),
|
|
258
|
+
z.number(),
|
|
259
|
+
z.boolean(),
|
|
260
|
+
z.array(
|
|
261
|
+
z.nullable(
|
|
262
|
+
z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]),
|
|
263
|
+
),
|
|
264
|
+
),
|
|
265
|
+
]),
|
|
266
|
+
).optional(),
|
|
267
|
+
schemaPath: z.string().optional(),
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @internal
|
|
272
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
273
|
+
*/
|
|
274
|
+
export namespace PayloadValidationErrorDto$ {
|
|
275
|
+
/** @deprecated use `PayloadValidationErrorDto$inboundSchema` instead. */
|
|
276
|
+
export const inboundSchema = PayloadValidationErrorDto$inboundSchema;
|
|
277
|
+
/** @deprecated use `PayloadValidationErrorDto$outboundSchema` instead. */
|
|
278
|
+
export const outboundSchema = PayloadValidationErrorDto$outboundSchema;
|
|
279
|
+
/** @deprecated use `PayloadValidationErrorDto$Outbound` instead. */
|
|
280
|
+
export type Outbound = PayloadValidationErrorDto$Outbound;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export function payloadValidationErrorDtoToJSON(
|
|
284
|
+
payloadValidationErrorDto: PayloadValidationErrorDto,
|
|
285
|
+
): string {
|
|
286
|
+
return JSON.stringify(
|
|
287
|
+
PayloadValidationErrorDto$outboundSchema.parse(payloadValidationErrorDto),
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export function payloadValidationErrorDtoFromJSON(
|
|
292
|
+
jsonString: string,
|
|
293
|
+
): SafeParseResult<PayloadValidationErrorDto, SDKValidationError> {
|
|
294
|
+
return safeParse(
|
|
295
|
+
jsonString,
|
|
296
|
+
(x) => PayloadValidationErrorDto$inboundSchema.parse(JSON.parse(x)),
|
|
297
|
+
`Failed to parse 'PayloadValidationErrorDto' from JSON`,
|
|
298
|
+
);
|
|
299
|
+
}
|
|
@@ -29,10 +29,6 @@ export type UpdateIntegrationRequestDto = {
|
|
|
29
29
|
*/
|
|
30
30
|
active?: boolean | undefined;
|
|
31
31
|
credentials?: CredentialsDto | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* If true, the Novu branding will be removed from the Inbox component
|
|
34
|
-
*/
|
|
35
|
-
removeNovuBranding?: boolean | undefined;
|
|
36
32
|
check?: boolean | undefined;
|
|
37
33
|
conditions?: Array<StepFilterDto> | undefined;
|
|
38
34
|
};
|
|
@@ -48,7 +44,6 @@ export const UpdateIntegrationRequestDto$inboundSchema: z.ZodType<
|
|
|
48
44
|
_environmentId: z.string().optional(),
|
|
49
45
|
active: z.boolean().optional(),
|
|
50
46
|
credentials: CredentialsDto$inboundSchema.optional(),
|
|
51
|
-
removeNovuBranding: z.boolean().optional(),
|
|
52
47
|
check: z.boolean().optional(),
|
|
53
48
|
conditions: z.array(StepFilterDto$inboundSchema).optional(),
|
|
54
49
|
}).transform((v) => {
|
|
@@ -64,7 +59,6 @@ export type UpdateIntegrationRequestDto$Outbound = {
|
|
|
64
59
|
_environmentId?: string | undefined;
|
|
65
60
|
active?: boolean | undefined;
|
|
66
61
|
credentials?: CredentialsDto$Outbound | undefined;
|
|
67
|
-
removeNovuBranding?: boolean | undefined;
|
|
68
62
|
check?: boolean | undefined;
|
|
69
63
|
conditions?: Array<StepFilterDto$Outbound> | undefined;
|
|
70
64
|
};
|
|
@@ -80,7 +74,6 @@ export const UpdateIntegrationRequestDto$outboundSchema: z.ZodType<
|
|
|
80
74
|
environmentId: z.string().optional(),
|
|
81
75
|
active: z.boolean().optional(),
|
|
82
76
|
credentials: CredentialsDto$outboundSchema.optional(),
|
|
83
|
-
removeNovuBranding: z.boolean().optional(),
|
|
84
77
|
check: z.boolean().optional(),
|
|
85
78
|
conditions: z.array(StepFilterDto$outboundSchema).optional(),
|
|
86
79
|
}).transform((v) => {
|