samva 0.15.0 → 0.17.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 +4 -1
- package/README.md +46 -1
- package/dist/analytics-CaqPRsry.js +207 -0
- package/dist/api-keys-Ce1Y4_Ip.js +274 -0
- package/dist/attachments-DYqVIraC.js +140 -0
- package/dist/brands-ZwuOGIWO.js +175 -0
- package/dist/campaigns-DZlz1E9E.js +522 -0
- package/dist/categories-CA4XIQAb.js +1011 -0
- package/dist/client/sdk.gen.d.ts +234 -49
- package/dist/client/types.gen.d.ts +1521 -348
- package/dist/client-DOzUrdTE.js +1115 -0
- package/dist/contact-groups-BLbFXnjq.js +446 -0
- package/dist/contacts-BbsoXXB4.js +787 -0
- package/dist/conversations-_sRHueML.js +494 -0
- package/dist/custom-fields-BHWbwlKn.js +176 -0
- package/dist/effect/analytics.js +2 -21
- package/dist/effect/api-keys.d.ts +1 -0
- package/dist/effect/api-keys.js +2 -25
- package/dist/effect/attachments.js +2 -17
- package/dist/effect/brands.d.ts +1 -1
- package/dist/effect/brands.js +3 -24
- package/dist/effect/campaigns.js +2 -33
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +3 -4
- package/dist/effect/contact-groups.js +2 -29
- package/dist/effect/contacts.d.ts +52 -0
- package/dist/effect/contacts.js +2 -47
- package/dist/effect/conversations.js +2 -35
- package/dist/effect/custom-fields.js +2 -17
- package/dist/effect/email.d.ts +3 -20
- package/dist/effect/email.js +2 -141
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +3 -0
- package/dist/effect/extension-installations.js +2 -27
- package/dist/effect/extensions.js +2 -19
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +3 -13
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated-metadata.d.ts +1631 -0
- package/dist/effect/index.d.ts +4 -1
- package/dist/effect/index.js +29 -26
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +2 -0
- package/dist/effect/mailboxes.d.ts +255 -205
- package/dist/effect/mailboxes.js +2 -2
- package/dist/effect/media.js +3 -1
- package/dist/effect/messages.d.ts +2 -2
- package/dist/effect/messages.js +3 -1
- package/dist/effect/namespaces.js +2 -19
- package/dist/effect/operations.js +2 -15
- package/dist/effect/organizations.js +2 -23
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.js +2 -19
- package/dist/effect/subscriptions.js +2 -9
- package/dist/effect/templates.d.ts +1 -1
- package/dist/effect/templates.js +3 -78
- package/dist/effect/unsubscribe-groups.js +2 -27
- package/dist/effect/webhooks.d.ts +9 -9
- package/dist/effect/webhooks.js +3 -33
- package/dist/effect/whoami.d.ts +46 -0
- package/dist/effect/whoami.js +2 -0
- package/dist/email-R0NAA9PW.js +2498 -0
- package/dist/events-CxbTUHYT.js +82 -0
- package/dist/extension-installations-CD94LPmk.js +407 -0
- package/dist/extensions-BKyNQLvu.js +220 -0
- package/dist/feedback-Bpa09JOS.js +52 -0
- package/dist/index.js +3 -3
- package/dist/{inline-attachments-UxLeyytJ.js → inline-attachments-Bi1hDltp.js} +2 -2
- package/dist/journeys-CARo_BJT.js +499 -0
- package/dist/mailboxes-BRDn7BIK.js +2470 -0
- package/dist/media-VrrtNnft.js +181 -0
- package/dist/namespaces-CcvEbG-y.js +152 -0
- package/dist/{operation-BZ5Xov-x.js → operation-n_IYgNVK.js} +85 -102
- package/dist/operations-CmB3FHwf.js +93 -0
- package/dist/organizations-A-plufWc.js +252 -0
- package/dist/promises/errors.gen.d.ts +12 -2
- package/dist/promises/index.d.ts +9 -3
- package/dist/promises/index.js +3 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Cd6Jamqk.js → promises---Kbh-7z.js} +745 -195
- package/dist/runtime-P0l1_2-C.js +25 -0
- package/dist/scheduled-messages-DkKZRRaN.js +207 -0
- package/dist/send-Bxc0XfGE.js +722 -0
- package/dist/service-map.d.ts +101 -15
- package/dist/subscriptions-DEXYtMXg.js +67 -0
- package/dist/templates-DZomxsG7.js +2289 -0
- package/dist/unsubscribe-groups-Iqk4Isf9.js +291 -0
- package/dist/webhooks-CPXuu8Xf.js +530 -0
- package/dist/whoami-Ccz0jwlt.js +59 -0
- package/package.json +17 -3
- package/dist/categories-BGUBFdH9.js +0 -183
- package/dist/client-CDg7zJs0.js +0 -13726
- package/dist/effect/generated.d.ts +0 -64059
- package/dist/mailboxes-BH_JPmOE.js +0 -159
package/dist/service-map.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
82
82
|
readonly export: "contactsExport";
|
|
83
83
|
readonly getActivityTimeline: "contactsGetActivityTimeline";
|
|
84
84
|
readonly getGroupMemberships: "contactsGetGroupMemberships";
|
|
85
|
+
readonly listEvents: "contactEventsListEvents";
|
|
85
86
|
};
|
|
86
87
|
readonly conversations: {
|
|
87
88
|
readonly list: "conversationsList";
|
|
@@ -118,8 +119,6 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
118
119
|
readonly getDomainById: "emailGetDomainById";
|
|
119
120
|
readonly removeDomain: "emailRemoveDomain";
|
|
120
121
|
readonly setDefaultDomain: "emailSetDefaultDomain";
|
|
121
|
-
readonly setDomainDefaultSender: "emailSetDomainDefaultSender";
|
|
122
|
-
readonly clearDomainDefaultSender: "emailClearDomainDefaultSender";
|
|
123
122
|
readonly updateDomainConfig: "emailUpdateDomainConfig";
|
|
124
123
|
readonly detectRegistrar: "emailDetectRegistrar";
|
|
125
124
|
readonly getDomainConnect: "emailGetDomainConnect";
|
|
@@ -171,9 +170,29 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
171
170
|
readonly updateForwardingRule: "emailUpdateForwardingRule";
|
|
172
171
|
readonly getForwardingLog: "emailGetForwardingLog";
|
|
173
172
|
};
|
|
173
|
+
readonly events: {
|
|
174
|
+
readonly create: "eventsCreate";
|
|
175
|
+
readonly batch: "eventsBatch";
|
|
176
|
+
};
|
|
174
177
|
readonly feedback: {
|
|
175
178
|
readonly send: "feedbackSend";
|
|
176
179
|
};
|
|
180
|
+
readonly journeys: {
|
|
181
|
+
readonly list: "journeysList";
|
|
182
|
+
readonly create: "journeysCreate";
|
|
183
|
+
readonly get: "journeysGet";
|
|
184
|
+
readonly update: "journeysUpdate";
|
|
185
|
+
readonly remove: "journeysRemove";
|
|
186
|
+
readonly replaceDraft: "journeysReplaceDraft";
|
|
187
|
+
readonly publish: "journeysPublish";
|
|
188
|
+
readonly pause: "journeysPause";
|
|
189
|
+
readonly resume: "journeysResume";
|
|
190
|
+
readonly archive: "journeysArchive";
|
|
191
|
+
readonly getVersion: "journeysGetVersion";
|
|
192
|
+
readonly stats: "journeysStats";
|
|
193
|
+
readonly listRuns: "journeysListRuns";
|
|
194
|
+
readonly getRun: "journeysGetRun";
|
|
195
|
+
};
|
|
177
196
|
readonly messages: {
|
|
178
197
|
readonly list: "messagesList";
|
|
179
198
|
readonly send: "messagesSend";
|
|
@@ -263,6 +282,9 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
263
282
|
readonly removeEmails: "unsubscribeRemoveEmails";
|
|
264
283
|
readonly checkSubscription: "unsubscribeCheckSubscription";
|
|
265
284
|
};
|
|
285
|
+
readonly whoami: {
|
|
286
|
+
readonly get: "whoamiGet";
|
|
287
|
+
};
|
|
266
288
|
readonly webhooks: {
|
|
267
289
|
readonly list: "webhooksList";
|
|
268
290
|
readonly create: "webhooksCreate";
|
|
@@ -281,8 +303,9 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
281
303
|
readonly get: "mailboxesGet";
|
|
282
304
|
readonly update: "mailboxesUpdate";
|
|
283
305
|
readonly remove: "mailboxesRemove";
|
|
284
|
-
readonly
|
|
285
|
-
readonly
|
|
306
|
+
readonly createEndpoint: "mailboxesCreateEndpoint";
|
|
307
|
+
readonly updateEndpoint: "mailboxesUpdateEndpoint";
|
|
308
|
+
readonly removeEndpoint: "mailboxesRemoveEndpoint";
|
|
286
309
|
readonly pause: "mailboxesPause";
|
|
287
310
|
readonly resume: "mailboxesResume";
|
|
288
311
|
readonly getAgentActivity: "mailboxesGetAgentActivity";
|
|
@@ -568,14 +591,6 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
568
591
|
readonly kind: "path";
|
|
569
592
|
readonly paths: readonly ["id"];
|
|
570
593
|
};
|
|
571
|
-
readonly emailSetDomainDefaultSender: {
|
|
572
|
-
readonly kind: "pathPayload";
|
|
573
|
-
readonly paths: readonly ["id"];
|
|
574
|
-
};
|
|
575
|
-
readonly emailClearDomainDefaultSender: {
|
|
576
|
-
readonly kind: "path";
|
|
577
|
-
readonly paths: readonly ["id"];
|
|
578
|
-
};
|
|
579
594
|
readonly emailUpdateDomainConfig: {
|
|
580
595
|
readonly kind: "pathPayload";
|
|
581
596
|
readonly paths: readonly ["id"];
|
|
@@ -799,6 +814,70 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
799
814
|
readonly kind: "pathPayload";
|
|
800
815
|
readonly paths: readonly ["id"];
|
|
801
816
|
};
|
|
817
|
+
readonly journeysList: {
|
|
818
|
+
readonly kind: "params";
|
|
819
|
+
};
|
|
820
|
+
readonly journeysCreate: {
|
|
821
|
+
readonly kind: "payload";
|
|
822
|
+
};
|
|
823
|
+
readonly journeysGet: {
|
|
824
|
+
readonly kind: "path";
|
|
825
|
+
readonly paths: readonly ["id"];
|
|
826
|
+
};
|
|
827
|
+
readonly journeysUpdate: {
|
|
828
|
+
readonly kind: "pathPayload";
|
|
829
|
+
readonly paths: readonly ["id"];
|
|
830
|
+
};
|
|
831
|
+
readonly journeysRemove: {
|
|
832
|
+
readonly kind: "path";
|
|
833
|
+
readonly paths: readonly ["id"];
|
|
834
|
+
};
|
|
835
|
+
readonly journeysReplaceDraft: {
|
|
836
|
+
readonly kind: "pathPayload";
|
|
837
|
+
readonly paths: readonly ["id"];
|
|
838
|
+
};
|
|
839
|
+
readonly journeysPublish: {
|
|
840
|
+
readonly kind: "pathPayload";
|
|
841
|
+
readonly paths: readonly ["id"];
|
|
842
|
+
};
|
|
843
|
+
readonly journeysPause: {
|
|
844
|
+
readonly kind: "path";
|
|
845
|
+
readonly paths: readonly ["id"];
|
|
846
|
+
};
|
|
847
|
+
readonly journeysResume: {
|
|
848
|
+
readonly kind: "path";
|
|
849
|
+
readonly paths: readonly ["id"];
|
|
850
|
+
};
|
|
851
|
+
readonly journeysArchive: {
|
|
852
|
+
readonly kind: "path";
|
|
853
|
+
readonly paths: readonly ["id"];
|
|
854
|
+
};
|
|
855
|
+
readonly journeysGetVersion: {
|
|
856
|
+
readonly kind: "path";
|
|
857
|
+
readonly paths: readonly ["id", "version"];
|
|
858
|
+
};
|
|
859
|
+
readonly journeysStats: {
|
|
860
|
+
readonly kind: "pathParams";
|
|
861
|
+
readonly paths: readonly ["id"];
|
|
862
|
+
};
|
|
863
|
+
readonly journeysListRuns: {
|
|
864
|
+
readonly kind: "pathParams";
|
|
865
|
+
readonly paths: readonly ["id"];
|
|
866
|
+
};
|
|
867
|
+
readonly journeysGetRun: {
|
|
868
|
+
readonly kind: "path";
|
|
869
|
+
readonly paths: readonly ["id", "runId"];
|
|
870
|
+
};
|
|
871
|
+
readonly eventsCreate: {
|
|
872
|
+
readonly kind: "payload";
|
|
873
|
+
};
|
|
874
|
+
readonly eventsBatch: {
|
|
875
|
+
readonly kind: "payload";
|
|
876
|
+
};
|
|
877
|
+
readonly contactEventsListEvents: {
|
|
878
|
+
readonly kind: "pathParams";
|
|
879
|
+
readonly paths: readonly ["id"];
|
|
880
|
+
};
|
|
802
881
|
readonly contactsList: {
|
|
803
882
|
readonly kind: "params";
|
|
804
883
|
};
|
|
@@ -994,6 +1073,9 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
994
1073
|
readonly kind: "path";
|
|
995
1074
|
readonly paths: readonly ["id", "inputContractId"];
|
|
996
1075
|
};
|
|
1076
|
+
readonly whoamiGet: {
|
|
1077
|
+
readonly kind: "none";
|
|
1078
|
+
};
|
|
997
1079
|
readonly webhooksList: {
|
|
998
1080
|
readonly kind: "params";
|
|
999
1081
|
};
|
|
@@ -1224,13 +1306,17 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
1224
1306
|
readonly kind: "path";
|
|
1225
1307
|
readonly paths: readonly ["id"];
|
|
1226
1308
|
};
|
|
1227
|
-
readonly
|
|
1309
|
+
readonly mailboxesCreateEndpoint: {
|
|
1228
1310
|
readonly kind: "pathPayload";
|
|
1229
1311
|
readonly paths: readonly ["id"];
|
|
1230
1312
|
};
|
|
1231
|
-
readonly
|
|
1313
|
+
readonly mailboxesUpdateEndpoint: {
|
|
1314
|
+
readonly kind: "pathPayload";
|
|
1315
|
+
readonly paths: readonly ["id", "endpointId"];
|
|
1316
|
+
};
|
|
1317
|
+
readonly mailboxesRemoveEndpoint: {
|
|
1232
1318
|
readonly kind: "path";
|
|
1233
|
-
readonly paths: readonly ["id", "
|
|
1319
|
+
readonly paths: readonly ["id", "endpointId"];
|
|
1234
1320
|
};
|
|
1235
1321
|
readonly mailboxesPause: {
|
|
1236
1322
|
readonly kind: "path";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { G as FlagDisabledError, Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, Nt as PaymentRequiredError, O as DeliveryUnavailableError, Ot as OnboardingReviewRequiredError, Pt as RateLimitedError, U as ExternalServiceError, Y as InternalError, Yt as UnsubscribeId, _ as ContactGroupId, en as ValidationError, l as BillingProviderError, m as ConflictError, p as CampaignFooterRequiredError, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware, u as BrandAddressRequiredError, zt as SenderNotReadyError } from "./client-DOzUrdTE.js";
|
|
3
|
+
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
4
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
5
|
+
import * as Schema from "effect/Schema";
|
|
6
|
+
//#region src/effect/generated/subscriptions.ts
|
|
7
|
+
const SubscribeResult = /* @__PURE__ */ Schema.Struct({
|
|
8
|
+
success: Schema.Boolean,
|
|
9
|
+
expiresAt: Schema.String
|
|
10
|
+
}).annotate({ identifier: "SubscribeResult" });
|
|
11
|
+
const SubscriptionsSubscribeRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
12
|
+
email: Schema.String.annotate({ description: "The recipient email address; confirmation proves consent for this address." }).check(Schema.isMaxCodePoints(320).annotate({ expected: "a string with at most 320 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$", "u")).annotate({ expected: "a string matching the RegExp ^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$" })).check(Schema.isMaxLength(320).annotate({ expected: "a value with a length of at most 320" })),
|
|
13
|
+
contactGroupId: ContactGroupId,
|
|
14
|
+
from: Schema.Struct({
|
|
15
|
+
email: Schema.String,
|
|
16
|
+
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
17
|
+
}).annotate({ description: "Your verified email sender. The ordinary send pipeline selects its domain and customer brand." }),
|
|
18
|
+
unsubscribeGroupId: Schema.optionalKey(Schema.Union([UnsubscribeId, Schema.Null]).annotate({ description: "Clear this unsubscribe group after confirmation; all other opt-outs remain." })),
|
|
19
|
+
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "A published email template slug receiving confirmUrl. Omit it to send the default confirmation email." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
20
|
+
consentIp: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The recipient IP recorded by your server when they requested subscription." }).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema.Null])),
|
|
21
|
+
consentSource: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The signup page or source recorded by your server when consent was requested." }).check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })), Schema.Null]))
|
|
22
|
+
});
|
|
23
|
+
const SubscriptionsSubscribe200 = SubscribeResult;
|
|
24
|
+
const SubscriptionsSubscribe401 = UnauthorizedError;
|
|
25
|
+
const SubscriptionsSubscribe402 = PaymentRequiredError;
|
|
26
|
+
const SubscriptionsSubscribe403 = /* @__PURE__ */ Schema.Union([
|
|
27
|
+
ForbiddenError,
|
|
28
|
+
OnboardingReviewRequiredError,
|
|
29
|
+
FlagDisabledError
|
|
30
|
+
]);
|
|
31
|
+
const SubscriptionsSubscribe404 = ResourceNotFoundError;
|
|
32
|
+
const SubscriptionsSubscribe409 = ConflictError;
|
|
33
|
+
const SubscriptionsSubscribe422 = /* @__PURE__ */ Schema.Union([
|
|
34
|
+
ValidationError,
|
|
35
|
+
BrandAddressRequiredError,
|
|
36
|
+
CampaignFooterRequiredError
|
|
37
|
+
]);
|
|
38
|
+
const SubscriptionsSubscribe429 = RateLimitedError;
|
|
39
|
+
const SubscriptionsSubscribe500 = InternalError;
|
|
40
|
+
const SubscriptionsSubscribe502 = /* @__PURE__ */ Schema.Union([BillingProviderError, ExternalServiceError]);
|
|
41
|
+
const SubscriptionsSubscribe503 = /* @__PURE__ */ Schema.Union([SenderNotReadyError, DeliveryUnavailableError]);
|
|
42
|
+
const SubscriptionsSubscribe504 = GatewayTimeoutError;
|
|
43
|
+
var SubscriptionsGroup = class extends HttpApiGroup.make("Subscriptions").add(HttpApiEndpoint.post("subscriptionsSubscribe", "/v1/subscriptions", {
|
|
44
|
+
payload: SubscriptionsSubscribeRequestJson,
|
|
45
|
+
success: SubscriptionsSubscribe200,
|
|
46
|
+
error: [
|
|
47
|
+
SubscriptionsSubscribe401.pipe(HttpApiSchema.status(401)),
|
|
48
|
+
SubscriptionsSubscribe402.pipe(HttpApiSchema.status(402)),
|
|
49
|
+
SubscriptionsSubscribe403.pipe(HttpApiSchema.status(403)),
|
|
50
|
+
SubscriptionsSubscribe404.pipe(HttpApiSchema.status(404)),
|
|
51
|
+
SubscriptionsSubscribe409.pipe(HttpApiSchema.status(409)),
|
|
52
|
+
SubscriptionsSubscribe422.pipe(HttpApiSchema.status(422)),
|
|
53
|
+
SubscriptionsSubscribe429.pipe(HttpApiSchema.status(429)),
|
|
54
|
+
SubscriptionsSubscribe500,
|
|
55
|
+
SubscriptionsSubscribe502.pipe(HttpApiSchema.status(502)),
|
|
56
|
+
SubscriptionsSubscribe503.pipe(HttpApiSchema.status(503)),
|
|
57
|
+
SubscriptionsSubscribe504.pipe(HttpApiSchema.status(504))
|
|
58
|
+
]
|
|
59
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "subscriptions.subscribe").annotate(OpenApi.Summary, "Request subscription confirmation").annotate(OpenApi.Description, "Sends a confirmation email from your sender. Only the recipient's explicit confirmation adds them to the active static contact group and clears the optional unsubscribe group. The link expires after seven days and can be used once. A custom published email template receives confirmUrl. Sending follows ordinary sender, admission, billing, and brand-footer settings. Requires email send authority in addition to the declared contact grants, including the optional unsubscribe preference change.")).annotate(OpenApi.Description, "Recipient-confirmed contact list subscriptions") {};
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/effect/subscriptions.ts
|
|
62
|
+
var subscriptions_exports = /* @__PURE__ */ __exportAll({ subscribe: () => subscribe });
|
|
63
|
+
const subscribe = forGroup(SubscriptionsGroup)("subscriptionsSubscribe");
|
|
64
|
+
//#endregion
|
|
65
|
+
export { subscriptions_exports as n, subscribe as t };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=subscriptions-DEXYtMXg.js.map
|