@iterable/api 0.0.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/LICENSE +21 -0
- package/README.md +74 -0
- package/dist/client/base.d.ts +33 -0
- package/dist/client/base.d.ts.map +1 -0
- package/dist/client/base.js +155 -0
- package/dist/client/base.js.map +1 -0
- package/dist/client/campaigns.d.ts +71 -0
- package/dist/client/campaigns.d.ts.map +1 -0
- package/dist/client/campaigns.js +125 -0
- package/dist/client/campaigns.js.map +1 -0
- package/dist/client/catalogs.d.ts +60 -0
- package/dist/client/catalogs.d.ts.map +1 -0
- package/dist/client/catalogs.js +138 -0
- package/dist/client/catalogs.js.map +1 -0
- package/dist/client/events.d.ts +38 -0
- package/dist/client/events.d.ts.map +1 -0
- package/dist/client/events.js +38 -0
- package/dist/client/events.js.map +1 -0
- package/dist/client/experiments.d.ts +24 -0
- package/dist/client/experiments.d.ts.map +1 -0
- package/dist/client/experiments.js +29 -0
- package/dist/client/experiments.js.map +1 -0
- package/dist/client/export.d.ts +27 -0
- package/dist/client/export.d.ts.map +1 -0
- package/dist/client/export.js +31 -0
- package/dist/client/export.js.map +1 -0
- package/dist/client/index.d.ts +315 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +25 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/journeys.d.ts +26 -0
- package/dist/client/journeys.d.ts.map +1 -0
- package/dist/client/journeys.js +32 -0
- package/dist/client/journeys.js.map +1 -0
- package/dist/client/lists.d.ts +39 -0
- package/dist/client/lists.d.ts.map +1 -0
- package/dist/client/lists.js +80 -0
- package/dist/client/lists.js.map +1 -0
- package/dist/client/messaging.d.ts +39 -0
- package/dist/client/messaging.d.ts.map +1 -0
- package/dist/client/messaging.js +110 -0
- package/dist/client/messaging.js.map +1 -0
- package/dist/client/snippets.d.ts +37 -0
- package/dist/client/snippets.d.ts.map +1 -0
- package/dist/client/snippets.js +29 -0
- package/dist/client/snippets.js.map +1 -0
- package/dist/client/subscriptions.d.ts +26 -0
- package/dist/client/subscriptions.d.ts.map +1 -0
- package/dist/client/subscriptions.js +31 -0
- package/dist/client/subscriptions.js.map +1 -0
- package/dist/client/templates.d.ts +52 -0
- package/dist/client/templates.d.ts.map +1 -0
- package/dist/client/templates.js +132 -0
- package/dist/client/templates.js.map +1 -0
- package/dist/client/users.d.ts +76 -0
- package/dist/client/users.d.ts.map +1 -0
- package/dist/client/users.js +115 -0
- package/dist/client/users.js.map +1 -0
- package/dist/client/webhooks.d.ts +25 -0
- package/dist/client/webhooks.d.ts.map +1 -0
- package/dist/client/webhooks.js +17 -0
- package/dist/client/webhooks.js.map +1 -0
- package/dist/config.d.ts +26 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +51 -0
- package/dist/config.js.map +1 -0
- package/dist/errors.d.ts +45 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +144 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +3 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +32 -0
- package/dist/logger.js.map +1 -0
- package/dist/types/campaigns.d.ts +307 -0
- package/dist/types/campaigns.d.ts.map +1 -0
- package/dist/types/campaigns.js +226 -0
- package/dist/types/campaigns.js.map +1 -0
- package/dist/types/catalogs.d.ts +138 -0
- package/dist/types/catalogs.d.ts.map +1 -0
- package/dist/types/catalogs.js +139 -0
- package/dist/types/catalogs.js.map +1 -0
- package/dist/types/common.d.ts +145 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +110 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/events.d.ts +124 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/events.js +118 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/experiments.d.ts +14 -0
- package/dist/types/experiments.d.ts.map +1 -0
- package/dist/types/experiments.js +24 -0
- package/dist/types/experiments.js.map +1 -0
- package/dist/types/export.d.ts +121 -0
- package/dist/types/export.d.ts.map +1 -0
- package/dist/types/export.js +105 -0
- package/dist/types/export.js.map +1 -0
- package/dist/types/journeys.d.ts +72 -0
- package/dist/types/journeys.d.ts.map +1 -0
- package/dist/types/journeys.js +65 -0
- package/dist/types/journeys.js.map +1 -0
- package/dist/types/lists.d.ts +149 -0
- package/dist/types/lists.d.ts.map +1 -0
- package/dist/types/lists.js +140 -0
- package/dist/types/lists.js.map +1 -0
- package/dist/types/messaging.d.ts +246 -0
- package/dist/types/messaging.d.ts.map +1 -0
- package/dist/types/messaging.js +323 -0
- package/dist/types/messaging.js.map +1 -0
- package/dist/types/snippets.d.ts +89 -0
- package/dist/types/snippets.d.ts.map +1 -0
- package/dist/types/snippets.js +85 -0
- package/dist/types/snippets.js.map +1 -0
- package/dist/types/subscriptions.d.ts +63 -0
- package/dist/types/subscriptions.d.ts.map +1 -0
- package/dist/types/subscriptions.js +40 -0
- package/dist/types/subscriptions.js.map +1 -0
- package/dist/types/templates.d.ts +315 -0
- package/dist/types/templates.d.ts.map +1 -0
- package/dist/types/templates.js +357 -0
- package/dist/types/templates.js.map +1 -0
- package/dist/types/users.d.ts +144 -0
- package/dist/types/users.d.ts.map +1 -0
- package/dist/types/users.js +189 -0
- package/dist/types/users.js.map +1 -0
- package/dist/types/webhooks.d.ts +52 -0
- package/dist/types/webhooks.d.ts.map +1 -0
- package/dist/types/webhooks.js +32 -0
- package/dist/types/webhooks.js.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { createSortParamSchema, UnixTimestampSchema, } from "./common.js";
|
|
3
|
+
/**
|
|
4
|
+
* Journey (workflow) management schemas and types
|
|
5
|
+
*/
|
|
6
|
+
export const JourneySchema = z.object({
|
|
7
|
+
id: z.number(),
|
|
8
|
+
name: z.string(),
|
|
9
|
+
description: z.string().optional(),
|
|
10
|
+
enabled: z.boolean(),
|
|
11
|
+
isArchived: z.boolean(),
|
|
12
|
+
journeyType: z.string(),
|
|
13
|
+
lifetimeLimit: z.number().optional(),
|
|
14
|
+
simultaneousLimit: z.number().optional(),
|
|
15
|
+
startTileId: z.number().optional(),
|
|
16
|
+
triggerEventNames: z.array(z.string()).optional(),
|
|
17
|
+
createdAt: UnixTimestampSchema, // API docs: "format": "int32"
|
|
18
|
+
updatedAt: UnixTimestampSchema, // API docs: "format": "int32"
|
|
19
|
+
creatorUserId: z.string().optional(),
|
|
20
|
+
});
|
|
21
|
+
export const GetJourneysResponseSchema = z.object({
|
|
22
|
+
journeys: z.array(JourneySchema),
|
|
23
|
+
totalJourneysCount: z.number(),
|
|
24
|
+
nextPageUrl: z.string().optional(),
|
|
25
|
+
previousPageUrl: z.string().optional(),
|
|
26
|
+
});
|
|
27
|
+
// Journey sort fields
|
|
28
|
+
const JOURNEY_SORT_FIELDS = ["id", "name", "createdAt", "updatedAt"];
|
|
29
|
+
// Journey parameter schemas
|
|
30
|
+
export const GetJourneysParamsSchema = z
|
|
31
|
+
.object({
|
|
32
|
+
page: z
|
|
33
|
+
.number()
|
|
34
|
+
.int()
|
|
35
|
+
.min(1)
|
|
36
|
+
.optional()
|
|
37
|
+
.describe("Page number (starting at 1)"),
|
|
38
|
+
pageSize: z
|
|
39
|
+
.number()
|
|
40
|
+
.int()
|
|
41
|
+
.min(1)
|
|
42
|
+
.max(50)
|
|
43
|
+
.optional()
|
|
44
|
+
.describe("Number of results per page (max 50)"),
|
|
45
|
+
sort: createSortParamSchema(JOURNEY_SORT_FIELDS).describe("Sort field with optional direction (defaults to id ascending)"),
|
|
46
|
+
state: z
|
|
47
|
+
.array(z.string())
|
|
48
|
+
.optional()
|
|
49
|
+
.describe("Filter by journey state (e.g., ['Archived'])"),
|
|
50
|
+
})
|
|
51
|
+
.describe("Parameters for getting journeys with optional pagination and filtering");
|
|
52
|
+
export const TriggerJourneyParamsSchema = z.object({
|
|
53
|
+
workflowId: z.number().describe("Journey/workflow ID to trigger"),
|
|
54
|
+
email: z.email().optional().describe("User email address"),
|
|
55
|
+
userId: z.string().optional().describe("User ID (alternative to email)"),
|
|
56
|
+
listId: z
|
|
57
|
+
.number()
|
|
58
|
+
.optional()
|
|
59
|
+
.describe("List ID to trigger for (alternative to individual user)"),
|
|
60
|
+
dataFields: z
|
|
61
|
+
.record(z.string(), z.any())
|
|
62
|
+
.optional()
|
|
63
|
+
.describe("Data fields for the journey"),
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=journeys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journeys.js","sourceRoot":"","sources":["../../src/types/journeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,qBAAqB,EAErB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AAErB;;GAEG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,SAAS,EAAE,mBAAmB,EAAE,8BAA8B;I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D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACjE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC1D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACxE,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,UAAU,EAAE,CAAC;SACV,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;SAC3B,QAAQ,EAAE;SACV,QAAQ,CAAC,6BAA6B,CAAC;CAC3C,CAAC,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* List management schemas and types
|
|
4
|
+
*/
|
|
5
|
+
export declare const ListSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodNumber;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
listType: z.ZodEnum<{
|
|
10
|
+
Standard: "Standard";
|
|
11
|
+
Dynamic: "Dynamic";
|
|
12
|
+
Suppression: "Suppression";
|
|
13
|
+
Internal: "Internal";
|
|
14
|
+
}>;
|
|
15
|
+
createdAt: z.ZodNumber;
|
|
16
|
+
isGlobalSuppressionEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type List = z.infer<typeof ListSchema>;
|
|
19
|
+
export declare const GetListsResponseSchema: z.ZodObject<{
|
|
20
|
+
lists: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodNumber;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
description: z.ZodOptional<z.ZodString>;
|
|
24
|
+
listType: z.ZodEnum<{
|
|
25
|
+
Standard: "Standard";
|
|
26
|
+
Dynamic: "Dynamic";
|
|
27
|
+
Suppression: "Suppression";
|
|
28
|
+
Internal: "Internal";
|
|
29
|
+
}>;
|
|
30
|
+
createdAt: z.ZodNumber;
|
|
31
|
+
isGlobalSuppressionEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const CreateListResponseSchema: z.ZodObject<{
|
|
35
|
+
listId: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const ListUserSchema: z.ZodObject<{
|
|
38
|
+
email: z.ZodString;
|
|
39
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
dataFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const GetListUsersResponseSchema: z.ZodObject<{
|
|
43
|
+
users: z.ZodArray<z.ZodObject<{
|
|
44
|
+
email: z.ZodString;
|
|
45
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
dataFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type GetListsResponse = z.infer<typeof GetListsResponseSchema>;
|
|
50
|
+
export type CreateListResponse = z.infer<typeof CreateListResponseSchema>;
|
|
51
|
+
export type ListUser = z.infer<typeof ListUserSchema>;
|
|
52
|
+
export type GetListUsersResponse = z.infer<typeof GetListUsersResponseSchema>;
|
|
53
|
+
export declare const GetListsParamsSchema: z.ZodObject<{
|
|
54
|
+
listType: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
Dynamic: "Dynamic";
|
|
56
|
+
Static: "Static";
|
|
57
|
+
}>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export declare const SubscribeToListParamsSchema: z.ZodObject<{
|
|
60
|
+
listId: z.ZodNumber;
|
|
61
|
+
subscribers: z.ZodArray<z.ZodObject<{
|
|
62
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
63
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
64
|
+
dataFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
65
|
+
mergeNestedObjects: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
preferUserId: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
updateExistingUsersOnly: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export declare const GetListUsersParamsSchema: z.ZodObject<{
|
|
71
|
+
listId: z.ZodNumber;
|
|
72
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export declare const CreateListParamsSchema: z.ZodObject<{
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
description: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const DeleteListParamsSchema: z.ZodObject<{
|
|
79
|
+
listId: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const UnsubscribeFromListParamsSchema: z.ZodObject<{
|
|
82
|
+
listId: z.ZodNumber;
|
|
83
|
+
subscribers: z.ZodArray<z.ZodObject<{
|
|
84
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
85
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export declare const ListsResponseSchema: z.ZodObject<{
|
|
89
|
+
lists: z.ZodArray<z.ZodObject<{
|
|
90
|
+
id: z.ZodNumber;
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
description: z.ZodOptional<z.ZodString>;
|
|
93
|
+
listType: z.ZodEnum<{
|
|
94
|
+
Standard: "Standard";
|
|
95
|
+
Dynamic: "Dynamic";
|
|
96
|
+
Suppression: "Suppression";
|
|
97
|
+
Internal: "Internal";
|
|
98
|
+
}>;
|
|
99
|
+
createdAt: z.ZodNumber;
|
|
100
|
+
isGlobalSuppressionEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export declare const GetListSizeParamsSchema: z.ZodObject<{
|
|
104
|
+
listId: z.ZodNumber;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
export declare const GetListSizeResponseSchema: z.ZodObject<{
|
|
107
|
+
size: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export declare const GetListPreviewUsersParamsSchema: z.ZodObject<{
|
|
110
|
+
listId: z.ZodNumber;
|
|
111
|
+
preferUserId: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export declare const GetListPreviewUsersResponseSchema: z.ZodObject<{
|
|
115
|
+
users: z.ZodArray<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export declare const FailedUserUpdatesSchema: z.ZodObject<{
|
|
118
|
+
invalidEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
+
invalidUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
120
|
+
failedEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
|
+
failedUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
export declare const UserBulkUpdateListResponseSchema: z.ZodObject<{
|
|
124
|
+
successCount: z.ZodNumber;
|
|
125
|
+
failCount: z.ZodNumber;
|
|
126
|
+
createdFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
filteredOutFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
128
|
+
failedUpdates: z.ZodOptional<z.ZodObject<{
|
|
129
|
+
invalidEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
|
+
invalidUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
131
|
+
failedEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
132
|
+
failedUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
invalidEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
135
|
+
invalidUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
export type GetListsParams = z.infer<typeof GetListsParamsSchema>;
|
|
138
|
+
export type SubscribeToListParams = z.infer<typeof SubscribeToListParamsSchema>;
|
|
139
|
+
export type UnsubscribeFromListParams = z.infer<typeof UnsubscribeFromListParamsSchema>;
|
|
140
|
+
export type GetListUsersParams = z.infer<typeof GetListUsersParamsSchema>;
|
|
141
|
+
export type CreateListParams = z.infer<typeof CreateListParamsSchema>;
|
|
142
|
+
export type DeleteListParams = z.infer<typeof DeleteListParamsSchema>;
|
|
143
|
+
export type GetListSizeParams = z.infer<typeof GetListSizeParamsSchema>;
|
|
144
|
+
export type GetListSizeResponse = z.infer<typeof GetListSizeResponseSchema>;
|
|
145
|
+
export type GetListPreviewUsersParams = z.infer<typeof GetListPreviewUsersParamsSchema>;
|
|
146
|
+
export type GetListPreviewUsersResponse = z.infer<typeof GetListPreviewUsersResponseSchema>;
|
|
147
|
+
export type FailedUserUpdates = z.infer<typeof FailedUserUpdatesSchema>;
|
|
148
|
+
export type UserBulkUpdateListResponse = z.infer<typeof UserBulkUpdateListResponseSchema>;
|
|
149
|
+
//# sourceMappingURL=lists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../src/types/lists.ts"],"names":[],"mappings":"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
+
export const ListSchema = z.object({
|
|
7
|
+
id: z.number(),
|
|
8
|
+
name: z.string(),
|
|
9
|
+
description: z.string().optional(),
|
|
10
|
+
listType: z.enum(["Standard", "Dynamic", "Suppression", "Internal"]),
|
|
11
|
+
createdAt: UnixTimestampSchema, // API docs: "format": "int32"
|
|
12
|
+
isGlobalSuppressionEnabled: z
|
|
13
|
+
.boolean()
|
|
14
|
+
.optional()
|
|
15
|
+
.describe("Indicates if the suppression list is global. This field is only present for lists where listType is Suppression. true indicates a global suppression list; false indicates a standard suppression list."),
|
|
16
|
+
});
|
|
17
|
+
// Response schemas
|
|
18
|
+
export const GetListsResponseSchema = z.object({
|
|
19
|
+
lists: z.array(ListSchema),
|
|
20
|
+
});
|
|
21
|
+
export const CreateListResponseSchema = z.object({
|
|
22
|
+
listId: z.number(),
|
|
23
|
+
});
|
|
24
|
+
export const ListUserSchema = z.object({
|
|
25
|
+
email: z.string(),
|
|
26
|
+
userId: z.string().optional(),
|
|
27
|
+
dataFields: z.record(z.string(), z.unknown()).optional(),
|
|
28
|
+
});
|
|
29
|
+
export const GetListUsersResponseSchema = z.object({
|
|
30
|
+
users: z.array(ListUserSchema),
|
|
31
|
+
});
|
|
32
|
+
export const GetListsParamsSchema = z.object({
|
|
33
|
+
listType: z
|
|
34
|
+
.enum(["Static", "Dynamic"])
|
|
35
|
+
.optional()
|
|
36
|
+
.describe("Filter by list type"),
|
|
37
|
+
});
|
|
38
|
+
export const SubscribeToListParamsSchema = z.object({
|
|
39
|
+
listId: z.number().describe("ID of the list to subscribe to"),
|
|
40
|
+
subscribers: z
|
|
41
|
+
.array(z.object({
|
|
42
|
+
email: z.email().optional().describe("User email"),
|
|
43
|
+
userId: z
|
|
44
|
+
.string()
|
|
45
|
+
.optional()
|
|
46
|
+
.describe("User ID (alternative to email)"),
|
|
47
|
+
dataFields: z
|
|
48
|
+
.record(z.string(), z.any())
|
|
49
|
+
.optional()
|
|
50
|
+
.describe("Additional user data fields"),
|
|
51
|
+
mergeNestedObjects: z
|
|
52
|
+
.boolean()
|
|
53
|
+
.optional()
|
|
54
|
+
.describe("Merge top-level objects instead of overwriting them"),
|
|
55
|
+
preferUserId: z
|
|
56
|
+
.boolean()
|
|
57
|
+
.optional()
|
|
58
|
+
.describe("Whether to create new user if userId doesn't exist (email-based projects only)"),
|
|
59
|
+
}))
|
|
60
|
+
.describe("Array of users to subscribe"),
|
|
61
|
+
updateExistingUsersOnly: z
|
|
62
|
+
.boolean()
|
|
63
|
+
.optional()
|
|
64
|
+
.describe("Skip operation for unknown userIds/emails when true"),
|
|
65
|
+
});
|
|
66
|
+
export const GetListUsersParamsSchema = z.object({
|
|
67
|
+
listId: z.number().describe("List ID to get users from"),
|
|
68
|
+
maxResults: z
|
|
69
|
+
.number()
|
|
70
|
+
.min(1)
|
|
71
|
+
.max(1000)
|
|
72
|
+
.optional()
|
|
73
|
+
.describe("Maximum number of users to return"),
|
|
74
|
+
});
|
|
75
|
+
export const CreateListParamsSchema = z.object({
|
|
76
|
+
name: z.string().describe("Name of the list to create"),
|
|
77
|
+
description: z.string().optional().describe("Description of the list"),
|
|
78
|
+
});
|
|
79
|
+
export const DeleteListParamsSchema = z.object({
|
|
80
|
+
listId: z.number().describe("ID of the list to delete"),
|
|
81
|
+
});
|
|
82
|
+
export const UnsubscribeFromListParamsSchema = z.object({
|
|
83
|
+
listId: z.number().describe("List ID to unsubscribe from"),
|
|
84
|
+
subscribers: z
|
|
85
|
+
.array(z.object({
|
|
86
|
+
email: z.email().optional().describe("User email"),
|
|
87
|
+
userId: z
|
|
88
|
+
.string()
|
|
89
|
+
.optional()
|
|
90
|
+
.describe("User ID (alternative to email)"),
|
|
91
|
+
}))
|
|
92
|
+
.describe("Users to unsubscribe"),
|
|
93
|
+
});
|
|
94
|
+
export const ListsResponseSchema = z.object({
|
|
95
|
+
lists: z.array(ListSchema),
|
|
96
|
+
});
|
|
97
|
+
export const GetListSizeParamsSchema = z
|
|
98
|
+
.object({
|
|
99
|
+
listId: z.number().describe("List ID to get size for"),
|
|
100
|
+
})
|
|
101
|
+
.describe("Parameters for getting list size");
|
|
102
|
+
export const GetListSizeResponseSchema = z.object({
|
|
103
|
+
size: z.number(),
|
|
104
|
+
});
|
|
105
|
+
export const GetListPreviewUsersParamsSchema = z
|
|
106
|
+
.object({
|
|
107
|
+
listId: z.number().describe("List ID to preview users from"),
|
|
108
|
+
preferUserId: z
|
|
109
|
+
.boolean()
|
|
110
|
+
.optional()
|
|
111
|
+
.describe("Return userId instead of email when both exist"),
|
|
112
|
+
size: z
|
|
113
|
+
.number()
|
|
114
|
+
.min(1)
|
|
115
|
+
.max(5000)
|
|
116
|
+
.optional()
|
|
117
|
+
.describe("Number of users to return (max 5000, default 1000)"),
|
|
118
|
+
})
|
|
119
|
+
.describe("Parameters for previewing users in a list");
|
|
120
|
+
export const GetListPreviewUsersResponseSchema = z.object({
|
|
121
|
+
users: z.array(z.string()),
|
|
122
|
+
});
|
|
123
|
+
// Response schemas based on API specification
|
|
124
|
+
export const FailedUserUpdatesSchema = z.object({
|
|
125
|
+
invalidEmails: z.array(z.string()).optional(),
|
|
126
|
+
invalidUserIds: z.array(z.string()).optional(),
|
|
127
|
+
failedEmails: z.array(z.string()).optional(),
|
|
128
|
+
failedUserIds: z.array(z.string()).optional(),
|
|
129
|
+
});
|
|
130
|
+
export const UserBulkUpdateListResponseSchema = z.object({
|
|
131
|
+
successCount: z.number(),
|
|
132
|
+
failCount: z.number(),
|
|
133
|
+
createdFields: z.array(z.string()).optional(),
|
|
134
|
+
filteredOutFields: z.array(z.string()).optional(),
|
|
135
|
+
failedUpdates: FailedUserUpdatesSchema.optional(),
|
|
136
|
+
// Deprecated fields but still present in API
|
|
137
|
+
invalidEmails: z.array(z.string()).optional(),
|
|
138
|
+
invalidUserIds: z.array(z.string()).optional(),
|
|
139
|
+
});
|
|
140
|
+
//# sourceMappingURL=lists.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lists.js","sourceRoot":"","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CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,aAAa,EAAE,uBAAuB,CAAC,QAAQ,EAAE;IACjD,6CAA6C;IAC7C,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Messaging schemas and types for all communication channels
|
|
4
|
+
* Includes channels, message types, and messaging operations
|
|
5
|
+
*/
|
|
6
|
+
export declare const ChannelSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodNumber;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
channelType: z.ZodString;
|
|
10
|
+
messageMedium: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const ChannelsResponseSchema: z.ZodObject<{
|
|
13
|
+
channels: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNumber;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
channelType: z.ZodString;
|
|
17
|
+
messageMedium: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type Channel = z.infer<typeof ChannelSchema>;
|
|
21
|
+
export type ChannelsResponse = z.infer<typeof ChannelsResponseSchema>;
|
|
22
|
+
export declare const MessageTypeSchema: z.ZodObject<{
|
|
23
|
+
id: z.ZodNumber;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
channelId: z.ZodNumber;
|
|
26
|
+
subscriptionPolicy: z.ZodOptional<z.ZodString>;
|
|
27
|
+
rateLimitPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export declare const MessageTypesResponseSchema: z.ZodObject<{
|
|
30
|
+
messageTypes: z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodNumber;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
channelId: z.ZodNumber;
|
|
34
|
+
subscriptionPolicy: z.ZodOptional<z.ZodString>;
|
|
35
|
+
rateLimitPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type MessageType = z.infer<typeof MessageTypeSchema>;
|
|
39
|
+
export type MessageTypesResponse = z.infer<typeof MessageTypesResponseSchema>;
|
|
40
|
+
export declare const GetChannelsParamsSchema: z.ZodObject<{}, z.core.$strip>;
|
|
41
|
+
export declare const GetMessageTypesParamsSchema: z.ZodObject<{}, z.core.$strip>;
|
|
42
|
+
export type GetChannelsParams = z.infer<typeof GetChannelsParamsSchema>;
|
|
43
|
+
export type GetMessageTypesParams = z.infer<typeof GetMessageTypesParamsSchema>;
|
|
44
|
+
export declare const SendEmailParamsSchema: z.ZodObject<{
|
|
45
|
+
campaignId: z.ZodNumber;
|
|
46
|
+
recipientEmail: z.ZodOptional<z.ZodEmail>;
|
|
47
|
+
recipientUserId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
dataFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
49
|
+
sendAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<string, string | Date>>>;
|
|
50
|
+
allowRepeatMarketingSends: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export declare const CancelEmailParamsSchema: z.ZodObject<{
|
|
54
|
+
campaignId: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
56
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
scheduledMessageId: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export declare const CancelSMSParamsSchema: z.ZodObject<{
|
|
60
|
+
campaignId: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
62
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
63
|
+
scheduledMessageId: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export declare const CancelPushParamsSchema: z.ZodObject<{
|
|
66
|
+
campaignId: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
68
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
scheduledMessageId: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export declare const CancelWebPushParamsSchema: z.ZodObject<{
|
|
72
|
+
campaignId: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
74
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
scheduledMessageId: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const CancelWhatsAppParamsSchema: z.ZodObject<{
|
|
78
|
+
campaignId: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
80
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
81
|
+
scheduledMessageId: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export declare const CancelInAppParamsSchema: z.ZodObject<{
|
|
84
|
+
campaignId: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
86
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
87
|
+
scheduledMessageId: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export declare const SendSMSParamsSchema: z.ZodObject<{
|
|
90
|
+
campaignId: z.ZodNumber;
|
|
91
|
+
recipientEmail: z.ZodOptional<z.ZodEmail>;
|
|
92
|
+
recipientPhone: z.ZodOptional<z.ZodString>;
|
|
93
|
+
recipientUserId: z.ZodOptional<z.ZodString>;
|
|
94
|
+
dataFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
95
|
+
sendAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<string, string | Date>>>;
|
|
96
|
+
allowRepeatMarketingSends: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export declare const SendWhatsAppParamsSchema: z.ZodObject<{
|
|
100
|
+
campaignId: z.ZodNumber;
|
|
101
|
+
recipientEmail: z.ZodOptional<z.ZodEmail>;
|
|
102
|
+
recipientPhone: z.ZodOptional<z.ZodString>;
|
|
103
|
+
recipientUserId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
dataFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
105
|
+
sendAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<string, string | Date>>>;
|
|
106
|
+
allowRepeatMarketingSends: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export declare const SendWebPushParamsSchema: z.ZodObject<{
|
|
110
|
+
campaignId: z.ZodNumber;
|
|
111
|
+
recipientEmail: z.ZodOptional<z.ZodEmail>;
|
|
112
|
+
recipientUserId: z.ZodOptional<z.ZodString>;
|
|
113
|
+
dataFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
114
|
+
sendAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<string, string | Date>>>;
|
|
115
|
+
allowRepeatMarketingSends: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export declare const SendPushParamsSchema: z.ZodObject<{
|
|
119
|
+
campaignId: z.ZodNumber;
|
|
120
|
+
recipientEmail: z.ZodOptional<z.ZodEmail>;
|
|
121
|
+
recipientUserId: z.ZodOptional<z.ZodString>;
|
|
122
|
+
dataFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
123
|
+
sendAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<string, string | Date>>>;
|
|
124
|
+
allowRepeatMarketingSends: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export declare const InAppMessageSchema: z.ZodObject<{
|
|
128
|
+
messageId: z.ZodString;
|
|
129
|
+
campaignId: z.ZodNumber;
|
|
130
|
+
content: z.ZodObject<{
|
|
131
|
+
html: z.ZodOptional<z.ZodString>;
|
|
132
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
trigger: z.ZodObject<{
|
|
135
|
+
type: z.ZodString;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
createdAt: z.ZodNumber;
|
|
138
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
saveToInbox: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
inboxMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
141
|
+
customPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export declare const GetInAppMessagesParamsSchema: z.ZodObject<{
|
|
144
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
145
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
146
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
iOS: "iOS";
|
|
149
|
+
Android: "Android";
|
|
150
|
+
Web: "Web";
|
|
151
|
+
}>>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
export declare const SendInAppParamsSchema: z.ZodObject<{
|
|
154
|
+
campaignId: z.ZodNumber;
|
|
155
|
+
recipientEmail: z.ZodOptional<z.ZodEmail>;
|
|
156
|
+
recipientUserId: z.ZodOptional<z.ZodString>;
|
|
157
|
+
dataFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
158
|
+
sendAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<string, string | Date>>>;
|
|
159
|
+
allowRepeatMarketingSends: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
export declare const GetEmbeddedMessagesParamsSchema: z.ZodObject<{
|
|
163
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
164
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
165
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
166
|
+
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
167
|
+
packageName: z.ZodOptional<z.ZodString>;
|
|
168
|
+
placementIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
169
|
+
currentMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export declare const InAppMessagesResponseSchema: z.ZodObject<{
|
|
172
|
+
inAppMessages: z.ZodArray<z.ZodObject<{
|
|
173
|
+
messageId: z.ZodString;
|
|
174
|
+
campaignId: z.ZodNumber;
|
|
175
|
+
content: z.ZodObject<{
|
|
176
|
+
html: z.ZodOptional<z.ZodString>;
|
|
177
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
trigger: z.ZodObject<{
|
|
180
|
+
type: z.ZodString;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
createdAt: z.ZodNumber;
|
|
183
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
saveToInbox: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
inboxMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
186
|
+
customPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
export declare const ApiInAppMessagesResponseSchema: z.ZodObject<{
|
|
190
|
+
inAppMessages: z.ZodArray<z.ZodObject<{
|
|
191
|
+
messageId: z.ZodString;
|
|
192
|
+
campaignId: z.ZodNumber;
|
|
193
|
+
content: z.ZodObject<{
|
|
194
|
+
html: z.ZodOptional<z.ZodString>;
|
|
195
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
trigger: z.ZodObject<{
|
|
198
|
+
type: z.ZodString;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
createdAt: z.ZodNumber;
|
|
201
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
saveToInbox: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
inboxMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
204
|
+
customPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
export declare const EmbeddedMessagesResponseSchema: z.ZodObject<{
|
|
208
|
+
placements: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export type SendEmailParams = z.infer<typeof SendEmailParamsSchema>;
|
|
211
|
+
export type CancelEmailParams = z.infer<typeof CancelEmailParamsSchema>;
|
|
212
|
+
export type SendSMSParams = z.infer<typeof SendSMSParamsSchema>;
|
|
213
|
+
export type CancelSMSParams = z.infer<typeof CancelSMSParamsSchema>;
|
|
214
|
+
export type SendWhatsAppParams = z.infer<typeof SendWhatsAppParamsSchema>;
|
|
215
|
+
export type CancelWhatsAppParams = z.infer<typeof CancelWhatsAppParamsSchema>;
|
|
216
|
+
export type SendWebPushParams = z.infer<typeof SendWebPushParamsSchema>;
|
|
217
|
+
export type CancelWebPushParams = z.infer<typeof CancelWebPushParamsSchema>;
|
|
218
|
+
export type SendPushParams = z.infer<typeof SendPushParamsSchema>;
|
|
219
|
+
export type CancelPushParams = z.infer<typeof CancelPushParamsSchema>;
|
|
220
|
+
export type SendInAppParams = z.infer<typeof SendInAppParamsSchema>;
|
|
221
|
+
export type CancelInAppParams = z.infer<typeof CancelInAppParamsSchema>;
|
|
222
|
+
export type GetInAppMessagesParams = z.infer<typeof GetInAppMessagesParamsSchema>;
|
|
223
|
+
export type GetInAppMessagesResponse = z.infer<typeof ApiInAppMessagesResponseSchema>;
|
|
224
|
+
export declare const GetInAppMessagesResponseSchema: z.ZodObject<{
|
|
225
|
+
inAppMessages: z.ZodArray<z.ZodObject<{
|
|
226
|
+
messageId: z.ZodString;
|
|
227
|
+
campaignId: z.ZodNumber;
|
|
228
|
+
content: z.ZodObject<{
|
|
229
|
+
html: z.ZodOptional<z.ZodString>;
|
|
230
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
trigger: z.ZodObject<{
|
|
233
|
+
type: z.ZodString;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
createdAt: z.ZodNumber;
|
|
236
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
saveToInbox: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
inboxMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
239
|
+
customPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
240
|
+
}, z.core.$strip>>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
export type InAppMessage = z.infer<typeof InAppMessageSchema>;
|
|
243
|
+
export type GetEmbeddedMessagesParams = z.infer<typeof GetEmbeddedMessagesParamsSchema>;
|
|
244
|
+
export type ApiInAppMessagesResponse = z.infer<typeof ApiInAppMessagesResponseSchema>;
|
|
245
|
+
export type EmbeddedMessagesResponse = z.infer<typeof EmbeddedMessagesResponseSchema>;
|
|
246
|
+
//# sourceMappingURL=messaging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
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