samva 0.17.0 → 0.19.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/AGENTS.md +5 -0
- package/README.md +18 -3
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/sdk.gen.d.ts +39 -23
- package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +87 -2314
- package/dist/client/types.gen.d.ts +175 -44
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +23 -2
- package/dist/effect/api-keys.d.ts +12 -12
- package/dist/effect/api-keys.js +29 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +19 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +26 -3
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +35 -2
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.js +3 -3
- package/dist/effect/contact-groups.d.ts +53 -17
- package/dist/effect/contact-groups.js +31 -2
- package/dist/effect/contacts.d.ts +244 -41
- package/dist/effect/contacts.js +54 -2
- package/dist/effect/conversations.d.ts +28 -28
- package/dist/effect/conversations.js +37 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +19 -2
- package/dist/effect/email.d.ts +75 -75
- package/dist/effect/email.js +140 -2
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/events.js +17 -3
- package/dist/effect/extension-installations.d.ts +23 -23
- package/dist/effect/extension-installations.js +29 -2
- package/dist/effect/extensions.d.ts +12 -12
- package/dist/effect/extensions.js +21 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +14 -3
- package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
- package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
- package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
- package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
- package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +33 -3
- package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
- package/dist/effect/generated/contacts.d.ts +477 -54
- package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +41 -89
- package/dist/effect/generated/conversations.d.ts +25 -25
- package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +4 -37
- package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
- package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
- package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
- package/dist/effect/generated/extension-installations.d.ts +44 -44
- package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +10 -29
- package/dist/effect/generated/extensions.d.ts +10 -10
- package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +5 -20
- package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
- package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
- package/dist/effect/generated/mailboxes.d.ts +310 -0
- package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +829 -954
- package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
- package/dist/effect/generated/messages.d.ts +31 -0
- package/dist/effect/generated/messages.js +677 -0
- package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
- package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
- package/dist/effect/generated/organizations.d.ts +13 -11
- package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +9 -26
- package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
- package/dist/effect/generated/shared.d.ts +70 -20
- package/dist/effect/generated/shared.js +1073 -0
- package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
- package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
- package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
- package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +77 -84
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +12 -34
- package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
- package/dist/effect/generated-metadata.d.ts +7 -2
- package/dist/effect/generated-metadata.js +925 -0
- package/dist/effect/index.d.ts +1 -2
- package/dist/effect/index.js +32 -32
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +18 -18
- package/dist/effect/journeys.js +39 -2
- package/dist/effect/mailboxes.d.ts +314 -182
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -10
- package/dist/effect/messages.d.ts +19 -14
- package/dist/effect/messages.js +15 -14
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +21 -2
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +17 -2
- package/dist/effect/organizations.d.ts +11 -11
- package/dist/effect/organizations.js +25 -2
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +21 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +10 -2
- package/dist/effect/templates.d.ts +39 -39
- package/dist/effect/templates.js +80 -3
- package/dist/effect/unsubscribe-groups.d.ts +39 -28
- package/dist/effect/unsubscribe-groups.js +29 -2
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/effect/webhooks.js +35 -3
- package/dist/effect/whoami.d.ts +9 -9
- package/dist/effect/whoami.js +10 -2
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
- package/dist/mailbox-events.d.ts +31 -4
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +41 -13
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -4
- package/dist/{operation-n_IYgNVK.js → service-map.js} +12 -150
- package/package.json +6 -2
- package/dist/categories-CA4XIQAb.js +0 -1011
- package/dist/client-DOzUrdTE.js +0 -1115
- package/dist/send-Bxc0XfGE.js +0 -722
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as Cursor, Dt as NamespaceMetadata, Et as NamespaceId, Ht as SuccessResponse, Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, Y as InternalError, en as ValidationError, m as ConflictError, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware } from "./client-DOzUrdTE.js";
|
|
3
|
-
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, NamespaceId, NamespaceMetadata, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
5
3
|
import * as Schema from "effect/Schema";
|
|
6
4
|
//#region src/effect/generated/namespaces.ts
|
|
@@ -132,21 +130,6 @@ var NamespacesGroup = class extends HttpApiGroup.make("Namespaces").add(HttpApiE
|
|
|
132
130
|
]
|
|
133
131
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "namespaces.update").annotate(OpenApi.Summary, "Update a namespace").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. `metadata` merges into the stored metadata by key, and a `null` value deletes that key.")).annotate(OpenApi.Description, "Sub-tenants that confine mailboxes and API keys inside an organization") {};
|
|
134
132
|
//#endregion
|
|
135
|
-
|
|
136
|
-
var namespaces_exports = /* @__PURE__ */ __exportAll({
|
|
137
|
-
create: () => create,
|
|
138
|
-
get: () => get,
|
|
139
|
-
list: () => list,
|
|
140
|
-
remove: () => remove,
|
|
141
|
-
update: () => update
|
|
142
|
-
});
|
|
143
|
-
const make = forGroup(NamespacesGroup);
|
|
144
|
-
const list = make("namespacesList");
|
|
145
|
-
const create = make("namespacesCreate");
|
|
146
|
-
const get = make("namespacesGet");
|
|
147
|
-
const update = make("namespacesUpdate");
|
|
148
|
-
const remove = make("namespacesRemove");
|
|
149
|
-
//#endregion
|
|
150
|
-
export { remove as a, namespaces_exports as i, get as n, update as o, list as r, create as t };
|
|
133
|
+
export { Namespace, NamespacePage, NamespaceSummary, NamespacesCreate201, NamespacesCreate401, NamespacesCreate403, NamespacesCreate409, NamespacesCreate422, NamespacesCreate500, NamespacesCreate504, NamespacesCreateRequestJson, NamespacesGet200, NamespacesGet401, NamespacesGet403, NamespacesGet404, NamespacesGet422, NamespacesGet500, NamespacesGet504, NamespacesGetPathParams, NamespacesGroup, NamespacesList200, NamespacesList401, NamespacesList403, NamespacesList422, NamespacesList500, NamespacesList504, NamespacesListQuery, NamespacesRemove200, NamespacesRemove401, NamespacesRemove403, NamespacesRemove404, NamespacesRemove409, NamespacesRemove422, NamespacesRemove500, NamespacesRemove504, NamespacesRemovePathParams, NamespacesUpdate200, NamespacesUpdate401, NamespacesUpdate403, NamespacesUpdate404, NamespacesUpdate409, NamespacesUpdate422, NamespacesUpdate500, NamespacesUpdate504, NamespacesUpdatePathParams, NamespacesUpdateRequestJson };
|
|
151
134
|
|
|
152
|
-
//# sourceMappingURL=namespaces
|
|
135
|
+
//# sourceMappingURL=namespaces.js.map
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { At as OperationAccepted, D as Cursor, Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, Y as InternalError, en as ValidationError, jt as OperationId, kt as Operation, m as ConflictError, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware } from "./client-DOzUrdTE.js";
|
|
3
|
-
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, Operation, OperationAccepted, OperationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
5
3
|
import * as Schema from "effect/Schema";
|
|
6
4
|
//#region src/effect/generated/operations.ts
|
|
@@ -77,17 +75,6 @@ var OperationsGroup = class extends HttpApiGroup.make("Operations").add(HttpApiE
|
|
|
77
75
|
]
|
|
78
76
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "operations.retry").annotate(OpenApi.Summary, "Retry an asynchronous operation").annotate(OpenApi.Description, "Retries a failed operation in place when its error is retryable. Retrying an organization deletion additionally requires `organization:delete`.")).annotate(OpenApi.Description, "Status of accepted asynchronous mutations") {};
|
|
79
77
|
//#endregion
|
|
80
|
-
|
|
81
|
-
var operations_exports = /* @__PURE__ */ __exportAll({
|
|
82
|
-
get: () => get,
|
|
83
|
-
list: () => list,
|
|
84
|
-
retry: () => retry
|
|
85
|
-
});
|
|
86
|
-
const make = forGroup(OperationsGroup);
|
|
87
|
-
const list = make("operationsList");
|
|
88
|
-
const get = make("operationsGet");
|
|
89
|
-
const retry = make("operationsRetry");
|
|
90
|
-
//#endregion
|
|
91
|
-
export { retry as i, list as n, operations_exports as r, get as t };
|
|
78
|
+
export { OperationPage, OperationsGet200, OperationsGet401, OperationsGet403, OperationsGet404, OperationsGet422, OperationsGet500, OperationsGet504, OperationsGetPathParams, OperationsGroup, OperationsList200, OperationsList401, OperationsList403, OperationsList422, OperationsList500, OperationsList504, OperationsListQuery, OperationsRetry202, OperationsRetry401, OperationsRetry403, OperationsRetry404, OperationsRetry409, OperationsRetry422, OperationsRetry500, OperationsRetry504, OperationsRetryPathParams };
|
|
92
79
|
|
|
93
|
-
//# sourceMappingURL=operations
|
|
80
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -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;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { At as OperationAccepted, J as IanaTimezone, Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, Nt as PaymentRequiredError, Y as InternalError, en as ValidationError, et as JsonValue, l as BillingProviderError, m as ConflictError, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware } from "./client-DOzUrdTE.js";
|
|
3
|
-
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ForbiddenError, GatewayTimeoutError, IanaTimezone, InternalError, JsonValue, OperationAccepted, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
5
3
|
import * as Schema from "effect/Schema";
|
|
6
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
|
+
}));
|
|
7
9
|
const Organization = /* @__PURE__ */ Schema.Struct({
|
|
8
10
|
id: Schema.String,
|
|
9
11
|
billingAccountId: Schema.String,
|
|
10
12
|
name: Schema.String,
|
|
11
13
|
slug: Schema.String,
|
|
12
|
-
|
|
14
|
+
defaultRegion: Schema.Union([PhoneRegion, Schema.Null]),
|
|
13
15
|
timezone: Schema.String,
|
|
14
16
|
plan: Schema.String,
|
|
15
17
|
isActive: Schema.Boolean,
|
|
@@ -46,7 +48,7 @@ const OrganizationsGet504 = GatewayTimeoutError;
|
|
|
46
48
|
const OrganizationsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
47
49
|
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
48
50
|
slug: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
49
|
-
|
|
51
|
+
defaultRegion: Schema.optionalKey(Schema.Union([Schema.Union([PhoneRegion, Schema.Null]), Schema.Null])),
|
|
50
52
|
timezone: Schema.optionalKey(Schema.Union([IanaTimezone, Schema.Null])),
|
|
51
53
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
52
54
|
metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])),
|
|
@@ -228,25 +230,6 @@ var OrganizationsGroup = class extends HttpApiGroup.make("Organizations").add(Ht
|
|
|
228
230
|
]
|
|
229
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") {};
|
|
230
232
|
//#endregion
|
|
231
|
-
|
|
232
|
-
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
233
|
-
create: () => create,
|
|
234
|
-
delete: () => deleteOrganization,
|
|
235
|
-
get: () => get,
|
|
236
|
-
getProfile: () => getProfile,
|
|
237
|
-
getTrustTier: () => getTrustTier,
|
|
238
|
-
getUsage: () => getUsage,
|
|
239
|
-
update: () => update
|
|
240
|
-
});
|
|
241
|
-
const make = forGroup(OrganizationsGroup);
|
|
242
|
-
const create = make("organizationsCreate");
|
|
243
|
-
const get = make("organizationsGet");
|
|
244
|
-
const getProfile = make("organizationsGetProfile");
|
|
245
|
-
const getTrustTier = make("organizationsGetTrustTier");
|
|
246
|
-
const update = make("organizationsUpdate");
|
|
247
|
-
const getUsage = make("organizationsGetUsage");
|
|
248
|
-
const deleteOrganization = make("organizationsDelete");
|
|
249
|
-
//#endregion
|
|
250
|
-
export { getTrustTier as a, update as c, getProfile as i, deleteOrganization as n, getUsage as o, get as r, organizations_exports as s, create as t };
|
|
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 };
|
|
251
234
|
|
|
252
|
-
//# sourceMappingURL=organizations
|
|
235
|
+
//# sourceMappingURL=organizations.js.map
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { A as EmailBccRecipients, Ct as MessageId, D as Cursor, G as FlagDisabledError, I as EmailRecipients, J as IanaTimezone, Jt as UnauthorizedError, K as ForbiddenError, L as EmailSender, Lt as ResourceNotFoundError, N as EmailContent, P as EmailDispatchContent, U as ExternalServiceError, Y as InternalError, en as ValidationError, j as EmailCcRecipients, m as ConflictError, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware, wt as MessageMetadata, x as ConversationId, zt as SenderNotReadyError } from "./client-DOzUrdTE.js";
|
|
4
|
-
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
1
|
+
import { AbsoluteInstant } from "../runtime.js";
|
|
2
|
+
import { ApiKeySecurityMiddleware, ConflictError, ConversationId, Cursor, EmailBccRecipients, EmailCcRecipients, EmailContent, EmailDispatchContent, EmailRecipients, EmailSender, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, IanaTimezone, InternalError, MessageId, MessageMetadata, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
6
4
|
import * as Schema from "effect/Schema";
|
|
7
5
|
//#region src/effect/generated/scheduled-messages.ts
|
|
@@ -187,21 +185,6 @@ var ScheduledMessagesGroup = class extends HttpApiGroup.make("Scheduled Messages
|
|
|
187
185
|
]
|
|
188
186
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "scheduledMessages.resume").annotate(OpenApi.Summary, "Resume a review-paused scheduled message").annotate(OpenApi.Description, "Explicitly resumes a scheduled message after onboarding review clearance. An overdue message requires either send_now or a new future scheduledFor value.")).annotate(OpenApi.Description, "One-off scheduled message timers") {};
|
|
189
187
|
//#endregion
|
|
190
|
-
|
|
191
|
-
var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
|
|
192
|
-
cancel: () => cancel,
|
|
193
|
-
create: () => create,
|
|
194
|
-
get: () => get,
|
|
195
|
-
list: () => list,
|
|
196
|
-
resume: () => resume
|
|
197
|
-
});
|
|
198
|
-
const make = forGroup(ScheduledMessagesGroup);
|
|
199
|
-
const list = make("scheduledMessagesList");
|
|
200
|
-
const create = make("scheduledMessagesCreate");
|
|
201
|
-
const get = make("scheduledMessagesGet");
|
|
202
|
-
const cancel = make("scheduledMessagesCancel");
|
|
203
|
-
const resume = make("scheduledMessagesResume");
|
|
204
|
-
//#endregion
|
|
205
|
-
export { resume as a, list as i, create as n, scheduled_messages_exports as o, get as r, cancel as t };
|
|
188
|
+
export { DispatchSendMessagePayload, ScheduledMessage, ScheduledMessageId, ScheduledMessagePage, ScheduledMessagesCancel200, ScheduledMessagesCancel401, ScheduledMessagesCancel403, ScheduledMessagesCancel404, ScheduledMessagesCancel409, ScheduledMessagesCancel422, ScheduledMessagesCancel500, ScheduledMessagesCancel504, ScheduledMessagesCancelPathParams, ScheduledMessagesCreate201, ScheduledMessagesCreate401, ScheduledMessagesCreate403, ScheduledMessagesCreate409, ScheduledMessagesCreate422, ScheduledMessagesCreate500, ScheduledMessagesCreate502, ScheduledMessagesCreate504, ScheduledMessagesCreateRequestJson, ScheduledMessagesGet200, ScheduledMessagesGet401, ScheduledMessagesGet403, ScheduledMessagesGet404, ScheduledMessagesGet422, ScheduledMessagesGet500, ScheduledMessagesGet504, ScheduledMessagesGetPathParams, ScheduledMessagesGroup, ScheduledMessagesList200, ScheduledMessagesList401, ScheduledMessagesList403, ScheduledMessagesList422, ScheduledMessagesList500, ScheduledMessagesList504, ScheduledMessagesListQuery, ScheduledMessagesResume200, ScheduledMessagesResume401, ScheduledMessagesResume403, ScheduledMessagesResume404, ScheduledMessagesResume409, ScheduledMessagesResume422, ScheduledMessagesResume500, ScheduledMessagesResume502, ScheduledMessagesResume503, ScheduledMessagesResume504, ScheduledMessagesResumePathParams, ScheduledMessagesResumeRequestJson, SendMessagePayload };
|
|
206
189
|
|
|
207
|
-
//# sourceMappingURL=scheduled-messages
|
|
190
|
+
//# sourceMappingURL=scheduled-messages.js.map
|
|
@@ -642,7 +642,7 @@ export type PublishExtensionVersionPayload = {
|
|
|
642
642
|
readonly description?: string | null;
|
|
643
643
|
readonly version: string;
|
|
644
644
|
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">;
|
|
645
|
+
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
646
|
readonly permissions: ReadonlyArray<"read" | "update" | "send" | "quarantine.read">;
|
|
647
647
|
};
|
|
648
648
|
readonly bundle?: string | null;
|
|
@@ -654,7 +654,7 @@ export declare const PublishExtensionVersionPayload: Schema.Struct<{
|
|
|
654
654
|
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
655
655
|
readonly version: Schema.String;
|
|
656
656
|
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">]>>;
|
|
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.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
658
658
|
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
659
659
|
}>;
|
|
660
660
|
readonly bundle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -747,7 +747,7 @@ export declare const ApiKeyMailboxAccess: Schema.Struct<{
|
|
|
747
747
|
export type CreateWebhookPayload = {
|
|
748
748
|
readonly name: string;
|
|
749
749
|
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">;
|
|
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" | "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
751
|
readonly channels?: ReadonlyArray<"email"> | null;
|
|
752
752
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
753
753
|
readonly namespaceId?: NamespaceId | null;
|
|
@@ -759,7 +759,7 @@ export type CreateWebhookPayload = {
|
|
|
759
759
|
export declare const CreateWebhookPayload: Schema.Struct<{
|
|
760
760
|
readonly name: Schema.String;
|
|
761
761
|
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">]>>;
|
|
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<"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
763
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
764
764
|
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
765
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
@@ -787,7 +787,7 @@ export declare const InstallExtensionPayload: Schema.Struct<{
|
|
|
787
787
|
export type UpdateWebhookPayload = {
|
|
788
788
|
readonly name?: string | null;
|
|
789
789
|
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;
|
|
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" | "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
791
|
readonly channels?: ReadonlyArray<"email"> | null | null;
|
|
792
792
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null | null;
|
|
793
793
|
readonly namespaceId?: NamespaceId | null | null;
|
|
@@ -799,7 +799,7 @@ export type UpdateWebhookPayload = {
|
|
|
799
799
|
export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
800
800
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
801
801
|
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]>>;
|
|
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<"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
803
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>, Schema.Null]>>;
|
|
804
804
|
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
805
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>, Schema.Null]>>;
|
|
@@ -874,12 +874,36 @@ export declare const RespondToOnboardingInformationRequestInput: Schema.Struct<{
|
|
|
874
874
|
}>;
|
|
875
875
|
export type TemplateData = JsonObject | null;
|
|
876
876
|
export declare const TemplateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
877
|
+
export type ContactConsent = {
|
|
878
|
+
readonly status: "opted_in" | "opted_out";
|
|
879
|
+
readonly source: string;
|
|
880
|
+
readonly capturedAt: string;
|
|
881
|
+
readonly proof: JsonObject | null;
|
|
882
|
+
};
|
|
883
|
+
export declare const ContactConsent: Schema.Struct<{
|
|
884
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
885
|
+
readonly source: Schema.String;
|
|
886
|
+
readonly capturedAt: Schema.String;
|
|
887
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
888
|
+
}>;
|
|
877
889
|
export type JourneyWebhookConfig = {
|
|
878
890
|
readonly data?: JsonObject;
|
|
879
891
|
};
|
|
880
892
|
export declare const JourneyWebhookConfig: Schema.Struct<{
|
|
881
893
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
882
894
|
}>;
|
|
895
|
+
export type SetContactConsent = {
|
|
896
|
+
readonly status: "opted_in" | "opted_out";
|
|
897
|
+
readonly source: string;
|
|
898
|
+
readonly capturedAt: string;
|
|
899
|
+
readonly proof?: JsonObject | null;
|
|
900
|
+
};
|
|
901
|
+
export declare const SetContactConsent: Schema.Struct<{
|
|
902
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
903
|
+
readonly source: Schema.String;
|
|
904
|
+
readonly capturedAt: Schema.String;
|
|
905
|
+
readonly proof: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
906
|
+
}>;
|
|
883
907
|
export type RenderTemplatePublicationPayload = {
|
|
884
908
|
readonly data: {
|
|
885
909
|
readonly [x: string]: JsonValue;
|
|
@@ -998,18 +1022,6 @@ export declare const SubscribePayload: Schema.Struct<{
|
|
|
998
1022
|
readonly consentIp: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
999
1023
|
readonly consentSource: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1000
1024
|
}>;
|
|
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
1025
|
export type JourneySendEmailConfig = {
|
|
1014
1026
|
readonly template: TemplateId | string;
|
|
1015
1027
|
readonly senderId?: EmailSenderId;
|
|
@@ -1030,12 +1042,12 @@ export declare const ExtensionVersionRef: Schema.Struct<{
|
|
|
1030
1042
|
}>;
|
|
1031
1043
|
export type UpgradeExtensionPayload = {
|
|
1032
1044
|
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;
|
|
1045
|
+
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
1046
|
readonly dryRun?: boolean | null;
|
|
1035
1047
|
};
|
|
1036
1048
|
export declare const UpgradeExtensionPayload: Schema.Struct<{
|
|
1037
1049
|
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]>>;
|
|
1050
|
+
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
1051
|
readonly dryRun: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1040
1052
|
}>;
|
|
1041
1053
|
export type SendFeedback = {
|
|
@@ -1587,6 +1599,21 @@ export declare const UpdateMailboxDraftPayload: Schema.Struct<{
|
|
|
1587
1599
|
readonly size: Schema.Finite;
|
|
1588
1600
|
}>>, Schema.Null]>, Schema.Null]>>;
|
|
1589
1601
|
}>;
|
|
1602
|
+
export type ContactIdentityChannel = {
|
|
1603
|
+
readonly channel: "email";
|
|
1604
|
+
readonly reachability: "unknown" | "reachable" | "unreachable";
|
|
1605
|
+
readonly consent: ContactConsent | null;
|
|
1606
|
+
};
|
|
1607
|
+
export declare const ContactIdentityChannel: Schema.Struct<{
|
|
1608
|
+
readonly channel: Schema.Literal<"email">;
|
|
1609
|
+
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
1610
|
+
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
1611
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
1612
|
+
readonly source: Schema.String;
|
|
1613
|
+
readonly capturedAt: Schema.String;
|
|
1614
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
1615
|
+
}>, Schema.Null]>;
|
|
1616
|
+
}>;
|
|
1590
1617
|
export type CreateEventPayload = {
|
|
1591
1618
|
readonly contact: ContactEventReference;
|
|
1592
1619
|
readonly name: string;
|
|
@@ -2014,6 +2041,29 @@ export declare const EmailDispatchContent: Schema.Struct<{
|
|
|
2014
2041
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2015
2042
|
}>>;
|
|
2016
2043
|
}>;
|
|
2044
|
+
export type ContactIdentity = {
|
|
2045
|
+
readonly id: ContactIdentityId;
|
|
2046
|
+
readonly type: "email" | "phone";
|
|
2047
|
+
readonly identifier: string;
|
|
2048
|
+
readonly verified: boolean;
|
|
2049
|
+
readonly channels: ReadonlyArray<ContactIdentityChannel>;
|
|
2050
|
+
};
|
|
2051
|
+
export declare const ContactIdentity: Schema.Struct<{
|
|
2052
|
+
readonly id: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
2053
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
2054
|
+
readonly identifier: Schema.String;
|
|
2055
|
+
readonly verified: Schema.Boolean;
|
|
2056
|
+
readonly channels: Schema.$Array<Schema.Struct<{
|
|
2057
|
+
readonly channel: Schema.Literal<"email">;
|
|
2058
|
+
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
2059
|
+
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
2060
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
2061
|
+
readonly source: Schema.String;
|
|
2062
|
+
readonly capturedAt: Schema.String;
|
|
2063
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
2064
|
+
}>, Schema.Null]>;
|
|
2065
|
+
}>>;
|
|
2066
|
+
}>;
|
|
2017
2067
|
export type BatchEventsPayload = {
|
|
2018
2068
|
readonly events: readonly [CreateEventPayload, ...Array<CreateEventPayload>];
|
|
2019
2069
|
};
|