@wix/email-marketing 1.0.66 → 1.0.68

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.
@@ -1,3 +1,4 @@
1
- export * as accountDetails from '@wix/email-marketing_account-details';
2
- export * as campaigns from '@wix/email-marketing_campaigns';
3
- export * as senderDetails from '@wix/email-marketing_sender-details';
1
+ import * as accountDetails from '@wix/email-marketing_account-details';
2
+ import * as campaigns from '@wix/email-marketing_campaigns';
3
+ import * as senderDetails from '@wix/email-marketing_sender-details';
4
+ export { accountDetails, campaigns, senderDetails };
@@ -24,7 +24,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.senderDetails = exports.campaigns = exports.accountDetails = void 0;
27
- exports.accountDetails = __importStar(require("@wix/email-marketing_account-details"));
28
- exports.campaigns = __importStar(require("@wix/email-marketing_campaigns"));
29
- exports.senderDetails = __importStar(require("@wix/email-marketing_sender-details"));
27
+ const accountDetails = __importStar(require("@wix/email-marketing_account-details"));
28
+ exports.accountDetails = accountDetails;
29
+ const campaigns = __importStar(require("@wix/email-marketing_campaigns"));
30
+ exports.campaigns = campaigns;
31
+ const senderDetails = __importStar(require("@wix/email-marketing_sender-details"));
32
+ exports.senderDetails = senderDetails;
30
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uFAAuE;AACvE,4EAA4D;AAC5D,qFAAqE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAuE;AAI9D,wCAAc;AAHvB,0EAA4D;AAGnC,8BAAS;AAFlC,mFAAqE;AAEjC,sCAAa"}
@@ -1,3 +1,4 @@
1
- export * as accountDetails from '@wix/email-marketing_account-details';
2
- export * as campaigns from '@wix/email-marketing_campaigns';
3
- export * as senderDetails from '@wix/email-marketing_sender-details';
1
+ import * as accountDetails from '@wix/email-marketing_account-details';
2
+ import * as campaigns from '@wix/email-marketing_campaigns';
3
+ import * as senderDetails from '@wix/email-marketing_sender-details';
4
+ export { accountDetails, campaigns, senderDetails };
package/build/es/index.js CHANGED
@@ -1,4 +1,5 @@
1
- export * as accountDetails from '@wix/email-marketing_account-details';
2
- export * as campaigns from '@wix/email-marketing_campaigns';
3
- export * as senderDetails from '@wix/email-marketing_sender-details';
1
+ import * as accountDetails from '@wix/email-marketing_account-details';
2
+ import * as campaigns from '@wix/email-marketing_campaigns';
3
+ import * as senderDetails from '@wix/email-marketing_sender-details';
4
+ export { accountDetails, campaigns, senderDetails };
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,sCAAsC,CAAC;AACvE,OAAO,KAAK,SAAS,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,aAAa,MAAM,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,sCAAsC,CAAC;AACvE,OAAO,KAAK,SAAS,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,aAAa,MAAM,qCAAqC,CAAC;AAErE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/email-marketing",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,9 +18,9 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/email-marketing_account-details": "1.0.19",
22
- "@wix/email-marketing_campaigns": "1.0.23",
23
- "@wix/email-marketing_sender-details": "1.0.22"
21
+ "@wix/email-marketing_account-details": "1.0.21",
22
+ "@wix/email-marketing_campaigns": "1.0.25",
23
+ "@wix/email-marketing_sender-details": "1.0.24"
24
24
  },
25
25
  "devDependencies": {
26
26
  "glob": "^10.4.1",
@@ -29,8 +29,9 @@
29
29
  "typescript": "^5.3.2"
30
30
  },
31
31
  "scripts": {
32
- "build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles",
32
+ "build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles && npm run build:validate-dts",
33
33
  "build:dts-bundles": "test -f config/rollup-config.js && NODE_OPTIONS=--max-old-space-size=8192 rollup --config config/rollup-config.js || echo 'Warning: config/rollup-config.js not found!'",
34
+ "build:validate-dts": "tsc type-bundles/*.d.ts --noEmit",
34
35
  "test": ":"
35
36
  },
36
37
  "wix": {
@@ -44,5 +45,5 @@
44
45
  "fqdn": ""
45
46
  }
46
47
  },
47
- "falconPackageHash": "ba69cbe76456b5afdeb67389bf0bce8a80dde5e1ba5a6e7d1bde3f71"
48
+ "falconPackageHash": "a1062c95f9f34f39828dd44fcf22dd23254b56a891d1309779855092"
48
49
  }
@@ -1,3 +1,47 @@
1
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
2
+ interface HttpClient {
3
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
4
+ fetchWithAuth: typeof fetch;
5
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
6
+ }
7
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
8
+ type HttpResponse<T = any> = {
9
+ data: T;
10
+ status: number;
11
+ statusText: string;
12
+ headers: any;
13
+ request?: any;
14
+ };
15
+ type RequestOptions<_TResponse = any, Data = any> = {
16
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
17
+ url: string;
18
+ data?: Data;
19
+ params?: URLSearchParams;
20
+ } & APIMetadata;
21
+ type APIMetadata = {
22
+ methodFqn?: string;
23
+ entityFqdn?: string;
24
+ packageName?: string;
25
+ };
26
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
27
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
28
+ __type: 'event-definition';
29
+ type: Type;
30
+ isDomainEvent?: boolean;
31
+ transformations?: (envelope: unknown) => Payload;
32
+ __payload: Payload;
33
+ };
34
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
35
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
36
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
37
+
38
+ declare global {
39
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
40
+ interface SymbolConstructor {
41
+ readonly observable: symbol;
42
+ }
43
+ }
44
+
1
45
  /**
2
46
  * An account can be active or in some state of suspension (warned/suspended/banned).
3
47
  * If a user is in a state of suspension they must visit their email marketing account in the dashboard and follow the instructions.
@@ -126,53 +170,18 @@ interface GetAccountDetailsResponseNonNullableFields {
126
170
  accountDetails?: AccountDetailsNonNullableFields;
127
171
  }
128
172
 
129
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
130
- interface HttpClient {
131
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
132
- fetchWithAuth: typeof fetch;
133
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
134
- }
135
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
136
- type HttpResponse<T = any> = {
137
- data: T;
138
- status: number;
139
- statusText: string;
140
- headers: any;
141
- request?: any;
142
- };
143
- type RequestOptions<_TResponse = any, Data = any> = {
144
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
145
- url: string;
146
- data?: Data;
147
- params?: URLSearchParams;
148
- } & APIMetadata;
149
- type APIMetadata = {
150
- methodFqn?: string;
151
- entityFqdn?: string;
152
- packageName?: string;
153
- };
154
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
155
- type EventDefinition<Payload = unknown, Type extends string = string> = {
156
- __type: 'event-definition';
157
- type: Type;
158
- isDomainEvent?: boolean;
159
- transformations?: (envelope: unknown) => Payload;
160
- __payload: Payload;
161
- };
162
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
163
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
164
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
165
-
166
- declare global {
167
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
168
- interface SymbolConstructor {
169
- readonly observable: symbol;
170
- }
173
+ declare function getAccountDetails$1(httpClient: HttpClient): GetAccountDetailsSignature;
174
+ interface GetAccountDetailsSignature {
175
+ /**
176
+ * Retrieves email marketing account details.
177
+ */
178
+ (): Promise<GetAccountDetailsResponse & GetAccountDetailsResponseNonNullableFields>;
171
179
  }
172
180
 
173
181
  declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
174
182
 
175
- declare const getAccountDetails: ReturnType<typeof createRESTModule$2<typeof publicGetAccountDetails>>;
183
+ type _publicGetAccountDetailsType = typeof getAccountDetails$1;
184
+ declare const getAccountDetails: ReturnType<typeof createRESTModule$2<_publicGetAccountDetailsType>>;
176
185
 
177
186
  type context$2_AccountDetails = AccountDetails;
178
187
  type context$2_Action = Action;
@@ -190,9 +199,10 @@ type context$2_QuotaPeriod = QuotaPeriod;
190
199
  type context$2_RespondRequest = RespondRequest;
191
200
  type context$2_RespondResponse = RespondResponse;
192
201
  type context$2_SupportTicketData = SupportTicketData;
202
+ type context$2__publicGetAccountDetailsType = _publicGetAccountDetailsType;
193
203
  declare const context$2_getAccountDetails: typeof getAccountDetails;
194
204
  declare namespace context$2 {
195
- export { type context$2_AccountDetails as AccountDetails, context$2_Action as Action, type context$2_ComplianceDetails as ComplianceDetails, Enum$1 as Enum, type context$2_Features as Features, type context$2_GetAccountDetailsRequest as GetAccountDetailsRequest, type context$2_GetAccountDetailsResponse as GetAccountDetailsResponse, type context$2_GetAccountDetailsResponseNonNullableFields as GetAccountDetailsResponseNonNullableFields, type context$2_GetComplianceDetailsRequest as GetComplianceDetailsRequest, type context$2_GetComplianceDetailsResponse as GetComplianceDetailsResponse, type context$2_Package as Package, type context$2_Quota as Quota, type context$2_QuotaPeriod as QuotaPeriod, type context$2_RespondRequest as RespondRequest, type context$2_RespondResponse as RespondResponse, type context$2_SupportTicketData as SupportTicketData, context$2_getAccountDetails as getAccountDetails };
205
+ export { type context$2_AccountDetails as AccountDetails, context$2_Action as Action, type context$2_ComplianceDetails as ComplianceDetails, Enum$1 as Enum, type context$2_Features as Features, type context$2_GetAccountDetailsRequest as GetAccountDetailsRequest, type context$2_GetAccountDetailsResponse as GetAccountDetailsResponse, type context$2_GetAccountDetailsResponseNonNullableFields as GetAccountDetailsResponseNonNullableFields, type context$2_GetComplianceDetailsRequest as GetComplianceDetailsRequest, type context$2_GetComplianceDetailsResponse as GetComplianceDetailsResponse, type context$2_Package as Package, type context$2_Quota as Quota, type context$2_QuotaPeriod as QuotaPeriod, type context$2_RespondRequest as RespondRequest, type context$2_RespondResponse as RespondResponse, type context$2_SupportTicketData as SupportTicketData, type context$2__publicGetAccountDetailsType as _publicGetAccountDetailsType, context$2_getAccountDetails as getAccountDetails };
196
206
  }
197
207
 
198
208
  interface Campaign {
@@ -1435,7 +1445,7 @@ interface CampaignPausedEvent {
1435
1445
  interface RescheduleRequest {
1436
1446
  /** ID of the campaign to reschedule. */
1437
1447
  campaignId: string;
1438
- /** New time that this email marketing campaign should be sent at. */
1448
+ /** The new time for sending out the campaign. */
1439
1449
  sendAt: Date;
1440
1450
  }
1441
1451
  interface RescheduleResponse {
@@ -1753,29 +1763,218 @@ interface SendTestOptions {
1753
1763
  toEmailAddress: string;
1754
1764
  }
1755
1765
 
1766
+ declare function listStatistics$1(httpClient: HttpClient): ListStatisticsSignature;
1767
+ interface ListStatisticsSignature {
1768
+ /**
1769
+ * Retrieves a list of statistics for up to 100 selected campaigns.
1770
+ *
1771
+ * For each campaign, you receive the total activity count for the campaign's landing page and email. For example, the total
1772
+ * amount of times the landing page was opened, or the total amount of email recipients that clicked a link in an email.
1773
+ *
1774
+ * Use [List Campaigns](#listcampaigns) to retrieve additional information for your campaigns.
1775
+ * Use [List Recipients](#listrecipients) to retrieve a list of recipients and their activities related to a selected campaign.
1776
+ * @param - IDs of the campaigns to retrieve (max 100 campaigns).
1777
+ */
1778
+ (campaignIds: string[]): Promise<ListStatisticsResponse & ListStatisticsResponseNonNullableFields>;
1779
+ }
1780
+ declare function listRecipients$1(httpClient: HttpClient): ListRecipientsSignature;
1781
+ interface ListRecipientsSignature {
1782
+ /**
1783
+ * Retrieves a list of recipients for a selected campaign based on a specific recipient activity.
1784
+ *
1785
+ * Pages are returned with a maximum of 1,000 recipients per page and defaults to 40 recipients per page.
1786
+ *
1787
+ * Use [List Statistics](#liststatistics) to retrieve a list of activity for selected campaigns.
1788
+ * Use [List Campaigns](#listcampaigns) to retrieve additional information for your campaigns.
1789
+ *
1790
+ * If no `activity` is included, this endpoint returns an error.
1791
+ *
1792
+ * @param - Campaign ID.
1793
+ * @param - __Required.__ Email activity to filter for. One of:
1794
+ * + `'DELIVERED'`
1795
+ * + `'OPENED'`
1796
+ * + `'CLICKED'`
1797
+ * + `'BOUNCED'`
1798
+ * + `'NOT_SENT'`
1799
+ * @param - Options to use when getting the list of recipients.
1800
+ */
1801
+ (campaignId: string, activity: RecipientsActivityEnum, options?: ListRecipientsOptions | undefined): Promise<ListRecipientsResponse & ListRecipientsResponseNonNullableFields>;
1802
+ }
1803
+ declare function getCampaign$1(httpClient: HttpClient): GetCampaignSignature;
1804
+ interface GetCampaignSignature {
1805
+ /**
1806
+ * Retrieves information about an email campaign by the specified ID.
1807
+ * @param - Campaign ID.
1808
+ * @param - Options to use when getting a campaign.
1809
+ * @returns Campaign information.
1810
+ */
1811
+ (campaignId: string, options?: GetCampaignOptions | undefined): Promise<Campaign & CampaignNonNullableFields>;
1812
+ }
1813
+ declare function listCampaigns$1(httpClient: HttpClient): ListCampaignsSignature;
1814
+ interface ListCampaignsSignature {
1815
+ /**
1816
+ * Returns a list of email campaigns.
1817
+ *
1818
+ * Default sort by `date_updated` in `desc` order.
1819
+ * @param - Options to use when getting the list of campaigns.
1820
+ */
1821
+ (options?: ListCampaignsOptions | undefined): Promise<ListCampaignsResponse & ListCampaignsResponseNonNullableFields>;
1822
+ }
1823
+ declare function publishCampaign$1(httpClient: HttpClient): PublishCampaignSignature;
1824
+ interface PublishCampaignSignature {
1825
+ /**
1826
+ * Publishes/sends a specified campaign.
1827
+ *
1828
+ * If no `emailDistributionOptions` parameters are specified, the campaign is only published as a landing page.
1829
+ * @param - Campaign ID
1830
+ * @param - Options to use when publishing a campaign.
1831
+ */
1832
+ (campaignId: string, options?: PublishCampaignOptions | undefined): Promise<PublishCampaignResponse & PublishCampaignResponseNonNullableFields>;
1833
+ }
1834
+ declare function sendTest$1(httpClient: HttpClient): SendTestSignature;
1835
+ interface SendTestSignature {
1836
+ /**
1837
+ * Sends a test email for preview purposes.
1838
+ *
1839
+ * It is heavily throttled, so don't use this for regular campaign sending.
1840
+ *
1841
+ * @param - Campaign ID.
1842
+ * @param - Options for sending a test email.
1843
+ */
1844
+ (campaignId: string, options?: SendTestOptions | undefined): Promise<void>;
1845
+ }
1846
+ declare function pauseScheduling$1(httpClient: HttpClient): PauseSchedulingSignature;
1847
+ interface PauseSchedulingSignature {
1848
+ /**
1849
+ * Pauses a scheduled campaign.
1850
+ *
1851
+ * Learn more about [market campaign scheduling](https://support.wix.com/en/article/managing-your-scheduled-email-marketing-campaign).
1852
+ * @param - Campaign ID.
1853
+ */
1854
+ (campaignId: string): Promise<void>;
1855
+ }
1856
+ declare function reschedule$1(httpClient: HttpClient): RescheduleSignature;
1857
+ interface RescheduleSignature {
1858
+ /**
1859
+ * Changes the sending time for an already scheduled campaign.
1860
+ * @param - ID of the campaign to reschedule.
1861
+ * @param - The new time for sending out the campaign.
1862
+ */
1863
+ (campaignId: string, sendAt: Date): Promise<void>;
1864
+ }
1865
+ declare function deleteCampaign$1(httpClient: HttpClient): DeleteCampaignSignature;
1866
+ interface DeleteCampaignSignature {
1867
+ /**
1868
+ * Permanently deletes a campaign.
1869
+ * @param - Campaign ID.
1870
+ */
1871
+ (campaignId: string): Promise<void>;
1872
+ }
1873
+ declare function reuseCampaign$1(httpClient: HttpClient): ReuseCampaignSignature;
1874
+ interface ReuseCampaignSignature {
1875
+ /**
1876
+ * Creates a (draft) copy of an existing campaign.
1877
+ *
1878
+ * @param - ID of the message to be duplicated.
1879
+ */
1880
+ (campaignId: string): Promise<ReuseCampaignResponse & ReuseCampaignResponseNonNullableFields>;
1881
+ }
1882
+ declare const onCampaignCreated$1: EventDefinition<CampaignCreatedEnvelope, "wix.email_marketing.v1.campaign_created">;
1883
+ declare const onCampaignRejectedEvent$1: EventDefinition<CampaignRejectedEnvelope, "wix.email_marketing.v1.campaign_campaign_rejected_event">;
1884
+ declare const onCampaignPublishedEvent$1: EventDefinition<CampaignPublishedEnvelope, "wix.email_marketing.v1.campaign_campaign_published_event">;
1885
+ declare const onCampaignTerminatedEvent$1: EventDefinition<CampaignTerminatedEnvelope, "wix.email_marketing.v1.campaign_campaign_terminated_event">;
1886
+ declare const onCampaignDistributedEvent$1: EventDefinition<CampaignDistributedEnvelope, "wix.email_marketing.v1.campaign_campaign_distributed_event">;
1887
+ declare const onCampaignEmailActivityUpdated$1: EventDefinition<CampaignEmailActivityUpdatedEnvelope, "wix.email_marketing.v1.campaign_email_activity_updated">;
1888
+ declare const onCampaignScheduledEvent$1: EventDefinition<CampaignScheduledEnvelope, "wix.email_marketing.v1.campaign_campaign_scheduled_event">;
1889
+ declare const onCampaignPausedEvent$1: EventDefinition<CampaignPausedEnvelope, "wix.email_marketing.v1.campaign_campaign_paused_event">;
1890
+ declare const onCampaignDeleted$1: EventDefinition<CampaignDeletedEnvelope, "wix.email_marketing.v1.campaign_deleted">;
1891
+
1756
1892
  declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1757
1893
 
1758
1894
  declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1759
1895
 
1760
- declare const listStatistics: ReturnType<typeof createRESTModule$1<typeof publicListStatistics>>;
1761
- declare const listRecipients: ReturnType<typeof createRESTModule$1<typeof publicListRecipients>>;
1762
- declare const getCampaign: ReturnType<typeof createRESTModule$1<typeof publicGetCampaign>>;
1763
- declare const listCampaigns: ReturnType<typeof createRESTModule$1<typeof publicListCampaigns>>;
1764
- declare const publishCampaign: ReturnType<typeof createRESTModule$1<typeof publicPublishCampaign>>;
1765
- declare const sendTest: ReturnType<typeof createRESTModule$1<typeof publicSendTest>>;
1766
- declare const pauseScheduling: ReturnType<typeof createRESTModule$1<typeof publicPauseScheduling>>;
1767
- declare const reschedule: ReturnType<typeof createRESTModule$1<typeof publicReschedule>>;
1768
- declare const deleteCampaign: ReturnType<typeof createRESTModule$1<typeof publicDeleteCampaign>>;
1769
- declare const reuseCampaign: ReturnType<typeof createRESTModule$1<typeof publicReuseCampaign>>;
1770
- declare const onCampaignCreated: ReturnType<typeof createEventModule$1<typeof publicOnCampaignCreated>>;
1771
- declare const onCampaignRejectedEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignRejectedEvent>>;
1772
- declare const onCampaignPublishedEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignPublishedEvent>>;
1773
- declare const onCampaignTerminatedEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignTerminatedEvent>>;
1774
- declare const onCampaignDistributedEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignDistributedEvent>>;
1775
- declare const onCampaignEmailActivityUpdated: ReturnType<typeof createEventModule$1<typeof publicOnCampaignEmailActivityUpdated>>;
1776
- declare const onCampaignScheduledEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignScheduledEvent>>;
1777
- declare const onCampaignPausedEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignPausedEvent>>;
1778
- declare const onCampaignDeleted: ReturnType<typeof createEventModule$1<typeof publicOnCampaignDeleted>>;
1896
+ type _publicListStatisticsType = typeof listStatistics$1;
1897
+ declare const listStatistics: ReturnType<typeof createRESTModule$1<_publicListStatisticsType>>;
1898
+ type _publicListRecipientsType = typeof listRecipients$1;
1899
+ declare const listRecipients: ReturnType<typeof createRESTModule$1<_publicListRecipientsType>>;
1900
+ type _publicGetCampaignType = typeof getCampaign$1;
1901
+ declare const getCampaign: ReturnType<typeof createRESTModule$1<_publicGetCampaignType>>;
1902
+ type _publicListCampaignsType = typeof listCampaigns$1;
1903
+ declare const listCampaigns: ReturnType<typeof createRESTModule$1<_publicListCampaignsType>>;
1904
+ type _publicPublishCampaignType = typeof publishCampaign$1;
1905
+ declare const publishCampaign: ReturnType<typeof createRESTModule$1<_publicPublishCampaignType>>;
1906
+ type _publicSendTestType = typeof sendTest$1;
1907
+ declare const sendTest: ReturnType<typeof createRESTModule$1<_publicSendTestType>>;
1908
+ type _publicPauseSchedulingType = typeof pauseScheduling$1;
1909
+ declare const pauseScheduling: ReturnType<typeof createRESTModule$1<_publicPauseSchedulingType>>;
1910
+ type _publicRescheduleType = typeof reschedule$1;
1911
+ declare const reschedule: ReturnType<typeof createRESTModule$1<_publicRescheduleType>>;
1912
+ type _publicDeleteCampaignType = typeof deleteCampaign$1;
1913
+ declare const deleteCampaign: ReturnType<typeof createRESTModule$1<_publicDeleteCampaignType>>;
1914
+ type _publicReuseCampaignType = typeof reuseCampaign$1;
1915
+ declare const reuseCampaign: ReturnType<typeof createRESTModule$1<_publicReuseCampaignType>>;
1916
+
1917
+ type _publicOnCampaignCreatedType = typeof onCampaignCreated$1;
1918
+ /** */
1919
+ declare const onCampaignCreated: ReturnType<typeof createEventModule$1<_publicOnCampaignCreatedType>>;
1920
+
1921
+ type _publicOnCampaignRejectedEventType = typeof onCampaignRejectedEvent$1;
1922
+ /**
1923
+ * Triggered when a campaign is identified as abusive and rejected without sending emails to recipients.
1924
+ */
1925
+ declare const onCampaignRejectedEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignRejectedEventType>>;
1926
+
1927
+ type _publicOnCampaignPublishedEventType = typeof onCampaignPublishedEvent$1;
1928
+ /**
1929
+ * Triggered when a draft campaign is published.
1930
+ */
1931
+ declare const onCampaignPublishedEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignPublishedEventType>>;
1932
+
1933
+ type _publicOnCampaignTerminatedEventType = typeof onCampaignTerminatedEvent$1;
1934
+ /**
1935
+ * Triggered when the mailing list is not clean and campaign was terminated (not sent to all recipients).
1936
+ */
1937
+ declare const onCampaignTerminatedEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignTerminatedEventType>>;
1938
+
1939
+ type _publicOnCampaignDistributedEventType = typeof onCampaignDistributedEvent$1;
1940
+ /**
1941
+ * Triggered when a campaign is successfully distributed to all recipients
1942
+ */
1943
+ declare const onCampaignDistributedEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignDistributedEventType>>;
1944
+
1945
+ type _publicOnCampaignEmailActivityUpdatedType = typeof onCampaignEmailActivityUpdated$1;
1946
+ /**
1947
+ * Triggered each time an email campaign has a new recipient activity.
1948
+ *
1949
+ * New recipient activity includes when each email in a campaign is `DELIVERED`, `OPENED`,
1950
+ * or `BOUNCED`. Also, when a URL inside the email is `CLICKED`.
1951
+ *
1952
+ * The type of activity that triggered the webhook is in `actionEvent.body` and can be one of:
1953
+ * + `delivery`: Email was delivered to recipient.
1954
+ * + `click`: Recipient clicked on a URL in an email.
1955
+ * + `open`: Recipient opened an email.
1956
+ * + `softBounce`: Email soft bounced when sent to a recipient.
1957
+ * + `hardBounce`: Email hard bounced when sent to a recipient.
1958
+ */
1959
+ declare const onCampaignEmailActivityUpdated: ReturnType<typeof createEventModule$1<_publicOnCampaignEmailActivityUpdatedType>>;
1960
+
1961
+ type _publicOnCampaignScheduledEventType = typeof onCampaignScheduledEvent$1;
1962
+ /**
1963
+ * Campaign scheduled at a specific time in the future.
1964
+ */
1965
+ declare const onCampaignScheduledEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignScheduledEventType>>;
1966
+
1967
+ type _publicOnCampaignPausedEventType = typeof onCampaignPausedEvent$1;
1968
+ /**
1969
+ * Triggered when a scheduled campaign is paused.
1970
+ */
1971
+ declare const onCampaignPausedEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignPausedEventType>>;
1972
+
1973
+ type _publicOnCampaignDeletedType = typeof onCampaignDeleted$1;
1974
+ /**
1975
+ * Triggered when a campaign is deleted.
1976
+ */
1977
+ declare const onCampaignDeleted: ReturnType<typeof createEventModule$1<_publicOnCampaignDeletedType>>;
1779
1978
 
1780
1979
  type context$1_ActionConfiguration = ActionConfiguration;
1781
1980
  type context$1_ActivationCycle = ActivationCycle;
@@ -1979,6 +2178,25 @@ type context$1_ValidateLinkResponse = ValidateLinkResponse;
1979
2178
  type context$1_VersionType = VersionType;
1980
2179
  declare const context$1_VersionType: typeof VersionType;
1981
2180
  type context$1__Array = _Array;
2181
+ type context$1__publicDeleteCampaignType = _publicDeleteCampaignType;
2182
+ type context$1__publicGetCampaignType = _publicGetCampaignType;
2183
+ type context$1__publicListCampaignsType = _publicListCampaignsType;
2184
+ type context$1__publicListRecipientsType = _publicListRecipientsType;
2185
+ type context$1__publicListStatisticsType = _publicListStatisticsType;
2186
+ type context$1__publicOnCampaignCreatedType = _publicOnCampaignCreatedType;
2187
+ type context$1__publicOnCampaignDeletedType = _publicOnCampaignDeletedType;
2188
+ type context$1__publicOnCampaignDistributedEventType = _publicOnCampaignDistributedEventType;
2189
+ type context$1__publicOnCampaignEmailActivityUpdatedType = _publicOnCampaignEmailActivityUpdatedType;
2190
+ type context$1__publicOnCampaignPausedEventType = _publicOnCampaignPausedEventType;
2191
+ type context$1__publicOnCampaignPublishedEventType = _publicOnCampaignPublishedEventType;
2192
+ type context$1__publicOnCampaignRejectedEventType = _publicOnCampaignRejectedEventType;
2193
+ type context$1__publicOnCampaignScheduledEventType = _publicOnCampaignScheduledEventType;
2194
+ type context$1__publicOnCampaignTerminatedEventType = _publicOnCampaignTerminatedEventType;
2195
+ type context$1__publicPauseSchedulingType = _publicPauseSchedulingType;
2196
+ type context$1__publicPublishCampaignType = _publicPublishCampaignType;
2197
+ type context$1__publicRescheduleType = _publicRescheduleType;
2198
+ type context$1__publicReuseCampaignType = _publicReuseCampaignType;
2199
+ type context$1__publicSendTestType = _publicSendTestType;
1982
2200
  declare const context$1_deleteCampaign: typeof deleteCampaign;
1983
2201
  declare const context$1_getCampaign: typeof getCampaign;
1984
2202
  declare const context$1_listCampaigns: typeof listCampaigns;
@@ -1999,7 +2217,7 @@ declare const context$1_reschedule: typeof reschedule;
1999
2217
  declare const context$1_reuseCampaign: typeof reuseCampaign;
2000
2218
  declare const context$1_sendTest: typeof sendTest;
2001
2219
  declare namespace context$1 {
2002
- export { type context$1_ActionConfiguration as ActionConfiguration, type ActionEvent$1 as ActionEvent, type context$1_ActivationCycle as ActivationCycle, context$1_ActivityType as ActivityType, type context$1_ArchiveCampaignRequest as ArchiveCampaignRequest, type context$1_ArchiveCampaignResponse as ArchiveCampaignResponse, type context$1_Attachment as Attachment, type context$1_AutomationTemplate as AutomationTemplate, type context$1_AutomationTemplateContainer as AutomationTemplateContainer, type context$1_AutomationTemplateEnrichmentData as AutomationTemplateEnrichmentData, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_Campaign as Campaign, type context$1_CampaignArchivedEvent as CampaignArchivedEvent, type context$1_CampaignCreatedEnvelope as CampaignCreatedEnvelope, type context$1_CampaignDeletedEnvelope as CampaignDeletedEnvelope, type context$1_CampaignDistributedEnvelope as CampaignDistributedEnvelope, type context$1_CampaignDistributedEvent as CampaignDistributedEvent, type context$1_CampaignEditorType as CampaignEditorType, context$1_CampaignEditorTypeEnum as CampaignEditorTypeEnum, type context$1_CampaignEmailActivityUpdatedEnvelope as CampaignEmailActivityUpdatedEnvelope, type context$1_CampaignLookupBatchRequest as CampaignLookupBatchRequest, type context$1_CampaignLookupBatchResponse as CampaignLookupBatchResponse, type context$1_CampaignLookupRequest as CampaignLookupRequest, type context$1_CampaignLookupResponse as CampaignLookupResponse, type context$1_CampaignNonNullableFields as CampaignNonNullableFields, type context$1_CampaignPausedEnvelope as CampaignPausedEnvelope, type context$1_CampaignPausedEvent as CampaignPausedEvent, type context$1_CampaignPublishedEnvelope as CampaignPublishedEnvelope, type context$1_CampaignPublishedEvent as CampaignPublishedEvent, type context$1_CampaignRecipientDetails as CampaignRecipientDetails, type context$1_CampaignRejectedEnvelope as CampaignRejectedEnvelope, type context$1_CampaignRejectedEvent as CampaignRejectedEvent, type context$1_CampaignScheduledEnvelope as CampaignScheduledEnvelope, type context$1_CampaignScheduledEvent as CampaignScheduledEvent, context$1_CampaignSendingStateEnum as CampaignSendingStateEnum, type context$1_CampaignStatistics as CampaignStatistics, type context$1_CampaignStatisticsContainer as CampaignStatisticsContainer, context$1_CampaignStatusEnum as CampaignStatusEnum, type context$1_CampaignTerminatedEnvelope as CampaignTerminatedEnvelope, type context$1_CampaignTerminatedEvent as CampaignTerminatedEvent, context$1_CampaignTypeEnum as CampaignTypeEnum, type context$1_CampaignUnarchivedEvent as CampaignUnarchivedEvent, context$1_CampaignVisibilityStatusEnum as CampaignVisibilityStatusEnum, type context$1_Click as Click, type context$1_Composer as Composer, type context$1_ConditionConfiguration as ConditionConfiguration, type context$1_Contact as Contact, type context$1_CountCampaignsRequest as CountCampaignsRequest, type context$1_CountCampaignsResponse as CountCampaignsResponse, type context$1_CreateCampaignRequest as CreateCampaignRequest, type context$1_CreateCampaignResponse as CreateCampaignResponse, type context$1_CreateFromTemplateRequest as CreateFromTemplateRequest, type context$1_CreateFromTemplateResponse as CreateFromTemplateResponse, type context$1_CreateFromUserTemplateRequest as CreateFromUserTemplateRequest, type context$1_CreateFromUserTemplateResponse as CreateFromUserTemplateResponse, type context$1_CreateUserTemplateRequest as CreateUserTemplateRequest, type context$1_CreateUserTemplateResponse as CreateUserTemplateResponse, type context$1_CursorPaging as CursorPaging, type context$1_Cursors as Cursors, type context$1_DateTime as DateTime, type context$1_Decimal as Decimal, type context$1_DefaultValues as DefaultValues, type context$1_DeleteCampaignRequest as DeleteCampaignRequest, type context$1_DeleteCampaignResponse as DeleteCampaignResponse, type context$1_DistributionStatistics as DistributionStatistics, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$1_EmailActivityUpdated as EmailActivityUpdated, type context$1_EmailActivityUpdatedEventTypeOneOf as EmailActivityUpdatedEventTypeOneOf, type context$1_EmailDistributionOptions as EmailDistributionOptions, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, context$1_Enum as Enum, type context$1_EstimateAudienceSizeRequest as EstimateAudienceSizeRequest, type context$1_EstimateAudienceSizeResponse as EstimateAudienceSizeResponse, type context$1_EstimateFilterSizeRequest as EstimateFilterSizeRequest, type context$1_EstimateFilterSizeResponse as EstimateFilterSizeResponse, type EventMetadata$1 as EventMetadata, type context$1_File as File, type context$1_GetCampaignMappingRequest as GetCampaignMappingRequest, type context$1_GetCampaignMappingResponse as GetCampaignMappingResponse, type context$1_GetCampaignOptions as GetCampaignOptions, type context$1_GetCampaignRequest as GetCampaignRequest, type context$1_GetCampaignResponse as GetCampaignResponse, type context$1_GetCampaignResponseNonNullableFields as GetCampaignResponseNonNullableFields, type context$1_GetComposerRequest as GetComposerRequest, type context$1_GetComposerResponse as GetComposerResponse, type context$1_GetDefaultComponentsRequest as GetDefaultComponentsRequest, type context$1_GetDefaultComponentsResponse as GetDefaultComponentsResponse, type context$1_GetLabelsRequest as GetLabelsRequest, type context$1_GetLabelsResponse as GetLabelsResponse, type context$1_GetPingCampaignMappingRequest as GetPingCampaignMappingRequest, type context$1_GetPingCampaignMappingResponse as GetPingCampaignMappingResponse, type context$1_GetPlaceholderKeysRequest as GetPlaceholderKeysRequest, type context$1_GetPlaceholderKeysResponse as GetPlaceholderKeysResponse, type context$1_GetUsedPlaceholderKeysRequest as GetUsedPlaceholderKeysRequest, type context$1_GetUsedPlaceholderKeysResponse as GetUsedPlaceholderKeysResponse, type context$1_HardBounce as HardBounce, type context$1_Html as Html, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$1_Integer as Integer, type context$1_Label as Label, type context$1_LandingPageStatistics as LandingPageStatistics, type context$1_ListCampaignsOptions as ListCampaignsOptions, type context$1_ListCampaignsRequest as ListCampaignsRequest, type context$1_ListCampaignsResponse as ListCampaignsResponse, type context$1_ListCampaignsResponseNonNullableFields as ListCampaignsResponseNonNullableFields, type context$1_ListRecipientsOptions as ListRecipientsOptions, type context$1_ListRecipientsRequest as ListRecipientsRequest, type context$1_ListRecipientsResponse as ListRecipientsResponse, type context$1_ListRecipientsResponseNonNullableFields as ListRecipientsResponseNonNullableFields, type context$1_ListStatisticsRequest as ListStatisticsRequest, type context$1_ListStatisticsResponse as ListStatisticsResponse, type context$1_ListStatisticsResponseNonNullableFields as ListStatisticsResponseNonNullableFields, type context$1_Map as Map, type MessageEnvelope$1 as MessageEnvelope, type context$1_Money as Money, type context$1_Open as Open, context$1_Operator as Operator, type context$1_Paging as Paging, type context$1_PagingMetadataV2 as PagingMetadataV2, type context$1_PauseSchedulingRequest as PauseSchedulingRequest, type context$1_PauseSchedulingResponse as PauseSchedulingResponse, type context$1_PlaceholderContent as PlaceholderContent, type context$1_PlaceholderContentEnum as PlaceholderContentEnum, type context$1_PlaceholderContentValueOneOf as PlaceholderContentValueOneOf, type context$1_PlainText as PlainText, type context$1_Precondition as Precondition, context$1_PreconditionType as PreconditionType, type context$1_PreviewCampaignRequest as PreviewCampaignRequest, type context$1_PreviewCampaignResponse as PreviewCampaignResponse, type context$1_PublishCampaignOptions as PublishCampaignOptions, type context$1_PublishCampaignRequest as PublishCampaignRequest, type context$1_PublishCampaignResponse as PublishCampaignResponse, type context$1_PublishCampaignResponseNonNullableFields as PublishCampaignResponseNonNullableFields, type context$1_PublishingData as PublishingData, type context$1_Query as Query, type context$1_QueryAppTemplatesRequest as QueryAppTemplatesRequest, type context$1_QueryAppTemplatesResponse as QueryAppTemplatesResponse, type context$1_QueryAutomationTemplatesRequest as QueryAutomationTemplatesRequest, type context$1_QueryAutomationTemplatesResponse as QueryAutomationTemplatesResponse, type context$1_QueryMetadata as QueryMetadata, context$1_RecipientsActivityEnum as RecipientsActivityEnum, type context$1_ReconcileContactRequest as ReconcileContactRequest, type context$1_ReconcileContactResponse as ReconcileContactResponse, type context$1_RejectionData as RejectionData, context$1_RejectionReasonEnum as RejectionReasonEnum, type context$1_RescheduleRequest as RescheduleRequest, type context$1_RescheduleResponse as RescheduleResponse, type context$1_ResendToNonOpenersRequest as ResendToNonOpenersRequest, type context$1_ResendToNonOpenersResponse as ResendToNonOpenersResponse, type RestoreInfo$1 as RestoreInfo, type context$1_ReuseCampaignRequest as ReuseCampaignRequest, type context$1_ReuseCampaignResponse as ReuseCampaignResponse, type context$1_ReuseCampaignResponseNonNullableFields as ReuseCampaignResponseNonNullableFields, type context$1_RuleConfiguration as RuleConfiguration, type context$1_RuleMetadata as RuleMetadata, context$1_RuleStatus as RuleStatus, type context$1_SearchContactsRequest as SearchContactsRequest, type context$1_SearchContactsResponse as SearchContactsResponse, type context$1_SendTestOptions as SendTestOptions, type context$1_SendTestRequest as SendTestRequest, type context$1_SendTestResponse as SendTestResponse, type context$1_SoftBounce as SoftBounce, context$1_SortOrder as SortOrder, type context$1_Sorting as Sorting, type context$1_SubscribeFromLandingPageRequest as SubscribeFromLandingPageRequest, type context$1_SubscribeFromLandingPageResponse as SubscribeFromLandingPageResponse, type context$1_Target as Target, context$1_TargetType as TargetType, type context$1_TemplateData as TemplateData, context$1_TemplateQueryType as TemplateQueryType, context$1_TemplateState as TemplateState, context$1_TemplateType as TemplateType, type context$1_TotalStatistics as TotalStatistics, type context$1_Translation as Translation, context$1_TranslationState as TranslationState, type context$1_TriggerConfiguration as TriggerConfiguration, type context$1_UnarchiveCampaignRequest as UnarchiveCampaignRequest, type context$1_UnarchiveCampaignResponse as UnarchiveCampaignResponse, type context$1_UnprocessedTargetEvent as UnprocessedTargetEvent, type context$1_UpdateComposerRequest as UpdateComposerRequest, type context$1_UpdateComposerResponse as UpdateComposerResponse, type context$1_UpdateTitleRequest as UpdateTitleRequest, type context$1_UpdateTitleResponse as UpdateTitleResponse, type context$1_UpsertTranslationRequest as UpsertTranslationRequest, type context$1_UpsertTranslationResponse as UpsertTranslationResponse, type context$1_ValidateHtmlLinksRequest as ValidateHtmlLinksRequest, type context$1_ValidateHtmlLinksResponse as ValidateHtmlLinksResponse, type context$1_ValidateLinkRequest as ValidateLinkRequest, type context$1_ValidateLinkResponse as ValidateLinkResponse, context$1_VersionType as VersionType, WebhookIdentityType$1 as WebhookIdentityType, type context$1__Array as _Array, context$1_deleteCampaign as deleteCampaign, context$1_getCampaign as getCampaign, context$1_listCampaigns as listCampaigns, context$1_listRecipients as listRecipients, context$1_listStatistics as listStatistics, context$1_onCampaignCreated as onCampaignCreated, context$1_onCampaignDeleted as onCampaignDeleted, context$1_onCampaignDistributedEvent as onCampaignDistributedEvent, context$1_onCampaignEmailActivityUpdated as onCampaignEmailActivityUpdated, context$1_onCampaignPausedEvent as onCampaignPausedEvent, context$1_onCampaignPublishedEvent as onCampaignPublishedEvent, context$1_onCampaignRejectedEvent as onCampaignRejectedEvent, context$1_onCampaignScheduledEvent as onCampaignScheduledEvent, context$1_onCampaignTerminatedEvent as onCampaignTerminatedEvent, context$1_pauseScheduling as pauseScheduling, context$1_publishCampaign as publishCampaign, context$1_reschedule as reschedule, context$1_reuseCampaign as reuseCampaign, context$1_sendTest as sendTest };
2220
+ export { type context$1_ActionConfiguration as ActionConfiguration, type ActionEvent$1 as ActionEvent, type context$1_ActivationCycle as ActivationCycle, context$1_ActivityType as ActivityType, type context$1_ArchiveCampaignRequest as ArchiveCampaignRequest, type context$1_ArchiveCampaignResponse as ArchiveCampaignResponse, type context$1_Attachment as Attachment, type context$1_AutomationTemplate as AutomationTemplate, type context$1_AutomationTemplateContainer as AutomationTemplateContainer, type context$1_AutomationTemplateEnrichmentData as AutomationTemplateEnrichmentData, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_Campaign as Campaign, type context$1_CampaignArchivedEvent as CampaignArchivedEvent, type context$1_CampaignCreatedEnvelope as CampaignCreatedEnvelope, type context$1_CampaignDeletedEnvelope as CampaignDeletedEnvelope, type context$1_CampaignDistributedEnvelope as CampaignDistributedEnvelope, type context$1_CampaignDistributedEvent as CampaignDistributedEvent, type context$1_CampaignEditorType as CampaignEditorType, context$1_CampaignEditorTypeEnum as CampaignEditorTypeEnum, type context$1_CampaignEmailActivityUpdatedEnvelope as CampaignEmailActivityUpdatedEnvelope, type context$1_CampaignLookupBatchRequest as CampaignLookupBatchRequest, type context$1_CampaignLookupBatchResponse as CampaignLookupBatchResponse, type context$1_CampaignLookupRequest as CampaignLookupRequest, type context$1_CampaignLookupResponse as CampaignLookupResponse, type context$1_CampaignNonNullableFields as CampaignNonNullableFields, type context$1_CampaignPausedEnvelope as CampaignPausedEnvelope, type context$1_CampaignPausedEvent as CampaignPausedEvent, type context$1_CampaignPublishedEnvelope as CampaignPublishedEnvelope, type context$1_CampaignPublishedEvent as CampaignPublishedEvent, type context$1_CampaignRecipientDetails as CampaignRecipientDetails, type context$1_CampaignRejectedEnvelope as CampaignRejectedEnvelope, type context$1_CampaignRejectedEvent as CampaignRejectedEvent, type context$1_CampaignScheduledEnvelope as CampaignScheduledEnvelope, type context$1_CampaignScheduledEvent as CampaignScheduledEvent, context$1_CampaignSendingStateEnum as CampaignSendingStateEnum, type context$1_CampaignStatistics as CampaignStatistics, type context$1_CampaignStatisticsContainer as CampaignStatisticsContainer, context$1_CampaignStatusEnum as CampaignStatusEnum, type context$1_CampaignTerminatedEnvelope as CampaignTerminatedEnvelope, type context$1_CampaignTerminatedEvent as CampaignTerminatedEvent, context$1_CampaignTypeEnum as CampaignTypeEnum, type context$1_CampaignUnarchivedEvent as CampaignUnarchivedEvent, context$1_CampaignVisibilityStatusEnum as CampaignVisibilityStatusEnum, type context$1_Click as Click, type context$1_Composer as Composer, type context$1_ConditionConfiguration as ConditionConfiguration, type context$1_Contact as Contact, type context$1_CountCampaignsRequest as CountCampaignsRequest, type context$1_CountCampaignsResponse as CountCampaignsResponse, type context$1_CreateCampaignRequest as CreateCampaignRequest, type context$1_CreateCampaignResponse as CreateCampaignResponse, type context$1_CreateFromTemplateRequest as CreateFromTemplateRequest, type context$1_CreateFromTemplateResponse as CreateFromTemplateResponse, type context$1_CreateFromUserTemplateRequest as CreateFromUserTemplateRequest, type context$1_CreateFromUserTemplateResponse as CreateFromUserTemplateResponse, type context$1_CreateUserTemplateRequest as CreateUserTemplateRequest, type context$1_CreateUserTemplateResponse as CreateUserTemplateResponse, type context$1_CursorPaging as CursorPaging, type context$1_Cursors as Cursors, type context$1_DateTime as DateTime, type context$1_Decimal as Decimal, type context$1_DefaultValues as DefaultValues, type context$1_DeleteCampaignRequest as DeleteCampaignRequest, type context$1_DeleteCampaignResponse as DeleteCampaignResponse, type context$1_DistributionStatistics as DistributionStatistics, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$1_EmailActivityUpdated as EmailActivityUpdated, type context$1_EmailActivityUpdatedEventTypeOneOf as EmailActivityUpdatedEventTypeOneOf, type context$1_EmailDistributionOptions as EmailDistributionOptions, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, context$1_Enum as Enum, type context$1_EstimateAudienceSizeRequest as EstimateAudienceSizeRequest, type context$1_EstimateAudienceSizeResponse as EstimateAudienceSizeResponse, type context$1_EstimateFilterSizeRequest as EstimateFilterSizeRequest, type context$1_EstimateFilterSizeResponse as EstimateFilterSizeResponse, type EventMetadata$1 as EventMetadata, type context$1_File as File, type context$1_GetCampaignMappingRequest as GetCampaignMappingRequest, type context$1_GetCampaignMappingResponse as GetCampaignMappingResponse, type context$1_GetCampaignOptions as GetCampaignOptions, type context$1_GetCampaignRequest as GetCampaignRequest, type context$1_GetCampaignResponse as GetCampaignResponse, type context$1_GetCampaignResponseNonNullableFields as GetCampaignResponseNonNullableFields, type context$1_GetComposerRequest as GetComposerRequest, type context$1_GetComposerResponse as GetComposerResponse, type context$1_GetDefaultComponentsRequest as GetDefaultComponentsRequest, type context$1_GetDefaultComponentsResponse as GetDefaultComponentsResponse, type context$1_GetLabelsRequest as GetLabelsRequest, type context$1_GetLabelsResponse as GetLabelsResponse, type context$1_GetPingCampaignMappingRequest as GetPingCampaignMappingRequest, type context$1_GetPingCampaignMappingResponse as GetPingCampaignMappingResponse, type context$1_GetPlaceholderKeysRequest as GetPlaceholderKeysRequest, type context$1_GetPlaceholderKeysResponse as GetPlaceholderKeysResponse, type context$1_GetUsedPlaceholderKeysRequest as GetUsedPlaceholderKeysRequest, type context$1_GetUsedPlaceholderKeysResponse as GetUsedPlaceholderKeysResponse, type context$1_HardBounce as HardBounce, type context$1_Html as Html, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$1_Integer as Integer, type context$1_Label as Label, type context$1_LandingPageStatistics as LandingPageStatistics, type context$1_ListCampaignsOptions as ListCampaignsOptions, type context$1_ListCampaignsRequest as ListCampaignsRequest, type context$1_ListCampaignsResponse as ListCampaignsResponse, type context$1_ListCampaignsResponseNonNullableFields as ListCampaignsResponseNonNullableFields, type context$1_ListRecipientsOptions as ListRecipientsOptions, type context$1_ListRecipientsRequest as ListRecipientsRequest, type context$1_ListRecipientsResponse as ListRecipientsResponse, type context$1_ListRecipientsResponseNonNullableFields as ListRecipientsResponseNonNullableFields, type context$1_ListStatisticsRequest as ListStatisticsRequest, type context$1_ListStatisticsResponse as ListStatisticsResponse, type context$1_ListStatisticsResponseNonNullableFields as ListStatisticsResponseNonNullableFields, type context$1_Map as Map, type MessageEnvelope$1 as MessageEnvelope, type context$1_Money as Money, type context$1_Open as Open, context$1_Operator as Operator, type context$1_Paging as Paging, type context$1_PagingMetadataV2 as PagingMetadataV2, type context$1_PauseSchedulingRequest as PauseSchedulingRequest, type context$1_PauseSchedulingResponse as PauseSchedulingResponse, type context$1_PlaceholderContent as PlaceholderContent, type context$1_PlaceholderContentEnum as PlaceholderContentEnum, type context$1_PlaceholderContentValueOneOf as PlaceholderContentValueOneOf, type context$1_PlainText as PlainText, type context$1_Precondition as Precondition, context$1_PreconditionType as PreconditionType, type context$1_PreviewCampaignRequest as PreviewCampaignRequest, type context$1_PreviewCampaignResponse as PreviewCampaignResponse, type context$1_PublishCampaignOptions as PublishCampaignOptions, type context$1_PublishCampaignRequest as PublishCampaignRequest, type context$1_PublishCampaignResponse as PublishCampaignResponse, type context$1_PublishCampaignResponseNonNullableFields as PublishCampaignResponseNonNullableFields, type context$1_PublishingData as PublishingData, type context$1_Query as Query, type context$1_QueryAppTemplatesRequest as QueryAppTemplatesRequest, type context$1_QueryAppTemplatesResponse as QueryAppTemplatesResponse, type context$1_QueryAutomationTemplatesRequest as QueryAutomationTemplatesRequest, type context$1_QueryAutomationTemplatesResponse as QueryAutomationTemplatesResponse, type context$1_QueryMetadata as QueryMetadata, context$1_RecipientsActivityEnum as RecipientsActivityEnum, type context$1_ReconcileContactRequest as ReconcileContactRequest, type context$1_ReconcileContactResponse as ReconcileContactResponse, type context$1_RejectionData as RejectionData, context$1_RejectionReasonEnum as RejectionReasonEnum, type context$1_RescheduleRequest as RescheduleRequest, type context$1_RescheduleResponse as RescheduleResponse, type context$1_ResendToNonOpenersRequest as ResendToNonOpenersRequest, type context$1_ResendToNonOpenersResponse as ResendToNonOpenersResponse, type RestoreInfo$1 as RestoreInfo, type context$1_ReuseCampaignRequest as ReuseCampaignRequest, type context$1_ReuseCampaignResponse as ReuseCampaignResponse, type context$1_ReuseCampaignResponseNonNullableFields as ReuseCampaignResponseNonNullableFields, type context$1_RuleConfiguration as RuleConfiguration, type context$1_RuleMetadata as RuleMetadata, context$1_RuleStatus as RuleStatus, type context$1_SearchContactsRequest as SearchContactsRequest, type context$1_SearchContactsResponse as SearchContactsResponse, type context$1_SendTestOptions as SendTestOptions, type context$1_SendTestRequest as SendTestRequest, type context$1_SendTestResponse as SendTestResponse, type context$1_SoftBounce as SoftBounce, context$1_SortOrder as SortOrder, type context$1_Sorting as Sorting, type context$1_SubscribeFromLandingPageRequest as SubscribeFromLandingPageRequest, type context$1_SubscribeFromLandingPageResponse as SubscribeFromLandingPageResponse, type context$1_Target as Target, context$1_TargetType as TargetType, type context$1_TemplateData as TemplateData, context$1_TemplateQueryType as TemplateQueryType, context$1_TemplateState as TemplateState, context$1_TemplateType as TemplateType, type context$1_TotalStatistics as TotalStatistics, type context$1_Translation as Translation, context$1_TranslationState as TranslationState, type context$1_TriggerConfiguration as TriggerConfiguration, type context$1_UnarchiveCampaignRequest as UnarchiveCampaignRequest, type context$1_UnarchiveCampaignResponse as UnarchiveCampaignResponse, type context$1_UnprocessedTargetEvent as UnprocessedTargetEvent, type context$1_UpdateComposerRequest as UpdateComposerRequest, type context$1_UpdateComposerResponse as UpdateComposerResponse, type context$1_UpdateTitleRequest as UpdateTitleRequest, type context$1_UpdateTitleResponse as UpdateTitleResponse, type context$1_UpsertTranslationRequest as UpsertTranslationRequest, type context$1_UpsertTranslationResponse as UpsertTranslationResponse, type context$1_ValidateHtmlLinksRequest as ValidateHtmlLinksRequest, type context$1_ValidateHtmlLinksResponse as ValidateHtmlLinksResponse, type context$1_ValidateLinkRequest as ValidateLinkRequest, type context$1_ValidateLinkResponse as ValidateLinkResponse, context$1_VersionType as VersionType, WebhookIdentityType$1 as WebhookIdentityType, type context$1__Array as _Array, type context$1__publicDeleteCampaignType as _publicDeleteCampaignType, type context$1__publicGetCampaignType as _publicGetCampaignType, type context$1__publicListCampaignsType as _publicListCampaignsType, type context$1__publicListRecipientsType as _publicListRecipientsType, type context$1__publicListStatisticsType as _publicListStatisticsType, type context$1__publicOnCampaignCreatedType as _publicOnCampaignCreatedType, type context$1__publicOnCampaignDeletedType as _publicOnCampaignDeletedType, type context$1__publicOnCampaignDistributedEventType as _publicOnCampaignDistributedEventType, type context$1__publicOnCampaignEmailActivityUpdatedType as _publicOnCampaignEmailActivityUpdatedType, type context$1__publicOnCampaignPausedEventType as _publicOnCampaignPausedEventType, type context$1__publicOnCampaignPublishedEventType as _publicOnCampaignPublishedEventType, type context$1__publicOnCampaignRejectedEventType as _publicOnCampaignRejectedEventType, type context$1__publicOnCampaignScheduledEventType as _publicOnCampaignScheduledEventType, type context$1__publicOnCampaignTerminatedEventType as _publicOnCampaignTerminatedEventType, type context$1__publicPauseSchedulingType as _publicPauseSchedulingType, type context$1__publicPublishCampaignType as _publicPublishCampaignType, type context$1__publicRescheduleType as _publicRescheduleType, type context$1__publicReuseCampaignType as _publicReuseCampaignType, type context$1__publicSendTestType as _publicSendTestType, context$1_deleteCampaign as deleteCampaign, context$1_getCampaign as getCampaign, context$1_listCampaigns as listCampaigns, context$1_listRecipients as listRecipients, context$1_listStatistics as listStatistics, context$1_onCampaignCreated as onCampaignCreated, context$1_onCampaignDeleted as onCampaignDeleted, context$1_onCampaignDistributedEvent as onCampaignDistributedEvent, context$1_onCampaignEmailActivityUpdated as onCampaignEmailActivityUpdated, context$1_onCampaignPausedEvent as onCampaignPausedEvent, context$1_onCampaignPublishedEvent as onCampaignPublishedEvent, context$1_onCampaignRejectedEvent as onCampaignRejectedEvent, context$1_onCampaignScheduledEvent as onCampaignScheduledEvent, context$1_onCampaignTerminatedEvent as onCampaignTerminatedEvent, context$1_pauseScheduling as pauseScheduling, onCampaignCreated$1 as publicOnCampaignCreated, onCampaignDeleted$1 as publicOnCampaignDeleted, onCampaignDistributedEvent$1 as publicOnCampaignDistributedEvent, onCampaignEmailActivityUpdated$1 as publicOnCampaignEmailActivityUpdated, onCampaignPausedEvent$1 as publicOnCampaignPausedEvent, onCampaignPublishedEvent$1 as publicOnCampaignPublishedEvent, onCampaignRejectedEvent$1 as publicOnCampaignRejectedEvent, onCampaignScheduledEvent$1 as publicOnCampaignScheduledEvent, onCampaignTerminatedEvent$1 as publicOnCampaignTerminatedEvent, context$1_publishCampaign as publishCampaign, context$1_reschedule as reschedule, context$1_reuseCampaign as reuseCampaign, context$1_sendTest as sendTest };
2003
2221
  }
2004
2222
 
2005
2223
  /**
@@ -2225,15 +2443,69 @@ interface SenderDetailsUpdatedEnvelope {
2225
2443
  metadata: EventMetadata;
2226
2444
  }
2227
2445
 
2446
+ declare function getSenderDetails$1(httpClient: HttpClient): GetSenderDetailsSignature;
2447
+ interface GetSenderDetailsSignature {
2448
+ /**
2449
+ * Retrieves sender details.
2450
+ *
2451
+ * The sender details include the information displayed as the email sender's name and email address.
2452
+ *
2453
+ * + If you send an email campaign with a public email domain (e.g.
2454
+ * @deprecated
2455
+ */
2456
+ (): Promise<GetSenderDetailsResponse & GetSenderDetailsResponseNonNullableFields>;
2457
+ }
2458
+ declare function updateSenderDetails$1(httpClient: HttpClient): UpdateSenderDetailsSignature;
2459
+ interface UpdateSenderDetailsSignature {
2460
+ /**
2461
+ * Updates sender details.
2462
+ *
2463
+ * If the `fromEmail` is changed, a verification code will be sent to the new email address.
2464
+ *
2465
+ * If verification is needed, a verification email will be sent to the user, and the returned `verificationNeeded` value will be `true`.
2466
+ *
2467
+ * @param - New sender details.
2468
+ * @deprecated
2469
+ */
2470
+ (senderDetails: SenderDetails): Promise<UpdateSenderDetailsResponse & UpdateSenderDetailsResponseNonNullableFields>;
2471
+ }
2472
+ declare function verifyEmail$1(httpClient: HttpClient): VerifyEmailSignature;
2473
+ interface VerifyEmailSignature {
2474
+ /**
2475
+ * Verifies the sender's email using a verification code sent to the user's email address upon update.
2476
+ * @param - Verification code.
2477
+ * @deprecated
2478
+ */
2479
+ (verificationCode: string): Promise<void>;
2480
+ }
2481
+ declare function resolveActualFromAddress$1(httpClient: HttpClient): ResolveActualFromAddressSignature;
2482
+ interface ResolveActualFromAddressSignature {
2483
+ /**
2484
+ * Checks if the sender's email address will be used as from-address or replaced (not related to current sender details).
2485
+ * @param - User's provided address from which to send email marketing campaign.
2486
+ */
2487
+ (fromAddress: string): Promise<ResolveActualFromAddressResponse & ResolveActualFromAddressResponseNonNullableFields>;
2488
+ }
2489
+ declare const onSenderDetailsUpdated$1: EventDefinition<SenderDetailsUpdatedEnvelope, "wix.email_marketing.v1.sender_details_updated">;
2490
+
2228
2491
  declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2229
2492
 
2230
2493
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2231
2494
 
2232
- declare const getSenderDetails: ReturnType<typeof createRESTModule<typeof publicGetSenderDetails>>;
2233
- declare const updateSenderDetails: ReturnType<typeof createRESTModule<typeof publicUpdateSenderDetails>>;
2234
- declare const verifyEmail: ReturnType<typeof createRESTModule<typeof publicVerifyEmail>>;
2235
- declare const resolveActualFromAddress: ReturnType<typeof createRESTModule<typeof publicResolveActualFromAddress>>;
2236
- declare const onSenderDetailsUpdated: ReturnType<typeof createEventModule<typeof publicOnSenderDetailsUpdated>>;
2495
+ type _publicGetSenderDetailsType = typeof getSenderDetails$1;
2496
+ declare const getSenderDetails: ReturnType<typeof createRESTModule<_publicGetSenderDetailsType>>;
2497
+ type _publicUpdateSenderDetailsType = typeof updateSenderDetails$1;
2498
+ declare const updateSenderDetails: ReturnType<typeof createRESTModule<_publicUpdateSenderDetailsType>>;
2499
+ type _publicVerifyEmailType = typeof verifyEmail$1;
2500
+ declare const verifyEmail: ReturnType<typeof createRESTModule<_publicVerifyEmailType>>;
2501
+ type _publicResolveActualFromAddressType = typeof resolveActualFromAddress$1;
2502
+ declare const resolveActualFromAddress: ReturnType<typeof createRESTModule<_publicResolveActualFromAddressType>>;
2503
+
2504
+ type _publicOnSenderDetailsUpdatedType = typeof onSenderDetailsUpdated$1;
2505
+ /**
2506
+ * An event that triggers when sender details are updated without the need for explicit verification.
2507
+ */
2508
+ declare const onSenderDetailsUpdated: ReturnType<typeof createEventModule<_publicOnSenderDetailsUpdatedType>>;
2237
2509
 
2238
2510
  type context_ActionEvent = ActionEvent;
2239
2511
  type context_BaseEventMetadata = BaseEventMetadata;
@@ -2262,13 +2534,18 @@ type context_VerifySenderEmailRequest = VerifySenderEmailRequest;
2262
2534
  type context_VerifySenderEmailResponse = VerifySenderEmailResponse;
2263
2535
  type context_WebhookIdentityType = WebhookIdentityType;
2264
2536
  declare const context_WebhookIdentityType: typeof WebhookIdentityType;
2537
+ type context__publicGetSenderDetailsType = _publicGetSenderDetailsType;
2538
+ type context__publicOnSenderDetailsUpdatedType = _publicOnSenderDetailsUpdatedType;
2539
+ type context__publicResolveActualFromAddressType = _publicResolveActualFromAddressType;
2540
+ type context__publicUpdateSenderDetailsType = _publicUpdateSenderDetailsType;
2541
+ type context__publicVerifyEmailType = _publicVerifyEmailType;
2265
2542
  declare const context_getSenderDetails: typeof getSenderDetails;
2266
2543
  declare const context_onSenderDetailsUpdated: typeof onSenderDetailsUpdated;
2267
2544
  declare const context_resolveActualFromAddress: typeof resolveActualFromAddress;
2268
2545
  declare const context_updateSenderDetails: typeof updateSenderDetails;
2269
2546
  declare const context_verifyEmail: typeof verifyEmail;
2270
2547
  declare namespace context {
2271
- export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GetSenderDetailsRequest as GetSenderDetailsRequest, type context_GetSenderDetailsResponse as GetSenderDetailsResponse, type context_GetSenderDetailsResponseNonNullableFields as GetSenderDetailsResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_MessageEnvelope as MessageEnvelope, type context_ResolveActualFromAddressRequest as ResolveActualFromAddressRequest, type context_ResolveActualFromAddressResponse as ResolveActualFromAddressResponse, type context_ResolveActualFromAddressResponseNonNullableFields as ResolveActualFromAddressResponseNonNullableFields, type context_RestoreInfo as RestoreInfo, type context_SenderDetails as SenderDetails, type context_SenderDetailsUpdatedEnvelope as SenderDetailsUpdatedEnvelope, type context_UpdateSenderDetailsRequest as UpdateSenderDetailsRequest, type context_UpdateSenderDetailsResponse as UpdateSenderDetailsResponse, type context_UpdateSenderDetailsResponseNonNullableFields as UpdateSenderDetailsResponseNonNullableFields, type context_VerifySenderEmailRequest as VerifySenderEmailRequest, type context_VerifySenderEmailResponse as VerifySenderEmailResponse, context_WebhookIdentityType as WebhookIdentityType, context_getSenderDetails as getSenderDetails, context_onSenderDetailsUpdated as onSenderDetailsUpdated, context_resolveActualFromAddress as resolveActualFromAddress, context_updateSenderDetails as updateSenderDetails, context_verifyEmail as verifyEmail };
2548
+ export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GetSenderDetailsRequest as GetSenderDetailsRequest, type context_GetSenderDetailsResponse as GetSenderDetailsResponse, type context_GetSenderDetailsResponseNonNullableFields as GetSenderDetailsResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_MessageEnvelope as MessageEnvelope, type context_ResolveActualFromAddressRequest as ResolveActualFromAddressRequest, type context_ResolveActualFromAddressResponse as ResolveActualFromAddressResponse, type context_ResolveActualFromAddressResponseNonNullableFields as ResolveActualFromAddressResponseNonNullableFields, type context_RestoreInfo as RestoreInfo, type context_SenderDetails as SenderDetails, type context_SenderDetailsUpdatedEnvelope as SenderDetailsUpdatedEnvelope, type context_UpdateSenderDetailsRequest as UpdateSenderDetailsRequest, type context_UpdateSenderDetailsResponse as UpdateSenderDetailsResponse, type context_UpdateSenderDetailsResponseNonNullableFields as UpdateSenderDetailsResponseNonNullableFields, type context_VerifySenderEmailRequest as VerifySenderEmailRequest, type context_VerifySenderEmailResponse as VerifySenderEmailResponse, context_WebhookIdentityType as WebhookIdentityType, type context__publicGetSenderDetailsType as _publicGetSenderDetailsType, type context__publicOnSenderDetailsUpdatedType as _publicOnSenderDetailsUpdatedType, type context__publicResolveActualFromAddressType as _publicResolveActualFromAddressType, type context__publicUpdateSenderDetailsType as _publicUpdateSenderDetailsType, type context__publicVerifyEmailType as _publicVerifyEmailType, context_getSenderDetails as getSenderDetails, context_onSenderDetailsUpdated as onSenderDetailsUpdated, onSenderDetailsUpdated$1 as publicOnSenderDetailsUpdated, context_resolveActualFromAddress as resolveActualFromAddress, context_updateSenderDetails as updateSenderDetails, context_verifyEmail as verifyEmail };
2272
2549
  }
2273
2550
 
2274
2551
  export { context$2 as accountDetails, context$1 as campaigns, context as senderDetails };
@@ -1,3 +1,47 @@
1
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
2
+ interface HttpClient {
3
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
4
+ fetchWithAuth: typeof fetch;
5
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
6
+ }
7
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
8
+ type HttpResponse<T = any> = {
9
+ data: T;
10
+ status: number;
11
+ statusText: string;
12
+ headers: any;
13
+ request?: any;
14
+ };
15
+ type RequestOptions<_TResponse = any, Data = any> = {
16
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
17
+ url: string;
18
+ data?: Data;
19
+ params?: URLSearchParams;
20
+ } & APIMetadata;
21
+ type APIMetadata = {
22
+ methodFqn?: string;
23
+ entityFqdn?: string;
24
+ packageName?: string;
25
+ };
26
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
27
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
28
+ __type: 'event-definition';
29
+ type: Type;
30
+ isDomainEvent?: boolean;
31
+ transformations?: (envelope: unknown) => Payload;
32
+ __payload: Payload;
33
+ };
34
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
35
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
36
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
37
+
38
+ declare global {
39
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
40
+ interface SymbolConstructor {
41
+ readonly observable: symbol;
42
+ }
43
+ }
44
+
1
45
  /**
2
46
  * An account can be active or in some state of suspension (warned/suspended/banned).
3
47
  * If a user is in a state of suspension they must visit their email marketing account in the dashboard and follow the instructions.
@@ -126,53 +170,18 @@ interface GetAccountDetailsResponseNonNullableFields {
126
170
  accountDetails?: AccountDetailsNonNullableFields;
127
171
  }
128
172
 
129
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
130
- interface HttpClient {
131
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
132
- fetchWithAuth: typeof fetch;
133
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
134
- }
135
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
136
- type HttpResponse<T = any> = {
137
- data: T;
138
- status: number;
139
- statusText: string;
140
- headers: any;
141
- request?: any;
142
- };
143
- type RequestOptions<_TResponse = any, Data = any> = {
144
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
145
- url: string;
146
- data?: Data;
147
- params?: URLSearchParams;
148
- } & APIMetadata;
149
- type APIMetadata = {
150
- methodFqn?: string;
151
- entityFqdn?: string;
152
- packageName?: string;
153
- };
154
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
155
- type EventDefinition<Payload = unknown, Type extends string = string> = {
156
- __type: 'event-definition';
157
- type: Type;
158
- isDomainEvent?: boolean;
159
- transformations?: (envelope: unknown) => Payload;
160
- __payload: Payload;
161
- };
162
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
163
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
164
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
165
-
166
- declare global {
167
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
168
- interface SymbolConstructor {
169
- readonly observable: symbol;
170
- }
173
+ declare function getAccountDetails$1(httpClient: HttpClient): GetAccountDetailsSignature;
174
+ interface GetAccountDetailsSignature {
175
+ /**
176
+ * Retrieves email marketing account details.
177
+ */
178
+ (): Promise<GetAccountDetailsResponse & GetAccountDetailsResponseNonNullableFields>;
171
179
  }
172
180
 
173
181
  declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
174
182
 
175
- declare const getAccountDetails: ReturnType<typeof createRESTModule$2<typeof publicGetAccountDetails>>;
183
+ type _publicGetAccountDetailsType = typeof getAccountDetails$1;
184
+ declare const getAccountDetails: ReturnType<typeof createRESTModule$2<_publicGetAccountDetailsType>>;
176
185
 
177
186
  type index_d$2_AccountDetails = AccountDetails;
178
187
  type index_d$2_Action = Action;
@@ -190,9 +199,10 @@ type index_d$2_QuotaPeriod = QuotaPeriod;
190
199
  type index_d$2_RespondRequest = RespondRequest;
191
200
  type index_d$2_RespondResponse = RespondResponse;
192
201
  type index_d$2_SupportTicketData = SupportTicketData;
202
+ type index_d$2__publicGetAccountDetailsType = _publicGetAccountDetailsType;
193
203
  declare const index_d$2_getAccountDetails: typeof getAccountDetails;
194
204
  declare namespace index_d$2 {
195
- export { type index_d$2_AccountDetails as AccountDetails, index_d$2_Action as Action, type index_d$2_ComplianceDetails as ComplianceDetails, Enum$1 as Enum, type index_d$2_Features as Features, type index_d$2_GetAccountDetailsRequest as GetAccountDetailsRequest, type index_d$2_GetAccountDetailsResponse as GetAccountDetailsResponse, type index_d$2_GetAccountDetailsResponseNonNullableFields as GetAccountDetailsResponseNonNullableFields, type index_d$2_GetComplianceDetailsRequest as GetComplianceDetailsRequest, type index_d$2_GetComplianceDetailsResponse as GetComplianceDetailsResponse, type index_d$2_Package as Package, type index_d$2_Quota as Quota, type index_d$2_QuotaPeriod as QuotaPeriod, type index_d$2_RespondRequest as RespondRequest, type index_d$2_RespondResponse as RespondResponse, type index_d$2_SupportTicketData as SupportTicketData, index_d$2_getAccountDetails as getAccountDetails };
205
+ export { type index_d$2_AccountDetails as AccountDetails, index_d$2_Action as Action, type index_d$2_ComplianceDetails as ComplianceDetails, Enum$1 as Enum, type index_d$2_Features as Features, type index_d$2_GetAccountDetailsRequest as GetAccountDetailsRequest, type index_d$2_GetAccountDetailsResponse as GetAccountDetailsResponse, type index_d$2_GetAccountDetailsResponseNonNullableFields as GetAccountDetailsResponseNonNullableFields, type index_d$2_GetComplianceDetailsRequest as GetComplianceDetailsRequest, type index_d$2_GetComplianceDetailsResponse as GetComplianceDetailsResponse, type index_d$2_Package as Package, type index_d$2_Quota as Quota, type index_d$2_QuotaPeriod as QuotaPeriod, type index_d$2_RespondRequest as RespondRequest, type index_d$2_RespondResponse as RespondResponse, type index_d$2_SupportTicketData as SupportTicketData, type index_d$2__publicGetAccountDetailsType as _publicGetAccountDetailsType, index_d$2_getAccountDetails as getAccountDetails };
196
206
  }
197
207
 
198
208
  interface Campaign {
@@ -1435,7 +1445,7 @@ interface CampaignPausedEvent {
1435
1445
  interface RescheduleRequest {
1436
1446
  /** ID of the campaign to reschedule. */
1437
1447
  campaignId: string;
1438
- /** New time that this email marketing campaign should be sent at. */
1448
+ /** The new time for sending out the campaign. */
1439
1449
  sendAt: Date;
1440
1450
  }
1441
1451
  interface RescheduleResponse {
@@ -1753,29 +1763,218 @@ interface SendTestOptions {
1753
1763
  toEmailAddress: string;
1754
1764
  }
1755
1765
 
1766
+ declare function listStatistics$1(httpClient: HttpClient): ListStatisticsSignature;
1767
+ interface ListStatisticsSignature {
1768
+ /**
1769
+ * Retrieves a list of statistics for up to 100 selected campaigns.
1770
+ *
1771
+ * For each campaign, you receive the total activity count for the campaign's landing page and email. For example, the total
1772
+ * amount of times the landing page was opened, or the total amount of email recipients that clicked a link in an email.
1773
+ *
1774
+ * Use [List Campaigns](#listcampaigns) to retrieve additional information for your campaigns.
1775
+ * Use [List Recipients](#listrecipients) to retrieve a list of recipients and their activities related to a selected campaign.
1776
+ * @param - IDs of the campaigns to retrieve (max 100 campaigns).
1777
+ */
1778
+ (campaignIds: string[]): Promise<ListStatisticsResponse & ListStatisticsResponseNonNullableFields>;
1779
+ }
1780
+ declare function listRecipients$1(httpClient: HttpClient): ListRecipientsSignature;
1781
+ interface ListRecipientsSignature {
1782
+ /**
1783
+ * Retrieves a list of recipients for a selected campaign based on a specific recipient activity.
1784
+ *
1785
+ * Pages are returned with a maximum of 1,000 recipients per page and defaults to 40 recipients per page.
1786
+ *
1787
+ * Use [List Statistics](#liststatistics) to retrieve a list of activity for selected campaigns.
1788
+ * Use [List Campaigns](#listcampaigns) to retrieve additional information for your campaigns.
1789
+ *
1790
+ * If no `activity` is included, this endpoint returns an error.
1791
+ *
1792
+ * @param - Campaign ID.
1793
+ * @param - __Required.__ Email activity to filter for. One of:
1794
+ * + `'DELIVERED'`
1795
+ * + `'OPENED'`
1796
+ * + `'CLICKED'`
1797
+ * + `'BOUNCED'`
1798
+ * + `'NOT_SENT'`
1799
+ * @param - Options to use when getting the list of recipients.
1800
+ */
1801
+ (campaignId: string, activity: RecipientsActivityEnum, options?: ListRecipientsOptions | undefined): Promise<ListRecipientsResponse & ListRecipientsResponseNonNullableFields>;
1802
+ }
1803
+ declare function getCampaign$1(httpClient: HttpClient): GetCampaignSignature;
1804
+ interface GetCampaignSignature {
1805
+ /**
1806
+ * Retrieves information about an email campaign by the specified ID.
1807
+ * @param - Campaign ID.
1808
+ * @param - Options to use when getting a campaign.
1809
+ * @returns Campaign information.
1810
+ */
1811
+ (campaignId: string, options?: GetCampaignOptions | undefined): Promise<Campaign & CampaignNonNullableFields>;
1812
+ }
1813
+ declare function listCampaigns$1(httpClient: HttpClient): ListCampaignsSignature;
1814
+ interface ListCampaignsSignature {
1815
+ /**
1816
+ * Returns a list of email campaigns.
1817
+ *
1818
+ * Default sort by `date_updated` in `desc` order.
1819
+ * @param - Options to use when getting the list of campaigns.
1820
+ */
1821
+ (options?: ListCampaignsOptions | undefined): Promise<ListCampaignsResponse & ListCampaignsResponseNonNullableFields>;
1822
+ }
1823
+ declare function publishCampaign$1(httpClient: HttpClient): PublishCampaignSignature;
1824
+ interface PublishCampaignSignature {
1825
+ /**
1826
+ * Publishes/sends a specified campaign.
1827
+ *
1828
+ * If no `emailDistributionOptions` parameters are specified, the campaign is only published as a landing page.
1829
+ * @param - Campaign ID
1830
+ * @param - Options to use when publishing a campaign.
1831
+ */
1832
+ (campaignId: string, options?: PublishCampaignOptions | undefined): Promise<PublishCampaignResponse & PublishCampaignResponseNonNullableFields>;
1833
+ }
1834
+ declare function sendTest$1(httpClient: HttpClient): SendTestSignature;
1835
+ interface SendTestSignature {
1836
+ /**
1837
+ * Sends a test email for preview purposes.
1838
+ *
1839
+ * It is heavily throttled, so don't use this for regular campaign sending.
1840
+ *
1841
+ * @param - Campaign ID.
1842
+ * @param - Options for sending a test email.
1843
+ */
1844
+ (campaignId: string, options?: SendTestOptions | undefined): Promise<void>;
1845
+ }
1846
+ declare function pauseScheduling$1(httpClient: HttpClient): PauseSchedulingSignature;
1847
+ interface PauseSchedulingSignature {
1848
+ /**
1849
+ * Pauses a scheduled campaign.
1850
+ *
1851
+ * Learn more about [market campaign scheduling](https://support.wix.com/en/article/managing-your-scheduled-email-marketing-campaign).
1852
+ * @param - Campaign ID.
1853
+ */
1854
+ (campaignId: string): Promise<void>;
1855
+ }
1856
+ declare function reschedule$1(httpClient: HttpClient): RescheduleSignature;
1857
+ interface RescheduleSignature {
1858
+ /**
1859
+ * Changes the sending time for an already scheduled campaign.
1860
+ * @param - ID of the campaign to reschedule.
1861
+ * @param - The new time for sending out the campaign.
1862
+ */
1863
+ (campaignId: string, sendAt: Date): Promise<void>;
1864
+ }
1865
+ declare function deleteCampaign$1(httpClient: HttpClient): DeleteCampaignSignature;
1866
+ interface DeleteCampaignSignature {
1867
+ /**
1868
+ * Permanently deletes a campaign.
1869
+ * @param - Campaign ID.
1870
+ */
1871
+ (campaignId: string): Promise<void>;
1872
+ }
1873
+ declare function reuseCampaign$1(httpClient: HttpClient): ReuseCampaignSignature;
1874
+ interface ReuseCampaignSignature {
1875
+ /**
1876
+ * Creates a (draft) copy of an existing campaign.
1877
+ *
1878
+ * @param - ID of the message to be duplicated.
1879
+ */
1880
+ (campaignId: string): Promise<ReuseCampaignResponse & ReuseCampaignResponseNonNullableFields>;
1881
+ }
1882
+ declare const onCampaignCreated$1: EventDefinition<CampaignCreatedEnvelope, "wix.email_marketing.v1.campaign_created">;
1883
+ declare const onCampaignRejectedEvent$1: EventDefinition<CampaignRejectedEnvelope, "wix.email_marketing.v1.campaign_campaign_rejected_event">;
1884
+ declare const onCampaignPublishedEvent$1: EventDefinition<CampaignPublishedEnvelope, "wix.email_marketing.v1.campaign_campaign_published_event">;
1885
+ declare const onCampaignTerminatedEvent$1: EventDefinition<CampaignTerminatedEnvelope, "wix.email_marketing.v1.campaign_campaign_terminated_event">;
1886
+ declare const onCampaignDistributedEvent$1: EventDefinition<CampaignDistributedEnvelope, "wix.email_marketing.v1.campaign_campaign_distributed_event">;
1887
+ declare const onCampaignEmailActivityUpdated$1: EventDefinition<CampaignEmailActivityUpdatedEnvelope, "wix.email_marketing.v1.campaign_email_activity_updated">;
1888
+ declare const onCampaignScheduledEvent$1: EventDefinition<CampaignScheduledEnvelope, "wix.email_marketing.v1.campaign_campaign_scheduled_event">;
1889
+ declare const onCampaignPausedEvent$1: EventDefinition<CampaignPausedEnvelope, "wix.email_marketing.v1.campaign_campaign_paused_event">;
1890
+ declare const onCampaignDeleted$1: EventDefinition<CampaignDeletedEnvelope, "wix.email_marketing.v1.campaign_deleted">;
1891
+
1756
1892
  declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1757
1893
 
1758
1894
  declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1759
1895
 
1760
- declare const listStatistics: ReturnType<typeof createRESTModule$1<typeof publicListStatistics>>;
1761
- declare const listRecipients: ReturnType<typeof createRESTModule$1<typeof publicListRecipients>>;
1762
- declare const getCampaign: ReturnType<typeof createRESTModule$1<typeof publicGetCampaign>>;
1763
- declare const listCampaigns: ReturnType<typeof createRESTModule$1<typeof publicListCampaigns>>;
1764
- declare const publishCampaign: ReturnType<typeof createRESTModule$1<typeof publicPublishCampaign>>;
1765
- declare const sendTest: ReturnType<typeof createRESTModule$1<typeof publicSendTest>>;
1766
- declare const pauseScheduling: ReturnType<typeof createRESTModule$1<typeof publicPauseScheduling>>;
1767
- declare const reschedule: ReturnType<typeof createRESTModule$1<typeof publicReschedule>>;
1768
- declare const deleteCampaign: ReturnType<typeof createRESTModule$1<typeof publicDeleteCampaign>>;
1769
- declare const reuseCampaign: ReturnType<typeof createRESTModule$1<typeof publicReuseCampaign>>;
1770
- declare const onCampaignCreated: ReturnType<typeof createEventModule$1<typeof publicOnCampaignCreated>>;
1771
- declare const onCampaignRejectedEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignRejectedEvent>>;
1772
- declare const onCampaignPublishedEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignPublishedEvent>>;
1773
- declare const onCampaignTerminatedEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignTerminatedEvent>>;
1774
- declare const onCampaignDistributedEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignDistributedEvent>>;
1775
- declare const onCampaignEmailActivityUpdated: ReturnType<typeof createEventModule$1<typeof publicOnCampaignEmailActivityUpdated>>;
1776
- declare const onCampaignScheduledEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignScheduledEvent>>;
1777
- declare const onCampaignPausedEvent: ReturnType<typeof createEventModule$1<typeof publicOnCampaignPausedEvent>>;
1778
- declare const onCampaignDeleted: ReturnType<typeof createEventModule$1<typeof publicOnCampaignDeleted>>;
1896
+ type _publicListStatisticsType = typeof listStatistics$1;
1897
+ declare const listStatistics: ReturnType<typeof createRESTModule$1<_publicListStatisticsType>>;
1898
+ type _publicListRecipientsType = typeof listRecipients$1;
1899
+ declare const listRecipients: ReturnType<typeof createRESTModule$1<_publicListRecipientsType>>;
1900
+ type _publicGetCampaignType = typeof getCampaign$1;
1901
+ declare const getCampaign: ReturnType<typeof createRESTModule$1<_publicGetCampaignType>>;
1902
+ type _publicListCampaignsType = typeof listCampaigns$1;
1903
+ declare const listCampaigns: ReturnType<typeof createRESTModule$1<_publicListCampaignsType>>;
1904
+ type _publicPublishCampaignType = typeof publishCampaign$1;
1905
+ declare const publishCampaign: ReturnType<typeof createRESTModule$1<_publicPublishCampaignType>>;
1906
+ type _publicSendTestType = typeof sendTest$1;
1907
+ declare const sendTest: ReturnType<typeof createRESTModule$1<_publicSendTestType>>;
1908
+ type _publicPauseSchedulingType = typeof pauseScheduling$1;
1909
+ declare const pauseScheduling: ReturnType<typeof createRESTModule$1<_publicPauseSchedulingType>>;
1910
+ type _publicRescheduleType = typeof reschedule$1;
1911
+ declare const reschedule: ReturnType<typeof createRESTModule$1<_publicRescheduleType>>;
1912
+ type _publicDeleteCampaignType = typeof deleteCampaign$1;
1913
+ declare const deleteCampaign: ReturnType<typeof createRESTModule$1<_publicDeleteCampaignType>>;
1914
+ type _publicReuseCampaignType = typeof reuseCampaign$1;
1915
+ declare const reuseCampaign: ReturnType<typeof createRESTModule$1<_publicReuseCampaignType>>;
1916
+
1917
+ type _publicOnCampaignCreatedType = typeof onCampaignCreated$1;
1918
+ /** */
1919
+ declare const onCampaignCreated: ReturnType<typeof createEventModule$1<_publicOnCampaignCreatedType>>;
1920
+
1921
+ type _publicOnCampaignRejectedEventType = typeof onCampaignRejectedEvent$1;
1922
+ /**
1923
+ * Triggered when a campaign is identified as abusive and rejected without sending emails to recipients.
1924
+ */
1925
+ declare const onCampaignRejectedEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignRejectedEventType>>;
1926
+
1927
+ type _publicOnCampaignPublishedEventType = typeof onCampaignPublishedEvent$1;
1928
+ /**
1929
+ * Triggered when a draft campaign is published.
1930
+ */
1931
+ declare const onCampaignPublishedEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignPublishedEventType>>;
1932
+
1933
+ type _publicOnCampaignTerminatedEventType = typeof onCampaignTerminatedEvent$1;
1934
+ /**
1935
+ * Triggered when the mailing list is not clean and campaign was terminated (not sent to all recipients).
1936
+ */
1937
+ declare const onCampaignTerminatedEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignTerminatedEventType>>;
1938
+
1939
+ type _publicOnCampaignDistributedEventType = typeof onCampaignDistributedEvent$1;
1940
+ /**
1941
+ * Triggered when a campaign is successfully distributed to all recipients
1942
+ */
1943
+ declare const onCampaignDistributedEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignDistributedEventType>>;
1944
+
1945
+ type _publicOnCampaignEmailActivityUpdatedType = typeof onCampaignEmailActivityUpdated$1;
1946
+ /**
1947
+ * Triggered each time an email campaign has a new recipient activity.
1948
+ *
1949
+ * New recipient activity includes when each email in a campaign is `DELIVERED`, `OPENED`,
1950
+ * or `BOUNCED`. Also, when a URL inside the email is `CLICKED`.
1951
+ *
1952
+ * The type of activity that triggered the webhook is in `actionEvent.body` and can be one of:
1953
+ * + `delivery`: Email was delivered to recipient.
1954
+ * + `click`: Recipient clicked on a URL in an email.
1955
+ * + `open`: Recipient opened an email.
1956
+ * + `softBounce`: Email soft bounced when sent to a recipient.
1957
+ * + `hardBounce`: Email hard bounced when sent to a recipient.
1958
+ */
1959
+ declare const onCampaignEmailActivityUpdated: ReturnType<typeof createEventModule$1<_publicOnCampaignEmailActivityUpdatedType>>;
1960
+
1961
+ type _publicOnCampaignScheduledEventType = typeof onCampaignScheduledEvent$1;
1962
+ /**
1963
+ * Campaign scheduled at a specific time in the future.
1964
+ */
1965
+ declare const onCampaignScheduledEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignScheduledEventType>>;
1966
+
1967
+ type _publicOnCampaignPausedEventType = typeof onCampaignPausedEvent$1;
1968
+ /**
1969
+ * Triggered when a scheduled campaign is paused.
1970
+ */
1971
+ declare const onCampaignPausedEvent: ReturnType<typeof createEventModule$1<_publicOnCampaignPausedEventType>>;
1972
+
1973
+ type _publicOnCampaignDeletedType = typeof onCampaignDeleted$1;
1974
+ /**
1975
+ * Triggered when a campaign is deleted.
1976
+ */
1977
+ declare const onCampaignDeleted: ReturnType<typeof createEventModule$1<_publicOnCampaignDeletedType>>;
1779
1978
 
1780
1979
  type index_d$1_ActionConfiguration = ActionConfiguration;
1781
1980
  type index_d$1_ActivationCycle = ActivationCycle;
@@ -1979,6 +2178,25 @@ type index_d$1_ValidateLinkResponse = ValidateLinkResponse;
1979
2178
  type index_d$1_VersionType = VersionType;
1980
2179
  declare const index_d$1_VersionType: typeof VersionType;
1981
2180
  type index_d$1__Array = _Array;
2181
+ type index_d$1__publicDeleteCampaignType = _publicDeleteCampaignType;
2182
+ type index_d$1__publicGetCampaignType = _publicGetCampaignType;
2183
+ type index_d$1__publicListCampaignsType = _publicListCampaignsType;
2184
+ type index_d$1__publicListRecipientsType = _publicListRecipientsType;
2185
+ type index_d$1__publicListStatisticsType = _publicListStatisticsType;
2186
+ type index_d$1__publicOnCampaignCreatedType = _publicOnCampaignCreatedType;
2187
+ type index_d$1__publicOnCampaignDeletedType = _publicOnCampaignDeletedType;
2188
+ type index_d$1__publicOnCampaignDistributedEventType = _publicOnCampaignDistributedEventType;
2189
+ type index_d$1__publicOnCampaignEmailActivityUpdatedType = _publicOnCampaignEmailActivityUpdatedType;
2190
+ type index_d$1__publicOnCampaignPausedEventType = _publicOnCampaignPausedEventType;
2191
+ type index_d$1__publicOnCampaignPublishedEventType = _publicOnCampaignPublishedEventType;
2192
+ type index_d$1__publicOnCampaignRejectedEventType = _publicOnCampaignRejectedEventType;
2193
+ type index_d$1__publicOnCampaignScheduledEventType = _publicOnCampaignScheduledEventType;
2194
+ type index_d$1__publicOnCampaignTerminatedEventType = _publicOnCampaignTerminatedEventType;
2195
+ type index_d$1__publicPauseSchedulingType = _publicPauseSchedulingType;
2196
+ type index_d$1__publicPublishCampaignType = _publicPublishCampaignType;
2197
+ type index_d$1__publicRescheduleType = _publicRescheduleType;
2198
+ type index_d$1__publicReuseCampaignType = _publicReuseCampaignType;
2199
+ type index_d$1__publicSendTestType = _publicSendTestType;
1982
2200
  declare const index_d$1_deleteCampaign: typeof deleteCampaign;
1983
2201
  declare const index_d$1_getCampaign: typeof getCampaign;
1984
2202
  declare const index_d$1_listCampaigns: typeof listCampaigns;
@@ -1999,7 +2217,7 @@ declare const index_d$1_reschedule: typeof reschedule;
1999
2217
  declare const index_d$1_reuseCampaign: typeof reuseCampaign;
2000
2218
  declare const index_d$1_sendTest: typeof sendTest;
2001
2219
  declare namespace index_d$1 {
2002
- export { type index_d$1_ActionConfiguration as ActionConfiguration, type ActionEvent$1 as ActionEvent, type index_d$1_ActivationCycle as ActivationCycle, index_d$1_ActivityType as ActivityType, type index_d$1_ArchiveCampaignRequest as ArchiveCampaignRequest, type index_d$1_ArchiveCampaignResponse as ArchiveCampaignResponse, type index_d$1_Attachment as Attachment, type index_d$1_AutomationTemplate as AutomationTemplate, type index_d$1_AutomationTemplateContainer as AutomationTemplateContainer, type index_d$1_AutomationTemplateEnrichmentData as AutomationTemplateEnrichmentData, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_Campaign as Campaign, type index_d$1_CampaignArchivedEvent as CampaignArchivedEvent, type index_d$1_CampaignCreatedEnvelope as CampaignCreatedEnvelope, type index_d$1_CampaignDeletedEnvelope as CampaignDeletedEnvelope, type index_d$1_CampaignDistributedEnvelope as CampaignDistributedEnvelope, type index_d$1_CampaignDistributedEvent as CampaignDistributedEvent, type index_d$1_CampaignEditorType as CampaignEditorType, index_d$1_CampaignEditorTypeEnum as CampaignEditorTypeEnum, type index_d$1_CampaignEmailActivityUpdatedEnvelope as CampaignEmailActivityUpdatedEnvelope, type index_d$1_CampaignLookupBatchRequest as CampaignLookupBatchRequest, type index_d$1_CampaignLookupBatchResponse as CampaignLookupBatchResponse, type index_d$1_CampaignLookupRequest as CampaignLookupRequest, type index_d$1_CampaignLookupResponse as CampaignLookupResponse, type index_d$1_CampaignNonNullableFields as CampaignNonNullableFields, type index_d$1_CampaignPausedEnvelope as CampaignPausedEnvelope, type index_d$1_CampaignPausedEvent as CampaignPausedEvent, type index_d$1_CampaignPublishedEnvelope as CampaignPublishedEnvelope, type index_d$1_CampaignPublishedEvent as CampaignPublishedEvent, type index_d$1_CampaignRecipientDetails as CampaignRecipientDetails, type index_d$1_CampaignRejectedEnvelope as CampaignRejectedEnvelope, type index_d$1_CampaignRejectedEvent as CampaignRejectedEvent, type index_d$1_CampaignScheduledEnvelope as CampaignScheduledEnvelope, type index_d$1_CampaignScheduledEvent as CampaignScheduledEvent, index_d$1_CampaignSendingStateEnum as CampaignSendingStateEnum, type index_d$1_CampaignStatistics as CampaignStatistics, type index_d$1_CampaignStatisticsContainer as CampaignStatisticsContainer, index_d$1_CampaignStatusEnum as CampaignStatusEnum, type index_d$1_CampaignTerminatedEnvelope as CampaignTerminatedEnvelope, type index_d$1_CampaignTerminatedEvent as CampaignTerminatedEvent, index_d$1_CampaignTypeEnum as CampaignTypeEnum, type index_d$1_CampaignUnarchivedEvent as CampaignUnarchivedEvent, index_d$1_CampaignVisibilityStatusEnum as CampaignVisibilityStatusEnum, type index_d$1_Click as Click, type index_d$1_Composer as Composer, type index_d$1_ConditionConfiguration as ConditionConfiguration, type index_d$1_Contact as Contact, type index_d$1_CountCampaignsRequest as CountCampaignsRequest, type index_d$1_CountCampaignsResponse as CountCampaignsResponse, type index_d$1_CreateCampaignRequest as CreateCampaignRequest, type index_d$1_CreateCampaignResponse as CreateCampaignResponse, type index_d$1_CreateFromTemplateRequest as CreateFromTemplateRequest, type index_d$1_CreateFromTemplateResponse as CreateFromTemplateResponse, type index_d$1_CreateFromUserTemplateRequest as CreateFromUserTemplateRequest, type index_d$1_CreateFromUserTemplateResponse as CreateFromUserTemplateResponse, type index_d$1_CreateUserTemplateRequest as CreateUserTemplateRequest, type index_d$1_CreateUserTemplateResponse as CreateUserTemplateResponse, type index_d$1_CursorPaging as CursorPaging, type index_d$1_Cursors as Cursors, type index_d$1_DateTime as DateTime, type index_d$1_Decimal as Decimal, type index_d$1_DefaultValues as DefaultValues, type index_d$1_DeleteCampaignRequest as DeleteCampaignRequest, type index_d$1_DeleteCampaignResponse as DeleteCampaignResponse, type index_d$1_DistributionStatistics as DistributionStatistics, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_EmailActivityUpdated as EmailActivityUpdated, type index_d$1_EmailActivityUpdatedEventTypeOneOf as EmailActivityUpdatedEventTypeOneOf, type index_d$1_EmailDistributionOptions as EmailDistributionOptions, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, index_d$1_Enum as Enum, type index_d$1_EstimateAudienceSizeRequest as EstimateAudienceSizeRequest, type index_d$1_EstimateAudienceSizeResponse as EstimateAudienceSizeResponse, type index_d$1_EstimateFilterSizeRequest as EstimateFilterSizeRequest, type index_d$1_EstimateFilterSizeResponse as EstimateFilterSizeResponse, type EventMetadata$1 as EventMetadata, type index_d$1_File as File, type index_d$1_GetCampaignMappingRequest as GetCampaignMappingRequest, type index_d$1_GetCampaignMappingResponse as GetCampaignMappingResponse, type index_d$1_GetCampaignOptions as GetCampaignOptions, type index_d$1_GetCampaignRequest as GetCampaignRequest, type index_d$1_GetCampaignResponse as GetCampaignResponse, type index_d$1_GetCampaignResponseNonNullableFields as GetCampaignResponseNonNullableFields, type index_d$1_GetComposerRequest as GetComposerRequest, type index_d$1_GetComposerResponse as GetComposerResponse, type index_d$1_GetDefaultComponentsRequest as GetDefaultComponentsRequest, type index_d$1_GetDefaultComponentsResponse as GetDefaultComponentsResponse, type index_d$1_GetLabelsRequest as GetLabelsRequest, type index_d$1_GetLabelsResponse as GetLabelsResponse, type index_d$1_GetPingCampaignMappingRequest as GetPingCampaignMappingRequest, type index_d$1_GetPingCampaignMappingResponse as GetPingCampaignMappingResponse, type index_d$1_GetPlaceholderKeysRequest as GetPlaceholderKeysRequest, type index_d$1_GetPlaceholderKeysResponse as GetPlaceholderKeysResponse, type index_d$1_GetUsedPlaceholderKeysRequest as GetUsedPlaceholderKeysRequest, type index_d$1_GetUsedPlaceholderKeysResponse as GetUsedPlaceholderKeysResponse, type index_d$1_HardBounce as HardBounce, type index_d$1_Html as Html, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Integer as Integer, type index_d$1_Label as Label, type index_d$1_LandingPageStatistics as LandingPageStatistics, type index_d$1_ListCampaignsOptions as ListCampaignsOptions, type index_d$1_ListCampaignsRequest as ListCampaignsRequest, type index_d$1_ListCampaignsResponse as ListCampaignsResponse, type index_d$1_ListCampaignsResponseNonNullableFields as ListCampaignsResponseNonNullableFields, type index_d$1_ListRecipientsOptions as ListRecipientsOptions, type index_d$1_ListRecipientsRequest as ListRecipientsRequest, type index_d$1_ListRecipientsResponse as ListRecipientsResponse, type index_d$1_ListRecipientsResponseNonNullableFields as ListRecipientsResponseNonNullableFields, type index_d$1_ListStatisticsRequest as ListStatisticsRequest, type index_d$1_ListStatisticsResponse as ListStatisticsResponse, type index_d$1_ListStatisticsResponseNonNullableFields as ListStatisticsResponseNonNullableFields, type index_d$1_Map as Map, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Money as Money, type index_d$1_Open as Open, index_d$1_Operator as Operator, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_PauseSchedulingRequest as PauseSchedulingRequest, type index_d$1_PauseSchedulingResponse as PauseSchedulingResponse, type index_d$1_PlaceholderContent as PlaceholderContent, type index_d$1_PlaceholderContentEnum as PlaceholderContentEnum, type index_d$1_PlaceholderContentValueOneOf as PlaceholderContentValueOneOf, type index_d$1_PlainText as PlainText, type index_d$1_Precondition as Precondition, index_d$1_PreconditionType as PreconditionType, type index_d$1_PreviewCampaignRequest as PreviewCampaignRequest, type index_d$1_PreviewCampaignResponse as PreviewCampaignResponse, type index_d$1_PublishCampaignOptions as PublishCampaignOptions, type index_d$1_PublishCampaignRequest as PublishCampaignRequest, type index_d$1_PublishCampaignResponse as PublishCampaignResponse, type index_d$1_PublishCampaignResponseNonNullableFields as PublishCampaignResponseNonNullableFields, type index_d$1_PublishingData as PublishingData, type index_d$1_Query as Query, type index_d$1_QueryAppTemplatesRequest as QueryAppTemplatesRequest, type index_d$1_QueryAppTemplatesResponse as QueryAppTemplatesResponse, type index_d$1_QueryAutomationTemplatesRequest as QueryAutomationTemplatesRequest, type index_d$1_QueryAutomationTemplatesResponse as QueryAutomationTemplatesResponse, type index_d$1_QueryMetadata as QueryMetadata, index_d$1_RecipientsActivityEnum as RecipientsActivityEnum, type index_d$1_ReconcileContactRequest as ReconcileContactRequest, type index_d$1_ReconcileContactResponse as ReconcileContactResponse, type index_d$1_RejectionData as RejectionData, index_d$1_RejectionReasonEnum as RejectionReasonEnum, type index_d$1_RescheduleRequest as RescheduleRequest, type index_d$1_RescheduleResponse as RescheduleResponse, type index_d$1_ResendToNonOpenersRequest as ResendToNonOpenersRequest, type index_d$1_ResendToNonOpenersResponse as ResendToNonOpenersResponse, type RestoreInfo$1 as RestoreInfo, type index_d$1_ReuseCampaignRequest as ReuseCampaignRequest, type index_d$1_ReuseCampaignResponse as ReuseCampaignResponse, type index_d$1_ReuseCampaignResponseNonNullableFields as ReuseCampaignResponseNonNullableFields, type index_d$1_RuleConfiguration as RuleConfiguration, type index_d$1_RuleMetadata as RuleMetadata, index_d$1_RuleStatus as RuleStatus, type index_d$1_SearchContactsRequest as SearchContactsRequest, type index_d$1_SearchContactsResponse as SearchContactsResponse, type index_d$1_SendTestOptions as SendTestOptions, type index_d$1_SendTestRequest as SendTestRequest, type index_d$1_SendTestResponse as SendTestResponse, type index_d$1_SoftBounce as SoftBounce, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_SubscribeFromLandingPageRequest as SubscribeFromLandingPageRequest, type index_d$1_SubscribeFromLandingPageResponse as SubscribeFromLandingPageResponse, type index_d$1_Target as Target, index_d$1_TargetType as TargetType, type index_d$1_TemplateData as TemplateData, index_d$1_TemplateQueryType as TemplateQueryType, index_d$1_TemplateState as TemplateState, index_d$1_TemplateType as TemplateType, type index_d$1_TotalStatistics as TotalStatistics, type index_d$1_Translation as Translation, index_d$1_TranslationState as TranslationState, type index_d$1_TriggerConfiguration as TriggerConfiguration, type index_d$1_UnarchiveCampaignRequest as UnarchiveCampaignRequest, type index_d$1_UnarchiveCampaignResponse as UnarchiveCampaignResponse, type index_d$1_UnprocessedTargetEvent as UnprocessedTargetEvent, type index_d$1_UpdateComposerRequest as UpdateComposerRequest, type index_d$1_UpdateComposerResponse as UpdateComposerResponse, type index_d$1_UpdateTitleRequest as UpdateTitleRequest, type index_d$1_UpdateTitleResponse as UpdateTitleResponse, type index_d$1_UpsertTranslationRequest as UpsertTranslationRequest, type index_d$1_UpsertTranslationResponse as UpsertTranslationResponse, type index_d$1_ValidateHtmlLinksRequest as ValidateHtmlLinksRequest, type index_d$1_ValidateHtmlLinksResponse as ValidateHtmlLinksResponse, type index_d$1_ValidateLinkRequest as ValidateLinkRequest, type index_d$1_ValidateLinkResponse as ValidateLinkResponse, index_d$1_VersionType as VersionType, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__Array as _Array, index_d$1_deleteCampaign as deleteCampaign, index_d$1_getCampaign as getCampaign, index_d$1_listCampaigns as listCampaigns, index_d$1_listRecipients as listRecipients, index_d$1_listStatistics as listStatistics, index_d$1_onCampaignCreated as onCampaignCreated, index_d$1_onCampaignDeleted as onCampaignDeleted, index_d$1_onCampaignDistributedEvent as onCampaignDistributedEvent, index_d$1_onCampaignEmailActivityUpdated as onCampaignEmailActivityUpdated, index_d$1_onCampaignPausedEvent as onCampaignPausedEvent, index_d$1_onCampaignPublishedEvent as onCampaignPublishedEvent, index_d$1_onCampaignRejectedEvent as onCampaignRejectedEvent, index_d$1_onCampaignScheduledEvent as onCampaignScheduledEvent, index_d$1_onCampaignTerminatedEvent as onCampaignTerminatedEvent, index_d$1_pauseScheduling as pauseScheduling, index_d$1_publishCampaign as publishCampaign, index_d$1_reschedule as reschedule, index_d$1_reuseCampaign as reuseCampaign, index_d$1_sendTest as sendTest };
2220
+ export { type index_d$1_ActionConfiguration as ActionConfiguration, type ActionEvent$1 as ActionEvent, type index_d$1_ActivationCycle as ActivationCycle, index_d$1_ActivityType as ActivityType, type index_d$1_ArchiveCampaignRequest as ArchiveCampaignRequest, type index_d$1_ArchiveCampaignResponse as ArchiveCampaignResponse, type index_d$1_Attachment as Attachment, type index_d$1_AutomationTemplate as AutomationTemplate, type index_d$1_AutomationTemplateContainer as AutomationTemplateContainer, type index_d$1_AutomationTemplateEnrichmentData as AutomationTemplateEnrichmentData, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_Campaign as Campaign, type index_d$1_CampaignArchivedEvent as CampaignArchivedEvent, type index_d$1_CampaignCreatedEnvelope as CampaignCreatedEnvelope, type index_d$1_CampaignDeletedEnvelope as CampaignDeletedEnvelope, type index_d$1_CampaignDistributedEnvelope as CampaignDistributedEnvelope, type index_d$1_CampaignDistributedEvent as CampaignDistributedEvent, type index_d$1_CampaignEditorType as CampaignEditorType, index_d$1_CampaignEditorTypeEnum as CampaignEditorTypeEnum, type index_d$1_CampaignEmailActivityUpdatedEnvelope as CampaignEmailActivityUpdatedEnvelope, type index_d$1_CampaignLookupBatchRequest as CampaignLookupBatchRequest, type index_d$1_CampaignLookupBatchResponse as CampaignLookupBatchResponse, type index_d$1_CampaignLookupRequest as CampaignLookupRequest, type index_d$1_CampaignLookupResponse as CampaignLookupResponse, type index_d$1_CampaignNonNullableFields as CampaignNonNullableFields, type index_d$1_CampaignPausedEnvelope as CampaignPausedEnvelope, type index_d$1_CampaignPausedEvent as CampaignPausedEvent, type index_d$1_CampaignPublishedEnvelope as CampaignPublishedEnvelope, type index_d$1_CampaignPublishedEvent as CampaignPublishedEvent, type index_d$1_CampaignRecipientDetails as CampaignRecipientDetails, type index_d$1_CampaignRejectedEnvelope as CampaignRejectedEnvelope, type index_d$1_CampaignRejectedEvent as CampaignRejectedEvent, type index_d$1_CampaignScheduledEnvelope as CampaignScheduledEnvelope, type index_d$1_CampaignScheduledEvent as CampaignScheduledEvent, index_d$1_CampaignSendingStateEnum as CampaignSendingStateEnum, type index_d$1_CampaignStatistics as CampaignStatistics, type index_d$1_CampaignStatisticsContainer as CampaignStatisticsContainer, index_d$1_CampaignStatusEnum as CampaignStatusEnum, type index_d$1_CampaignTerminatedEnvelope as CampaignTerminatedEnvelope, type index_d$1_CampaignTerminatedEvent as CampaignTerminatedEvent, index_d$1_CampaignTypeEnum as CampaignTypeEnum, type index_d$1_CampaignUnarchivedEvent as CampaignUnarchivedEvent, index_d$1_CampaignVisibilityStatusEnum as CampaignVisibilityStatusEnum, type index_d$1_Click as Click, type index_d$1_Composer as Composer, type index_d$1_ConditionConfiguration as ConditionConfiguration, type index_d$1_Contact as Contact, type index_d$1_CountCampaignsRequest as CountCampaignsRequest, type index_d$1_CountCampaignsResponse as CountCampaignsResponse, type index_d$1_CreateCampaignRequest as CreateCampaignRequest, type index_d$1_CreateCampaignResponse as CreateCampaignResponse, type index_d$1_CreateFromTemplateRequest as CreateFromTemplateRequest, type index_d$1_CreateFromTemplateResponse as CreateFromTemplateResponse, type index_d$1_CreateFromUserTemplateRequest as CreateFromUserTemplateRequest, type index_d$1_CreateFromUserTemplateResponse as CreateFromUserTemplateResponse, type index_d$1_CreateUserTemplateRequest as CreateUserTemplateRequest, type index_d$1_CreateUserTemplateResponse as CreateUserTemplateResponse, type index_d$1_CursorPaging as CursorPaging, type index_d$1_Cursors as Cursors, type index_d$1_DateTime as DateTime, type index_d$1_Decimal as Decimal, type index_d$1_DefaultValues as DefaultValues, type index_d$1_DeleteCampaignRequest as DeleteCampaignRequest, type index_d$1_DeleteCampaignResponse as DeleteCampaignResponse, type index_d$1_DistributionStatistics as DistributionStatistics, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_EmailActivityUpdated as EmailActivityUpdated, type index_d$1_EmailActivityUpdatedEventTypeOneOf as EmailActivityUpdatedEventTypeOneOf, type index_d$1_EmailDistributionOptions as EmailDistributionOptions, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, index_d$1_Enum as Enum, type index_d$1_EstimateAudienceSizeRequest as EstimateAudienceSizeRequest, type index_d$1_EstimateAudienceSizeResponse as EstimateAudienceSizeResponse, type index_d$1_EstimateFilterSizeRequest as EstimateFilterSizeRequest, type index_d$1_EstimateFilterSizeResponse as EstimateFilterSizeResponse, type EventMetadata$1 as EventMetadata, type index_d$1_File as File, type index_d$1_GetCampaignMappingRequest as GetCampaignMappingRequest, type index_d$1_GetCampaignMappingResponse as GetCampaignMappingResponse, type index_d$1_GetCampaignOptions as GetCampaignOptions, type index_d$1_GetCampaignRequest as GetCampaignRequest, type index_d$1_GetCampaignResponse as GetCampaignResponse, type index_d$1_GetCampaignResponseNonNullableFields as GetCampaignResponseNonNullableFields, type index_d$1_GetComposerRequest as GetComposerRequest, type index_d$1_GetComposerResponse as GetComposerResponse, type index_d$1_GetDefaultComponentsRequest as GetDefaultComponentsRequest, type index_d$1_GetDefaultComponentsResponse as GetDefaultComponentsResponse, type index_d$1_GetLabelsRequest as GetLabelsRequest, type index_d$1_GetLabelsResponse as GetLabelsResponse, type index_d$1_GetPingCampaignMappingRequest as GetPingCampaignMappingRequest, type index_d$1_GetPingCampaignMappingResponse as GetPingCampaignMappingResponse, type index_d$1_GetPlaceholderKeysRequest as GetPlaceholderKeysRequest, type index_d$1_GetPlaceholderKeysResponse as GetPlaceholderKeysResponse, type index_d$1_GetUsedPlaceholderKeysRequest as GetUsedPlaceholderKeysRequest, type index_d$1_GetUsedPlaceholderKeysResponse as GetUsedPlaceholderKeysResponse, type index_d$1_HardBounce as HardBounce, type index_d$1_Html as Html, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Integer as Integer, type index_d$1_Label as Label, type index_d$1_LandingPageStatistics as LandingPageStatistics, type index_d$1_ListCampaignsOptions as ListCampaignsOptions, type index_d$1_ListCampaignsRequest as ListCampaignsRequest, type index_d$1_ListCampaignsResponse as ListCampaignsResponse, type index_d$1_ListCampaignsResponseNonNullableFields as ListCampaignsResponseNonNullableFields, type index_d$1_ListRecipientsOptions as ListRecipientsOptions, type index_d$1_ListRecipientsRequest as ListRecipientsRequest, type index_d$1_ListRecipientsResponse as ListRecipientsResponse, type index_d$1_ListRecipientsResponseNonNullableFields as ListRecipientsResponseNonNullableFields, type index_d$1_ListStatisticsRequest as ListStatisticsRequest, type index_d$1_ListStatisticsResponse as ListStatisticsResponse, type index_d$1_ListStatisticsResponseNonNullableFields as ListStatisticsResponseNonNullableFields, type index_d$1_Map as Map, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Money as Money, type index_d$1_Open as Open, index_d$1_Operator as Operator, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_PauseSchedulingRequest as PauseSchedulingRequest, type index_d$1_PauseSchedulingResponse as PauseSchedulingResponse, type index_d$1_PlaceholderContent as PlaceholderContent, type index_d$1_PlaceholderContentEnum as PlaceholderContentEnum, type index_d$1_PlaceholderContentValueOneOf as PlaceholderContentValueOneOf, type index_d$1_PlainText as PlainText, type index_d$1_Precondition as Precondition, index_d$1_PreconditionType as PreconditionType, type index_d$1_PreviewCampaignRequest as PreviewCampaignRequest, type index_d$1_PreviewCampaignResponse as PreviewCampaignResponse, type index_d$1_PublishCampaignOptions as PublishCampaignOptions, type index_d$1_PublishCampaignRequest as PublishCampaignRequest, type index_d$1_PublishCampaignResponse as PublishCampaignResponse, type index_d$1_PublishCampaignResponseNonNullableFields as PublishCampaignResponseNonNullableFields, type index_d$1_PublishingData as PublishingData, type index_d$1_Query as Query, type index_d$1_QueryAppTemplatesRequest as QueryAppTemplatesRequest, type index_d$1_QueryAppTemplatesResponse as QueryAppTemplatesResponse, type index_d$1_QueryAutomationTemplatesRequest as QueryAutomationTemplatesRequest, type index_d$1_QueryAutomationTemplatesResponse as QueryAutomationTemplatesResponse, type index_d$1_QueryMetadata as QueryMetadata, index_d$1_RecipientsActivityEnum as RecipientsActivityEnum, type index_d$1_ReconcileContactRequest as ReconcileContactRequest, type index_d$1_ReconcileContactResponse as ReconcileContactResponse, type index_d$1_RejectionData as RejectionData, index_d$1_RejectionReasonEnum as RejectionReasonEnum, type index_d$1_RescheduleRequest as RescheduleRequest, type index_d$1_RescheduleResponse as RescheduleResponse, type index_d$1_ResendToNonOpenersRequest as ResendToNonOpenersRequest, type index_d$1_ResendToNonOpenersResponse as ResendToNonOpenersResponse, type RestoreInfo$1 as RestoreInfo, type index_d$1_ReuseCampaignRequest as ReuseCampaignRequest, type index_d$1_ReuseCampaignResponse as ReuseCampaignResponse, type index_d$1_ReuseCampaignResponseNonNullableFields as ReuseCampaignResponseNonNullableFields, type index_d$1_RuleConfiguration as RuleConfiguration, type index_d$1_RuleMetadata as RuleMetadata, index_d$1_RuleStatus as RuleStatus, type index_d$1_SearchContactsRequest as SearchContactsRequest, type index_d$1_SearchContactsResponse as SearchContactsResponse, type index_d$1_SendTestOptions as SendTestOptions, type index_d$1_SendTestRequest as SendTestRequest, type index_d$1_SendTestResponse as SendTestResponse, type index_d$1_SoftBounce as SoftBounce, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_SubscribeFromLandingPageRequest as SubscribeFromLandingPageRequest, type index_d$1_SubscribeFromLandingPageResponse as SubscribeFromLandingPageResponse, type index_d$1_Target as Target, index_d$1_TargetType as TargetType, type index_d$1_TemplateData as TemplateData, index_d$1_TemplateQueryType as TemplateQueryType, index_d$1_TemplateState as TemplateState, index_d$1_TemplateType as TemplateType, type index_d$1_TotalStatistics as TotalStatistics, type index_d$1_Translation as Translation, index_d$1_TranslationState as TranslationState, type index_d$1_TriggerConfiguration as TriggerConfiguration, type index_d$1_UnarchiveCampaignRequest as UnarchiveCampaignRequest, type index_d$1_UnarchiveCampaignResponse as UnarchiveCampaignResponse, type index_d$1_UnprocessedTargetEvent as UnprocessedTargetEvent, type index_d$1_UpdateComposerRequest as UpdateComposerRequest, type index_d$1_UpdateComposerResponse as UpdateComposerResponse, type index_d$1_UpdateTitleRequest as UpdateTitleRequest, type index_d$1_UpdateTitleResponse as UpdateTitleResponse, type index_d$1_UpsertTranslationRequest as UpsertTranslationRequest, type index_d$1_UpsertTranslationResponse as UpsertTranslationResponse, type index_d$1_ValidateHtmlLinksRequest as ValidateHtmlLinksRequest, type index_d$1_ValidateHtmlLinksResponse as ValidateHtmlLinksResponse, type index_d$1_ValidateLinkRequest as ValidateLinkRequest, type index_d$1_ValidateLinkResponse as ValidateLinkResponse, index_d$1_VersionType as VersionType, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__Array as _Array, type index_d$1__publicDeleteCampaignType as _publicDeleteCampaignType, type index_d$1__publicGetCampaignType as _publicGetCampaignType, type index_d$1__publicListCampaignsType as _publicListCampaignsType, type index_d$1__publicListRecipientsType as _publicListRecipientsType, type index_d$1__publicListStatisticsType as _publicListStatisticsType, type index_d$1__publicOnCampaignCreatedType as _publicOnCampaignCreatedType, type index_d$1__publicOnCampaignDeletedType as _publicOnCampaignDeletedType, type index_d$1__publicOnCampaignDistributedEventType as _publicOnCampaignDistributedEventType, type index_d$1__publicOnCampaignEmailActivityUpdatedType as _publicOnCampaignEmailActivityUpdatedType, type index_d$1__publicOnCampaignPausedEventType as _publicOnCampaignPausedEventType, type index_d$1__publicOnCampaignPublishedEventType as _publicOnCampaignPublishedEventType, type index_d$1__publicOnCampaignRejectedEventType as _publicOnCampaignRejectedEventType, type index_d$1__publicOnCampaignScheduledEventType as _publicOnCampaignScheduledEventType, type index_d$1__publicOnCampaignTerminatedEventType as _publicOnCampaignTerminatedEventType, type index_d$1__publicPauseSchedulingType as _publicPauseSchedulingType, type index_d$1__publicPublishCampaignType as _publicPublishCampaignType, type index_d$1__publicRescheduleType as _publicRescheduleType, type index_d$1__publicReuseCampaignType as _publicReuseCampaignType, type index_d$1__publicSendTestType as _publicSendTestType, index_d$1_deleteCampaign as deleteCampaign, index_d$1_getCampaign as getCampaign, index_d$1_listCampaigns as listCampaigns, index_d$1_listRecipients as listRecipients, index_d$1_listStatistics as listStatistics, index_d$1_onCampaignCreated as onCampaignCreated, index_d$1_onCampaignDeleted as onCampaignDeleted, index_d$1_onCampaignDistributedEvent as onCampaignDistributedEvent, index_d$1_onCampaignEmailActivityUpdated as onCampaignEmailActivityUpdated, index_d$1_onCampaignPausedEvent as onCampaignPausedEvent, index_d$1_onCampaignPublishedEvent as onCampaignPublishedEvent, index_d$1_onCampaignRejectedEvent as onCampaignRejectedEvent, index_d$1_onCampaignScheduledEvent as onCampaignScheduledEvent, index_d$1_onCampaignTerminatedEvent as onCampaignTerminatedEvent, index_d$1_pauseScheduling as pauseScheduling, onCampaignCreated$1 as publicOnCampaignCreated, onCampaignDeleted$1 as publicOnCampaignDeleted, onCampaignDistributedEvent$1 as publicOnCampaignDistributedEvent, onCampaignEmailActivityUpdated$1 as publicOnCampaignEmailActivityUpdated, onCampaignPausedEvent$1 as publicOnCampaignPausedEvent, onCampaignPublishedEvent$1 as publicOnCampaignPublishedEvent, onCampaignRejectedEvent$1 as publicOnCampaignRejectedEvent, onCampaignScheduledEvent$1 as publicOnCampaignScheduledEvent, onCampaignTerminatedEvent$1 as publicOnCampaignTerminatedEvent, index_d$1_publishCampaign as publishCampaign, index_d$1_reschedule as reschedule, index_d$1_reuseCampaign as reuseCampaign, index_d$1_sendTest as sendTest };
2003
2221
  }
2004
2222
 
2005
2223
  /**
@@ -2225,15 +2443,69 @@ interface SenderDetailsUpdatedEnvelope {
2225
2443
  metadata: EventMetadata;
2226
2444
  }
2227
2445
 
2446
+ declare function getSenderDetails$1(httpClient: HttpClient): GetSenderDetailsSignature;
2447
+ interface GetSenderDetailsSignature {
2448
+ /**
2449
+ * Retrieves sender details.
2450
+ *
2451
+ * The sender details include the information displayed as the email sender's name and email address.
2452
+ *
2453
+ * + If you send an email campaign with a public email domain (e.g.
2454
+ * @deprecated
2455
+ */
2456
+ (): Promise<GetSenderDetailsResponse & GetSenderDetailsResponseNonNullableFields>;
2457
+ }
2458
+ declare function updateSenderDetails$1(httpClient: HttpClient): UpdateSenderDetailsSignature;
2459
+ interface UpdateSenderDetailsSignature {
2460
+ /**
2461
+ * Updates sender details.
2462
+ *
2463
+ * If the `fromEmail` is changed, a verification code will be sent to the new email address.
2464
+ *
2465
+ * If verification is needed, a verification email will be sent to the user, and the returned `verificationNeeded` value will be `true`.
2466
+ *
2467
+ * @param - New sender details.
2468
+ * @deprecated
2469
+ */
2470
+ (senderDetails: SenderDetails): Promise<UpdateSenderDetailsResponse & UpdateSenderDetailsResponseNonNullableFields>;
2471
+ }
2472
+ declare function verifyEmail$1(httpClient: HttpClient): VerifyEmailSignature;
2473
+ interface VerifyEmailSignature {
2474
+ /**
2475
+ * Verifies the sender's email using a verification code sent to the user's email address upon update.
2476
+ * @param - Verification code.
2477
+ * @deprecated
2478
+ */
2479
+ (verificationCode: string): Promise<void>;
2480
+ }
2481
+ declare function resolveActualFromAddress$1(httpClient: HttpClient): ResolveActualFromAddressSignature;
2482
+ interface ResolveActualFromAddressSignature {
2483
+ /**
2484
+ * Checks if the sender's email address will be used as from-address or replaced (not related to current sender details).
2485
+ * @param - User's provided address from which to send email marketing campaign.
2486
+ */
2487
+ (fromAddress: string): Promise<ResolveActualFromAddressResponse & ResolveActualFromAddressResponseNonNullableFields>;
2488
+ }
2489
+ declare const onSenderDetailsUpdated$1: EventDefinition<SenderDetailsUpdatedEnvelope, "wix.email_marketing.v1.sender_details_updated">;
2490
+
2228
2491
  declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2229
2492
 
2230
2493
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2231
2494
 
2232
- declare const getSenderDetails: ReturnType<typeof createRESTModule<typeof publicGetSenderDetails>>;
2233
- declare const updateSenderDetails: ReturnType<typeof createRESTModule<typeof publicUpdateSenderDetails>>;
2234
- declare const verifyEmail: ReturnType<typeof createRESTModule<typeof publicVerifyEmail>>;
2235
- declare const resolveActualFromAddress: ReturnType<typeof createRESTModule<typeof publicResolveActualFromAddress>>;
2236
- declare const onSenderDetailsUpdated: ReturnType<typeof createEventModule<typeof publicOnSenderDetailsUpdated>>;
2495
+ type _publicGetSenderDetailsType = typeof getSenderDetails$1;
2496
+ declare const getSenderDetails: ReturnType<typeof createRESTModule<_publicGetSenderDetailsType>>;
2497
+ type _publicUpdateSenderDetailsType = typeof updateSenderDetails$1;
2498
+ declare const updateSenderDetails: ReturnType<typeof createRESTModule<_publicUpdateSenderDetailsType>>;
2499
+ type _publicVerifyEmailType = typeof verifyEmail$1;
2500
+ declare const verifyEmail: ReturnType<typeof createRESTModule<_publicVerifyEmailType>>;
2501
+ type _publicResolveActualFromAddressType = typeof resolveActualFromAddress$1;
2502
+ declare const resolveActualFromAddress: ReturnType<typeof createRESTModule<_publicResolveActualFromAddressType>>;
2503
+
2504
+ type _publicOnSenderDetailsUpdatedType = typeof onSenderDetailsUpdated$1;
2505
+ /**
2506
+ * An event that triggers when sender details are updated without the need for explicit verification.
2507
+ */
2508
+ declare const onSenderDetailsUpdated: ReturnType<typeof createEventModule<_publicOnSenderDetailsUpdatedType>>;
2237
2509
 
2238
2510
  type index_d_ActionEvent = ActionEvent;
2239
2511
  type index_d_BaseEventMetadata = BaseEventMetadata;
@@ -2262,13 +2534,18 @@ type index_d_VerifySenderEmailRequest = VerifySenderEmailRequest;
2262
2534
  type index_d_VerifySenderEmailResponse = VerifySenderEmailResponse;
2263
2535
  type index_d_WebhookIdentityType = WebhookIdentityType;
2264
2536
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
2537
+ type index_d__publicGetSenderDetailsType = _publicGetSenderDetailsType;
2538
+ type index_d__publicOnSenderDetailsUpdatedType = _publicOnSenderDetailsUpdatedType;
2539
+ type index_d__publicResolveActualFromAddressType = _publicResolveActualFromAddressType;
2540
+ type index_d__publicUpdateSenderDetailsType = _publicUpdateSenderDetailsType;
2541
+ type index_d__publicVerifyEmailType = _publicVerifyEmailType;
2265
2542
  declare const index_d_getSenderDetails: typeof getSenderDetails;
2266
2543
  declare const index_d_onSenderDetailsUpdated: typeof onSenderDetailsUpdated;
2267
2544
  declare const index_d_resolveActualFromAddress: typeof resolveActualFromAddress;
2268
2545
  declare const index_d_updateSenderDetails: typeof updateSenderDetails;
2269
2546
  declare const index_d_verifyEmail: typeof verifyEmail;
2270
2547
  declare namespace index_d {
2271
- export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GetSenderDetailsRequest as GetSenderDetailsRequest, type index_d_GetSenderDetailsResponse as GetSenderDetailsResponse, type index_d_GetSenderDetailsResponseNonNullableFields as GetSenderDetailsResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_ResolveActualFromAddressRequest as ResolveActualFromAddressRequest, type index_d_ResolveActualFromAddressResponse as ResolveActualFromAddressResponse, type index_d_ResolveActualFromAddressResponseNonNullableFields as ResolveActualFromAddressResponseNonNullableFields, type index_d_RestoreInfo as RestoreInfo, type index_d_SenderDetails as SenderDetails, type index_d_SenderDetailsUpdatedEnvelope as SenderDetailsUpdatedEnvelope, type index_d_UpdateSenderDetailsRequest as UpdateSenderDetailsRequest, type index_d_UpdateSenderDetailsResponse as UpdateSenderDetailsResponse, type index_d_UpdateSenderDetailsResponseNonNullableFields as UpdateSenderDetailsResponseNonNullableFields, type index_d_VerifySenderEmailRequest as VerifySenderEmailRequest, type index_d_VerifySenderEmailResponse as VerifySenderEmailResponse, index_d_WebhookIdentityType as WebhookIdentityType, index_d_getSenderDetails as getSenderDetails, index_d_onSenderDetailsUpdated as onSenderDetailsUpdated, index_d_resolveActualFromAddress as resolveActualFromAddress, index_d_updateSenderDetails as updateSenderDetails, index_d_verifyEmail as verifyEmail };
2548
+ export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GetSenderDetailsRequest as GetSenderDetailsRequest, type index_d_GetSenderDetailsResponse as GetSenderDetailsResponse, type index_d_GetSenderDetailsResponseNonNullableFields as GetSenderDetailsResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_ResolveActualFromAddressRequest as ResolveActualFromAddressRequest, type index_d_ResolveActualFromAddressResponse as ResolveActualFromAddressResponse, type index_d_ResolveActualFromAddressResponseNonNullableFields as ResolveActualFromAddressResponseNonNullableFields, type index_d_RestoreInfo as RestoreInfo, type index_d_SenderDetails as SenderDetails, type index_d_SenderDetailsUpdatedEnvelope as SenderDetailsUpdatedEnvelope, type index_d_UpdateSenderDetailsRequest as UpdateSenderDetailsRequest, type index_d_UpdateSenderDetailsResponse as UpdateSenderDetailsResponse, type index_d_UpdateSenderDetailsResponseNonNullableFields as UpdateSenderDetailsResponseNonNullableFields, type index_d_VerifySenderEmailRequest as VerifySenderEmailRequest, type index_d_VerifySenderEmailResponse as VerifySenderEmailResponse, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicGetSenderDetailsType as _publicGetSenderDetailsType, type index_d__publicOnSenderDetailsUpdatedType as _publicOnSenderDetailsUpdatedType, type index_d__publicResolveActualFromAddressType as _publicResolveActualFromAddressType, type index_d__publicUpdateSenderDetailsType as _publicUpdateSenderDetailsType, type index_d__publicVerifyEmailType as _publicVerifyEmailType, index_d_getSenderDetails as getSenderDetails, index_d_onSenderDetailsUpdated as onSenderDetailsUpdated, onSenderDetailsUpdated$1 as publicOnSenderDetailsUpdated, index_d_resolveActualFromAddress as resolveActualFromAddress, index_d_updateSenderDetails as updateSenderDetails, index_d_verifyEmail as verifyEmail };
2272
2549
  }
2273
2550
 
2274
2551
  export { index_d$2 as accountDetails, index_d$1 as campaigns, index_d as senderDetails };
@@ -540,7 +540,7 @@ interface PauseSchedulingResponse$1 {
540
540
  interface RescheduleRequest$1 {
541
541
  /** ID of the campaign to reschedule. */
542
542
  campaignId: string;
543
- /** New time that this email marketing campaign should be sent at. */
543
+ /** The new time for sending out the campaign. */
544
544
  sendAt: Date;
545
545
  }
546
546
  interface RescheduleResponse$1 {
@@ -1038,7 +1038,7 @@ interface PauseSchedulingResponse {
1038
1038
  interface RescheduleRequest {
1039
1039
  /** ID of the campaign to reschedule. */
1040
1040
  campaignId: string;
1041
- /** New time that this email marketing campaign should be sent at. */
1041
+ /** The new time for sending out the campaign. */
1042
1042
  sendAt: Date;
1043
1043
  }
1044
1044
  interface RescheduleResponse {