samva 0.23.1 → 0.25.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 +96 -4
- package/dist/client/sdk.gen.js +15 -8
- package/dist/client/types.gen.d.ts +559 -24
- package/dist/effect/api-keys.d.ts +3 -0
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/email.d.ts +2 -1
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/generated/agents.d.ts +1667 -0
- package/dist/effect/generated/api-keys.d.ts +15 -0
- package/dist/effect/generated/campaigns.d.ts +4 -4
- package/dist/effect/generated/campaigns.js +2 -1
- package/dist/effect/generated/email.d.ts +19 -0
- package/dist/effect/generated/email.js +8 -3
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/mailboxes.d.ts +176 -98
- package/dist/effect/generated/mailboxes.js +35 -26
- package/dist/effect/generated/messages.d.ts +12 -52
- package/dist/effect/generated/messages.js +5 -4
- package/dist/effect/generated/organizations.d.ts +18 -0
- package/dist/effect/generated/organizations.js +7 -1
- package/dist/effect/generated/scheduled-messages.d.ts +4 -24
- package/dist/effect/generated/scheduled-messages.js +2 -2
- package/dist/effect/generated/shared.d.ts +201 -45
- package/dist/effect/generated/shared.js +62 -36
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -1
- package/dist/effect/generated/templates.d.ts +11 -7
- package/dist/effect/generated/templates.js +4 -7
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +12 -0
- package/dist/effect/generated/whoami.d.ts +4 -0
- package/dist/effect/generated-metadata.d.ts +49 -0
- package/dist/effect/generated-metadata.js +469 -426
- package/dist/effect/index.js +2 -2
- package/dist/effect/journeys.d.ts +112 -112
- package/dist/effect/mailboxes.d.ts +20 -6
- package/dist/effect/messages.d.ts +1 -1
- package/dist/effect/templates.d.ts +4 -0
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +12 -2
- package/dist/promises/errors.gen.js +31 -1
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,11 @@ import { HttpApiMiddleware, HttpApiSecurity } from "effect/http-api";
|
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
//#region src/effect/generated/shared.ts
|
|
5
5
|
const JsonValue = Schema.suspend(() => __recursive_JsonValue);
|
|
6
|
-
|
|
6
|
+
const Cursor = /* @__PURE__ */ Schema.String.annotate({ identifier: "Cursor" });
|
|
7
|
+
const NamespaceId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^ns_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
8
|
+
expected: "a string matching the RegExp ^ns_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
9
|
+
identifier: "NamespaceId"
|
|
10
|
+
})).pipe(Schema.brand("NamespaceId"));
|
|
7
11
|
var UnauthorizedError = class extends Schema.TaggedError()("UnauthorizedError", Schema.Struct({ message: Schema.String })) {};
|
|
8
12
|
var ForbiddenError = class extends Schema.TaggedError()("ForbiddenError", Schema.Struct({ message: Schema.String })) {};
|
|
9
13
|
var ValidationError = class extends Schema.TaggedError()("ValidationError", Schema.Struct({
|
|
@@ -15,7 +19,31 @@ var GatewayTimeoutError = class extends Schema.TaggedError()("GatewayTimeoutErro
|
|
|
15
19
|
message: Schema.String,
|
|
16
20
|
retryAfterSeconds: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
17
21
|
})) {};
|
|
18
|
-
|
|
22
|
+
Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" });
|
|
23
|
+
const MailboxEndpointId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
24
|
+
expected: "a string matching the RegExp ^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
25
|
+
identifier: "MailboxEndpointId"
|
|
26
|
+
})).pipe(Schema.brand("MailboxEndpointId"));
|
|
27
|
+
Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z]{2,8}_[0-9a-z]{16}$", "u")).annotate({
|
|
28
|
+
expected: "a string matching the RegExp ^[a-z]{2,8}_[0-9a-z]{16}$",
|
|
29
|
+
identifier: "AgentIntegrationReference"
|
|
30
|
+
});
|
|
31
|
+
Schema.isPattern(/* @__PURE__ */ new RegExp("^(?:[01]\\d|2[0-3]):[0-5]\\d$", "u")).annotate({
|
|
32
|
+
expected: "a string matching the RegExp ^(?:[01]\\d|2[0-3]):[0-5]\\d$",
|
|
33
|
+
identifier: "ClockTime"
|
|
34
|
+
});
|
|
35
|
+
var ResourceNotFoundError = class extends Schema.TaggedError()("ResourceNotFoundError", Schema.Struct({
|
|
36
|
+
resource: Schema.String,
|
|
37
|
+
id: Schema.String,
|
|
38
|
+
message: Schema.String
|
|
39
|
+
})) {};
|
|
40
|
+
var ConflictError = class extends Schema.TaggedError()("ConflictError", Schema.Struct({
|
|
41
|
+
message: Schema.String,
|
|
42
|
+
resource: Schema.String,
|
|
43
|
+
id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
44
|
+
})) {};
|
|
45
|
+
const VersionCursor = /* @__PURE__ */ Schema.String.annotate({ identifier: "VersionCursor" });
|
|
46
|
+
var AnalyticsQueryError = class extends Schema.TaggedError()("AnalyticsQueryError", Schema.Struct({ message: Schema.String })) {};
|
|
19
47
|
const ApiKeyResourceAccess = /* @__PURE__ */ Schema.Struct({
|
|
20
48
|
messages: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("read"), Schema.Literal("write")]), Schema.Null])),
|
|
21
49
|
email: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("read"), Schema.Literal("write")]), Schema.Null])),
|
|
@@ -24,6 +52,7 @@ const ApiKeyResourceAccess = /* @__PURE__ */ Schema.Struct({
|
|
|
24
52
|
contacts: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("read"), Schema.Literal("write")]), Schema.Null])),
|
|
25
53
|
conversations: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("read"), Schema.Literal("write")]), Schema.Null])),
|
|
26
54
|
templates: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("read"), Schema.Literal("write")]), Schema.Null])),
|
|
55
|
+
agents: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("read"), Schema.Literal("write")]), Schema.Null])),
|
|
27
56
|
webhooks: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("read"), Schema.Literal("write")]), Schema.Null])),
|
|
28
57
|
apiKeys: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("read"), Schema.Literal("write")]), Schema.Null])),
|
|
29
58
|
organization: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("read"), Schema.Literal("write")]), Schema.Null])),
|
|
@@ -38,21 +67,12 @@ const MailboxSendMode = /* @__PURE__ */ Schema.Union([Schema.Literal("send"), Sc
|
|
|
38
67
|
description: "How the grantee's sends execute: `send` runs them within account limits; `approval` holds each one until a different member approves it.",
|
|
39
68
|
identifier: "MailboxSendMode"
|
|
40
69
|
});
|
|
41
|
-
const NamespaceId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^ns_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
42
|
-
expected: "a string matching the RegExp ^ns_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
43
|
-
identifier: "NamespaceId"
|
|
44
|
-
})).pipe(Schema.brand("NamespaceId"));
|
|
45
70
|
var PaymentRequiredError = class extends Schema.TaggedError()("PaymentRequiredError", Schema.Struct({
|
|
46
71
|
message: Schema.String,
|
|
47
72
|
resource: Schema.String,
|
|
48
73
|
currentUsage: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
49
74
|
limit: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
50
75
|
})) {};
|
|
51
|
-
var ResourceNotFoundError = class extends Schema.TaggedError()("ResourceNotFoundError", Schema.Struct({
|
|
52
|
-
resource: Schema.String,
|
|
53
|
-
id: Schema.String,
|
|
54
|
-
message: Schema.String
|
|
55
|
-
})) {};
|
|
56
76
|
var RateLimitedError = class extends Schema.TaggedError()("RateLimitedError", Schema.Struct({
|
|
57
77
|
message: Schema.String,
|
|
58
78
|
retryAfterSeconds: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
@@ -92,11 +112,6 @@ const BrandSocialLink = /* @__PURE__ */ Schema.Struct({
|
|
|
92
112
|
label: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" })).check(Schema.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })),
|
|
93
113
|
url: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^https:\\/\\/[^\\s]+$", "u")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/[^\\s]+$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" }))
|
|
94
114
|
}).annotate({ identifier: "BrandSocialLink" });
|
|
95
|
-
var ConflictError = class extends Schema.TaggedError()("ConflictError", Schema.Struct({
|
|
96
|
-
message: Schema.String,
|
|
97
|
-
resource: Schema.String,
|
|
98
|
-
id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
99
|
-
})) {};
|
|
100
115
|
const MediaId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^media_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
101
116
|
expected: "a string matching the RegExp ^media_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
102
117
|
identifier: "MediaId"
|
|
@@ -159,6 +174,10 @@ const EmailDomainId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @_
|
|
|
159
174
|
expected: "a string matching the RegExp ^dom_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
160
175
|
identifier: "EmailDomainId"
|
|
161
176
|
})).pipe(Schema.brand("EmailDomainId"));
|
|
177
|
+
var FromAddressRequiredError = class extends Schema.TaggedError()("FromAddressRequiredError", Schema.Struct({
|
|
178
|
+
message: Schema.String,
|
|
179
|
+
verifiedDomains: Schema.Array(Schema.String)
|
|
180
|
+
})) {};
|
|
162
181
|
var BrandAddressRequiredError = class extends Schema.TaggedError()("BrandAddressRequiredError", Schema.Struct({
|
|
163
182
|
message: Schema.String,
|
|
164
183
|
brand: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -291,10 +310,6 @@ const MailboxMetadata = /* @__PURE__ */ Schema.Record(Schema.String, Schema.Stri
|
|
|
291
310
|
expected: "an object with property names matching the schema",
|
|
292
311
|
identifier: "MailboxMetadata"
|
|
293
312
|
}));
|
|
294
|
-
const MailboxEndpointId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
295
|
-
expected: "a string matching the RegExp ^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
296
|
-
identifier: "MailboxEndpointId"
|
|
297
|
-
})).pipe(Schema.brand("MailboxEndpointId"));
|
|
298
313
|
const MailboxMetadataPatch = /* @__PURE__ */ Schema.Record(Schema.String, Schema.Union([Schema.String.check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })), Schema.Null])).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" }))).annotate({
|
|
299
314
|
expected: "an object with property names matching the schema",
|
|
300
315
|
identifier: "MailboxMetadataPatch"
|
|
@@ -467,22 +482,11 @@ const TemplateFromDefault = /* @__PURE__ */ Schema.Struct({
|
|
|
467
482
|
email: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
468
483
|
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
469
484
|
}).annotate({ identifier: "TemplateFromDefault" });
|
|
485
|
+
const TemplateTrackingDefault = /* @__PURE__ */ Schema.Struct({
|
|
486
|
+
opens: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
487
|
+
clicks: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
488
|
+
}).annotate({ identifier: "TemplateTrackingDefault" });
|
|
470
489
|
const TestWebhookPayload = /* @__PURE__ */ Schema.Struct({ data: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])) }).annotate({ identifier: "TestWebhookPayload" });
|
|
471
|
-
const ApiKeyMailboxAccess = /* @__PURE__ */ Schema.Struct({
|
|
472
|
-
permissions: Schema.TupleWithRest(Schema.Tuple([Schema.Union([
|
|
473
|
-
Schema.Literal("read"),
|
|
474
|
-
Schema.Literal("update"),
|
|
475
|
-
Schema.Literal("send"),
|
|
476
|
-
Schema.Literal("quarantine.read")
|
|
477
|
-
])]), [Schema.Union([
|
|
478
|
-
Schema.Literal("read"),
|
|
479
|
-
Schema.Literal("update"),
|
|
480
|
-
Schema.Literal("send"),
|
|
481
|
-
Schema.Literal("quarantine.read")
|
|
482
|
-
])]).annotate({ description: "`read` reads mailboxes, threads, and messages; `update` changes thread state, labels, drafts, and notes; `send` sends and replies; `quarantine.read` reads quarantined mail." }),
|
|
483
|
-
mailboxIds: Schema.optionalKey(Schema.Union([Schema.TupleWithRest(Schema.Tuple([MailboxId]), [MailboxId]), Schema.Null]).annotate({ description: "The mailboxes the key may act on. Omit to reach every mailbox the owner can." })),
|
|
484
|
-
sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]).annotate({ description: "Defaults to `send`. With `approval`, each send waits until a person other than the key approves it." }))
|
|
485
|
-
}).annotate({ identifier: "ApiKeyMailboxAccess" });
|
|
486
490
|
const CreateTemplatePayload = /* @__PURE__ */ Schema.Struct({
|
|
487
491
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
488
492
|
projectName: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema.Null])),
|
|
@@ -543,6 +547,9 @@ const CreateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
|
543
547
|
Schema.Literal("mailbox.message.quarantined"),
|
|
544
548
|
Schema.Literal("mailbox.message.released"),
|
|
545
549
|
Schema.Literal("mailbox.message.discarded"),
|
|
550
|
+
Schema.Literal("mailbox.message.delivered"),
|
|
551
|
+
Schema.Literal("mailbox.message.read"),
|
|
552
|
+
Schema.Literal("mailbox.message.failed"),
|
|
546
553
|
Schema.Literal("journey.webhook")
|
|
547
554
|
])).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
548
555
|
channels: Schema.optionalKey(Schema.Union([Schema.Array(Schema.Literal("email")).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
@@ -590,6 +597,9 @@ const UpdateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
|
590
597
|
Schema.Literal("mailbox.message.quarantined"),
|
|
591
598
|
Schema.Literal("mailbox.message.released"),
|
|
592
599
|
Schema.Literal("mailbox.message.discarded"),
|
|
600
|
+
Schema.Literal("mailbox.message.delivered"),
|
|
601
|
+
Schema.Literal("mailbox.message.read"),
|
|
602
|
+
Schema.Literal("mailbox.message.failed"),
|
|
593
603
|
Schema.Literal("journey.webhook")
|
|
594
604
|
])).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
595
605
|
channels: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.Literal("email")).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null]), Schema.Null])),
|
|
@@ -598,6 +608,21 @@ const UpdateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
|
598
608
|
headers: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null])),
|
|
599
609
|
status: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("active"), Schema.Literal("disabled")]), Schema.Null]))
|
|
600
610
|
}).annotate({ identifier: "UpdateWebhookPayload" });
|
|
611
|
+
const ApiKeyMailboxAccess = /* @__PURE__ */ Schema.Struct({
|
|
612
|
+
permissions: Schema.TupleWithRest(Schema.Tuple([Schema.Union([
|
|
613
|
+
Schema.Literal("read"),
|
|
614
|
+
Schema.Literal("update"),
|
|
615
|
+
Schema.Literal("send"),
|
|
616
|
+
Schema.Literal("quarantine.read")
|
|
617
|
+
])]), [Schema.Union([
|
|
618
|
+
Schema.Literal("read"),
|
|
619
|
+
Schema.Literal("update"),
|
|
620
|
+
Schema.Literal("send"),
|
|
621
|
+
Schema.Literal("quarantine.read")
|
|
622
|
+
])]).annotate({ description: "`read` reads mailboxes, threads, and messages; `update` changes thread state, labels, drafts, and notes; `send` sends and replies; `quarantine.read` reads quarantined mail." }),
|
|
623
|
+
mailboxIds: Schema.optionalKey(Schema.Union([Schema.TupleWithRest(Schema.Tuple([MailboxId]), [MailboxId]), Schema.Null]).annotate({ description: "The mailboxes the key may act on. Omit to reach every mailbox the owner can." })),
|
|
624
|
+
sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]).annotate({ description: "Defaults to `send`. With `approval`, each send waits until a person other than the key approves it." }))
|
|
625
|
+
}).annotate({ identifier: "ApiKeyMailboxAccess" });
|
|
601
626
|
const MessageSummary = /* @__PURE__ */ Schema.Struct({
|
|
602
627
|
id: MessageId,
|
|
603
628
|
channel: Schema.Literal("email"),
|
|
@@ -831,6 +856,7 @@ const UpdateTemplatePayload = /* @__PURE__ */ Schema.Struct({ data: Schema.Struc
|
|
|
831
856
|
]), Schema.Null]), Schema.Null])),
|
|
832
857
|
fromDefault: Schema.optionalKey(Schema.Union([Schema.Union([TemplateFromDefault, Schema.Null]), Schema.Null])),
|
|
833
858
|
replyToDefault: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
859
|
+
trackingDefault: Schema.optionalKey(Schema.Union([Schema.Union([TemplateTrackingDefault, Schema.Null]), Schema.Null]).annotate({ description: "Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default." })),
|
|
834
860
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
835
861
|
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared." }))
|
|
836
862
|
}) }).annotate({ identifier: "UpdateTemplatePayload" });
|
|
@@ -1079,6 +1105,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
|
|
|
1079
1105
|
});
|
|
1080
1106
|
var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
|
|
1081
1107
|
//#endregion
|
|
1082
|
-
export { AnalyticsQueryError, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignFooterRequiredError, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, Cursor, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCcRecipients, EmailChannelError, EmailContent, EmailDispatchContent, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionId, ExtensionVersionId, ExtensionVersionRef, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, GatewayTimeoutError, IanaTimezone, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, MessageMetadata, MessagePage, MessageSummary, NamespaceId, NamespaceMetadata, NamespaceResourceType, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SenderNotReadyError, SendsSeries, SkippedRecipient, SuccessResponse, TemplateData, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplatePublicationId, TestWebhookPayload, UnauthorizedError, UnsubscribeId, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, WebhookEndpointId, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, SensitiveString as __SamvaRuntimeSensitiveString };
|
|
1108
|
+
export { AnalyticsQueryError, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignFooterRequiredError, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, Cursor, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCcRecipients, EmailChannelError, EmailContent, EmailDispatchContent, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionId, ExtensionVersionId, ExtensionVersionRef, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, MessageMetadata, MessagePage, MessageSummary, NamespaceId, NamespaceMetadata, NamespaceResourceType, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SenderNotReadyError, SendsSeries, SkippedRecipient, SuccessResponse, TemplateData, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateTrackingDefault, TestWebhookPayload, UnauthorizedError, UnsubscribeId, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, VersionCursor, WebhookEndpointId, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, SensitiveString as __SamvaRuntimeSensitiveString };
|
|
1083
1109
|
|
|
1084
1110
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, ContactGroupId, DeliveryUnavailableError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, UnsubscribeId, ValidationError } from "./shared";
|
|
3
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, ContactGroupId, DeliveryUnavailableError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, UnsubscribeId, ValidationError } from "./shared";
|
|
4
4
|
export type SubscribeResult = {
|
|
5
5
|
readonly success: boolean;
|
|
6
6
|
readonly expiresAt: string;
|
|
@@ -48,8 +48,8 @@ export type SubscriptionsSubscribe404 = ResourceNotFoundError;
|
|
|
48
48
|
export declare const SubscriptionsSubscribe404: typeof ResourceNotFoundError;
|
|
49
49
|
export type SubscriptionsSubscribe409 = ConflictError;
|
|
50
50
|
export declare const SubscriptionsSubscribe409: typeof ConflictError;
|
|
51
|
-
export type SubscriptionsSubscribe422 = ValidationError | BrandAddressRequiredError | CampaignFooterRequiredError;
|
|
52
|
-
export declare const SubscriptionsSubscribe422: Schema.Union<readonly [typeof ValidationError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]>;
|
|
51
|
+
export type SubscriptionsSubscribe422 = ValidationError | FromAddressRequiredError | BrandAddressRequiredError | CampaignFooterRequiredError;
|
|
52
|
+
export declare const SubscriptionsSubscribe422: Schema.Union<readonly [typeof ValidationError, typeof FromAddressRequiredError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]>;
|
|
53
53
|
export type SubscriptionsSubscribe429 = RateLimitedError;
|
|
54
54
|
export declare const SubscriptionsSubscribe429: typeof RateLimitedError;
|
|
55
55
|
export type SubscriptionsSubscribe500 = InternalError;
|
|
@@ -74,7 +74,7 @@ declare const SubscriptionsGroup_base: HttpApiGroup.HttpApiGroup<"Subscriptions"
|
|
|
74
74
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
75
75
|
readonly success: Schema.Boolean;
|
|
76
76
|
readonly expiresAt: Schema.String;
|
|
77
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]> | Schema.Union<readonly [typeof SenderNotReadyError, typeof DeliveryUnavailableError]> | Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError, typeof FlagDisabledError]> | Schema.Union<readonly [typeof ValidationError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
77
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]> | Schema.Union<readonly [typeof SenderNotReadyError, typeof DeliveryUnavailableError]> | Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError, typeof FlagDisabledError]> | Schema.Union<readonly [typeof ValidationError, typeof FromAddressRequiredError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
78
78
|
readonly _tag: "ConflictError";
|
|
79
79
|
readonly message: string;
|
|
80
80
|
readonly resource: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, ContactGroupId, DeliveryUnavailableError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, UnsubscribeId, ValidationError } from "./shared.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, ContactGroupId, DeliveryUnavailableError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, UnsubscribeId, ValidationError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
//#region src/effect/generated/subscriptions.ts
|
|
@@ -30,6 +30,7 @@ const SubscriptionsSubscribe404 = ResourceNotFoundError;
|
|
|
30
30
|
const SubscriptionsSubscribe409 = ConflictError;
|
|
31
31
|
const SubscriptionsSubscribe422 = /* @__PURE__ */ Schema.Union([
|
|
32
32
|
ValidationError,
|
|
33
|
+
FromAddressRequiredError,
|
|
33
34
|
BrandAddressRequiredError,
|
|
34
35
|
CampaignFooterRequiredError
|
|
35
36
|
]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, SuccessResponse, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplatePublicationId, UnauthorizedError, UserId, ValidationError } from "./shared";
|
|
4
|
+
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, SuccessResponse, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateTrackingDefault, UnauthorizedError, UserId, ValidationError, VersionCursor } from "./shared";
|
|
5
5
|
export type TemplateProjectId = string & EffectBrand.Brand<"TemplateProjectId">;
|
|
6
6
|
export declare const TemplateProjectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
7
7
|
export type TemplatePublicationBrand = {
|
|
@@ -16,8 +16,6 @@ export declare const TemplatePublicationBrand: Schema.Struct<{
|
|
|
16
16
|
}>;
|
|
17
17
|
export type TemplateFamilyId = string & EffectBrand.Brand<"TemplateFamilyId">;
|
|
18
18
|
export declare const TemplateFamilyId: Schema.brand<Schema.String, "TemplateFamilyId">;
|
|
19
|
-
export type VersionCursor = string;
|
|
20
|
-
export declare const VersionCursor: Schema.String;
|
|
21
19
|
export type BrandRenderedFooter = {
|
|
22
20
|
readonly html: string;
|
|
23
21
|
readonly text: string;
|
|
@@ -153,10 +151,7 @@ export type Template = {
|
|
|
153
151
|
readonly description: string | null;
|
|
154
152
|
readonly category: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
155
153
|
readonly replyToDefault: ReadonlyArray<string> | null;
|
|
156
|
-
readonly trackingDefault:
|
|
157
|
-
readonly opens?: boolean | null;
|
|
158
|
-
readonly clicks?: boolean | null;
|
|
159
|
-
} | null;
|
|
154
|
+
readonly trackingDefault: TemplateTrackingDefault | null;
|
|
160
155
|
readonly email: {
|
|
161
156
|
readonly subject: string;
|
|
162
157
|
readonly preheader: string | null;
|
|
@@ -591,6 +586,7 @@ export type TemplatesUpdateRequestJson = {
|
|
|
591
586
|
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null;
|
|
592
587
|
readonly fromDefault?: TemplateFromDefault | null | null;
|
|
593
588
|
readonly replyToDefault?: ReadonlyArray<string> | null | null;
|
|
589
|
+
readonly trackingDefault?: TemplateTrackingDefault | null | null;
|
|
594
590
|
readonly isActive?: boolean | null;
|
|
595
591
|
readonly shared?: boolean | null;
|
|
596
592
|
};
|
|
@@ -607,6 +603,10 @@ export declare const TemplatesUpdateRequestJson: Schema.Struct<{
|
|
|
607
603
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
608
604
|
}>, Schema.Null]>, Schema.Null]>>;
|
|
609
605
|
readonly replyToDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>>;
|
|
606
|
+
readonly trackingDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
607
|
+
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
608
|
+
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
609
|
+
}>, Schema.Null]>, Schema.Null]>>;
|
|
610
610
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
611
611
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
612
612
|
}>;
|
|
@@ -8239,6 +8239,10 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
8239
8239
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
8240
8240
|
}>, Schema.Null]>, Schema.Null]>>;
|
|
8241
8241
|
readonly replyToDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>>;
|
|
8242
|
+
readonly trackingDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
8243
|
+
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
8244
|
+
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
8245
|
+
}>, Schema.Null]>, Schema.Null]>>;
|
|
8242
8246
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
8243
8247
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
8244
8248
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, SuccessResponse, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplatePublicationId, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, SuccessResponse, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateTrackingDefault, UnauthorizedError, UserId, ValidationError, VersionCursor } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
//#region src/effect/generated/templates.ts
|
|
@@ -15,7 +15,6 @@ const TemplateFamilyId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/*
|
|
|
15
15
|
expected: "a string matching the RegExp ^tfam_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
16
16
|
identifier: "TemplateFamilyId"
|
|
17
17
|
})).pipe(Schema.brand("TemplateFamilyId"));
|
|
18
|
-
const VersionCursor = /* @__PURE__ */ Schema.String.annotate({ identifier: "VersionCursor" });
|
|
19
18
|
const BrandRenderedFooter = /* @__PURE__ */ Schema.Struct({
|
|
20
19
|
html: Schema.String,
|
|
21
20
|
text: Schema.String,
|
|
@@ -119,10 +118,7 @@ const Template = /* @__PURE__ */ Schema.Struct({
|
|
|
119
118
|
Schema.Literal("alert")
|
|
120
119
|
]), Schema.Null]),
|
|
121
120
|
replyToDefault: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
122
|
-
trackingDefault: Schema.Union([Schema.
|
|
123
|
-
opens: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
124
|
-
clicks: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
125
|
-
}), Schema.Null]),
|
|
121
|
+
trackingDefault: Schema.Union([TemplateTrackingDefault, Schema.Null]),
|
|
126
122
|
email: Schema.Union([Schema.Struct({
|
|
127
123
|
subject: Schema.String,
|
|
128
124
|
preheader: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -249,6 +245,7 @@ const TemplatesUpdateRequestJson = /* @__PURE__ */ Schema.Struct({ data: Schema.
|
|
|
249
245
|
]), Schema.Null]), Schema.Null])),
|
|
250
246
|
fromDefault: Schema.optionalKey(Schema.Union([Schema.Union([TemplateFromDefault, Schema.Null]), Schema.Null])),
|
|
251
247
|
replyToDefault: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
248
|
+
trackingDefault: Schema.optionalKey(Schema.Union([Schema.Union([TemplateTrackingDefault, Schema.Null]), Schema.Null]).annotate({ description: "Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default." })),
|
|
252
249
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
253
250
|
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared." }))
|
|
254
251
|
}) });
|
|
@@ -2254,6 +2251,6 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2254
2251
|
]
|
|
2255
2252
|
}).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") {};
|
|
2256
2253
|
//#endregion
|
|
2257
|
-
export { BrandRenderedFooter, Template, TemplateFamily, TemplateFamilyId, TemplateFamilyMember, TemplateFamilyPage, TemplateFromWebsite, TemplateInputContractPage, TemplatePage, TemplateProjectId, TemplatePublicationBrand, TemplatePublicationRender, TemplateSummary, TemplatesAddEntry201, TemplatesAddEntry401, TemplatesAddEntry403, TemplatesAddEntry404, TemplatesAddEntry409, TemplatesAddEntry422, TemplatesAddEntry500, TemplatesAddEntry504, TemplatesAddEntryPathParams, TemplatesAddEntryRequestJson, TemplatesAttachFamilyMember200, TemplatesAttachFamilyMember401, TemplatesAttachFamilyMember403, TemplatesAttachFamilyMember404, TemplatesAttachFamilyMember409, TemplatesAttachFamilyMember422, TemplatesAttachFamilyMember500, TemplatesAttachFamilyMember504, TemplatesAttachFamilyMemberPathParams, TemplatesAttachWorkspaceResource200, TemplatesAttachWorkspaceResource401, TemplatesAttachWorkspaceResource403, TemplatesAttachWorkspaceResource404, TemplatesAttachWorkspaceResource409, TemplatesAttachWorkspaceResource422, TemplatesAttachWorkspaceResource500, TemplatesAttachWorkspaceResource504, TemplatesAttachWorkspaceResourcePathParams, TemplatesAttachWorkspaceResourceRequestJson, TemplatesCheckWorkspace200, TemplatesCheckWorkspace401, TemplatesCheckWorkspace403, TemplatesCheckWorkspace404, TemplatesCheckWorkspace409, TemplatesCheckWorkspace422, TemplatesCheckWorkspace500, TemplatesCheckWorkspace504, TemplatesCheckWorkspacePathParams, TemplatesCheckWorkspaceRequestJson, TemplatesCreate201, TemplatesCreate401, TemplatesCreate403, TemplatesCreate404, TemplatesCreate409, TemplatesCreate422, TemplatesCreate500, TemplatesCreate504, TemplatesCreateFamily201, TemplatesCreateFamily401, TemplatesCreateFamily403, TemplatesCreateFamily422, TemplatesCreateFamily500, TemplatesCreateFamily504, TemplatesCreateFamilyFromTemplate201, TemplatesCreateFamilyFromTemplate401, TemplatesCreateFamilyFromTemplate403, TemplatesCreateFamilyFromTemplate404, TemplatesCreateFamilyFromTemplate409, TemplatesCreateFamilyFromTemplate422, TemplatesCreateFamilyFromTemplate500, TemplatesCreateFamilyFromTemplate504, TemplatesCreateFamilyFromTemplatePathParams, TemplatesCreateFamilyFromTemplateRequestJson, TemplatesCreateFamilyRequestJson, TemplatesCreateFromWebsite201, TemplatesCreateFromWebsite401, TemplatesCreateFromWebsite403, TemplatesCreateFromWebsite404, TemplatesCreateFromWebsite409, TemplatesCreateFromWebsite422, TemplatesCreateFromWebsite500, TemplatesCreateFromWebsite504, TemplatesCreateFromWebsiteRequestJson, TemplatesCreateRequestJson, TemplatesDeleteFamily200, TemplatesDeleteFamily401, TemplatesDeleteFamily403, TemplatesDeleteFamily404, TemplatesDeleteFamily422, TemplatesDeleteFamily500, TemplatesDeleteFamily504, TemplatesDeleteFamilyPathParams, TemplatesDetachFamilyMember200, TemplatesDetachFamilyMember401, TemplatesDetachFamilyMember403, TemplatesDetachFamilyMember404, TemplatesDetachFamilyMember409, TemplatesDetachFamilyMember422, TemplatesDetachFamilyMember500, TemplatesDetachFamilyMember504, TemplatesDetachFamilyMemberPathParams, TemplatesDiffWorkspace200, TemplatesDiffWorkspace401, TemplatesDiffWorkspace403, TemplatesDiffWorkspace404, TemplatesDiffWorkspace409, TemplatesDiffWorkspace422, TemplatesDiffWorkspace500, TemplatesDiffWorkspace504, TemplatesDiffWorkspacePathParams, TemplatesDiffWorkspaceRequestJson, TemplatesGetById200, TemplatesGetById401, TemplatesGetById403, TemplatesGetById404, TemplatesGetById422, TemplatesGetById500, TemplatesGetById504, TemplatesGetByIdPathParams, TemplatesGetFamily200, TemplatesGetFamily401, TemplatesGetFamily403, TemplatesGetFamily404, TemplatesGetFamily422, TemplatesGetFamily500, TemplatesGetFamily504, TemplatesGetFamilyPathParams, TemplatesGetGitRepository200, TemplatesGetGitRepository401, TemplatesGetGitRepository403, TemplatesGetGitRepository404, TemplatesGetGitRepository409, TemplatesGetGitRepository422, TemplatesGetGitRepository500, TemplatesGetGitRepository504, TemplatesGetGitRepositoryPathParams, TemplatesGetInputContract200, TemplatesGetInputContract401, TemplatesGetInputContract403, TemplatesGetInputContract404, TemplatesGetInputContract422, TemplatesGetInputContract500, TemplatesGetInputContract504, TemplatesGetInputContractPathParams, TemplatesGetPublication200, TemplatesGetPublication401, TemplatesGetPublication403, TemplatesGetPublication404, TemplatesGetPublication422, TemplatesGetPublication500, TemplatesGetPublication504, TemplatesGetPublicationPathParams, TemplatesGroup, TemplatesIssueGitCredential200, TemplatesIssueGitCredential401, TemplatesIssueGitCredential403, TemplatesIssueGitCredential404, TemplatesIssueGitCredential409, TemplatesIssueGitCredential422, TemplatesIssueGitCredential500, TemplatesIssueGitCredential504, TemplatesIssueGitCredentialPathParams, TemplatesIssueGitCredentialRequestJson, TemplatesList200, TemplatesList401, TemplatesList403, TemplatesList422, TemplatesList500, TemplatesList504, TemplatesListFamilies200, TemplatesListFamilies401, TemplatesListFamilies403, TemplatesListFamilies422, TemplatesListFamilies500, TemplatesListFamilies504, TemplatesListFamiliesQuery, TemplatesListInputContracts200, TemplatesListInputContracts401, TemplatesListInputContracts403, TemplatesListInputContracts404, TemplatesListInputContracts422, TemplatesListInputContracts500, TemplatesListInputContracts504, TemplatesListInputContractsPathParams, TemplatesListInputContractsQuery, TemplatesListQuery, TemplatesOpenWorkspace200, TemplatesOpenWorkspace401, TemplatesOpenWorkspace403, TemplatesOpenWorkspace404, TemplatesOpenWorkspace409, TemplatesOpenWorkspace422, TemplatesOpenWorkspace500, TemplatesOpenWorkspace504, TemplatesOpenWorkspacePathParams, TemplatesPatchWorkspace200, TemplatesPatchWorkspace401, TemplatesPatchWorkspace403, TemplatesPatchWorkspace404, TemplatesPatchWorkspace409, TemplatesPatchWorkspace422, TemplatesPatchWorkspace500, TemplatesPatchWorkspace504, TemplatesPatchWorkspacePathParams, TemplatesPatchWorkspaceRequestJson, TemplatesPublish201, TemplatesPublish401, TemplatesPublish403, TemplatesPublish404, TemplatesPublish409, TemplatesPublish422, TemplatesPublish500, TemplatesPublish504, TemplatesPublishPathParams, TemplatesPublishRequestJson, TemplatesPutWorkspaceAsset200, TemplatesPutWorkspaceAsset401, TemplatesPutWorkspaceAsset403, TemplatesPutWorkspaceAsset404, TemplatesPutWorkspaceAsset409, TemplatesPutWorkspaceAsset422, TemplatesPutWorkspaceAsset500, TemplatesPutWorkspaceAsset504, TemplatesPutWorkspaceAssetPathParams, TemplatesPutWorkspaceAssetRequestJson, TemplatesRemove200, TemplatesRemove401, TemplatesRemove403, TemplatesRemove404, TemplatesRemove422, TemplatesRemove500, TemplatesRemove504, TemplatesRemovePathParams, TemplatesRemoveWorkspaceResource200, TemplatesRemoveWorkspaceResource401, TemplatesRemoveWorkspaceResource403, TemplatesRemoveWorkspaceResource404, TemplatesRemoveWorkspaceResource409, TemplatesRemoveWorkspaceResource422, TemplatesRemoveWorkspaceResource500, TemplatesRemoveWorkspaceResource504, TemplatesRemoveWorkspaceResourcePathParams, TemplatesRemoveWorkspaceResourceRequestJson, TemplatesRenameFamily200, TemplatesRenameFamily401, TemplatesRenameFamily403, TemplatesRenameFamily404, TemplatesRenameFamily422, TemplatesRenameFamily500, TemplatesRenameFamily504, TemplatesRenameFamilyPathParams, TemplatesRenameFamilyRequestJson, TemplatesRenderPublication200, TemplatesRenderPublication401, TemplatesRenderPublication403, TemplatesRenderPublication404, TemplatesRenderPublication409, TemplatesRenderPublication422, TemplatesRenderPublication500, TemplatesRenderPublication504, TemplatesRenderPublicationPathParams, TemplatesRenderPublicationRequestJson, TemplatesRenderWorkspaceFixture200, TemplatesRenderWorkspaceFixture401, TemplatesRenderWorkspaceFixture403, TemplatesRenderWorkspaceFixture404, TemplatesRenderWorkspaceFixture409, TemplatesRenderWorkspaceFixture422, TemplatesRenderWorkspaceFixture500, TemplatesRenderWorkspaceFixture504, TemplatesRenderWorkspaceFixturePathParams, TemplatesRenderWorkspaceFixtureRequestJson, TemplatesResolveWorkspaceConflict200, TemplatesResolveWorkspaceConflict401, TemplatesResolveWorkspaceConflict403, TemplatesResolveWorkspaceConflict404, TemplatesResolveWorkspaceConflict409, TemplatesResolveWorkspaceConflict422, TemplatesResolveWorkspaceConflict500, TemplatesResolveWorkspaceConflict504, TemplatesResolveWorkspaceConflictPathParams, TemplatesResolveWorkspaceConflictRequestJson, TemplatesRestoreWorkspace200, TemplatesRestoreWorkspace401, TemplatesRestoreWorkspace403, TemplatesRestoreWorkspace404, TemplatesRestoreWorkspace409, TemplatesRestoreWorkspace422, TemplatesRestoreWorkspace500, TemplatesRestoreWorkspace504, TemplatesRestoreWorkspacePathParams, TemplatesRestoreWorkspaceRequestJson, TemplatesSaveWorkspace200, TemplatesSaveWorkspace401, TemplatesSaveWorkspace403, TemplatesSaveWorkspace404, TemplatesSaveWorkspace409, TemplatesSaveWorkspace422, TemplatesSaveWorkspace500, TemplatesSaveWorkspace504, TemplatesSaveWorkspacePathParams, TemplatesSaveWorkspaceRequestJson, TemplatesUpdate200, TemplatesUpdate401, TemplatesUpdate403, TemplatesUpdate404, TemplatesUpdate409, TemplatesUpdate422, TemplatesUpdate500, TemplatesUpdate504, TemplatesUpdatePathParams, TemplatesUpdateRequestJson, TemplatesWorkspaceHistory200, TemplatesWorkspaceHistory401, TemplatesWorkspaceHistory403, TemplatesWorkspaceHistory404, TemplatesWorkspaceHistory409, TemplatesWorkspaceHistory422, TemplatesWorkspaceHistory500, TemplatesWorkspaceHistory504, TemplatesWorkspaceHistoryPathParams, TemplatesWorkspaceHistoryQuery
|
|
2254
|
+
export { BrandRenderedFooter, Template, TemplateFamily, TemplateFamilyId, TemplateFamilyMember, TemplateFamilyPage, TemplateFromWebsite, TemplateInputContractPage, TemplatePage, TemplateProjectId, TemplatePublicationBrand, TemplatePublicationRender, TemplateSummary, TemplatesAddEntry201, TemplatesAddEntry401, TemplatesAddEntry403, TemplatesAddEntry404, TemplatesAddEntry409, TemplatesAddEntry422, TemplatesAddEntry500, TemplatesAddEntry504, TemplatesAddEntryPathParams, TemplatesAddEntryRequestJson, TemplatesAttachFamilyMember200, TemplatesAttachFamilyMember401, TemplatesAttachFamilyMember403, TemplatesAttachFamilyMember404, TemplatesAttachFamilyMember409, TemplatesAttachFamilyMember422, TemplatesAttachFamilyMember500, TemplatesAttachFamilyMember504, TemplatesAttachFamilyMemberPathParams, TemplatesAttachWorkspaceResource200, TemplatesAttachWorkspaceResource401, TemplatesAttachWorkspaceResource403, TemplatesAttachWorkspaceResource404, TemplatesAttachWorkspaceResource409, TemplatesAttachWorkspaceResource422, TemplatesAttachWorkspaceResource500, TemplatesAttachWorkspaceResource504, TemplatesAttachWorkspaceResourcePathParams, TemplatesAttachWorkspaceResourceRequestJson, TemplatesCheckWorkspace200, TemplatesCheckWorkspace401, TemplatesCheckWorkspace403, TemplatesCheckWorkspace404, TemplatesCheckWorkspace409, TemplatesCheckWorkspace422, TemplatesCheckWorkspace500, TemplatesCheckWorkspace504, TemplatesCheckWorkspacePathParams, TemplatesCheckWorkspaceRequestJson, TemplatesCreate201, TemplatesCreate401, TemplatesCreate403, TemplatesCreate404, TemplatesCreate409, TemplatesCreate422, TemplatesCreate500, TemplatesCreate504, TemplatesCreateFamily201, TemplatesCreateFamily401, TemplatesCreateFamily403, TemplatesCreateFamily422, TemplatesCreateFamily500, TemplatesCreateFamily504, TemplatesCreateFamilyFromTemplate201, TemplatesCreateFamilyFromTemplate401, TemplatesCreateFamilyFromTemplate403, TemplatesCreateFamilyFromTemplate404, TemplatesCreateFamilyFromTemplate409, TemplatesCreateFamilyFromTemplate422, TemplatesCreateFamilyFromTemplate500, TemplatesCreateFamilyFromTemplate504, TemplatesCreateFamilyFromTemplatePathParams, TemplatesCreateFamilyFromTemplateRequestJson, TemplatesCreateFamilyRequestJson, TemplatesCreateFromWebsite201, TemplatesCreateFromWebsite401, TemplatesCreateFromWebsite403, TemplatesCreateFromWebsite404, TemplatesCreateFromWebsite409, TemplatesCreateFromWebsite422, TemplatesCreateFromWebsite500, TemplatesCreateFromWebsite504, TemplatesCreateFromWebsiteRequestJson, TemplatesCreateRequestJson, TemplatesDeleteFamily200, TemplatesDeleteFamily401, TemplatesDeleteFamily403, TemplatesDeleteFamily404, TemplatesDeleteFamily422, TemplatesDeleteFamily500, TemplatesDeleteFamily504, TemplatesDeleteFamilyPathParams, TemplatesDetachFamilyMember200, TemplatesDetachFamilyMember401, TemplatesDetachFamilyMember403, TemplatesDetachFamilyMember404, TemplatesDetachFamilyMember409, TemplatesDetachFamilyMember422, TemplatesDetachFamilyMember500, TemplatesDetachFamilyMember504, TemplatesDetachFamilyMemberPathParams, TemplatesDiffWorkspace200, TemplatesDiffWorkspace401, TemplatesDiffWorkspace403, TemplatesDiffWorkspace404, TemplatesDiffWorkspace409, TemplatesDiffWorkspace422, TemplatesDiffWorkspace500, TemplatesDiffWorkspace504, TemplatesDiffWorkspacePathParams, TemplatesDiffWorkspaceRequestJson, TemplatesGetById200, TemplatesGetById401, TemplatesGetById403, TemplatesGetById404, TemplatesGetById422, TemplatesGetById500, TemplatesGetById504, TemplatesGetByIdPathParams, TemplatesGetFamily200, TemplatesGetFamily401, TemplatesGetFamily403, TemplatesGetFamily404, TemplatesGetFamily422, TemplatesGetFamily500, TemplatesGetFamily504, TemplatesGetFamilyPathParams, TemplatesGetGitRepository200, TemplatesGetGitRepository401, TemplatesGetGitRepository403, TemplatesGetGitRepository404, TemplatesGetGitRepository409, TemplatesGetGitRepository422, TemplatesGetGitRepository500, TemplatesGetGitRepository504, TemplatesGetGitRepositoryPathParams, TemplatesGetInputContract200, TemplatesGetInputContract401, TemplatesGetInputContract403, TemplatesGetInputContract404, TemplatesGetInputContract422, TemplatesGetInputContract500, TemplatesGetInputContract504, TemplatesGetInputContractPathParams, TemplatesGetPublication200, TemplatesGetPublication401, TemplatesGetPublication403, TemplatesGetPublication404, TemplatesGetPublication422, TemplatesGetPublication500, TemplatesGetPublication504, TemplatesGetPublicationPathParams, TemplatesGroup, TemplatesIssueGitCredential200, TemplatesIssueGitCredential401, TemplatesIssueGitCredential403, TemplatesIssueGitCredential404, TemplatesIssueGitCredential409, TemplatesIssueGitCredential422, TemplatesIssueGitCredential500, TemplatesIssueGitCredential504, TemplatesIssueGitCredentialPathParams, TemplatesIssueGitCredentialRequestJson, TemplatesList200, TemplatesList401, TemplatesList403, TemplatesList422, TemplatesList500, TemplatesList504, TemplatesListFamilies200, TemplatesListFamilies401, TemplatesListFamilies403, TemplatesListFamilies422, TemplatesListFamilies500, TemplatesListFamilies504, TemplatesListFamiliesQuery, TemplatesListInputContracts200, TemplatesListInputContracts401, TemplatesListInputContracts403, TemplatesListInputContracts404, TemplatesListInputContracts422, TemplatesListInputContracts500, TemplatesListInputContracts504, TemplatesListInputContractsPathParams, TemplatesListInputContractsQuery, TemplatesListQuery, TemplatesOpenWorkspace200, TemplatesOpenWorkspace401, TemplatesOpenWorkspace403, TemplatesOpenWorkspace404, TemplatesOpenWorkspace409, TemplatesOpenWorkspace422, TemplatesOpenWorkspace500, TemplatesOpenWorkspace504, TemplatesOpenWorkspacePathParams, TemplatesPatchWorkspace200, TemplatesPatchWorkspace401, TemplatesPatchWorkspace403, TemplatesPatchWorkspace404, TemplatesPatchWorkspace409, TemplatesPatchWorkspace422, TemplatesPatchWorkspace500, TemplatesPatchWorkspace504, TemplatesPatchWorkspacePathParams, TemplatesPatchWorkspaceRequestJson, TemplatesPublish201, TemplatesPublish401, TemplatesPublish403, TemplatesPublish404, TemplatesPublish409, TemplatesPublish422, TemplatesPublish500, TemplatesPublish504, TemplatesPublishPathParams, TemplatesPublishRequestJson, TemplatesPutWorkspaceAsset200, TemplatesPutWorkspaceAsset401, TemplatesPutWorkspaceAsset403, TemplatesPutWorkspaceAsset404, TemplatesPutWorkspaceAsset409, TemplatesPutWorkspaceAsset422, TemplatesPutWorkspaceAsset500, TemplatesPutWorkspaceAsset504, TemplatesPutWorkspaceAssetPathParams, TemplatesPutWorkspaceAssetRequestJson, TemplatesRemove200, TemplatesRemove401, TemplatesRemove403, TemplatesRemove404, TemplatesRemove422, TemplatesRemove500, TemplatesRemove504, TemplatesRemovePathParams, TemplatesRemoveWorkspaceResource200, TemplatesRemoveWorkspaceResource401, TemplatesRemoveWorkspaceResource403, TemplatesRemoveWorkspaceResource404, TemplatesRemoveWorkspaceResource409, TemplatesRemoveWorkspaceResource422, TemplatesRemoveWorkspaceResource500, TemplatesRemoveWorkspaceResource504, TemplatesRemoveWorkspaceResourcePathParams, TemplatesRemoveWorkspaceResourceRequestJson, TemplatesRenameFamily200, TemplatesRenameFamily401, TemplatesRenameFamily403, TemplatesRenameFamily404, TemplatesRenameFamily422, TemplatesRenameFamily500, TemplatesRenameFamily504, TemplatesRenameFamilyPathParams, TemplatesRenameFamilyRequestJson, TemplatesRenderPublication200, TemplatesRenderPublication401, TemplatesRenderPublication403, TemplatesRenderPublication404, TemplatesRenderPublication409, TemplatesRenderPublication422, TemplatesRenderPublication500, TemplatesRenderPublication504, TemplatesRenderPublicationPathParams, TemplatesRenderPublicationRequestJson, TemplatesRenderWorkspaceFixture200, TemplatesRenderWorkspaceFixture401, TemplatesRenderWorkspaceFixture403, TemplatesRenderWorkspaceFixture404, TemplatesRenderWorkspaceFixture409, TemplatesRenderWorkspaceFixture422, TemplatesRenderWorkspaceFixture500, TemplatesRenderWorkspaceFixture504, TemplatesRenderWorkspaceFixturePathParams, TemplatesRenderWorkspaceFixtureRequestJson, TemplatesResolveWorkspaceConflict200, TemplatesResolveWorkspaceConflict401, TemplatesResolveWorkspaceConflict403, TemplatesResolveWorkspaceConflict404, TemplatesResolveWorkspaceConflict409, TemplatesResolveWorkspaceConflict422, TemplatesResolveWorkspaceConflict500, TemplatesResolveWorkspaceConflict504, TemplatesResolveWorkspaceConflictPathParams, TemplatesResolveWorkspaceConflictRequestJson, TemplatesRestoreWorkspace200, TemplatesRestoreWorkspace401, TemplatesRestoreWorkspace403, TemplatesRestoreWorkspace404, TemplatesRestoreWorkspace409, TemplatesRestoreWorkspace422, TemplatesRestoreWorkspace500, TemplatesRestoreWorkspace504, TemplatesRestoreWorkspacePathParams, TemplatesRestoreWorkspaceRequestJson, TemplatesSaveWorkspace200, TemplatesSaveWorkspace401, TemplatesSaveWorkspace403, TemplatesSaveWorkspace404, TemplatesSaveWorkspace409, TemplatesSaveWorkspace422, TemplatesSaveWorkspace500, TemplatesSaveWorkspace504, TemplatesSaveWorkspacePathParams, TemplatesSaveWorkspaceRequestJson, TemplatesUpdate200, TemplatesUpdate401, TemplatesUpdate403, TemplatesUpdate404, TemplatesUpdate409, TemplatesUpdate422, TemplatesUpdate500, TemplatesUpdate504, TemplatesUpdatePathParams, TemplatesUpdateRequestJson, TemplatesWorkspaceHistory200, TemplatesWorkspaceHistory401, TemplatesWorkspaceHistory403, TemplatesWorkspaceHistory404, TemplatesWorkspaceHistory409, TemplatesWorkspaceHistory422, TemplatesWorkspaceHistory500, TemplatesWorkspaceHistory504, TemplatesWorkspaceHistoryPathParams, TemplatesWorkspaceHistoryQuery };
|
|
2258
2255
|
|
|
2259
2256
|
//# sourceMappingURL=templates.js.map
|