samva 0.22.0 → 0.23.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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +10 -3
- package/dist/client/sdk.gen.js +21 -2
- package/dist/client/types.gen.d.ts +69 -12
- package/dist/effect/analytics.d.ts +6 -41
- package/dist/effect/api-keys.d.ts +8 -236
- package/dist/effect/attachments.d.ts +4 -43
- package/dist/effect/brands.d.ts +6 -155
- package/dist/effect/campaigns.d.ts +12 -868
- package/dist/effect/contact-groups.d.ts +10 -135
- package/dist/effect/contacts.d.ts +21 -727
- package/dist/effect/conversations.d.ts +13 -681
- package/dist/effect/custom-fields.d.ts +4 -44
- package/dist/effect/email.d.ts +61 -1299
- package/dist/effect/events.d.ts +2 -32
- package/dist/effect/extension-installations.d.ts +9 -213
- package/dist/effect/extensions.d.ts +5 -95
- package/dist/effect/feedback.d.ts +1 -4
- package/dist/effect/generated/analytics.js +8 -8
- package/dist/effect/generated/api-keys.js +4 -4
- package/dist/effect/generated/attachments.js +3 -3
- package/dist/effect/generated/contact-groups.js +11 -11
- package/dist/effect/generated/contacts.js +16 -16
- package/dist/effect/generated/conversations.js +6 -6
- package/dist/effect/generated/custom-fields.js +5 -5
- package/dist/effect/generated/email.js +32 -32
- package/dist/effect/generated/events.js +4 -4
- package/dist/effect/generated/extension-installations.js +4 -4
- package/dist/effect/generated/extensions.js +1 -1
- package/dist/effect/generated/journeys.js +12 -12
- package/dist/effect/generated/mailboxes.js +10 -10
- package/dist/effect/generated/messages.js +4 -4
- package/dist/effect/generated/organizations.d.ts +116 -9
- package/dist/effect/generated/organizations.js +31 -6
- package/dist/effect/generated/shared.js +1 -1
- package/dist/effect/generated/templates.d.ts +37 -72
- package/dist/effect/generated/templates.js +121 -122
- package/dist/effect/generated/unsubscribe-groups.js +7 -7
- package/dist/effect/generated/webhooks.js +17 -17
- package/dist/effect/generated-metadata.d.ts +5 -0
- package/dist/effect/generated-metadata.js +1 -0
- package/dist/effect/internal/client.d.ts +5 -1
- package/dist/effect/internal/operation.d.ts +3 -3
- package/dist/effect/internal/send.d.ts +3 -3
- package/dist/effect/journeys.d.ts +167 -1836
- package/dist/effect/mailboxes.d.ts +60 -2362
- package/dist/effect/media.d.ts +5 -66
- package/dist/effect/messages.d.ts +9 -264
- package/dist/effect/namespaces.d.ts +8 -55
- package/dist/effect/operations.d.ts +3 -84
- package/dist/effect/organizations.d.ts +9 -161
- package/dist/effect/organizations.js +3 -1
- package/dist/effect/scheduled-messages.d.ts +5 -401
- package/dist/effect/subscriptions.d.ts +1 -4
- package/dist/effect/templates.d.ts +34 -1506
- package/dist/effect/unsubscribe-groups.d.ts +9 -70
- package/dist/effect/webhooks.d.ts +11 -141
- package/dist/effect/whoami.d.ts +1 -46
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +4 -0
- package/dist/service-map.js +1 -0
- package/package.json +7 -7
|
@@ -1,93 +1,13 @@
|
|
|
1
1
|
export declare const create: (input: {
|
|
2
2
|
readonly name: string;
|
|
3
|
-
}) => import("
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
readonly slug: string;
|
|
8
|
-
readonly defaultRegion: string | null;
|
|
9
|
-
readonly timezone: string;
|
|
10
|
-
readonly plan: string;
|
|
11
|
-
readonly isActive: boolean;
|
|
12
|
-
readonly createdAt: string;
|
|
13
|
-
readonly updatedAt: string;
|
|
14
|
-
readonly metadata: {
|
|
15
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
16
|
-
} | null;
|
|
17
|
-
readonly replyToDefault: readonly string[] | null;
|
|
18
|
-
readonly emailFooterEnabledDefault: boolean | null;
|
|
19
|
-
readonly messagesUsed: number;
|
|
20
|
-
readonly messagesUsedThisMonth: number;
|
|
21
|
-
readonly emailUsed: number;
|
|
22
|
-
readonly emailUsedThisMonth: number;
|
|
23
|
-
readonly contactsUsed: number;
|
|
24
|
-
readonly conversationsUsed: number;
|
|
25
|
-
readonly teamMembersUsed: number;
|
|
26
|
-
readonly messagesResetAt: string | null;
|
|
27
|
-
}, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
28
|
-
export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
29
|
-
readonly id: string;
|
|
30
|
-
readonly billingAccountId: string;
|
|
31
|
-
readonly name: string;
|
|
32
|
-
readonly slug: string;
|
|
33
|
-
readonly defaultRegion: string | null;
|
|
34
|
-
readonly timezone: string;
|
|
35
|
-
readonly plan: string;
|
|
36
|
-
readonly isActive: boolean;
|
|
37
|
-
readonly createdAt: string;
|
|
38
|
-
readonly updatedAt: string;
|
|
39
|
-
readonly metadata: {
|
|
40
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
41
|
-
} | null;
|
|
42
|
-
readonly replyToDefault: readonly string[] | null;
|
|
43
|
-
readonly emailFooterEnabledDefault: boolean | null;
|
|
44
|
-
readonly messagesUsed: number;
|
|
45
|
-
readonly messagesUsedThisMonth: number;
|
|
46
|
-
readonly emailUsed: number;
|
|
47
|
-
readonly emailUsedThisMonth: number;
|
|
48
|
-
readonly contactsUsed: number;
|
|
49
|
-
readonly conversationsUsed: number;
|
|
50
|
-
readonly teamMembersUsed: number;
|
|
51
|
-
readonly messagesResetAt: string | null;
|
|
52
|
-
}, 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>;
|
|
53
|
-
export declare const getProfile: (_?: never) => import("effect/Effect").Effect<{
|
|
54
|
-
readonly id: string;
|
|
55
|
-
readonly name: string;
|
|
56
|
-
readonly nickname: string;
|
|
57
|
-
}, 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>;
|
|
58
|
-
export declare const getTrustTier: (_?: never) => import("effect/Effect").Effect<{
|
|
59
|
-
readonly tier: "established" | "probation" | "screened";
|
|
60
|
-
readonly changedAt: string;
|
|
61
|
-
readonly sendingLimits: {
|
|
62
|
-
readonly sendsPerSecond: number;
|
|
63
|
-
readonly dailySends: number;
|
|
64
|
-
readonly probation: {
|
|
65
|
-
readonly hourlyRecipients: number;
|
|
66
|
-
readonly dailyRecipients: number;
|
|
67
|
-
readonly domainShare: number;
|
|
68
|
-
readonly domainShareFloor: number;
|
|
69
|
-
} | null;
|
|
70
|
-
};
|
|
71
|
-
readonly graduation: {
|
|
72
|
-
readonly firstSentAt: string | null;
|
|
73
|
-
readonly elapsedDays: number;
|
|
74
|
-
readonly sent: number;
|
|
75
|
-
readonly delivered: number;
|
|
76
|
-
readonly hardBounces: number;
|
|
77
|
-
readonly hardBounceRate: number | null;
|
|
78
|
-
readonly complaints: number;
|
|
79
|
-
readonly holds: number;
|
|
80
|
-
readonly requirements: {
|
|
81
|
-
readonly minimumDays: number;
|
|
82
|
-
readonly delivered: number;
|
|
83
|
-
readonly maximumHardBounceRate: number;
|
|
84
|
-
};
|
|
85
|
-
readonly blockers: readonly ("bounce_rate" | "complaints" | "held" | "too_few_delivered" | "too_recent")[];
|
|
86
|
-
} | null;
|
|
87
|
-
}, 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>;
|
|
3
|
+
}) => import("./internal/operation").OperationResult<"organizationsCreate">;
|
|
4
|
+
export declare const get: (_?: never) => import("./internal/operation").OperationResult<"organizationsGet">;
|
|
5
|
+
export declare const getProfile: (_?: never) => import("./internal/operation").OperationResult<"organizationsGetProfile">;
|
|
6
|
+
export declare const getTrustTier: (_?: never) => import("./internal/operation").OperationResult<"organizationsGetTrustTier">;
|
|
88
7
|
export declare const update: (input?: {
|
|
89
8
|
readonly name?: string | null | undefined;
|
|
90
9
|
readonly slug?: string | null | undefined;
|
|
10
|
+
readonly avatarUrl?: string | null | undefined;
|
|
91
11
|
readonly defaultRegion?: string | null | undefined;
|
|
92
12
|
readonly timezone?: string | null | undefined;
|
|
93
13
|
readonly isActive?: boolean | null | undefined;
|
|
@@ -120,87 +40,15 @@ export declare const update: (input?: {
|
|
|
120
40
|
} | null | undefined;
|
|
121
41
|
readonly replyToDefault?: readonly string[] | null | undefined;
|
|
122
42
|
readonly emailFooterEnabledDefault?: boolean | null | undefined;
|
|
123
|
-
} | undefined) => import("
|
|
124
|
-
|
|
125
|
-
readonly billingAccountId: string;
|
|
126
|
-
readonly name: string;
|
|
127
|
-
readonly slug: string;
|
|
128
|
-
readonly defaultRegion: string | null;
|
|
129
|
-
readonly timezone: string;
|
|
130
|
-
readonly plan: string;
|
|
131
|
-
readonly isActive: boolean;
|
|
132
|
-
readonly createdAt: string;
|
|
133
|
-
readonly updatedAt: string;
|
|
134
|
-
readonly metadata: {
|
|
135
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
136
|
-
} | null;
|
|
137
|
-
readonly replyToDefault: readonly string[] | null;
|
|
138
|
-
readonly emailFooterEnabledDefault: boolean | null;
|
|
139
|
-
readonly messagesUsed: number;
|
|
140
|
-
readonly messagesUsedThisMonth: number;
|
|
141
|
-
readonly emailUsed: number;
|
|
142
|
-
readonly emailUsedThisMonth: number;
|
|
143
|
-
readonly contactsUsed: number;
|
|
144
|
-
readonly conversationsUsed: number;
|
|
145
|
-
readonly teamMembersUsed: number;
|
|
146
|
-
readonly messagesResetAt: string | null;
|
|
147
|
-
}, 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>;
|
|
43
|
+
} | undefined) => import("./internal/operation").OperationResult<"organizationsUpdate">;
|
|
44
|
+
export declare const createAvatarUpload: (_?: never) => import("./internal/operation").OperationResult<"organizationsCreateAvatarUpload">;
|
|
148
45
|
export declare const getUsage: (input?: {
|
|
149
46
|
readonly after?: string | null | undefined;
|
|
150
47
|
readonly before?: string | null | undefined;
|
|
151
|
-
} | undefined) => import("
|
|
152
|
-
readonly usage: {
|
|
153
|
-
readonly periodStart: string;
|
|
154
|
-
readonly periodEnd: string;
|
|
155
|
-
readonly emailCount: number;
|
|
156
|
-
readonly totalMessages: number;
|
|
157
|
-
};
|
|
158
|
-
readonly billing: {
|
|
159
|
-
readonly currency: string;
|
|
160
|
-
readonly planName: string | null;
|
|
161
|
-
readonly includedEmails: number | null;
|
|
162
|
-
readonly usedEmails: number | null;
|
|
163
|
-
readonly overageEmails: number | null;
|
|
164
|
-
readonly overageCost: number | null;
|
|
165
|
-
};
|
|
166
|
-
}, 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>;
|
|
48
|
+
} | undefined) => import("./internal/operation").OperationResult<"organizationsGetUsage">;
|
|
167
49
|
declare const deleteOrganization: (input: {
|
|
168
50
|
readonly confirmationName: string;
|
|
169
51
|
} & {
|
|
170
52
|
readonly idempotencyKey: string;
|
|
171
|
-
}) => import("
|
|
172
|
-
readonly operation: {
|
|
173
|
-
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
174
|
-
readonly organizationId: string;
|
|
175
|
-
readonly kind: "email-domain-provisioning" | "organization-deletion";
|
|
176
|
-
readonly subject: {
|
|
177
|
-
readonly type: string;
|
|
178
|
-
readonly id: string;
|
|
179
|
-
};
|
|
180
|
-
readonly actor: {
|
|
181
|
-
readonly type: "api-key" | "system" | "user";
|
|
182
|
-
readonly id: string;
|
|
183
|
-
};
|
|
184
|
-
readonly status: "failed" | "pending" | "running" | "succeeded";
|
|
185
|
-
readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
|
|
186
|
-
readonly error: {
|
|
187
|
-
readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
|
|
188
|
-
readonly message: string;
|
|
189
|
-
} | null;
|
|
190
|
-
readonly createdAt: string;
|
|
191
|
-
readonly updatedAt: string;
|
|
192
|
-
readonly startedAt: string | null;
|
|
193
|
-
readonly completedAt: string | null;
|
|
194
|
-
};
|
|
195
|
-
readonly links: {
|
|
196
|
-
readonly self: string;
|
|
197
|
-
readonly resource: {
|
|
198
|
-
readonly resource: {
|
|
199
|
-
readonly type: string;
|
|
200
|
-
readonly id: string;
|
|
201
|
-
};
|
|
202
|
-
readonly href: string;
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
}, 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>;
|
|
53
|
+
}) => import("./internal/operation").OperationResult<"organizationsDelete">;
|
|
206
54
|
export { deleteOrganization as delete };
|
|
@@ -4,6 +4,7 @@ import { OrganizationsGroup } from "./generated/organizations.js";
|
|
|
4
4
|
//#region src/effect/organizations.ts
|
|
5
5
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
create: () => create,
|
|
7
|
+
createAvatarUpload: () => createAvatarUpload,
|
|
7
8
|
delete: () => deleteOrganization,
|
|
8
9
|
get: () => get,
|
|
9
10
|
getProfile: () => getProfile,
|
|
@@ -17,9 +18,10 @@ const get = /* @__PURE__ */ make("organizationsGet");
|
|
|
17
18
|
const getProfile = /* @__PURE__ */ make("organizationsGetProfile");
|
|
18
19
|
const getTrustTier = /* @__PURE__ */ make("organizationsGetTrustTier");
|
|
19
20
|
const update = /* @__PURE__ */ make("organizationsUpdate");
|
|
21
|
+
const createAvatarUpload = /* @__PURE__ */ make("organizationsCreateAvatarUpload");
|
|
20
22
|
const getUsage = /* @__PURE__ */ make("organizationsGetUsage");
|
|
21
23
|
const deleteOrganization = /* @__PURE__ */ make("organizationsDelete");
|
|
22
24
|
//#endregion
|
|
23
|
-
export { create, deleteOrganization as delete, get, getProfile, getTrustTier, getUsage, organizations_exports, update };
|
|
25
|
+
export { create, createAvatarUpload, deleteOrganization as delete, get, getProfile, getTrustTier, getUsage, organizations_exports, update };
|
|
24
26
|
|
|
25
27
|
//# sourceMappingURL=organizations.js.map
|
|
@@ -2,88 +2,7 @@ export declare const list: ((input?: {
|
|
|
2
2
|
readonly limit?: string | null | undefined;
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
4
|
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | null | undefined;
|
|
5
|
-
} | undefined) => import("
|
|
6
|
-
readonly items: readonly {
|
|
7
|
-
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
8
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
9
|
-
readonly scheduledFor: string;
|
|
10
|
-
readonly timezone: string;
|
|
11
|
-
readonly send: {
|
|
12
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
13
|
-
readonly metadata?: {
|
|
14
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
15
|
-
} | null;
|
|
16
|
-
readonly channel: "email";
|
|
17
|
-
readonly to: readonly ({
|
|
18
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
19
|
-
} | {
|
|
20
|
-
readonly email: string;
|
|
21
|
-
readonly name?: string | null;
|
|
22
|
-
readonly displayName?: string | null;
|
|
23
|
-
})[];
|
|
24
|
-
readonly cc?: readonly ({
|
|
25
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
26
|
-
} | {
|
|
27
|
-
readonly email: string;
|
|
28
|
-
readonly name?: string | null;
|
|
29
|
-
readonly displayName?: string | null;
|
|
30
|
-
})[] | null;
|
|
31
|
-
readonly bcc?: readonly ({
|
|
32
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
33
|
-
} | {
|
|
34
|
-
readonly email: string;
|
|
35
|
-
readonly name?: string | null;
|
|
36
|
-
readonly displayName?: string | null;
|
|
37
|
-
})[] | null;
|
|
38
|
-
readonly from?: {
|
|
39
|
-
readonly email: string;
|
|
40
|
-
readonly name?: string | null;
|
|
41
|
-
} | null;
|
|
42
|
-
readonly email: {
|
|
43
|
-
readonly subject?: string | null;
|
|
44
|
-
readonly html?: string | null;
|
|
45
|
-
readonly text?: string | null;
|
|
46
|
-
readonly attachments?: readonly {
|
|
47
|
-
readonly filename: string;
|
|
48
|
-
readonly content?: string | null;
|
|
49
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
50
|
-
readonly contentType: string;
|
|
51
|
-
readonly size: number;
|
|
52
|
-
}[] | null;
|
|
53
|
-
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
54
|
-
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
55
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
56
|
-
readonly templateSlug?: string | null;
|
|
57
|
-
readonly templateData?: {
|
|
58
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
59
|
-
} | null;
|
|
60
|
-
readonly locale?: string;
|
|
61
|
-
readonly timeZone?: string;
|
|
62
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
63
|
-
readonly replyTo?: readonly string[] | null;
|
|
64
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
65
|
-
readonly tracking?: {
|
|
66
|
-
readonly opens?: boolean;
|
|
67
|
-
readonly clicks?: boolean;
|
|
68
|
-
};
|
|
69
|
-
readonly footer?: {
|
|
70
|
-
readonly enabled?: boolean | null;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
75
|
-
readonly idempotencyKey: string | null;
|
|
76
|
-
readonly referenceId: string | null;
|
|
77
|
-
readonly failureReason: string | null;
|
|
78
|
-
readonly attempts: number;
|
|
79
|
-
readonly createdBy: string | null;
|
|
80
|
-
readonly actorEmail: string;
|
|
81
|
-
readonly memberRole: string;
|
|
82
|
-
readonly createdAt: string;
|
|
83
|
-
readonly updatedAt: string;
|
|
84
|
-
}[];
|
|
85
|
-
readonly nextCursor: string | null;
|
|
86
|
-
}, 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>) & {
|
|
5
|
+
} | undefined) => import("./internal/operation").OperationResult<"scheduledMessagesList">) & {
|
|
87
6
|
readonly pages: (input?: {
|
|
88
7
|
readonly limit?: string | null | undefined;
|
|
89
8
|
readonly cursor?: string | null | undefined;
|
|
@@ -370,250 +289,13 @@ export declare const create: (input: {
|
|
|
370
289
|
readonly timezone?: string | null | undefined;
|
|
371
290
|
readonly idempotencyKey?: string | null | undefined;
|
|
372
291
|
readonly referenceId?: string | null | undefined;
|
|
373
|
-
}) => import("
|
|
374
|
-
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
375
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
376
|
-
readonly scheduledFor: string;
|
|
377
|
-
readonly timezone: string;
|
|
378
|
-
readonly send: {
|
|
379
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
380
|
-
readonly metadata?: {
|
|
381
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
382
|
-
} | null;
|
|
383
|
-
readonly channel: "email";
|
|
384
|
-
readonly to: readonly ({
|
|
385
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
386
|
-
} | {
|
|
387
|
-
readonly email: string;
|
|
388
|
-
readonly name?: string | null;
|
|
389
|
-
readonly displayName?: string | null;
|
|
390
|
-
})[];
|
|
391
|
-
readonly cc?: readonly ({
|
|
392
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
393
|
-
} | {
|
|
394
|
-
readonly email: string;
|
|
395
|
-
readonly name?: string | null;
|
|
396
|
-
readonly displayName?: string | null;
|
|
397
|
-
})[] | null;
|
|
398
|
-
readonly bcc?: readonly ({
|
|
399
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
400
|
-
} | {
|
|
401
|
-
readonly email: string;
|
|
402
|
-
readonly name?: string | null;
|
|
403
|
-
readonly displayName?: string | null;
|
|
404
|
-
})[] | null;
|
|
405
|
-
readonly from?: {
|
|
406
|
-
readonly email: string;
|
|
407
|
-
readonly name?: string | null;
|
|
408
|
-
} | null;
|
|
409
|
-
readonly email: {
|
|
410
|
-
readonly subject?: string | null;
|
|
411
|
-
readonly html?: string | null;
|
|
412
|
-
readonly text?: string | null;
|
|
413
|
-
readonly attachments?: readonly {
|
|
414
|
-
readonly filename: string;
|
|
415
|
-
readonly content?: string | null;
|
|
416
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
417
|
-
readonly contentType: string;
|
|
418
|
-
readonly size: number;
|
|
419
|
-
}[] | null;
|
|
420
|
-
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
421
|
-
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
422
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
423
|
-
readonly templateSlug?: string | null;
|
|
424
|
-
readonly templateData?: {
|
|
425
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
426
|
-
} | null;
|
|
427
|
-
readonly locale?: string;
|
|
428
|
-
readonly timeZone?: string;
|
|
429
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
430
|
-
readonly replyTo?: readonly string[] | null;
|
|
431
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
432
|
-
readonly tracking?: {
|
|
433
|
-
readonly opens?: boolean;
|
|
434
|
-
readonly clicks?: boolean;
|
|
435
|
-
};
|
|
436
|
-
readonly footer?: {
|
|
437
|
-
readonly enabled?: boolean | null;
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
442
|
-
readonly idempotencyKey: string | null;
|
|
443
|
-
readonly referenceId: string | null;
|
|
444
|
-
readonly failureReason: string | null;
|
|
445
|
-
readonly attempts: number;
|
|
446
|
-
readonly createdBy: string | null;
|
|
447
|
-
readonly actorEmail: string;
|
|
448
|
-
readonly memberRole: string;
|
|
449
|
-
readonly createdAt: string;
|
|
450
|
-
readonly updatedAt: string;
|
|
451
|
-
}, import("./errors").ConflictError | import("./errors").ExternalServiceError | import("./errors").FlagDisabledError | 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>;
|
|
292
|
+
}) => import("./internal/operation").OperationResult<"scheduledMessagesCreate">;
|
|
452
293
|
export declare const get: (input: {
|
|
453
294
|
readonly id: string;
|
|
454
|
-
}) => import("
|
|
455
|
-
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
456
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
457
|
-
readonly scheduledFor: string;
|
|
458
|
-
readonly timezone: string;
|
|
459
|
-
readonly send: {
|
|
460
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
461
|
-
readonly metadata?: {
|
|
462
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
463
|
-
} | null;
|
|
464
|
-
readonly channel: "email";
|
|
465
|
-
readonly to: readonly ({
|
|
466
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
467
|
-
} | {
|
|
468
|
-
readonly email: string;
|
|
469
|
-
readonly name?: string | null;
|
|
470
|
-
readonly displayName?: string | null;
|
|
471
|
-
})[];
|
|
472
|
-
readonly cc?: readonly ({
|
|
473
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
474
|
-
} | {
|
|
475
|
-
readonly email: string;
|
|
476
|
-
readonly name?: string | null;
|
|
477
|
-
readonly displayName?: string | null;
|
|
478
|
-
})[] | null;
|
|
479
|
-
readonly bcc?: readonly ({
|
|
480
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
481
|
-
} | {
|
|
482
|
-
readonly email: string;
|
|
483
|
-
readonly name?: string | null;
|
|
484
|
-
readonly displayName?: string | null;
|
|
485
|
-
})[] | null;
|
|
486
|
-
readonly from?: {
|
|
487
|
-
readonly email: string;
|
|
488
|
-
readonly name?: string | null;
|
|
489
|
-
} | null;
|
|
490
|
-
readonly email: {
|
|
491
|
-
readonly subject?: string | null;
|
|
492
|
-
readonly html?: string | null;
|
|
493
|
-
readonly text?: string | null;
|
|
494
|
-
readonly attachments?: readonly {
|
|
495
|
-
readonly filename: string;
|
|
496
|
-
readonly content?: string | null;
|
|
497
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
498
|
-
readonly contentType: string;
|
|
499
|
-
readonly size: number;
|
|
500
|
-
}[] | null;
|
|
501
|
-
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
502
|
-
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
503
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
504
|
-
readonly templateSlug?: string | null;
|
|
505
|
-
readonly templateData?: {
|
|
506
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
507
|
-
} | null;
|
|
508
|
-
readonly locale?: string;
|
|
509
|
-
readonly timeZone?: string;
|
|
510
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
511
|
-
readonly replyTo?: readonly string[] | null;
|
|
512
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
513
|
-
readonly tracking?: {
|
|
514
|
-
readonly opens?: boolean;
|
|
515
|
-
readonly clicks?: boolean;
|
|
516
|
-
};
|
|
517
|
-
readonly footer?: {
|
|
518
|
-
readonly enabled?: boolean | null;
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
};
|
|
522
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
523
|
-
readonly idempotencyKey: string | null;
|
|
524
|
-
readonly referenceId: string | null;
|
|
525
|
-
readonly failureReason: string | null;
|
|
526
|
-
readonly attempts: number;
|
|
527
|
-
readonly createdBy: string | null;
|
|
528
|
-
readonly actorEmail: string;
|
|
529
|
-
readonly memberRole: string;
|
|
530
|
-
readonly createdAt: string;
|
|
531
|
-
readonly updatedAt: string;
|
|
532
|
-
}, 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>;
|
|
295
|
+
}) => import("./internal/operation").OperationResult<"scheduledMessagesGet">;
|
|
533
296
|
export declare const cancel: (input: {
|
|
534
297
|
readonly id: string;
|
|
535
|
-
}) => import("
|
|
536
|
-
readonly success: boolean;
|
|
537
|
-
readonly item: {
|
|
538
|
-
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
539
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
540
|
-
readonly scheduledFor: string;
|
|
541
|
-
readonly timezone: string;
|
|
542
|
-
readonly send: {
|
|
543
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
544
|
-
readonly metadata?: {
|
|
545
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
546
|
-
} | null;
|
|
547
|
-
readonly channel: "email";
|
|
548
|
-
readonly to: readonly ({
|
|
549
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
550
|
-
} | {
|
|
551
|
-
readonly email: string;
|
|
552
|
-
readonly name?: string | null;
|
|
553
|
-
readonly displayName?: string | null;
|
|
554
|
-
})[];
|
|
555
|
-
readonly cc?: readonly ({
|
|
556
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
557
|
-
} | {
|
|
558
|
-
readonly email: string;
|
|
559
|
-
readonly name?: string | null;
|
|
560
|
-
readonly displayName?: string | null;
|
|
561
|
-
})[] | null;
|
|
562
|
-
readonly bcc?: readonly ({
|
|
563
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
564
|
-
} | {
|
|
565
|
-
readonly email: string;
|
|
566
|
-
readonly name?: string | null;
|
|
567
|
-
readonly displayName?: string | null;
|
|
568
|
-
})[] | null;
|
|
569
|
-
readonly from?: {
|
|
570
|
-
readonly email: string;
|
|
571
|
-
readonly name?: string | null;
|
|
572
|
-
} | null;
|
|
573
|
-
readonly email: {
|
|
574
|
-
readonly subject?: string | null;
|
|
575
|
-
readonly html?: string | null;
|
|
576
|
-
readonly text?: string | null;
|
|
577
|
-
readonly attachments?: readonly {
|
|
578
|
-
readonly filename: string;
|
|
579
|
-
readonly content?: string | null;
|
|
580
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
581
|
-
readonly contentType: string;
|
|
582
|
-
readonly size: number;
|
|
583
|
-
}[] | null;
|
|
584
|
-
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
585
|
-
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
586
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
587
|
-
readonly templateSlug?: string | null;
|
|
588
|
-
readonly templateData?: {
|
|
589
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
590
|
-
} | null;
|
|
591
|
-
readonly locale?: string;
|
|
592
|
-
readonly timeZone?: string;
|
|
593
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
594
|
-
readonly replyTo?: readonly string[] | null;
|
|
595
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
596
|
-
readonly tracking?: {
|
|
597
|
-
readonly opens?: boolean;
|
|
598
|
-
readonly clicks?: boolean;
|
|
599
|
-
};
|
|
600
|
-
readonly footer?: {
|
|
601
|
-
readonly enabled?: boolean | null;
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
606
|
-
readonly idempotencyKey: string | null;
|
|
607
|
-
readonly referenceId: string | null;
|
|
608
|
-
readonly failureReason: string | null;
|
|
609
|
-
readonly attempts: number;
|
|
610
|
-
readonly createdBy: string | null;
|
|
611
|
-
readonly actorEmail: string;
|
|
612
|
-
readonly memberRole: string;
|
|
613
|
-
readonly createdAt: string;
|
|
614
|
-
readonly updatedAt: string;
|
|
615
|
-
};
|
|
616
|
-
}, 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>;
|
|
298
|
+
}) => import("./internal/operation").OperationResult<"scheduledMessagesCancel">;
|
|
617
299
|
export declare const resume: (input: {
|
|
618
300
|
readonly id: string;
|
|
619
301
|
readonly choice: "send_now";
|
|
@@ -621,82 +303,4 @@ export declare const resume: (input: {
|
|
|
621
303
|
readonly id: string;
|
|
622
304
|
readonly choice: "new_time";
|
|
623
305
|
readonly scheduledFor: Date;
|
|
624
|
-
}) => import("
|
|
625
|
-
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
626
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
627
|
-
readonly scheduledFor: string;
|
|
628
|
-
readonly timezone: string;
|
|
629
|
-
readonly send: {
|
|
630
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
631
|
-
readonly metadata?: {
|
|
632
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
633
|
-
} | null;
|
|
634
|
-
readonly channel: "email";
|
|
635
|
-
readonly to: readonly ({
|
|
636
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
637
|
-
} | {
|
|
638
|
-
readonly email: string;
|
|
639
|
-
readonly name?: string | null;
|
|
640
|
-
readonly displayName?: string | null;
|
|
641
|
-
})[];
|
|
642
|
-
readonly cc?: readonly ({
|
|
643
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
644
|
-
} | {
|
|
645
|
-
readonly email: string;
|
|
646
|
-
readonly name?: string | null;
|
|
647
|
-
readonly displayName?: string | null;
|
|
648
|
-
})[] | null;
|
|
649
|
-
readonly bcc?: readonly ({
|
|
650
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
651
|
-
} | {
|
|
652
|
-
readonly email: string;
|
|
653
|
-
readonly name?: string | null;
|
|
654
|
-
readonly displayName?: string | null;
|
|
655
|
-
})[] | null;
|
|
656
|
-
readonly from?: {
|
|
657
|
-
readonly email: string;
|
|
658
|
-
readonly name?: string | null;
|
|
659
|
-
} | null;
|
|
660
|
-
readonly email: {
|
|
661
|
-
readonly subject?: string | null;
|
|
662
|
-
readonly html?: string | null;
|
|
663
|
-
readonly text?: string | null;
|
|
664
|
-
readonly attachments?: readonly {
|
|
665
|
-
readonly filename: string;
|
|
666
|
-
readonly content?: string | null;
|
|
667
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
668
|
-
readonly contentType: string;
|
|
669
|
-
readonly size: number;
|
|
670
|
-
}[] | null;
|
|
671
|
-
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
672
|
-
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
673
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
674
|
-
readonly templateSlug?: string | null;
|
|
675
|
-
readonly templateData?: {
|
|
676
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
677
|
-
} | null;
|
|
678
|
-
readonly locale?: string;
|
|
679
|
-
readonly timeZone?: string;
|
|
680
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
681
|
-
readonly replyTo?: readonly string[] | null;
|
|
682
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
683
|
-
readonly tracking?: {
|
|
684
|
-
readonly opens?: boolean;
|
|
685
|
-
readonly clicks?: boolean;
|
|
686
|
-
};
|
|
687
|
-
readonly footer?: {
|
|
688
|
-
readonly enabled?: boolean | null;
|
|
689
|
-
};
|
|
690
|
-
};
|
|
691
|
-
};
|
|
692
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
693
|
-
readonly idempotencyKey: string | null;
|
|
694
|
-
readonly referenceId: string | null;
|
|
695
|
-
readonly failureReason: string | null;
|
|
696
|
-
readonly attempts: number;
|
|
697
|
-
readonly createdBy: string | null;
|
|
698
|
-
readonly actorEmail: string;
|
|
699
|
-
readonly memberRole: string;
|
|
700
|
-
readonly createdAt: string;
|
|
701
|
-
readonly updatedAt: string;
|
|
702
|
-
}, import("./errors").ConflictError | import("./errors").ExternalServiceError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
306
|
+
}) => import("./internal/operation").OperationResult<"scheduledMessagesResume">;
|
|
@@ -9,7 +9,4 @@ export declare const subscribe: (input: {
|
|
|
9
9
|
readonly templateSlug?: string | null | undefined;
|
|
10
10
|
readonly consentIp?: string | null | undefined;
|
|
11
11
|
readonly consentSource?: string | null | undefined;
|
|
12
|
-
}) => import("
|
|
13
|
-
readonly success: boolean;
|
|
14
|
-
readonly expiresAt: string;
|
|
15
|
-
}, import("./errors").BillingProviderError | import("./errors").BrandAddressRequiredError | import("./errors").CampaignFooterRequiredError | import("./errors").ConflictError | import("./errors").DeliveryUnavailableError | import("./errors").ExternalServiceError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
12
|
+
}) => import("./internal/operation").OperationResult<"subscriptionsSubscribe">;
|