samva 0.18.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/README.md +2 -0
- package/dist/client/sdk.gen.d.ts +94 -36
- package/dist/client/sdk.gen.js +269 -55
- package/dist/client/types.gen.d.ts +497 -106
- package/dist/effect/campaigns.d.ts +35 -3
- package/dist/effect/contact-groups.d.ts +39 -3
- package/dist/effect/contacts.d.ts +240 -17
- package/dist/effect/contacts.js +3 -1
- package/dist/effect/conversations.d.ts +11 -11
- 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/extension-installations.d.ts +12 -12
- package/dist/effect/extensions.d.ts +3 -3
- package/dist/effect/generated/campaigns.d.ts +73 -4
- package/dist/effect/generated/campaigns.js +18 -1
- package/dist/effect/generated/contact-groups.d.ts +33 -3
- package/dist/effect/generated/contacts.d.ts +608 -55
- package/dist/effect/generated/contacts.js +55 -10
- package/dist/effect/generated/conversations.d.ts +25 -25
- package/dist/effect/generated/conversations.js +1 -1
- package/dist/effect/generated/email.d.ts +162 -1
- package/dist/effect/generated/email.js +31 -11
- package/dist/effect/generated/extension-installations.d.ts +44 -44
- package/dist/effect/generated/extension-installations.js +6 -0
- package/dist/effect/generated/extensions.d.ts +10 -10
- package/dist/effect/generated/extensions.js +2 -0
- package/dist/effect/generated/journeys.d.ts +13 -61
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/mailboxes.d.ts +584 -78
- package/dist/effect/generated/mailboxes.js +65 -24
- package/dist/effect/generated/messages.d.ts +35 -1
- package/dist/effect/generated/messages.js +9 -2
- package/dist/effect/generated/namespaces.d.ts +432 -2
- package/dist/effect/generated/namespaces.js +91 -4
- package/dist/effect/generated/organizations.d.ts +13 -11
- package/dist/effect/generated/organizations.js +7 -3
- package/dist/effect/generated/shared.d.ts +104 -49
- package/dist/effect/generated/shared.js +51 -28
- package/dist/effect/generated/templates.d.ts +44 -1
- package/dist/effect/generated/templates.js +9 -3
- package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
- package/dist/effect/generated/unsubscribe-groups.js +75 -58
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +8 -0
- package/dist/effect/generated-metadata.d.ts +22 -6
- package/dist/effect/generated-metadata.js +334 -329
- package/dist/effect/index.js +2 -2
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/mailboxes.d.ts +144 -12
- package/dist/effect/messages.d.ts +8 -0
- package/dist/effect/namespaces.d.ts +29 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/organizations.d.ts +4 -4
- package/dist/effect/templates.d.ts +12 -1
- package/dist/effect/unsubscribe-groups.d.ts +29 -18
- package/dist/effect/unsubscribe-groups.js +5 -5
- package/dist/effect/webhooks.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +31 -4
- package/dist/mailbox-events.js +39 -11
- 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.d.ts +1 -1
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +24 -4
- package/dist/service-map.js +26 -2
- package/package.json +2 -2
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ForbiddenError, GatewayTimeoutError, IanaTimezone, InternalError, JsonValue, OperationAccepted, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
4
|
+
export type PhoneRegion = string;
|
|
5
|
+
export declare const PhoneRegion: Schema.String;
|
|
4
6
|
export type Organization = {
|
|
5
7
|
readonly id: string;
|
|
6
8
|
readonly billingAccountId: string;
|
|
7
9
|
readonly name: string;
|
|
8
10
|
readonly slug: string;
|
|
9
|
-
readonly
|
|
11
|
+
readonly defaultRegion: PhoneRegion | null;
|
|
10
12
|
readonly timezone: string;
|
|
11
13
|
readonly plan: string;
|
|
12
14
|
readonly isActive: boolean;
|
|
@@ -31,7 +33,7 @@ export declare const Organization: Schema.Struct<{
|
|
|
31
33
|
readonly billingAccountId: Schema.String;
|
|
32
34
|
readonly name: Schema.String;
|
|
33
35
|
readonly slug: Schema.String;
|
|
34
|
-
readonly
|
|
36
|
+
readonly defaultRegion: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
35
37
|
readonly timezone: Schema.String;
|
|
36
38
|
readonly plan: Schema.String;
|
|
37
39
|
readonly isActive: Schema.Boolean;
|
|
@@ -61,7 +63,7 @@ export declare const OrganizationsCreate200: Schema.Struct<{
|
|
|
61
63
|
readonly billingAccountId: Schema.String;
|
|
62
64
|
readonly name: Schema.String;
|
|
63
65
|
readonly slug: Schema.String;
|
|
64
|
-
readonly
|
|
66
|
+
readonly defaultRegion: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
65
67
|
readonly timezone: Schema.String;
|
|
66
68
|
readonly plan: Schema.String;
|
|
67
69
|
readonly isActive: Schema.Boolean;
|
|
@@ -99,7 +101,7 @@ export declare const OrganizationsGet200: Schema.Struct<{
|
|
|
99
101
|
readonly billingAccountId: Schema.String;
|
|
100
102
|
readonly name: Schema.String;
|
|
101
103
|
readonly slug: Schema.String;
|
|
102
|
-
readonly
|
|
104
|
+
readonly defaultRegion: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
103
105
|
readonly timezone: Schema.String;
|
|
104
106
|
readonly plan: Schema.String;
|
|
105
107
|
readonly isActive: Schema.Boolean;
|
|
@@ -132,7 +134,7 @@ export declare const OrganizationsGet504: typeof GatewayTimeoutError;
|
|
|
132
134
|
export type OrganizationsUpdateRequestJson = {
|
|
133
135
|
readonly name?: string | null;
|
|
134
136
|
readonly slug?: string | null;
|
|
135
|
-
readonly
|
|
137
|
+
readonly defaultRegion?: PhoneRegion | null | null;
|
|
136
138
|
readonly timezone?: IanaTimezone | null;
|
|
137
139
|
readonly isActive?: boolean | null;
|
|
138
140
|
readonly metadata?: {
|
|
@@ -144,7 +146,7 @@ export type OrganizationsUpdateRequestJson = {
|
|
|
144
146
|
export declare const OrganizationsUpdateRequestJson: Schema.Struct<{
|
|
145
147
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
146
148
|
readonly slug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
147
|
-
readonly
|
|
149
|
+
readonly defaultRegion: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
148
150
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
149
151
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
150
152
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -157,7 +159,7 @@ export declare const OrganizationsUpdate200: Schema.Struct<{
|
|
|
157
159
|
readonly billingAccountId: Schema.String;
|
|
158
160
|
readonly name: Schema.String;
|
|
159
161
|
readonly slug: Schema.String;
|
|
160
|
-
readonly
|
|
162
|
+
readonly defaultRegion: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
161
163
|
readonly timezone: Schema.String;
|
|
162
164
|
readonly plan: Schema.String;
|
|
163
165
|
readonly isActive: Schema.Boolean;
|
|
@@ -398,7 +400,7 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
398
400
|
readonly billingAccountId: Schema.String;
|
|
399
401
|
readonly name: Schema.String;
|
|
400
402
|
readonly slug: Schema.String;
|
|
401
|
-
readonly
|
|
403
|
+
readonly defaultRegion: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
402
404
|
readonly timezone: Schema.String;
|
|
403
405
|
readonly plan: Schema.String;
|
|
404
406
|
readonly isActive: Schema.Boolean;
|
|
@@ -634,7 +636,7 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
634
636
|
readonly billingAccountId: Schema.String;
|
|
635
637
|
readonly name: Schema.String;
|
|
636
638
|
readonly slug: Schema.String;
|
|
637
|
-
readonly
|
|
639
|
+
readonly defaultRegion: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
638
640
|
readonly timezone: Schema.String;
|
|
639
641
|
readonly plan: Schema.String;
|
|
640
642
|
readonly isActive: Schema.Boolean;
|
|
@@ -997,7 +999,7 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
997
999
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationsUpdate", "PATCH", "/v1/organizations/current", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
998
1000
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
999
1001
|
readonly slug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1000
|
-
readonly
|
|
1002
|
+
readonly defaultRegion: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
1001
1003
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1002
1004
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1003
1005
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -1008,7 +1010,7 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
1008
1010
|
readonly billingAccountId: Schema.String;
|
|
1009
1011
|
readonly name: Schema.String;
|
|
1010
1012
|
readonly slug: Schema.String;
|
|
1011
|
-
readonly
|
|
1013
|
+
readonly defaultRegion: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1012
1014
|
readonly timezone: Schema.String;
|
|
1013
1015
|
readonly plan: Schema.String;
|
|
1014
1016
|
readonly isActive: Schema.Boolean;
|
|
@@ -2,12 +2,16 @@ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, Forbidde
|
|
|
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/organizations.ts
|
|
5
|
+
const PhoneRegion = /* @__PURE__ */ Schema.String.annotate({ description: "An ISO 3166-1 alpha-2 region code, such as US or IN." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[A-Z]{2}$", "u")).annotate({
|
|
6
|
+
expected: "a string matching the RegExp ^[A-Z]{2}$",
|
|
7
|
+
identifier: "PhoneRegion"
|
|
8
|
+
}));
|
|
5
9
|
const Organization = /* @__PURE__ */ Schema.Struct({
|
|
6
10
|
id: Schema.String,
|
|
7
11
|
billingAccountId: Schema.String,
|
|
8
12
|
name: Schema.String,
|
|
9
13
|
slug: Schema.String,
|
|
10
|
-
|
|
14
|
+
defaultRegion: Schema.Union([PhoneRegion, Schema.Null]),
|
|
11
15
|
timezone: Schema.String,
|
|
12
16
|
plan: Schema.String,
|
|
13
17
|
isActive: Schema.Boolean,
|
|
@@ -44,7 +48,7 @@ const OrganizationsGet504 = GatewayTimeoutError;
|
|
|
44
48
|
const OrganizationsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
45
49
|
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
46
50
|
slug: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
47
|
-
|
|
51
|
+
defaultRegion: Schema.optionalKey(Schema.Union([Schema.Union([PhoneRegion, Schema.Null]), Schema.Null])),
|
|
48
52
|
timezone: Schema.optionalKey(Schema.Union([IanaTimezone, Schema.Null])),
|
|
49
53
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
50
54
|
metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])),
|
|
@@ -226,6 +230,6 @@ var OrganizationsGroup = class extends HttpApiGroup.make("Organizations").add(Ht
|
|
|
226
230
|
]
|
|
227
231
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "organizations.getUsage").annotate(OpenApi.Summary, "Get organization usage").annotate(OpenApi.Description, "Returns usage statistics for the current organization between `after` and `before`, which default to the current calendar month so far. `usage.periodStart` and `usage.periodEnd` echo the window counted.")).annotate(OpenApi.Description, "Organization management and usage statistics") {};
|
|
228
232
|
//#endregion
|
|
229
|
-
export { Organization, OrganizationsCreate200, OrganizationsCreate401, OrganizationsCreate402, OrganizationsCreate403, OrganizationsCreate422, OrganizationsCreate500, OrganizationsCreate502, OrganizationsCreate504, OrganizationsCreateRequestJson, OrganizationsDelete202, OrganizationsDelete401, OrganizationsDelete403, OrganizationsDelete409, OrganizationsDelete422, OrganizationsDelete500, OrganizationsDelete504, OrganizationsDeleteHeaders, OrganizationsDeleteRequestJson, OrganizationsGet200, OrganizationsGet401, OrganizationsGet403, OrganizationsGet404, OrganizationsGet422, OrganizationsGet500, OrganizationsGet504, OrganizationsGetProfile200, OrganizationsGetProfile401, OrganizationsGetProfile403, OrganizationsGetProfile422, OrganizationsGetProfile500, OrganizationsGetProfile504, OrganizationsGetTrustTier200, OrganizationsGetTrustTier401, OrganizationsGetTrustTier403, OrganizationsGetTrustTier404, OrganizationsGetTrustTier422, OrganizationsGetTrustTier500, OrganizationsGetTrustTier502, OrganizationsGetTrustTier504, OrganizationsGetUsage200, OrganizationsGetUsage401, OrganizationsGetUsage403, OrganizationsGetUsage422, OrganizationsGetUsage500, OrganizationsGetUsage504, OrganizationsGetUsageQuery, OrganizationsGroup, OrganizationsUpdate200, OrganizationsUpdate401, OrganizationsUpdate403, OrganizationsUpdate404, OrganizationsUpdate422, OrganizationsUpdate500, OrganizationsUpdate504, OrganizationsUpdateRequestJson };
|
|
233
|
+
export { Organization, OrganizationsCreate200, OrganizationsCreate401, OrganizationsCreate402, OrganizationsCreate403, OrganizationsCreate422, OrganizationsCreate500, OrganizationsCreate502, OrganizationsCreate504, OrganizationsCreateRequestJson, OrganizationsDelete202, OrganizationsDelete401, OrganizationsDelete403, OrganizationsDelete409, OrganizationsDelete422, OrganizationsDelete500, OrganizationsDelete504, OrganizationsDeleteHeaders, OrganizationsDeleteRequestJson, OrganizationsGet200, OrganizationsGet401, OrganizationsGet403, OrganizationsGet404, OrganizationsGet422, OrganizationsGet500, OrganizationsGet504, OrganizationsGetProfile200, OrganizationsGetProfile401, OrganizationsGetProfile403, OrganizationsGetProfile422, OrganizationsGetProfile500, OrganizationsGetProfile504, OrganizationsGetTrustTier200, OrganizationsGetTrustTier401, OrganizationsGetTrustTier403, OrganizationsGetTrustTier404, OrganizationsGetTrustTier422, OrganizationsGetTrustTier500, OrganizationsGetTrustTier502, OrganizationsGetTrustTier504, OrganizationsGetUsage200, OrganizationsGetUsage401, OrganizationsGetUsage403, OrganizationsGetUsage422, OrganizationsGetUsage500, OrganizationsGetUsage504, OrganizationsGetUsageQuery, OrganizationsGroup, OrganizationsUpdate200, OrganizationsUpdate401, OrganizationsUpdate403, OrganizationsUpdate404, OrganizationsUpdate422, OrganizationsUpdate500, OrganizationsUpdate504, OrganizationsUpdateRequestJson, PhoneRegion };
|
|
230
234
|
|
|
231
235
|
//# sourceMappingURL=organizations.js.map
|
|
@@ -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
|
};
|
|
@@ -642,7 +615,7 @@ export type PublishExtensionVersionPayload = {
|
|
|
642
615
|
readonly description?: string | null;
|
|
643
616
|
readonly version: string;
|
|
644
617
|
readonly runtime: "hosted" | "webhook";
|
|
645
|
-
readonly events: ReadonlyArray<"mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
|
|
618
|
+
readonly events: ReadonlyArray<"mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
|
|
646
619
|
readonly permissions: ReadonlyArray<"read" | "update" | "send" | "quarantine.read">;
|
|
647
620
|
};
|
|
648
621
|
readonly bundle?: string | null;
|
|
@@ -654,7 +627,7 @@ export declare const PublishExtensionVersionPayload: Schema.Struct<{
|
|
|
654
627
|
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
655
628
|
readonly version: Schema.String;
|
|
656
629
|
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
657
|
-
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
630
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
658
631
|
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
659
632
|
}>;
|
|
660
633
|
readonly bundle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -744,10 +717,34 @@ 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;
|
|
750
|
-
readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook">;
|
|
747
|
+
readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook">;
|
|
751
748
|
readonly channels?: ReadonlyArray<"email"> | null;
|
|
752
749
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
753
750
|
readonly namespaceId?: NamespaceId | null;
|
|
@@ -759,7 +756,7 @@ export type CreateWebhookPayload = {
|
|
|
759
756
|
export declare const CreateWebhookPayload: Schema.Struct<{
|
|
760
757
|
readonly name: Schema.String;
|
|
761
758
|
readonly url: Schema.String;
|
|
762
|
-
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"journey.webhook">]>>;
|
|
759
|
+
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"journey.webhook">]>>;
|
|
763
760
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
764
761
|
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]>>;
|
|
765
762
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
@@ -787,7 +784,7 @@ export declare const InstallExtensionPayload: Schema.Struct<{
|
|
|
787
784
|
export type UpdateWebhookPayload = {
|
|
788
785
|
readonly name?: string | null;
|
|
789
786
|
readonly url?: string | null;
|
|
790
|
-
readonly eventTypes?: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook"> | null;
|
|
787
|
+
readonly eventTypes?: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook"> | null;
|
|
791
788
|
readonly channels?: ReadonlyArray<"email"> | null | null;
|
|
792
789
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null | null;
|
|
793
790
|
readonly namespaceId?: NamespaceId | null | null;
|
|
@@ -799,7 +796,7 @@ export type UpdateWebhookPayload = {
|
|
|
799
796
|
export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
800
797
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
801
798
|
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
802
|
-
readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
799
|
+
readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
803
800
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>, Schema.Null]>>;
|
|
804
801
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>, Schema.Null]>>;
|
|
805
802
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>, Schema.Null]>>;
|
|
@@ -874,12 +871,36 @@ export declare const RespondToOnboardingInformationRequestInput: Schema.Struct<{
|
|
|
874
871
|
}>;
|
|
875
872
|
export type TemplateData = JsonObject | null;
|
|
876
873
|
export declare const TemplateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
874
|
+
export type ContactConsent = {
|
|
875
|
+
readonly status: "opted_in" | "opted_out";
|
|
876
|
+
readonly source: string;
|
|
877
|
+
readonly capturedAt: string;
|
|
878
|
+
readonly proof: JsonObject | null;
|
|
879
|
+
};
|
|
880
|
+
export declare const ContactConsent: Schema.Struct<{
|
|
881
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
882
|
+
readonly source: Schema.String;
|
|
883
|
+
readonly capturedAt: Schema.String;
|
|
884
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
885
|
+
}>;
|
|
877
886
|
export type JourneyWebhookConfig = {
|
|
878
887
|
readonly data?: JsonObject;
|
|
879
888
|
};
|
|
880
889
|
export declare const JourneyWebhookConfig: Schema.Struct<{
|
|
881
890
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
882
891
|
}>;
|
|
892
|
+
export type SetContactConsent = {
|
|
893
|
+
readonly status: "opted_in" | "opted_out";
|
|
894
|
+
readonly source: string;
|
|
895
|
+
readonly capturedAt: string;
|
|
896
|
+
readonly proof?: JsonObject | null;
|
|
897
|
+
};
|
|
898
|
+
export declare const SetContactConsent: Schema.Struct<{
|
|
899
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
900
|
+
readonly source: Schema.String;
|
|
901
|
+
readonly capturedAt: Schema.String;
|
|
902
|
+
readonly proof: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
903
|
+
}>;
|
|
883
904
|
export type RenderTemplatePublicationPayload = {
|
|
884
905
|
readonly data: {
|
|
885
906
|
readonly [x: string]: JsonValue;
|
|
@@ -998,18 +1019,6 @@ export declare const SubscribePayload: Schema.Struct<{
|
|
|
998
1019
|
readonly consentIp: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
999
1020
|
readonly consentSource: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1000
1021
|
}>;
|
|
1001
|
-
export type ContactIdentity = {
|
|
1002
|
-
readonly id: ContactIdentityId;
|
|
1003
|
-
readonly channel: "email";
|
|
1004
|
-
readonly identifier: string;
|
|
1005
|
-
readonly verified: boolean;
|
|
1006
|
-
};
|
|
1007
|
-
export declare const ContactIdentity: Schema.Struct<{
|
|
1008
|
-
readonly id: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
1009
|
-
readonly channel: Schema.Literal<"email">;
|
|
1010
|
-
readonly identifier: Schema.String;
|
|
1011
|
-
readonly verified: Schema.Boolean;
|
|
1012
|
-
}>;
|
|
1013
1022
|
export type JourneySendEmailConfig = {
|
|
1014
1023
|
readonly template: TemplateId | string;
|
|
1015
1024
|
readonly senderId?: EmailSenderId;
|
|
@@ -1030,12 +1039,12 @@ export declare const ExtensionVersionRef: Schema.Struct<{
|
|
|
1030
1039
|
}>;
|
|
1031
1040
|
export type UpgradeExtensionPayload = {
|
|
1032
1041
|
readonly version?: string | ExtensionVersionId | null;
|
|
1033
|
-
readonly acceptPermissions?: ReadonlyArray<"permission:read" | "permission:update" | "permission:send" | "permission:quarantine.read" | "event:mailbox.message.received" | "event:mailbox.message.sent" | "event:mailbox.action.pending_approval" | "event:mailbox.message.quarantined" | "event:mailbox.message.released" | "event:mailbox.message.discarded"> | null;
|
|
1042
|
+
readonly acceptPermissions?: ReadonlyArray<"permission:read" | "permission:update" | "permission:send" | "permission:quarantine.read" | "event:mailbox.message.received" | "event:mailbox.message.sent" | "event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.quarantined" | "event:mailbox.message.released" | "event:mailbox.message.discarded"> | null;
|
|
1034
1043
|
readonly dryRun?: boolean | null;
|
|
1035
1044
|
};
|
|
1036
1045
|
export declare const UpgradeExtensionPayload: Schema.Struct<{
|
|
1037
1046
|
readonly version: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.brand<Schema.String, "ExtensionVersionId">]>, Schema.Null]>>;
|
|
1038
|
-
readonly acceptPermissions: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"permission:read">, Schema.Literal<"permission:update">, Schema.Literal<"permission:send">, Schema.Literal<"permission:quarantine.read">, Schema.Literal<"event:mailbox.message.received">, Schema.Literal<"event:mailbox.message.sent">, Schema.Literal<"event:mailbox.action.pending_approval">, Schema.Literal<"event:mailbox.message.quarantined">, Schema.Literal<"event:mailbox.message.released">, Schema.Literal<"event:mailbox.message.discarded">]>>, Schema.Null]>>;
|
|
1047
|
+
readonly acceptPermissions: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"permission:read">, Schema.Literal<"permission:update">, Schema.Literal<"permission:send">, Schema.Literal<"permission:quarantine.read">, Schema.Literal<"event:mailbox.message.received">, Schema.Literal<"event:mailbox.message.sent">, Schema.Literal<"event:mailbox.action.pending_approval">, Schema.Literal<"event:mailbox.action.resolved">, Schema.Literal<"event:mailbox.message.quarantined">, Schema.Literal<"event:mailbox.message.released">, Schema.Literal<"event:mailbox.message.discarded">]>>, Schema.Null]>>;
|
|
1039
1048
|
readonly dryRun: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1040
1049
|
}>;
|
|
1041
1050
|
export type SendFeedback = {
|
|
@@ -1251,6 +1260,14 @@ export declare const CreateNamespacePayload: Schema.Struct<{
|
|
|
1251
1260
|
readonly name: Schema.String;
|
|
1252
1261
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1253
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
|
+
}>;
|
|
1254
1271
|
export type Operation = {
|
|
1255
1272
|
readonly id: OperationId;
|
|
1256
1273
|
readonly organizationId: string;
|
|
@@ -1587,6 +1604,21 @@ export declare const UpdateMailboxDraftPayload: Schema.Struct<{
|
|
|
1587
1604
|
readonly size: Schema.Finite;
|
|
1588
1605
|
}>>, Schema.Null]>, Schema.Null]>>;
|
|
1589
1606
|
}>;
|
|
1607
|
+
export type ContactIdentityChannel = {
|
|
1608
|
+
readonly channel: "email";
|
|
1609
|
+
readonly reachability: "unknown" | "reachable" | "unreachable";
|
|
1610
|
+
readonly consent: ContactConsent | null;
|
|
1611
|
+
};
|
|
1612
|
+
export declare const ContactIdentityChannel: Schema.Struct<{
|
|
1613
|
+
readonly channel: Schema.Literal<"email">;
|
|
1614
|
+
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
1615
|
+
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
1616
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
1617
|
+
readonly source: Schema.String;
|
|
1618
|
+
readonly capturedAt: Schema.String;
|
|
1619
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
1620
|
+
}>, Schema.Null]>;
|
|
1621
|
+
}>;
|
|
1590
1622
|
export type CreateEventPayload = {
|
|
1591
1623
|
readonly contact: ContactEventReference;
|
|
1592
1624
|
readonly name: string;
|
|
@@ -2014,6 +2046,29 @@ export declare const EmailDispatchContent: Schema.Struct<{
|
|
|
2014
2046
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2015
2047
|
}>>;
|
|
2016
2048
|
}>;
|
|
2049
|
+
export type ContactIdentity = {
|
|
2050
|
+
readonly id: ContactIdentityId;
|
|
2051
|
+
readonly type: "email" | "phone";
|
|
2052
|
+
readonly identifier: string;
|
|
2053
|
+
readonly verified: boolean;
|
|
2054
|
+
readonly channels: ReadonlyArray<ContactIdentityChannel>;
|
|
2055
|
+
};
|
|
2056
|
+
export declare const ContactIdentity: Schema.Struct<{
|
|
2057
|
+
readonly id: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
2058
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
2059
|
+
readonly identifier: Schema.String;
|
|
2060
|
+
readonly verified: Schema.Boolean;
|
|
2061
|
+
readonly channels: Schema.$Array<Schema.Struct<{
|
|
2062
|
+
readonly channel: Schema.Literal<"email">;
|
|
2063
|
+
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
2064
|
+
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
2065
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
2066
|
+
readonly source: Schema.String;
|
|
2067
|
+
readonly capturedAt: Schema.String;
|
|
2068
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
2069
|
+
}>, Schema.Null]>;
|
|
2070
|
+
}>>;
|
|
2071
|
+
}>;
|
|
2017
2072
|
export type BatchEventsPayload = {
|
|
2018
2073
|
readonly events: readonly [CreateEventPayload, ...Array<CreateEventPayload>];
|
|
2019
2074
|
};
|
|
@@ -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,
|
|
@@ -519,6 +522,7 @@ const CreateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
|
519
522
|
Schema.Literal("contact.subscribed"),
|
|
520
523
|
Schema.Literal("contact.unsubscribed"),
|
|
521
524
|
Schema.Literal("contact.resubscribed"),
|
|
525
|
+
Schema.Literal("contact.consent_changed"),
|
|
522
526
|
Schema.Literal("conversation.created"),
|
|
523
527
|
Schema.Literal("conversation.updated"),
|
|
524
528
|
Schema.Literal("conversation.archived"),
|
|
@@ -531,6 +535,7 @@ const CreateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
|
531
535
|
Schema.Literal("mailbox.message.received"),
|
|
532
536
|
Schema.Literal("mailbox.message.sent"),
|
|
533
537
|
Schema.Literal("mailbox.action.pending_approval"),
|
|
538
|
+
Schema.Literal("mailbox.action.resolved"),
|
|
534
539
|
Schema.Literal("mailbox.message.quarantined"),
|
|
535
540
|
Schema.Literal("mailbox.message.released"),
|
|
536
541
|
Schema.Literal("mailbox.message.discarded"),
|
|
@@ -561,6 +566,7 @@ const UpdateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
|
561
566
|
Schema.Literal("contact.subscribed"),
|
|
562
567
|
Schema.Literal("contact.unsubscribed"),
|
|
563
568
|
Schema.Literal("contact.resubscribed"),
|
|
569
|
+
Schema.Literal("contact.consent_changed"),
|
|
564
570
|
Schema.Literal("conversation.created"),
|
|
565
571
|
Schema.Literal("conversation.updated"),
|
|
566
572
|
Schema.Literal("conversation.archived"),
|
|
@@ -573,6 +579,7 @@ const UpdateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
|
573
579
|
Schema.Literal("mailbox.message.received"),
|
|
574
580
|
Schema.Literal("mailbox.message.sent"),
|
|
575
581
|
Schema.Literal("mailbox.action.pending_approval"),
|
|
582
|
+
Schema.Literal("mailbox.action.resolved"),
|
|
576
583
|
Schema.Literal("mailbox.message.quarantined"),
|
|
577
584
|
Schema.Literal("mailbox.message.released"),
|
|
578
585
|
Schema.Literal("mailbox.message.discarded"),
|
|
@@ -631,6 +638,12 @@ const EmailAttachment = /* @__PURE__ */ Schema.Struct({
|
|
|
631
638
|
size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
632
639
|
}).annotate({ identifier: "EmailAttachment" });
|
|
633
640
|
const TemplateData = /* @__PURE__ */ Schema.Union([JsonObject, Schema.Null]).annotate({ identifier: "TemplateData" });
|
|
641
|
+
const ContactConsent = /* @__PURE__ */ Schema.Struct({
|
|
642
|
+
status: Schema.Union([Schema.Literal("opted_in"), Schema.Literal("opted_out")]),
|
|
643
|
+
source: Schema.String,
|
|
644
|
+
capturedAt: Schema.String,
|
|
645
|
+
proof: Schema.Union([JsonObject, Schema.Null])
|
|
646
|
+
}).annotate({ identifier: "ContactConsent" });
|
|
634
647
|
const JourneyWebhookConfig = /* @__PURE__ */ Schema.Struct({ data: Schema.optionalKey(JsonObject) }).annotate({ identifier: "JourneyWebhookConfig" });
|
|
635
648
|
const SkippedRecipient = /* @__PURE__ */ Schema.Struct({
|
|
636
649
|
address: Schema.String,
|
|
@@ -678,12 +691,6 @@ const JourneyGroupJoinedTrigger = /* @__PURE__ */ Schema.Struct({
|
|
|
678
691
|
type: Schema.Literal("contact.joined_group"),
|
|
679
692
|
groupId: ContactGroupId
|
|
680
693
|
}).annotate({ identifier: "JourneyGroupJoinedTrigger" });
|
|
681
|
-
const ContactIdentity = /* @__PURE__ */ Schema.Struct({
|
|
682
|
-
id: ContactIdentityId,
|
|
683
|
-
channel: Schema.Literal("email"),
|
|
684
|
-
identifier: Schema.String,
|
|
685
|
-
verified: Schema.Boolean
|
|
686
|
-
}).annotate({ identifier: "ContactIdentity" });
|
|
687
694
|
const JourneySendEmailConfig = /* @__PURE__ */ Schema.Struct({
|
|
688
695
|
template: Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" }))]),
|
|
689
696
|
senderId: Schema.optionalKey(EmailSenderId),
|
|
@@ -823,7 +830,7 @@ const ApiKeyAccess = /* @__PURE__ */ Schema.Union([Schema.Struct({ mode: Schema.
|
|
|
823
830
|
mode: Schema.Literal("restricted"),
|
|
824
831
|
resources: ApiKeyResourceAccess,
|
|
825
832
|
mailboxes: Schema.optionalKey(Schema.Union([ApiKeyMailboxAccess, Schema.Null])),
|
|
826
|
-
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." }))
|
|
827
834
|
})]).annotate({ identifier: "ApiKeyAccess" });
|
|
828
835
|
const MessagePage = /* @__PURE__ */ Schema.Struct({
|
|
829
836
|
items: Schema.Array(MessageSummary),
|
|
@@ -845,6 +852,15 @@ const UpdateBrand = /* @__PURE__ */ Schema.Struct({
|
|
|
845
852
|
footer: Schema.optionalKey(Schema.Union([BrandFooter, Schema.Null]))
|
|
846
853
|
}).annotate({ identifier: "UpdateBrand" });
|
|
847
854
|
const EmailAttachments = /* @__PURE__ */ Schema.Union([Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema.Null]).annotate({ identifier: "EmailAttachments" });
|
|
855
|
+
const ContactIdentityChannel = /* @__PURE__ */ Schema.Struct({
|
|
856
|
+
channel: Schema.Literal("email"),
|
|
857
|
+
reachability: Schema.Union([
|
|
858
|
+
Schema.Literal("unknown"),
|
|
859
|
+
Schema.Literal("reachable"),
|
|
860
|
+
Schema.Literal("unreachable")
|
|
861
|
+
]),
|
|
862
|
+
consent: Schema.Union([ContactConsent, Schema.Null])
|
|
863
|
+
}).annotate({ identifier: "ContactIdentityChannel" });
|
|
848
864
|
const CreateEventPayload = /* @__PURE__ */ Schema.Struct({
|
|
849
865
|
contact: ContactEventReference,
|
|
850
866
|
name: 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" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?!(?:[Cc][Oo][Nn][Tt][Aa][Cc][Tt]|[Ss][Aa][Mm][Vv][Aa])\\.)[A-Za-z][A-Za-z0-9_.-]*$")).annotate({ expected: "a string matching the RegExp ^(?!(?:[Cc][Oo][Nn][Tt][Aa][Cc][Tt]|[Ss][Aa][Mm][Vv][Aa])\\.)[A-Za-z][A-Za-z0-9_.-]*$" })),
|
|
@@ -984,6 +1000,13 @@ const EmailDispatchContent = /* @__PURE__ */ Schema.Struct({
|
|
|
984
1000
|
tracking: Schema.optionalKey(EmailTrackingOverrideV1),
|
|
985
1001
|
footer: Schema.optionalKey(EmailFooterOverride)
|
|
986
1002
|
}).annotate({ identifier: "EmailDispatchContent" });
|
|
1003
|
+
const ContactIdentity = /* @__PURE__ */ Schema.Struct({
|
|
1004
|
+
id: ContactIdentityId,
|
|
1005
|
+
type: Schema.Union([Schema.Literal("email"), Schema.Literal("phone")]),
|
|
1006
|
+
identifier: Schema.String,
|
|
1007
|
+
verified: Schema.Boolean,
|
|
1008
|
+
channels: Schema.Array(ContactIdentityChannel)
|
|
1009
|
+
}).annotate({ identifier: "ContactIdentity" });
|
|
987
1010
|
const JourneyWaitForEventNode = /* @__PURE__ */ Schema.Struct({
|
|
988
1011
|
type: Schema.Literal("wait_for_event"),
|
|
989
1012
|
config: JourneyWaitForEventConfig,
|
|
@@ -1048,6 +1071,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
|
|
|
1048
1071
|
});
|
|
1049
1072
|
var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
|
|
1050
1073
|
//#endregion
|
|
1051
|
-
export { AnalyticsQueryError, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignFooterRequiredError, ConflictError, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, 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 };
|
|
1052
1075
|
|
|
1053
1076
|
//# sourceMappingURL=shared.js.map
|