samva 0.19.0 → 0.20.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 +56 -14
- package/dist/client/sdk.gen.js +186 -34
- package/dist/client/types.gen.d.ts +325 -65
- package/dist/effect/campaigns.d.ts +35 -3
- package/dist/effect/contacts.d.ts +24 -4
- package/dist/effect/email.d.ts +22 -6
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/generated/campaigns.d.ts +73 -4
- package/dist/effect/generated/campaigns.js +18 -1
- package/dist/effect/generated/contacts.d.ts +131 -1
- package/dist/effect/generated/contacts.js +17 -2
- package/dist/effect/generated/email.d.ts +162 -1
- package/dist/effect/generated/email.js +31 -11
- package/dist/effect/generated/journeys.d.ts +13 -61
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/mailboxes.d.ts +274 -78
- package/dist/effect/generated/mailboxes.js +28 -20
- package/dist/effect/generated/messages.d.ts +4 -1
- package/dist/effect/generated/messages.js +2 -1
- package/dist/effect/generated/namespaces.d.ts +432 -2
- package/dist/effect/generated/namespaces.js +91 -4
- package/dist/effect/generated/shared.d.ts +34 -29
- package/dist/effect/generated/shared.js +25 -22
- package/dist/effect/generated/templates.d.ts +44 -1
- package/dist/effect/generated/templates.js +9 -3
- package/dist/effect/generated-metadata.d.ts +15 -4
- package/dist/effect/generated-metadata.js +3 -4
- package/dist/effect/index.js +2 -2
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/mailboxes.d.ts +11 -11
- package/dist/effect/messages.d.ts +3 -0
- package/dist/effect/namespaces.d.ts +29 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/templates.d.ts +12 -1
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +2 -12
- package/dist/promises/errors.gen.js +1 -26
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +15 -0
- package/dist/service-map.js +16 -0
- package/package.json +2 -2
|
@@ -362,13 +362,6 @@ export type MailboxMetadata = {
|
|
|
362
362
|
export declare const MailboxMetadata: Schema.$Record<Schema.String, Schema.String>;
|
|
363
363
|
export type MailboxEndpointId = string & EffectBrand.Brand<"MailboxEndpointId">;
|
|
364
364
|
export declare const MailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
|
|
365
|
-
declare const MailboxChannelUnsupportedError_base: Schema.Class<MailboxChannelUnsupportedError, Schema.Struct<{
|
|
366
|
-
readonly _tag: Schema.tag<"MailboxChannelUnsupportedError">;
|
|
367
|
-
readonly message: Schema.String;
|
|
368
|
-
readonly channel: Schema.String;
|
|
369
|
-
}>, import("effect/Cause").YieldableError>;
|
|
370
|
-
export declare class MailboxChannelUnsupportedError extends MailboxChannelUnsupportedError_base {
|
|
371
|
-
}
|
|
372
365
|
export type MailboxMetadataPatch = {
|
|
373
366
|
readonly [x: string]: string | null;
|
|
374
367
|
};
|
|
@@ -501,6 +494,8 @@ export type NamespaceMetadata = {
|
|
|
501
494
|
readonly [x: string]: string;
|
|
502
495
|
};
|
|
503
496
|
export declare const NamespaceMetadata: Schema.$Record<Schema.String, Schema.String>;
|
|
497
|
+
export type NamespaceResourceType = "domain" | "sender" | "contact" | "template";
|
|
498
|
+
export declare const NamespaceResourceType: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
504
499
|
export type OperationResource = {
|
|
505
500
|
readonly type: string;
|
|
506
501
|
readonly id: string;
|
|
@@ -601,28 +596,6 @@ export declare const CreateMediaPayload: Schema.Struct<{
|
|
|
601
596
|
readonly purpose: Schema.Union<readonly [Schema.Literal<"attachment">, Schema.Literal<"avatar">, Schema.Literal<"review_evidence">]>;
|
|
602
597
|
readonly checksumSha256: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
603
598
|
}>;
|
|
604
|
-
export type CreateTemplatePayload = {
|
|
605
|
-
readonly name: string;
|
|
606
|
-
readonly projectName?: string | null;
|
|
607
|
-
readonly slug?: string | null;
|
|
608
|
-
readonly galleryTemplateId?: string | null;
|
|
609
|
-
readonly useBrand?: boolean | null;
|
|
610
|
-
readonly description?: string | null | null;
|
|
611
|
-
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null;
|
|
612
|
-
readonly isActive?: boolean | null;
|
|
613
|
-
readonly idempotencyKey: string;
|
|
614
|
-
};
|
|
615
|
-
export declare const CreateTemplatePayload: Schema.Struct<{
|
|
616
|
-
readonly name: Schema.String;
|
|
617
|
-
readonly projectName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
618
|
-
readonly slug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
619
|
-
readonly galleryTemplateId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
620
|
-
readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
621
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
622
|
-
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>, Schema.Null]>>;
|
|
623
|
-
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
624
|
-
readonly idempotencyKey: Schema.String;
|
|
625
|
-
}>;
|
|
626
599
|
export type DenyMailboxActionPayload = {
|
|
627
600
|
readonly reason: string;
|
|
628
601
|
};
|
|
@@ -744,6 +717,30 @@ export declare const ApiKeyMailboxAccess: Schema.Struct<{
|
|
|
744
717
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
745
718
|
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
746
719
|
}>;
|
|
720
|
+
export type CreateTemplatePayload = {
|
|
721
|
+
readonly name: string;
|
|
722
|
+
readonly projectName?: string | null;
|
|
723
|
+
readonly slug?: string | null;
|
|
724
|
+
readonly galleryTemplateId?: string | null;
|
|
725
|
+
readonly useBrand?: boolean | null;
|
|
726
|
+
readonly description?: string | null | null;
|
|
727
|
+
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null;
|
|
728
|
+
readonly isActive?: boolean | null;
|
|
729
|
+
readonly namespaceId?: NamespaceId | null;
|
|
730
|
+
readonly idempotencyKey: string;
|
|
731
|
+
};
|
|
732
|
+
export declare const CreateTemplatePayload: Schema.Struct<{
|
|
733
|
+
readonly name: Schema.String;
|
|
734
|
+
readonly projectName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
735
|
+
readonly slug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
736
|
+
readonly galleryTemplateId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
737
|
+
readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
738
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
739
|
+
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>, Schema.Null]>>;
|
|
740
|
+
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
741
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
742
|
+
readonly idempotencyKey: Schema.String;
|
|
743
|
+
}>;
|
|
747
744
|
export type CreateWebhookPayload = {
|
|
748
745
|
readonly name: string;
|
|
749
746
|
readonly url: string;
|
|
@@ -1263,6 +1260,14 @@ export declare const CreateNamespacePayload: Schema.Struct<{
|
|
|
1263
1260
|
readonly name: Schema.String;
|
|
1264
1261
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1265
1262
|
}>;
|
|
1263
|
+
export type AssignNamespaceResourcePayload = {
|
|
1264
|
+
readonly type: NamespaceResourceType;
|
|
1265
|
+
readonly resourceId: string;
|
|
1266
|
+
};
|
|
1267
|
+
export declare const AssignNamespaceResourcePayload: Schema.Struct<{
|
|
1268
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
1269
|
+
readonly resourceId: Schema.String;
|
|
1270
|
+
}>;
|
|
1266
1271
|
export type Operation = {
|
|
1267
1272
|
readonly id: OperationId;
|
|
1268
1273
|
readonly organizationId: string;
|
|
@@ -295,10 +295,6 @@ const MailboxEndpointId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/
|
|
|
295
295
|
expected: "a string matching the RegExp ^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
296
296
|
identifier: "MailboxEndpointId"
|
|
297
297
|
})).pipe(Schema.brand("MailboxEndpointId"));
|
|
298
|
-
var MailboxChannelUnsupportedError = class extends Schema.TaggedError()("MailboxChannelUnsupportedError", Schema.Struct({
|
|
299
|
-
message: Schema.String,
|
|
300
|
-
channel: Schema.String
|
|
301
|
-
})) {};
|
|
302
298
|
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({
|
|
303
299
|
expected: "an object with property names matching the schema",
|
|
304
300
|
identifier: "MailboxMetadataPatch"
|
|
@@ -457,6 +453,12 @@ const NamespaceMetadata = /* @__PURE__ */ Schema.Record(Schema.String, Schema.St
|
|
|
457
453
|
description: "Your own labels for the namespace, such as the id of your customer it serves. Samva stores them and never reads them.",
|
|
458
454
|
identifier: "NamespaceMetadata"
|
|
459
455
|
});
|
|
456
|
+
const NamespaceResourceType = /* @__PURE__ */ Schema.Union([
|
|
457
|
+
Schema.Literal("domain"),
|
|
458
|
+
Schema.Literal("sender"),
|
|
459
|
+
Schema.Literal("contact"),
|
|
460
|
+
Schema.Literal("template")
|
|
461
|
+
]).annotate({ identifier: "NamespaceResourceType" });
|
|
460
462
|
const OperationResource = /* @__PURE__ */ Schema.Struct({
|
|
461
463
|
type: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(80).annotate({ expected: "a string with at most 80 code points" })).check(Schema.isMaxLength(80).annotate({ expected: "a value with a length of at most 80" })),
|
|
462
464
|
id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
@@ -465,6 +467,22 @@ const TemplateFromDefault = /* @__PURE__ */ Schema.Struct({
|
|
|
465
467
|
email: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
466
468
|
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
467
469
|
}).annotate({ identifier: "TemplateFromDefault" });
|
|
470
|
+
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" });
|
|
468
486
|
const CreateTemplatePayload = /* @__PURE__ */ Schema.Struct({
|
|
469
487
|
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" })),
|
|
470
488
|
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])),
|
|
@@ -482,24 +500,9 @@ const CreateTemplatePayload = /* @__PURE__ */ Schema.Struct({
|
|
|
482
500
|
Schema.Literal("alert")
|
|
483
501
|
]), Schema.Null]), Schema.Null])),
|
|
484
502
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
503
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the new template project belongs to; the project and every entry added to it share it. Omit for organization level. A namespace-scoped key always creates in its own namespace." })),
|
|
485
504
|
idempotencyKey: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
486
505
|
}).annotate({ identifier: "CreateTemplatePayload" });
|
|
487
|
-
const TestWebhookPayload = /* @__PURE__ */ Schema.Struct({ data: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])) }).annotate({ identifier: "TestWebhookPayload" });
|
|
488
|
-
const ApiKeyMailboxAccess = /* @__PURE__ */ Schema.Struct({
|
|
489
|
-
permissions: Schema.TupleWithRest(Schema.Tuple([Schema.Union([
|
|
490
|
-
Schema.Literal("read"),
|
|
491
|
-
Schema.Literal("update"),
|
|
492
|
-
Schema.Literal("send"),
|
|
493
|
-
Schema.Literal("quarantine.read")
|
|
494
|
-
])]), [Schema.Union([
|
|
495
|
-
Schema.Literal("read"),
|
|
496
|
-
Schema.Literal("update"),
|
|
497
|
-
Schema.Literal("send"),
|
|
498
|
-
Schema.Literal("quarantine.read")
|
|
499
|
-
])]).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." }),
|
|
500
|
-
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." })),
|
|
501
|
-
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." }))
|
|
502
|
-
}).annotate({ identifier: "ApiKeyMailboxAccess" });
|
|
503
506
|
const CreateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
504
507
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(100).annotate({ expected: "a string with at most 100 code points" })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
505
508
|
url: Schema.String,
|
|
@@ -827,7 +830,7 @@ const ApiKeyAccess = /* @__PURE__ */ Schema.Union([Schema.Struct({ mode: Schema.
|
|
|
827
830
|
mode: Schema.Literal("restricted"),
|
|
828
831
|
resources: ApiKeyResourceAccess,
|
|
829
832
|
mailboxes: Schema.optionalKey(Schema.Union([ApiKeyMailboxAccess, Schema.Null])),
|
|
830
|
-
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "Confines the key to one namespace: it reaches only that namespace's mailboxes
|
|
833
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "Confines the key to one namespace: it reaches only that namespace's domains, senders, numbers, mailboxes, contacts, templates, and messages, never organization-level ones, and only endpoints that confine to a namespace (others answer 403). It holds grants only on `mailboxes`, `messages`, `email`, `domains`, `contacts`, and `templates`. A key scoped to listed mailboxes holds mailbox access only." }))
|
|
831
834
|
})]).annotate({ identifier: "ApiKeyAccess" });
|
|
832
835
|
const MessagePage = /* @__PURE__ */ Schema.Struct({
|
|
833
836
|
items: Schema.Array(MessageSummary),
|
|
@@ -1068,6 +1071,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
|
|
|
1068
1071
|
});
|
|
1069
1072
|
var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
|
|
1070
1073
|
//#endregion
|
|
1071
|
-
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,
|
|
1074
|
+
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 };
|
|
1072
1075
|
|
|
1073
1076
|
//# sourceMappingURL=shared.js.map
|
|
@@ -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, 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, UnauthorizedError, UserId, ValidationError } 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 = {
|
|
@@ -90,6 +90,7 @@ export type TemplateSummary = {
|
|
|
90
90
|
readonly name: string;
|
|
91
91
|
readonly channel: "email";
|
|
92
92
|
readonly projectId: TemplateProjectId;
|
|
93
|
+
readonly namespaceId: NamespaceId | null;
|
|
93
94
|
readonly entryPath: string;
|
|
94
95
|
readonly status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
|
|
95
96
|
readonly isActive: boolean;
|
|
@@ -107,6 +108,7 @@ export declare const TemplateSummary: Schema.Struct<{
|
|
|
107
108
|
readonly name: Schema.String;
|
|
108
109
|
readonly channel: Schema.Literal<"email">;
|
|
109
110
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
111
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
110
112
|
readonly entryPath: Schema.String;
|
|
111
113
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
112
114
|
readonly isActive: Schema.Boolean;
|
|
@@ -131,6 +133,7 @@ export type Template = {
|
|
|
131
133
|
readonly name: string;
|
|
132
134
|
readonly channel: "email";
|
|
133
135
|
readonly projectId: TemplateProjectId;
|
|
136
|
+
readonly namespaceId: NamespaceId | null;
|
|
134
137
|
readonly entryPath: string;
|
|
135
138
|
readonly status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
|
|
136
139
|
readonly isActive: boolean;
|
|
@@ -168,6 +171,7 @@ export declare const Template: Schema.Struct<{
|
|
|
168
171
|
readonly name: Schema.String;
|
|
169
172
|
readonly channel: Schema.Literal<"email">;
|
|
170
173
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
174
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
171
175
|
readonly entryPath: Schema.String;
|
|
172
176
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
173
177
|
readonly isActive: Schema.Boolean;
|
|
@@ -250,6 +254,7 @@ export declare const TemplatePage: Schema.Struct<{
|
|
|
250
254
|
readonly name: Schema.String;
|
|
251
255
|
readonly channel: Schema.Literal<"email">;
|
|
252
256
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
257
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
253
258
|
readonly entryPath: Schema.String;
|
|
254
259
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
255
260
|
readonly isActive: Schema.Boolean;
|
|
@@ -301,6 +306,7 @@ export type TemplatesListQuery = {
|
|
|
301
306
|
readonly status?: "draft" | "pending" | "approved" | "published" | "rejected" | "archived" | null;
|
|
302
307
|
readonly search?: string | null;
|
|
303
308
|
readonly projectId?: TemplateProjectId | null;
|
|
309
|
+
readonly namespaceId?: NamespaceId | null;
|
|
304
310
|
};
|
|
305
311
|
export declare const TemplatesListQuery: Schema.Struct<{
|
|
306
312
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -310,6 +316,7 @@ export declare const TemplatesListQuery: Schema.Struct<{
|
|
|
310
316
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
311
317
|
readonly search: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
312
318
|
readonly projectId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateProjectId">, Schema.Null]>>;
|
|
319
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
313
320
|
}>;
|
|
314
321
|
export type TemplatesList200 = TemplatePage;
|
|
315
322
|
export declare const TemplatesList200: Schema.Struct<{
|
|
@@ -319,6 +326,7 @@ export declare const TemplatesList200: Schema.Struct<{
|
|
|
319
326
|
readonly name: Schema.String;
|
|
320
327
|
readonly channel: Schema.Literal<"email">;
|
|
321
328
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
329
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
322
330
|
readonly entryPath: Schema.String;
|
|
323
331
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
324
332
|
readonly isActive: Schema.Boolean;
|
|
@@ -358,6 +366,7 @@ export type TemplatesCreateRequestJson = {
|
|
|
358
366
|
readonly description?: string | null | null;
|
|
359
367
|
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null;
|
|
360
368
|
readonly isActive?: boolean | null;
|
|
369
|
+
readonly namespaceId?: NamespaceId | null;
|
|
361
370
|
readonly idempotencyKey: string;
|
|
362
371
|
};
|
|
363
372
|
export declare const TemplatesCreateRequestJson: Schema.Struct<{
|
|
@@ -369,6 +378,7 @@ export declare const TemplatesCreateRequestJson: Schema.Struct<{
|
|
|
369
378
|
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
370
379
|
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>, Schema.Null]>>;
|
|
371
380
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
381
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
372
382
|
readonly idempotencyKey: Schema.String;
|
|
373
383
|
}>;
|
|
374
384
|
export type TemplatesCreate201 = Template;
|
|
@@ -378,6 +388,7 @@ export declare const TemplatesCreate201: Schema.Struct<{
|
|
|
378
388
|
readonly name: Schema.String;
|
|
379
389
|
readonly channel: Schema.Literal<"email">;
|
|
380
390
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
391
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
381
392
|
readonly entryPath: Schema.String;
|
|
382
393
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
383
394
|
readonly isActive: Schema.Boolean;
|
|
@@ -416,6 +427,8 @@ export type TemplatesCreate401 = UnauthorizedError;
|
|
|
416
427
|
export declare const TemplatesCreate401: typeof UnauthorizedError;
|
|
417
428
|
export type TemplatesCreate403 = ForbiddenError;
|
|
418
429
|
export declare const TemplatesCreate403: typeof ForbiddenError;
|
|
430
|
+
export type TemplatesCreate404 = ResourceNotFoundError;
|
|
431
|
+
export declare const TemplatesCreate404: typeof ResourceNotFoundError;
|
|
419
432
|
export type TemplatesCreate409 = ConflictError;
|
|
420
433
|
export declare const TemplatesCreate409: typeof ConflictError;
|
|
421
434
|
export type TemplatesCreate422 = ValidationError;
|
|
@@ -437,6 +450,7 @@ export declare const TemplatesGetById200: Schema.Struct<{
|
|
|
437
450
|
readonly name: Schema.String;
|
|
438
451
|
readonly channel: Schema.Literal<"email">;
|
|
439
452
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
453
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
440
454
|
readonly entryPath: Schema.String;
|
|
441
455
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
442
456
|
readonly isActive: Schema.Boolean;
|
|
@@ -545,6 +559,7 @@ export declare const TemplatesUpdate200: Schema.Struct<{
|
|
|
545
559
|
readonly name: Schema.String;
|
|
546
560
|
readonly channel: Schema.Literal<"email">;
|
|
547
561
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
562
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
548
563
|
readonly entryPath: Schema.String;
|
|
549
564
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
550
565
|
readonly isActive: Schema.Boolean;
|
|
@@ -3586,6 +3601,7 @@ export declare const TemplatesAddEntry201: Schema.Struct<{
|
|
|
3586
3601
|
readonly name: Schema.String;
|
|
3587
3602
|
readonly channel: Schema.Literal<"email">;
|
|
3588
3603
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
3604
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3589
3605
|
readonly entryPath: Schema.String;
|
|
3590
3606
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
3591
3607
|
readonly isActive: Schema.Boolean;
|
|
@@ -3648,6 +3664,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
3648
3664
|
readonly name: Schema.String;
|
|
3649
3665
|
readonly channel: Schema.Literal<"email">;
|
|
3650
3666
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
3667
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3651
3668
|
readonly entryPath: Schema.String;
|
|
3652
3669
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
3653
3670
|
readonly isActive: Schema.Boolean;
|
|
@@ -4259,6 +4276,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
4259
4276
|
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
4260
4277
|
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>, Schema.Null]>>;
|
|
4261
4278
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4279
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4262
4280
|
readonly idempotencyKey: Schema.String;
|
|
4263
4281
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4264
4282
|
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
@@ -4266,6 +4284,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
4266
4284
|
readonly name: Schema.String;
|
|
4267
4285
|
readonly channel: Schema.Literal<"email">;
|
|
4268
4286
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
4287
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
4269
4288
|
readonly entryPath: Schema.String;
|
|
4270
4289
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4271
4290
|
readonly isActive: Schema.Boolean;
|
|
@@ -4347,6 +4366,26 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
4347
4366
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4348
4367
|
readonly message: Schema.String;
|
|
4349
4368
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4369
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4370
|
+
readonly _tag: "ResourceNotFoundError";
|
|
4371
|
+
readonly resource: string;
|
|
4372
|
+
readonly id: string;
|
|
4373
|
+
readonly message: string;
|
|
4374
|
+
}, readonly [Schema.Struct<{
|
|
4375
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
4376
|
+
readonly resource: Schema.String;
|
|
4377
|
+
readonly id: Schema.String;
|
|
4378
|
+
readonly message: Schema.String;
|
|
4379
|
+
}>], {
|
|
4380
|
+
readonly _tag: "ResourceNotFoundError";
|
|
4381
|
+
readonly resource: string;
|
|
4382
|
+
readonly id: string;
|
|
4383
|
+
readonly message: string;
|
|
4384
|
+
}>, Schema.Struct<{
|
|
4385
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
4386
|
+
readonly resource: Schema.String;
|
|
4387
|
+
readonly id: Schema.String;
|
|
4388
|
+
readonly message: Schema.String;
|
|
4350
4389
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
4351
4390
|
readonly _tag: "UnauthorizedError";
|
|
4352
4391
|
readonly message: string;
|
|
@@ -4903,6 +4942,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
4903
4942
|
readonly name: Schema.String;
|
|
4904
4943
|
readonly channel: Schema.Literal<"email">;
|
|
4905
4944
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
4945
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
4906
4946
|
readonly entryPath: Schema.String;
|
|
4907
4947
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4908
4948
|
readonly isActive: Schema.Boolean;
|
|
@@ -5647,6 +5687,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5647
5687
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
5648
5688
|
readonly search: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5649
5689
|
readonly projectId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateProjectId">, Schema.Null]>>;
|
|
5690
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
5650
5691
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
5651
5692
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
5652
5693
|
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
@@ -5654,6 +5695,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5654
5695
|
readonly name: Schema.String;
|
|
5655
5696
|
readonly channel: Schema.Literal<"email">;
|
|
5656
5697
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
5698
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
5657
5699
|
readonly entryPath: Schema.String;
|
|
5658
5700
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
5659
5701
|
readonly isActive: Schema.Boolean;
|
|
@@ -7920,6 +7962,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
7920
7962
|
readonly name: Schema.String;
|
|
7921
7963
|
readonly channel: Schema.Literal<"email">;
|
|
7922
7964
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
7965
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
7923
7966
|
readonly entryPath: Schema.String;
|
|
7924
7967
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
7925
7968
|
readonly isActive: Schema.Boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, 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, UnauthorizedError, UserId, 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/templates.ts
|
|
@@ -61,6 +61,7 @@ const TemplateSummary = /* @__PURE__ */ Schema.Struct({
|
|
|
61
61
|
name: Schema.String,
|
|
62
62
|
channel: Schema.Literal("email"),
|
|
63
63
|
projectId: TemplateProjectId,
|
|
64
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the template's project belongs to; every entry in a project shares it. Null at organization level. A namespace-scoped key reaches only its own namespace's templates." }),
|
|
64
65
|
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
65
66
|
status: Schema.Union([
|
|
66
67
|
Schema.Literal("draft"),
|
|
@@ -85,6 +86,7 @@ const Template = /* @__PURE__ */ Schema.Struct({
|
|
|
85
86
|
name: Schema.String,
|
|
86
87
|
channel: Schema.Literal("email"),
|
|
87
88
|
projectId: TemplateProjectId,
|
|
89
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the template's project belongs to; every entry in a project shares it. Null at organization level. A namespace-scoped key reaches only its own namespace's templates." }),
|
|
88
90
|
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
89
91
|
status: Schema.Union([
|
|
90
92
|
Schema.Literal("draft"),
|
|
@@ -168,7 +170,8 @@ const TemplatesListQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
168
170
|
Schema.Literal("archived")
|
|
169
171
|
]), Schema.Null])),
|
|
170
172
|
search: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
171
|
-
projectId: Schema.optionalKey(Schema.Union([TemplateProjectId, Schema.Null]))
|
|
173
|
+
projectId: Schema.optionalKey(Schema.Union([TemplateProjectId, Schema.Null])),
|
|
174
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "Only templates in this namespace. A namespace-scoped key lists its own namespace's templates only." }))
|
|
172
175
|
});
|
|
173
176
|
const TemplatesList200 = TemplatePage;
|
|
174
177
|
const TemplatesList401 = UnauthorizedError;
|
|
@@ -193,11 +196,13 @@ const TemplatesCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
193
196
|
Schema.Literal("alert")
|
|
194
197
|
]), Schema.Null]), Schema.Null])),
|
|
195
198
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
199
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the new template project belongs to; the project and every entry added to it share it. Omit for organization level. A namespace-scoped key always creates in its own namespace." })),
|
|
196
200
|
idempotencyKey: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
197
201
|
});
|
|
198
202
|
const TemplatesCreate201 = Template;
|
|
199
203
|
const TemplatesCreate401 = UnauthorizedError;
|
|
200
204
|
const TemplatesCreate403 = ForbiddenError;
|
|
205
|
+
const TemplatesCreate404 = ResourceNotFoundError;
|
|
201
206
|
const TemplatesCreate409 = ConflictError;
|
|
202
207
|
const TemplatesCreate422 = ValidationError;
|
|
203
208
|
const TemplatesCreate500 = InternalError;
|
|
@@ -1823,6 +1828,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1823
1828
|
error: [
|
|
1824
1829
|
TemplatesCreate401.pipe(HttpApiSchema.status(401)),
|
|
1825
1830
|
TemplatesCreate403.pipe(HttpApiSchema.status(403)),
|
|
1831
|
+
TemplatesCreate404.pipe(HttpApiSchema.status(404)),
|
|
1826
1832
|
TemplatesCreate409.pipe(HttpApiSchema.status(409)),
|
|
1827
1833
|
TemplatesCreate422.pipe(HttpApiSchema.status(422)),
|
|
1828
1834
|
TemplatesCreate500,
|
|
@@ -2209,6 +2215,6 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2209
2215
|
]
|
|
2210
2216
|
}).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") {};
|
|
2211
2217
|
//#endregion
|
|
2212
|
-
export { BrandFooterBlock, BrandRenderedFooter, Template, TemplateFamily, TemplateFamilyId, TemplateFamilyMember, TemplateFamilyPage, 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, TemplatesCreate409, TemplatesCreate422, TemplatesCreate500, TemplatesCreate504, TemplatesCreateFamily201, TemplatesCreateFamily401, TemplatesCreateFamily403, TemplatesCreateFamily422, TemplatesCreateFamily500, TemplatesCreateFamily504, TemplatesCreateFamilyFromTemplate201, TemplatesCreateFamilyFromTemplate401, TemplatesCreateFamilyFromTemplate403, TemplatesCreateFamilyFromTemplate404, TemplatesCreateFamilyFromTemplate409, TemplatesCreateFamilyFromTemplate422, TemplatesCreateFamilyFromTemplate500, TemplatesCreateFamilyFromTemplate504, TemplatesCreateFamilyFromTemplatePathParams, TemplatesCreateFamilyFromTemplateRequestJson, TemplatesCreateFamilyRequestJson, 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, VersionCursor };
|
|
2218
|
+
export { BrandFooterBlock, BrandRenderedFooter, Template, TemplateFamily, TemplateFamilyId, TemplateFamilyMember, TemplateFamilyPage, 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, 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, VersionCursor };
|
|
2213
2219
|
|
|
2214
2220
|
//# sourceMappingURL=templates.js.map
|
|
@@ -47,10 +47,6 @@ export declare const SamvaErrorMetadata: {
|
|
|
47
47
|
readonly categories: readonly ["transient"];
|
|
48
48
|
readonly retryable: true;
|
|
49
49
|
};
|
|
50
|
-
readonly MailboxChannelUnsupportedError: {
|
|
51
|
-
readonly categories: readonly [];
|
|
52
|
-
readonly retryable: false;
|
|
53
|
-
};
|
|
54
50
|
readonly MailboxSendConflictError: {
|
|
55
51
|
readonly categories: readonly [];
|
|
56
52
|
readonly retryable: false;
|
|
@@ -1399,6 +1395,21 @@ export declare const SamvaOperations: {
|
|
|
1399
1395
|
readonly method: "PATCH";
|
|
1400
1396
|
readonly paginated: false;
|
|
1401
1397
|
};
|
|
1398
|
+
readonly namespacesAssignResource: {
|
|
1399
|
+
readonly group: "Namespaces";
|
|
1400
|
+
readonly method: "POST";
|
|
1401
|
+
readonly paginated: false;
|
|
1402
|
+
};
|
|
1403
|
+
readonly namespacesRemoveResource: {
|
|
1404
|
+
readonly group: "Namespaces";
|
|
1405
|
+
readonly method: "DELETE";
|
|
1406
|
+
readonly paginated: false;
|
|
1407
|
+
};
|
|
1408
|
+
readonly namespacesGetUsage: {
|
|
1409
|
+
readonly group: "Namespaces";
|
|
1410
|
+
readonly method: "GET";
|
|
1411
|
+
readonly paginated: false;
|
|
1412
|
+
};
|
|
1402
1413
|
readonly operationsList: {
|
|
1403
1414
|
readonly group: "Operations";
|
|
1404
1415
|
readonly method: "GET";
|
|
@@ -48,10 +48,6 @@ const SamvaErrorMetadata = {
|
|
|
48
48
|
categories: ["transient"],
|
|
49
49
|
retryable: true
|
|
50
50
|
},
|
|
51
|
-
MailboxChannelUnsupportedError: {
|
|
52
|
-
categories: [],
|
|
53
|
-
retryable: false
|
|
54
|
-
},
|
|
55
51
|
MailboxSendConflictError: {
|
|
56
52
|
categories: [],
|
|
57
53
|
retryable: false
|
|
@@ -842,6 +838,9 @@ const SamvaOperations = {
|
|
|
842
838
|
namespacesGet: operationMetadata74,
|
|
843
839
|
namespacesRemove: operationMetadata75,
|
|
844
840
|
namespacesUpdate: operationMetadata76,
|
|
841
|
+
namespacesAssignResource: operationMetadata73,
|
|
842
|
+
namespacesRemoveResource: operationMetadata75,
|
|
843
|
+
namespacesGetUsage: operationMetadata74,
|
|
845
844
|
operationsList: operationMetadata77,
|
|
846
845
|
operationsGet: operationMetadata78,
|
|
847
846
|
operationsRetry: operationMetadata79,
|
package/dist/effect/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaUploadError } from "../inline-attachments.js";
|
|
2
|
-
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError,
|
|
2
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError } from "./generated/shared.js";
|
|
3
3
|
import { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError } from "./categories.js";
|
|
4
4
|
import { retry_exports } from "./retry.js";
|
|
5
5
|
import { analytics_exports } from "./analytics.js";
|
|
@@ -30,4 +30,4 @@ import { templates_exports } from "./templates.js";
|
|
|
30
30
|
import { unsubscribe_groups_exports } from "./unsubscribe-groups.js";
|
|
31
31
|
import { webhooks_exports } from "./webhooks.js";
|
|
32
32
|
import { whoami_exports } from "./whoami.js";
|
|
33
|
-
export { analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, extension_installations_exports as ExtensionInstallations, extensions_exports as Extensions, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, journeys_exports as Journeys,
|
|
33
|
+
export { analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, extension_installations_exports as ExtensionInstallations, extensions_exports as Extensions, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, journeys_exports as Journeys, MailboxSendConflictError, MailboxSendRefusedError, mailboxes_exports as Mailboxes, media_exports as Media, MediaUploadError, messages_exports as Messages, namespaces_exports as Namespaces, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, subscriptions_exports as Subscriptions, templates_exports as Templates, UnauthorizedError, unsubscribe_groups_exports as UnsubscribeGroups, ValidationError, webhooks_exports as Webhooks, whoami_exports as Whoami, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|