samva 0.20.0 → 0.22.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/dist/client/sdk.gen.d.ts +30 -5
- package/dist/client/sdk.gen.js +69 -2
- package/dist/client/types.gen.d.ts +190 -17
- package/dist/effect/api-keys.d.ts +7 -0
- package/dist/effect/campaigns.d.ts +31 -0
- package/dist/effect/generated/api-keys.d.ts +15 -0
- package/dist/effect/generated/api-keys.js +2 -0
- package/dist/effect/generated/campaigns.d.ts +63 -0
- package/dist/effect/generated/campaigns.js +4 -0
- package/dist/effect/generated/journeys.d.ts +18 -0
- package/dist/effect/generated/journeys.js +4 -0
- package/dist/effect/generated/shared.d.ts +20 -4
- package/dist/effect/generated/shared.js +9 -1
- package/dist/effect/generated/templates.d.ts +322 -0
- package/dist/effect/generated/templates.js +48 -8
- package/dist/effect/generated/webhooks.d.ts +139 -19
- package/dist/effect/generated/webhooks.js +39 -3
- package/dist/effect/generated-metadata.d.ts +10 -0
- package/dist/effect/generated-metadata.js +2 -0
- package/dist/effect/journeys.d.ts +8 -0
- package/dist/effect/templates.d.ts +74 -0
- package/dist/effect/templates.js +3 -1
- package/dist/effect/webhooks.d.ts +15 -8
- package/dist/effect/webhooks.js +3 -1
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +5 -3
|
@@ -2053,6 +2053,8 @@ export declare const listRuns: ((input: {
|
|
|
2053
2053
|
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2054
2054
|
readonly failureReason: string | null;
|
|
2055
2055
|
readonly currentNodeId: string | null;
|
|
2056
|
+
readonly holdReason: string | null;
|
|
2057
|
+
readonly holdUntil: string | null;
|
|
2056
2058
|
readonly trigger: {
|
|
2057
2059
|
readonly eventId: string;
|
|
2058
2060
|
readonly eventName: string;
|
|
@@ -2081,6 +2083,8 @@ export declare const listRuns: ((input: {
|
|
|
2081
2083
|
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2082
2084
|
readonly failureReason: string | null;
|
|
2083
2085
|
readonly currentNodeId: string | null;
|
|
2086
|
+
readonly holdReason: string | null;
|
|
2087
|
+
readonly holdUntil: string | null;
|
|
2084
2088
|
readonly trigger: {
|
|
2085
2089
|
readonly eventId: string;
|
|
2086
2090
|
readonly eventName: string;
|
|
@@ -2108,6 +2112,8 @@ export declare const listRuns: ((input: {
|
|
|
2108
2112
|
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2109
2113
|
readonly failureReason: string | null;
|
|
2110
2114
|
readonly currentNodeId: string | null;
|
|
2115
|
+
readonly holdReason: string | null;
|
|
2116
|
+
readonly holdUntil: string | null;
|
|
2111
2117
|
readonly trigger: {
|
|
2112
2118
|
readonly eventId: string;
|
|
2113
2119
|
readonly eventName: string;
|
|
@@ -2131,6 +2137,8 @@ export declare const getRun: (input: {
|
|
|
2131
2137
|
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2132
2138
|
readonly failureReason: string | null;
|
|
2133
2139
|
readonly currentNodeId: string | null;
|
|
2140
|
+
readonly holdReason: string | null;
|
|
2141
|
+
readonly holdUntil: string | null;
|
|
2134
2142
|
readonly trigger: {
|
|
2135
2143
|
readonly eventId: string;
|
|
2136
2144
|
readonly eventName: string;
|
|
@@ -8,6 +8,7 @@ export declare const list: ((input?: {
|
|
|
8
8
|
readonly search?: string | null | undefined;
|
|
9
9
|
readonly projectId?: string | null | undefined;
|
|
10
10
|
readonly namespaceId?: string | null | undefined;
|
|
11
|
+
readonly shared?: "false" | "true" | null | undefined;
|
|
11
12
|
} | undefined) => import("effect/Effect").Effect<{
|
|
12
13
|
readonly items: readonly {
|
|
13
14
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -16,6 +17,7 @@ export declare const list: ((input?: {
|
|
|
16
17
|
readonly channel: "email";
|
|
17
18
|
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
18
19
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
20
|
+
readonly shared: boolean;
|
|
19
21
|
readonly entryPath: string;
|
|
20
22
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
21
23
|
readonly isActive: boolean;
|
|
@@ -45,6 +47,7 @@ export declare const list: ((input?: {
|
|
|
45
47
|
readonly search?: string | null | undefined;
|
|
46
48
|
readonly projectId?: string | null | undefined;
|
|
47
49
|
readonly namespaceId?: string | null | undefined;
|
|
50
|
+
readonly shared?: "false" | "true" | null | undefined;
|
|
48
51
|
} | undefined) => import("effect/Stream").Stream<{
|
|
49
52
|
readonly items: readonly {
|
|
50
53
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -53,6 +56,7 @@ export declare const list: ((input?: {
|
|
|
53
56
|
readonly channel: "email";
|
|
54
57
|
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
55
58
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
59
|
+
readonly shared: boolean;
|
|
56
60
|
readonly entryPath: string;
|
|
57
61
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
58
62
|
readonly isActive: boolean;
|
|
@@ -82,6 +86,7 @@ export declare const list: ((input?: {
|
|
|
82
86
|
readonly search?: string | null | undefined;
|
|
83
87
|
readonly projectId?: string | null | undefined;
|
|
84
88
|
readonly namespaceId?: string | null | undefined;
|
|
89
|
+
readonly shared?: "false" | "true" | null | undefined;
|
|
85
90
|
} | undefined) => import("effect/Stream").Stream<{
|
|
86
91
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
87
92
|
readonly slug: string;
|
|
@@ -89,6 +94,7 @@ export declare const list: ((input?: {
|
|
|
89
94
|
readonly channel: "email";
|
|
90
95
|
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
91
96
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
97
|
+
readonly shared: boolean;
|
|
92
98
|
readonly entryPath: string;
|
|
93
99
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
94
100
|
readonly isActive: boolean;
|
|
@@ -118,6 +124,7 @@ export declare const create: (input: {
|
|
|
118
124
|
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
119
125
|
readonly isActive?: boolean | null | undefined;
|
|
120
126
|
readonly namespaceId?: string | null | undefined;
|
|
127
|
+
readonly shared?: boolean | null | undefined;
|
|
121
128
|
readonly idempotencyKey: string;
|
|
122
129
|
}) => import("effect/Effect").Effect<{
|
|
123
130
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -126,6 +133,7 @@ export declare const create: (input: {
|
|
|
126
133
|
readonly channel: "email";
|
|
127
134
|
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
128
135
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
136
|
+
readonly shared: boolean;
|
|
129
137
|
readonly entryPath: string;
|
|
130
138
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
131
139
|
readonly isActive: boolean;
|
|
@@ -164,6 +172,64 @@ export declare const create: (input: {
|
|
|
164
172
|
readonly [x: string]: import("./generated").JsonValue;
|
|
165
173
|
} | null;
|
|
166
174
|
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
175
|
+
export declare const createFromWebsite: (input: {
|
|
176
|
+
readonly url: string;
|
|
177
|
+
readonly name?: string | null | undefined;
|
|
178
|
+
readonly namespaceId?: string | null | undefined;
|
|
179
|
+
readonly idempotencyKey: string;
|
|
180
|
+
}) => import("effect/Effect").Effect<{
|
|
181
|
+
readonly template: {
|
|
182
|
+
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
183
|
+
readonly slug: string;
|
|
184
|
+
readonly name: string;
|
|
185
|
+
readonly channel: "email";
|
|
186
|
+
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
187
|
+
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
188
|
+
readonly shared: boolean;
|
|
189
|
+
readonly entryPath: string;
|
|
190
|
+
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
191
|
+
readonly isActive: boolean;
|
|
192
|
+
readonly publishedAt: string | null;
|
|
193
|
+
readonly brand: {
|
|
194
|
+
readonly slug: string;
|
|
195
|
+
readonly digest: string;
|
|
196
|
+
readonly stale: boolean;
|
|
197
|
+
} | null;
|
|
198
|
+
readonly fromDefault: {
|
|
199
|
+
readonly email: string;
|
|
200
|
+
readonly name?: string | null;
|
|
201
|
+
} | null;
|
|
202
|
+
readonly usageCount: number;
|
|
203
|
+
readonly lastUsedAt: string | null;
|
|
204
|
+
readonly createdAt: string;
|
|
205
|
+
readonly updatedAt: string;
|
|
206
|
+
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
207
|
+
readonly description: string | null;
|
|
208
|
+
readonly category: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null;
|
|
209
|
+
readonly replyToDefault: readonly string[] | null;
|
|
210
|
+
readonly trackingDefault: {
|
|
211
|
+
readonly opens?: boolean | null;
|
|
212
|
+
readonly clicks?: boolean | null;
|
|
213
|
+
} | null;
|
|
214
|
+
readonly email: {
|
|
215
|
+
readonly subject: string;
|
|
216
|
+
readonly preheader: string | null;
|
|
217
|
+
readonly headers: {
|
|
218
|
+
readonly [x: string]: string;
|
|
219
|
+
} | null;
|
|
220
|
+
} | null;
|
|
221
|
+
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
222
|
+
readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
|
|
223
|
+
readonly inputSchema: {
|
|
224
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
225
|
+
} | null;
|
|
226
|
+
};
|
|
227
|
+
readonly website: {
|
|
228
|
+
readonly url: string;
|
|
229
|
+
readonly host: string;
|
|
230
|
+
};
|
|
231
|
+
readonly ask: string;
|
|
232
|
+
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
167
233
|
export declare const addEntry: (input: {
|
|
168
234
|
readonly id: string;
|
|
169
235
|
readonly entryPath: string;
|
|
@@ -178,6 +244,7 @@ export declare const addEntry: (input: {
|
|
|
178
244
|
readonly channel: "email";
|
|
179
245
|
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
180
246
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
247
|
+
readonly shared: boolean;
|
|
181
248
|
readonly entryPath: string;
|
|
182
249
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
183
250
|
readonly isActive: boolean;
|
|
@@ -406,6 +473,7 @@ export declare const getById: (input: {
|
|
|
406
473
|
readonly channel: "email";
|
|
407
474
|
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
408
475
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
476
|
+
readonly shared: boolean;
|
|
409
477
|
readonly entryPath: string;
|
|
410
478
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
411
479
|
readonly isActive: boolean;
|
|
@@ -463,6 +531,7 @@ export declare const update: (input: {
|
|
|
463
531
|
} | null | undefined;
|
|
464
532
|
readonly replyToDefault?: readonly string[] | null | undefined;
|
|
465
533
|
readonly isActive?: boolean | null | undefined;
|
|
534
|
+
readonly shared?: boolean | null | undefined;
|
|
466
535
|
};
|
|
467
536
|
}) => import("effect/Effect").Effect<{
|
|
468
537
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -471,6 +540,7 @@ export declare const update: (input: {
|
|
|
471
540
|
readonly channel: "email";
|
|
472
541
|
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
473
542
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
543
|
+
readonly shared: boolean;
|
|
474
544
|
readonly entryPath: string;
|
|
475
545
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
476
546
|
readonly isActive: boolean;
|
|
@@ -1424,10 +1494,12 @@ export declare const publish: (input: {
|
|
|
1424
1494
|
readonly withUnsubscribe: {
|
|
1425
1495
|
readonly html: string;
|
|
1426
1496
|
readonly text: string;
|
|
1497
|
+
readonly headCss?: string | null;
|
|
1427
1498
|
};
|
|
1428
1499
|
readonly withoutUnsubscribe: {
|
|
1429
1500
|
readonly html: string;
|
|
1430
1501
|
readonly text: string;
|
|
1502
|
+
readonly headCss?: string | null;
|
|
1431
1503
|
};
|
|
1432
1504
|
};
|
|
1433
1505
|
readonly digest: string;
|
|
@@ -1566,10 +1638,12 @@ export declare const getPublication: (input: {
|
|
|
1566
1638
|
readonly withUnsubscribe: {
|
|
1567
1639
|
readonly html: string;
|
|
1568
1640
|
readonly text: string;
|
|
1641
|
+
readonly headCss?: string | null;
|
|
1569
1642
|
};
|
|
1570
1643
|
readonly withoutUnsubscribe: {
|
|
1571
1644
|
readonly html: string;
|
|
1572
1645
|
readonly text: string;
|
|
1646
|
+
readonly headCss?: string | null;
|
|
1573
1647
|
};
|
|
1574
1648
|
};
|
|
1575
1649
|
readonly digest: string;
|
package/dist/effect/templates.js
CHANGED
|
@@ -13,6 +13,7 @@ var templates_exports = /* @__PURE__ */ __exportAll({
|
|
|
13
13
|
create: () => create,
|
|
14
14
|
createFamily: () => createFamily,
|
|
15
15
|
createFamilyFromTemplate: () => createFamilyFromTemplate,
|
|
16
|
+
createFromWebsite: () => createFromWebsite,
|
|
16
17
|
deleteFamily: () => deleteFamily,
|
|
17
18
|
detachFamilyMember: () => detachFamilyMember,
|
|
18
19
|
diffWorkspace: () => diffWorkspace,
|
|
@@ -43,6 +44,7 @@ var templates_exports = /* @__PURE__ */ __exportAll({
|
|
|
43
44
|
const make = /* @__PURE__ */ forGroup(TemplatesGroup);
|
|
44
45
|
const list = /* @__PURE__ */ make("templatesList");
|
|
45
46
|
const create = /* @__PURE__ */ make("templatesCreate");
|
|
47
|
+
const createFromWebsite = /* @__PURE__ */ make("templatesCreateFromWebsite");
|
|
46
48
|
const addEntry = /* @__PURE__ */ make("templatesAddEntry");
|
|
47
49
|
const listFamilies = /* @__PURE__ */ make("templatesListFamilies");
|
|
48
50
|
const createFamily = /* @__PURE__ */ make("templatesCreateFamily");
|
|
@@ -75,6 +77,6 @@ const getInputContract = /* @__PURE__ */ make("templatesGetInputContract");
|
|
|
75
77
|
const diffWorkspace = /* @__PURE__ */ make("templatesDiffWorkspace");
|
|
76
78
|
const workspaceHistory = /* @__PURE__ */ make("templatesWorkspaceHistory");
|
|
77
79
|
//#endregion
|
|
78
|
-
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, deleteFamily, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset, remove, removeWorkspaceResource, renameFamily, renderPublication, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports, update, workspaceHistory };
|
|
80
|
+
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, createFromWebsite, deleteFamily, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset, remove, removeWorkspaceResource, renameFamily, renderPublication, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports, update, workspaceHistory };
|
|
79
81
|
|
|
80
82
|
//# sourceMappingURL=templates.js.map
|
|
@@ -9,7 +9,7 @@ export declare const list: ((input?: {
|
|
|
9
9
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
10
10
|
readonly name: string;
|
|
11
11
|
readonly url: string;
|
|
12
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
12
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
13
13
|
readonly channels: readonly "email"[] | null;
|
|
14
14
|
readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
|
|
15
15
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -39,7 +39,7 @@ export declare const list: ((input?: {
|
|
|
39
39
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
40
40
|
readonly name: string;
|
|
41
41
|
readonly url: string;
|
|
42
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
42
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
43
43
|
readonly channels: readonly "email"[] | null;
|
|
44
44
|
readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
|
|
45
45
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -68,7 +68,7 @@ export declare const list: ((input?: {
|
|
|
68
68
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
69
69
|
readonly name: string;
|
|
70
70
|
readonly url: string;
|
|
71
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
71
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
72
72
|
readonly channels: readonly "email"[] | null;
|
|
73
73
|
readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
|
|
74
74
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -90,7 +90,7 @@ export declare const list: ((input?: {
|
|
|
90
90
|
export declare const create: (input: {
|
|
91
91
|
readonly name: string;
|
|
92
92
|
readonly url: string;
|
|
93
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
93
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
94
94
|
readonly channels?: readonly "email"[] | null | undefined;
|
|
95
95
|
readonly mailboxIds?: readonly string[] | null | undefined;
|
|
96
96
|
readonly namespaceId?: string | null | undefined;
|
|
@@ -103,7 +103,7 @@ export declare const create: (input: {
|
|
|
103
103
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
104
104
|
readonly name: string;
|
|
105
105
|
readonly url: string;
|
|
106
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
106
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
107
107
|
readonly channels: readonly "email"[] | null;
|
|
108
108
|
readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
|
|
109
109
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -116,13 +116,20 @@ export declare const create: (input: {
|
|
|
116
116
|
};
|
|
117
117
|
readonly secret: import("effect/Redacted").Redacted<string>;
|
|
118
118
|
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
119
|
+
export declare const getSecret: (input: {
|
|
120
|
+
readonly id: string;
|
|
121
|
+
}) => import("effect/Effect").Effect<{
|
|
122
|
+
readonly secret: import("effect/Redacted").Redacted<string>;
|
|
123
|
+
readonly createdAt: string;
|
|
124
|
+
readonly previousExpiresAt: string | null;
|
|
125
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
119
126
|
export declare const get: (input: {
|
|
120
127
|
readonly id: string;
|
|
121
128
|
}) => import("effect/Effect").Effect<{
|
|
122
129
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
123
130
|
readonly name: string;
|
|
124
131
|
readonly url: string;
|
|
125
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
132
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
126
133
|
readonly channels: readonly "email"[] | null;
|
|
127
134
|
readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
|
|
128
135
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -142,7 +149,7 @@ export declare const update: (input: {
|
|
|
142
149
|
readonly id: string;
|
|
143
150
|
readonly name?: string | null | undefined;
|
|
144
151
|
readonly url?: string | null | undefined;
|
|
145
|
-
readonly eventTypes?: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[] | null | undefined;
|
|
152
|
+
readonly eventTypes?: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[] | null | undefined;
|
|
146
153
|
readonly channels?: readonly "email"[] | null | undefined;
|
|
147
154
|
readonly mailboxIds?: readonly string[] | null | undefined;
|
|
148
155
|
readonly namespaceId?: string | null | undefined;
|
|
@@ -154,7 +161,7 @@ export declare const update: (input: {
|
|
|
154
161
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
155
162
|
readonly name: string;
|
|
156
163
|
readonly url: string;
|
|
157
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
164
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
158
165
|
readonly channels: readonly "email"[] | null;
|
|
159
166
|
readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
|
|
160
167
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
package/dist/effect/webhooks.js
CHANGED
|
@@ -10,6 +10,7 @@ var webhooks_exports = /* @__PURE__ */ __exportAll({
|
|
|
10
10
|
create: () => create,
|
|
11
11
|
get: () => get,
|
|
12
12
|
getLogs: () => getLogs,
|
|
13
|
+
getSecret: () => getSecret,
|
|
13
14
|
getStats: () => getStats,
|
|
14
15
|
list: () => list,
|
|
15
16
|
regenerateSecret: () => regenerateSecret,
|
|
@@ -21,6 +22,7 @@ var webhooks_exports = /* @__PURE__ */ __exportAll({
|
|
|
21
22
|
const make = /* @__PURE__ */ forGroup(WebhooksGroup);
|
|
22
23
|
const list = /* @__PURE__ */ make("webhooksList");
|
|
23
24
|
const create = /* @__PURE__ */ make("webhooksCreate");
|
|
25
|
+
const getSecret = /* @__PURE__ */ make("webhooksGetSecret");
|
|
24
26
|
const get = /* @__PURE__ */ make("webhooksGet");
|
|
25
27
|
const remove = /* @__PURE__ */ make("webhooksRemove");
|
|
26
28
|
const update = /* @__PURE__ */ make("webhooksUpdate");
|
|
@@ -30,6 +32,6 @@ const getStats = /* @__PURE__ */ make("webhooksGetStats");
|
|
|
30
32
|
const retryDelivery = /* @__PURE__ */ make("webhooksRetryDelivery");
|
|
31
33
|
const regenerateSecret = /* @__PURE__ */ make("webhooksRegenerateSecret");
|
|
32
34
|
//#endregion
|
|
33
|
-
export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, create, get, getLogs, getStats, list, regenerateSecret, remove, retryDelivery, test, update, webhooks_exports };
|
|
35
|
+
export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, create, get, getLogs, getSecret, getStats, list, regenerateSecret, remove, retryDelivery, test, update, webhooks_exports };
|
|
34
36
|
|
|
35
37
|
//# sourceMappingURL=webhooks.js.map
|
package/dist/package.js
CHANGED