samva 0.7.0 → 0.8.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/dist/client/sdk.gen.d.ts +31 -18
- package/dist/client/types.gen.d.ts +133 -48
- package/dist/{client-5O8KsY5Z.js → client-ByJHYp7r.js} +155 -91
- package/dist/{client-attribution-27MNycCV.js → client-attribution-N5A784Zo.js} +2 -2
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +34 -0
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +9 -9
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +508 -221
- package/dist/effect/index.js +1 -1
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +2 -0
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +5 -4
- package/dist/effect/organizations.js +4 -2
- package/dist/effect/scheduled-messages.d.ts +16 -0
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +30 -38
- package/dist/effect/templates.js +2 -2
- package/dist/effect/unsubscribe-groups.d.ts +17 -0
- package/dist/effect/unsubscribe-groups.js +4 -2
- package/dist/effect/webhooks.d.ts +6 -6
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{operation-Cb5V9FJ7.js → operation-D2nEeKBD.js} +7 -2
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-C2yyw-pf.js → promises-DAv8ZtOX.js} +51 -20
- package/dist/service-map.d.ts +9 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as clientAttribution, t as CLIENT_ATTRIBUTION_HEADER } from "./client-attribution-
|
|
1
|
+
import { n as clientAttribution, t as CLIENT_ATTRIBUTION_HEADER } from "./client-attribution-N5A784Zo.js";
|
|
2
2
|
import { Context, Effect, Layer, Schema, SchemaTransformation } from "effect";
|
|
3
3
|
import * as Schema$1 from "effect/Schema";
|
|
4
4
|
import { HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, HttpApiSecurity, OpenApi } from "effect/unstable/httpapi";
|
|
@@ -140,6 +140,14 @@ const TemplateId = Schema$1.String.pipe(Schema$1.brand("TemplateId")).check(Sche
|
|
|
140
140
|
identifier: "TemplateId"
|
|
141
141
|
}));
|
|
142
142
|
const JsonObject = Schema$1.Record(Schema$1.String, JsonValue).annotate({ identifier: "JsonObject" });
|
|
143
|
+
const RenderLocale = Schema$1.String.check(Schema$1.isMaxLength(64).annotate({
|
|
144
|
+
expected: "a value with a length of at most 64",
|
|
145
|
+
identifier: "RenderLocale"
|
|
146
|
+
}));
|
|
147
|
+
const RenderTimeZone = Schema$1.String.check(Schema$1.isMaxLength(64).annotate({
|
|
148
|
+
expected: "a value with a length of at most 64",
|
|
149
|
+
identifier: "RenderTimeZone"
|
|
150
|
+
}));
|
|
143
151
|
const ReplyToAddresses = Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null]).annotate({ identifier: "ReplyToAddresses" });
|
|
144
152
|
const UnsubscribeId = Schema$1.String.pipe(Schema$1.brand("UnsubscribeId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^unsub_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
145
153
|
expected: "a string matching the RegExp ^unsub_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
@@ -526,6 +534,29 @@ const OperationResource = Schema$1.Struct({
|
|
|
526
534
|
type: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(80).annotate({ expected: "a value with a length of at most 80" })),
|
|
527
535
|
id: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
528
536
|
}).annotate({ identifier: "OperationResource" });
|
|
537
|
+
const Organization = Schema$1.Struct({
|
|
538
|
+
id: Schema$1.String,
|
|
539
|
+
billingAccountId: Schema$1.String,
|
|
540
|
+
name: Schema$1.String,
|
|
541
|
+
slug: Schema$1.String,
|
|
542
|
+
countryCode: Schema$1.String,
|
|
543
|
+
timezone: Schema$1.String,
|
|
544
|
+
plan: Schema$1.String,
|
|
545
|
+
isActive: Schema$1.Boolean,
|
|
546
|
+
createdAt: Schema$1.String,
|
|
547
|
+
updatedAt: Schema$1.String,
|
|
548
|
+
metadata: Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]),
|
|
549
|
+
replyToDefault: Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]),
|
|
550
|
+
emailFooterEnabledDefault: Schema$1.Union([Schema$1.Boolean, Schema$1.Null]),
|
|
551
|
+
messagesUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
552
|
+
messagesUsedThisMonth: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
553
|
+
emailUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
554
|
+
emailUsedThisMonth: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
555
|
+
contactsUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
556
|
+
conversationsUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
557
|
+
teamMembersUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
558
|
+
messagesResetAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
559
|
+
}).annotate({ identifier: "Organization" });
|
|
529
560
|
const TemplateProjectId = Schema$1.String.pipe(Schema$1.brand("TemplateProjectId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tproj_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
530
561
|
expected: "a string matching the RegExp ^tproj_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
531
562
|
identifier: "TemplateProjectId"
|
|
@@ -543,6 +574,10 @@ const TemplatePublicationBrand = Schema$1.Struct({
|
|
|
543
574
|
digest: Schema$1.String.annotate({ description: "The brand's digest when the publication was built." }),
|
|
544
575
|
stale: Schema$1.Boolean.annotate({ description: "Whether the brand has changed since this publication was built. Publishing the same commit again picks up the change." })
|
|
545
576
|
}).annotate({ identifier: "TemplatePublicationBrand" });
|
|
577
|
+
const BrandFooterBlock = Schema$1.Struct({
|
|
578
|
+
html: Schema$1.String,
|
|
579
|
+
text: Schema$1.String
|
|
580
|
+
}).annotate({ identifier: "BrandFooterBlock" });
|
|
546
581
|
const WebhookDeliveryCounts = Schema$1.Struct({
|
|
547
582
|
total: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
548
583
|
pending: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
@@ -570,7 +605,7 @@ const WebhookDailyDeliveries = Schema$1.Struct({
|
|
|
570
605
|
cancelled: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
571
606
|
}).annotate({ identifier: "WebhookDailyDeliveries" });
|
|
572
607
|
Schema$1.Struct({
|
|
573
|
-
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
608
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
|
|
574
609
|
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
575
610
|
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
576
611
|
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
@@ -635,9 +670,13 @@ const CreateWebhookPayload = Schema$1.Struct({
|
|
|
635
670
|
"message.bounced",
|
|
636
671
|
"message.complained",
|
|
637
672
|
"message.received",
|
|
673
|
+
"message.opened",
|
|
674
|
+
"message.clicked",
|
|
638
675
|
"contact.created",
|
|
639
676
|
"contact.updated",
|
|
640
677
|
"contact.deleted",
|
|
678
|
+
"contact.unsubscribed",
|
|
679
|
+
"contact.resubscribed",
|
|
641
680
|
"conversation.created",
|
|
642
681
|
"conversation.updated",
|
|
643
682
|
"conversation.archived",
|
|
@@ -672,9 +711,13 @@ const UpdateWebhookPayload = Schema$1.Struct({
|
|
|
672
711
|
"message.bounced",
|
|
673
712
|
"message.complained",
|
|
674
713
|
"message.received",
|
|
714
|
+
"message.opened",
|
|
715
|
+
"message.clicked",
|
|
675
716
|
"contact.created",
|
|
676
717
|
"contact.updated",
|
|
677
718
|
"contact.deleted",
|
|
719
|
+
"contact.unsubscribed",
|
|
720
|
+
"contact.resubscribed",
|
|
678
721
|
"conversation.created",
|
|
679
722
|
"conversation.updated",
|
|
680
723
|
"conversation.archived",
|
|
@@ -753,30 +796,6 @@ const CampaignPolicy = Schema$1.Struct({
|
|
|
753
796
|
unsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([UnsubscribeId, Schema$1.Null])),
|
|
754
797
|
pageSize: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(100).annotate({ expected: "a value greater than or equal to 100" })).check(Schema$1.isLessThanOrEqualTo(1e3).annotate({ expected: "a value less than or equal to 1000" })), Schema$1.Null]))
|
|
755
798
|
}).annotate({ identifier: "CampaignPolicy" });
|
|
756
|
-
const Organization = Schema$1.Struct({
|
|
757
|
-
id: Schema$1.String,
|
|
758
|
-
billingAccountId: Schema$1.String,
|
|
759
|
-
name: Schema$1.String,
|
|
760
|
-
slug: Schema$1.String,
|
|
761
|
-
countryCode: Schema$1.String,
|
|
762
|
-
timezone: Schema$1.String,
|
|
763
|
-
plan: Schema$1.String,
|
|
764
|
-
isActive: Schema$1.Boolean,
|
|
765
|
-
createdAt: Schema$1.String,
|
|
766
|
-
updatedAt: Schema$1.String,
|
|
767
|
-
metadata: Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]),
|
|
768
|
-
replyToDefault: Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]),
|
|
769
|
-
defaultUnsubscribeGroupId: Schema$1.Union([UnsubscribeId, Schema$1.Null]),
|
|
770
|
-
emailFooterEnabledDefault: Schema$1.Union([Schema$1.Boolean, Schema$1.Null]),
|
|
771
|
-
messagesUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
772
|
-
messagesUsedThisMonth: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
773
|
-
emailUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
774
|
-
emailUsedThisMonth: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
775
|
-
contactsUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
776
|
-
conversationsUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
777
|
-
teamMembersUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
778
|
-
messagesResetAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
779
|
-
}).annotate({ identifier: "Organization" });
|
|
780
799
|
const MessageContent = Schema$1.Struct({
|
|
781
800
|
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
782
801
|
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
@@ -937,7 +956,7 @@ const ActorTracking = Schema$1.Struct({
|
|
|
937
956
|
actorType: Schema$1.Literals([
|
|
938
957
|
"contact",
|
|
939
958
|
"system",
|
|
940
|
-
"
|
|
959
|
+
"sender",
|
|
941
960
|
"agent",
|
|
942
961
|
"user"
|
|
943
962
|
]),
|
|
@@ -959,7 +978,7 @@ const ConversationParticipant = Schema$1.Struct({
|
|
|
959
978
|
actorType: Schema$1.Literals([
|
|
960
979
|
"contact",
|
|
961
980
|
"system",
|
|
962
|
-
"
|
|
981
|
+
"sender",
|
|
963
982
|
"agent",
|
|
964
983
|
"user"
|
|
965
984
|
]),
|
|
@@ -977,9 +996,13 @@ const WebhookEndpoint = Schema$1.Struct({
|
|
|
977
996
|
"message.bounced",
|
|
978
997
|
"message.complained",
|
|
979
998
|
"message.received",
|
|
999
|
+
"message.opened",
|
|
1000
|
+
"message.clicked",
|
|
980
1001
|
"contact.created",
|
|
981
1002
|
"contact.updated",
|
|
982
1003
|
"contact.deleted",
|
|
1004
|
+
"contact.unsubscribed",
|
|
1005
|
+
"contact.resubscribed",
|
|
983
1006
|
"conversation.created",
|
|
984
1007
|
"conversation.updated",
|
|
985
1008
|
"conversation.archived",
|
|
@@ -1308,7 +1331,7 @@ const TemplateFamily = Schema$1.Struct({
|
|
|
1308
1331
|
const UpdateTemplatePayload = Schema$1.Struct({ data: Schema$1.Struct({
|
|
1309
1332
|
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1310
1333
|
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1311
|
-
entryPath: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })), Schema$1.Null])),
|
|
1334
|
+
entryPath: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })), Schema$1.Null])),
|
|
1312
1335
|
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1313
1336
|
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1314
1337
|
"transactional",
|
|
@@ -1327,7 +1350,7 @@ const Template = Schema$1.Struct({
|
|
|
1327
1350
|
id: TemplateId,
|
|
1328
1351
|
organizationId: OrganizationId,
|
|
1329
1352
|
projectId: TemplateProjectId,
|
|
1330
|
-
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
1353
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
|
|
1331
1354
|
name: Schema$1.String,
|
|
1332
1355
|
slug: Schema$1.String,
|
|
1333
1356
|
familyId: Schema$1.Union([TemplateFamilyId, Schema$1.Null]),
|
|
@@ -1359,6 +1382,10 @@ const Template = Schema$1.Struct({
|
|
|
1359
1382
|
createdAt: Schema$1.String,
|
|
1360
1383
|
updatedAt: Schema$1.String
|
|
1361
1384
|
}).annotate({ identifier: "Template" });
|
|
1385
|
+
const BrandRenderedFooter = Schema$1.Struct({
|
|
1386
|
+
withUnsubscribe: BrandFooterBlock,
|
|
1387
|
+
withoutUnsubscribe: BrandFooterBlock
|
|
1388
|
+
}).annotate({ identifier: "BrandRenderedFooter" });
|
|
1362
1389
|
const WebhookEndpointListItem = Schema$1.Struct({
|
|
1363
1390
|
id: WebhookEndpointId,
|
|
1364
1391
|
name: Schema$1.String,
|
|
@@ -1371,9 +1398,13 @@ const WebhookEndpointListItem = Schema$1.Struct({
|
|
|
1371
1398
|
"message.bounced",
|
|
1372
1399
|
"message.complained",
|
|
1373
1400
|
"message.received",
|
|
1401
|
+
"message.opened",
|
|
1402
|
+
"message.clicked",
|
|
1374
1403
|
"contact.created",
|
|
1375
1404
|
"contact.updated",
|
|
1376
1405
|
"contact.deleted",
|
|
1406
|
+
"contact.unsubscribed",
|
|
1407
|
+
"contact.resubscribed",
|
|
1377
1408
|
"conversation.created",
|
|
1378
1409
|
"conversation.updated",
|
|
1379
1410
|
"conversation.archived",
|
|
@@ -2063,6 +2094,8 @@ const EmailContent = Schema$1.Struct({
|
|
|
2063
2094
|
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
2064
2095
|
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
2065
2096
|
templateData: Schema$1.optionalKey(TemplateData),
|
|
2097
|
+
locale: Schema$1.optionalKey(RenderLocale),
|
|
2098
|
+
timeZone: Schema$1.optionalKey(RenderTimeZone),
|
|
2066
2099
|
inReplyToMessageId: Schema$1.optionalKey(Schema$1.Union([MessageId, Schema$1.Null])),
|
|
2067
2100
|
replyTo: Schema$1.optionalKey(ReplyToAddresses),
|
|
2068
2101
|
unsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([UnsubscribeId, Schema$1.Null])),
|
|
@@ -2079,6 +2112,8 @@ const EmailDispatchContent = Schema$1.Struct({
|
|
|
2079
2112
|
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
2080
2113
|
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
2081
2114
|
templateData: Schema$1.optionalKey(TemplateData),
|
|
2115
|
+
locale: Schema$1.optionalKey(RenderLocale),
|
|
2116
|
+
timeZone: Schema$1.optionalKey(RenderTimeZone),
|
|
2082
2117
|
inReplyToMessageId: Schema$1.optionalKey(Schema$1.Union([MessageId, Schema$1.Null])),
|
|
2083
2118
|
replyTo: Schema$1.optionalKey(ReplyToAddresses),
|
|
2084
2119
|
unsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([UnsubscribeId, Schema$1.Null])),
|
|
@@ -4989,7 +5024,6 @@ const OrganizationsUpdateRequestJson = Schema$1.Struct({
|
|
|
4989
5024
|
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
4990
5025
|
metadata: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null])),
|
|
4991
5026
|
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
4992
|
-
defaultUnsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([UnsubscribeId, Schema$1.Null]), Schema$1.Null])),
|
|
4993
5027
|
emailFooterEnabledDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Boolean, Schema$1.Null]), Schema$1.Null]))
|
|
4994
5028
|
});
|
|
4995
5029
|
const OrganizationsUpdate200 = Organization;
|
|
@@ -4999,6 +5033,15 @@ const OrganizationsUpdate404 = ResourceNotFoundError;
|
|
|
4999
5033
|
const OrganizationsUpdate422 = ValidationError;
|
|
5000
5034
|
const OrganizationsUpdate500 = InternalError;
|
|
5001
5035
|
const OrganizationsUpdate504 = GatewayTimeoutError;
|
|
5036
|
+
const OrganizationsGetProfile200 = Schema$1.Struct({
|
|
5037
|
+
id: Schema$1.String.annotate({ description: "Opaque identity for your organization membership" }),
|
|
5038
|
+
name: Schema$1.String.annotate({ description: "Your display name" }),
|
|
5039
|
+
nickname: Schema$1.String.annotate({ description: "Your display name and organization name" })
|
|
5040
|
+
});
|
|
5041
|
+
const OrganizationsGetProfile401 = UnauthorizedError;
|
|
5042
|
+
const OrganizationsGetProfile403 = ForbiddenError;
|
|
5043
|
+
const OrganizationsGetProfile500 = InternalError;
|
|
5044
|
+
const OrganizationsGetProfile504 = GatewayTimeoutError;
|
|
5002
5045
|
const OrganizationsDeleteHeaders = Schema$1.Struct({ "idempotency-key": Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) });
|
|
5003
5046
|
const OrganizationsDeleteRequestJson = Schema$1.Struct({ confirmationName: Schema$1.String });
|
|
5004
5047
|
const OrganizationsDelete202 = OperationAccepted;
|
|
@@ -5118,7 +5161,7 @@ const TemplatesUpdatePathParams = Schema$1.Struct({ id: TemplateId });
|
|
|
5118
5161
|
const TemplatesUpdateRequestJson = Schema$1.Struct({ data: Schema$1.Struct({
|
|
5119
5162
|
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5120
5163
|
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
5121
|
-
entryPath: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })), Schema$1.Null])),
|
|
5164
|
+
entryPath: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })), Schema$1.Null])),
|
|
5122
5165
|
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
5123
5166
|
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
5124
5167
|
"transactional",
|
|
@@ -5178,7 +5221,7 @@ const TemplatesPublishPathParams = Schema$1.Struct({ id: TemplateId });
|
|
|
5178
5221
|
const TemplatesPublishRequestJson = Schema$1.Struct({
|
|
5179
5222
|
projectId: TemplateProjectId,
|
|
5180
5223
|
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5181
|
-
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
5224
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
|
|
5182
5225
|
expectedWorkspaceRevision: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5183
5226
|
ifCurrentPublicationId: Schema$1.optionalKey(Schema$1.Union([TemplatePublicationId, Schema$1.Null]))
|
|
5184
5227
|
});
|
|
@@ -5190,30 +5233,20 @@ const TemplatesPublish201 = Schema$1.Struct({
|
|
|
5190
5233
|
inputContractId: TemplateInputContractId,
|
|
5191
5234
|
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5192
5235
|
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5193
|
-
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
5236
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
|
|
5194
5237
|
buildIdentity: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5195
5238
|
manifest: Schema$1.Struct({
|
|
5196
5239
|
templateKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5197
|
-
|
|
5198
|
-
|
|
5240
|
+
ir: Schema$1.Struct({
|
|
5241
|
+
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5242
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5199
5243
|
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
5200
5244
|
}),
|
|
5245
|
+
compiler: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5201
5246
|
input: Schema$1.Struct({
|
|
5202
5247
|
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5203
5248
|
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
5204
5249
|
}),
|
|
5205
|
-
environment: Schema$1.Struct({
|
|
5206
|
-
locale: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5207
|
-
timeZone: Schema$1.Literal("UTC"),
|
|
5208
|
-
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
5209
|
-
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" }))),
|
|
5210
|
-
compiler: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5211
|
-
runtime: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5212
|
-
checker: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5213
|
-
lockKind: Schema$1.Literals(["bun", "npm"]),
|
|
5214
|
-
lockDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5215
|
-
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
5216
|
-
}),
|
|
5217
5250
|
assets: Schema$1.Struct({
|
|
5218
5251
|
base: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" })),
|
|
5219
5252
|
entries: Schema$1.Array(Schema$1.Struct({
|
|
@@ -5228,7 +5261,7 @@ const TemplatesPublish201 = Schema$1.Struct({
|
|
|
5228
5261
|
source: Schema$1.Struct({
|
|
5229
5262
|
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5230
5263
|
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5231
|
-
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
5264
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
|
|
5232
5265
|
treeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
5233
5266
|
}),
|
|
5234
5267
|
brand: Schema$1.optionalKey(Schema$1.Struct({
|
|
@@ -5236,6 +5269,7 @@ const TemplatesPublish201 = Schema$1.Struct({
|
|
|
5236
5269
|
css: Schema$1.String,
|
|
5237
5270
|
assets: BrandAssets,
|
|
5238
5271
|
footer: BrandFooter,
|
|
5272
|
+
renderedFooter: BrandRenderedFooter,
|
|
5239
5273
|
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5240
5274
|
rendersFooter: Schema$1.Literals([
|
|
5241
5275
|
"every",
|
|
@@ -5244,7 +5278,7 @@ const TemplatesPublish201 = Schema$1.Struct({
|
|
|
5244
5278
|
])
|
|
5245
5279
|
}))
|
|
5246
5280
|
}),
|
|
5247
|
-
|
|
5281
|
+
ir: Schema$1.Struct({
|
|
5248
5282
|
key: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5249
5283
|
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
5250
5284
|
}),
|
|
@@ -5344,30 +5378,20 @@ const TemplatesGetPublication200 = Schema$1.Struct({
|
|
|
5344
5378
|
inputContractId: TemplateInputContractId,
|
|
5345
5379
|
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5346
5380
|
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5347
|
-
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
5381
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
|
|
5348
5382
|
buildIdentity: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5349
5383
|
manifest: Schema$1.Struct({
|
|
5350
5384
|
templateKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5351
|
-
|
|
5352
|
-
|
|
5385
|
+
ir: Schema$1.Struct({
|
|
5386
|
+
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5387
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5353
5388
|
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
5354
5389
|
}),
|
|
5390
|
+
compiler: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5355
5391
|
input: Schema$1.Struct({
|
|
5356
5392
|
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5357
5393
|
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
5358
5394
|
}),
|
|
5359
|
-
environment: Schema$1.Struct({
|
|
5360
|
-
locale: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5361
|
-
timeZone: Schema$1.Literal("UTC"),
|
|
5362
|
-
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
5363
|
-
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" }))),
|
|
5364
|
-
compiler: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5365
|
-
runtime: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5366
|
-
checker: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5367
|
-
lockKind: Schema$1.Literals(["bun", "npm"]),
|
|
5368
|
-
lockDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5369
|
-
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
5370
|
-
}),
|
|
5371
5395
|
assets: Schema$1.Struct({
|
|
5372
5396
|
base: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" })),
|
|
5373
5397
|
entries: Schema$1.Array(Schema$1.Struct({
|
|
@@ -5382,7 +5406,7 @@ const TemplatesGetPublication200 = Schema$1.Struct({
|
|
|
5382
5406
|
source: Schema$1.Struct({
|
|
5383
5407
|
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5384
5408
|
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5385
|
-
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
5409
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
|
|
5386
5410
|
treeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
5387
5411
|
}),
|
|
5388
5412
|
brand: Schema$1.optionalKey(Schema$1.Struct({
|
|
@@ -5390,6 +5414,7 @@ const TemplatesGetPublication200 = Schema$1.Struct({
|
|
|
5390
5414
|
css: Schema$1.String,
|
|
5391
5415
|
assets: BrandAssets,
|
|
5392
5416
|
footer: BrandFooter,
|
|
5417
|
+
renderedFooter: BrandRenderedFooter,
|
|
5393
5418
|
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5394
5419
|
rendersFooter: Schema$1.Literals([
|
|
5395
5420
|
"every",
|
|
@@ -5398,7 +5423,7 @@ const TemplatesGetPublication200 = Schema$1.Struct({
|
|
|
5398
5423
|
])
|
|
5399
5424
|
}))
|
|
5400
5425
|
}),
|
|
5401
|
-
|
|
5426
|
+
ir: Schema$1.Struct({
|
|
5402
5427
|
key: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5403
5428
|
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
5404
5429
|
}),
|
|
@@ -5827,7 +5852,7 @@ const TemplatesCheckWorkspaceRequestJson = Schema$1.Struct({ expectedRevision: S
|
|
|
5827
5852
|
const TemplatesCheckWorkspace200 = Schema$1.Struct({
|
|
5828
5853
|
projectId: TemplateProjectId,
|
|
5829
5854
|
revision: Schema$1.String,
|
|
5830
|
-
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
5855
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
|
|
5831
5856
|
declaration: Schema$1.Union([Schema$1.Struct({
|
|
5832
5857
|
codeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5833
5858
|
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
@@ -5836,10 +5861,6 @@ const TemplatesCheckWorkspace200 = Schema$1.Struct({
|
|
|
5836
5861
|
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5837
5862
|
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
5838
5863
|
}),
|
|
5839
|
-
runtime: Schema$1.Struct({
|
|
5840
|
-
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
5841
|
-
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" })))
|
|
5842
|
-
}),
|
|
5843
5864
|
fixtures: Schema$1.Array(Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })))
|
|
5844
5865
|
}), Schema$1.Null]),
|
|
5845
5866
|
diagnostics: Schema$1.Array(Schema$1.Struct({
|
|
@@ -6061,7 +6082,7 @@ const TemplatesRenderWorkspaceFixtureRequestJson = Schema$1.Struct({
|
|
|
6061
6082
|
const TemplatesRenderWorkspaceFixture200 = Schema$1.Struct({
|
|
6062
6083
|
projectId: TemplateProjectId,
|
|
6063
6084
|
revision: Schema$1.String,
|
|
6064
|
-
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
6085
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
|
|
6065
6086
|
declaration: Schema$1.Union([Schema$1.Struct({
|
|
6066
6087
|
codeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
6067
6088
|
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
@@ -6070,10 +6091,6 @@ const TemplatesRenderWorkspaceFixture200 = Schema$1.Struct({
|
|
|
6070
6091
|
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
6071
6092
|
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
6072
6093
|
}),
|
|
6073
|
-
runtime: Schema$1.Struct({
|
|
6074
|
-
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
6075
|
-
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" })))
|
|
6076
|
-
}),
|
|
6077
6094
|
fixtures: Schema$1.Array(Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })))
|
|
6078
6095
|
}), Schema$1.Null]),
|
|
6079
6096
|
diagnostics: Schema$1.Array(Schema$1.Struct({
|
|
@@ -6782,7 +6799,7 @@ const TemplatesCreateFamilyFromTemplate500 = InternalError;
|
|
|
6782
6799
|
const TemplatesCreateFamilyFromTemplate504 = GatewayTimeoutError;
|
|
6783
6800
|
const TemplatesAddEntryPathParams = Schema$1.Struct({ projectId: TemplateProjectId });
|
|
6784
6801
|
const TemplatesAddEntryRequestJson = Schema$1.Struct({
|
|
6785
|
-
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
6802
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
|
|
6786
6803
|
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
6787
6804
|
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
6788
6805
|
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
@@ -6814,6 +6831,7 @@ const UnsubscribeList200 = Schema$1.Struct({
|
|
|
6814
6831
|
organizationId: Schema$1.String,
|
|
6815
6832
|
name: Schema$1.String,
|
|
6816
6833
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
6834
|
+
isDefault: Schema$1.Boolean,
|
|
6817
6835
|
memberCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
6818
6836
|
createdAt: Schema$1.String,
|
|
6819
6837
|
updatedAt: Schema$1.String
|
|
@@ -6833,6 +6851,7 @@ const UnsubscribeCreate201 = Schema$1.Struct({
|
|
|
6833
6851
|
organizationId: Schema$1.String,
|
|
6834
6852
|
name: Schema$1.String,
|
|
6835
6853
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
6854
|
+
isDefault: Schema$1.Boolean,
|
|
6836
6855
|
memberCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
6837
6856
|
createdAt: Schema$1.String,
|
|
6838
6857
|
updatedAt: Schema$1.String
|
|
@@ -6899,6 +6918,7 @@ const UnsubscribeRemove200 = Schema$1.Struct({ success: Schema$1.Boolean });
|
|
|
6899
6918
|
const UnsubscribeRemove401 = UnauthorizedError;
|
|
6900
6919
|
const UnsubscribeRemove403 = ForbiddenError;
|
|
6901
6920
|
const UnsubscribeRemove404 = ResourceNotFoundError;
|
|
6921
|
+
const UnsubscribeRemove409 = ConflictError;
|
|
6902
6922
|
const UnsubscribeRemove500 = InternalError;
|
|
6903
6923
|
const UnsubscribeRemove504 = GatewayTimeoutError;
|
|
6904
6924
|
const UnsubscribeUpdatePathParams = Schema$1.Struct({ id: UnsubscribeId });
|
|
@@ -6911,6 +6931,7 @@ const UnsubscribeUpdate200 = Schema$1.Struct({
|
|
|
6911
6931
|
organizationId: Schema$1.String,
|
|
6912
6932
|
name: Schema$1.String,
|
|
6913
6933
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
6934
|
+
isDefault: Schema$1.Boolean,
|
|
6914
6935
|
memberCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
6915
6936
|
createdAt: Schema$1.String,
|
|
6916
6937
|
updatedAt: Schema$1.String
|
|
@@ -6920,6 +6941,22 @@ const UnsubscribeUpdate403 = ForbiddenError;
|
|
|
6920
6941
|
const UnsubscribeUpdate404 = ResourceNotFoundError;
|
|
6921
6942
|
const UnsubscribeUpdate500 = InternalError;
|
|
6922
6943
|
const UnsubscribeUpdate504 = GatewayTimeoutError;
|
|
6944
|
+
const UnsubscribeSetDefaultPathParams = Schema$1.Struct({ id: UnsubscribeId });
|
|
6945
|
+
const UnsubscribeSetDefault200 = Schema$1.Struct({
|
|
6946
|
+
id: UnsubscribeId,
|
|
6947
|
+
organizationId: Schema$1.String,
|
|
6948
|
+
name: Schema$1.String,
|
|
6949
|
+
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
6950
|
+
isDefault: Schema$1.Boolean,
|
|
6951
|
+
memberCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
6952
|
+
createdAt: Schema$1.String,
|
|
6953
|
+
updatedAt: Schema$1.String
|
|
6954
|
+
});
|
|
6955
|
+
const UnsubscribeSetDefault401 = UnauthorizedError;
|
|
6956
|
+
const UnsubscribeSetDefault403 = ForbiddenError;
|
|
6957
|
+
const UnsubscribeSetDefault404 = ResourceNotFoundError;
|
|
6958
|
+
const UnsubscribeSetDefault500 = InternalError;
|
|
6959
|
+
const UnsubscribeSetDefault504 = GatewayTimeoutError;
|
|
6923
6960
|
const UnsubscribeCheckSubscriptionQuery = Schema$1.Struct({
|
|
6924
6961
|
email: Schema$1.String,
|
|
6925
6962
|
groupIds: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
@@ -6962,9 +6999,13 @@ const WebhooksCreateRequestJson = Schema$1.Struct({
|
|
|
6962
6999
|
"message.bounced",
|
|
6963
7000
|
"message.complained",
|
|
6964
7001
|
"message.received",
|
|
7002
|
+
"message.opened",
|
|
7003
|
+
"message.clicked",
|
|
6965
7004
|
"contact.created",
|
|
6966
7005
|
"contact.updated",
|
|
6967
7006
|
"contact.deleted",
|
|
7007
|
+
"contact.unsubscribed",
|
|
7008
|
+
"contact.resubscribed",
|
|
6968
7009
|
"conversation.created",
|
|
6969
7010
|
"conversation.updated",
|
|
6970
7011
|
"conversation.archived",
|
|
@@ -7018,9 +7059,13 @@ const WebhooksUpdateRequestJson = Schema$1.Struct({
|
|
|
7018
7059
|
"message.bounced",
|
|
7019
7060
|
"message.complained",
|
|
7020
7061
|
"message.received",
|
|
7062
|
+
"message.opened",
|
|
7063
|
+
"message.clicked",
|
|
7021
7064
|
"contact.created",
|
|
7022
7065
|
"contact.updated",
|
|
7023
7066
|
"contact.deleted",
|
|
7067
|
+
"contact.unsubscribed",
|
|
7068
|
+
"contact.resubscribed",
|
|
7024
7069
|
"conversation.created",
|
|
7025
7070
|
"conversation.updated",
|
|
7026
7071
|
"conversation.archived",
|
|
@@ -8466,7 +8511,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
8466
8511
|
EmailListSenders500,
|
|
8467
8512
|
EmailListSenders504.pipe(HttpApiSchema.status(504))
|
|
8468
8513
|
]
|
|
8469
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.listSenders").annotate(OpenApi.Summary, "List
|
|
8514
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.listSenders").annotate(OpenApi.Summary, "List senders").annotate(OpenApi.Description, "Returns a paginated list of senders, optionally filtered by verification status, active state, or default flag. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours) and `series`, the last 14 days of daily email sends from the address, oldest first."), HttpApiEndpoint.post("emailAddSender", "/v1/email/senders", {
|
|
8470
8515
|
headers: EmailAddSenderHeaders,
|
|
8471
8516
|
payload: EmailAddSenderRequestJson,
|
|
8472
8517
|
success: EmailAddSender201.pipe(HttpApiSchema.status(201)),
|
|
@@ -8480,7 +8525,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
8480
8525
|
EmailAddSender502.pipe(HttpApiSchema.status(502)),
|
|
8481
8526
|
EmailAddSender504.pipe(HttpApiSchema.status(504))
|
|
8482
8527
|
]
|
|
8483
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addSender").annotate(OpenApi.Summary, "Add a sender
|
|
8528
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addSender").annotate(OpenApi.Summary, "Add a sender").annotate(OpenApi.Description, "Creates a sender. The required Idempotency-Key replays the original sender for an identical request and conflicts when reused with different input."), HttpApiEndpoint.get("emailGetSender", "/v1/email/senders/:id", {
|
|
8484
8529
|
params: EmailGetSenderPathParams,
|
|
8485
8530
|
success: EmailGetSender200,
|
|
8486
8531
|
error: [
|
|
@@ -8490,7 +8535,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
8490
8535
|
EmailGetSender500,
|
|
8491
8536
|
EmailGetSender504.pipe(HttpApiSchema.status(504))
|
|
8492
8537
|
]
|
|
8493
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getSender").annotate(OpenApi.Summary, "Get a sender
|
|
8538
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getSender").annotate(OpenApi.Summary, "Get a sender").annotate(OpenApi.Description, "Returns one sender owned by the authenticated organization. Other organizations' ids are reported as not found."), HttpApiEndpoint.delete("emailRemoveSender", "/v1/email/senders/:id", {
|
|
8494
8539
|
params: EmailRemoveSenderPathParams,
|
|
8495
8540
|
success: EmailRemoveSender200,
|
|
8496
8541
|
error: [
|
|
@@ -8501,7 +8546,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
8501
8546
|
EmailRemoveSender500,
|
|
8502
8547
|
EmailRemoveSender504.pipe(HttpApiSchema.status(504))
|
|
8503
8548
|
]
|
|
8504
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeSender").annotate(OpenApi.Summary, "Remove a sender
|
|
8549
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeSender").annotate(OpenApi.Summary, "Remove a sender").annotate(OpenApi.Description, "Accepts sender removal and marks the sender inactive. A default sender can be removed when no other active sender remains in the organization. It reports the `deleting` lifecycle until removal finishes."), HttpApiEndpoint.post("emailSetDefaultSender", "/v1/email/senders/:id/default", {
|
|
8505
8550
|
params: EmailSetDefaultSenderPathParams,
|
|
8506
8551
|
success: EmailSetDefaultSender200,
|
|
8507
8552
|
error: [
|
|
@@ -8522,7 +8567,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
8522
8567
|
EmailCheckSenderVerification502.pipe(HttpApiSchema.status(502)),
|
|
8523
8568
|
EmailCheckSenderVerification504.pipe(HttpApiSchema.status(504))
|
|
8524
8569
|
]
|
|
8525
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.checkSenderVerification").annotate(OpenApi.Summary, "Check sender verification status").annotate(OpenApi.Description, "Returns the current verification status of a sender
|
|
8570
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.checkSenderVerification").annotate(OpenApi.Summary, "Check sender verification status").annotate(OpenApi.Description, "Returns the current verification status of a sender."), HttpApiEndpoint.get("emailGetStats", "/v1/email/stats", {
|
|
8526
8571
|
query: EmailGetStatsQuery,
|
|
8527
8572
|
success: EmailGetStats200,
|
|
8528
8573
|
error: [
|
|
@@ -8855,7 +8900,15 @@ var OrganizationsGroup = class extends HttpApiGroup.make("Organizations").add(Ht
|
|
|
8855
8900
|
OrganizationsUpdate500,
|
|
8856
8901
|
OrganizationsUpdate504.pipe(HttpApiSchema.status(504))
|
|
8857
8902
|
]
|
|
8858
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "organizations.update").annotate(OpenApi.Summary, "Update the current organization").annotate(OpenApi.Description, "Updates the current organization's profile, regional defaults, reply-to
|
|
8903
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "organizations.update").annotate(OpenApi.Summary, "Update the current organization").annotate(OpenApi.Description, "Updates the current organization's profile, regional defaults, and reply-to default and returns the saved organization. `metadata` is merged into the stored value; every other field is replaced."), HttpApiEndpoint.get("organizationsGetProfile", "/v1/organizations/current/profile", {
|
|
8904
|
+
success: OrganizationsGetProfile200,
|
|
8905
|
+
error: [
|
|
8906
|
+
OrganizationsGetProfile401.pipe(HttpApiSchema.status(401)),
|
|
8907
|
+
OrganizationsGetProfile403.pipe(HttpApiSchema.status(403)),
|
|
8908
|
+
OrganizationsGetProfile500,
|
|
8909
|
+
OrganizationsGetProfile504.pipe(HttpApiSchema.status(504))
|
|
8910
|
+
]
|
|
8911
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "organizations.getProfile").annotate(OpenApi.Summary, "Get the current account profile").annotate(OpenApi.Description, "Returns your identity in the organization authorized by your credential. The ID remains stable across reconnects and display-name changes. Removing and re-adding your membership creates a new ID."), HttpApiEndpoint.post("organizationsDelete", "/v1/organizations/deletion-operations", {
|
|
8859
8912
|
headers: OrganizationsDeleteHeaders,
|
|
8860
8913
|
payload: OrganizationsDeleteRequestJson,
|
|
8861
8914
|
success: OrganizationsDelete202.pipe(HttpApiSchema.status(202)),
|
|
@@ -8963,7 +9016,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
8963
9016
|
TemplatesPublish500,
|
|
8964
9017
|
TemplatesPublish504.pipe(HttpApiSchema.status(504))
|
|
8965
9018
|
]
|
|
8966
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.publish").annotate(OpenApi.Summary, "Publish an exact template commit").annotate(OpenApi.Description, "Builds an exact Git commit and entry path, stores the immutable
|
|
9019
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.publish").annotate(OpenApi.Summary, "Publish an exact template commit").annotate(OpenApi.Description, "Builds an exact Git commit and entry path, stores the immutable compiled IR and its assets, records the input contract it validates against, and makes that publication current."), HttpApiEndpoint.get("templatesGetPublication", "/v1/templates/:id/publications/:publicationId", {
|
|
8967
9020
|
params: TemplatesGetPublicationPathParams,
|
|
8968
9021
|
success: TemplatesGetPublication200,
|
|
8969
9022
|
error: [
|
|
@@ -9252,7 +9305,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
9252
9305
|
TemplatesAddEntry500,
|
|
9253
9306
|
TemplatesAddEntry504.pipe(HttpApiSchema.status(504))
|
|
9254
9307
|
]
|
|
9255
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addEntry").annotate(OpenApi.Summary, "Add a template entry").annotate(OpenApi.Description, "Registers
|
|
9308
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addEntry").annotate(OpenApi.Summary, "Add a template entry").annotate(OpenApi.Description, "Registers a `.tsx` file under `templates/` or `emails/` in an existing template project as its own template and returns it with status 201. The file does not need to exist yet; publishing fails until a commit contains it. Repeating the call with the same entry path, name, and slug returns the existing template.")).annotate(OpenApi.Description, "Git-backed email template projects, workspace editing, immutable publications, and delivery defaults") {};
|
|
9256
9309
|
var UnsubscribeGroupsGroup = class extends HttpApiGroup.make("Unsubscribe Groups").add(HttpApiEndpoint.get("unsubscribeList", "/v1/unsubscribe-groups", {
|
|
9257
9310
|
query: UnsubscribeListQuery,
|
|
9258
9311
|
success: UnsubscribeList200,
|
|
@@ -9262,7 +9315,7 @@ var UnsubscribeGroupsGroup = class extends HttpApiGroup.make("Unsubscribe Groups
|
|
|
9262
9315
|
UnsubscribeList500,
|
|
9263
9316
|
UnsubscribeList504.pipe(HttpApiSchema.status(504))
|
|
9264
9317
|
]
|
|
9265
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "unsubscribe.list").annotate(OpenApi.Summary, "List unsubscribe groups").annotate(OpenApi.Description, "Returns a paginated list of the organization's unsubscribe groups."), HttpApiEndpoint.post("unsubscribeCreate", "/v1/unsubscribe-groups", {
|
|
9318
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "unsubscribe.list").annotate(OpenApi.Summary, "List unsubscribe groups").annotate(OpenApi.Description, "Returns a paginated list of the organization's unsubscribe groups, the default group first."), HttpApiEndpoint.post("unsubscribeCreate", "/v1/unsubscribe-groups", {
|
|
9266
9319
|
payload: UnsubscribeCreateRequestJson,
|
|
9267
9320
|
success: UnsubscribeCreate201.pipe(HttpApiSchema.status(201)),
|
|
9268
9321
|
error: [
|
|
@@ -9311,10 +9364,11 @@ var UnsubscribeGroupsGroup = class extends HttpApiGroup.make("Unsubscribe Groups
|
|
|
9311
9364
|
UnsubscribeRemove401.pipe(HttpApiSchema.status(401)),
|
|
9312
9365
|
UnsubscribeRemove403.pipe(HttpApiSchema.status(403)),
|
|
9313
9366
|
UnsubscribeRemove404.pipe(HttpApiSchema.status(404)),
|
|
9367
|
+
UnsubscribeRemove409.pipe(HttpApiSchema.status(409)),
|
|
9314
9368
|
UnsubscribeRemove500,
|
|
9315
9369
|
UnsubscribeRemove504.pipe(HttpApiSchema.status(504))
|
|
9316
9370
|
]
|
|
9317
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "unsubscribe.remove").annotate(OpenApi.Summary, "Delete an unsubscribe group").annotate(OpenApi.Description, "Permanently deletes an unsubscribe group by its ID."), HttpApiEndpoint.patch("unsubscribeUpdate", "/v1/unsubscribe-groups/:id", {
|
|
9371
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "unsubscribe.remove").annotate(OpenApi.Summary, "Delete an unsubscribe group").annotate(OpenApi.Description, "Permanently deletes an unsubscribe group by its ID. The default group cannot be deleted; make another group the default first. A group a scheduled or running campaign uses cannot be deleted until that run finishes or is cancelled."), HttpApiEndpoint.patch("unsubscribeUpdate", "/v1/unsubscribe-groups/:id", {
|
|
9318
9372
|
params: UnsubscribeUpdatePathParams,
|
|
9319
9373
|
payload: UnsubscribeUpdateRequestJson,
|
|
9320
9374
|
success: UnsubscribeUpdate200,
|
|
@@ -9325,7 +9379,17 @@ var UnsubscribeGroupsGroup = class extends HttpApiGroup.make("Unsubscribe Groups
|
|
|
9325
9379
|
UnsubscribeUpdate500,
|
|
9326
9380
|
UnsubscribeUpdate504.pipe(HttpApiSchema.status(504))
|
|
9327
9381
|
]
|
|
9328
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "unsubscribe.update").annotate(OpenApi.Summary, "Update an unsubscribe group").annotate(OpenApi.Description, "Updates the name or description of an unsubscribe group."), HttpApiEndpoint.
|
|
9382
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "unsubscribe.update").annotate(OpenApi.Summary, "Update an unsubscribe group").annotate(OpenApi.Description, "Updates the name or description of an unsubscribe group."), HttpApiEndpoint.post("unsubscribeSetDefault", "/v1/unsubscribe-groups/:id/default", {
|
|
9383
|
+
params: UnsubscribeSetDefaultPathParams,
|
|
9384
|
+
success: UnsubscribeSetDefault200,
|
|
9385
|
+
error: [
|
|
9386
|
+
UnsubscribeSetDefault401.pipe(HttpApiSchema.status(401)),
|
|
9387
|
+
UnsubscribeSetDefault403.pipe(HttpApiSchema.status(403)),
|
|
9388
|
+
UnsubscribeSetDefault404.pipe(HttpApiSchema.status(404)),
|
|
9389
|
+
UnsubscribeSetDefault500,
|
|
9390
|
+
UnsubscribeSetDefault504.pipe(HttpApiSchema.status(504))
|
|
9391
|
+
]
|
|
9392
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "unsubscribe.setDefault").annotate(OpenApi.Summary, "Make an unsubscribe group the default").annotate(OpenApi.Description, "Makes this group the organization's default: campaigns that name no group, and whose template and sending domain name none, unsubscribe recipients from it."), HttpApiEndpoint.get("unsubscribeCheckSubscription", "/v1/unsubscribe-groups/check", {
|
|
9329
9393
|
query: UnsubscribeCheckSubscriptionQuery,
|
|
9330
9394
|
success: UnsubscribeCheckSubscription200,
|
|
9331
9395
|
error: [
|
|
@@ -9448,7 +9512,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
9448
9512
|
WebhooksGetStats504.pipe(HttpApiSchema.status(504))
|
|
9449
9513
|
]
|
|
9450
9514
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.getStats").annotate(OpenApi.Summary, "Get webhook delivery statistics").annotate(OpenApi.Description, "Returns aggregate pending, delivered, exhausted, and cancelled delivery counts for a webhook endpoint, plus the same counts per organization-local calendar day over the selected period of 7, 30, or 90 days. Deliveries are retained for 90 days, so 90d is the whole history.")).annotate(OpenApi.Description, "Customer event webhook management, testing, and delivery logs") {};
|
|
9451
|
-
var SamvaApi = class extends HttpApi.make("SamvaApi").annotate(OpenApi.Title, "Samva API").annotate(OpenApi.Version, "1.0.0").annotate(OpenApi.Description, "Samva is
|
|
9515
|
+
var SamvaApi = class extends HttpApi.make("SamvaApi").annotate(OpenApi.Title, "Samva API").annotate(OpenApi.Version, "1.0.0").annotate(OpenApi.Description, "Samva is the email API for your app. Send transactional email in one typed call. Delivery events and customer replies come back as signed webhooks, and replies thread to the email they answer.").annotate(OpenApi.Servers, [{ url: "https://api.samva.dev" }]).add(AnalyticsGroup, APIKeysGroup, AttachmentsGroup, BrandsGroup, CampaignsGroup, ContactGroupsGroup, ContactsGroup, ConversationsGroup, CustomFieldsGroup, EmailGroup, MediaGroup, MessagesGroup, ScheduledMessagesGroup, OperationsGroup, OrganizationsGroup, TemplatesGroup, UnsubscribeGroupsGroup, WebhooksGroup) {};
|
|
9452
9516
|
//#endregion
|
|
9453
9517
|
//#region src/effect/internal/client.ts
|
|
9454
9518
|
const DEFAULT_BASE_URL = "https://api.samva.dev";
|
|
@@ -9484,4 +9548,4 @@ const raw = Effect.map(Service, (client) => client.raw);
|
|
|
9484
9548
|
//#endregion
|
|
9485
9549
|
export { UpdateWebhookPayload as A, ResourceNotFoundError as C, UnauthorizedError as D, TrackingRecipientEmail as E, UpdateBrand as O, RateLimitedError as S, TestWebhookPayload as T, ForbiddenError as _, AnalyticsQueryError as a, OnboardingReviewRequiredError as b, CampaignFooterRequiredError as c, CreateTemplatePayload as d, CreateWebhookPayload as f, FlagDisabledError as g, ExternalServiceError as h, raw as i, ValidationError as j, UpdateTemplatePayload as k, ConflictError as l, EmailChannelError as m, layer as n, BillingProviderError as o, DeliveryUnavailableError as p, layerFetch as r, BrandAddressRequiredError as s, Service as t, CreateBrand as u, GatewayTimeoutError as v, SamvaApi as w, PaymentRequiredError as x, InternalError as y };
|
|
9486
9550
|
|
|
9487
|
-
//# sourceMappingURL=client-
|
|
9551
|
+
//# sourceMappingURL=client-ByJHYp7r.js.map
|