samva 0.7.0 → 0.9.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 -30
- package/dist/client/types.gen.d.ts +133 -175
- package/dist/{client-5O8KsY5Z.js → client-DB7zbTti.js} +156 -209
- package/dist/{client-attribution-27MNycCV.js → client-attribution-vK1yjEdG.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 -568
- 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 -125
- package/dist/effect/templates.js +3 -5
- 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-Cdp1EI_1.js} +7 -6
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-C2yyw-pf.js → promises-DoEUUjNM.js} +51 -63
- package/dist/service-map.d.ts +9 -5
- 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-vK1yjEdG.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({
|
|
@@ -6192,111 +6209,6 @@ const TemplatesWorkspaceHistory404 = ResourceNotFoundError;
|
|
|
6192
6209
|
const TemplatesWorkspaceHistory409 = ConflictError;
|
|
6193
6210
|
const TemplatesWorkspaceHistory500 = InternalError;
|
|
6194
6211
|
const TemplatesWorkspaceHistory504 = GatewayTimeoutError;
|
|
6195
|
-
const TemplatesReconcileWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
6196
|
-
const TemplatesReconcileWorkspaceRequestJson = Schema$1.Struct({
|
|
6197
|
-
expectedRevision: Schema$1.String,
|
|
6198
|
-
assetResolution: Schema$1.optionalKey(Schema$1.Literals(["draft", "remote"])),
|
|
6199
|
-
expectedRemoteHead: Schema$1.optionalKey(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}$" }))),
|
|
6200
|
-
idempotencyKey: 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" }))
|
|
6201
|
-
});
|
|
6202
|
-
const TemplatesReconcileWorkspace200 = Schema$1.Struct({
|
|
6203
|
-
workspace: Schema$1.Struct({
|
|
6204
|
-
projectId: TemplateProjectId,
|
|
6205
|
-
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
6206
|
-
ownerEpoch: 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" })),
|
|
6207
|
-
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
6208
|
-
defaultBranch: 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" })),
|
|
6209
|
-
baseCommit: 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}$" })),
|
|
6210
|
-
remoteHead: 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}$" })),
|
|
6211
|
-
pendingRemoteHead: Schema$1.Union([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}$" })), Schema$1.Null]),
|
|
6212
|
-
revision: Schema$1.String,
|
|
6213
|
-
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
6214
|
-
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
6215
|
-
path: Schema$1.String,
|
|
6216
|
-
status: Schema$1.Literals([
|
|
6217
|
-
"added",
|
|
6218
|
-
"modified",
|
|
6219
|
-
"deleted"
|
|
6220
|
-
])
|
|
6221
|
-
})),
|
|
6222
|
-
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
6223
|
-
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
6224
|
-
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
6225
|
-
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
6226
|
-
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
6227
|
-
})),
|
|
6228
|
-
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
6229
|
-
kind: Schema$1.String,
|
|
6230
|
-
digest: Schema$1.String,
|
|
6231
|
-
locator: Schema$1.optionalKey(Schema$1.String)
|
|
6232
|
-
})) }),
|
|
6233
|
-
mounts: Schema$1.Array(Schema$1.Union([
|
|
6234
|
-
Schema$1.Struct({
|
|
6235
|
-
kind: Schema$1.Literal("project"),
|
|
6236
|
-
root: Schema$1.Literal("/project"),
|
|
6237
|
-
access: Schema$1.Literal("read-write")
|
|
6238
|
-
}),
|
|
6239
|
-
Schema$1.Struct({
|
|
6240
|
-
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
6241
|
-
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}$" })),
|
|
6242
|
-
fileCount: 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" })),
|
|
6243
|
-
byteSize: 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" })),
|
|
6244
|
-
kind: Schema$1.Literal("started-from"),
|
|
6245
|
-
access: Schema$1.Literal("read-only"),
|
|
6246
|
-
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" })),
|
|
6247
|
-
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
6248
|
-
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
6249
|
-
}),
|
|
6250
|
-
Schema$1.Struct({
|
|
6251
|
-
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
6252
|
-
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}$" })),
|
|
6253
|
-
fileCount: 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" })),
|
|
6254
|
-
byteSize: 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" })),
|
|
6255
|
-
kind: Schema$1.Literal("resource"),
|
|
6256
|
-
access: Schema$1.Literal("read-only"),
|
|
6257
|
-
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
6258
|
-
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
6259
|
-
}),
|
|
6260
|
-
Schema$1.Struct({
|
|
6261
|
-
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
6262
|
-
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}$" })),
|
|
6263
|
-
fileCount: 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" })),
|
|
6264
|
-
byteSize: 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" })),
|
|
6265
|
-
kind: Schema$1.Literal("library-template"),
|
|
6266
|
-
access: Schema$1.Literal("read-only"),
|
|
6267
|
-
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" })),
|
|
6268
|
-
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
6269
|
-
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
6270
|
-
})
|
|
6271
|
-
])),
|
|
6272
|
-
libraryManifestDigest: 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}$" })),
|
|
6273
|
-
createdAt: Schema$1.String,
|
|
6274
|
-
updatedAt: Schema$1.String,
|
|
6275
|
-
createdBy: Schema$1.Struct({
|
|
6276
|
-
userId: UserId,
|
|
6277
|
-
via: Schema$1.Literals([
|
|
6278
|
-
"api",
|
|
6279
|
-
"mcp",
|
|
6280
|
-
"agent"
|
|
6281
|
-
])
|
|
6282
|
-
}),
|
|
6283
|
-
updatedBy: Schema$1.Struct({
|
|
6284
|
-
userId: UserId,
|
|
6285
|
-
via: Schema$1.Literals([
|
|
6286
|
-
"api",
|
|
6287
|
-
"mcp",
|
|
6288
|
-
"agent"
|
|
6289
|
-
])
|
|
6290
|
-
})
|
|
6291
|
-
}),
|
|
6292
|
-
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
6293
|
-
});
|
|
6294
|
-
const TemplatesReconcileWorkspace401 = UnauthorizedError;
|
|
6295
|
-
const TemplatesReconcileWorkspace403 = ForbiddenError;
|
|
6296
|
-
const TemplatesReconcileWorkspace404 = ResourceNotFoundError;
|
|
6297
|
-
const TemplatesReconcileWorkspace409 = ConflictError;
|
|
6298
|
-
const TemplatesReconcileWorkspace500 = InternalError;
|
|
6299
|
-
const TemplatesReconcileWorkspace504 = GatewayTimeoutError;
|
|
6300
6212
|
const TemplatesAttachWorkspaceResourcePathParams = Schema$1.Struct({ id: TemplateId });
|
|
6301
6213
|
const TemplatesAttachWorkspaceResourceRequestJson = Schema$1.Struct({
|
|
6302
6214
|
expectedRevision: Schema$1.String,
|
|
@@ -6782,7 +6694,7 @@ const TemplatesCreateFamilyFromTemplate500 = InternalError;
|
|
|
6782
6694
|
const TemplatesCreateFamilyFromTemplate504 = GatewayTimeoutError;
|
|
6783
6695
|
const TemplatesAddEntryPathParams = Schema$1.Struct({ projectId: TemplateProjectId });
|
|
6784
6696
|
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$" })),
|
|
6697
|
+
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
6698
|
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
6699
|
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
6700
|
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
@@ -6814,6 +6726,7 @@ const UnsubscribeList200 = Schema$1.Struct({
|
|
|
6814
6726
|
organizationId: Schema$1.String,
|
|
6815
6727
|
name: Schema$1.String,
|
|
6816
6728
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
6729
|
+
isDefault: Schema$1.Boolean,
|
|
6817
6730
|
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
6731
|
createdAt: Schema$1.String,
|
|
6819
6732
|
updatedAt: Schema$1.String
|
|
@@ -6833,6 +6746,7 @@ const UnsubscribeCreate201 = Schema$1.Struct({
|
|
|
6833
6746
|
organizationId: Schema$1.String,
|
|
6834
6747
|
name: Schema$1.String,
|
|
6835
6748
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
6749
|
+
isDefault: Schema$1.Boolean,
|
|
6836
6750
|
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
6751
|
createdAt: Schema$1.String,
|
|
6838
6752
|
updatedAt: Schema$1.String
|
|
@@ -6899,6 +6813,7 @@ const UnsubscribeRemove200 = Schema$1.Struct({ success: Schema$1.Boolean });
|
|
|
6899
6813
|
const UnsubscribeRemove401 = UnauthorizedError;
|
|
6900
6814
|
const UnsubscribeRemove403 = ForbiddenError;
|
|
6901
6815
|
const UnsubscribeRemove404 = ResourceNotFoundError;
|
|
6816
|
+
const UnsubscribeRemove409 = ConflictError;
|
|
6902
6817
|
const UnsubscribeRemove500 = InternalError;
|
|
6903
6818
|
const UnsubscribeRemove504 = GatewayTimeoutError;
|
|
6904
6819
|
const UnsubscribeUpdatePathParams = Schema$1.Struct({ id: UnsubscribeId });
|
|
@@ -6911,6 +6826,7 @@ const UnsubscribeUpdate200 = Schema$1.Struct({
|
|
|
6911
6826
|
organizationId: Schema$1.String,
|
|
6912
6827
|
name: Schema$1.String,
|
|
6913
6828
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
6829
|
+
isDefault: Schema$1.Boolean,
|
|
6914
6830
|
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
6831
|
createdAt: Schema$1.String,
|
|
6916
6832
|
updatedAt: Schema$1.String
|
|
@@ -6920,6 +6836,22 @@ const UnsubscribeUpdate403 = ForbiddenError;
|
|
|
6920
6836
|
const UnsubscribeUpdate404 = ResourceNotFoundError;
|
|
6921
6837
|
const UnsubscribeUpdate500 = InternalError;
|
|
6922
6838
|
const UnsubscribeUpdate504 = GatewayTimeoutError;
|
|
6839
|
+
const UnsubscribeSetDefaultPathParams = Schema$1.Struct({ id: UnsubscribeId });
|
|
6840
|
+
const UnsubscribeSetDefault200 = Schema$1.Struct({
|
|
6841
|
+
id: UnsubscribeId,
|
|
6842
|
+
organizationId: Schema$1.String,
|
|
6843
|
+
name: Schema$1.String,
|
|
6844
|
+
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
6845
|
+
isDefault: Schema$1.Boolean,
|
|
6846
|
+
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" })),
|
|
6847
|
+
createdAt: Schema$1.String,
|
|
6848
|
+
updatedAt: Schema$1.String
|
|
6849
|
+
});
|
|
6850
|
+
const UnsubscribeSetDefault401 = UnauthorizedError;
|
|
6851
|
+
const UnsubscribeSetDefault403 = ForbiddenError;
|
|
6852
|
+
const UnsubscribeSetDefault404 = ResourceNotFoundError;
|
|
6853
|
+
const UnsubscribeSetDefault500 = InternalError;
|
|
6854
|
+
const UnsubscribeSetDefault504 = GatewayTimeoutError;
|
|
6923
6855
|
const UnsubscribeCheckSubscriptionQuery = Schema$1.Struct({
|
|
6924
6856
|
email: Schema$1.String,
|
|
6925
6857
|
groupIds: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
@@ -6962,9 +6894,13 @@ const WebhooksCreateRequestJson = Schema$1.Struct({
|
|
|
6962
6894
|
"message.bounced",
|
|
6963
6895
|
"message.complained",
|
|
6964
6896
|
"message.received",
|
|
6897
|
+
"message.opened",
|
|
6898
|
+
"message.clicked",
|
|
6965
6899
|
"contact.created",
|
|
6966
6900
|
"contact.updated",
|
|
6967
6901
|
"contact.deleted",
|
|
6902
|
+
"contact.unsubscribed",
|
|
6903
|
+
"contact.resubscribed",
|
|
6968
6904
|
"conversation.created",
|
|
6969
6905
|
"conversation.updated",
|
|
6970
6906
|
"conversation.archived",
|
|
@@ -7018,9 +6954,13 @@ const WebhooksUpdateRequestJson = Schema$1.Struct({
|
|
|
7018
6954
|
"message.bounced",
|
|
7019
6955
|
"message.complained",
|
|
7020
6956
|
"message.received",
|
|
6957
|
+
"message.opened",
|
|
6958
|
+
"message.clicked",
|
|
7021
6959
|
"contact.created",
|
|
7022
6960
|
"contact.updated",
|
|
7023
6961
|
"contact.deleted",
|
|
6962
|
+
"contact.unsubscribed",
|
|
6963
|
+
"contact.resubscribed",
|
|
7024
6964
|
"conversation.created",
|
|
7025
6965
|
"conversation.updated",
|
|
7026
6966
|
"conversation.archived",
|
|
@@ -8466,7 +8406,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
8466
8406
|
EmailListSenders500,
|
|
8467
8407
|
EmailListSenders504.pipe(HttpApiSchema.status(504))
|
|
8468
8408
|
]
|
|
8469
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.listSenders").annotate(OpenApi.Summary, "List
|
|
8409
|
+
}).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
8410
|
headers: EmailAddSenderHeaders,
|
|
8471
8411
|
payload: EmailAddSenderRequestJson,
|
|
8472
8412
|
success: EmailAddSender201.pipe(HttpApiSchema.status(201)),
|
|
@@ -8480,7 +8420,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
8480
8420
|
EmailAddSender502.pipe(HttpApiSchema.status(502)),
|
|
8481
8421
|
EmailAddSender504.pipe(HttpApiSchema.status(504))
|
|
8482
8422
|
]
|
|
8483
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addSender").annotate(OpenApi.Summary, "Add a sender
|
|
8423
|
+
}).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
8424
|
params: EmailGetSenderPathParams,
|
|
8485
8425
|
success: EmailGetSender200,
|
|
8486
8426
|
error: [
|
|
@@ -8490,7 +8430,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
8490
8430
|
EmailGetSender500,
|
|
8491
8431
|
EmailGetSender504.pipe(HttpApiSchema.status(504))
|
|
8492
8432
|
]
|
|
8493
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getSender").annotate(OpenApi.Summary, "Get a sender
|
|
8433
|
+
}).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
8434
|
params: EmailRemoveSenderPathParams,
|
|
8495
8435
|
success: EmailRemoveSender200,
|
|
8496
8436
|
error: [
|
|
@@ -8501,7 +8441,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
8501
8441
|
EmailRemoveSender500,
|
|
8502
8442
|
EmailRemoveSender504.pipe(HttpApiSchema.status(504))
|
|
8503
8443
|
]
|
|
8504
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeSender").annotate(OpenApi.Summary, "Remove a sender
|
|
8444
|
+
}).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
8445
|
params: EmailSetDefaultSenderPathParams,
|
|
8506
8446
|
success: EmailSetDefaultSender200,
|
|
8507
8447
|
error: [
|
|
@@ -8522,7 +8462,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
8522
8462
|
EmailCheckSenderVerification502.pipe(HttpApiSchema.status(502)),
|
|
8523
8463
|
EmailCheckSenderVerification504.pipe(HttpApiSchema.status(504))
|
|
8524
8464
|
]
|
|
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
|
|
8465
|
+
}).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
8466
|
query: EmailGetStatsQuery,
|
|
8527
8467
|
success: EmailGetStats200,
|
|
8528
8468
|
error: [
|
|
@@ -8855,7 +8795,15 @@ var OrganizationsGroup = class extends HttpApiGroup.make("Organizations").add(Ht
|
|
|
8855
8795
|
OrganizationsUpdate500,
|
|
8856
8796
|
OrganizationsUpdate504.pipe(HttpApiSchema.status(504))
|
|
8857
8797
|
]
|
|
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
|
|
8798
|
+
}).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", {
|
|
8799
|
+
success: OrganizationsGetProfile200,
|
|
8800
|
+
error: [
|
|
8801
|
+
OrganizationsGetProfile401.pipe(HttpApiSchema.status(401)),
|
|
8802
|
+
OrganizationsGetProfile403.pipe(HttpApiSchema.status(403)),
|
|
8803
|
+
OrganizationsGetProfile500,
|
|
8804
|
+
OrganizationsGetProfile504.pipe(HttpApiSchema.status(504))
|
|
8805
|
+
]
|
|
8806
|
+
}).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
8807
|
headers: OrganizationsDeleteHeaders,
|
|
8860
8808
|
payload: OrganizationsDeleteRequestJson,
|
|
8861
8809
|
success: OrganizationsDelete202.pipe(HttpApiSchema.status(202)),
|
|
@@ -8963,7 +8911,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
8963
8911
|
TemplatesPublish500,
|
|
8964
8912
|
TemplatesPublish504.pipe(HttpApiSchema.status(504))
|
|
8965
8913
|
]
|
|
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
|
|
8914
|
+
}).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
8915
|
params: TemplatesGetPublicationPathParams,
|
|
8968
8916
|
success: TemplatesGetPublication200,
|
|
8969
8917
|
error: [
|
|
@@ -9092,19 +9040,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
9092
9040
|
TemplatesWorkspaceHistory500,
|
|
9093
9041
|
TemplatesWorkspaceHistory504.pipe(HttpApiSchema.status(504))
|
|
9094
9042
|
]
|
|
9095
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.workspaceHistory").annotate(OpenApi.Summary, "List template project commit history").annotate(OpenApi.Description, "Returns recent history from the template repository's default branch."), HttpApiEndpoint.post("
|
|
9096
|
-
params: TemplatesReconcileWorkspacePathParams,
|
|
9097
|
-
payload: TemplatesReconcileWorkspaceRequestJson,
|
|
9098
|
-
success: TemplatesReconcileWorkspace200,
|
|
9099
|
-
error: [
|
|
9100
|
-
TemplatesReconcileWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
9101
|
-
TemplatesReconcileWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
9102
|
-
TemplatesReconcileWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
9103
|
-
TemplatesReconcileWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
9104
|
-
TemplatesReconcileWorkspace500,
|
|
9105
|
-
TemplatesReconcileWorkspace504.pipe(HttpApiSchema.status(504))
|
|
9106
|
-
]
|
|
9107
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.reconcileWorkspace").annotate(OpenApi.Summary, "Reconcile a template project workspace").annotate(OpenApi.Description, "Fast-forwards or rebases the workspace onto the latest saved version, retaining file conflicts for explicit resolution."), HttpApiEndpoint.post("templatesAttachWorkspaceResource", "/v1/templates/:id/workspace/resources", {
|
|
9043
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.workspaceHistory").annotate(OpenApi.Summary, "List template project commit history").annotate(OpenApi.Description, "Returns recent history from the template repository's default branch."), HttpApiEndpoint.post("templatesAttachWorkspaceResource", "/v1/templates/:id/workspace/resources", {
|
|
9108
9044
|
params: TemplatesAttachWorkspaceResourcePathParams,
|
|
9109
9045
|
payload: TemplatesAttachWorkspaceResourceRequestJson,
|
|
9110
9046
|
success: TemplatesAttachWorkspaceResource200,
|
|
@@ -9252,7 +9188,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
9252
9188
|
TemplatesAddEntry500,
|
|
9253
9189
|
TemplatesAddEntry504.pipe(HttpApiSchema.status(504))
|
|
9254
9190
|
]
|
|
9255
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addEntry").annotate(OpenApi.Summary, "Add a template entry").annotate(OpenApi.Description, "Registers
|
|
9191
|
+
}).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
9192
|
var UnsubscribeGroupsGroup = class extends HttpApiGroup.make("Unsubscribe Groups").add(HttpApiEndpoint.get("unsubscribeList", "/v1/unsubscribe-groups", {
|
|
9257
9193
|
query: UnsubscribeListQuery,
|
|
9258
9194
|
success: UnsubscribeList200,
|
|
@@ -9262,7 +9198,7 @@ var UnsubscribeGroupsGroup = class extends HttpApiGroup.make("Unsubscribe Groups
|
|
|
9262
9198
|
UnsubscribeList500,
|
|
9263
9199
|
UnsubscribeList504.pipe(HttpApiSchema.status(504))
|
|
9264
9200
|
]
|
|
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", {
|
|
9201
|
+
}).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
9202
|
payload: UnsubscribeCreateRequestJson,
|
|
9267
9203
|
success: UnsubscribeCreate201.pipe(HttpApiSchema.status(201)),
|
|
9268
9204
|
error: [
|
|
@@ -9311,10 +9247,11 @@ var UnsubscribeGroupsGroup = class extends HttpApiGroup.make("Unsubscribe Groups
|
|
|
9311
9247
|
UnsubscribeRemove401.pipe(HttpApiSchema.status(401)),
|
|
9312
9248
|
UnsubscribeRemove403.pipe(HttpApiSchema.status(403)),
|
|
9313
9249
|
UnsubscribeRemove404.pipe(HttpApiSchema.status(404)),
|
|
9250
|
+
UnsubscribeRemove409.pipe(HttpApiSchema.status(409)),
|
|
9314
9251
|
UnsubscribeRemove500,
|
|
9315
9252
|
UnsubscribeRemove504.pipe(HttpApiSchema.status(504))
|
|
9316
9253
|
]
|
|
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", {
|
|
9254
|
+
}).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
9255
|
params: UnsubscribeUpdatePathParams,
|
|
9319
9256
|
payload: UnsubscribeUpdateRequestJson,
|
|
9320
9257
|
success: UnsubscribeUpdate200,
|
|
@@ -9325,7 +9262,17 @@ var UnsubscribeGroupsGroup = class extends HttpApiGroup.make("Unsubscribe Groups
|
|
|
9325
9262
|
UnsubscribeUpdate500,
|
|
9326
9263
|
UnsubscribeUpdate504.pipe(HttpApiSchema.status(504))
|
|
9327
9264
|
]
|
|
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.
|
|
9265
|
+
}).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", {
|
|
9266
|
+
params: UnsubscribeSetDefaultPathParams,
|
|
9267
|
+
success: UnsubscribeSetDefault200,
|
|
9268
|
+
error: [
|
|
9269
|
+
UnsubscribeSetDefault401.pipe(HttpApiSchema.status(401)),
|
|
9270
|
+
UnsubscribeSetDefault403.pipe(HttpApiSchema.status(403)),
|
|
9271
|
+
UnsubscribeSetDefault404.pipe(HttpApiSchema.status(404)),
|
|
9272
|
+
UnsubscribeSetDefault500,
|
|
9273
|
+
UnsubscribeSetDefault504.pipe(HttpApiSchema.status(504))
|
|
9274
|
+
]
|
|
9275
|
+
}).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
9276
|
query: UnsubscribeCheckSubscriptionQuery,
|
|
9330
9277
|
success: UnsubscribeCheckSubscription200,
|
|
9331
9278
|
error: [
|
|
@@ -9448,7 +9395,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
9448
9395
|
WebhooksGetStats504.pipe(HttpApiSchema.status(504))
|
|
9449
9396
|
]
|
|
9450
9397
|
}).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
|
|
9398
|
+
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
9399
|
//#endregion
|
|
9453
9400
|
//#region src/effect/internal/client.ts
|
|
9454
9401
|
const DEFAULT_BASE_URL = "https://api.samva.dev";
|
|
@@ -9484,4 +9431,4 @@ const raw = Effect.map(Service, (client) => client.raw);
|
|
|
9484
9431
|
//#endregion
|
|
9485
9432
|
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
9433
|
|
|
9487
|
-
//# sourceMappingURL=client-
|
|
9434
|
+
//# sourceMappingURL=client-DB7zbTti.js.map
|