samva 0.29.1 → 0.31.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 +23 -5
- package/README.md +166 -133
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -2
- package/dist/client/client.gen.js +1 -2
- package/dist/client/core/auth.gen.js +1 -2
- package/dist/client/core/bodySerializer.gen.js +1 -2
- package/dist/client/core/params.gen.js +1 -2
- package/dist/client/core/pathSerializer.gen.js +1 -2
- package/dist/client/core/serverSentEvents.gen.js +1 -2
- package/dist/client/core/utils.gen.js +1 -2
- package/dist/client/sdk.gen.d.ts +218 -192
- package/dist/client/sdk.gen.js +2397 -1154
- package/dist/client/types.gen.d.ts +767 -376
- package/dist/client-attribution.js +1 -2
- package/dist/effect/agents.d.ts +33 -11
- package/dist/effect/agents.js +1 -2
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +1 -2
- package/dist/effect/api-keys.d.ts +8 -8
- package/dist/effect/api-keys.js +1 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +1 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +1 -2
- package/dist/effect/campaigns.d.ts +15 -16
- package/dist/effect/campaigns.js +1 -2
- package/dist/effect/categories.js +1 -2
- package/dist/effect/client.js +1 -2
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contact-groups.js +1 -2
- package/dist/effect/contacts.d.ts +23 -24
- package/dist/effect/contacts.js +1 -2
- package/dist/effect/conversations.d.ts +16 -13
- package/dist/effect/conversations.js +1 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +1 -2
- package/dist/effect/email.d.ts +61 -63
- package/dist/effect/email.js +1 -2
- package/dist/effect/events.d.ts +2 -4
- package/dist/effect/events.js +1 -2
- package/dist/effect/extension-installations.d.ts +9 -9
- package/dist/effect/extension-installations.js +1 -2
- package/dist/effect/extensions.d.ts +5 -5
- package/dist/effect/extensions.js +1 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +1 -2
- package/dist/effect/generated/agents.d.ts +264 -22
- package/dist/effect/generated/agents.js +2 -3
- package/dist/effect/generated/analytics.js +1 -2
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/attachments.js +1 -2
- package/dist/effect/generated/brands.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +160 -155
- package/dist/effect/generated/campaigns.js +7 -9
- package/dist/effect/generated/contact-events.js +1 -2
- package/dist/effect/generated/contact-groups.d.ts +26 -26
- package/dist/effect/generated/contact-groups.js +22 -19
- package/dist/effect/generated/contacts.d.ts +119 -90
- package/dist/effect/generated/contacts.js +32 -32
- package/dist/effect/generated/conversations.d.ts +26 -23
- package/dist/effect/generated/conversations.js +10 -10
- package/dist/effect/generated/custom-fields.d.ts +6 -6
- package/dist/effect/generated/custom-fields.js +3 -4
- package/dist/effect/generated/email.d.ts +38 -38
- package/dist/effect/generated/email.js +13 -14
- package/dist/effect/generated/events.d.ts +18 -9
- package/dist/effect/generated/events.js +8 -6
- package/dist/effect/generated/extension-installations.d.ts +2 -2
- package/dist/effect/generated/extension-installations.js +6 -3
- package/dist/effect/generated/extensions.js +1 -2
- package/dist/effect/generated/feedback.js +1 -2
- package/dist/effect/generated/index.d.ts +7 -5
- package/dist/effect/generated/journeys.js +1 -2
- package/dist/effect/generated/mailboxes.d.ts +44 -44
- package/dist/effect/generated/mailboxes.js +17 -18
- package/dist/effect/generated/media.js +1 -2
- package/dist/effect/generated/messages.d.ts +42 -42
- package/dist/effect/generated/messages.js +3 -4
- package/dist/effect/generated/namespaces.js +1 -2
- package/dist/effect/generated/{publication-domains.d.ts → newsletter-domains.d.ts} +304 -80
- package/dist/effect/generated/newsletter-domains.js +218 -0
- package/dist/effect/generated/{topic-issues.d.ts → newsletter-issues.d.ts} +330 -288
- package/dist/effect/generated/{topic-issues.js → newsletter-issues.js} +255 -246
- package/dist/effect/generated/newsletters.d.ts +741 -0
- package/dist/effect/generated/newsletters.js +143 -0
- package/dist/effect/generated/operations.js +1 -2
- package/dist/effect/generated/organizations.d.ts +9 -9
- package/dist/effect/generated/organizations.js +4 -5
- package/dist/effect/generated/scheduled-messages.d.ts +174 -169
- package/dist/effect/generated/scheduled-messages.js +7 -7
- package/dist/effect/generated/shared.d.ts +276 -208
- package/dist/effect/generated/shared.js +50 -36
- package/dist/effect/generated/subscriptions.js +1 -2
- package/dist/effect/generated/templates.d.ts +118 -67
- package/dist/effect/generated/templates.js +43 -35
- package/dist/effect/generated/topic-forms.d.ts +79 -19
- package/dist/effect/generated/topic-forms.js +13 -14
- package/dist/effect/generated/topics.d.ts +27 -65
- package/dist/effect/generated/topics.js +13 -20
- package/dist/effect/generated/webhooks.d.ts +9 -9
- package/dist/effect/generated/webhooks.js +4 -5
- package/dist/effect/generated/whoami.js +1 -2
- package/dist/effect/generated-metadata.d.ts +475 -70
- package/dist/effect/generated-metadata.js +642 -432
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +4 -3
- package/dist/effect/internal/client.d.ts +5 -0
- package/dist/effect/internal/client.js +9 -5
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/email-sender.js +4 -3
- package/dist/effect/internal/mailbox-events.js +1 -2
- package/dist/effect/internal/operation.d.ts +4 -15
- package/dist/effect/internal/operation.js +21 -33
- package/dist/effect/internal/send.js +2 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/journeys.js +1 -2
- package/dist/effect/mailboxes.d.ts +60 -70
- package/dist/effect/mailboxes.js +1 -2
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -2
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/messages.js +1 -2
- package/dist/effect/namespaces.d.ts +8 -8
- package/dist/effect/namespaces.js +1 -2
- package/dist/effect/newsletter-domains.d.ts +71 -0
- package/dist/effect/newsletter-domains.js +18 -0
- package/dist/effect/{topic-issues.d.ts → newsletter-issues.d.ts} +11 -15
- package/dist/effect/newsletter-issues.js +32 -0
- package/dist/effect/newsletters.d.ts +22 -0
- package/dist/effect/newsletters.js +20 -0
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/operations.js +1 -2
- package/dist/effect/organizations.d.ts +8 -10
- package/dist/effect/organizations.js +1 -2
- package/dist/effect/pagination.js +1 -2
- package/dist/effect/retry.d.ts +4 -4
- package/dist/effect/retry.js +5 -6
- package/dist/effect/runtime.js +1 -2
- package/dist/effect/scheduled-messages.d.ts +5 -6
- package/dist/effect/scheduled-messages.js +1 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +1 -2
- package/dist/effect/templates.d.ts +34 -43
- package/dist/effect/templates.js +1 -2
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +1 -2
- package/dist/effect/topics.d.ts +9 -13
- package/dist/effect/topics.js +1 -2
- package/dist/effect/webhooks.d.ts +11 -11
- package/dist/effect/webhooks.js +1 -2
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +1 -2
- package/dist/index.js +2 -2
- package/dist/inline-attachments.js +1 -2
- package/dist/mailbox/dispatch.d.ts +10 -0
- package/dist/mailbox/dispatch.js +66 -0
- package/dist/mailbox/index.d.ts +17 -0
- package/dist/mailbox/index.js +30 -0
- package/dist/mailbox/test.d.ts +25 -0
- package/dist/mailbox/test.js +174 -0
- package/dist/mailbox/types.d.ts +184 -0
- package/dist/mailbox/webhook.d.ts +10 -0
- package/dist/mailbox/webhook.js +41 -0
- package/dist/mailbox-events.js +1 -2
- package/dist/normalize.js +1 -2
- package/dist/package.js +2 -3
- package/dist/promises/client.d.ts +215 -0
- package/dist/promises/client.js +324 -0
- package/dist/promises/errors.gen.js +1 -2
- package/dist/promises/index.d.ts +2 -196
- package/dist/promises/index.js +3 -295
- package/dist/promises/request.d.ts +15 -0
- package/dist/promises/request.js +75 -0
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +3 -0
- package/dist/request-policy.js +16 -0
- package/dist/service-map.d.ts +78 -47
- package/dist/service-map.js +52 -32
- package/package.json +34 -18
- package/dist/effect/generated/publication-domains.js +0 -163
- package/dist/effect/publication-domains.d.ts +0 -14
- package/dist/effect/publication-domains.js +0 -17
- package/dist/effect/topic-issues.js +0 -33
|
@@ -2,7 +2,7 @@ import { AbsoluteInstant } from "../runtime.js";
|
|
|
2
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
|
+
// src/effect/generated/campaigns.ts
|
|
6
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
7
|
const CampaignDefinitionSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
8
8
|
state: Schema.Union([
|
|
@@ -123,7 +123,7 @@ const CampaignEmailContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
123
123
|
timeZone: Schema.optionalKey(RenderTimeZone),
|
|
124
124
|
inReplyToMessageId: Schema.optionalKey(Schema.Union([MessageId, Schema.Null])),
|
|
125
125
|
replyTo: Schema.optionalKey(ReplyToAddresses),
|
|
126
|
-
topicId: Schema.optionalKey(Schema.Union([
|
|
126
|
+
topicId: Schema.optionalKey(Schema.Union([TopicId, Schema.Null]).annotate({ description: "The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic." })),
|
|
127
127
|
tracking: Schema.optionalKey(EmailTrackingOverrideV1),
|
|
128
128
|
footer: Schema.optionalKey(EmailFooterOverride),
|
|
129
129
|
headers: Schema.optionalKey(Schema.Union([EmailCustomHeaders, Schema.Null])),
|
|
@@ -300,10 +300,8 @@ const CampaignsListRuns422 = ValidationError;
|
|
|
300
300
|
const CampaignsListRuns500 = InternalError;
|
|
301
301
|
const CampaignsListRuns504 = GatewayTimeoutError;
|
|
302
302
|
const CampaignsScheduleRunPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: CampaignId }))();
|
|
303
|
-
const
|
|
304
|
-
|
|
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]))
|
|
306
|
-
}))();
|
|
303
|
+
const CampaignsScheduleRunHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })), Schema.Null])) }))();
|
|
304
|
+
const CampaignsScheduleRunRequestJson = /* @__PURE__ */ (() => Schema.Struct({ scheduledFor: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])) }))();
|
|
307
305
|
const CampaignsScheduleRun201 = CampaignRun;
|
|
308
306
|
const CampaignsScheduleRun401 = UnauthorizedError;
|
|
309
307
|
const CampaignsScheduleRun403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
@@ -513,6 +511,7 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
513
511
|
]
|
|
514
512
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.listRuns").annotate(OpenApi.Summary, "List campaign runs").annotate(OpenApi.Description, "Returns a campaign's runs, newest first, optionally filtered by status. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("campaignsScheduleRun", "/v1/campaigns/:id/runs", {
|
|
515
513
|
params: CampaignsScheduleRunPathParams,
|
|
514
|
+
headers: CampaignsScheduleRunHeaders,
|
|
516
515
|
payload: CampaignsScheduleRunRequestJson,
|
|
517
516
|
success: CampaignsScheduleRun201.pipe(HttpApiSchema.status(201)),
|
|
518
517
|
error: [
|
|
@@ -526,7 +525,7 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
526
525
|
CampaignsScheduleRun503.pipe(HttpApiSchema.status(503)),
|
|
527
526
|
CampaignsScheduleRun504.pipe(HttpApiSchema.status(504))
|
|
528
527
|
]
|
|
529
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.scheduleRun").annotate(OpenApi.Summary, "Schedule a campaign run").annotate(OpenApi.Description, "Schedules an email campaign run at the absolute ISO-8601 instant in scheduledFor, or immediately when omitted. The optional
|
|
528
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.scheduleRun").annotate(OpenApi.Summary, "Schedule a campaign run").annotate(OpenApi.Description, "Schedules an email campaign run at the absolute ISO-8601 instant in scheduledFor, or immediately when omitted. The optional Idempotency-Key header is scoped to the organization and replays return the original run. An email campaign must carry the brand footer: it is refused with CampaignFooterRequiredError when its footer is off and its template renders no BrandFooter, and with BrandAddressRequiredError when a brand that signs it off has no postal address."), HttpApiEndpoint.get("campaignsGetRun", "/v1/campaigns/:id/runs/:runId", {
|
|
530
529
|
params: CampaignsGetRunPathParams,
|
|
531
530
|
success: CampaignsGetRun200,
|
|
532
531
|
error: [
|
|
@@ -628,7 +627,6 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
628
627
|
CampaignsSendTest504.pipe(HttpApiSchema.status(504))
|
|
629
628
|
]
|
|
630
629
|
}).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") {};
|
|
631
|
-
|
|
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 };
|
|
630
|
+
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, CampaignsScheduleRunHeaders, 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 };
|
|
633
631
|
|
|
634
632
|
//# sourceMappingURL=campaigns.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiKeySecurityMiddleware, ContactEvent, ContactId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
|
|
4
|
+
// src/effect/generated/contact-events.ts
|
|
5
5
|
const ContactEventPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
6
|
items: Schema.Array(ContactEvent),
|
|
7
7
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -31,7 +31,6 @@ var ContactEventsGroup = class extends HttpApiGroup.make("Contact events").add(H
|
|
|
31
31
|
ContactEventsListEvents504.pipe(HttpApiSchema.status(504))
|
|
32
32
|
]
|
|
33
33
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contactEvents.listEvents").annotate(OpenApi.Summary, "List contact events").annotate(OpenApi.Description, "Returns custom and Samva lifecycle events, newest occurrence first, within the 90-day retention window. Pass nextCursor back as cursor for the next page.")).annotate(OpenApi.Description, "A contact's custom and lifecycle event timeline") {};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { ContactEventPage, ContactEventsGroup, ContactEventsListEvents200, ContactEventsListEvents401, ContactEventsListEvents403, ContactEventsListEvents404, ContactEventsListEvents422, ContactEventsListEvents500, ContactEventsListEvents504, ContactEventsListEventsPathParams, ContactEventsListEventsQuery };
|
|
36
35
|
|
|
37
36
|
//# sourceMappingURL=contact-events.js.map
|
|
@@ -105,7 +105,7 @@ export type ContactGroupsListQuery = {
|
|
|
105
105
|
export declare const ContactGroupsListQuery: Schema.Struct<{
|
|
106
106
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
107
107
|
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
108
|
-
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
108
|
+
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.$Array<Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>>, Schema.Null]>>;
|
|
109
109
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
110
110
|
}>;
|
|
111
111
|
export type ContactGroupsList200 = ContactGroupPage;
|
|
@@ -140,24 +140,24 @@ export type ContactGroupsList504 = GatewayTimeoutError;
|
|
|
140
140
|
export declare const ContactGroupsList504: typeof GatewayTimeoutError;
|
|
141
141
|
export type ContactGroupsCreateRequestJson = {
|
|
142
142
|
readonly name: string;
|
|
143
|
-
readonly description?: string | null
|
|
143
|
+
readonly description?: string | null;
|
|
144
144
|
readonly type?: "static" | "dynamic" | "smart" | null;
|
|
145
145
|
readonly criteria?: {
|
|
146
146
|
readonly [x: string]: JsonValue;
|
|
147
|
-
} | null
|
|
147
|
+
} | null;
|
|
148
148
|
readonly color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null;
|
|
149
|
-
readonly icon?: string | null
|
|
150
|
-
readonly parentGroupId?: ContactGroupId | null
|
|
149
|
+
readonly icon?: string | null;
|
|
150
|
+
readonly parentGroupId?: ContactGroupId | null;
|
|
151
151
|
readonly isActive?: boolean | null;
|
|
152
152
|
};
|
|
153
153
|
export declare const ContactGroupsCreateRequestJson: Schema.Struct<{
|
|
154
154
|
readonly name: Schema.String;
|
|
155
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
155
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
156
156
|
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.Null]>>;
|
|
157
|
-
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
157
|
+
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
158
158
|
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>, Schema.Null]>>;
|
|
159
|
-
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
160
|
-
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
159
|
+
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
160
|
+
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>>;
|
|
161
161
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
162
162
|
}>;
|
|
163
163
|
export type ContactGroupsCreate201 = {
|
|
@@ -288,24 +288,24 @@ export declare const ContactGroupsUpdatePathParams: Schema.Struct<{
|
|
|
288
288
|
}>;
|
|
289
289
|
export type ContactGroupsUpdateRequestJson = {
|
|
290
290
|
readonly name?: string | null;
|
|
291
|
-
readonly description?: string | null
|
|
291
|
+
readonly description?: string | null;
|
|
292
292
|
readonly type?: "static" | "dynamic" | "smart" | null;
|
|
293
293
|
readonly criteria?: {
|
|
294
294
|
readonly [x: string]: JsonValue;
|
|
295
|
-
} | null
|
|
295
|
+
} | null;
|
|
296
296
|
readonly color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null;
|
|
297
|
-
readonly icon?: string | null
|
|
298
|
-
readonly parentGroupId?: ContactGroupId | null
|
|
297
|
+
readonly icon?: string | null;
|
|
298
|
+
readonly parentGroupId?: ContactGroupId | null;
|
|
299
299
|
readonly isActive?: boolean | null;
|
|
300
300
|
};
|
|
301
301
|
export declare const ContactGroupsUpdateRequestJson: Schema.Struct<{
|
|
302
302
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
303
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
303
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
304
304
|
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.Null]>>;
|
|
305
|
-
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
305
|
+
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
306
306
|
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>, Schema.Null]>>;
|
|
307
|
-
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
308
|
-
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
307
|
+
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
308
|
+
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>>;
|
|
309
309
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
310
310
|
}>;
|
|
311
311
|
export type ContactGroupsUpdate200 = {
|
|
@@ -648,12 +648,12 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
|
|
|
648
648
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
649
649
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsCreate", "POST", "/v1/contact-groups", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
650
650
|
readonly name: Schema.String;
|
|
651
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
651
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
652
652
|
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.Null]>>;
|
|
653
|
-
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
653
|
+
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
654
654
|
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>, Schema.Null]>>;
|
|
655
|
-
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
656
|
-
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
655
|
+
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
656
|
+
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>>;
|
|
657
657
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
658
658
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
659
659
|
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
@@ -1035,7 +1035,7 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
|
|
|
1035
1035
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsList", "GET", "/v1/contact-groups", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1036
1036
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1037
1037
|
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1038
|
-
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
1038
|
+
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.$Array<Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>>, Schema.Null]>>;
|
|
1039
1039
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1040
1040
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1041
1041
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
@@ -1367,12 +1367,12 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
|
|
|
1367
1367
|
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
1368
1368
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1369
1369
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1370
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1370
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1371
1371
|
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.Null]>>;
|
|
1372
|
-
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
1372
|
+
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1373
1373
|
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>, Schema.Null]>>;
|
|
1374
|
-
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1375
|
-
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1374
|
+
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1375
|
+
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>>;
|
|
1376
1376
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1377
1377
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1378
1378
|
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiKeySecurityMiddleware, ContactGroupId, ContactId, ContactIdentity, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
|
|
4
|
+
// src/effect/generated/contact-groups.ts
|
|
5
5
|
const ContactGroupPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
6
|
items: Schema.Array(Schema.Struct({
|
|
7
7
|
id: ContactGroupId,
|
|
@@ -59,15 +59,19 @@ const ContactGroupMemberPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
59
59
|
const ContactGroupsListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
60
60
|
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])),
|
|
61
61
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
62
|
-
type: Schema.optionalKey(Schema.Union([
|
|
63
|
-
Schema.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
Schema.
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
type: Schema.optionalKey(Schema.Union([
|
|
63
|
+
Schema.Union([
|
|
64
|
+
Schema.Literal("static"),
|
|
65
|
+
Schema.Literal("dynamic"),
|
|
66
|
+
Schema.Literal("smart")
|
|
67
|
+
]),
|
|
68
|
+
Schema.Array(Schema.Union([
|
|
69
|
+
Schema.Literal("static"),
|
|
70
|
+
Schema.Literal("dynamic"),
|
|
71
|
+
Schema.Literal("smart")
|
|
72
|
+
])),
|
|
73
|
+
Schema.Null
|
|
74
|
+
])),
|
|
71
75
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
72
76
|
}))();
|
|
73
77
|
const ContactGroupsList200 = ContactGroupPage;
|
|
@@ -78,13 +82,13 @@ const ContactGroupsList500 = InternalError;
|
|
|
78
82
|
const ContactGroupsList504 = GatewayTimeoutError;
|
|
79
83
|
const ContactGroupsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
80
84
|
name: Schema.String,
|
|
81
|
-
description: Schema.optionalKey(Schema.Union([Schema.
|
|
85
|
+
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
82
86
|
type: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
83
87
|
Schema.Literal("static"),
|
|
84
88
|
Schema.Literal("dynamic"),
|
|
85
89
|
Schema.Literal("smart")
|
|
86
90
|
]), Schema.Null])),
|
|
87
|
-
criteria: Schema.optionalKey(Schema.Union([Schema.
|
|
91
|
+
criteria: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])),
|
|
88
92
|
color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Union([
|
|
89
93
|
Schema.Literal("clay"),
|
|
90
94
|
Schema.Literal("sand"),
|
|
@@ -93,8 +97,8 @@ const ContactGroupsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
93
97
|
Schema.Literal("plum"),
|
|
94
98
|
Schema.Literal("rose")
|
|
95
99
|
]), Schema.Null]).annotate({ description: "The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces." }), Schema.Null])),
|
|
96
|
-
icon: Schema.optionalKey(Schema.Union([Schema.
|
|
97
|
-
parentGroupId: Schema.optionalKey(Schema.Union([
|
|
100
|
+
icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
101
|
+
parentGroupId: Schema.optionalKey(Schema.Union([ContactGroupId, Schema.Null])),
|
|
98
102
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
99
103
|
}))();
|
|
100
104
|
const ContactGroupsCreate201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -174,13 +178,13 @@ const ContactGroupsRemove504 = GatewayTimeoutError;
|
|
|
174
178
|
const ContactGroupsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactGroupId }))();
|
|
175
179
|
const ContactGroupsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
176
180
|
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
177
|
-
description: Schema.optionalKey(Schema.Union([Schema.
|
|
181
|
+
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
178
182
|
type: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
179
183
|
Schema.Literal("static"),
|
|
180
184
|
Schema.Literal("dynamic"),
|
|
181
185
|
Schema.Literal("smart")
|
|
182
186
|
]), Schema.Null])),
|
|
183
|
-
criteria: Schema.optionalKey(Schema.Union([Schema.
|
|
187
|
+
criteria: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])),
|
|
184
188
|
color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Union([
|
|
185
189
|
Schema.Literal("clay"),
|
|
186
190
|
Schema.Literal("sand"),
|
|
@@ -189,8 +193,8 @@ const ContactGroupsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
189
193
|
Schema.Literal("plum"),
|
|
190
194
|
Schema.Literal("rose")
|
|
191
195
|
]), Schema.Null]).annotate({ description: "The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces." }), Schema.Null])),
|
|
192
|
-
icon: Schema.optionalKey(Schema.Union([Schema.
|
|
193
|
-
parentGroupId: Schema.optionalKey(Schema.Union([
|
|
196
|
+
icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
197
|
+
parentGroupId: Schema.optionalKey(Schema.Union([ContactGroupId, Schema.Null])),
|
|
194
198
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
195
199
|
}))();
|
|
196
200
|
const ContactGroupsUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -413,7 +417,6 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
|
|
|
413
417
|
ContactGroupsPreview504.pipe(HttpApiSchema.status(504))
|
|
414
418
|
]
|
|
415
419
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contactGroups.preview").annotate(OpenApi.Summary, "Preview contact group criteria").annotate(OpenApi.Description, "Evaluates group criteria without persisting, returning the matching contact count and a sample of matches.")).annotate(OpenApi.Description, "Segment management — static and dynamic groups with membership operations") {};
|
|
416
|
-
//#endregion
|
|
417
420
|
export { ContactGroupMemberPage, ContactGroupPage, ContactGroupsAddMembers200, ContactGroupsAddMembers401, ContactGroupsAddMembers403, ContactGroupsAddMembers404, ContactGroupsAddMembers422, ContactGroupsAddMembers500, ContactGroupsAddMembers504, ContactGroupsAddMembersPathParams, ContactGroupsAddMembersRequestJson, ContactGroupsCreate201, ContactGroupsCreate401, ContactGroupsCreate403, ContactGroupsCreate422, ContactGroupsCreate500, ContactGroupsCreate504, ContactGroupsCreateRequestJson, ContactGroupsEvaluateDynamic200, ContactGroupsEvaluateDynamic401, ContactGroupsEvaluateDynamic403, ContactGroupsEvaluateDynamic404, ContactGroupsEvaluateDynamic422, ContactGroupsEvaluateDynamic500, ContactGroupsEvaluateDynamic504, ContactGroupsEvaluateDynamicPathParams, ContactGroupsGetById200, ContactGroupsGetById401, ContactGroupsGetById403, ContactGroupsGetById404, ContactGroupsGetById422, ContactGroupsGetById500, ContactGroupsGetById504, ContactGroupsGetByIdPathParams, ContactGroupsGetMembers200, ContactGroupsGetMembers401, ContactGroupsGetMembers403, ContactGroupsGetMembers404, ContactGroupsGetMembers422, ContactGroupsGetMembers500, ContactGroupsGetMembers504, ContactGroupsGetMembersPathParams, ContactGroupsGetMembersQuery, ContactGroupsGroup, ContactGroupsList200, ContactGroupsList401, ContactGroupsList403, ContactGroupsList422, ContactGroupsList500, ContactGroupsList504, ContactGroupsListQuery, ContactGroupsPreview200, ContactGroupsPreview401, ContactGroupsPreview403, ContactGroupsPreview422, ContactGroupsPreview500, ContactGroupsPreview504, ContactGroupsPreviewRequestJson, ContactGroupsRemove200, ContactGroupsRemove401, ContactGroupsRemove403, ContactGroupsRemove404, ContactGroupsRemove422, ContactGroupsRemove500, ContactGroupsRemove504, ContactGroupsRemoveMembers200, ContactGroupsRemoveMembers401, ContactGroupsRemoveMembers403, ContactGroupsRemoveMembers404, ContactGroupsRemoveMembers422, ContactGroupsRemoveMembers500, ContactGroupsRemoveMembers504, ContactGroupsRemoveMembersPathParams, ContactGroupsRemoveMembersRequestJson, ContactGroupsRemovePathParams, ContactGroupsUpdate200, ContactGroupsUpdate401, ContactGroupsUpdate403, ContactGroupsUpdate404, ContactGroupsUpdate422, ContactGroupsUpdate500, ContactGroupsUpdate504, ContactGroupsUpdatePathParams, ContactGroupsUpdateRequestJson };
|
|
418
421
|
|
|
419
422
|
//# sourceMappingURL=contact-groups.js.map
|