samva 0.28.0 → 0.29.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 +8 -0
- package/README.md +2 -0
- package/dist/client/sdk.gen.d.ts +156 -1
- package/dist/client/sdk.gen.js +475 -1
- package/dist/client/types.gen.d.ts +1653 -183
- package/dist/effect/campaigns.d.ts +32 -0
- package/dist/effect/generated/agents.js +36 -36
- package/dist/effect/generated/analytics.js +24 -24
- package/dist/effect/generated/api-keys.js +29 -29
- package/dist/effect/generated/attachments.js +13 -13
- package/dist/effect/generated/brands.js +13 -13
- package/dist/effect/generated/campaigns.d.ts +178 -60
- package/dist/effect/generated/campaigns.js +92 -104
- package/dist/effect/generated/contact-events.js +5 -5
- package/dist/effect/generated/contact-groups.js +38 -38
- package/dist/effect/generated/contacts.js +93 -93
- package/dist/effect/generated/conversations.js +38 -38
- package/dist/effect/generated/custom-fields.js +15 -15
- package/dist/effect/generated/email.js +225 -225
- package/dist/effect/generated/events.js +5 -5
- package/dist/effect/generated/extension-installations.js +35 -35
- package/dist/effect/generated/extensions.js +24 -24
- package/dist/effect/generated/feedback.js +6 -6
- package/dist/effect/generated/index.d.ts +5 -1
- package/dist/effect/generated/journeys.js +67 -67
- package/dist/effect/generated/mailboxes.js +286 -286
- package/dist/effect/generated/media.js +16 -16
- package/dist/effect/generated/messages.js +65 -65
- package/dist/effect/generated/namespaces.js +27 -27
- package/dist/effect/generated/operations.js +6 -6
- package/dist/effect/generated/organizations.js +19 -19
- package/dist/effect/generated/publication-domains.d.ts +548 -0
- package/dist/effect/generated/publication-domains.js +163 -0
- package/dist/effect/generated/scheduled-messages.js +25 -25
- package/dist/effect/generated/shared.d.ts +142 -30
- package/dist/effect/generated/shared.js +356 -328
- package/dist/effect/generated/subscriptions.js +10 -10
- package/dist/effect/generated/templates.d.ts +172 -15
- package/dist/effect/generated/templates.js +207 -162
- package/dist/effect/generated/topic-forms.js +21 -21
- package/dist/effect/generated/topic-issues.d.ts +2995 -0
- package/dist/effect/generated/topic-issues.js +985 -0
- package/dist/effect/generated/topics.d.ts +61 -1
- package/dist/effect/generated/topics.js +39 -31
- package/dist/effect/generated/webhooks.js +50 -50
- package/dist/effect/generated/whoami.js +10 -10
- package/dist/effect/generated-metadata.d.ts +70 -0
- package/dist/effect/generated-metadata.js +57 -13
- package/dist/effect/index.d.ts +2 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/journeys.d.ts +112 -112
- package/dist/effect/mailboxes.d.ts +78 -78
- package/dist/effect/publication-domains.d.ts +14 -0
- package/dist/effect/publication-domains.js +17 -0
- package/dist/effect/topic-issues.d.ts +57 -0
- package/dist/effect/topic-issues.js +33 -0
- package/dist/effect/topics.d.ts +6 -2
- package/dist/package.js +1 -1
- package/dist/promises/index.d.ts +5 -1
- package/dist/promises/index.js +5 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +74 -0
- package/dist/service-map.js +56 -0
- package/package.json +11 -3
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { AbsoluteInstant } from "../runtime.js";
|
|
2
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError, CampaignFrom, CampaignId, CampaignReplyMailbox, CampaignRunId, ConflictError, ContactId, Cursor, DeliveryUnavailableError, EmailAttachments, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SenderNotReadyError, SendsSeries, TemplateData, TemplateId, TemplateInputContractId, TemplatePublicationId, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError, CampaignFrom, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, ConflictError, ContactId, Cursor, DeliveryUnavailableError, EmailAttachments, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SenderNotReadyError, SendsSeries, TemplateData, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateSourceError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
5
5
|
//#region src/effect/generated/campaigns.ts
|
|
6
|
-
const CampaignPolicy = /* @__PURE__ */ Schema.Struct({ pageSize: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(100).annotate({ expected: "a value greater than or equal to 100" })).check(Schema.isLessThanOrEqualTo(1e3).annotate({ expected: "a value less than or equal to 1000" })), Schema.Null])) }).annotate({ identifier: "CampaignPolicy" });
|
|
7
|
-
const CampaignDefinitionSummary = /* @__PURE__ */ Schema.Struct({
|
|
6
|
+
const CampaignPolicy = /* @__PURE__ */ (() => Schema.Struct({ pageSize: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(100).annotate({ expected: "a value greater than or equal to 100" })).check(Schema.isLessThanOrEqualTo(1e3).annotate({ expected: "a value less than or equal to 1000" })), Schema.Null])) }).annotate({ identifier: "CampaignPolicy" }))();
|
|
7
|
+
const CampaignDefinitionSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
8
8
|
state: Schema.Union([
|
|
9
9
|
Schema.Literal("editable"),
|
|
10
10
|
Schema.Literal("frozen"),
|
|
11
11
|
Schema.Literal("archived")
|
|
12
12
|
]),
|
|
13
13
|
frozenAt: Schema.Union([Schema.String, Schema.Null])
|
|
14
|
-
}).annotate({ identifier: "CampaignDefinitionSummary" });
|
|
15
|
-
const CampaignRunSkippedReason = /* @__PURE__ */ Schema.Struct({
|
|
14
|
+
}).annotate({ identifier: "CampaignDefinitionSummary" }))();
|
|
15
|
+
const CampaignRunSkippedReason = /* @__PURE__ */ (() => Schema.Struct({
|
|
16
16
|
reason: Schema.Union([
|
|
17
17
|
Schema.Literal("unsubscribed"),
|
|
18
18
|
Schema.Literal("blocked"),
|
|
@@ -26,17 +26,17 @@ const CampaignRunSkippedReason = /* @__PURE__ */ Schema.Struct({
|
|
|
26
26
|
Schema.Literal("missing_merge_field")
|
|
27
27
|
]),
|
|
28
28
|
count: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
29
|
-
}).annotate({ identifier: "CampaignRunSkippedReason" });
|
|
30
|
-
const CampaignRecipientId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
29
|
+
}).annotate({ identifier: "CampaignRunSkippedReason" }))();
|
|
30
|
+
const CampaignRecipientId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
31
31
|
expected: "a string matching the RegExp ^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
32
32
|
identifier: "CampaignRecipientId"
|
|
33
|
-
})).pipe(Schema.brand("CampaignRecipientId"));
|
|
34
|
-
const CampaignRunReportEngagement = /* @__PURE__ */ Schema.Struct({
|
|
33
|
+
})).pipe(Schema.brand("CampaignRecipientId")))();
|
|
34
|
+
const CampaignRunReportEngagement = /* @__PURE__ */ (() => Schema.Struct({
|
|
35
35
|
measurement: Schema.Literal("directional"),
|
|
36
36
|
uniqueOpens: Schema.Finite.annotate({ description: "Directional unique recipients who opened, excluding machine events; not an exact measurement." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
37
37
|
uniqueClicks: Schema.Finite.annotate({ description: "Directional unique recipients who clicked, excluding machine events; not an exact measurement." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
38
|
-
}).annotate({ identifier: "CampaignRunReportEngagement" });
|
|
39
|
-
const CampaignRunReportSkippedReason = /* @__PURE__ */ Schema.Struct({
|
|
38
|
+
}).annotate({ identifier: "CampaignRunReportEngagement" }))();
|
|
39
|
+
const CampaignRunReportSkippedReason = /* @__PURE__ */ (() => Schema.Struct({
|
|
40
40
|
reason: Schema.Union([
|
|
41
41
|
Schema.Literal("unsubscribed"),
|
|
42
42
|
Schema.Literal("blocked"),
|
|
@@ -50,39 +50,19 @@ const CampaignRunReportSkippedReason = /* @__PURE__ */ Schema.Struct({
|
|
|
50
50
|
Schema.Literal("missing_merge_field")
|
|
51
51
|
]),
|
|
52
52
|
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
53
|
-
}).annotate({ identifier: "CampaignRunReportSkippedReason" });
|
|
54
|
-
const CampaignPreview = /* @__PURE__ */ Schema.Struct({
|
|
53
|
+
}).annotate({ identifier: "CampaignRunReportSkippedReason" }))();
|
|
54
|
+
const CampaignPreview = /* @__PURE__ */ (() => Schema.Struct({
|
|
55
55
|
subject: Schema.String,
|
|
56
56
|
preheader: Schema.optionalKey(Schema.String),
|
|
57
57
|
html: Schema.String.check(Schema.isMaxCodePoints(2097152).annotate({ expected: "a string with at most 2097152 code points" })).check(Schema.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" })),
|
|
58
58
|
text: Schema.String.check(Schema.isMaxCodePoints(2097152).annotate({ expected: "a string with at most 2097152 code points" })).check(Schema.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" }))
|
|
59
|
-
}).annotate({ identifier: "CampaignPreview" });
|
|
60
|
-
const CampaignTestSend = /* @__PURE__ */ Schema.Struct({ id: MessageId }).annotate({ identifier: "CampaignTestSend" });
|
|
61
|
-
const CampaignRunReportTopicUnsubscribes = /* @__PURE__ */ Schema.Struct({
|
|
59
|
+
}).annotate({ identifier: "CampaignPreview" }))();
|
|
60
|
+
const CampaignTestSend = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }).annotate({ identifier: "CampaignTestSend" }))();
|
|
61
|
+
const CampaignRunReportTopicUnsubscribes = /* @__PURE__ */ (() => Schema.Struct({
|
|
62
62
|
topicId: TopicId,
|
|
63
63
|
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
64
|
-
}).annotate({ identifier: "CampaignRunReportTopicUnsubscribes" });
|
|
65
|
-
const
|
|
66
|
-
id: CampaignRunId,
|
|
67
|
-
status: Schema.Union([
|
|
68
|
-
Schema.Literal("scheduled"),
|
|
69
|
-
Schema.Literal("resolving"),
|
|
70
|
-
Schema.Literal("dispatching"),
|
|
71
|
-
Schema.Literal("paused"),
|
|
72
|
-
Schema.Literal("completed"),
|
|
73
|
-
Schema.Literal("cancelled"),
|
|
74
|
-
Schema.Literal("failed")
|
|
75
|
-
]),
|
|
76
|
-
scheduledFor: Schema.String,
|
|
77
|
-
completedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
78
|
-
totalRecipients: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
79
|
-
dispatchedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
80
|
-
failedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
81
|
-
skippedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
82
|
-
pendingCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
83
|
-
estimatedCompletionAt: Schema.Union([Schema.String, Schema.Null])
|
|
84
|
-
}).annotate({ identifier: "CampaignLatestRun" });
|
|
85
|
-
const CampaignRecipientPage = /* @__PURE__ */ Schema.Struct({
|
|
64
|
+
}).annotate({ identifier: "CampaignRunReportTopicUnsubscribes" }))();
|
|
65
|
+
const CampaignRecipientPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
86
66
|
items: Schema.Array(Schema.Struct({
|
|
87
67
|
id: CampaignRecipientId,
|
|
88
68
|
runId: CampaignRunId,
|
|
@@ -112,8 +92,8 @@ const CampaignRecipientPage = /* @__PURE__ */ Schema.Struct({
|
|
|
112
92
|
updatedAt: Schema.String
|
|
113
93
|
})),
|
|
114
94
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
115
|
-
}).annotate({ identifier: "CampaignRecipientPage" });
|
|
116
|
-
const CampaignRunReport = /* @__PURE__ */ Schema.Struct({
|
|
95
|
+
}).annotate({ identifier: "CampaignRecipientPage" }))();
|
|
96
|
+
const CampaignRunReport = /* @__PURE__ */ (() => Schema.Struct({
|
|
117
97
|
campaignId: CampaignId,
|
|
118
98
|
runId: CampaignRunId,
|
|
119
99
|
totalRecipients: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -128,8 +108,8 @@ const CampaignRunReport = /* @__PURE__ */ Schema.Struct({
|
|
|
128
108
|
unsubscribesByTopic: Schema.Array(CampaignRunReportTopicUnsubscribes),
|
|
129
109
|
replyCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
130
110
|
skippedReasons: Schema.Array(CampaignRunReportSkippedReason)
|
|
131
|
-
}).annotate({ identifier: "CampaignRunReport" });
|
|
132
|
-
const CampaignEmailContent = /* @__PURE__ */ Schema.Struct({
|
|
111
|
+
}).annotate({ identifier: "CampaignRunReport" }))();
|
|
112
|
+
const CampaignEmailContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
133
113
|
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
134
114
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
135
115
|
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -148,16 +128,20 @@ const CampaignEmailContent = /* @__PURE__ */ Schema.Struct({
|
|
|
148
128
|
footer: Schema.optionalKey(EmailFooterOverride),
|
|
149
129
|
headers: Schema.optionalKey(Schema.Union([EmailCustomHeaders, Schema.Null])),
|
|
150
130
|
preheader: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
151
|
-
}).annotate({ identifier: "CampaignEmailContent" });
|
|
152
|
-
const CampaignContent = /* @__PURE__ */ Schema.Struct({
|
|
131
|
+
}).annotate({ identifier: "CampaignEmailContent" }))();
|
|
132
|
+
const CampaignContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
153
133
|
channel: Schema.Literal("email"),
|
|
154
134
|
email: CampaignEmailContent,
|
|
135
|
+
issue: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
136
|
+
path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
137
|
+
commit: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
|
|
138
|
+
}), Schema.Null]).annotate({ description: "Render a saved Markdown issue from the audience topic's repository. Its saved title and preheader supply the email content; templateData supplies recipient fallbacks." })),
|
|
155
139
|
from: Schema.optionalKey(CampaignFrom),
|
|
156
140
|
replyMailboxId: Schema.optionalKey(CampaignReplyMailbox),
|
|
157
141
|
conversationId: Schema.optionalKey(CampaignConversationRef),
|
|
158
142
|
metadata: Schema.optionalKey(CampaignContentMetadata)
|
|
159
|
-
}).annotate({ identifier: "CampaignContent" });
|
|
160
|
-
const CampaignListItem = /* @__PURE__ */ Schema.Struct({
|
|
143
|
+
}).annotate({ identifier: "CampaignContent" }))();
|
|
144
|
+
const CampaignListItem = /* @__PURE__ */ (() => Schema.Struct({
|
|
161
145
|
id: CampaignId,
|
|
162
146
|
name: Schema.String,
|
|
163
147
|
channel: Schema.Literal("email"),
|
|
@@ -172,8 +156,8 @@ const CampaignListItem = /* @__PURE__ */ Schema.Struct({
|
|
|
172
156
|
createdAt: Schema.String,
|
|
173
157
|
updatedAt: Schema.String,
|
|
174
158
|
series: SendsSeries
|
|
175
|
-
}).annotate({ identifier: "CampaignListItem" });
|
|
176
|
-
const Campaign = /* @__PURE__ */ Schema.Struct({
|
|
159
|
+
}).annotate({ identifier: "CampaignListItem" }))();
|
|
160
|
+
const Campaign = /* @__PURE__ */ (() => Schema.Struct({
|
|
177
161
|
id: CampaignId,
|
|
178
162
|
name: Schema.String,
|
|
179
163
|
channel: Schema.Literal("email"),
|
|
@@ -187,8 +171,8 @@ const Campaign = /* @__PURE__ */ Schema.Struct({
|
|
|
187
171
|
memberRole: Schema.String,
|
|
188
172
|
createdAt: Schema.String,
|
|
189
173
|
updatedAt: Schema.String
|
|
190
|
-
}).annotate({ identifier: "Campaign" });
|
|
191
|
-
const CampaignRun = /* @__PURE__ */ Schema.Struct({
|
|
174
|
+
}).annotate({ identifier: "Campaign" }))();
|
|
175
|
+
const CampaignRun = /* @__PURE__ */ (() => Schema.Struct({
|
|
192
176
|
id: CampaignRunId,
|
|
193
177
|
campaignId: CampaignId,
|
|
194
178
|
status: Schema.Union([
|
|
@@ -225,44 +209,44 @@ const CampaignRun = /* @__PURE__ */ Schema.Struct({
|
|
|
225
209
|
memberRole: Schema.String,
|
|
226
210
|
createdAt: Schema.String,
|
|
227
211
|
updatedAt: Schema.String
|
|
228
|
-
}).annotate({ identifier: "CampaignRun" });
|
|
229
|
-
const CampaignPage = /* @__PURE__ */ Schema.Struct({
|
|
212
|
+
}).annotate({ identifier: "CampaignRun" }))();
|
|
213
|
+
const CampaignPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
230
214
|
items: Schema.Array(CampaignListItem),
|
|
231
215
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
232
|
-
}).annotate({ identifier: "CampaignPage" });
|
|
233
|
-
const CampaignRunPage = /* @__PURE__ */ Schema.Struct({
|
|
216
|
+
}).annotate({ identifier: "CampaignPage" }))();
|
|
217
|
+
const CampaignRunPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
234
218
|
items: Schema.Array(CampaignRun),
|
|
235
219
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
236
|
-
}).annotate({ identifier: "CampaignRunPage" });
|
|
237
|
-
const CampaignRunAction = /* @__PURE__ */ Schema.Struct({
|
|
220
|
+
}).annotate({ identifier: "CampaignRunPage" }))();
|
|
221
|
+
const CampaignRunAction = /* @__PURE__ */ (() => Schema.Struct({
|
|
238
222
|
success: Schema.Boolean,
|
|
239
223
|
item: CampaignRun
|
|
240
|
-
}).annotate({ identifier: "CampaignRunAction" });
|
|
241
|
-
const CampaignsListQuery = /* @__PURE__ */ Schema.Struct({
|
|
224
|
+
}).annotate({ identifier: "CampaignRunAction" }))();
|
|
225
|
+
const CampaignsListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
242
226
|
status: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("draft"), Schema.Literal("archived")]), Schema.Null])),
|
|
243
227
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
244
228
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
245
|
-
});
|
|
229
|
+
}))();
|
|
246
230
|
const CampaignsList200 = CampaignPage;
|
|
247
231
|
const CampaignsList401 = UnauthorizedError;
|
|
248
232
|
const CampaignsList403 = ForbiddenError;
|
|
249
233
|
const CampaignsList422 = ValidationError;
|
|
250
234
|
const CampaignsList500 = InternalError;
|
|
251
235
|
const CampaignsList504 = GatewayTimeoutError;
|
|
252
|
-
const CampaignsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
236
|
+
const CampaignsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
253
237
|
name: Schema.String,
|
|
254
238
|
channel: Schema.Literal("email"),
|
|
255
239
|
content: CampaignContentInput,
|
|
256
240
|
audience: CampaignAudience,
|
|
257
241
|
policy: Schema.optionalKey(Schema.Union([CampaignPolicy, Schema.Null]))
|
|
258
|
-
});
|
|
242
|
+
}))();
|
|
259
243
|
const CampaignsCreate201 = Campaign;
|
|
260
244
|
const CampaignsCreate401 = UnauthorizedError;
|
|
261
|
-
const CampaignsCreate403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
|
|
245
|
+
const CampaignsCreate403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
262
246
|
const CampaignsCreate422 = ValidationError;
|
|
263
247
|
const CampaignsCreate500 = InternalError;
|
|
264
248
|
const CampaignsCreate504 = GatewayTimeoutError;
|
|
265
|
-
const CampaignsGetPathParams = /* @__PURE__ */ Schema.Struct({ id: CampaignId });
|
|
249
|
+
const CampaignsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: CampaignId }))();
|
|
266
250
|
const CampaignsGet200 = Campaign;
|
|
267
251
|
const CampaignsGet401 = UnauthorizedError;
|
|
268
252
|
const CampaignsGet403 = ForbiddenError;
|
|
@@ -270,22 +254,22 @@ const CampaignsGet404 = ResourceNotFoundError;
|
|
|
270
254
|
const CampaignsGet422 = ValidationError;
|
|
271
255
|
const CampaignsGet500 = InternalError;
|
|
272
256
|
const CampaignsGet504 = GatewayTimeoutError;
|
|
273
|
-
const CampaignsUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: CampaignId });
|
|
274
|
-
const CampaignsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
257
|
+
const CampaignsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: CampaignId }))();
|
|
258
|
+
const CampaignsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
275
259
|
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
276
260
|
content: Schema.optionalKey(Schema.Union([CampaignContentInput, Schema.Null])),
|
|
277
261
|
audience: Schema.optionalKey(Schema.Union([CampaignAudience, Schema.Null])),
|
|
278
262
|
policy: Schema.optionalKey(Schema.Union([CampaignPolicy, Schema.Null]))
|
|
279
|
-
});
|
|
263
|
+
}))();
|
|
280
264
|
const CampaignsUpdate200 = Campaign;
|
|
281
265
|
const CampaignsUpdate401 = UnauthorizedError;
|
|
282
|
-
const CampaignsUpdate403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
|
|
266
|
+
const CampaignsUpdate403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
283
267
|
const CampaignsUpdate404 = ResourceNotFoundError;
|
|
284
268
|
const CampaignsUpdate409 = ConflictError;
|
|
285
269
|
const CampaignsUpdate422 = ValidationError;
|
|
286
270
|
const CampaignsUpdate500 = InternalError;
|
|
287
271
|
const CampaignsUpdate504 = GatewayTimeoutError;
|
|
288
|
-
const CampaignsArchivePathParams = /* @__PURE__ */ Schema.Struct({ id: CampaignId });
|
|
272
|
+
const CampaignsArchivePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: CampaignId }))();
|
|
289
273
|
const CampaignsArchive200 = Campaign;
|
|
290
274
|
const CampaignsArchive401 = UnauthorizedError;
|
|
291
275
|
const CampaignsArchive403 = ForbiddenError;
|
|
@@ -294,8 +278,8 @@ const CampaignsArchive409 = ConflictError;
|
|
|
294
278
|
const CampaignsArchive422 = ValidationError;
|
|
295
279
|
const CampaignsArchive500 = InternalError;
|
|
296
280
|
const CampaignsArchive504 = GatewayTimeoutError;
|
|
297
|
-
const CampaignsListRunsPathParams = /* @__PURE__ */ Schema.Struct({ id: CampaignId });
|
|
298
|
-
const CampaignsListRunsQuery = /* @__PURE__ */ Schema.Struct({
|
|
281
|
+
const CampaignsListRunsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: CampaignId }))();
|
|
282
|
+
const CampaignsListRunsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
299
283
|
status: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
300
284
|
Schema.Literal("scheduled"),
|
|
301
285
|
Schema.Literal("resolving"),
|
|
@@ -307,7 +291,7 @@ const CampaignsListRunsQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
307
291
|
]), Schema.Null])),
|
|
308
292
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
309
293
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
310
|
-
});
|
|
294
|
+
}))();
|
|
311
295
|
const CampaignsListRuns200 = CampaignRunPage;
|
|
312
296
|
const CampaignsListRuns401 = UnauthorizedError;
|
|
313
297
|
const CampaignsListRuns403 = ForbiddenError;
|
|
@@ -315,30 +299,31 @@ const CampaignsListRuns404 = ResourceNotFoundError;
|
|
|
315
299
|
const CampaignsListRuns422 = ValidationError;
|
|
316
300
|
const CampaignsListRuns500 = InternalError;
|
|
317
301
|
const CampaignsListRuns504 = GatewayTimeoutError;
|
|
318
|
-
const CampaignsScheduleRunPathParams = /* @__PURE__ */ Schema.Struct({ id: CampaignId });
|
|
319
|
-
const CampaignsScheduleRunRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
302
|
+
const CampaignsScheduleRunPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: CampaignId }))();
|
|
303
|
+
const CampaignsScheduleRunRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
320
304
|
scheduledFor: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])),
|
|
321
305
|
idempotencyKey: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null]))
|
|
322
|
-
});
|
|
306
|
+
}))();
|
|
323
307
|
const CampaignsScheduleRun201 = CampaignRun;
|
|
324
308
|
const CampaignsScheduleRun401 = UnauthorizedError;
|
|
325
|
-
const CampaignsScheduleRun403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
|
|
309
|
+
const CampaignsScheduleRun403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
326
310
|
const CampaignsScheduleRun404 = ResourceNotFoundError;
|
|
327
311
|
const CampaignsScheduleRun409 = ConflictError;
|
|
328
|
-
const CampaignsScheduleRun422 = /* @__PURE__ */ Schema.Union([
|
|
312
|
+
const CampaignsScheduleRun422 = /* @__PURE__ */ (() => Schema.Union([
|
|
313
|
+
TemplateSourceError,
|
|
329
314
|
FromAddressRequiredError,
|
|
330
315
|
ValidationError,
|
|
331
316
|
BrandAddressRequiredError,
|
|
332
317
|
CampaignFooterRequiredError
|
|
333
|
-
]);
|
|
318
|
+
]))();
|
|
334
319
|
const CampaignsScheduleRun500 = InternalError;
|
|
335
320
|
const CampaignsScheduleRun502 = ExternalServiceError;
|
|
336
321
|
const CampaignsScheduleRun503 = SenderNotReadyError;
|
|
337
322
|
const CampaignsScheduleRun504 = GatewayTimeoutError;
|
|
338
|
-
const CampaignsGetRunPathParams = /* @__PURE__ */ Schema.Struct({
|
|
323
|
+
const CampaignsGetRunPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
339
324
|
id: CampaignId,
|
|
340
325
|
runId: CampaignRunId
|
|
341
|
-
});
|
|
326
|
+
}))();
|
|
342
327
|
const CampaignsGetRun200 = CampaignRun;
|
|
343
328
|
const CampaignsGetRun401 = UnauthorizedError;
|
|
344
329
|
const CampaignsGetRun403 = ForbiddenError;
|
|
@@ -346,10 +331,10 @@ const CampaignsGetRun404 = ResourceNotFoundError;
|
|
|
346
331
|
const CampaignsGetRun422 = ValidationError;
|
|
347
332
|
const CampaignsGetRun500 = InternalError;
|
|
348
333
|
const CampaignsGetRun504 = GatewayTimeoutError;
|
|
349
|
-
const CampaignsCancelRunPathParams = /* @__PURE__ */ Schema.Struct({
|
|
334
|
+
const CampaignsCancelRunPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
350
335
|
id: CampaignId,
|
|
351
336
|
runId: CampaignRunId
|
|
352
|
-
});
|
|
337
|
+
}))();
|
|
353
338
|
const CampaignsCancelRun200 = CampaignRunAction;
|
|
354
339
|
const CampaignsCancelRun401 = UnauthorizedError;
|
|
355
340
|
const CampaignsCancelRun403 = ForbiddenError;
|
|
@@ -359,10 +344,10 @@ const CampaignsCancelRun422 = ValidationError;
|
|
|
359
344
|
const CampaignsCancelRun500 = InternalError;
|
|
360
345
|
const CampaignsCancelRun502 = ExternalServiceError;
|
|
361
346
|
const CampaignsCancelRun504 = GatewayTimeoutError;
|
|
362
|
-
const CampaignsPauseRunPathParams = /* @__PURE__ */ Schema.Struct({
|
|
347
|
+
const CampaignsPauseRunPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
363
348
|
id: CampaignId,
|
|
364
349
|
runId: CampaignRunId
|
|
365
|
-
});
|
|
350
|
+
}))();
|
|
366
351
|
const CampaignsPauseRun200 = CampaignRunAction;
|
|
367
352
|
const CampaignsPauseRun401 = UnauthorizedError;
|
|
368
353
|
const CampaignsPauseRun403 = ForbiddenError;
|
|
@@ -372,11 +357,11 @@ const CampaignsPauseRun422 = ValidationError;
|
|
|
372
357
|
const CampaignsPauseRun500 = InternalError;
|
|
373
358
|
const CampaignsPauseRun502 = ExternalServiceError;
|
|
374
359
|
const CampaignsPauseRun504 = GatewayTimeoutError;
|
|
375
|
-
const CampaignsListRecipientsPathParams = /* @__PURE__ */ Schema.Struct({
|
|
360
|
+
const CampaignsListRecipientsPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
376
361
|
id: CampaignId,
|
|
377
362
|
runId: CampaignRunId
|
|
378
|
-
});
|
|
379
|
-
const CampaignsListRecipientsQuery = /* @__PURE__ */ Schema.Struct({
|
|
363
|
+
}))();
|
|
364
|
+
const CampaignsListRecipientsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
380
365
|
status: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
381
366
|
Schema.Literal("pending"),
|
|
382
367
|
Schema.Literal("dispatching"),
|
|
@@ -386,7 +371,7 @@ const CampaignsListRecipientsQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
386
371
|
]), Schema.Null])),
|
|
387
372
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
388
373
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
389
|
-
});
|
|
374
|
+
}))();
|
|
390
375
|
const CampaignsListRecipients200 = CampaignRecipientPage;
|
|
391
376
|
const CampaignsListRecipients401 = UnauthorizedError;
|
|
392
377
|
const CampaignsListRecipients403 = ForbiddenError;
|
|
@@ -394,10 +379,10 @@ const CampaignsListRecipients404 = ResourceNotFoundError;
|
|
|
394
379
|
const CampaignsListRecipients422 = ValidationError;
|
|
395
380
|
const CampaignsListRecipients500 = InternalError;
|
|
396
381
|
const CampaignsListRecipients504 = GatewayTimeoutError;
|
|
397
|
-
const CampaignsGetRunReportPathParams = /* @__PURE__ */ Schema.Struct({
|
|
382
|
+
const CampaignsGetRunReportPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
398
383
|
id: CampaignId,
|
|
399
384
|
runId: CampaignRunId
|
|
400
|
-
});
|
|
385
|
+
}))();
|
|
401
386
|
const CampaignsGetRunReport200 = CampaignRunReport;
|
|
402
387
|
const CampaignsGetRunReport401 = UnauthorizedError;
|
|
403
388
|
const CampaignsGetRunReport403 = ForbiddenError;
|
|
@@ -405,10 +390,10 @@ const CampaignsGetRunReport404 = ResourceNotFoundError;
|
|
|
405
390
|
const CampaignsGetRunReport422 = ValidationError;
|
|
406
391
|
const CampaignsGetRunReport500 = InternalError;
|
|
407
392
|
const CampaignsGetRunReport504 = GatewayTimeoutError;
|
|
408
|
-
const CampaignsResumeRunPathParams = /* @__PURE__ */ Schema.Struct({
|
|
393
|
+
const CampaignsResumeRunPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
409
394
|
id: CampaignId,
|
|
410
395
|
runId: CampaignRunId
|
|
411
|
-
});
|
|
396
|
+
}))();
|
|
412
397
|
const CampaignsResumeRun200 = CampaignRunAction;
|
|
413
398
|
const CampaignsResumeRun401 = UnauthorizedError;
|
|
414
399
|
const CampaignsResumeRun403 = ForbiddenError;
|
|
@@ -418,43 +403,45 @@ const CampaignsResumeRun422 = ValidationError;
|
|
|
418
403
|
const CampaignsResumeRun500 = InternalError;
|
|
419
404
|
const CampaignsResumeRun502 = ExternalServiceError;
|
|
420
405
|
const CampaignsResumeRun504 = GatewayTimeoutError;
|
|
421
|
-
const CampaignsPreviewRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
406
|
+
const CampaignsPreviewRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
422
407
|
content: CampaignContentInput,
|
|
423
408
|
audience: CampaignAudience,
|
|
424
409
|
contactId: Schema.optionalKey(Schema.Union([ContactId, Schema.Null]))
|
|
425
|
-
});
|
|
410
|
+
}))();
|
|
426
411
|
const CampaignsPreview200 = CampaignPreview;
|
|
427
412
|
const CampaignsPreview401 = UnauthorizedError;
|
|
428
|
-
const CampaignsPreview403 = ForbiddenError;
|
|
413
|
+
const CampaignsPreview403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
429
414
|
const CampaignsPreview404 = ResourceNotFoundError;
|
|
430
|
-
const
|
|
415
|
+
const CampaignsPreview409 = ConflictError;
|
|
416
|
+
const CampaignsPreview422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
431
417
|
const CampaignsPreview500 = InternalError;
|
|
432
418
|
const CampaignsPreview504 = GatewayTimeoutError;
|
|
433
|
-
const CampaignsSendTestRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
419
|
+
const CampaignsSendTestRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
434
420
|
content: CampaignContentInput,
|
|
435
421
|
audience: CampaignAudience,
|
|
436
422
|
contactId: Schema.optionalKey(Schema.Union([ContactId, Schema.Null]))
|
|
437
|
-
});
|
|
423
|
+
}))();
|
|
438
424
|
const CampaignsSendTest200 = CampaignTestSend;
|
|
439
425
|
const CampaignsSendTest401 = UnauthorizedError;
|
|
440
426
|
const CampaignsSendTest402 = PaymentRequiredError;
|
|
441
|
-
const CampaignsSendTest403 = /* @__PURE__ */ Schema.Union([
|
|
427
|
+
const CampaignsSendTest403 = /* @__PURE__ */ (() => Schema.Union([
|
|
442
428
|
ForbiddenError,
|
|
443
429
|
OnboardingReviewRequiredError,
|
|
444
430
|
FlagDisabledError
|
|
445
|
-
]);
|
|
431
|
+
]))();
|
|
446
432
|
const CampaignsSendTest404 = ResourceNotFoundError;
|
|
447
433
|
const CampaignsSendTest409 = ConflictError;
|
|
448
|
-
const CampaignsSendTest422 = /* @__PURE__ */ Schema.Union([
|
|
434
|
+
const CampaignsSendTest422 = /* @__PURE__ */ (() => Schema.Union([
|
|
435
|
+
TemplateSourceError,
|
|
449
436
|
ValidationError,
|
|
450
437
|
FromAddressRequiredError,
|
|
451
438
|
BrandAddressRequiredError,
|
|
452
439
|
CampaignFooterRequiredError
|
|
453
|
-
]);
|
|
440
|
+
]))();
|
|
454
441
|
const CampaignsSendTest429 = RateLimitedError;
|
|
455
442
|
const CampaignsSendTest500 = InternalError;
|
|
456
|
-
const CampaignsSendTest502 = /* @__PURE__ */ Schema.Union([BillingProviderError, ExternalServiceError]);
|
|
457
|
-
const CampaignsSendTest503 = /* @__PURE__ */ Schema.Union([SenderNotReadyError, DeliveryUnavailableError]);
|
|
443
|
+
const CampaignsSendTest502 = /* @__PURE__ */ (() => Schema.Union([BillingProviderError, ExternalServiceError]))();
|
|
444
|
+
const CampaignsSendTest503 = /* @__PURE__ */ (() => Schema.Union([SenderNotReadyError, DeliveryUnavailableError]))();
|
|
458
445
|
const CampaignsSendTest504 = GatewayTimeoutError;
|
|
459
446
|
var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEndpoint.get("campaignsList", "/v1/campaigns", {
|
|
460
447
|
query: CampaignsListQuery,
|
|
@@ -619,6 +606,7 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
619
606
|
CampaignsPreview401.pipe(HttpApiSchema.status(401)),
|
|
620
607
|
CampaignsPreview403.pipe(HttpApiSchema.status(403)),
|
|
621
608
|
CampaignsPreview404.pipe(HttpApiSchema.status(404)),
|
|
609
|
+
CampaignsPreview409.pipe(HttpApiSchema.status(409)),
|
|
622
610
|
CampaignsPreview422.pipe(HttpApiSchema.status(422)),
|
|
623
611
|
CampaignsPreview500,
|
|
624
612
|
CampaignsPreview504.pipe(HttpApiSchema.status(504))
|
|
@@ -641,6 +629,6 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
641
629
|
]
|
|
642
630
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.sendTest").annotate(OpenApi.Summary, "Send a campaign test").annotate(OpenApi.Description, "Sends one rendered draft email to the authenticated actor's email address, using optional contactId only for personalization. Creates no campaign run. Normal sending permissions, billing, and delivery policies apply.")).annotate(OpenApi.Description, "Campaign drafts and scheduled campaign runs") {};
|
|
643
631
|
//#endregion
|
|
644
|
-
export { Campaign, CampaignContent, CampaignDefinitionSummary, CampaignEmailContent,
|
|
632
|
+
export { Campaign, CampaignContent, CampaignDefinitionSummary, CampaignEmailContent, CampaignListItem, CampaignPage, CampaignPolicy, CampaignPreview, CampaignRecipientId, CampaignRecipientPage, CampaignRun, CampaignRunAction, CampaignRunPage, CampaignRunReport, CampaignRunReportEngagement, CampaignRunReportSkippedReason, CampaignRunReportTopicUnsubscribes, CampaignRunSkippedReason, CampaignTestSend, CampaignsArchive200, CampaignsArchive401, CampaignsArchive403, CampaignsArchive404, CampaignsArchive409, CampaignsArchive422, CampaignsArchive500, CampaignsArchive504, CampaignsArchivePathParams, CampaignsCancelRun200, CampaignsCancelRun401, CampaignsCancelRun403, CampaignsCancelRun404, CampaignsCancelRun409, CampaignsCancelRun422, CampaignsCancelRun500, CampaignsCancelRun502, CampaignsCancelRun504, CampaignsCancelRunPathParams, CampaignsCreate201, CampaignsCreate401, CampaignsCreate403, CampaignsCreate422, CampaignsCreate500, CampaignsCreate504, CampaignsCreateRequestJson, CampaignsGet200, CampaignsGet401, CampaignsGet403, CampaignsGet404, CampaignsGet422, CampaignsGet500, CampaignsGet504, CampaignsGetPathParams, CampaignsGetRun200, CampaignsGetRun401, CampaignsGetRun403, CampaignsGetRun404, CampaignsGetRun422, CampaignsGetRun500, CampaignsGetRun504, CampaignsGetRunPathParams, CampaignsGetRunReport200, CampaignsGetRunReport401, CampaignsGetRunReport403, CampaignsGetRunReport404, CampaignsGetRunReport422, CampaignsGetRunReport500, CampaignsGetRunReport504, CampaignsGetRunReportPathParams, CampaignsGroup, CampaignsList200, CampaignsList401, CampaignsList403, CampaignsList422, CampaignsList500, CampaignsList504, CampaignsListQuery, CampaignsListRecipients200, CampaignsListRecipients401, CampaignsListRecipients403, CampaignsListRecipients404, CampaignsListRecipients422, CampaignsListRecipients500, CampaignsListRecipients504, CampaignsListRecipientsPathParams, CampaignsListRecipientsQuery, CampaignsListRuns200, CampaignsListRuns401, CampaignsListRuns403, CampaignsListRuns404, CampaignsListRuns422, CampaignsListRuns500, CampaignsListRuns504, CampaignsListRunsPathParams, CampaignsListRunsQuery, CampaignsPauseRun200, CampaignsPauseRun401, CampaignsPauseRun403, CampaignsPauseRun404, CampaignsPauseRun409, CampaignsPauseRun422, CampaignsPauseRun500, CampaignsPauseRun502, CampaignsPauseRun504, CampaignsPauseRunPathParams, CampaignsPreview200, CampaignsPreview401, CampaignsPreview403, CampaignsPreview404, CampaignsPreview409, CampaignsPreview422, CampaignsPreview500, CampaignsPreview504, CampaignsPreviewRequestJson, CampaignsResumeRun200, CampaignsResumeRun401, CampaignsResumeRun403, CampaignsResumeRun404, CampaignsResumeRun409, CampaignsResumeRun422, CampaignsResumeRun500, CampaignsResumeRun502, CampaignsResumeRun504, CampaignsResumeRunPathParams, CampaignsScheduleRun201, CampaignsScheduleRun401, CampaignsScheduleRun403, CampaignsScheduleRun404, CampaignsScheduleRun409, CampaignsScheduleRun422, CampaignsScheduleRun500, CampaignsScheduleRun502, CampaignsScheduleRun503, CampaignsScheduleRun504, CampaignsScheduleRunPathParams, CampaignsScheduleRunRequestJson, CampaignsSendTest200, CampaignsSendTest401, CampaignsSendTest402, CampaignsSendTest403, CampaignsSendTest404, CampaignsSendTest409, CampaignsSendTest422, CampaignsSendTest429, CampaignsSendTest500, CampaignsSendTest502, CampaignsSendTest503, CampaignsSendTest504, CampaignsSendTestRequestJson, CampaignsUpdate200, CampaignsUpdate401, CampaignsUpdate403, CampaignsUpdate404, CampaignsUpdate409, CampaignsUpdate422, CampaignsUpdate500, CampaignsUpdate504, CampaignsUpdatePathParams, CampaignsUpdateRequestJson };
|
|
645
633
|
|
|
646
634
|
//# sourceMappingURL=campaigns.js.map
|
|
@@ -2,15 +2,15 @@ import { ApiKeySecurityMiddleware, ContactEvent, ContactId, Cursor, ForbiddenErr
|
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
//#region src/effect/generated/contact-events.ts
|
|
5
|
-
const ContactEventPage = /* @__PURE__ */ Schema.Struct({
|
|
5
|
+
const ContactEventPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
6
|
items: Schema.Array(ContactEvent),
|
|
7
7
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
8
|
-
}).annotate({ identifier: "ContactEventPage" });
|
|
9
|
-
const ContactEventsListEventsPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactId });
|
|
10
|
-
const ContactEventsListEventsQuery = /* @__PURE__ */ Schema.Struct({
|
|
8
|
+
}).annotate({ identifier: "ContactEventPage" }))();
|
|
9
|
+
const ContactEventsListEventsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactId }))();
|
|
10
|
+
const ContactEventsListEventsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
11
11
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
12
12
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
13
|
-
});
|
|
13
|
+
}))();
|
|
14
14
|
const ContactEventsListEvents200 = ContactEventPage;
|
|
15
15
|
const ContactEventsListEvents401 = UnauthorizedError;
|
|
16
16
|
const ContactEventsListEvents403 = ForbiddenError;
|