@hermeticacomms/sdk-node 0.0.0-stage → 0.1.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/LICENSE +9 -0
- package/README.md +12 -2
- package/dist/contracts/analytics.d.ts +405 -0
- package/dist/contracts/analytics.js +77 -0
- package/dist/contracts/auth.d.ts +359 -0
- package/dist/contracts/auth.js +121 -0
- package/dist/contracts/billing.d.ts +141 -0
- package/dist/contracts/billing.js +31 -0
- package/dist/contracts/campaigns.d.ts +918 -0
- package/dist/contracts/campaigns.js +269 -0
- package/dist/contracts/common.d.ts +57 -0
- package/dist/contracts/common.js +35 -0
- package/dist/contracts/connectors.d.ts +179 -0
- package/dist/contracts/connectors.js +46 -0
- package/dist/contracts/consent.d.ts +604 -0
- package/dist/contracts/consent.js +180 -0
- package/dist/contracts/content-blocks.d.ts +164 -0
- package/dist/contracts/content-blocks.js +60 -0
- package/dist/contracts/content-library.d.ts +339 -0
- package/dist/contracts/content-library.js +50 -0
- package/dist/contracts/content.d.ts +949 -0
- package/dist/contracts/content.js +192 -0
- package/dist/contracts/delivery.d.ts +599 -0
- package/dist/contracts/delivery.js +214 -0
- package/dist/contracts/events.d.ts +513 -0
- package/dist/contracts/events.js +178 -0
- package/dist/contracts/experiments.d.ts +376 -0
- package/dist/contracts/experiments.js +136 -0
- package/dist/contracts/identity.d.ts +756 -0
- package/dist/contracts/identity.js +225 -0
- package/dist/contracts/index.d.ts +15 -0
- package/dist/contracts/index.js +15 -0
- package/dist/contracts/integrations.d.ts +381 -0
- package/dist/contracts/integrations.js +112 -0
- package/dist/contracts/leads.d.ts +733 -0
- package/dist/contracts/leads.js +125 -0
- package/dist/contracts/metrics.d.ts +460 -0
- package/dist/contracts/metrics.js +90 -0
- package/dist/contracts/outbound.d.ts +15510 -0
- package/dist/contracts/outbound.js +423 -0
- package/dist/contracts/pickers.d.ts +12 -0
- package/dist/contracts/pickers.js +20 -0
- package/dist/contracts/platform-admin.d.ts +230 -0
- package/dist/contracts/platform-admin.js +91 -0
- package/dist/contracts/postcards.d.ts +79 -0
- package/dist/contracts/postcards.js +29 -0
- package/dist/contracts/push.d.ts +530 -0
- package/dist/contracts/push.js +102 -0
- package/dist/contracts/rcs.d.ts +39 -0
- package/dist/contracts/rcs.js +19 -0
- package/dist/contracts/segments.d.ts +3182 -0
- package/dist/contracts/segments.js +416 -0
- package/dist/contracts/workflow-nodes.d.ts +2118 -0
- package/dist/contracts/workflow-nodes.js +341 -0
- package/dist/contracts/workflows.d.ts +46413 -0
- package/dist/contracts/workflows.js +341 -0
- package/dist/contracts/x10-platform.d.ts +2603 -0
- package/dist/contracts/x10-platform.js +129 -0
- package/dist/http.d.ts +30 -0
- package/dist/http.js +65 -0
- package/dist/index.d.ts +11507 -0
- package/dist/index.js +63 -0
- package/dist/platform.d.ts +163 -0
- package/dist/platform.js +40 -0
- package/dist/resources.d.ts +1318 -0
- package/dist/resources.js +56 -0
- package/dist/signature.d.ts +5 -0
- package/dist/signature.js +19 -0
- package/dist/x10.d.ts +1607 -0
- package/dist/x10.js +66 -0
- package/dist/z10.d.ts +251 -0
- package/dist/z10.js +46 -0
- package/package.json +40 -4
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Attributes, Channel, DateTimeIn, Id, ReplyToList, Timestamp, pageResult } from './common.js';
|
|
3
|
+
import { LegalBasis } from './consent.js';
|
|
4
|
+
const str = z.string().max(256).nullable();
|
|
5
|
+
export const StandardFieldsInput = z.object({
|
|
6
|
+
firstName: str.optional(),
|
|
7
|
+
lastName: str.optional(),
|
|
8
|
+
timezone: str.optional(),
|
|
9
|
+
locale: str.optional(),
|
|
10
|
+
country: str.optional(),
|
|
11
|
+
city: str.optional(),
|
|
12
|
+
region: str.optional(),
|
|
13
|
+
lifecycleStage: str.optional(),
|
|
14
|
+
ownerUserId: z.uuid().nullable().optional(),
|
|
15
|
+
});
|
|
16
|
+
export const ProfileIdentifiersInput = z.object({
|
|
17
|
+
email: z.string().max(320).optional(),
|
|
18
|
+
phone: z.string().max(40).optional(),
|
|
19
|
+
externalId: z.string().min(1).max(256).optional(),
|
|
20
|
+
anonymousId: z.string().min(1).max(256).optional(),
|
|
21
|
+
});
|
|
22
|
+
/** Contact form: set email / SMS marketing subscription. `subscribed` is recorded in the consent ledger (source admin, the editor as evidence) and is ignored for someone who unsubscribed before; `unsubscribed` revokes and suppresses. */
|
|
23
|
+
export const ContactSubscription = z.enum(['subscribed', 'unsubscribed']);
|
|
24
|
+
export const ContactSubscriptions = z.object({ email: ContactSubscription.optional(), sms: ContactSubscription.optional(), legalBasis: LegalBasis.optional() });
|
|
25
|
+
const contactExtras = { subscriptions: ContactSubscriptions.optional(), tags: z.array(z.string().trim().min(1).max(64)).max(100).optional() };
|
|
26
|
+
export const UpsertProfileBody = z.object({
|
|
27
|
+
identifiers: ProfileIdentifiersInput,
|
|
28
|
+
attributes: Attributes.optional(),
|
|
29
|
+
standard: StandardFieldsInput.optional(),
|
|
30
|
+
source: z.string().min(1).max(64).default('api'),
|
|
31
|
+
/** Use your own key: the key of a unique custom field (for example customer_number). When no identifier matches, the person whose field holds the value given in `attributes` is updated instead of a new one being created. */
|
|
32
|
+
matchAttribute: z.string().regex(/^[A-Za-z][A-Za-z0-9_]{0,63}$/).optional(),
|
|
33
|
+
/** `true` opts the contact out of marketing email (consent revoked, address suppressed). There is no `false`: only the person can opt back in, through a consent form. */
|
|
34
|
+
unsubscribed: z.literal(true).optional(),
|
|
35
|
+
...contactExtras,
|
|
36
|
+
});
|
|
37
|
+
export const UpdateProfileBody = StandardFieldsInput.extend({ attributes: Attributes.optional(), ...contactExtras });
|
|
38
|
+
export const ProfileDto = z.object({
|
|
39
|
+
id: Id,
|
|
40
|
+
emailPrimary: z.string().nullable(),
|
|
41
|
+
phonePrimary: z.string().nullable(),
|
|
42
|
+
firstName: z.string().nullable(),
|
|
43
|
+
lastName: z.string().nullable(),
|
|
44
|
+
timezone: z.string().nullable(),
|
|
45
|
+
locale: z.string().nullable(),
|
|
46
|
+
country: z.string().nullable(),
|
|
47
|
+
city: z.string().nullable(),
|
|
48
|
+
region: z.string().nullable(),
|
|
49
|
+
source: z.string().nullable(),
|
|
50
|
+
lifecycleStage: z.string().nullable(),
|
|
51
|
+
/** 'unverified' until an imported or acquired person opens, clicks (human) or confirms; null when it never applied. */
|
|
52
|
+
verification: z.enum(['unverified', 'verified']).nullish(),
|
|
53
|
+
ownerUserId: z.string().nullable(),
|
|
54
|
+
attributes: z.record(z.string(), z.unknown()),
|
|
55
|
+
tags: z.array(z.string()),
|
|
56
|
+
mergedIntoId: z.string().nullable(),
|
|
57
|
+
archivedAt: Timestamp.nullish(),
|
|
58
|
+
createdAt: Timestamp,
|
|
59
|
+
updatedAt: Timestamp,
|
|
60
|
+
/** Contact form only: channels whose `subscribed` has no effect: the person unsubscribed before (only they can opt back in) or the address is suppressed (e.g. erased on request). */
|
|
61
|
+
consentIgnored: z.array(Channel).optional(),
|
|
62
|
+
});
|
|
63
|
+
export const ProfilePage = pageResult(ProfileDto);
|
|
64
|
+
export const UpsertProfileResult = z.object({ profile: ProfileDto, created: z.boolean(), conflicts: z.array(Id) });
|
|
65
|
+
/** Profile filters shared by `GET /v1/profiles`, list members, counts and bulk selectors. */
|
|
66
|
+
export const ProfileFilterFields = z.object({
|
|
67
|
+
q: z.string().max(200).optional(),
|
|
68
|
+
tag: z.string().max(64).optional(),
|
|
69
|
+
/** Comma separated: profile has any / all of these tags. */
|
|
70
|
+
tagsAny: z.string().max(640).optional(),
|
|
71
|
+
tagsAll: z.string().max(640).optional(),
|
|
72
|
+
listId: z.uuid().optional(),
|
|
73
|
+
/** Exact normalized match. */
|
|
74
|
+
email: z.string().max(320).optional(),
|
|
75
|
+
phone: z.string().max(40).optional(),
|
|
76
|
+
createdSince: DateTimeIn().optional(),
|
|
77
|
+
createdBefore: DateTimeIn().optional(),
|
|
78
|
+
updatedSince: DateTimeIn().optional(),
|
|
79
|
+
updatedBefore: DateTimeIn().optional(),
|
|
80
|
+
/** Any custom attribute: `attrKey` compared to `attrValue` (numbers compare numerically). */
|
|
81
|
+
attrKey: z.string().max(128).optional(),
|
|
82
|
+
attrOp: z.enum(['eq', 'contains', 'gt', 'lt']).default('eq'),
|
|
83
|
+
attrValue: z.string().max(500).optional(),
|
|
84
|
+
/** VIP / starred = attribute `vip` is true. */
|
|
85
|
+
vip: z.enum(['true', 'false']).optional(),
|
|
86
|
+
/** Profiles with a consent state in this status (`none` = no consent record). Narrow with `consentChannel`. */
|
|
87
|
+
consentStatus: z.enum(['granted', 'revoked', 'pending_confirmation', 'none']).optional(),
|
|
88
|
+
consentChannel: Channel.optional(),
|
|
89
|
+
/** Consent state last changed on/after this instant. */
|
|
90
|
+
consentSince: DateTimeIn().optional(),
|
|
91
|
+
/** Interest: granted consent on this topic. */
|
|
92
|
+
topicId: z.uuid().optional(),
|
|
93
|
+
/** Location (exact, case-insensitive). */
|
|
94
|
+
country: z.string().max(100).optional(),
|
|
95
|
+
region: z.string().max(100).optional(),
|
|
96
|
+
city: z.string().max(100).optional(),
|
|
97
|
+
/** Current member of this saved segment (by its last evaluation). */
|
|
98
|
+
segmentId: z.uuid().optional(),
|
|
99
|
+
/** Has this event (optionally inside a time window). */
|
|
100
|
+
eventName: z.string().max(128).optional(),
|
|
101
|
+
eventSince: DateTimeIn().optional(),
|
|
102
|
+
eventBefore: DateTimeIn().optional(),
|
|
103
|
+
/** Profile.source, e.g. `import:<id>` or `form:<id>`. */
|
|
104
|
+
source: z.string().max(128).optional(),
|
|
105
|
+
/** Archived contacts are hidden unless asked for. */
|
|
106
|
+
archived: z.enum(['only', 'include']).optional(),
|
|
107
|
+
sort: z.enum(['newest', 'oldest']).default('newest'),
|
|
108
|
+
});
|
|
109
|
+
export const ListProfilesQuery = ProfileFilterFields.extend({
|
|
110
|
+
limit: z.coerce.number().int().min(1).max(200).default(50),
|
|
111
|
+
cursor: z.uuid().optional(),
|
|
112
|
+
});
|
|
113
|
+
export const ProfileCount = z.object({ count: z.number().int() });
|
|
114
|
+
export const ProfileListMembership = z.object({ id: Id, name: z.string() });
|
|
115
|
+
export const ProfileMemberships = z.object({ lists: z.array(ProfileListMembership), segments: z.array(ProfileListMembership) });
|
|
116
|
+
/** Last `days` days, or the window `from`..`to` (both dates, at most 366 days) when given. */
|
|
117
|
+
export const ListSizeHistoryQuery = z.object({ days: z.coerce.number().int().min(2).max(365).default(30), from: z.iso.date().optional(), to: z.iso.date().optional() })
|
|
118
|
+
.refine((q) => !q.from === !q.to, 'Give both from and to, or neither');
|
|
119
|
+
export const ListSizeHistory = z.object({ items: z.array(z.object({ day: z.string(), size: z.number().int(), added: z.number().int().default(0), removed: z.number().int().default(0) })) });
|
|
120
|
+
export const MembershipsBatchBody = z.object({ profileIds: z.array(Id).min(1).max(100) });
|
|
121
|
+
export const MembershipsBatchResult = z.object({ items: z.array(z.object({ profileId: Id }).extend(ProfileMemberships.shape)) });
|
|
122
|
+
export const MergeBody = z.object({ mergedId: Id });
|
|
123
|
+
export const NoteKind = z.enum(['note', 'email', 'call', 'meeting']);
|
|
124
|
+
export const NoteBody = z.object({ body: z.string().min(1).max(10_000), kind: NoteKind.default('note') });
|
|
125
|
+
export const NoteDto = z.object({ id: Id, profileId: Id, authorId: z.string(), body: z.string(), kind: NoteKind.default('note'), at: Timestamp, updatedAt: Timestamp.nullish() });
|
|
126
|
+
export const NoteParams = z.object({ id: Id, noteId: Id });
|
|
127
|
+
export const NotePage = pageResult(NoteDto);
|
|
128
|
+
export const ActivityDto = z.object({
|
|
129
|
+
id: Id,
|
|
130
|
+
profileId: Id,
|
|
131
|
+
kind: z.string(),
|
|
132
|
+
refType: z.string().nullable(),
|
|
133
|
+
refId: z.string().nullable(),
|
|
134
|
+
summary: z.string(),
|
|
135
|
+
data: z.unknown(),
|
|
136
|
+
at: Timestamp,
|
|
137
|
+
});
|
|
138
|
+
export const ActivityPage = pageResult(ActivityDto);
|
|
139
|
+
const TagNames = z.array(z.string().min(1).max(64)).min(1).max(100);
|
|
140
|
+
/** `tags` is canonical (as on profile create and resource tags); `names` is the deprecated alias older clients send. */
|
|
141
|
+
export const TagsBody = z.object({ tags: TagNames.optional(), names: TagNames.optional().describe('Deprecated: use tags') })
|
|
142
|
+
.refine((b) => Boolean(b.tags ?? b.names), 'Give tags');
|
|
143
|
+
export const TagsResult = z.object({ tags: z.array(z.string()) });
|
|
144
|
+
/** Per-list settings (Mailchimp parity). All optional; stored as one JSON bag. */
|
|
145
|
+
export const ListSettings = z.object({
|
|
146
|
+
doubleOptIn: z.boolean().optional(),
|
|
147
|
+
/** Double opt-in confirmations grant email marketing consent for this topic only (not the whole channel); one list per subscription. */
|
|
148
|
+
topicId: Id.optional(),
|
|
149
|
+
/** Subscribe by email: a mail to this address (on one of your inbound domains) starts this list's double opt-in for the sender. Needs double opt-in; nothing is granted until they confirm. Empty clears it. */
|
|
150
|
+
subscribeAddress: z.union([z.email(), z.literal('')]).optional(),
|
|
151
|
+
permissionReminder: z.string().max(1000).optional(),
|
|
152
|
+
defaultFromName: z.string().max(200).optional(),
|
|
153
|
+
defaultFromEmail: z.string().max(320).optional(),
|
|
154
|
+
defaultSubject: z.string().max(300).optional(),
|
|
155
|
+
/** Fills an unset reply-to on campaigns sent to this list (the message and the template's brand default win). Empty clears it. */
|
|
156
|
+
defaultReplyTo: z.union([ReplyToList, z.literal('')]).optional(),
|
|
157
|
+
/** When set, forms that put people on this list may only apply these tags; others are dropped. Empty = no limit. */
|
|
158
|
+
allowedFormTags: z.array(z.string().min(1).max(64)).max(100).optional(),
|
|
159
|
+
defaultLanguage: z.string().max(16).optional(),
|
|
160
|
+
companyName: z.string().max(200).optional(),
|
|
161
|
+
contactAddress: z.string().max(500).optional(),
|
|
162
|
+
/** A saved address record printed in the footer of marketing email sent to this list (beats the workspace address). Empty clears it. */
|
|
163
|
+
postalAddressId: z.union([z.uuid(), z.literal('')]).optional(),
|
|
164
|
+
footer: z.string().max(2000).optional(),
|
|
165
|
+
/** Public contact email and homepage, printed with the address on the preference page. */
|
|
166
|
+
contactEmail: z.union([z.email(), z.literal('')]).optional(),
|
|
167
|
+
homepageUrl: z.union([z.url(), z.literal('')]).optional(),
|
|
168
|
+
/** Campaigns to this list reach only members who are also in this segment. Empty clears it. */
|
|
169
|
+
segmentScopeId: z.union([z.uuid(), z.literal('')]).optional(),
|
|
170
|
+
/** How the hosted unsubscribe link behaves: `confirm` (default) asks first; `one_click` unsubscribes straight away on a POST from the mail client or the page button. A GET never changes anything. */
|
|
171
|
+
unsubscribeMode: z.enum(['confirm', 'one_click']).optional(),
|
|
172
|
+
/** Where people land after confirming an unsubscribe from this list. Empty = the workspace page. */
|
|
173
|
+
unsubscribeRedirectUrl: z.union([z.url(), z.literal('')]).optional(),
|
|
174
|
+
/** Text shown on the page people see after unsubscribing from this list (plain text; it never replaces the confirmation itself). */
|
|
175
|
+
unsubscribedMessage: z.string().max(1000).optional(),
|
|
176
|
+
notifyOnSubscribe: z.string().max(320).optional(),
|
|
177
|
+
notifyOnUnsubscribe: z.string().max(320).optional(),
|
|
178
|
+
archived: z.boolean().optional(),
|
|
179
|
+
/** One emoji shown beside the list name so lists are easy to tell apart. */
|
|
180
|
+
emoji: z.string().max(8).optional(),
|
|
181
|
+
/** Opt-in: shown on the public lists page (/p/lists/<workspaceId>). Ignored for double opt-in lists. */
|
|
182
|
+
publicDirectory: z.boolean().optional(),
|
|
183
|
+
/** Temporary list: from this instant it behaves as archived (no new members, not targetable, hidden from the public directory). Empty string clears it. */
|
|
184
|
+
expiresAt: z.union([z.iso.datetime({ offset: true }), z.literal('')]).optional(),
|
|
185
|
+
/** Exclusion list: its members are left out of every campaign, whatever the campaign targets. */
|
|
186
|
+
exclusion: z.boolean().optional(),
|
|
187
|
+
/** Default mailer for campaigns to this list: a connection or a pool (a campaign's own route wins). Empty clears it. */
|
|
188
|
+
defaultConnectionId: z.union([z.uuid(), z.literal('')]).optional(),
|
|
189
|
+
defaultPoolId: z.union([z.uuid(), z.literal('')]).optional(),
|
|
190
|
+
});
|
|
191
|
+
export const CreateListBody = z.object({ name: z.string().min(1).max(200), description: z.string().max(2000).nullable().optional(), settings: ListSettings.optional(), folderId: Id.nullable().optional() });
|
|
192
|
+
export const UpdateListBody = CreateListBody.partial();
|
|
193
|
+
export const ListDto = z.object({ id: Id, name: z.string(), description: z.string().nullable(), kind: z.string(), settings: ListSettings, tags: z.array(z.string()).optional(), folderId: Id.nullable().optional(), createdAt: Timestamp });
|
|
194
|
+
/** Mailchimp-style list stats over the last 365 days of marketing sends (rates are 0..1 of delivered). */
|
|
195
|
+
export const ListStats = z.object({
|
|
196
|
+
sent: z.number().int(), openRate: z.number(), clickRate: z.number(), unsubscribed: z.number().int(), cleaned: z.number().int(), lastSentAt: z.string().nullable(),
|
|
197
|
+
});
|
|
198
|
+
export const ListWithCount = ListDto.extend({ memberCount: z.number().int(), stats: ListStats.optional() });
|
|
199
|
+
export const ListMembersBody = z.object({ profileIds: z.array(Id).min(1).max(1000) });
|
|
200
|
+
export const ListMembersResult = z.object({ changed: z.array(Id) });
|
|
201
|
+
/** Free-form data stored on one person's membership of one list (for example a plan or a table number). */
|
|
202
|
+
export const ListMemberMetaBody = z.object({ meta: z.record(z.string().min(1).max(64), z.unknown()).refine((m) => JSON.stringify(m).length <= 8000, 'Membership data is limited to 8 KB') });
|
|
203
|
+
export const ListMemberMetaDto = z.object({ listId: Id, profileId: Id, meta: z.record(z.string(), z.unknown()), addedAt: Timestamp, source: z.string().nullable() });
|
|
204
|
+
/** Either explicit ids, or a name search: every non-deleted list whose name contains it (max 200). */
|
|
205
|
+
export const ListsBatchDeleteBody = z.object({ ids: z.array(Id).min(1).max(200).optional(), search: z.string().trim().min(1).max(100).optional() })
|
|
206
|
+
.refine((b) => !!b.ids !== !!b.search, { message: 'Send either ids or search' });
|
|
207
|
+
export const ListsBatchDeleteResult = z.object({ deleted: z.array(Id) });
|
|
208
|
+
export const ListJoinOrderQuery = z.object({ limit: z.coerce.number().int().min(1).max(200).default(50), cursor: z.string().max(80).optional() });
|
|
209
|
+
export const ListJoinOrderPage = z.object({ items: z.array(ListMemberMetaDto), nextCursor: z.string().nullable() });
|
|
210
|
+
// ---- identity settings: match order, duplicate rules, timeline volume ---------------------------------------------
|
|
211
|
+
export const IDENTITY_MATCH_TYPES = ['external_id', 'email', 'phone', 'anonymous_id'];
|
|
212
|
+
export const DUPLICATE_RULES = ['email_alias', 'same_name_city'];
|
|
213
|
+
/** Message rows on the profile timeline: every send status and engagement, engagement only (opens, clicks, replies, unsubscribes), or none. */
|
|
214
|
+
export const TIMELINE_MESSAGE_MODES = ['all', 'engagement', 'off'];
|
|
215
|
+
const distinct = (a) => new Set(a).size === a.length;
|
|
216
|
+
/** Defaults are the behaviour before these became settings. */
|
|
217
|
+
export const IdentitySettingsDto = z.object({
|
|
218
|
+
/** Which identifier wins when one call's identifiers point at different people: every type exactly once, strongest first. */
|
|
219
|
+
matchOrder: z.array(z.enum(IDENTITY_MATCH_TYPES)).length(IDENTITY_MATCH_TYPES.length).refine(distinct, 'List each identifier once'),
|
|
220
|
+
/** Duplicate-suggestion rules in use (empty = no suggestions). */
|
|
221
|
+
duplicateRules: z.array(z.enum(DUPLICATE_RULES)).max(DUPLICATE_RULES.length).refine(distinct, 'List each rule once'),
|
|
222
|
+
timelineMessages: z.enum(TIMELINE_MESSAGE_MODES),
|
|
223
|
+
});
|
|
224
|
+
export const UpdateIdentitySettingsBody = IdentitySettingsDto.partial();
|
|
225
|
+
export const DEFAULT_IDENTITY_SETTINGS = { matchOrder: [...IDENTITY_MATCH_TYPES], duplicateRules: [...DUPLICATE_RULES], timelineMessages: 'all' };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './auth.ts';
|
|
2
|
+
export * from './billing.ts';
|
|
3
|
+
export * from './campaigns.ts';
|
|
4
|
+
export * from './common.ts';
|
|
5
|
+
export * from './connectors.ts';
|
|
6
|
+
export * from './consent.ts';
|
|
7
|
+
export * from './content.ts';
|
|
8
|
+
export * from './delivery.ts';
|
|
9
|
+
export * from './events.ts';
|
|
10
|
+
export * from './identity.ts';
|
|
11
|
+
export * from './integrations.ts';
|
|
12
|
+
export * from './platform-admin.ts';
|
|
13
|
+
export * from './segments.ts';
|
|
14
|
+
export * from './workflows.ts';
|
|
15
|
+
export * from './x10-platform.ts';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './auth.js';
|
|
2
|
+
export * from './billing.js';
|
|
3
|
+
export * from './campaigns.js';
|
|
4
|
+
export * from './common.js';
|
|
5
|
+
export * from './connectors.js';
|
|
6
|
+
export * from './consent.js';
|
|
7
|
+
export * from './content.js';
|
|
8
|
+
export * from './delivery.js';
|
|
9
|
+
export * from './events.js';
|
|
10
|
+
export * from './identity.js';
|
|
11
|
+
export * from './integrations.js';
|
|
12
|
+
export * from './platform-admin.js';
|
|
13
|
+
export * from './segments.js';
|
|
14
|
+
export * from './workflows.js';
|
|
15
|
+
export * from './x10-platform.js';
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Exact topic (`profile.created`), prefix wildcard (`segment.*`) or everything (`*`). */
|
|
3
|
+
export declare const WebhookTopicPattern: z.ZodString;
|
|
4
|
+
/** A payload condition on `data` (dotted path). All filters of an endpoint must match for a delivery to be created. */
|
|
5
|
+
export declare const WebhookFilter: z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
path: z.ZodString;
|
|
8
|
+
op: z.ZodEnum<{
|
|
9
|
+
contains: "contains";
|
|
10
|
+
eq: "eq";
|
|
11
|
+
exists: "exists";
|
|
12
|
+
gt: "gt";
|
|
13
|
+
in: "in";
|
|
14
|
+
lt: "lt";
|
|
15
|
+
neq: "neq";
|
|
16
|
+
}>;
|
|
17
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
/** An extra header whose value is read from a named integration secret at send time. */
|
|
20
|
+
export declare const WebhookAuthHeader: z.ZodObject<{
|
|
21
|
+
header: z.ZodString;
|
|
22
|
+
secretName: z.ZodString;
|
|
23
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const CreateWebhookEndpoint: z.ZodObject<{
|
|
26
|
+
url: z.ZodURL;
|
|
27
|
+
topics: z.ZodArray<z.ZodString>;
|
|
28
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
30
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31
|
+
path: z.ZodString;
|
|
32
|
+
op: z.ZodEnum<{
|
|
33
|
+
contains: "contains";
|
|
34
|
+
eq: "eq";
|
|
35
|
+
exists: "exists";
|
|
36
|
+
gt: "gt";
|
|
37
|
+
in: "in";
|
|
38
|
+
lt: "lt";
|
|
39
|
+
neq: "neq";
|
|
40
|
+
}>;
|
|
41
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
listIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
+
sequenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
+
bodyTemplate: z.ZodOptional<z.ZodString>;
|
|
47
|
+
authHeaders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
|
+
header: z.ZodString;
|
|
49
|
+
secretName: z.ZodString;
|
|
50
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>>;
|
|
52
|
+
throttleSeconds: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
throttleTopics: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
+
autoDisableAfter: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
retryWindowHours: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export declare const UpdateWebhookEndpoint: z.ZodObject<{
|
|
58
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
59
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
|
+
id: z.ZodOptional<z.ZodString>;
|
|
62
|
+
path: z.ZodString;
|
|
63
|
+
op: z.ZodEnum<{
|
|
64
|
+
contains: "contains";
|
|
65
|
+
eq: "eq";
|
|
66
|
+
exists: "exists";
|
|
67
|
+
gt: "gt";
|
|
68
|
+
in: "in";
|
|
69
|
+
lt: "lt";
|
|
70
|
+
neq: "neq";
|
|
71
|
+
}>;
|
|
72
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
74
|
+
listIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
sequenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
bodyTemplate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
authHeaders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
+
header: z.ZodString;
|
|
81
|
+
secretName: z.ZodString;
|
|
82
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>>;
|
|
84
|
+
throttleSeconds: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
throttleTopics: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
86
|
+
autoDisableAfter: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
retryWindowHours: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
89
|
+
active: "active";
|
|
90
|
+
disabled: "disabled";
|
|
91
|
+
}>>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export declare const WebhookEndpointDto: z.ZodObject<{
|
|
94
|
+
id: z.ZodUUID;
|
|
95
|
+
url: z.ZodString;
|
|
96
|
+
topics: z.ZodArray<z.ZodString>;
|
|
97
|
+
description: z.ZodNullable<z.ZodString>;
|
|
98
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
99
|
+
id: z.ZodOptional<z.ZodString>;
|
|
100
|
+
path: z.ZodString;
|
|
101
|
+
op: z.ZodEnum<{
|
|
102
|
+
contains: "contains";
|
|
103
|
+
eq: "eq";
|
|
104
|
+
exists: "exists";
|
|
105
|
+
gt: "gt";
|
|
106
|
+
in: "in";
|
|
107
|
+
lt: "lt";
|
|
108
|
+
neq: "neq";
|
|
109
|
+
}>;
|
|
110
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
listIds: z.ZodArray<z.ZodString>;
|
|
113
|
+
sources: z.ZodArray<z.ZodString>;
|
|
114
|
+
sequenceIds: z.ZodArray<z.ZodString>;
|
|
115
|
+
bodyTemplate: z.ZodNullable<z.ZodString>;
|
|
116
|
+
authHeaders: z.ZodArray<z.ZodObject<{
|
|
117
|
+
header: z.ZodString;
|
|
118
|
+
secretName: z.ZodString;
|
|
119
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
throttleSeconds: z.ZodNumber;
|
|
122
|
+
throttleTopics: z.ZodArray<z.ZodString>;
|
|
123
|
+
autoDisableAfter: z.ZodDefault<z.ZodNumber>;
|
|
124
|
+
retryWindowHours: z.ZodDefault<z.ZodNumber>;
|
|
125
|
+
status: z.ZodEnum<{
|
|
126
|
+
active: "active";
|
|
127
|
+
disabled: "disabled";
|
|
128
|
+
}>;
|
|
129
|
+
consecutiveFailures: z.ZodNumber;
|
|
130
|
+
createdAt: z.ZodISODateTime;
|
|
131
|
+
updatedAt: z.ZodISODateTime;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
/** `secret` is shown exactly once (create / rotate). */
|
|
134
|
+
export declare const WebhookEndpointCreated: z.ZodObject<{
|
|
135
|
+
id: z.ZodUUID;
|
|
136
|
+
url: z.ZodString;
|
|
137
|
+
topics: z.ZodArray<z.ZodString>;
|
|
138
|
+
description: z.ZodNullable<z.ZodString>;
|
|
139
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
140
|
+
id: z.ZodOptional<z.ZodString>;
|
|
141
|
+
path: z.ZodString;
|
|
142
|
+
op: z.ZodEnum<{
|
|
143
|
+
contains: "contains";
|
|
144
|
+
eq: "eq";
|
|
145
|
+
exists: "exists";
|
|
146
|
+
gt: "gt";
|
|
147
|
+
in: "in";
|
|
148
|
+
lt: "lt";
|
|
149
|
+
neq: "neq";
|
|
150
|
+
}>;
|
|
151
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
listIds: z.ZodArray<z.ZodString>;
|
|
154
|
+
sources: z.ZodArray<z.ZodString>;
|
|
155
|
+
sequenceIds: z.ZodArray<z.ZodString>;
|
|
156
|
+
bodyTemplate: z.ZodNullable<z.ZodString>;
|
|
157
|
+
authHeaders: z.ZodArray<z.ZodObject<{
|
|
158
|
+
header: z.ZodString;
|
|
159
|
+
secretName: z.ZodString;
|
|
160
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
throttleSeconds: z.ZodNumber;
|
|
163
|
+
throttleTopics: z.ZodArray<z.ZodString>;
|
|
164
|
+
autoDisableAfter: z.ZodDefault<z.ZodNumber>;
|
|
165
|
+
retryWindowHours: z.ZodDefault<z.ZodNumber>;
|
|
166
|
+
status: z.ZodEnum<{
|
|
167
|
+
active: "active";
|
|
168
|
+
disabled: "disabled";
|
|
169
|
+
}>;
|
|
170
|
+
consecutiveFailures: z.ZodNumber;
|
|
171
|
+
createdAt: z.ZodISODateTime;
|
|
172
|
+
updatedAt: z.ZodISODateTime;
|
|
173
|
+
secret: z.ZodString;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
export declare const WebhookSecretResult: z.ZodObject<{
|
|
176
|
+
secret: z.ZodString;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export declare const WebhookEndpointPage: z.ZodObject<{
|
|
179
|
+
items: z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodUUID;
|
|
181
|
+
url: z.ZodString;
|
|
182
|
+
topics: z.ZodArray<z.ZodString>;
|
|
183
|
+
description: z.ZodNullable<z.ZodString>;
|
|
184
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
185
|
+
id: z.ZodOptional<z.ZodString>;
|
|
186
|
+
path: z.ZodString;
|
|
187
|
+
op: z.ZodEnum<{
|
|
188
|
+
contains: "contains";
|
|
189
|
+
eq: "eq";
|
|
190
|
+
exists: "exists";
|
|
191
|
+
gt: "gt";
|
|
192
|
+
in: "in";
|
|
193
|
+
lt: "lt";
|
|
194
|
+
neq: "neq";
|
|
195
|
+
}>;
|
|
196
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
listIds: z.ZodArray<z.ZodString>;
|
|
199
|
+
sources: z.ZodArray<z.ZodString>;
|
|
200
|
+
sequenceIds: z.ZodArray<z.ZodString>;
|
|
201
|
+
bodyTemplate: z.ZodNullable<z.ZodString>;
|
|
202
|
+
authHeaders: z.ZodArray<z.ZodObject<{
|
|
203
|
+
header: z.ZodString;
|
|
204
|
+
secretName: z.ZodString;
|
|
205
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
throttleSeconds: z.ZodNumber;
|
|
208
|
+
throttleTopics: z.ZodArray<z.ZodString>;
|
|
209
|
+
autoDisableAfter: z.ZodDefault<z.ZodNumber>;
|
|
210
|
+
retryWindowHours: z.ZodDefault<z.ZodNumber>;
|
|
211
|
+
status: z.ZodEnum<{
|
|
212
|
+
active: "active";
|
|
213
|
+
disabled: "disabled";
|
|
214
|
+
}>;
|
|
215
|
+
consecutiveFailures: z.ZodNumber;
|
|
216
|
+
createdAt: z.ZodISODateTime;
|
|
217
|
+
updatedAt: z.ZodISODateTime;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
export declare const WebhookDeliveryStatus: z.ZodEnum<{
|
|
222
|
+
failed: "failed";
|
|
223
|
+
pending: "pending";
|
|
224
|
+
succeeded: "succeeded";
|
|
225
|
+
}>;
|
|
226
|
+
export declare const WebhookDeliveryDto: z.ZodObject<{
|
|
227
|
+
id: z.ZodUUID;
|
|
228
|
+
endpointId: z.ZodUUID;
|
|
229
|
+
outboxId: z.ZodNullable<z.ZodUUID>;
|
|
230
|
+
topic: z.ZodString;
|
|
231
|
+
attempt: z.ZodNumber;
|
|
232
|
+
status: z.ZodEnum<{
|
|
233
|
+
failed: "failed";
|
|
234
|
+
pending: "pending";
|
|
235
|
+
succeeded: "succeeded";
|
|
236
|
+
}>;
|
|
237
|
+
responseCode: z.ZodNullable<z.ZodNumber>;
|
|
238
|
+
latencyMs: z.ZodNullable<z.ZodNumber>;
|
|
239
|
+
error: z.ZodNullable<z.ZodString>;
|
|
240
|
+
nextAttemptAt: z.ZodNullable<z.ZodISODateTime>;
|
|
241
|
+
createdAt: z.ZodISODateTime;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
export declare const WebhookDeliveryPage: z.ZodObject<{
|
|
244
|
+
items: z.ZodArray<z.ZodObject<{
|
|
245
|
+
id: z.ZodUUID;
|
|
246
|
+
endpointId: z.ZodUUID;
|
|
247
|
+
outboxId: z.ZodNullable<z.ZodUUID>;
|
|
248
|
+
topic: z.ZodString;
|
|
249
|
+
attempt: z.ZodNumber;
|
|
250
|
+
status: z.ZodEnum<{
|
|
251
|
+
failed: "failed";
|
|
252
|
+
pending: "pending";
|
|
253
|
+
succeeded: "succeeded";
|
|
254
|
+
}>;
|
|
255
|
+
responseCode: z.ZodNullable<z.ZodNumber>;
|
|
256
|
+
latencyMs: z.ZodNullable<z.ZodNumber>;
|
|
257
|
+
error: z.ZodNullable<z.ZodString>;
|
|
258
|
+
nextAttemptAt: z.ZodNullable<z.ZodISODateTime>;
|
|
259
|
+
createdAt: z.ZodISODateTime;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export declare const WebhookDeliveriesQuery: z.ZodObject<{
|
|
264
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
265
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
266
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
267
|
+
failed: "failed";
|
|
268
|
+
pending: "pending";
|
|
269
|
+
succeeded: "succeeded";
|
|
270
|
+
}>>;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
/** Pull journal entry: `offset` is the opaque, increasing position consumers resume from. */
|
|
273
|
+
export declare const WebhookJournalEntry: z.ZodObject<{
|
|
274
|
+
offset: z.ZodNumber;
|
|
275
|
+
id: z.ZodUUID;
|
|
276
|
+
topic: z.ZodString;
|
|
277
|
+
createdAt: z.ZodISODateTime;
|
|
278
|
+
data: z.ZodUnknown;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
export declare const WebhookJournalQuery: z.ZodObject<{
|
|
281
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
282
|
+
after: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
283
|
+
endpointId: z.ZodOptional<z.ZodUUID>;
|
|
284
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
export declare const WebhookJournalPage: z.ZodObject<{
|
|
287
|
+
items: z.ZodArray<z.ZodObject<{
|
|
288
|
+
offset: z.ZodNumber;
|
|
289
|
+
id: z.ZodUUID;
|
|
290
|
+
topic: z.ZodString;
|
|
291
|
+
createdAt: z.ZodISODateTime;
|
|
292
|
+
data: z.ZodUnknown;
|
|
293
|
+
}, z.core.$strip>>;
|
|
294
|
+
nextOffset: z.ZodNullable<z.ZodNumber>;
|
|
295
|
+
}, z.core.$strip>;
|
|
296
|
+
export declare const WebhookJournalBounds: z.ZodObject<{
|
|
297
|
+
earliest: z.ZodNullable<z.ZodNumber>;
|
|
298
|
+
latest: z.ZodNullable<z.ZodNumber>;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
export declare const WebhookJournalBatchBody: z.ZodObject<{
|
|
301
|
+
offsets: z.ZodArray<z.ZodNumber>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
export declare const WebhookSummaryQuery: z.ZodObject<{
|
|
304
|
+
endpointId: z.ZodOptional<z.ZodUUID>;
|
|
305
|
+
since: z.ZodOptional<z.ZodISODateTime>;
|
|
306
|
+
until: z.ZodOptional<z.ZodISODateTime>;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
export declare const WebhookSummary: z.ZodObject<{
|
|
309
|
+
total: z.ZodNumber;
|
|
310
|
+
succeeded: z.ZodNumber;
|
|
311
|
+
failed: z.ZodNumber;
|
|
312
|
+
pending: z.ZodNumber;
|
|
313
|
+
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
export declare const WebhookSummaryByDate: z.ZodObject<{
|
|
316
|
+
items: z.ZodArray<z.ZodObject<{
|
|
317
|
+
total: z.ZodNumber;
|
|
318
|
+
succeeded: z.ZodNumber;
|
|
319
|
+
failed: z.ZodNumber;
|
|
320
|
+
pending: z.ZodNumber;
|
|
321
|
+
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
|
|
322
|
+
date: z.ZodString;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
export declare const WebhookRetriggerResult: z.ZodObject<{
|
|
326
|
+
requeued: z.ZodNumber;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
export declare const WebhookExportQuery: z.ZodObject<{
|
|
329
|
+
endpointId: z.ZodOptional<z.ZodUUID>;
|
|
330
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
331
|
+
failed: "failed";
|
|
332
|
+
pending: "pending";
|
|
333
|
+
succeeded: "succeeded";
|
|
334
|
+
}>>;
|
|
335
|
+
since: z.ZodOptional<z.ZodISODateTime>;
|
|
336
|
+
until: z.ZodOptional<z.ZodISODateTime>;
|
|
337
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
338
|
+
csv: "csv";
|
|
339
|
+
ndjson: "ndjson";
|
|
340
|
+
}>>;
|
|
341
|
+
}, z.core.$strip>;
|
|
342
|
+
export type CreateWebhookEndpoint = z.infer<typeof CreateWebhookEndpoint>;
|
|
343
|
+
export type UpdateWebhookEndpoint = z.infer<typeof UpdateWebhookEndpoint>;
|
|
344
|
+
export type WebhookEndpointDto = z.infer<typeof WebhookEndpointDto>;
|
|
345
|
+
export type WebhookEndpointCreated = z.infer<typeof WebhookEndpointCreated>;
|
|
346
|
+
export type WebhookDeliveryDto = z.infer<typeof WebhookDeliveryDto>;
|
|
347
|
+
export declare const IntegrationSecretName: z.ZodString;
|
|
348
|
+
export declare const PutIntegrationSecretBody: z.ZodObject<{
|
|
349
|
+
value: z.ZodString;
|
|
350
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
export declare const IntegrationSecretParams: z.ZodObject<{
|
|
353
|
+
name: z.ZodString;
|
|
354
|
+
}, z.core.$strip>;
|
|
355
|
+
/** Signs in with Google and saves the refreshable grant under `secretName` (journey Google Sheets steps reference it). */
|
|
356
|
+
export declare const GoogleSecretStartBody: z.ZodObject<{
|
|
357
|
+
secretName: z.ZodString;
|
|
358
|
+
}, z.core.$strip>;
|
|
359
|
+
/** Never carries the value. */
|
|
360
|
+
export declare const IntegrationSecretDto: z.ZodObject<{
|
|
361
|
+
id: z.ZodUUID;
|
|
362
|
+
name: z.ZodString;
|
|
363
|
+
description: z.ZodNullable<z.ZodString>;
|
|
364
|
+
createdAt: z.ZodISODateTime;
|
|
365
|
+
updatedAt: z.ZodISODateTime;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
export declare const IntegrationSecretList: z.ZodObject<{
|
|
368
|
+
items: z.ZodArray<z.ZodObject<{
|
|
369
|
+
id: z.ZodUUID;
|
|
370
|
+
name: z.ZodString;
|
|
371
|
+
description: z.ZodNullable<z.ZodString>;
|
|
372
|
+
createdAt: z.ZodISODateTime;
|
|
373
|
+
updatedAt: z.ZodISODateTime;
|
|
374
|
+
}, z.core.$strip>>;
|
|
375
|
+
}, z.core.$strip>;
|
|
376
|
+
/** Async journal export job: same filters as the journal read; poll the job, then download the CSV. */
|
|
377
|
+
export declare const WebhookJournalExportBody: z.ZodObject<{
|
|
378
|
+
after: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
endpointId: z.ZodOptional<z.ZodUUID>;
|
|
380
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
381
|
+
}, z.core.$strip>;
|