@pushwoosh/rpc-v2-http-api-data 0.2.64 → 0.2.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account_groups.d.ts +15 -1
- package/account_invites.d.ts +9 -2
- package/account_overview.d.ts +1 -0
- package/account_users.d.ts +5 -2
- package/accounts.d.ts +30 -0
- package/accounts_get_auth_info.d.ts +1 -0
- package/api_tokens.d.ts +34 -0
- package/applications.d.ts +53 -0
- package/applications_alerts.d.ts +2 -0
- package/applications_configurations.d.ts +6 -0
- package/applications_email_froms.d.ts +10 -0
- package/applications_groups.d.ts +13 -2
- package/applications_info.d.ts +2 -0
- package/applications_sounds.d.ts +3 -0
- package/applications_statistics.d.ts +10 -9
- package/campaigns.d.ts +16 -0
- package/categories.d.ts +3 -1
- package/cloud_pages.d.ts +24 -2
- package/customer_journey.d.ts +6 -0
- package/deeplinks.d.ts +17 -2
- package/deliverability_checker.d.ts +7 -0
- package/devices.d.ts +1 -1
- package/email_categories.d.ts +29 -0
- package/emails_configurations.d.ts +20 -1
- package/events.d.ts +37 -2
- package/export_messages.d.ts +4 -0
- package/filters.d.ts +32 -0
- package/frequency_capping.d.ts +18 -0
- package/geozones.d.ts +5 -0
- package/geozones_clusters.d.ts +14 -1
- package/inapp_messages.d.ts +27 -4
- package/inbound_webhooks.d.ts +9 -0
- package/integrations.d.ts +64 -10
- package/internal_alerts.d.ts +14 -0
- package/ios_categories.d.ts +15 -1
- package/kakao_presets.d.ts +18 -0
- package/line_presets.d.ts +19 -4
- package/media_files.d.ts +13 -13
- package/messages.d.ts +35 -0
- package/package.json +1 -1
- package/presets.d.ts +24 -7
- package/pushwoosh_rpc_external_segments_v3.d.ts +7 -16
- package/pushwoosh_rpc_frequency_capping_disabled_users_v3.d.ts +5 -0
- package/pushwoosh_rpc_popup_forms_contents_v3.d.ts +8 -8
- package/pushwoosh_rpc_popup_forms_v3.d.ts +7 -7
- package/pushwoosh_rpc_segments_v3.d.ts +9 -5
- package/referral_partners.d.ts +13 -0
- package/restrictions.d.ts +1 -0
- package/rich_medias.d.ts +66 -15
- package/segment_statistics.d.ts +8 -0
- package/send_rate.d.ts +8 -0
- package/sms_presets.d.ts +12 -2
- package/statistics_dashboards.d.ts +15 -0
- package/statistics_dashboards_widgets.d.ts +10 -8
- package/subscription_prompt.d.ts +11 -0
- package/tags.d.ts +15 -1
- package/test_devices.d.ts +4 -4
- package/users.d.ts +10 -0
- package/viber_presets.d.ts +2 -0
- package/vouchers.d.ts +27 -0
- package/whatsapp.d.ts +9 -5
- package/whatsapp_presets.d.ts +6 -1
package/integrations.d.ts
CHANGED
|
@@ -29,49 +29,92 @@ export type IntegrationsService_TestGoogleBQConnection = RpcMethod<TestGoogleBQC
|
|
|
29
29
|
export type IntegrationsService_ListGoogleBQDatasets = RpcMethod<ListGoogleBQDatasetsRequest, ListGoogleBQDatasetsResponse>;
|
|
30
30
|
export type IntegrationsService_ListGoogleBQTables = RpcMethod<ListGoogleBQTablesRequest, ListGoogleBQTablesResponse>;
|
|
31
31
|
export interface IntegrationsService {
|
|
32
|
-
/**
|
|
32
|
+
/** Lists which output integrations (webhook, Segment, Piano, HubSpot, Shopify, Stripe, Meta, Google BigQuery, inbound webhook) are configured for an application code XXXXX-XXXXX. Use for an at-a-glance configured/not-configured overview before fetching a specific integration's configuration. */
|
|
33
33
|
ListIntegrationsConfiguration: IntegrationsService_ListIntegrationsConfiguration;
|
|
34
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* webhook
|
|
36
|
+
* Returns the outbound webhook integration configuration for an application code XXXXX-XXXXX: target URL, auth header, subscribed and available events, transport and filters. Use to inspect the outbound webhook that forwards PW events to a third-party endpoint (not the inbound webhook).
|
|
37
|
+
*/
|
|
35
38
|
GetWebhookConfiguration: IntegrationsService_GetWebhookConfiguration;
|
|
39
|
+
/** Creates or overwrites the outbound webhook integration for an application code XXXXX-XXXXX (URL, auth header, event subscriptions, transport, filters). Use to point PW event delivery at a third-party endpoint; re-sending replaces the stored configuration. */
|
|
36
40
|
CreateWebhookConfiguration: IntegrationsService_CreateWebhookConfiguration;
|
|
37
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* segment
|
|
43
|
+
* Returns the Twilio Segment integration configuration for an application code XXXXX-XXXXX: write key plus subscribed and available events. Use to inspect which PW events are forwarded to Segment.
|
|
44
|
+
*/
|
|
38
45
|
GetSegmentConfiguration: IntegrationsService_GetSegmentConfiguration;
|
|
46
|
+
/** Creates or overwrites the Twilio Segment integration for an application code XXXXX-XXXXX (write key and subscribed events). Use to set up or update event forwarding to Segment; re-sending replaces the stored configuration. */
|
|
39
47
|
CreateSegmentConfiguration: IntegrationsService_CreateSegmentConfiguration;
|
|
40
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* piano
|
|
50
|
+
* Returns the Piano integration configuration for an application code XXXXX-XXXXX: collection domain, site id, API key, subscribed/available events and unique-event grouping settings. Use to inspect the Piano analytics connection.
|
|
51
|
+
*/
|
|
41
52
|
GetPianoConfiguration: IntegrationsService_GetPianoConfiguration;
|
|
53
|
+
/** Creates or overwrites the Piano integration for an application code XXXXX-XXXXX (collection domain, site id, API key, events and unique-event grouping). Use to set up or update the Piano connection; re-sending replaces the stored configuration. */
|
|
42
54
|
CreatePianoConfiguration: IntegrationsService_CreatePianoConfiguration;
|
|
43
|
-
/**
|
|
55
|
+
/** Imports a Piano audience segment into Pushwoosh for an application code XXXXX-XXXXX by its Piano segment key. Reaches Piano to pull the segment; use only for Piano-connected applications. */
|
|
44
56
|
ImportSegmentPiano: IntegrationsService_ImportSegmentPiano;
|
|
45
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* hubspot
|
|
59
|
+
* Returns the HubSpot integration OAuth configuration for an application code XXXXX-XXXXX: access token, refresh token, connected user id and last-updated time. Use to inspect the HubSpot connection status.
|
|
60
|
+
*/
|
|
46
61
|
GetHubspotConfiguration: IntegrationsService_GetHubspotConfiguration;
|
|
47
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* shopify
|
|
64
|
+
* Returns the Shopify integration configuration for an application code XXXXX-XXXXX: shop domain, device API key and whether it is the main application. Use to inspect the Shopify connection.
|
|
65
|
+
*/
|
|
48
66
|
GetShopifyConfiguration: IntegrationsService_GetShopifyConfiguration;
|
|
49
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* stripe
|
|
69
|
+
* Builds the Stripe OAuth authorization URL to start connecting a Stripe account, given a redirect URI. Use to begin the Stripe connect flow; the user visits the URL and returns via connect_stripe_integration.
|
|
70
|
+
*/
|
|
50
71
|
GetStripeAuthURL: IntegrationsService_GetStripeAuthURL;
|
|
72
|
+
/** Completes the Stripe OAuth flow by exchanging the returned authorization code for tokens and storing the Stripe connection for an application code XXXXX-XXXXX. Call after the user finishes the get_stripe_auth_url redirect; the code is single-use. */
|
|
51
73
|
HandleStripeAuthCallback: IntegrationsService_HandleStripeAuthCallback;
|
|
74
|
+
/** Returns the connected Stripe account for the current account: business name and email. Use to check whether Stripe is connected and to which account. */
|
|
52
75
|
GetStripeConfiguration: IntegrationsService_GetStripeConfiguration;
|
|
76
|
+
/** Removes the Stripe integration connection for the current account. Use to disconnect Stripe; the stored tokens are revoked and cannot be restored without reconnecting. */
|
|
53
77
|
DeleteStripeConfiguration: IntegrationsService_DeleteStripeConfiguration;
|
|
54
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* meta
|
|
80
|
+
* Builds the Meta (Facebook) OAuth authorization URL to start connecting a Meta account, given a redirect URI. Use to begin the Meta connect flow; the user returns via connect_meta_integration.
|
|
81
|
+
*/
|
|
55
82
|
GetMetaAuthURL: IntegrationsService_GetMetaAuthURL;
|
|
83
|
+
/** Completes the Meta OAuth flow by exchanging the authorization code for tokens and storing the Meta connection for an application code XXXXX-XXXXX. Call after the get_meta_auth_url redirect; the code is single-use. */
|
|
56
84
|
HandleMetaAuthCallback: IntegrationsService_HandleMetaAuthCallback;
|
|
85
|
+
/** Returns the Meta integration configuration for the current account: connected ad accounts with status, token validity and the audience tag mapping. Use to inspect the current Meta connection state. */
|
|
57
86
|
GetMetaConfiguration: IntegrationsService_GetMetaConfiguration;
|
|
87
|
+
/** Removes the entire Meta integration connection for the current account, including all connected ad accounts and tag mapping. Use to fully disconnect Meta; not recoverable without reconnecting. */
|
|
58
88
|
DeleteMetaConfiguration: IntegrationsService_DeleteMetaConfiguration;
|
|
89
|
+
/** Disconnects the given Meta ad accounts by id while keeping the overall Meta connection. Use to remove specific ad accounts; to drop the whole connection use delete_meta_integration. */
|
|
59
90
|
DisconnectMetaAdAccounts: IntegrationsService_DisconnectMetaAdAccounts;
|
|
91
|
+
/** Refreshes the Meta connection for a single ad account id, re-validating its access token with Meta. Use when an ad account shows an invalid or expired token. */
|
|
60
92
|
RefreshMetaConnection: IntegrationsService_RefreshMetaConnection;
|
|
93
|
+
/** Lists the Meta ad accounts available to the connected Meta account, each with connection status and business info. Use to discover ad accounts before connecting them with connect_meta_ad_accounts. */
|
|
61
94
|
ListMetaAdAccounts: IntegrationsService_ListMetaAdAccounts;
|
|
95
|
+
/** Connects the given Meta ad accounts by id, returning the connected ids and any that require accepting Meta terms of service first. Use after list_meta_ad_accounts to activate selected ad accounts. */
|
|
62
96
|
ConnectMetaAdAccounts: IntegrationsService_ConnectMetaAdAccounts;
|
|
97
|
+
/** Overwrites the mapping between Pushwoosh tags and Meta custom-audience fields for the current account. Use to define which PW tags sync to Meta audiences; replaces the entire mapping. */
|
|
63
98
|
SetMetaTagMapping: IntegrationsService_SetMetaTagMapping;
|
|
64
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* google_bq
|
|
101
|
+
* Returns the Google BigQuery integration configuration for an application code XXXXX-XXXXX: GCP project, dataset, region, service-account email and export settings (enabled, event types, table). Use to inspect the BigQuery export setup.
|
|
102
|
+
*/
|
|
65
103
|
GetGoogleBQConfiguration: IntegrationsService_GetGoogleBQConfiguration;
|
|
104
|
+
/** Creates or overwrites the Google BigQuery integration for an application code XXXXX-XXXXX (connection credentials and event-export settings). Use to set up or update BigQuery export; re-sending replaces the stored configuration. */
|
|
66
105
|
CreateGoogleBQConfiguration: IntegrationsService_CreateGoogleBQConfiguration;
|
|
106
|
+
/** Removes the Google BigQuery integration for an application code XXXXX-XXXXX. Use to disconnect BigQuery export; the stored service-account credentials are deleted. */
|
|
67
107
|
DeleteGoogleBQConfiguration: IntegrationsService_DeleteGoogleBQConfiguration;
|
|
108
|
+
/** Validates Google BigQuery credentials for an application code XXXXX-XXXXX by connecting to BigQuery, returning ok plus an error code/message. Pass inline credentials to test before saving, or leave them empty to validate the stored configuration. */
|
|
68
109
|
TestGoogleBQConnection: IntegrationsService_TestGoogleBQConnection;
|
|
69
110
|
/**
|
|
70
111
|
* POST + body: '*' is deliberate — the request carries the Service Account
|
|
71
112
|
* JSON when listing pre-save, and we don't want a PEM key on the URL (access
|
|
72
113
|
* logs, browser history, proxy logs, URL length limits).
|
|
114
|
+
* Lists Google BigQuery datasets for an application code XXXXX-XXXXX, optionally using inline credentials (both project id and service-account JSON required) instead of the stored ones. Use to populate a destination-dataset picker before saving the integration.
|
|
73
115
|
*/
|
|
74
116
|
ListGoogleBQDatasets: IntegrationsService_ListGoogleBQDatasets;
|
|
117
|
+
/** Lists tables and views in a Google BigQuery dataset for an application code XXXXX-XXXXX. Use after list_google_bq_datasets to pick a destination table for export. */
|
|
75
118
|
ListGoogleBQTables: IntegrationsService_ListGoogleBQTables;
|
|
76
119
|
}
|
|
77
120
|
/** Integration contains all available integration for clients (to update props) */
|
|
@@ -213,13 +256,16 @@ export type GetShopifyConfigurationResponse = {
|
|
|
213
256
|
};
|
|
214
257
|
/** Stripe messages */
|
|
215
258
|
export type GetStripeAuthURLRequest = {
|
|
259
|
+
/** URI Stripe redirects back to after authorization */
|
|
216
260
|
redirectUri?: string;
|
|
217
261
|
};
|
|
218
262
|
export type GetStripeAuthURLResponse = {
|
|
219
263
|
authUrl: string;
|
|
220
264
|
};
|
|
221
265
|
export type HandleStripeAuthCallbackRequest = {
|
|
266
|
+
/** single-use OAuth authorization code returned by Stripe */
|
|
222
267
|
code?: string;
|
|
268
|
+
/** application code (format XXXXX-XXXXX) */
|
|
223
269
|
applicationCode?: string;
|
|
224
270
|
};
|
|
225
271
|
export type HandleStripeAuthCallbackResponse = {};
|
|
@@ -232,14 +278,18 @@ export type DeleteStripeConfigurationRequest = {};
|
|
|
232
278
|
export type DeleteStripeConfigurationResponse = {};
|
|
233
279
|
/** Meta messages */
|
|
234
280
|
export type GetMetaAuthURLRequest = {
|
|
281
|
+
/** URI Meta redirects back to after authorization */
|
|
235
282
|
redirectUri?: string;
|
|
236
283
|
};
|
|
237
284
|
export type GetMetaAuthURLResponse = {
|
|
238
285
|
authUrl: string;
|
|
239
286
|
};
|
|
240
287
|
export type HandleMetaAuthCallbackRequest = {
|
|
288
|
+
/** single-use OAuth authorization code returned by Meta */
|
|
241
289
|
code?: string;
|
|
290
|
+
/** redirect URI used to obtain the code (must match) */
|
|
242
291
|
redirectUri?: string;
|
|
292
|
+
/** application code (format XXXXX-XXXXX) */
|
|
243
293
|
applicationCode?: string;
|
|
244
294
|
};
|
|
245
295
|
export type HandleMetaAuthCallbackResponse = {};
|
|
@@ -263,10 +313,12 @@ export type GetMetaConfigurationResponse = {
|
|
|
263
313
|
export type DeleteMetaConfigurationRequest = {};
|
|
264
314
|
export type DeleteMetaConfigurationResponse = {};
|
|
265
315
|
export type DisconnectMetaAdAccountsRequest = {
|
|
316
|
+
/** Meta ad account ids to disconnect */
|
|
266
317
|
adAccountIds?: string[];
|
|
267
318
|
};
|
|
268
319
|
export type DisconnectMetaAdAccountsResponse = {};
|
|
269
320
|
export type RefreshMetaConnectionRequest = {
|
|
321
|
+
/** Meta ad account id whose connection to refresh */
|
|
270
322
|
adAccountId?: string;
|
|
271
323
|
};
|
|
272
324
|
export type RefreshMetaConnectionResponse = {};
|
|
@@ -281,6 +333,7 @@ export type ListMetaAdAccountsResponse = {
|
|
|
281
333
|
adAccounts: ListMetaAdAccountsResponse_MetaAdAccount[];
|
|
282
334
|
};
|
|
283
335
|
export type ConnectMetaAdAccountsRequest = {
|
|
336
|
+
/** Meta ad account ids to connect */
|
|
284
337
|
adAccountIds?: string[];
|
|
285
338
|
};
|
|
286
339
|
export type ConnectMetaAdAccountsResponse_TosRequired = {
|
|
@@ -292,6 +345,7 @@ export type ConnectMetaAdAccountsResponse = {
|
|
|
292
345
|
tosRequired: ConnectMetaAdAccountsResponse_TosRequired[];
|
|
293
346
|
};
|
|
294
347
|
export type SetMetaTagMappingRequest = {
|
|
348
|
+
/** Pushwoosh tag name -> Meta custom-audience field */
|
|
295
349
|
tagMapping?: Record<string, string>;
|
|
296
350
|
};
|
|
297
351
|
export type GetGoogleBQConfigurationRequest = {
|
package/internal_alerts.d.ts
CHANGED
|
@@ -8,17 +8,27 @@ export type InternalAlertsService_List = RpcMethod<ListRequest, ListResponse>;
|
|
|
8
8
|
export type InternalAlertsService_UpdateStatus = RpcMethod<UpdateStatusRequest, UpdateStatusResponse>;
|
|
9
9
|
export type InternalAlertsService_GetHighestSeverity = RpcMethod<GetHighestSeverityRequest, GetHighestSeverityResponse>;
|
|
10
10
|
export interface InternalAlertsService {
|
|
11
|
+
/** Lists in-product alerts for the authenticated account, filtered by type, status and severity, with paging and ordering. Use to show the account's notification/alert feed before marking any as read via update_alert_statuses. */
|
|
11
12
|
List: InternalAlertsService_List;
|
|
13
|
+
/** Sets the status (e.g. read/unread) of one or more alerts identified by uuid for the authenticated account. Use to mark alerts read or dismissed; all listed uuids must belong to the account or the call fails. */
|
|
12
14
|
UpdateStatus: InternalAlertsService_UpdateStatus;
|
|
15
|
+
/** Returns the highest alert severity present for the account, optionally restricted to alerts of a given status. Use to drive a single badge/indicator without fetching the full list via list_alerts. */
|
|
13
16
|
GetHighestSeverity: InternalAlertsService_GetHighestSeverity;
|
|
14
17
|
}
|
|
15
18
|
export type ListRequest = {
|
|
19
|
+
/** Optional filter: return only alerts of this type. */
|
|
16
20
|
type?: pushwoosh_accounts_alerts_v1_AlertType;
|
|
21
|
+
/** Optional filter: return only alerts in this status (e.g. read/unread). */
|
|
17
22
|
status?: pushwoosh_accounts_alerts_v1_AlertStatus;
|
|
23
|
+
/** Optional filter: return only alerts of this severity. */
|
|
18
24
|
severity?: pushwoosh_accounts_alerts_v1_AlertSeverity;
|
|
25
|
+
/** Zero-based page index. */
|
|
19
26
|
page?: number;
|
|
27
|
+
/** Page size. */
|
|
20
28
|
perPage?: number;
|
|
29
|
+
/** Field to order the alerts by. */
|
|
21
30
|
orderBy?: pushwoosh_accounts_alerts_v1_OrderBy;
|
|
31
|
+
/** Ascending or descending order. */
|
|
22
32
|
orderDirection?: pushwoosh_accounts_alerts_v1_OrderDirection;
|
|
23
33
|
};
|
|
24
34
|
export type Alert = {
|
|
@@ -42,14 +52,18 @@ export type ListResponse = {
|
|
|
42
52
|
total: number;
|
|
43
53
|
};
|
|
44
54
|
export type UpdateStatusRequest_AlertStatusUpdate = {
|
|
55
|
+
/** UUID of the alert to update. */
|
|
45
56
|
uuid: string;
|
|
57
|
+
/** New status to set on the alert (e.g. read/unread). */
|
|
46
58
|
status: pushwoosh_accounts_alerts_v1_AlertStatus;
|
|
47
59
|
};
|
|
48
60
|
export type UpdateStatusRequest = {
|
|
61
|
+
/** Alerts to update; every uuid must belong to the authenticated account. */
|
|
49
62
|
alerts?: UpdateStatusRequest_AlertStatusUpdate[];
|
|
50
63
|
};
|
|
51
64
|
export type UpdateStatusResponse = {};
|
|
52
65
|
export type GetHighestSeverityRequest = {
|
|
66
|
+
/** Optional filter: consider only alerts in this status (e.g. read/unread). */
|
|
53
67
|
status?: pushwoosh_accounts_alerts_v1_AlertStatus;
|
|
54
68
|
};
|
|
55
69
|
export type GetHighestSeverityResponse = {
|
package/ios_categories.d.ts
CHANGED
|
@@ -5,21 +5,27 @@ export type IOSCategoriesService_Create = RpcMethod<CreateIOSCategoryRequest, Cr
|
|
|
5
5
|
export type IOSCategoriesService_Update = RpcMethod<UpdateIOSCategoryRequest, UpdateIOSCategoryResponse>;
|
|
6
6
|
export type IOSCategoriesService_Delete = RpcMethod<DeleteIOSCategoryRequest, DeleteIOSCategoryResponse>;
|
|
7
7
|
export interface IOSCategoriesService {
|
|
8
|
+
/** Lists an application's iOS notification action categories (each a named set of action buttons), newest first, with paging and an optional name/identifier search. Use to browse categories or find an identifier before get/update/delete. */
|
|
8
9
|
List: IOSCategoriesService_List;
|
|
10
|
+
/** Returns one iOS notification category by its identifier within an application, including its action buttons. Use after list_ios_categories to inspect a single category. */
|
|
9
11
|
Get: IOSCategoriesService_Get;
|
|
12
|
+
/** Creates a new iOS notification action category with its buttons in an application. Fails if the identifier already exists for the application; use update_ios_category to change an existing one. */
|
|
10
13
|
Create: IOSCategoriesService_Create;
|
|
14
|
+
/** Overwrites an existing iOS notification category's name and action buttons, addressed by application and identifier. Use to edit a category; the identifier itself is not changed. */
|
|
11
15
|
Update: IOSCategoriesService_Update;
|
|
16
|
+
/** Deletes an iOS notification category by application and identifier. Removing a category cannot be undone; a missing identifier is treated as a no-op. */
|
|
12
17
|
Delete: IOSCategoriesService_Delete;
|
|
13
18
|
}
|
|
14
19
|
export type ListIOSCategoriesRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
15
20
|
export type ListIOSCategoriesRequest_OrderDirection = 'ASC' | 'DESC';
|
|
16
21
|
export type ListIOSCategoriesRequest = {
|
|
22
|
+
/** Application code (XXXXX-XXXXX) whose iOS categories to list. */
|
|
17
23
|
application?: string;
|
|
18
24
|
orderBy?: ListIOSCategoriesRequest_OrderBy;
|
|
19
25
|
orderDirection?: ListIOSCategoriesRequest_OrderDirection;
|
|
20
26
|
page?: number;
|
|
21
27
|
perPage?: number;
|
|
22
|
-
/**
|
|
28
|
+
/** Case-insensitive substring matched against both category name and identifier. */
|
|
23
29
|
searchByName?: string;
|
|
24
30
|
};
|
|
25
31
|
export type IOSCategory = {
|
|
@@ -41,15 +47,19 @@ export type ListIOSCategoriesResponse = {
|
|
|
41
47
|
total: number;
|
|
42
48
|
};
|
|
43
49
|
export type GetIOSCategoryRequest = {
|
|
50
|
+
/** Application code (XXXXX-XXXXX) that owns the category. */
|
|
44
51
|
application?: string;
|
|
52
|
+
/** Category identifier, unique within the application. */
|
|
45
53
|
identifier?: string;
|
|
46
54
|
};
|
|
47
55
|
export type GetIOSCategoryResponse = {
|
|
48
56
|
preset: IOSCategory;
|
|
49
57
|
};
|
|
50
58
|
export type CreateIOSCategoryRequest = {
|
|
59
|
+
/** Application code (XXXXX-XXXXX) to create the category in. */
|
|
51
60
|
application?: string;
|
|
52
61
|
name?: string;
|
|
62
|
+
/** Category identifier, must be unique within the application; if empty, the created record ID is used. */
|
|
53
63
|
identifier?: string;
|
|
54
64
|
buttons?: IOSCategoryButton[];
|
|
55
65
|
};
|
|
@@ -57,7 +67,9 @@ export type CreateIOSCategoryResponse = {
|
|
|
57
67
|
preset: IOSCategory;
|
|
58
68
|
};
|
|
59
69
|
export type UpdateIOSCategoryRequest = {
|
|
70
|
+
/** Application code (XXXXX-XXXXX) that owns the category. */
|
|
60
71
|
application?: string;
|
|
72
|
+
/** Category identifier, unique within the application. */
|
|
61
73
|
identifier?: string;
|
|
62
74
|
name?: string;
|
|
63
75
|
buttons?: IOSCategoryButton[];
|
|
@@ -66,7 +78,9 @@ export type UpdateIOSCategoryResponse = {
|
|
|
66
78
|
preset: IOSCategory;
|
|
67
79
|
};
|
|
68
80
|
export type DeleteIOSCategoryRequest = {
|
|
81
|
+
/** Application code (XXXXX-XXXXX) that owns the category. */
|
|
69
82
|
application?: string;
|
|
83
|
+
/** Category identifier, unique within the application. */
|
|
70
84
|
identifier?: string;
|
|
71
85
|
};
|
|
72
86
|
export type DeleteIOSCategoryResponse = {};
|
package/kakao_presets.d.ts
CHANGED
|
@@ -7,17 +7,25 @@ export type KakaoPresetsService_Delete = RpcMethod<DeleteKakaoPresetRequest, Del
|
|
|
7
7
|
export type KakaoPresetsService_Clone = RpcMethod<CloneKakaoPresetRequest, CloneKakaoPresetResponse>;
|
|
8
8
|
export type KakaoPresetsService_SubmitForApproval = RpcMethod<SubmitForApprovalKakaoPresetRequest, SubmitForApprovalKakaoPresetResponse>;
|
|
9
9
|
export interface KakaoPresetsService {
|
|
10
|
+
/** Lists Kakao (KakaoTalk) message-template presets for an application, with paging and optional name/category filters, refreshing each preset's approval status live from the SureM/Kakao server. Use to browse Kakao presets or find a preset code before fetching or editing one. */
|
|
10
11
|
List: KakaoPresetsService_List;
|
|
12
|
+
/** Returns one Kakao preset by its preset code, refreshing its approval status and template from the SureM/Kakao server. Use after list_kakao_presets to inspect a single preset. */
|
|
11
13
|
Get: KakaoPresetsService_Get;
|
|
14
|
+
/** Creates a Kakao message-template preset in an application and registers the template on the SureM/Kakao server. Use to author a new KakaoTalk template; the template field is a KakaoTemplate JSON document. */
|
|
12
15
|
Create: KakaoPresetsService_Create;
|
|
16
|
+
/** Overwrites a Kakao preset's name, categories and template and pushes the new template to the SureM/Kakao server. Allowed only while the preset is not yet submitted or approved; use to edit a draft before submitting for approval. */
|
|
13
17
|
Update: KakaoPresetsService_Update;
|
|
18
|
+
/** Deletes a Kakao preset and removes its template from the SureM/Kakao server. Blocked for approved presets and presets used in a journey; use to remove a draft or rejected preset. */
|
|
14
19
|
Delete: KakaoPresetsService_Delete;
|
|
20
|
+
/** Clones an existing Kakao preset into a target application, creating a new preset with a new code and registering its template on the SureM/Kakao server. Use to duplicate a KakaoTemplate instead of re-authoring it. */
|
|
15
21
|
Clone: KakaoPresetsService_Clone;
|
|
22
|
+
/** Submits a Kakao preset's template to the SureM/Kakao server for KakaoTalk approval review. Use once the template is final; fails if the preset is already submitted or approved. */
|
|
16
23
|
SubmitForApproval: KakaoPresetsService_SubmitForApproval;
|
|
17
24
|
}
|
|
18
25
|
export type ListKakaoPresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
19
26
|
export type ListKakaoPresetsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
20
27
|
export type ListKakaoPresetsRequest = {
|
|
28
|
+
/** application code (XXXXX-XXXXX) whose Kakao presets to list */
|
|
21
29
|
application?: string;
|
|
22
30
|
orderBy?: ListKakaoPresetsRequest_OrderBy;
|
|
23
31
|
orderDirection?: ListKakaoPresetsRequest_OrderDirection;
|
|
@@ -45,42 +53,52 @@ export type ListKakaoPresetsResponse = {
|
|
|
45
53
|
total: number;
|
|
46
54
|
};
|
|
47
55
|
export type GetKakaoPresetRequest = {
|
|
56
|
+
/** Kakao preset code */
|
|
48
57
|
code?: string;
|
|
49
58
|
};
|
|
50
59
|
export type GetKakaoPresetResponse = {
|
|
51
60
|
preset: KakaoPreset;
|
|
52
61
|
};
|
|
53
62
|
export type CreateKakaoPresetRequest = {
|
|
63
|
+
/** application code (XXXXX-XXXXX) to create the preset in */
|
|
54
64
|
application?: string;
|
|
55
65
|
name?: string;
|
|
56
66
|
categories?: string[];
|
|
67
|
+
/** KakaoTemplate as a JSON document */
|
|
57
68
|
template?: string;
|
|
58
69
|
};
|
|
59
70
|
export type CreateKakaoPresetResponse = {
|
|
60
71
|
preset: KakaoPreset;
|
|
61
72
|
};
|
|
62
73
|
export type UpdateKakaoPresetRequest = {
|
|
74
|
+
/** Kakao preset code to update */
|
|
63
75
|
code?: string;
|
|
64
76
|
name?: string;
|
|
65
77
|
categories?: string[];
|
|
78
|
+
/** KakaoTemplate as a JSON document */
|
|
66
79
|
template?: string;
|
|
67
80
|
};
|
|
68
81
|
export type UpdateKakaoPresetResponse = {
|
|
69
82
|
preset: KakaoPreset;
|
|
70
83
|
};
|
|
71
84
|
export type DeleteKakaoPresetRequest = {
|
|
85
|
+
/** Kakao preset code to delete */
|
|
72
86
|
code?: string;
|
|
73
87
|
};
|
|
74
88
|
export type DeleteKakaoPresetResponse = {};
|
|
75
89
|
export type CloneKakaoPresetRequest = {
|
|
90
|
+
/** source Kakao preset code to clone from */
|
|
76
91
|
kakaoPresetCode?: string;
|
|
92
|
+
/** application code (XXXXX-XXXXX) to place the clone in */
|
|
77
93
|
applicationCode?: string;
|
|
78
94
|
};
|
|
79
95
|
export type CloneKakaoPresetResponse = {
|
|
80
96
|
kakaoPresetCode: string;
|
|
81
97
|
};
|
|
82
98
|
export type SubmitForApprovalKakaoPresetRequest = {
|
|
99
|
+
/** Kakao preset code to submit for approval */
|
|
83
100
|
code?: string;
|
|
101
|
+
/** application code (XXXXX-XXXXX) the preset belongs to */
|
|
84
102
|
application?: string;
|
|
85
103
|
};
|
|
86
104
|
export type SubmitForApprovalKakaoPresetResponse = {};
|
package/line_presets.d.ts
CHANGED
|
@@ -6,24 +6,31 @@ export type linePresetsService_Update = RpcMethod<UpdateLinePresetRequest, Updat
|
|
|
6
6
|
export type linePresetsService_Delete = RpcMethod<DeleteLinePresetRequest, DeleteLinePresetResponse>;
|
|
7
7
|
export type linePresetsService_Clone = RpcMethod<CloneLinePresetRequest, CloneLinePresetResponse>;
|
|
8
8
|
export interface linePresetsService {
|
|
9
|
+
/** Lists LINE message presets (reusable content/flex templates for the LINE channel) of an application, with paging, ordering and optional name/code or category filtering. Use to browse presets or find a preset code before get, update, clone or delete. */
|
|
9
10
|
List: linePresetsService_List;
|
|
11
|
+
/** Returns a single LINE preset by its preset code, including localized content and localized flex templates. Use after list_line_presets to inspect one preset in full. */
|
|
10
12
|
Get: linePresetsService_Get;
|
|
13
|
+
/** Creates a new LINE preset in an application from localized content or localized flex templates, assigning a fresh preset code. Each call makes a new preset; use update_line_preset to change an existing one. */
|
|
11
14
|
Create: linePresetsService_Create;
|
|
15
|
+
/** Overwrites an existing LINE preset identified by preset code with the supplied name, categories and localized content or templates. Use to edit a preset in place; create_line_preset makes a new one instead. */
|
|
12
16
|
Update: linePresetsService_Update;
|
|
17
|
+
/** Permanently deletes a LINE preset by its preset code. Blocked if the preset is still referenced by a running or paused journey; the removal cannot be undone. */
|
|
13
18
|
Delete: linePresetsService_Delete;
|
|
19
|
+
/** Copies an existing LINE preset into a target application, producing a new preset with its own code. Use to reuse a preset across applications; each call yields a new copy. */
|
|
14
20
|
Clone: linePresetsService_Clone;
|
|
15
21
|
}
|
|
16
22
|
export type ListLinePresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
17
23
|
export type ListLinePresetsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
18
24
|
export type ListLinePresetsRequest = {
|
|
25
|
+
/** Application code (XXXXX-XXXXX) whose LINE presets to list. */
|
|
19
26
|
application?: string;
|
|
20
27
|
orderBy?: ListLinePresetsRequest_OrderBy;
|
|
21
28
|
orderDirection?: ListLinePresetsRequest_OrderDirection;
|
|
22
29
|
page?: number;
|
|
23
30
|
perPage?: number;
|
|
24
|
-
/**
|
|
31
|
+
/** Free-text substring matched against preset name OR preset code (case-insensitive). */
|
|
25
32
|
searchByName?: string;
|
|
26
|
-
/**
|
|
33
|
+
/** Keep only presets tagged with any of these category names. */
|
|
27
34
|
searchByCategory?: string[];
|
|
28
35
|
};
|
|
29
36
|
export type Template_kind_image = {
|
|
@@ -71,39 +78,47 @@ export type ListLinePresetsResponse = {
|
|
|
71
78
|
total: number;
|
|
72
79
|
};
|
|
73
80
|
export type GetLinePresetRequest = {
|
|
81
|
+
/** LINE preset code to fetch. */
|
|
74
82
|
code?: string;
|
|
75
83
|
};
|
|
76
84
|
export type GetLinePresetResponse = {
|
|
77
85
|
preset: LinePreset;
|
|
78
86
|
};
|
|
79
87
|
export type CreateLinePresetRequest = {
|
|
88
|
+
/** Application code (XXXXX-XXXXX) the new preset belongs to. */
|
|
80
89
|
application?: string;
|
|
81
90
|
name?: string;
|
|
82
91
|
categories?: string[];
|
|
83
|
-
/** content
|
|
92
|
+
/** Per-locale plain content, keyed by language code, e.g. {"en": "content"}. Provide this or localized_template. */
|
|
84
93
|
localizedContent?: Record<string, string>;
|
|
94
|
+
/** Per-locale LINE flex template (image, image carousel or raw), keyed by language code. Provide this or localized_content. */
|
|
85
95
|
localizedTemplate?: Record<string, Template>;
|
|
86
96
|
};
|
|
87
97
|
export type CreateLinePresetResponse = {
|
|
88
98
|
preset: LinePreset;
|
|
89
99
|
};
|
|
90
100
|
export type UpdateLinePresetRequest = {
|
|
101
|
+
/** LINE preset code to update. */
|
|
91
102
|
code?: string;
|
|
92
103
|
name?: string;
|
|
93
104
|
categories?: string[];
|
|
94
|
-
/** content
|
|
105
|
+
/** Per-locale plain content, keyed by language code, e.g. {"en": "content"}. Provide this or localized_template. */
|
|
95
106
|
localizedContent?: Record<string, string>;
|
|
107
|
+
/** Per-locale LINE flex template (image, image carousel or raw), keyed by language code. Provide this or localized_content. */
|
|
96
108
|
localizedTemplate?: Record<string, Template>;
|
|
97
109
|
};
|
|
98
110
|
export type UpdateLinePresetResponse = {
|
|
99
111
|
preset: LinePreset;
|
|
100
112
|
};
|
|
101
113
|
export type DeleteLinePresetRequest = {
|
|
114
|
+
/** LINE preset code to delete. */
|
|
102
115
|
code?: string;
|
|
103
116
|
};
|
|
104
117
|
export type DeleteLinePresetResponse = {};
|
|
105
118
|
export type CloneLinePresetRequest = {
|
|
119
|
+
/** Code of the source LINE preset to copy. */
|
|
106
120
|
linePresetCode?: string;
|
|
121
|
+
/** Application code (XXXXX-XXXXX) the copy is created in. */
|
|
107
122
|
applicationCode?: string;
|
|
108
123
|
};
|
|
109
124
|
export type CloneLinePresetResponse = {
|
package/media_files.d.ts
CHANGED
|
@@ -4,22 +4,13 @@ export type MediaFilesService_CreateVariant = RpcMethod<CreateVariantRequest, Cr
|
|
|
4
4
|
export type MediaFilesService_Delete = RpcMethod<DeleteMediaFileRequest, DeleteMediaFileResponse>;
|
|
5
5
|
export type MediaFilesService_GetUsage = RpcMethod<GetMediaFilesUsageRequest, GetMediaFilesUsageResponse>;
|
|
6
6
|
export interface MediaFilesService {
|
|
7
|
+
/** Lists an application's media image files newest-first, with paging and an optional filename substring search. Returns only originals by default; pass parent_uuid to instead list the cropped variants of that original. */
|
|
7
8
|
List: MediaFilesService_List;
|
|
8
|
-
/**
|
|
9
|
-
* CreateVariant creates a cropped variant of an existing image for the given
|
|
10
|
-
* aspect ratio. The variant references the original via parent_uuid. Calling
|
|
11
|
-
* it again with the same original and ratio returns the existing variant.
|
|
12
|
-
*/
|
|
9
|
+
/** Creates a cropped variant of an existing original image (by uuid) for the given aspect ratio, storing it in S3 as a child of the original. Idempotent per original and ratio: calling again with the same original and ratio returns the existing variant instead of duplicating it. */
|
|
13
10
|
CreateVariant: MediaFilesService_CreateVariant;
|
|
14
|
-
/**
|
|
15
|
-
* Delete removes a media file. Deleting an original also removes all of its
|
|
16
|
-
* cropped variants; deleting a variant removes only that variant.
|
|
17
|
-
*/
|
|
11
|
+
/** Deletes a media file by uuid, removing its database record and S3 objects; deleting an original cascades to all of its cropped variants, while deleting a variant removes only that variant. Not reversible. */
|
|
18
12
|
Delete: MediaFilesService_Delete;
|
|
19
|
-
/**
|
|
20
|
-
* GetUsage returns the total stored size (bytes) and file count for an
|
|
21
|
-
* application, counting both originals and their cropped variants.
|
|
22
|
-
*/
|
|
13
|
+
/** Returns an application's media storage footprint: count of original files, total file count including cropped variants, and total bytes stored in S3 (originals, variants and thumbnails). Use to check or report media quota usage for an application code. */
|
|
23
14
|
GetUsage: MediaFilesService_GetUsage;
|
|
24
15
|
}
|
|
25
16
|
/** AspectRatio enumerates the supported aspect ratios for image variants. */
|
|
@@ -34,6 +25,7 @@ export type CreateVariantRequest_size_height = {
|
|
|
34
25
|
};
|
|
35
26
|
export type CreateVariantRequest_size = CreateVariantRequest_size_width | CreateVariantRequest_size_height;
|
|
36
27
|
export type CreateVariantRequest = {
|
|
28
|
+
/** Application code (format XXXXX-XXXXX) that owns the original image. */
|
|
37
29
|
application?: string;
|
|
38
30
|
/** uuid of the existing original image to derive the variant from. */
|
|
39
31
|
uuid?: string;
|
|
@@ -49,9 +41,13 @@ export type CreateVariantResponse = {
|
|
|
49
41
|
file: MediaFile;
|
|
50
42
|
};
|
|
51
43
|
export type UploadMediaFileRequest = {
|
|
44
|
+
/** Application code (format XXXXX-XXXXX) to store the image under. */
|
|
52
45
|
application: string;
|
|
46
|
+
/** Original filename; defaults to "upload_<date>" when empty. */
|
|
53
47
|
filename: string;
|
|
48
|
+
/** Raw image bytes to upload. */
|
|
54
49
|
data: string;
|
|
50
|
+
/** MIME type of the image (image/jpeg, image/png, image/gif, image/webp); auto-detected from the bytes when empty. */
|
|
55
51
|
mimeType: string;
|
|
56
52
|
description?: string;
|
|
57
53
|
};
|
|
@@ -59,6 +55,7 @@ export type UploadMediaFileResponse = {
|
|
|
59
55
|
file: MediaFile;
|
|
60
56
|
};
|
|
61
57
|
export type ListMediaFilesRequest = {
|
|
58
|
+
/** Application code (format XXXXX-XXXXX) whose media files to list. */
|
|
62
59
|
application?: string;
|
|
63
60
|
page?: number;
|
|
64
61
|
perPage?: number;
|
|
@@ -80,11 +77,14 @@ export type ListMediaFilesResponse = {
|
|
|
80
77
|
total: number;
|
|
81
78
|
};
|
|
82
79
|
export type DeleteMediaFileRequest = {
|
|
80
|
+
/** Application code (format XXXXX-XXXXX) that owns the file. */
|
|
83
81
|
application?: string;
|
|
82
|
+
/** uuid of the media file to delete (an original cascades to its variants). */
|
|
84
83
|
uuid?: string;
|
|
85
84
|
};
|
|
86
85
|
export type DeleteMediaFileResponse = {};
|
|
87
86
|
export type GetMediaFilesUsageRequest = {
|
|
87
|
+
/** Application code (format XXXXX-XXXXX) whose media storage usage to compute. */
|
|
88
88
|
application?: string;
|
|
89
89
|
};
|
|
90
90
|
export type GetMediaFilesUsageResponse = {
|
package/messages.d.ts
CHANGED
|
@@ -10,15 +10,25 @@ export type MessagesService_FindRecipients = RpcMethod<FindRecipientsRequest, Fi
|
|
|
10
10
|
export type MessagesService_GetDeviceReceivedMessages = RpcMethod<GetDeviceReceivedMessagesRequest, GetDeviceReceivedMessagesResponse>;
|
|
11
11
|
export type MessagesService_GetDevicesList = RpcMethod<GetDevicesListRequest, GetDevicesListResponse>;
|
|
12
12
|
export interface MessagesService {
|
|
13
|
+
/** Lists messages (push, email or SMS sends) for an application, newest first, with paging, free-text search and an optional type filter. Use to browse sends or find a message code before fetching details or statistics. */
|
|
13
14
|
List: MessagesService_List;
|
|
15
|
+
/** Returns a single message by its message code, including type, status, schedule and channel content. Use after list_messages to inspect one send. */
|
|
14
16
|
Get: MessagesService_Get;
|
|
17
|
+
/** Cancels a scheduled message by code, setting its status to cancelled so it is not sent. Allowed only while the message is still pending, waiting or processing; an already-sent message cannot be cancelled. Keeps the message record — use delete_message to remove it. */
|
|
15
18
|
Cancel: MessagesService_Cancel;
|
|
19
|
+
/** Deletes a scheduled message by code, removing its record and cancelling the send. Allowed only while the message is still pending, waiting or processing; an already-sent message cannot be deleted. */
|
|
16
20
|
Delete: MessagesService_Delete;
|
|
21
|
+
/** Returns aggregate delivery and open time-series plus recipient counts for a single message (by message_code) or a whole campaign, over an optional time range. For one send's delivered/opened numbers pass message_code. */
|
|
17
22
|
GetStatistics: MessagesService_GetStatistics;
|
|
23
|
+
/** Returns per-link click counts (total and unique) for a message or campaign. Use to see which links in the content were clicked and how often. */
|
|
18
24
|
GetLinkClicksStatistics: MessagesService_GetLinkClicksStatistics;
|
|
25
|
+
/** Returns per-platform delivery error breakdowns (sender and mailbox errors) for a message or campaign over a time range. Use to diagnose why a send under-delivered. */
|
|
19
26
|
GetDeliveryReport: MessagesService_GetDeliveryReport;
|
|
27
|
+
/** Searches the recipients of a message by hwid or user id and returns their send and open times. Use to check whether and when a specific device or user received a message. */
|
|
20
28
|
FindRecipients: MessagesService_FindRecipients;
|
|
29
|
+
/** Lists the messages a single device (by hwid) received in an application, optionally filtered to broadcast or transactional. Use to reconstruct one device's message history. */
|
|
21
30
|
GetDeviceReceivedMessages: MessagesService_GetDeviceReceivedMessages;
|
|
31
|
+
/** Returns the device hwids and user ids targeted by a message code. Use to see the exact audience a message was sent to. */
|
|
22
32
|
GetDevicesList: MessagesService_GetDevicesList;
|
|
23
33
|
}
|
|
24
34
|
export type Type = 'All' | 'Push' | 'Email' | 'Sms';
|
|
@@ -62,12 +72,15 @@ export type Message = {
|
|
|
62
72
|
export type ListMessagesRequest_OrderBy = 'NAME' | 'CREATED' | 'SEND_DATE' | 'UPDATED';
|
|
63
73
|
export type ListMessagesRequest_OrderDirection = 'ASC' | 'DESC';
|
|
64
74
|
export type ListMessagesRequest = {
|
|
75
|
+
/** Application code (format XXXXX-XXXXX) whose messages to list. */
|
|
65
76
|
application?: string;
|
|
66
77
|
orderBy?: ListMessagesRequest_OrderBy;
|
|
67
78
|
orderDirection?: ListMessagesRequest_OrderDirection;
|
|
68
79
|
page?: number;
|
|
69
80
|
perPage?: number;
|
|
81
|
+
/** Free-text search over message content and code. */
|
|
70
82
|
search?: string;
|
|
83
|
+
/** Restrict to these message ids. */
|
|
71
84
|
ids?: number[];
|
|
72
85
|
type?: Type;
|
|
73
86
|
};
|
|
@@ -78,23 +91,30 @@ export type ListMessagesResponse = {
|
|
|
78
91
|
total: number;
|
|
79
92
|
};
|
|
80
93
|
export type GetMessageRequest = {
|
|
94
|
+
/** Message code of the message to fetch. */
|
|
81
95
|
code?: string;
|
|
82
96
|
};
|
|
83
97
|
export type GetMessageResponse = {
|
|
84
98
|
message: Message;
|
|
85
99
|
};
|
|
86
100
|
export type CancelMessageRequest = {
|
|
101
|
+
/** Message code of the message to cancel. */
|
|
87
102
|
code?: string;
|
|
88
103
|
};
|
|
89
104
|
export type CancelMessageResponse = {};
|
|
90
105
|
export type DeleteMessageRequest = {
|
|
106
|
+
/** Message code of the message to delete. */
|
|
91
107
|
code?: string;
|
|
92
108
|
};
|
|
93
109
|
export type DeleteMessageResponse = {};
|
|
94
110
|
export type GetStatisticsRequest = {
|
|
111
|
+
/** Application code (format XXXXX-XXXXX). Optional if application_group is set. */
|
|
95
112
|
application?: string;
|
|
113
|
+
/** Application group code; aggregates statistics across the group. */
|
|
96
114
|
applicationGroup?: string;
|
|
115
|
+
/** Message code to scope statistics to a single send. Leave empty for campaign-level numbers. */
|
|
97
116
|
messageCode?: string;
|
|
117
|
+
/** Campaign code to scope statistics to a whole campaign. */
|
|
98
118
|
campaign?: string;
|
|
99
119
|
timestampFrom?: Date;
|
|
100
120
|
timestampTo?: Date;
|
|
@@ -124,9 +144,13 @@ export type GetStatisticsResponse = {
|
|
|
124
144
|
metrics: GetStatisticsResponse_Metrics;
|
|
125
145
|
};
|
|
126
146
|
export type GetLinkClicksStatisticsRequest = {
|
|
147
|
+
/** Application code (format XXXXX-XXXXX). Optional if application_group is set. */
|
|
127
148
|
application?: string;
|
|
149
|
+
/** Application group code; aggregates across the group. */
|
|
128
150
|
applicationGroup?: string;
|
|
151
|
+
/** Message code to scope link clicks to a single send. */
|
|
129
152
|
messageCode?: string;
|
|
153
|
+
/** Campaign code to scope link clicks to a whole campaign. */
|
|
130
154
|
campaign?: string;
|
|
131
155
|
timestampFrom?: Date;
|
|
132
156
|
timestampTo?: Date;
|
|
@@ -151,9 +175,13 @@ export type GetLinkClicksStatisticsResponse = {
|
|
|
151
175
|
uniqClick: number;
|
|
152
176
|
};
|
|
153
177
|
export type GetDeliveryReportRequest = {
|
|
178
|
+
/** Application code (format XXXXX-XXXXX). Optional if application_group is set. */
|
|
154
179
|
application?: string;
|
|
180
|
+
/** Application group code; aggregates across the group. */
|
|
155
181
|
applicationGroup?: string;
|
|
182
|
+
/** Message code to scope the delivery report to a single send. */
|
|
156
183
|
messageCode?: string;
|
|
184
|
+
/** Campaign code to scope the delivery report to a whole campaign. */
|
|
157
185
|
campaign?: string;
|
|
158
186
|
timestampFrom?: Date;
|
|
159
187
|
timestampTo?: Date;
|
|
@@ -187,9 +215,13 @@ export type GetDeliveryReportResponse = {
|
|
|
187
215
|
mailErrors: GetDeliveryReportResponse_DeliveryReport;
|
|
188
216
|
};
|
|
189
217
|
export type FindRecipientsRequest = {
|
|
218
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
190
219
|
application?: string;
|
|
220
|
+
/** Message code to search recipients within. */
|
|
191
221
|
messageCode?: string;
|
|
222
|
+
/** Campaign code to search recipients within. */
|
|
192
223
|
campaign?: string;
|
|
224
|
+
/** hwid or user id to search recipients by (not free-text). */
|
|
193
225
|
search?: string;
|
|
194
226
|
};
|
|
195
227
|
export type FindRecipientsResponse_SearchBy = 'hwid' | 'user_id';
|
|
@@ -206,7 +238,9 @@ export type FindRecipientsResponse = {
|
|
|
206
238
|
};
|
|
207
239
|
export type GetDeviceReceivedMessagesRequest_MessageType = 'unspecified' | 'all' | 'broadcast' | 'transactional';
|
|
208
240
|
export type GetDeviceReceivedMessagesRequest = {
|
|
241
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
209
242
|
application?: string;
|
|
243
|
+
/** Device hardware id (HWID) whose received messages to list. */
|
|
210
244
|
hwid?: string;
|
|
211
245
|
messageType?: GetDeviceReceivedMessagesRequest_MessageType;
|
|
212
246
|
};
|
|
@@ -228,6 +262,7 @@ export type GetDeviceReceivedMessagesResponse = {
|
|
|
228
262
|
messages: GetDeviceReceivedMessagesResponse_Message[];
|
|
229
263
|
};
|
|
230
264
|
export type GetDevicesListRequest = {
|
|
265
|
+
/** Message code whose targeted device hwids and user ids to return. */
|
|
231
266
|
messageCode?: string;
|
|
232
267
|
};
|
|
233
268
|
export type GetDevicesListResponse = {
|