samva 0.17.0 → 0.19.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/AGENTS.md +5 -0
- package/README.md +18 -3
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/sdk.gen.d.ts +39 -23
- package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +87 -2314
- package/dist/client/types.gen.d.ts +175 -44
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +23 -2
- package/dist/effect/api-keys.d.ts +12 -12
- package/dist/effect/api-keys.js +29 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +19 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +26 -3
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +35 -2
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.js +3 -3
- package/dist/effect/contact-groups.d.ts +53 -17
- package/dist/effect/contact-groups.js +31 -2
- package/dist/effect/contacts.d.ts +244 -41
- package/dist/effect/contacts.js +54 -2
- package/dist/effect/conversations.d.ts +28 -28
- package/dist/effect/conversations.js +37 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +19 -2
- package/dist/effect/email.d.ts +75 -75
- package/dist/effect/email.js +140 -2
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/events.js +17 -3
- package/dist/effect/extension-installations.d.ts +23 -23
- package/dist/effect/extension-installations.js +29 -2
- package/dist/effect/extensions.d.ts +12 -12
- package/dist/effect/extensions.js +21 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +14 -3
- package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
- package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
- package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
- package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
- package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +33 -3
- package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
- package/dist/effect/generated/contacts.d.ts +477 -54
- package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +41 -89
- package/dist/effect/generated/conversations.d.ts +25 -25
- package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +4 -37
- package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
- package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
- package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
- package/dist/effect/generated/extension-installations.d.ts +44 -44
- package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +10 -29
- package/dist/effect/generated/extensions.d.ts +10 -10
- package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +5 -20
- package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
- package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
- package/dist/effect/generated/mailboxes.d.ts +310 -0
- package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +829 -954
- package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
- package/dist/effect/generated/messages.d.ts +31 -0
- package/dist/effect/generated/messages.js +677 -0
- package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
- package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
- package/dist/effect/generated/organizations.d.ts +13 -11
- package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +9 -26
- package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
- package/dist/effect/generated/shared.d.ts +70 -20
- package/dist/effect/generated/shared.js +1073 -0
- package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
- package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
- package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
- package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +77 -84
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +12 -34
- package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
- package/dist/effect/generated-metadata.d.ts +7 -2
- package/dist/effect/generated-metadata.js +925 -0
- package/dist/effect/index.d.ts +1 -2
- package/dist/effect/index.js +32 -32
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +18 -18
- package/dist/effect/journeys.js +39 -2
- package/dist/effect/mailboxes.d.ts +314 -182
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -10
- package/dist/effect/messages.d.ts +19 -14
- package/dist/effect/messages.js +15 -14
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +21 -2
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +17 -2
- package/dist/effect/organizations.d.ts +11 -11
- package/dist/effect/organizations.js +25 -2
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +21 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +10 -2
- package/dist/effect/templates.d.ts +39 -39
- package/dist/effect/templates.js +80 -3
- package/dist/effect/unsubscribe-groups.d.ts +39 -28
- package/dist/effect/unsubscribe-groups.js +29 -2
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/effect/webhooks.js +35 -3
- package/dist/effect/whoami.d.ts +9 -9
- package/dist/effect/whoami.js +10 -2
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
- package/dist/mailbox-events.d.ts +31 -4
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +41 -13
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -4
- package/dist/{operation-n_IYgNVK.js → service-map.js} +12 -150
- package/package.json +6 -2
- package/dist/categories-CA4XIQAb.js +0 -1011
- package/dist/client-DOzUrdTE.js +0 -1115
- package/dist/send-Bxc0XfGE.js +0 -722
|
@@ -9,7 +9,7 @@ export declare const list: (_?: never) => import("effect/Effect").Effect<{
|
|
|
9
9
|
readonly createdAt: string;
|
|
10
10
|
readonly updatedAt: string;
|
|
11
11
|
}[];
|
|
12
|
-
}, import("./
|
|
12
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
13
13
|
export declare const create: (input: {
|
|
14
14
|
readonly name: string;
|
|
15
15
|
readonly description?: string | null | undefined;
|
|
@@ -22,7 +22,7 @@ export declare const create: (input: {
|
|
|
22
22
|
readonly memberCount: number;
|
|
23
23
|
readonly createdAt: string;
|
|
24
24
|
readonly updatedAt: string;
|
|
25
|
-
}, import("./
|
|
25
|
+
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
26
26
|
export declare const update: (input: {
|
|
27
27
|
readonly id: string;
|
|
28
28
|
readonly name?: string | null | undefined;
|
|
@@ -36,12 +36,12 @@ export declare const update: (input: {
|
|
|
36
36
|
readonly memberCount: number;
|
|
37
37
|
readonly createdAt: string;
|
|
38
38
|
readonly updatedAt: string;
|
|
39
|
-
}, import("./
|
|
39
|
+
}, 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>;
|
|
40
40
|
export declare const remove: (input: {
|
|
41
41
|
readonly id: string;
|
|
42
42
|
}) => import("effect/Effect").Effect<{
|
|
43
43
|
readonly success: boolean;
|
|
44
|
-
}, import("./
|
|
44
|
+
}, 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>;
|
|
45
45
|
export declare const setDefault: (input: {
|
|
46
46
|
readonly id: string;
|
|
47
47
|
}) => import("effect/Effect").Effect<{
|
|
@@ -53,72 +53,83 @@ export declare const setDefault: (input: {
|
|
|
53
53
|
readonly memberCount: number;
|
|
54
54
|
readonly createdAt: string;
|
|
55
55
|
readonly updatedAt: string;
|
|
56
|
-
}, import("./
|
|
56
|
+
}, 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>;
|
|
57
57
|
export declare const listMembers: ((input: {
|
|
58
58
|
readonly id: string;
|
|
59
59
|
readonly limit?: string | null | undefined;
|
|
60
60
|
readonly cursor?: string | null | undefined;
|
|
61
61
|
}) => import("effect/Effect").Effect<{
|
|
62
62
|
readonly items: readonly {
|
|
63
|
-
readonly id: string
|
|
64
|
-
readonly
|
|
65
|
-
readonly contactId: string | null;
|
|
63
|
+
readonly id: string & import("effect/Brand").Brand<"UnsubscribeGroupMemberId">;
|
|
64
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
66
65
|
readonly source: "api" | "complaint" | "link" | "manual";
|
|
67
66
|
readonly unsubscribedAt: string;
|
|
68
67
|
readonly createdAt: string;
|
|
69
68
|
}[];
|
|
70
69
|
readonly nextCursor: string | null;
|
|
71
|
-
}, import("./
|
|
70
|
+
}, 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>) & {
|
|
72
71
|
readonly pages: (input: {
|
|
73
72
|
readonly id: string;
|
|
74
73
|
readonly limit?: string | null | undefined;
|
|
75
74
|
readonly cursor?: string | null | undefined;
|
|
76
75
|
}) => import("effect/Stream").Stream<{
|
|
77
76
|
readonly items: readonly {
|
|
78
|
-
readonly id: string
|
|
79
|
-
readonly
|
|
80
|
-
readonly contactId: string | null;
|
|
77
|
+
readonly id: string & import("effect/Brand").Brand<"UnsubscribeGroupMemberId">;
|
|
78
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
81
79
|
readonly source: "api" | "complaint" | "link" | "manual";
|
|
82
80
|
readonly unsubscribedAt: string;
|
|
83
81
|
readonly createdAt: string;
|
|
84
82
|
}[];
|
|
85
83
|
readonly nextCursor: string | null;
|
|
86
|
-
}, import("./
|
|
84
|
+
}, 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>;
|
|
87
85
|
readonly items: (input: {
|
|
88
86
|
readonly id: string;
|
|
89
87
|
readonly limit?: string | null | undefined;
|
|
90
88
|
readonly cursor?: string | null | undefined;
|
|
91
89
|
}) => import("effect/Stream").Stream<{
|
|
92
|
-
readonly id: string
|
|
93
|
-
readonly
|
|
94
|
-
readonly contactId: string | null;
|
|
90
|
+
readonly id: string & import("effect/Brand").Brand<"UnsubscribeGroupMemberId">;
|
|
91
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
95
92
|
readonly source: "api" | "complaint" | "link" | "manual";
|
|
96
93
|
readonly unsubscribedAt: string;
|
|
97
94
|
readonly createdAt: string;
|
|
98
|
-
}, import("./
|
|
95
|
+
}, 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>;
|
|
99
96
|
};
|
|
100
|
-
export declare const
|
|
97
|
+
export declare const addMembers: (input: {
|
|
101
98
|
readonly id: string;
|
|
102
|
-
readonly
|
|
99
|
+
readonly members: readonly ({
|
|
100
|
+
readonly contactId: string;
|
|
101
|
+
} | {
|
|
102
|
+
readonly email: string;
|
|
103
|
+
} | {
|
|
104
|
+
readonly phone: string;
|
|
105
|
+
})[];
|
|
103
106
|
readonly source?: "api" | "complaint" | "link" | "manual" | null | undefined;
|
|
104
107
|
}) => import("effect/Effect").Effect<{
|
|
105
108
|
readonly added: number;
|
|
106
109
|
readonly skipped: number;
|
|
107
|
-
}, import("./
|
|
108
|
-
export declare const
|
|
110
|
+
}, import("./errors").BillingProviderError | 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>;
|
|
111
|
+
export declare const removeMembers: (input: {
|
|
109
112
|
readonly id: string;
|
|
110
|
-
readonly
|
|
113
|
+
readonly members: readonly ({
|
|
114
|
+
readonly contactId: string;
|
|
115
|
+
} | {
|
|
116
|
+
readonly email: string;
|
|
117
|
+
} | {
|
|
118
|
+
readonly phone: string;
|
|
119
|
+
})[];
|
|
111
120
|
}) => import("effect/Effect").Effect<{
|
|
112
121
|
readonly removed: number;
|
|
113
|
-
}, import("./
|
|
114
|
-
export declare const checkSubscription: (input
|
|
115
|
-
readonly
|
|
122
|
+
}, 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>;
|
|
123
|
+
export declare const checkSubscription: (input?: {
|
|
124
|
+
readonly contactId?: string | null | undefined;
|
|
125
|
+
readonly email?: string | null | undefined;
|
|
126
|
+
readonly phone?: string | null | undefined;
|
|
116
127
|
readonly groupIds?: string | null | undefined;
|
|
117
|
-
}) => import("effect/Effect").Effect<{
|
|
118
|
-
readonly
|
|
128
|
+
} | undefined) => import("effect/Effect").Effect<{
|
|
129
|
+
readonly contactId: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
119
130
|
readonly unsubscribedGroups: readonly {
|
|
120
131
|
readonly groupId: string;
|
|
121
132
|
readonly groupName: string;
|
|
122
133
|
readonly unsubscribedAt: string;
|
|
123
134
|
}[];
|
|
124
|
-
}, import("./
|
|
135
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
@@ -1,2 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { UnsubscribeGroupsGroup } from "./generated/unsubscribe-groups.js";
|
|
4
|
+
//#region src/effect/unsubscribe-groups.ts
|
|
5
|
+
var unsubscribe_groups_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
addMembers: () => addMembers,
|
|
7
|
+
checkSubscription: () => checkSubscription,
|
|
8
|
+
create: () => create,
|
|
9
|
+
list: () => list,
|
|
10
|
+
listMembers: () => listMembers,
|
|
11
|
+
remove: () => remove,
|
|
12
|
+
removeMembers: () => removeMembers,
|
|
13
|
+
setDefault: () => setDefault,
|
|
14
|
+
update: () => update
|
|
15
|
+
});
|
|
16
|
+
const make = /* @__PURE__ */ forGroup(UnsubscribeGroupsGroup);
|
|
17
|
+
const list = /* @__PURE__ */ make("unsubscribeList");
|
|
18
|
+
const create = /* @__PURE__ */ make("unsubscribeCreate");
|
|
19
|
+
const update = /* @__PURE__ */ make("unsubscribeUpdate");
|
|
20
|
+
const remove = /* @__PURE__ */ make("unsubscribeRemove");
|
|
21
|
+
const setDefault = /* @__PURE__ */ make("unsubscribeSetDefault");
|
|
22
|
+
const listMembers = /* @__PURE__ */ make("unsubscribeListMembers");
|
|
23
|
+
const addMembers = /* @__PURE__ */ make("unsubscribeAddMembers");
|
|
24
|
+
const removeMembers = /* @__PURE__ */ make("unsubscribeRemoveMembers");
|
|
25
|
+
const checkSubscription = /* @__PURE__ */ make("unsubscribeCheckSubscription");
|
|
26
|
+
//#endregion
|
|
27
|
+
export { addMembers, checkSubscription, create, list, listMembers, remove, removeMembers, setDefault, unsubscribe_groups_exports, update };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=unsubscribe-groups.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.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.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" | "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")[];
|
|
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;
|
|
@@ -28,7 +28,7 @@ export declare const list: ((input?: {
|
|
|
28
28
|
};
|
|
29
29
|
}[];
|
|
30
30
|
readonly nextCursor: string | null;
|
|
31
|
-
}, import("./
|
|
31
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
32
32
|
readonly pages: (input?: {
|
|
33
33
|
readonly limit?: string | null | undefined;
|
|
34
34
|
readonly cursor?: string | null | undefined;
|
|
@@ -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.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.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" | "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")[];
|
|
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;
|
|
@@ -58,7 +58,7 @@ export declare const list: ((input?: {
|
|
|
58
58
|
};
|
|
59
59
|
}[];
|
|
60
60
|
readonly nextCursor: string | null;
|
|
61
|
-
}, import("./
|
|
61
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
62
62
|
readonly items: (input?: {
|
|
63
63
|
readonly limit?: string | null | undefined;
|
|
64
64
|
readonly cursor?: string | null | undefined;
|
|
@@ -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.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.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" | "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")[];
|
|
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;
|
|
@@ -85,12 +85,12 @@ export declare const list: ((input?: {
|
|
|
85
85
|
readonly exhausted: number;
|
|
86
86
|
readonly cancelled: number;
|
|
87
87
|
};
|
|
88
|
-
}, import("./
|
|
88
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
89
89
|
};
|
|
90
90
|
export declare const create: (input: {
|
|
91
91
|
readonly name: string;
|
|
92
92
|
readonly url: string;
|
|
93
|
-
readonly eventTypes: readonly ("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.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" | "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")[];
|
|
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.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.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" | "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")[];
|
|
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;
|
|
@@ -115,14 +115,14 @@ export declare const create: (input: {
|
|
|
115
115
|
readonly updatedAt: string;
|
|
116
116
|
};
|
|
117
117
|
readonly secret: import("effect/Redacted").Redacted<string>;
|
|
118
|
-
}, import("./
|
|
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
119
|
export declare const get: (input: {
|
|
120
120
|
readonly id: string;
|
|
121
121
|
}) => import("effect/Effect").Effect<{
|
|
122
122
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
123
123
|
readonly name: string;
|
|
124
124
|
readonly url: string;
|
|
125
|
-
readonly eventTypes: readonly ("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.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")[];
|
|
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")[];
|
|
126
126
|
readonly channels: readonly "email"[] | null;
|
|
127
127
|
readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
|
|
128
128
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -132,17 +132,17 @@ export declare const get: (input: {
|
|
|
132
132
|
readonly lastSucceededAt: string | null;
|
|
133
133
|
readonly createdAt: string;
|
|
134
134
|
readonly updatedAt: string;
|
|
135
|
-
}, import("./
|
|
135
|
+
}, 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>;
|
|
136
136
|
export declare const remove: (input: {
|
|
137
137
|
readonly id: string;
|
|
138
138
|
}) => import("effect/Effect").Effect<{
|
|
139
139
|
readonly success: boolean;
|
|
140
|
-
}, import("./
|
|
140
|
+
}, import("./errors").BillingProviderError | 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>;
|
|
141
141
|
export declare const update: (input: {
|
|
142
142
|
readonly id: string;
|
|
143
143
|
readonly name?: string | null | undefined;
|
|
144
144
|
readonly url?: string | null | undefined;
|
|
145
|
-
readonly eventTypes?: readonly ("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.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;
|
|
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;
|
|
146
146
|
readonly channels?: readonly "email"[] | null | undefined;
|
|
147
147
|
readonly mailboxIds?: readonly string[] | null | undefined;
|
|
148
148
|
readonly namespaceId?: string | null | undefined;
|
|
@@ -154,7 +154,7 @@ export declare const update: (input: {
|
|
|
154
154
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
155
155
|
readonly name: string;
|
|
156
156
|
readonly url: string;
|
|
157
|
-
readonly eventTypes: readonly ("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.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")[];
|
|
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")[];
|
|
158
158
|
readonly channels: readonly "email"[] | null;
|
|
159
159
|
readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
|
|
160
160
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -164,7 +164,7 @@ export declare const update: (input: {
|
|
|
164
164
|
readonly lastSucceededAt: string | null;
|
|
165
165
|
readonly createdAt: string;
|
|
166
166
|
readonly updatedAt: string;
|
|
167
|
-
}, import("./
|
|
167
|
+
}, 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>;
|
|
168
168
|
export declare const test: (input: {
|
|
169
169
|
readonly id: string;
|
|
170
170
|
readonly data?: {
|
|
@@ -198,7 +198,7 @@ export declare const test: (input: {
|
|
|
198
198
|
readonly accepted: true;
|
|
199
199
|
readonly eventId: string & import("effect/Brand").Brand<"WebhookEventId">;
|
|
200
200
|
readonly deliveryId: string & import("effect/Brand").Brand<"WebhookDeliveryId">;
|
|
201
|
-
}, import("./
|
|
201
|
+
}, 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>;
|
|
202
202
|
export declare const getLogs: ((input: {
|
|
203
203
|
readonly id: string;
|
|
204
204
|
readonly limit?: string | null | undefined;
|
|
@@ -234,7 +234,7 @@ export declare const getLogs: ((input: {
|
|
|
234
234
|
}[];
|
|
235
235
|
}[];
|
|
236
236
|
readonly nextCursor: string | null;
|
|
237
|
-
}, import("./
|
|
237
|
+
}, 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>) & {
|
|
238
238
|
readonly pages: (input: {
|
|
239
239
|
readonly id: string;
|
|
240
240
|
readonly limit?: string | null | undefined;
|
|
@@ -270,7 +270,7 @@ export declare const getLogs: ((input: {
|
|
|
270
270
|
}[];
|
|
271
271
|
}[];
|
|
272
272
|
readonly nextCursor: string | null;
|
|
273
|
-
}, import("./
|
|
273
|
+
}, 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>;
|
|
274
274
|
readonly items: (input: {
|
|
275
275
|
readonly id: string;
|
|
276
276
|
readonly limit?: string | null | undefined;
|
|
@@ -303,7 +303,7 @@ export declare const getLogs: ((input: {
|
|
|
303
303
|
readonly errorMessage: string | null;
|
|
304
304
|
readonly createdAt: string;
|
|
305
305
|
}[];
|
|
306
|
-
}, import("./
|
|
306
|
+
}, 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>;
|
|
307
307
|
};
|
|
308
308
|
export declare const getStats: (input: {
|
|
309
309
|
readonly id: string;
|
|
@@ -322,7 +322,7 @@ export declare const getStats: (input: {
|
|
|
322
322
|
readonly exhausted: number;
|
|
323
323
|
readonly cancelled: number;
|
|
324
324
|
}[];
|
|
325
|
-
}, import("./
|
|
325
|
+
}, 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>;
|
|
326
326
|
export declare const retryDelivery: (input: {
|
|
327
327
|
readonly id: string;
|
|
328
328
|
readonly deliveryId: string;
|
|
@@ -331,9 +331,9 @@ export declare const retryDelivery: (input: {
|
|
|
331
331
|
readonly deliveryId: string & import("effect/Brand").Brand<"WebhookDeliveryId">;
|
|
332
332
|
readonly attemptId: string & import("effect/Brand").Brand<"WebhookAttemptId">;
|
|
333
333
|
readonly outcome: "failed" | "succeeded";
|
|
334
|
-
}, import("./
|
|
334
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
335
335
|
export declare const regenerateSecret: (input: {
|
|
336
336
|
readonly id: string;
|
|
337
337
|
}) => import("effect/Effect").Effect<{
|
|
338
338
|
readonly secret: import("effect/Redacted").Redacted<string>;
|
|
339
|
-
}, import("./
|
|
339
|
+
}, 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>;
|
package/dist/effect/webhooks.js
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { CreateWebhookPayload, TestWebhookPayload, UpdateWebhookPayload } from "./generated/shared.js";
|
|
3
|
+
import { forGroup } from "./internal/operation.js";
|
|
4
|
+
import { WebhooksGroup } from "./generated/webhooks.js";
|
|
5
|
+
//#region src/effect/webhooks.ts
|
|
6
|
+
var webhooks_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
CreatePayload: () => CreateWebhookPayload,
|
|
8
|
+
TestPayload: () => TestWebhookPayload,
|
|
9
|
+
UpdatePayload: () => UpdateWebhookPayload,
|
|
10
|
+
create: () => create,
|
|
11
|
+
get: () => get,
|
|
12
|
+
getLogs: () => getLogs,
|
|
13
|
+
getStats: () => getStats,
|
|
14
|
+
list: () => list,
|
|
15
|
+
regenerateSecret: () => regenerateSecret,
|
|
16
|
+
remove: () => remove,
|
|
17
|
+
retryDelivery: () => retryDelivery,
|
|
18
|
+
test: () => test,
|
|
19
|
+
update: () => update
|
|
20
|
+
});
|
|
21
|
+
const make = /* @__PURE__ */ forGroup(WebhooksGroup);
|
|
22
|
+
const list = /* @__PURE__ */ make("webhooksList");
|
|
23
|
+
const create = /* @__PURE__ */ make("webhooksCreate");
|
|
24
|
+
const get = /* @__PURE__ */ make("webhooksGet");
|
|
25
|
+
const remove = /* @__PURE__ */ make("webhooksRemove");
|
|
26
|
+
const update = /* @__PURE__ */ make("webhooksUpdate");
|
|
27
|
+
const test = /* @__PURE__ */ make("webhooksTest");
|
|
28
|
+
const getLogs = /* @__PURE__ */ make("webhooksGetLogs");
|
|
29
|
+
const getStats = /* @__PURE__ */ make("webhooksGetStats");
|
|
30
|
+
const retryDelivery = /* @__PURE__ */ make("webhooksRetryDelivery");
|
|
31
|
+
const regenerateSecret = /* @__PURE__ */ make("webhooksRegenerateSecret");
|
|
32
|
+
//#endregion
|
|
33
|
+
export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, create, get, getLogs, getStats, list, regenerateSecret, remove, retryDelivery, test, update, webhooks_exports };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=webhooks.js.map
|
package/dist/effect/whoami.d.ts
CHANGED
|
@@ -5,14 +5,6 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
5
5
|
readonly name: string;
|
|
6
6
|
};
|
|
7
7
|
readonly credential: {
|
|
8
|
-
readonly type: "user";
|
|
9
|
-
readonly user: {
|
|
10
|
-
readonly id: string;
|
|
11
|
-
readonly name: string;
|
|
12
|
-
readonly email: string;
|
|
13
|
-
};
|
|
14
|
-
readonly role: "admin" | "member" | "owner";
|
|
15
|
-
} | {
|
|
16
8
|
readonly type: "apiKey";
|
|
17
9
|
readonly id: string;
|
|
18
10
|
readonly name: string;
|
|
@@ -42,5 +34,13 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
42
34
|
} | null;
|
|
43
35
|
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
44
36
|
};
|
|
37
|
+
} | {
|
|
38
|
+
readonly type: "user";
|
|
39
|
+
readonly user: {
|
|
40
|
+
readonly id: string;
|
|
41
|
+
readonly name: string;
|
|
42
|
+
readonly email: string;
|
|
43
|
+
};
|
|
44
|
+
readonly role: "admin" | "member" | "owner";
|
|
45
45
|
};
|
|
46
|
-
}, import("./
|
|
46
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
package/dist/effect/whoami.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { WhoamiGroup } from "./generated/whoami.js";
|
|
4
|
+
//#region src/effect/whoami.ts
|
|
5
|
+
var whoami_exports = /* @__PURE__ */ __exportAll({ get: () => get });
|
|
6
|
+
const get = /* @__PURE__ */ (/* @__PURE__ */ forGroup(WhoamiGroup))("whoamiGet");
|
|
7
|
+
//#endregion
|
|
8
|
+
export { get, whoami_exports };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=whoami.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { MediaUploadError } from "./inline-attachments.js";
|
|
2
|
+
import { MailboxEventStream, MailboxEventStreamError } from "./mailbox-events.js";
|
|
3
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError } from "./promises/errors.gen.js";
|
|
4
|
+
import { createClient } from "./promises/index.js";
|
|
4
5
|
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
//#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
//#region src/inline-attachments.ts
|
|
2
|
+
/**
|
|
3
|
+
* Shared, pure planning for email sends whose inline attachments exceed the API's inline cap.
|
|
4
|
+
*
|
|
5
|
+
* The API accepts a bounded number of decoded bytes as Base64 `content` per request (larger files
|
|
6
|
+
* travel as owned media and are referenced by `mediaId`). Both clients call these helpers to decide
|
|
7
|
+
* which inline attachments to upload through media before the single send request, so the choice
|
|
8
|
+
* cannot drift between them. No Effect, no I/O.
|
|
9
|
+
*/
|
|
10
|
+
/** Decoded bytes of inline attachment `content` one send request may carry. */
|
|
11
|
+
const INLINE_ATTACHMENT_MAX_BYTES = 4194304;
|
|
6
12
|
/** A failed upload of an attachment's bytes to its presigned media URL. */
|
|
7
13
|
var MediaUploadError = class extends Error {
|
|
8
14
|
_tag = "MediaUploadError";
|
|
@@ -116,6 +122,6 @@ const withUploadedAttachments = (payload, uploaded) => {
|
|
|
116
122
|
};
|
|
117
123
|
};
|
|
118
124
|
//#endregion
|
|
119
|
-
export {
|
|
125
|
+
export { INLINE_ATTACHMENT_MAX_BYTES, MediaUploadError, decodedBase64Bytes, mediaCreateBody, planInlineUploads, uploadContentType, withUploadedAttachments };
|
|
120
126
|
|
|
121
|
-
//# sourceMappingURL=inline-attachments
|
|
127
|
+
//# sourceMappingURL=inline-attachments.js.map
|