sequenzy 2.1.36 → 2.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/resources/campaigns/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/client/Client.js +3 -0
- package/dist/cjs/api/resources/campaigns/client/requests/CreateCampaignsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/client/requests/UpdateCampaignsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/types/CreateCampaignsResponse.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/types/CreateCampaignsResponseCampaign.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/types/DuplicateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/types/UpdateCampaignsResponse.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/types/UpdateCampaignsResponseCampaign.d.ts +1 -0
- package/dist/cjs/api/resources/integrations/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/integrations/client/Client.js +1 -1
- package/dist/cjs/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -0
- package/dist/cjs/api/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
- package/dist/cjs/api/types/CampaignAttachmentInput.d.ts +13 -0
- package/dist/cjs/api/types/CampaignAttachmentInput.js +3 -0
- package/dist/cjs/api/types/CampaignDetail.d.ts +2 -0
- package/dist/cjs/api/types/IgnoredFields.d.ts +5 -0
- package/dist/cjs/api/types/IgnoredFields.js +3 -0
- package/dist/cjs/api/types/IgnoredFieldsItem.d.ts +7 -0
- package/dist/cjs/api/types/IgnoredFieldsItem.js +3 -0
- package/dist/cjs/api/types/IgnoredFieldsItemReason.d.ts +6 -0
- package/dist/cjs/api/types/IgnoredFieldsItemReason.js +9 -0
- package/dist/cjs/api/types/SequenceKeyDates.d.ts +2 -0
- package/dist/cjs/api/types/SequenceKeyDatesSendWindow.d.ts +7 -0
- package/dist/cjs/api/types/SequenceKeyDatesSendWindow.js +3 -0
- package/dist/cjs/api/types/StoredCampaignAttachment.d.ts +7 -0
- package/dist/cjs/api/types/StoredCampaignAttachment.js +3 -0
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -0
- package/dist/cjs/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/CreateCampaignsResponse.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/CreateCampaignsResponse.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/CreateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/CreateCampaignsResponseCampaign.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/UpdateCampaignsResponse.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/UpdateCampaignsResponse.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/UpdateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/UpdateCampaignsResponseCampaign.js +2 -0
- package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -1
- package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
- package/dist/cjs/serialization/types/CampaignAttachmentInput.d.ts +12 -0
- package/dist/cjs/serialization/types/CampaignAttachmentInput.js +34 -0
- package/dist/cjs/serialization/types/CampaignDetail.d.ts +2 -0
- package/dist/cjs/serialization/types/CampaignDetail.js +2 -0
- package/dist/cjs/serialization/types/IgnoredFields.d.ts +8 -0
- package/dist/cjs/serialization/types/IgnoredFields.js +30 -0
- package/dist/cjs/serialization/types/IgnoredFieldsItem.d.ts +11 -0
- package/dist/cjs/serialization/types/IgnoredFieldsItem.js +33 -0
- package/dist/cjs/serialization/types/IgnoredFieldsItemReason.d.ts +7 -0
- package/dist/cjs/serialization/types/IgnoredFieldsItemReason.js +29 -0
- package/dist/cjs/serialization/types/SequenceKeyDates.d.ts +2 -0
- package/dist/cjs/serialization/types/SequenceKeyDates.js +2 -0
- package/dist/cjs/serialization/types/SequenceKeyDatesSendWindow.d.ts +9 -0
- package/dist/cjs/serialization/types/SequenceKeyDatesSendWindow.js +31 -0
- package/dist/cjs/serialization/types/StoredCampaignAttachment.d.ts +10 -0
- package/dist/cjs/serialization/types/StoredCampaignAttachment.js +32 -0
- package/dist/cjs/serialization/types/index.d.ts +6 -0
- package/dist/cjs/serialization/types/index.js +6 -0
- package/dist/esm/api/resources/campaigns/client/Client.d.ts +1 -0
- package/dist/esm/api/resources/campaigns/client/Client.js +3 -0
- package/dist/esm/api/resources/campaigns/client/requests/CreateCampaignsRequest.d.ts +2 -0
- package/dist/esm/api/resources/campaigns/client/requests/UpdateCampaignsRequest.d.ts +2 -0
- package/dist/esm/api/resources/campaigns/types/CreateCampaignsResponse.d.ts +1 -0
- package/dist/esm/api/resources/campaigns/types/CreateCampaignsResponseCampaign.d.ts +1 -0
- package/dist/esm/api/resources/campaigns/types/DuplicateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/api/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/api/resources/campaigns/types/UpdateCampaignsResponse.d.ts +1 -0
- package/dist/esm/api/resources/campaigns/types/UpdateCampaignsResponseCampaign.d.ts +1 -0
- package/dist/esm/api/resources/integrations/client/Client.d.ts +1 -1
- package/dist/esm/api/resources/integrations/client/Client.js +1 -1
- package/dist/esm/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +2 -2
- package/dist/esm/api/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -0
- package/dist/esm/api/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
- package/dist/esm/api/types/CampaignAttachmentInput.d.ts +13 -0
- package/dist/esm/api/types/CampaignAttachmentInput.js +2 -0
- package/dist/esm/api/types/CampaignDetail.d.ts +2 -0
- package/dist/esm/api/types/IgnoredFields.d.ts +5 -0
- package/dist/esm/api/types/IgnoredFields.js +2 -0
- package/dist/esm/api/types/IgnoredFieldsItem.d.ts +7 -0
- package/dist/esm/api/types/IgnoredFieldsItem.js +2 -0
- package/dist/esm/api/types/IgnoredFieldsItemReason.d.ts +6 -0
- package/dist/esm/api/types/IgnoredFieldsItemReason.js +6 -0
- package/dist/esm/api/types/SequenceKeyDates.d.ts +2 -0
- package/dist/esm/api/types/SequenceKeyDatesSendWindow.d.ts +7 -0
- package/dist/esm/api/types/SequenceKeyDatesSendWindow.js +2 -0
- package/dist/esm/api/types/StoredCampaignAttachment.d.ts +7 -0
- package/dist/esm/api/types/StoredCampaignAttachment.js +2 -0
- package/dist/esm/api/types/index.d.ts +6 -0
- package/dist/esm/api/types/index.js +6 -0
- package/dist/esm/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.js +2 -0
- package/dist/esm/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/CreateCampaignsResponse.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/CreateCampaignsResponse.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/CreateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/CreateCampaignsResponseCampaign.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/UpdateCampaignsResponse.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/UpdateCampaignsResponse.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/UpdateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/UpdateCampaignsResponseCampaign.js +2 -0
- package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts +1 -1
- package/dist/esm/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.js +1 -0
- package/dist/esm/serialization/types/CampaignAttachmentInput.d.ts +12 -0
- package/dist/esm/serialization/types/CampaignAttachmentInput.js +8 -0
- package/dist/esm/serialization/types/CampaignDetail.d.ts +2 -0
- package/dist/esm/serialization/types/CampaignDetail.js +2 -0
- package/dist/esm/serialization/types/IgnoredFields.d.ts +8 -0
- package/dist/esm/serialization/types/IgnoredFields.js +4 -0
- package/dist/esm/serialization/types/IgnoredFieldsItem.d.ts +11 -0
- package/dist/esm/serialization/types/IgnoredFieldsItem.js +7 -0
- package/dist/esm/serialization/types/IgnoredFieldsItemReason.d.ts +7 -0
- package/dist/esm/serialization/types/IgnoredFieldsItemReason.js +3 -0
- package/dist/esm/serialization/types/SequenceKeyDates.d.ts +2 -0
- package/dist/esm/serialization/types/SequenceKeyDates.js +2 -0
- package/dist/esm/serialization/types/SequenceKeyDatesSendWindow.d.ts +9 -0
- package/dist/esm/serialization/types/SequenceKeyDatesSendWindow.js +5 -0
- package/dist/esm/serialization/types/StoredCampaignAttachment.d.ts +10 -0
- package/dist/esm/serialization/types/StoredCampaignAttachment.js +6 -0
- package/dist/esm/serialization/types/index.d.ts +6 -0
- package/dist/esm/serialization/types/index.js +6 -0
- package/package.json +1 -1
|
@@ -62,6 +62,7 @@ export declare class CampaignsClient {
|
|
|
62
62
|
* @throws {@link Sequenzy.BadRequestError}
|
|
63
63
|
* @throws {@link Sequenzy.UnauthorizedError}
|
|
64
64
|
* @throws {@link Sequenzy.InternalServerError}
|
|
65
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
65
66
|
* @throws {@link errors.SequenzyError}
|
|
66
67
|
* @throws {@link errors.SequenzyTimeoutError}
|
|
67
68
|
*
|
|
@@ -200,6 +200,7 @@ class CampaignsClient {
|
|
|
200
200
|
* @throws {@link Sequenzy.BadRequestError}
|
|
201
201
|
* @throws {@link Sequenzy.UnauthorizedError}
|
|
202
202
|
* @throws {@link Sequenzy.InternalServerError}
|
|
203
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
203
204
|
* @throws {@link errors.SequenzyError}
|
|
204
205
|
* @throws {@link errors.SequenzyTimeoutError}
|
|
205
206
|
*
|
|
@@ -276,6 +277,8 @@ class CampaignsClient {
|
|
|
276
277
|
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
277
278
|
case 500:
|
|
278
279
|
throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
|
|
280
|
+
case 503:
|
|
281
|
+
throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
279
282
|
default:
|
|
280
283
|
throw new errors.SequenzyError({
|
|
281
284
|
statusCode: _response.error.statusCode,
|
|
@@ -29,6 +29,8 @@ import type * as Sequenzy from "../../../../index.js";
|
|
|
29
29
|
* }
|
|
30
30
|
*/
|
|
31
31
|
export interface CreateCampaignsRequest {
|
|
32
|
+
/** Files sent with every recipient's email, including CC/BCC copies and test sends. Up to 10 files and 5MB in total. Every entry is validated before any Base64 content is stored. URL files are fetched and size-checked when sending starts; if one cannot be loaded, nothing is sent and the campaign returns to draft. */
|
|
33
|
+
attachments?: Sequenzy.CampaignAttachmentInput[];
|
|
32
34
|
/** Sequenzy email blocks. Mutually exclusive with html. Put visual styling under styles; top-level style keys such as backgroundColor, backgroundOpacity, borderColor, borderWidth, and borderRadius are normalized into styles. */
|
|
33
35
|
blocks?: Record<string, unknown>[];
|
|
34
36
|
campaignData?: Record<string, unknown> | null;
|
|
@@ -92,6 +92,8 @@ import type * as Sequenzy from "../../../../index.js";
|
|
|
92
92
|
export interface UpdateCampaignsRequest {
|
|
93
93
|
/** Campaign ID */
|
|
94
94
|
campaignId: string;
|
|
95
|
+
/** Replaces the files sent with every recipient's email (up to 10 files, 5MB in total). Send an empty array or null to remove them; omit to leave them unchanged. Base64 content is stored only after every other field in the request has been validated; if storing fails, the response is 503 and the campaign is unchanged. */
|
|
96
|
+
attachments?: Sequenzy.CampaignAttachmentInput[] | null;
|
|
95
97
|
/** Addresses BCC'd on every recipient's email for this campaign. Send an empty array or null to clear them. */
|
|
96
98
|
bccEmails?: string[] | null;
|
|
97
99
|
/** Updated Sequenzy email blocks. Mutually exclusive with `html`. Put visual styling under styles; top-level style keys such as backgroundColor, backgroundOpacity, borderColor, borderWidth, and borderRadius are normalized into styles. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../index.js";
|
|
2
2
|
export interface CreateCampaignsResponseCampaign {
|
|
3
|
+
attachments?: Sequenzy.StoredCampaignAttachment[] | null;
|
|
3
4
|
/** The linked email body, reusable as `templateId` when creating later campaigns. */
|
|
4
5
|
emailId?: string;
|
|
5
6
|
emailPreset?: Sequenzy.EmailPreset | null;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../index.js";
|
|
2
2
|
export interface DuplicateCampaignsResponseCampaign {
|
|
3
|
+
/** Files sent with every recipient's email for this campaign, or null when there are none. */
|
|
4
|
+
attachments?: Sequenzy.StoredCampaignAttachment[] | null;
|
|
3
5
|
/** Addresses BCC'd on every recipient's email for this campaign. */
|
|
4
6
|
bccEmails?: string[] | null;
|
|
5
7
|
blocks?: Sequenzy.EmailBlock[];
|
package/dist/cjs/api/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../index.js";
|
|
2
2
|
export interface ResendToNonOpenersCampaignsResponseCampaign {
|
|
3
|
+
/** Files sent with every recipient's email for this campaign, or null when there are none. */
|
|
4
|
+
attachments?: Sequenzy.StoredCampaignAttachment[] | null;
|
|
3
5
|
/** Addresses BCC'd on every recipient's email for this campaign. */
|
|
4
6
|
bccEmails?: string[] | null;
|
|
5
7
|
blocks?: Sequenzy.EmailBlock[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../index.js";
|
|
2
2
|
export interface UpdateCampaignsResponseCampaign {
|
|
3
|
+
attachments?: Sequenzy.StoredCampaignAttachment[] | null;
|
|
3
4
|
bccEmails?: string[] | null;
|
|
4
5
|
ccEmails?: string[] | null;
|
|
5
6
|
/** The linked email body, reusable as `templateId` when creating later campaigns. */
|
|
@@ -30,7 +30,7 @@ export declare class IntegrationsClient {
|
|
|
30
30
|
activatePixel(request: Sequenzy.ActivatePixelIntegrationsRequest, requestOptions?: IntegrationsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ActivatePixelIntegrationsResponse>;
|
|
31
31
|
private __activatePixel;
|
|
32
32
|
/**
|
|
33
|
-
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, attio, or sparkloop. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and
|
|
33
|
+
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, adapty, creem, chargebee, clerk, posthog, segment, affonso, attio, or sparkloop. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat, Superwall, and Adapty, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio registers its own webhook when inbound mappings are saved, so it takes no webhookSecret. SparkLoop registers its webhook in SparkLoop during connect and receives partner referrals for one publication (providerAccountId, required only when the account has several). Reconnecting replaces stored credentials. OAuth and app-install providers require the dashboard. Requires the integrations:manage scope.
|
|
34
34
|
*
|
|
35
35
|
* @param {Sequenzy.ConnectIntegrationsRequest} request
|
|
36
36
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -106,7 +106,7 @@ class IntegrationsClient {
|
|
|
106
106
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/integrations/{id}/pixel");
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, attio, or sparkloop. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and
|
|
109
|
+
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, adapty, creem, chargebee, clerk, posthog, segment, affonso, attio, or sparkloop. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat, Superwall, and Adapty, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio registers its own webhook when inbound mappings are saved, so it takes no webhookSecret. SparkLoop registers its webhook in SparkLoop during connect and receives partner referrals for one publication (providerAccountId, required only when the account has several). Reconnecting replaces stored credentials. OAuth and app-install providers require the dashboard. Requires the integrations:manage scope.
|
|
110
110
|
*
|
|
111
111
|
* @param {Sequenzy.ConnectIntegrationsRequest} request
|
|
112
112
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -12,10 +12,10 @@ export interface ConnectIntegrationsRequest {
|
|
|
12
12
|
historyImport?: Sequenzy.ConnectIntegrationsRequestHistoryImport;
|
|
13
13
|
/** Provider to connect. */
|
|
14
14
|
provider: Sequenzy.ConnectIntegrationsRequestProvider;
|
|
15
|
-
/** Provider account id: Paddle seller ID, Dodo business ID, Lemon Squeezy numeric store ID, Whop company ID, Creem store ID, or Chargebee site name. Polar resolves it from the API key. RevenueCat resolves its project ID from the API key; pass it only when the key can access several projects. Superwall
|
|
15
|
+
/** Provider account id: Paddle seller ID, Dodo business ID, Lemon Squeezy numeric store ID, Whop company ID, Creem store ID, or Chargebee site name. Polar resolves it from the API key. RevenueCat resolves its project ID from the API key; pass it only when the key can access several projects. Superwall and Adapty do not use one. SparkLoop: the publication ID (pub_...), required only when the account has several publications. */
|
|
16
16
|
providerAccountId?: string;
|
|
17
17
|
/** PostHog and Segment: event delivery scope. Attio: listMap (Sequenzy list id to Attio list id or slug) and syncCompanyFromDomain. SparkLoop: listIds for new referrals. */
|
|
18
18
|
settings?: Sequenzy.ConnectIntegrationsRequestSettings;
|
|
19
|
-
/** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and for sparkloop, and not used by attio; required for other providers. Lemon Squeezy manual secrets use 16-40 characters. For Chargebee, pass username:password. For RevenueCat, pass at least 16 characters: the authorization header value set on the RevenueCat webhook, or its HMAC signing secret. For Superwall, pass the webhook's whsec_ signing secret, the only credential it needs. For Segment, use 16-153 UTF-8 bytes. For SparkLoop, omit it so Sequenzy authenticates deliveries with a secret in the webhook URL it registers, or pass the account's webhook authentication token to verify the SparkLoop-Token header instead. */
|
|
19
|
+
/** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and for sparkloop, and not used by attio; required for other providers. Lemon Squeezy manual secrets use 16-40 characters. For Chargebee, pass username:password. For RevenueCat, pass at least 16 characters: the authorization header value set on the RevenueCat webhook, or its HMAC signing secret. For Superwall, pass the webhook's whsec_ signing secret, the only credential it needs. For Adapty, pass at least 16 characters: the authorization header value set on the Adapty webhook. For Segment, use 16-153 UTF-8 bytes. For SparkLoop, omit it so Sequenzy authenticates deliveries with a secret in the webhook URL it registers, or pass the account's webhook authentication token to verify the SparkLoop-Token header instead. */
|
|
20
20
|
webhookSecret?: string;
|
|
21
21
|
}
|
|
@@ -7,6 +7,7 @@ export declare const ConnectIntegrationsRequestProvider: {
|
|
|
7
7
|
readonly Whop: "whop";
|
|
8
8
|
readonly Revenuecat: "revenuecat";
|
|
9
9
|
readonly Superwall: "superwall";
|
|
10
|
+
readonly Adapty: "adapty";
|
|
10
11
|
readonly Creem: "creem";
|
|
11
12
|
readonly Chargebee: "chargebee";
|
|
12
13
|
readonly Clerk: "clerk";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A file sent with every recipient's campaign email. Provide Base64 `content` or a public `path` URL, not both. Base64 content is stored by Sequenzy and returned as a `path`. Inline images (`contentId`) are not supported on campaigns.
|
|
3
|
+
*/
|
|
4
|
+
export interface CampaignAttachmentInput {
|
|
5
|
+
/** Base64-encoded file content (mutually exclusive with path). Counts toward the 5MB campaign total. */
|
|
6
|
+
content?: string;
|
|
7
|
+
/** MIME type for Base64 content. Defaults to the type implied by the filename extension. PDF, Office documents, ZIP, image, audio, video and text files are accepted; HTML and SVG are not. Not accepted with path. */
|
|
8
|
+
contentType?: string;
|
|
9
|
+
/** Filename shown in the recipient's email client, including the extension. Merge tags are not supported. */
|
|
10
|
+
filename: string;
|
|
11
|
+
/** Public HTTP(S) URL fetched when the campaign starts sending (mutually exclusive with content). */
|
|
12
|
+
path?: string;
|
|
13
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type * as Sequenzy from "../index.js";
|
|
2
2
|
export interface CampaignDetail extends Sequenzy.CampaignSummary {
|
|
3
|
+
/** Files sent with every recipient's email for this campaign, or null when there are none. */
|
|
4
|
+
attachments?: Sequenzy.StoredCampaignAttachment[] | null;
|
|
3
5
|
/** Addresses BCC'd on every recipient's email for this campaign. */
|
|
4
6
|
bccEmails?: string[] | null;
|
|
5
7
|
blocks?: Sequenzy.EmailBlock[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as Sequenzy from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Request body fields the endpoint did not recognize and ignored. The request still succeeded; nothing was stored for these fields. Present only when at least one field was ignored, on successful JSON object responses of every v1 endpoint. Lists up to 25 fields.
|
|
4
|
+
*/
|
|
5
|
+
export type IgnoredFields = Sequenzy.IgnoredFieldsItem[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Sequenzy from "../index.js";
|
|
2
|
+
export interface IgnoredFieldsItem {
|
|
3
|
+
/** Dotted path with array indexes, such as `sendAt` or `steps[1].delayDays`. Empty when the whole body was not a JSON object. */
|
|
4
|
+
path: string;
|
|
5
|
+
/** `unknown_field`: the endpoint does not accept this field. `not_an_object`: an object was expected, so the value was replaced with an empty object. */
|
|
6
|
+
reason: Sequenzy.IgnoredFieldsItemReason;
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** `unknown_field`: the endpoint does not accept this field. `not_an_object`: an object was expected, so the value was replaced with an empty object. */
|
|
2
|
+
export declare const IgnoredFieldsItemReason: {
|
|
3
|
+
readonly UnknownField: "unknown_field";
|
|
4
|
+
readonly NotAnObject: "not_an_object";
|
|
5
|
+
};
|
|
6
|
+
export type IgnoredFieldsItemReason = (typeof IgnoredFieldsItemReason)[keyof typeof IgnoredFieldsItemReason];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.IgnoredFieldsItemReason = void 0;
|
|
5
|
+
/** `unknown_field`: the endpoint does not accept this field. `not_an_object`: an object was expected, so the value was replaced with an empty object. */
|
|
6
|
+
exports.IgnoredFieldsItemReason = {
|
|
7
|
+
UnknownField: "unknown_field",
|
|
8
|
+
NotAnObject: "not_an_object",
|
|
9
|
+
};
|
|
@@ -5,6 +5,8 @@ import type * as Sequenzy from "../index.js";
|
|
|
5
5
|
export interface SequenceKeyDates {
|
|
6
6
|
/** Sorted by time when returned. */
|
|
7
7
|
dates: Sequenzy.SequenceKeyDate[];
|
|
8
|
+
/** How sends timed from these moments are spread out, so a whole audience is not emailed in the same second. Each contact gets their own stable send time within the spread, after the moment for steps at or after it and in the hours leading up to the step's time for steps timed before it, so a "1 hour before Black Friday ends" email never lands after the sale ended. Omit it on update to keep the current spread, and send null to reset it to the default. Responses always include the effective value. */
|
|
9
|
+
sendWindow?: Sequenzy.SequenceKeyDatesSendWindow | null;
|
|
8
10
|
/** IANA timezone the dates are shown and edited in. Required when dates is non-empty. */
|
|
9
11
|
timezone?: string;
|
|
10
12
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How sends timed from these moments are spread out, so a whole audience is not emailed in the same second. Each contact gets their own stable send time within the spread, after the moment for steps at or after it and in the hours leading up to the step's time for steps timed before it, so a "1 hour before Black Friday ends" email never lands after the sale ended. Omit it on update to keep the current spread, and send null to reset it to the default. Responses always include the effective value.
|
|
3
|
+
*/
|
|
4
|
+
export interface SequenceKeyDatesSendWindow {
|
|
5
|
+
/** Spread each email over this many hours. 0 sends everyone at the exact time. */
|
|
6
|
+
spreadOverHours?: number;
|
|
7
|
+
}
|
|
@@ -75,6 +75,7 @@ export * from "./BulkSubscriberTagRequest.js";
|
|
|
75
75
|
export * from "./BulkSubscriberTagResponse.js";
|
|
76
76
|
export * from "./BulkSubscriberTagResponseFailuresItem.js";
|
|
77
77
|
export * from "./BulkSubscriberTagResponseNotFound.js";
|
|
78
|
+
export * from "./CampaignAttachmentInput.js";
|
|
78
79
|
export * from "./CampaignChannel.js";
|
|
79
80
|
export * from "./CampaignDetail.js";
|
|
80
81
|
export * from "./CampaignGoal.js";
|
|
@@ -316,6 +317,9 @@ export * from "./GalleryWatchedBrandEmail.js";
|
|
|
316
317
|
export * from "./GalleryWatchedBrandEmailBrand.js";
|
|
317
318
|
export * from "./GalleryWatchedBrandStatus.js";
|
|
318
319
|
export * from "./GalleryWatchResult.js";
|
|
320
|
+
export * from "./IgnoredFields.js";
|
|
321
|
+
export * from "./IgnoredFieldsItem.js";
|
|
322
|
+
export * from "./IgnoredFieldsItemReason.js";
|
|
319
323
|
export * from "./InAppMessage.js";
|
|
320
324
|
export * from "./InAppMessageButtonsItem.js";
|
|
321
325
|
export * from "./InAppMessageButtonsItemAction.js";
|
|
@@ -695,6 +699,7 @@ export * from "./SequenceInboundWebhookFieldMapping.js";
|
|
|
695
699
|
export * from "./SequenceInboundWebhookStatus.js";
|
|
696
700
|
export * from "./SequenceKeyDate.js";
|
|
697
701
|
export * from "./SequenceKeyDates.js";
|
|
702
|
+
export * from "./SequenceKeyDatesSendWindow.js";
|
|
698
703
|
export * from "./SequenceLinearStepInsertionInput.js";
|
|
699
704
|
export * from "./SequenceNode.js";
|
|
700
705
|
export * from "./SequenceNodeUpdateHints.js";
|
|
@@ -771,6 +776,7 @@ export * from "./ServiceUnavailableErrorBody.js";
|
|
|
771
776
|
export * from "./ShopifyBrowseAbandonmentSettings.js";
|
|
772
777
|
export * from "./ShopifyCartAbandonmentSettings.js";
|
|
773
778
|
export * from "./ShopifyPriceDropSettings.js";
|
|
779
|
+
export * from "./StoredCampaignAttachment.js";
|
|
774
780
|
export * from "./Subscriber.js";
|
|
775
781
|
export * from "./SubscriberActivityEvent.js";
|
|
776
782
|
export * from "./SubscriberActivityEventEngagementQuality.js";
|
|
@@ -91,6 +91,7 @@ __exportStar(require("./BulkSubscriberTagRequest.js"), exports);
|
|
|
91
91
|
__exportStar(require("./BulkSubscriberTagResponse.js"), exports);
|
|
92
92
|
__exportStar(require("./BulkSubscriberTagResponseFailuresItem.js"), exports);
|
|
93
93
|
__exportStar(require("./BulkSubscriberTagResponseNotFound.js"), exports);
|
|
94
|
+
__exportStar(require("./CampaignAttachmentInput.js"), exports);
|
|
94
95
|
__exportStar(require("./CampaignChannel.js"), exports);
|
|
95
96
|
__exportStar(require("./CampaignDetail.js"), exports);
|
|
96
97
|
__exportStar(require("./CampaignGoal.js"), exports);
|
|
@@ -332,6 +333,9 @@ __exportStar(require("./GalleryWatchedBrandEmail.js"), exports);
|
|
|
332
333
|
__exportStar(require("./GalleryWatchedBrandEmailBrand.js"), exports);
|
|
333
334
|
__exportStar(require("./GalleryWatchedBrandStatus.js"), exports);
|
|
334
335
|
__exportStar(require("./GalleryWatchResult.js"), exports);
|
|
336
|
+
__exportStar(require("./IgnoredFields.js"), exports);
|
|
337
|
+
__exportStar(require("./IgnoredFieldsItem.js"), exports);
|
|
338
|
+
__exportStar(require("./IgnoredFieldsItemReason.js"), exports);
|
|
335
339
|
__exportStar(require("./InAppMessage.js"), exports);
|
|
336
340
|
__exportStar(require("./InAppMessageButtonsItem.js"), exports);
|
|
337
341
|
__exportStar(require("./InAppMessageButtonsItemAction.js"), exports);
|
|
@@ -711,6 +715,7 @@ __exportStar(require("./SequenceInboundWebhookFieldMapping.js"), exports);
|
|
|
711
715
|
__exportStar(require("./SequenceInboundWebhookStatus.js"), exports);
|
|
712
716
|
__exportStar(require("./SequenceKeyDate.js"), exports);
|
|
713
717
|
__exportStar(require("./SequenceKeyDates.js"), exports);
|
|
718
|
+
__exportStar(require("./SequenceKeyDatesSendWindow.js"), exports);
|
|
714
719
|
__exportStar(require("./SequenceLinearStepInsertionInput.js"), exports);
|
|
715
720
|
__exportStar(require("./SequenceNode.js"), exports);
|
|
716
721
|
__exportStar(require("./SequenceNodeUpdateHints.js"), exports);
|
|
@@ -787,6 +792,7 @@ __exportStar(require("./ServiceUnavailableErrorBody.js"), exports);
|
|
|
787
792
|
__exportStar(require("./ShopifyBrowseAbandonmentSettings.js"), exports);
|
|
788
793
|
__exportStar(require("./ShopifyCartAbandonmentSettings.js"), exports);
|
|
789
794
|
__exportStar(require("./ShopifyPriceDropSettings.js"), exports);
|
|
795
|
+
__exportStar(require("./StoredCampaignAttachment.js"), exports);
|
|
790
796
|
__exportStar(require("./Subscriber.js"), exports);
|
|
791
797
|
__exportStar(require("./SubscriberActivityEvent.js"), exports);
|
|
792
798
|
__exportStar(require("./SubscriberActivityEventEngagementQuality.js"), exports);
|
package/dist/cjs/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { CampaignAttachmentInput } from "../../../../types/CampaignAttachmentInput.js";
|
|
4
5
|
import { CreateCampaignsRequestEmailPreset } from "../../types/CreateCampaignsRequestEmailPreset.js";
|
|
5
6
|
import { CreateCampaignsRequestStatus } from "../../types/CreateCampaignsRequestStatus.js";
|
|
6
7
|
export declare const CreateCampaignsRequest: core.serialization.Schema<serializers.CreateCampaignsRequest.Raw, Sequenzy.CreateCampaignsRequest>;
|
|
7
8
|
export declare namespace CreateCampaignsRequest {
|
|
8
9
|
interface Raw {
|
|
10
|
+
attachments?: CampaignAttachmentInput.Raw[] | null;
|
|
9
11
|
blocks?: Record<string, unknown>[] | null;
|
|
10
12
|
campaignData?: (Record<string, unknown> | null | undefined) | null;
|
|
11
13
|
computedLists?: Record<string, unknown>[] | null;
|
package/dist/cjs/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.js
CHANGED
|
@@ -26,9 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.CreateCampaignsRequest = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
29
|
+
const CampaignAttachmentInput_js_1 = require("../../../../types/CampaignAttachmentInput.js");
|
|
29
30
|
const CreateCampaignsRequestEmailPreset_js_1 = require("../../types/CreateCampaignsRequestEmailPreset.js");
|
|
30
31
|
const CreateCampaignsRequestStatus_js_1 = require("../../types/CreateCampaignsRequestStatus.js");
|
|
31
32
|
exports.CreateCampaignsRequest = core.serialization.object({
|
|
33
|
+
attachments: core.serialization.list(CampaignAttachmentInput_js_1.CampaignAttachmentInput).optional(),
|
|
32
34
|
blocks: core.serialization
|
|
33
35
|
.list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
|
|
34
36
|
.optional(),
|
package/dist/cjs/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { CampaignAttachmentInput } from "../../../../types/CampaignAttachmentInput.js";
|
|
4
5
|
import { UpdateCampaignsRequestEmailPreset } from "../../types/UpdateCampaignsRequestEmailPreset.js";
|
|
5
6
|
export declare const UpdateCampaignsRequest: core.serialization.Schema<serializers.UpdateCampaignsRequest.Raw, Omit<Sequenzy.UpdateCampaignsRequest, "campaignId">>;
|
|
6
7
|
export declare namespace UpdateCampaignsRequest {
|
|
7
8
|
interface Raw {
|
|
9
|
+
attachments?: (CampaignAttachmentInput.Raw[] | null | undefined) | null;
|
|
8
10
|
bccEmails?: (string[] | null | undefined) | null;
|
|
9
11
|
blocks?: Record<string, unknown>[] | null;
|
|
10
12
|
campaignData?: (Record<string, unknown> | null | undefined) | null;
|
package/dist/cjs/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.js
CHANGED
|
@@ -26,8 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.UpdateCampaignsRequest = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
29
|
+
const CampaignAttachmentInput_js_1 = require("../../../../types/CampaignAttachmentInput.js");
|
|
29
30
|
const UpdateCampaignsRequestEmailPreset_js_1 = require("../../types/UpdateCampaignsRequestEmailPreset.js");
|
|
30
31
|
exports.UpdateCampaignsRequest = core.serialization.object({
|
|
32
|
+
attachments: core.serialization.list(CampaignAttachmentInput_js_1.CampaignAttachmentInput).optionalNullable(),
|
|
31
33
|
bccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
32
34
|
blocks: core.serialization
|
|
33
35
|
.list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
|
|
@@ -2,11 +2,13 @@ import type * as Sequenzy from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { BlockFieldWarnings } from "../../../types/BlockFieldWarnings.js";
|
|
5
|
+
import { IgnoredFields } from "../../../types/IgnoredFields.js";
|
|
5
6
|
import { CreateCampaignsResponseCampaign } from "./CreateCampaignsResponseCampaign.js";
|
|
6
7
|
export declare const CreateCampaignsResponse: core.serialization.ObjectSchema<serializers.CreateCampaignsResponse.Raw, Sequenzy.CreateCampaignsResponse>;
|
|
7
8
|
export declare namespace CreateCampaignsResponse {
|
|
8
9
|
interface Raw {
|
|
9
10
|
campaign?: CreateCampaignsResponseCampaign.Raw | null;
|
|
11
|
+
ignoredFields?: IgnoredFields.Raw | null;
|
|
10
12
|
success?: boolean | null;
|
|
11
13
|
warnings?: BlockFieldWarnings.Raw | null;
|
|
12
14
|
}
|
|
@@ -27,9 +27,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.CreateCampaignsResponse = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../core/index.js"));
|
|
29
29
|
const BlockFieldWarnings_js_1 = require("../../../types/BlockFieldWarnings.js");
|
|
30
|
+
const IgnoredFields_js_1 = require("../../../types/IgnoredFields.js");
|
|
30
31
|
const CreateCampaignsResponseCampaign_js_1 = require("./CreateCampaignsResponseCampaign.js");
|
|
31
32
|
exports.CreateCampaignsResponse = core.serialization.object({
|
|
32
33
|
campaign: CreateCampaignsResponseCampaign_js_1.CreateCampaignsResponseCampaign.optional(),
|
|
34
|
+
ignoredFields: IgnoredFields_js_1.IgnoredFields.optional(),
|
|
33
35
|
success: core.serialization.boolean().optional(),
|
|
34
36
|
warnings: BlockFieldWarnings_js_1.BlockFieldWarnings.optional(),
|
|
35
37
|
});
|
package/dist/cjs/serialization/resources/campaigns/types/CreateCampaignsResponseCampaign.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import type * as Sequenzy from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { EmailPreset } from "../../../types/EmailPreset.js";
|
|
5
|
+
import { StoredCampaignAttachment } from "../../../types/StoredCampaignAttachment.js";
|
|
5
6
|
export declare const CreateCampaignsResponseCampaign: core.serialization.ObjectSchema<serializers.CreateCampaignsResponseCampaign.Raw, Sequenzy.CreateCampaignsResponseCampaign>;
|
|
6
7
|
export declare namespace CreateCampaignsResponseCampaign {
|
|
7
8
|
interface Raw {
|
|
9
|
+
attachments?: (StoredCampaignAttachment.Raw[] | null | undefined) | null;
|
|
8
10
|
emailId?: string | null;
|
|
9
11
|
emailPreset?: (EmailPreset.Raw | null | undefined) | null;
|
|
10
12
|
fromEmail?: string | null;
|
|
@@ -27,7 +27,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.CreateCampaignsResponseCampaign = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../core/index.js"));
|
|
29
29
|
const EmailPreset_js_1 = require("../../../types/EmailPreset.js");
|
|
30
|
+
const StoredCampaignAttachment_js_1 = require("../../../types/StoredCampaignAttachment.js");
|
|
30
31
|
exports.CreateCampaignsResponseCampaign = core.serialization.object({
|
|
32
|
+
attachments: core.serialization.list(StoredCampaignAttachment_js_1.StoredCampaignAttachment).optionalNullable(),
|
|
31
33
|
emailId: core.serialization.string().optional(),
|
|
32
34
|
emailPreset: EmailPreset_js_1.EmailPreset.optionalNullable(),
|
|
33
35
|
fromEmail: core.serialization.string().optional(),
|
package/dist/cjs/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.d.ts
CHANGED
|
@@ -4,9 +4,11 @@ import * as serializers from "../../../index.js";
|
|
|
4
4
|
import { CampaignChannel } from "../../../types/CampaignChannel.js";
|
|
5
5
|
import { CampaignStatus } from "../../../types/CampaignStatus.js";
|
|
6
6
|
import { EmailPreset } from "../../../types/EmailPreset.js";
|
|
7
|
+
import { StoredCampaignAttachment } from "../../../types/StoredCampaignAttachment.js";
|
|
7
8
|
export declare const DuplicateCampaignsResponseCampaign: core.serialization.ObjectSchema<serializers.DuplicateCampaignsResponseCampaign.Raw, Sequenzy.DuplicateCampaignsResponseCampaign>;
|
|
8
9
|
export declare namespace DuplicateCampaignsResponseCampaign {
|
|
9
10
|
interface Raw {
|
|
11
|
+
attachments?: (StoredCampaignAttachment.Raw[] | null | undefined) | null;
|
|
10
12
|
bccEmails?: (string[] | null | undefined) | null;
|
|
11
13
|
blocks?: serializers.EmailBlock.Raw[] | null;
|
|
12
14
|
campaignData?: (Record<string, unknown> | null | undefined) | null;
|
package/dist/cjs/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.js
CHANGED
|
@@ -30,7 +30,9 @@ const serializers = __importStar(require("../../../index.js"));
|
|
|
30
30
|
const CampaignChannel_js_1 = require("../../../types/CampaignChannel.js");
|
|
31
31
|
const CampaignStatus_js_1 = require("../../../types/CampaignStatus.js");
|
|
32
32
|
const EmailPreset_js_1 = require("../../../types/EmailPreset.js");
|
|
33
|
+
const StoredCampaignAttachment_js_1 = require("../../../types/StoredCampaignAttachment.js");
|
|
33
34
|
exports.DuplicateCampaignsResponseCampaign = core.serialization.object({
|
|
35
|
+
attachments: core.serialization.list(StoredCampaignAttachment_js_1.StoredCampaignAttachment).optionalNullable(),
|
|
34
36
|
bccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
35
37
|
blocks: core.serialization.list(core.serialization.lazyObject(() => serializers.EmailBlock)).optional(),
|
|
36
38
|
campaignData: core.serialization
|
|
@@ -4,9 +4,11 @@ import * as serializers from "../../../index.js";
|
|
|
4
4
|
import { CampaignChannel } from "../../../types/CampaignChannel.js";
|
|
5
5
|
import { CampaignStatus } from "../../../types/CampaignStatus.js";
|
|
6
6
|
import { EmailPreset } from "../../../types/EmailPreset.js";
|
|
7
|
+
import { StoredCampaignAttachment } from "../../../types/StoredCampaignAttachment.js";
|
|
7
8
|
export declare const ResendToNonOpenersCampaignsResponseCampaign: core.serialization.ObjectSchema<serializers.ResendToNonOpenersCampaignsResponseCampaign.Raw, Sequenzy.ResendToNonOpenersCampaignsResponseCampaign>;
|
|
8
9
|
export declare namespace ResendToNonOpenersCampaignsResponseCampaign {
|
|
9
10
|
interface Raw {
|
|
11
|
+
attachments?: (StoredCampaignAttachment.Raw[] | null | undefined) | null;
|
|
10
12
|
bccEmails?: (string[] | null | undefined) | null;
|
|
11
13
|
blocks?: serializers.EmailBlock.Raw[] | null;
|
|
12
14
|
campaignData?: (Record<string, unknown> | null | undefined) | null;
|
|
@@ -30,7 +30,9 @@ const serializers = __importStar(require("../../../index.js"));
|
|
|
30
30
|
const CampaignChannel_js_1 = require("../../../types/CampaignChannel.js");
|
|
31
31
|
const CampaignStatus_js_1 = require("../../../types/CampaignStatus.js");
|
|
32
32
|
const EmailPreset_js_1 = require("../../../types/EmailPreset.js");
|
|
33
|
+
const StoredCampaignAttachment_js_1 = require("../../../types/StoredCampaignAttachment.js");
|
|
33
34
|
exports.ResendToNonOpenersCampaignsResponseCampaign = core.serialization.object({
|
|
35
|
+
attachments: core.serialization.list(StoredCampaignAttachment_js_1.StoredCampaignAttachment).optionalNullable(),
|
|
34
36
|
bccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
35
37
|
blocks: core.serialization.list(core.serialization.lazyObject(() => serializers.EmailBlock)).optional(),
|
|
36
38
|
campaignData: core.serialization
|
|
@@ -2,11 +2,13 @@ import type * as Sequenzy from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { BlockFieldWarnings } from "../../../types/BlockFieldWarnings.js";
|
|
5
|
+
import { IgnoredFields } from "../../../types/IgnoredFields.js";
|
|
5
6
|
import { UpdateCampaignsResponseCampaign } from "./UpdateCampaignsResponseCampaign.js";
|
|
6
7
|
export declare const UpdateCampaignsResponse: core.serialization.ObjectSchema<serializers.UpdateCampaignsResponse.Raw, Sequenzy.UpdateCampaignsResponse>;
|
|
7
8
|
export declare namespace UpdateCampaignsResponse {
|
|
8
9
|
interface Raw {
|
|
9
10
|
campaign: UpdateCampaignsResponseCampaign.Raw;
|
|
11
|
+
ignoredFields?: IgnoredFields.Raw | null;
|
|
10
12
|
success: boolean;
|
|
11
13
|
warnings?: BlockFieldWarnings.Raw | null;
|
|
12
14
|
}
|
|
@@ -27,9 +27,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.UpdateCampaignsResponse = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../core/index.js"));
|
|
29
29
|
const BlockFieldWarnings_js_1 = require("../../../types/BlockFieldWarnings.js");
|
|
30
|
+
const IgnoredFields_js_1 = require("../../../types/IgnoredFields.js");
|
|
30
31
|
const UpdateCampaignsResponseCampaign_js_1 = require("./UpdateCampaignsResponseCampaign.js");
|
|
31
32
|
exports.UpdateCampaignsResponse = core.serialization.object({
|
|
32
33
|
campaign: UpdateCampaignsResponseCampaign_js_1.UpdateCampaignsResponseCampaign,
|
|
34
|
+
ignoredFields: IgnoredFields_js_1.IgnoredFields.optional(),
|
|
33
35
|
success: core.serialization.boolean(),
|
|
34
36
|
warnings: BlockFieldWarnings_js_1.BlockFieldWarnings.optional(),
|
|
35
37
|
});
|
package/dist/cjs/serialization/resources/campaigns/types/UpdateCampaignsResponseCampaign.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import type * as Sequenzy from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { EmailPreset } from "../../../types/EmailPreset.js";
|
|
5
|
+
import { StoredCampaignAttachment } from "../../../types/StoredCampaignAttachment.js";
|
|
5
6
|
export declare const UpdateCampaignsResponseCampaign: core.serialization.ObjectSchema<serializers.UpdateCampaignsResponseCampaign.Raw, Sequenzy.UpdateCampaignsResponseCampaign>;
|
|
6
7
|
export declare namespace UpdateCampaignsResponseCampaign {
|
|
7
8
|
interface Raw {
|
|
9
|
+
attachments?: (StoredCampaignAttachment.Raw[] | null | undefined) | null;
|
|
8
10
|
bccEmails?: (string[] | null | undefined) | null;
|
|
9
11
|
ccEmails?: (string[] | null | undefined) | null;
|
|
10
12
|
emailId?: string | null;
|
|
@@ -27,7 +27,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.UpdateCampaignsResponseCampaign = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../core/index.js"));
|
|
29
29
|
const EmailPreset_js_1 = require("../../../types/EmailPreset.js");
|
|
30
|
+
const StoredCampaignAttachment_js_1 = require("../../../types/StoredCampaignAttachment.js");
|
|
30
31
|
exports.UpdateCampaignsResponseCampaign = core.serialization.object({
|
|
32
|
+
attachments: core.serialization.list(StoredCampaignAttachment_js_1.StoredCampaignAttachment).optionalNullable(),
|
|
31
33
|
bccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
32
34
|
ccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
33
35
|
emailId: core.serialization.string().optional(),
|
package/dist/cjs/serialization/resources/integrations/types/ConnectIntegrationsRequestProvider.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
export declare const ConnectIntegrationsRequestProvider: core.serialization.Schema<serializers.ConnectIntegrationsRequestProvider.Raw, Sequenzy.ConnectIntegrationsRequestProvider>;
|
|
5
5
|
export declare namespace ConnectIntegrationsRequestProvider {
|
|
6
|
-
type Raw = "polar" | "paddle" | "dodo" | "lemon_squeezy" | "whop" | "revenuecat" | "superwall" | "creem" | "chargebee" | "clerk" | "posthog" | "segment" | "affonso" | "attio" | "sparkloop";
|
|
6
|
+
type Raw = "polar" | "paddle" | "dodo" | "lemon_squeezy" | "whop" | "revenuecat" | "superwall" | "adapty" | "creem" | "chargebee" | "clerk" | "posthog" | "segment" | "affonso" | "attio" | "sparkloop";
|
|
7
7
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const CampaignAttachmentInput: core.serialization.ObjectSchema<serializers.CampaignAttachmentInput.Raw, Sequenzy.CampaignAttachmentInput>;
|
|
5
|
+
export declare namespace CampaignAttachmentInput {
|
|
6
|
+
interface Raw {
|
|
7
|
+
content?: string | null;
|
|
8
|
+
contentType?: string | null;
|
|
9
|
+
filename: string;
|
|
10
|
+
path?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|