@pushwoosh/rpc-v2-http-api-data 0.2.65 → 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.
Files changed (62) hide show
  1. package/account_groups.d.ts +15 -1
  2. package/account_invites.d.ts +9 -2
  3. package/account_overview.d.ts +1 -0
  4. package/account_users.d.ts +5 -2
  5. package/accounts.d.ts +30 -0
  6. package/accounts_get_auth_info.d.ts +1 -0
  7. package/api_tokens.d.ts +34 -0
  8. package/applications.d.ts +53 -0
  9. package/applications_alerts.d.ts +2 -0
  10. package/applications_configurations.d.ts +6 -0
  11. package/applications_email_froms.d.ts +10 -0
  12. package/applications_groups.d.ts +13 -2
  13. package/applications_info.d.ts +2 -0
  14. package/applications_sounds.d.ts +3 -0
  15. package/applications_statistics.d.ts +10 -9
  16. package/campaigns.d.ts +16 -0
  17. package/categories.d.ts +3 -1
  18. package/cloud_pages.d.ts +24 -2
  19. package/customer_journey.d.ts +6 -0
  20. package/deeplinks.d.ts +17 -2
  21. package/deliverability_checker.d.ts +7 -0
  22. package/devices.d.ts +1 -1
  23. package/email_categories.d.ts +29 -0
  24. package/emails_configurations.d.ts +20 -1
  25. package/events.d.ts +37 -2
  26. package/export_messages.d.ts +4 -0
  27. package/filters.d.ts +32 -0
  28. package/frequency_capping.d.ts +18 -0
  29. package/geozones.d.ts +5 -0
  30. package/geozones_clusters.d.ts +14 -1
  31. package/inapp_messages.d.ts +27 -4
  32. package/inbound_webhooks.d.ts +9 -0
  33. package/integrations.d.ts +64 -10
  34. package/internal_alerts.d.ts +14 -0
  35. package/ios_categories.d.ts +15 -1
  36. package/kakao_presets.d.ts +18 -0
  37. package/line_presets.d.ts +19 -4
  38. package/media_files.d.ts +13 -13
  39. package/messages.d.ts +35 -0
  40. package/package.json +1 -1
  41. package/presets.d.ts +24 -7
  42. package/pushwoosh_rpc_external_segments_v3.d.ts +7 -16
  43. package/pushwoosh_rpc_frequency_capping_disabled_users_v3.d.ts +5 -0
  44. package/pushwoosh_rpc_popup_forms_contents_v3.d.ts +8 -8
  45. package/pushwoosh_rpc_popup_forms_v3.d.ts +7 -7
  46. package/pushwoosh_rpc_segments_v3.d.ts +9 -5
  47. package/referral_partners.d.ts +13 -0
  48. package/restrictions.d.ts +1 -0
  49. package/rich_medias.d.ts +66 -15
  50. package/segment_statistics.d.ts +8 -0
  51. package/send_rate.d.ts +8 -0
  52. package/sms_presets.d.ts +12 -2
  53. package/statistics_dashboards.d.ts +15 -0
  54. package/statistics_dashboards_widgets.d.ts +10 -8
  55. package/subscription_prompt.d.ts +11 -0
  56. package/tags.d.ts +15 -1
  57. package/test_devices.d.ts +4 -4
  58. package/users.d.ts +10 -0
  59. package/viber_presets.d.ts +2 -0
  60. package/vouchers.d.ts +27 -0
  61. package/whatsapp.d.ts +9 -5
  62. package/whatsapp_presets.d.ts +6 -1
@@ -4,19 +4,26 @@ export type ApplicationEmailFromsService_Use = RpcMethod<UseRequest, UseResponse
4
4
  export type ApplicationEmailFromsService_GetEmailFooter = RpcMethod<GetEmailFooterRequest, GetEmailFooterResponse>;
5
5
  export type ApplicationEmailFromsService_SetEmailFooter = RpcMethod<SetEmailFooterRequest, SetEmailFooterResponse>;
6
6
  export interface ApplicationEmailFromsService {
7
+ /** Lists the sender ("From") email addresses previously used for an application's email sends, most-recently-used first. Use to populate the From-address picker before composing an email or calling use_email_from. */
7
8
  List: ApplicationEmailFromsService_List;
9
+ /** Records a sender ("From") email address for an application: bumps its last-used time if it already exists, otherwise validates its syntax and creates it. Call when a user picks or enters a From address so it appears in list_email_froms. */
8
10
  Use: ApplicationEmailFromsService_Use;
11
+ /** Returns the configured email footer (company name, address, copyright, unsubscribe label, nav/social links, app-store badges) for an application, or empty if none is set. Use before rendering or editing the footer shown at the bottom of the app's emails. */
9
12
  GetEmailFooter: ApplicationEmailFromsService_GetEmailFooter;
13
+ /** Creates or overwrites the email footer configuration for an application (company name, address, copyright, links, social, app-store badges). Use to save footer edits; replaces any existing footer and requires application-management permission. */
10
14
  SetEmailFooter: ApplicationEmailFromsService_SetEmailFooter;
11
15
  }
12
16
  export type ListRequest = {
17
+ /** Application code (format XXXXX-XXXXX) whose From addresses to list. */
13
18
  application?: string;
14
19
  };
15
20
  export type ListResponse = {
16
21
  emails: string[];
17
22
  };
18
23
  export type UseRequest = {
24
+ /** Application code (format XXXXX-XXXXX) to record the From address for. */
19
25
  application?: string;
26
+ /** Sender ("From") email address to record; validated for syntax when new. */
20
27
  email?: string;
21
28
  };
22
29
  export type UseResponse = {};
@@ -44,13 +51,16 @@ export type EmailFooter = {
44
51
  appBadges: AppBadge[];
45
52
  };
46
53
  export type GetEmailFooterRequest = {
54
+ /** Application code (format XXXXX-XXXXX) whose email footer to fetch. */
47
55
  application?: string;
48
56
  };
49
57
  export type GetEmailFooterResponse = {
50
58
  footer: EmailFooter;
51
59
  };
52
60
  export type SetEmailFooterRequest = {
61
+ /** Application code (format XXXXX-XXXXX) whose email footer to save. */
53
62
  application?: string;
63
+ /** Footer configuration to store; overwrites the current footer (omit to clear). */
54
64
  footer?: EmailFooter;
55
65
  };
56
66
  export type SetEmailFooterResponse = {};
@@ -5,10 +5,15 @@ export type ApplicationsGroupsService_Create = RpcMethod<CreateApplicationsGroup
5
5
  export type ApplicationsGroupsService_Update = RpcMethod<UpdateApplicationsGroupRequest, UpdateApplicationsGroupResponse>;
6
6
  export type ApplicationsGroupsService_Delete = RpcMethod<DeleteApplicationsGroupRequest, DeleteApplicationsGroupResponse>;
7
7
  export interface ApplicationsGroupsService {
8
+ /** Returns a single application group by its group code, including the title and its member application codes ordered highest-priority first. Use to inspect one group after list_applications_groups. */
8
9
  GetByCode: ApplicationsGroupsService_GetByCode;
10
+ /** Lists the account's application groups, ordered by title or creation date, with paging and an optional title substring search. Use to browse groups or find a group code before fetching or editing one. */
9
11
  List: ApplicationsGroupsService_List;
12
+ /** Creates an application group with a title and an ordered list of member application codes (first = highest priority), and grants the account's existing API tokens message rights on the new group. Returns the new group code. */
10
13
  Create: ApplicationsGroupsService_Create;
14
+ /** Overwrites an application group's title and its ordered member application list (first = highest priority), replacing all previous members. Use to rename a group or change which applications belong to it. */
11
15
  Update: ApplicationsGroupsService_Update;
16
+ /** Deletes an application group by group code, removing its member application links and revoking the group from the account's API token restrictions. The group cannot be recovered. */
12
17
  Delete: ApplicationsGroupsService_Delete;
13
18
  }
14
19
  export type ApplicationsGroup_Application = {
@@ -22,6 +27,7 @@ export type ApplicationsGroup = {
22
27
  applications: ApplicationsGroup_Application[];
23
28
  };
24
29
  export type GetApplicationsGroupByCodeRequest = {
30
+ /** Application group code of the group to fetch. */
25
31
  code?: string;
26
32
  };
27
33
  export type ListApplicationsGroupsRequest_OrderBy = 'TITLE' | 'CREATED';
@@ -31,6 +37,7 @@ export type ListApplicationsGroupsRequest = {
31
37
  perPage?: number;
32
38
  orderBy?: ListApplicationsGroupsRequest_OrderBy;
33
39
  orderDirection?: ListApplicationsGroupsRequest_OrderDirection;
40
+ /** Case-insensitive substring match on the group title. */
34
41
  searchByTitle?: string;
35
42
  };
36
43
  export type ListApplicationsGroupsResponse = {
@@ -40,21 +47,25 @@ export type ListApplicationsGroupsResponse = {
40
47
  totalPages: number;
41
48
  };
42
49
  export type CreateApplicationsGroupRequest = {
50
+ /** Group title (max 32 characters; must not contain < > or &). */
43
51
  title?: string;
44
- /** priority is determined by the order of the apps (highest first) */
52
+ /** Member application codes (format XXXXX-XXXXX); list order sets priority, first = highest. */
45
53
  applications?: string[];
46
54
  };
47
55
  export type CreateApplicationsGroupResponse = {
48
56
  code: string;
49
57
  };
50
58
  export type UpdateApplicationsGroupRequest = {
59
+ /** Application group code of the group to update. */
51
60
  code?: string;
61
+ /** Group title (max 32 characters; must not contain < > or &). */
52
62
  title?: string;
53
- /** priority is determined by the order of the apps (highest first) */
63
+ /** Member application codes (format XXXXX-XXXXX); list order sets priority, first = highest. */
54
64
  applications?: string[];
55
65
  };
56
66
  export type UpdateApplicationsGroupResponse = {};
57
67
  export type DeleteApplicationsGroupRequest = {
68
+ /** Application group code of the group to delete. */
58
69
  code?: string;
59
70
  };
60
71
  export type DeleteApplicationsGroupResponse = {};
@@ -1,9 +1,11 @@
1
1
  import { RpcMethod, Duration } from './commonTypes';
2
2
  export type ApplicationsInfoService_GetPlatformsInfo = RpcMethod<GetPlatformsInfoRequest, GetPlatformsInfoResponse>;
3
3
  export interface ApplicationsInfoService {
4
+ /** Returns per-platform status for one or more application codes (XXXXX-XXXXX): whether each platform is configured and active, deactivation date/reason, push certificate time left and platform properties. Use to audit push setup or certificate expiry across an account's apps; for WhatsApp it also queries the Meta sender status live. */
4
5
  GetPlatformsInfo: ApplicationsInfoService_GetPlatformsInfo;
5
6
  }
6
7
  export type GetPlatformsInfoRequest = {
8
+ /** Application codes (XXXXX-XXXXX) to fetch platform info for; apps the caller cannot see are silently skipped. */
7
9
  applications?: string[];
8
10
  };
9
11
  export type GetPlatformsInfoResponse = {
@@ -1,10 +1,13 @@
1
1
  import { RpcMethod } from './commonTypes';
2
2
  export type ApplicationSoundsService_Get = RpcMethod<GetRequest, GetResponse>;
3
3
  export interface ApplicationSoundsService {
4
+ /** Lists the custom notification sound file names uploaded for an application (format XXXXX-XXXXX) on a given platform. Use to populate the sound picker when composing a push for that platform. */
4
5
  Get: ApplicationSoundsService_Get;
5
6
  }
6
7
  export type GetRequest = {
8
+ /** Application code (format XXXXX-XXXXX) whose sounds to list. */
7
9
  application?: string;
10
+ /** Platform id to filter sounds by (e.g. 1 iOS, 3 Android). */
8
11
  platform?: number;
9
12
  };
10
13
  export type GetResponse = {
@@ -5,19 +5,20 @@ export type ApplicationsStatisticsService_GetDAUStatistics = RpcMethod<GetDAUSta
5
5
  export type ApplicationsStatisticsService_GetPushApplicationStatistics = RpcMethod<GetPushApplicationStatisticsRequest, GetPushApplicationStatisticsResponse>;
6
6
  export type ApplicationsStatisticsService_GetEmailApplicationStatistics = RpcMethod<GetEmailApplicationStatisticsRequest, GetEmailApplicationStatisticsResponse>;
7
7
  export interface ApplicationsStatisticsService {
8
+ /** Returns the total registered-users time series for an application (application code XXXXX-XXXXX). Use for the overall audience-size trend; use get_application_mau_statistics or get_application_dau_statistics for active-user counts. */
8
9
  GetUsersStatistics: ApplicationsStatisticsService_GetUsersStatistics;
9
- /** GetMAUStatistics returns mau statistics with time series data */
10
+ /** Returns the monthly active users (MAU) time series for an application (application code XXXXX-XXXXX). Use for monthly engagement; use get_application_dau_statistics for daily active users. */
10
11
  GetMAUStatistics: ApplicationsStatisticsService_GetMAUStatistics;
11
- /** GetDAUStatistics returns dau statistics with time series data */
12
+ /** Returns the daily active users (DAU) time series for an application (application code XXXXX-XXXXX). Use for daily engagement; use get_application_mau_statistics for monthly active users. */
12
13
  GetDAUStatistics: ApplicationsStatisticsService_GetDAUStatistics;
13
- /** GetPushApplicationStatistics returns push application statistics with time series data */
14
+ /** Returns per-platform push time series (total devices, sends, open rate) for an application (application code XXXXX-XXXXX). Use for the push channel dashboard; use get_application_email_statistics for the email channel. */
14
15
  GetPushApplicationStatistics: ApplicationsStatisticsService_GetPushApplicationStatistics;
15
- /** GetEmailApplicationStatistics returns email application statistics with time series data */
16
+ /** Returns per-platform email time series (total devices, sends, open rate) for an application (application code XXXXX-XXXXX). Use for the email channel dashboard; use get_application_push_statistics for the push channel. */
16
17
  GetEmailApplicationStatistics: ApplicationsStatisticsService_GetEmailApplicationStatistics;
17
18
  }
18
19
  export type TimeInterval = 'TIME_INTERVAL_UNSPECIFIED' | 'TIME_INTERVAL_HOUR' | 'TIME_INTERVAL_DAY' | 'TIME_INTERVAL_WEEK' | 'TIME_INTERVAL_MONTH';
19
20
  export type GetUsersStatisticsRequest = {
20
- /** Application Code */
21
+ /** Application code (format XXXXX-XXXXX) to fetch statistics for. */
21
22
  application?: string;
22
23
  };
23
24
  export type GetUsersStatisticsResponse = {
@@ -29,7 +30,7 @@ export type GetUsersStatisticsResponse = {
29
30
  interval: TimeInterval;
30
31
  };
31
32
  export type GetMAUStatisticsRequest = {
32
- /** Application Code */
33
+ /** Application code (format XXXXX-XXXXX) to fetch statistics for. */
33
34
  application?: string;
34
35
  };
35
36
  export type GetMAUStatisticsResponse = {
@@ -39,7 +40,7 @@ export type GetMAUStatisticsResponse = {
39
40
  usersCount: number[];
40
41
  };
41
42
  export type GetDAUStatisticsRequest = {
42
- /** Application Code */
43
+ /** Application code (format XXXXX-XXXXX) to fetch statistics for. */
43
44
  application?: string;
44
45
  };
45
46
  export type GetDAUStatisticsResponse = {
@@ -49,7 +50,7 @@ export type GetDAUStatisticsResponse = {
49
50
  usersCount: number[];
50
51
  };
51
52
  export type GetPushApplicationStatisticsRequest = {
52
- /** Application Code */
53
+ /** Application code (format XXXXX-XXXXX) to fetch statistics for. */
53
54
  application?: string;
54
55
  };
55
56
  export type PlatformStatistics = {
@@ -71,7 +72,7 @@ export type GetPushApplicationStatisticsResponse = {
71
72
  interval: TimeInterval;
72
73
  };
73
74
  export type GetEmailApplicationStatisticsRequest = {
74
- /** Application Code */
75
+ /** Application code (format XXXXX-XXXXX) to fetch statistics for. */
75
76
  application?: string;
76
77
  };
77
78
  export type GetEmailApplicationStatisticsResponse = {
package/campaigns.d.ts CHANGED
@@ -5,10 +5,15 @@ export type CampaignsService_Update = RpcMethod<UpdateCampaignRequest, UpdateCam
5
5
  export type CampaignsService_List = RpcMethod<ListCampaignsRequest, ListCampaignsResponse>;
6
6
  export type CampaignsService_Delete = RpcMethod<DeleteCampaignRequest, DeleteCampaignResponse>;
7
7
  export interface CampaignsService {
8
+ /** Returns a single marketing campaign by its campaign code, including name, description and owning application code. Use to inspect one campaign after finding its code via list_campaigns. */
8
9
  Get: CampaignsService_Get;
10
+ /** Creates a new marketing campaign (name and optional description) under an application; each call yields a fresh campaign code. Use to add a campaign for grouping messages, not to edit one — use update_campaign for that. */
9
11
  Create: CampaignsService_Create;
12
+ /** Updates the name and/or description of an existing campaign identified by campaign code; unset fields are left unchanged. Repeating the call overwrites to the same values. */
10
13
  Update: CampaignsService_Update;
14
+ /** Lists an account's marketing campaigns, optionally scoped to one application code, with paging, free-text search and ordering. Excludes system and Customer Journey campaigns; use to browse campaigns or find a campaign code. */
11
15
  List: CampaignsService_List;
16
+ /** Permanently deletes a campaign by campaign code; fails if the campaign is still referenced by geozones or RSS feeds. Irreversible — the campaign record is removed. */
12
17
  Delete: CampaignsService_Delete;
13
18
  }
14
19
  export type Campaign = {
@@ -18,34 +23,44 @@ export type Campaign = {
18
23
  description: string;
19
24
  };
20
25
  export type GetCampaignRequest = {
26
+ /** Campaign code of the campaign to fetch. */
21
27
  code?: string;
22
28
  };
23
29
  export type GetCampaignResponse = {
24
30
  campaign: Campaign;
25
31
  };
26
32
  export type CreateCampaignRequest = {
33
+ /** Application code (format XXXXX-XXXXX) the campaign belongs to. */
27
34
  application?: string;
35
+ /** Campaign name (required, max 32 characters). */
28
36
  name?: string;
37
+ /** Optional campaign description (max 64 characters). */
29
38
  description?: string;
30
39
  };
31
40
  export type CreateCampaignResponse = {
32
41
  campaign: Campaign;
33
42
  };
34
43
  export type UpdateCampaignRequest = {
44
+ /** Campaign code of the campaign to update. */
35
45
  code?: string;
46
+ /** New campaign name (max 32 characters); omit to leave unchanged. */
36
47
  name?: string;
48
+ /** New campaign description (max 64 characters); omit to leave unchanged. */
37
49
  description?: string;
38
50
  };
39
51
  export type UpdateCampaignResponse = {};
40
52
  export type ListCampaignsRequest_OrderBy = 'NAME' | 'CREATED';
41
53
  export type ListCampaignsRequest_OrderDirection = 'ASC' | 'DESC';
42
54
  export type ListCampaignsRequest = {
55
+ /** Application code (format XXXXX-XXXXX) to scope the list to; leave empty for all applications in the account. */
43
56
  application?: string;
44
57
  orderBy?: ListCampaignsRequest_OrderBy;
45
58
  orderDirection?: ListCampaignsRequest_OrderDirection;
46
59
  page?: number;
47
60
  perPage?: number;
61
+ /** Free-text search over campaign name, description and code. */
48
62
  search?: string;
63
+ /** Restrict to these campaign codes. */
49
64
  codes?: string[];
50
65
  };
51
66
  export type ListCampaignsResponse = {
@@ -55,6 +70,7 @@ export type ListCampaignsResponse = {
55
70
  total: number;
56
71
  };
57
72
  export type DeleteCampaignRequest = {
73
+ /** Campaign code of the campaign to delete. */
58
74
  code?: string;
59
75
  };
60
76
  export type DeleteCampaignResponse = {};
package/categories.d.ts CHANGED
@@ -1,17 +1,19 @@
1
1
  import { RpcMethod } from './commonTypes';
2
2
  export type CategoriesService_List = RpcMethod<ListCategoriesRequest, ListCategoriesResponse>;
3
3
  export interface CategoriesService {
4
+ /** Lists the category names used to organize presets, rich media and templates in an application (application code XXXXX-XXXXX), with paging, name search and ordering. Use to discover existing categories before tagging or filtering content by category. */
4
5
  List: CategoriesService_List;
5
6
  }
6
7
  export type ListCategoriesRequest_OrderBy = 'NAME' | 'CREATED';
7
8
  export type ListCategoriesRequest_OrderDirection = 'ASC' | 'DESC';
8
9
  export type ListCategoriesRequest = {
10
+ /** Application code (XXXXX-XXXXX) whose categories to list. */
9
11
  application?: string;
10
12
  orderBy?: ListCategoriesRequest_OrderBy;
11
13
  orderDirection?: ListCategoriesRequest_OrderDirection;
12
14
  page?: number;
13
15
  perPage?: number;
14
- /** like %name% */
16
+ /** Case-insensitive substring match on category name (matched as %value%). */
15
17
  searchByName?: string;
16
18
  };
17
19
  export type ListCategoriesResponse = {
package/cloud_pages.d.ts CHANGED
@@ -6,24 +6,31 @@ export type CloudPagesService_Update = RpcMethod<UpdateCloudPageRequest, UpdateC
6
6
  export type CloudPagesService_Delete = RpcMethod<DeleteCloudPageRequest, DeleteCloudPageResponse>;
7
7
  export type CloudPagesService_GetConfig = RpcMethod<GetCloudPageConfigRequest, GetCloudPageConfigResponse>;
8
8
  export interface CloudPagesService {
9
+ /** Lists Cloud Pages (hosted landing/subscription pages) for an application, newest-first by default, with paging, name/code search and a category filter. Use to browse pages or find a page code before get/update/delete. */
9
10
  List: CloudPagesService_List;
11
+ /** Returns a single Cloud Page by its page code, including HTML content, slug, redirect URL, categories and editor JSON. Use after list_cloud_pages to inspect one page. */
10
12
  Get: CloudPagesService_Get;
13
+ /** Creates a new Cloud Page under an application from name, content, slug and categories, returning the generated page code. Use to add a hosted page; update_cloud_page edits an existing one. */
11
14
  Create: CloudPagesService_Create;
15
+ /** Overwrites an existing Cloud Page (by page code) with new name, content, slug, redirect URL, categories and existing-user behavior. Use to edit a page; create_cloud_page adds a new one. */
12
16
  Update: CloudPagesService_Update;
17
+ /** Permanently deletes a Cloud Page by page code and detaches it from its categories. Cannot be undone; a second call for the same code returns not-found. */
13
18
  Delete: CloudPagesService_Delete;
19
+ /** Returns Cloud Pages configuration for an application: whether custom slugs are allowed and the slug domain. Use before create/update to know if a slug can be set. */
14
20
  GetConfig: CloudPagesService_GetConfig;
15
21
  }
16
22
  export type ListCloudPagesRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
17
23
  export type ListCloudPagesRequest_OrderDirection = 'ASC' | 'DESC';
18
24
  export type ListCloudPagesRequest = {
25
+ /** Application code (XXXXX-XXXXX) whose Cloud Pages to list. */
19
26
  application?: string;
20
27
  orderBy?: ListCloudPagesRequest_OrderBy;
21
28
  orderDirection?: ListCloudPagesRequest_OrderDirection;
22
29
  page?: number;
23
30
  perPage?: number;
24
- /** like %name% */
31
+ /** Free-text filter matched against both page name and page code (case-insensitive substring). */
25
32
  searchByName?: string;
26
- /** in ['category'] */
33
+ /** Keep only pages that belong to any of these categories. */
27
34
  searchByCategory?: string[];
28
35
  };
29
36
  export type ExistingUserBehavior = 'UPDATE' | 'SKIP' | 'ERROR';
@@ -46,42 +53,57 @@ export type ListCloudPagesResponse = {
46
53
  total: number;
47
54
  };
48
55
  export type GetCloudPageRequest = {
56
+ /** Cloud Page code identifying the page to fetch. */
49
57
  code?: string;
50
58
  };
51
59
  export type GetCloudPageResponse = {
52
60
  preset: CloudPage;
53
61
  };
54
62
  export type CreateCloudPageRequest = {
63
+ /** Application code (XXXXX-XXXXX) the new page belongs to. */
55
64
  application?: string;
56
65
  name?: string;
57
66
  categories?: string[];
67
+ /** Custom URL slug; applied only when slugs are allowed for the application (see get_cloud_page_config). */
58
68
  slug?: string;
69
+ /** Rendered HTML content of the page. */
59
70
  content?: string;
71
+ /** URL to redirect to instead of rendering content. */
60
72
  redirectUrl?: string;
73
+ /** Editor state JSON used to rebuild the page in the visual editor. */
61
74
  pushwooshJson?: string;
75
+ /** How to treat a submission from a user who already exists: UPDATE, SKIP or ERROR. */
62
76
  existingUserBehavior?: ExistingUserBehavior;
63
77
  };
64
78
  export type CreateCloudPageResponse = {
65
79
  preset: CloudPage;
66
80
  };
67
81
  export type UpdateCloudPageRequest = {
82
+ /** Cloud Page code identifying the page to overwrite. */
68
83
  code?: string;
69
84
  name?: string;
70
85
  categories?: string[];
86
+ /** Custom URL slug; applied only when slugs are allowed for the application (see get_cloud_page_config). */
71
87
  slug?: string;
88
+ /** Rendered HTML content of the page. */
72
89
  content?: string;
90
+ /** URL to redirect to instead of rendering content. */
73
91
  redirectUrl?: string;
92
+ /** Editor state JSON used to rebuild the page in the visual editor. */
74
93
  pushwooshJson?: string;
94
+ /** How to treat a submission from a user who already exists: UPDATE, SKIP or ERROR. */
75
95
  existingUserBehavior?: ExistingUserBehavior;
76
96
  };
77
97
  export type UpdateCloudPageResponse = {
78
98
  preset: CloudPage;
79
99
  };
80
100
  export type DeleteCloudPageRequest = {
101
+ /** Cloud Page code identifying the page to delete. */
81
102
  code?: string;
82
103
  };
83
104
  export type DeleteCloudPageResponse = {};
84
105
  export type GetCloudPageConfigRequest = {
106
+ /** Application code (XXXXX-XXXXX) whose Cloud Pages configuration to fetch. */
85
107
  application?: string;
86
108
  };
87
109
  export type GetCloudPageConfigResponse = {
@@ -2,14 +2,19 @@ import { RpcMethod } from './commonTypes';
2
2
  export type CustomerJourneyService_GetDeviceEntries = RpcMethod<GetDeviceEntriesRequest, GetDeviceEntriesResponse>;
3
3
  export type CustomerJourneyService_GetCampaignPreset = RpcMethod<GetCampaignPresetRequest, GetCampaignPresetResponse>;
4
4
  export interface CustomerJourneyService {
5
+ /** Lists the customer journeys a single device (by HWID) has entered in an application, with each entry's status, enter/leave times and campaign type, paged. Use to reconstruct one device's journey participation history. */
5
6
  GetDeviceEntries: CustomerJourneyService_GetDeviceEntries;
7
+ /** Returns the message preset code and point type of the first send point of a journey campaign, looked up by campaign code. Use to find which push/email/SMS/WhatsApp preset a single-message journey campaign delivers. */
6
8
  GetCampaignPreset: CustomerJourneyService_GetCampaignPreset;
7
9
  }
8
10
  export type GetDeviceEntriesRequest = {
11
+ /** Device hardware id (HWID) whose journey entries to list. */
9
12
  hwid?: string;
13
+ /** Free-text search over journey title. */
10
14
  searchByName?: string;
11
15
  page?: number;
12
16
  perPage?: number;
17
+ /** Application code (format XXXXX-XXXXX) whose journeys to search. */
13
18
  application?: string;
14
19
  };
15
20
  export type GetDeviceEntriesResponse_JourneyEntry_Status = 'EXITED' | 'ERROR' | 'STILL_IN_JOURNEY';
@@ -31,6 +36,7 @@ export type GetDeviceEntriesResponse = {
31
36
  totalJourneys: number;
32
37
  };
33
38
  export type GetCampaignPresetRequest = {
39
+ /** Campaign code of the journey campaign whose first send point's preset to return. */
34
40
  campaign?: string;
35
41
  };
36
42
  export type PointType = 'MessageBus' | 'Delay' | 'Terminator' | 'SendPush' | 'GoalEvent' | 'SendEmail' | 'BooleanSplitter' | 'WaitEvent' | 'InApp' | 'StartBySegment' | 'ABSplitter' | 'SetTags' | 'WebHook' | 'Filter' | 'SendSms' | 'APIStart' | 'SendWhatsApp' | 'SendData';
package/deeplinks.d.ts CHANGED
@@ -6,12 +6,18 @@ export type DeeplinksService_Update = RpcMethod<UpdateDeeplinkRequest, UpdateDee
6
6
  export type DeeplinksService_Delete = RpcMethod<DeleteDeeplinkRequest, DeleteDeeplinkResponse>;
7
7
  export type DeeplinksService_GetLinkContent = RpcMethod<GetLinkContentRequest, GetLinkContentResponse>;
8
8
  export interface DeeplinksService {
9
+ /** Lists deeplinks configured for an application (code XXXXX-XXXXX), ordered by name or creation date, with paging and an optional name/code/template substring filter. Use to browse deeplinks or find a deeplink code before fetching or editing one. */
9
10
  List: DeeplinksService_List;
11
+ /** Returns a single deeplink by its deeplink code, including name, URL template and system flag. Use after list_deeplinks to inspect one deeplink. */
10
12
  Get: DeeplinksService_Get;
13
+ /** Creates a deeplink in an application (code XXXXX-XXXXX) from a name and a URL template with {placeholder} tokens, returning the generated deeplink code. Use update_deeplink to edit an existing one instead. */
11
14
  Create: DeeplinksService_Create;
15
+ /** Updates a deeplink's name and/or URL template by deeplink code, overwriting the stored values (empty fields are left unchanged). Use create_deeplink to add a new deeplink. */
12
16
  Update: DeeplinksService_Update;
17
+ /** Permanently deletes a deeplink by deeplink code. Only deeplinks owned by the caller's account can be deleted, and the removal cannot be undone. */
13
18
  Delete: DeeplinksService_Delete;
14
19
  /**
20
+ * Fetches the given http(s) URL and returns an HTML head fragment containing only its og:* meta tags. Use to preview link metadata (title/image) when building a deeplink; reaches out to the external URL.
15
21
  * POST is used instead of GET because the uri parameter may contain
16
22
  * arbitrarily long URLs that exceed HTTP query-string length limits.
17
23
  */
@@ -20,12 +26,13 @@ export interface DeeplinksService {
20
26
  export type ListDeeplinksRequest_OrderBy = 'NAME' | 'CREATED';
21
27
  export type ListDeeplinksRequest_OrderDirection = 'ASC' | 'DESC';
22
28
  export type ListDeeplinksRequest = {
29
+ /** Application code (format XXXXX-XXXXX) whose deeplinks to list. */
23
30
  application?: string;
24
31
  orderBy?: ListDeeplinksRequest_OrderBy;
25
32
  orderDirection?: ListDeeplinksRequest_OrderDirection;
26
33
  page?: number;
27
34
  perPage?: number;
28
- /** like %name% */
35
+ /** Case-insensitive substring filter matched against deeplink name, code or template. */
29
36
  searchByName?: string;
30
37
  };
31
38
  export type Deeplink = {
@@ -42,15 +49,18 @@ export type ListDeeplinksResponse = {
42
49
  total: number;
43
50
  };
44
51
  export type GetDeeplinkRequest = {
52
+ /** Deeplink code identifying the deeplink to return. */
45
53
  code?: string;
46
54
  };
47
55
  export type GetDeeplinkResponse = {
48
56
  deeplink: Deeplink;
49
57
  };
50
58
  export type CreateDeeplinkRequest = {
59
+ /** Application code (format XXXXX-XXXXX) the deeplink belongs to. */
51
60
  application?: string;
61
+ /** Human-readable deeplink name, 1-32 characters. */
52
62
  name?: string;
53
- /** template text */
63
+ /** URL template, 1-1024 chars, with {placeholder} tokens; must have a scheme and host. */
54
64
  template?: string;
55
65
  /** whether deeplink is system */
56
66
  system?: boolean;
@@ -59,16 +69,21 @@ export type CreateDeeplinkResponse = {
59
69
  deeplink: Deeplink;
60
70
  };
61
71
  export type UpdateDeeplinkRequest = {
72
+ /** Deeplink code identifying the deeplink to update. */
62
73
  code?: string;
74
+ /** New deeplink name, 1-32 characters; empty leaves the name unchanged. */
63
75
  name?: string;
76
+ /** New URL template with {placeholder} tokens; empty leaves the template unchanged. */
64
77
  template?: string;
65
78
  };
66
79
  export type UpdateDeeplinkResponse = {};
67
80
  export type DeleteDeeplinkRequest = {
81
+ /** Deeplink code identifying the deeplink to delete. */
68
82
  code?: string;
69
83
  };
70
84
  export type DeleteDeeplinkResponse = {};
71
85
  export type GetLinkContentRequest = {
86
+ /** Absolute http(s) URL to fetch and extract og:* meta tags from. */
72
87
  uri?: string;
73
88
  };
74
89
  export type GetLinkContentResponse = {
@@ -2,13 +2,19 @@ import { RpcMethod } from './commonTypes';
2
2
  export type DeliverabilityCheckerService_CreateSandboxCheck = RpcMethod<CreateSandboxCheckRequest, CreateSandboxCheckResponse>;
3
3
  export type DeliverabilityCheckerService_GetSandboxResult = RpcMethod<GetSandboxResultRequest, GetSandboxResultResponse>;
4
4
  export interface DeliverabilityCheckerService {
5
+ /** Starts an email deliverability sandbox check: sends the email preset (preset code) as a real test email to a test device (HWID) and runs compliance and content checks. Returns a message code to poll with get_deliverability_result; run before a broadcast to catch spam-score, broken-link and unsubscribe issues. */
5
6
  CreateSandboxCheck: DeliverabilityCheckerService_CreateSandboxCheck;
7
+ /** Returns the state and, when finished, the delivery result and deliverability report (spam score, broken links, unsubscribe health) for a sandbox check by message code. Poll after create_deliverability_check until state is SANDBOX_DONE or SANDBOX_FAILED. */
6
8
  GetSandboxResult: DeliverabilityCheckerService_GetSandboxResult;
7
9
  }
8
10
  export type CreateSandboxCheckRequest = {
11
+ /** Pushwoosh application code (XXXXX-XXXXX) that owns the preset and test device. */
9
12
  applicationCode?: string;
13
+ /** Email preset code whose content is checked; required. */
10
14
  presetCode?: string;
15
+ /** Test device HWID that receives the sandbox test email; required. */
11
16
  testDeviceHwid?: string;
17
+ /** Optional from / reply-to / subject overrides applied to the preset before sending. */
12
18
  overrides?: EmailOverrides;
13
19
  };
14
20
  export type EmailOverrides = {
@@ -24,6 +30,7 @@ export type CreateSandboxCheckResponse = {
24
30
  messageCode: string;
25
31
  };
26
32
  export type GetSandboxResultRequest = {
33
+ /** Message code returned by create_deliverability_check identifying the sandbox check to fetch. */
27
34
  messageCode?: string;
28
35
  };
29
36
  export type GetSandboxResultResponse = {
package/devices.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { RpcMethod } from './commonTypes';
2
2
  export type DevicesService_SetTags = RpcMethod<SetTagsRequest, SetTagsResponse>;
3
3
  export interface DevicesService {
4
- /** Set tags for existing device or user */
4
+ /** Sets or overwrites tag values on an existing device (by HWID) or user (by user_id) in an application. Send an empty string or null as a value to clear a tag; pass platform only when creating a device by HWID. */
5
5
  SetTags: DevicesService_SetTags;
6
6
  }
7
7
  export type SetTagsRequest = {
@@ -8,61 +8,87 @@ export type EmailCategoriesService_List = RpcMethod<ListRequest, ListResponse>;
8
8
  export type EmailCategoriesService_Enable = RpcMethod<EnableRequest, EnableResponse>;
9
9
  export type EmailCategoriesService_Info = RpcMethod<InfoRequest, InfoResponse>;
10
10
  export interface EmailCategoriesService {
11
+ /** Creates one email subscription category for an application (max 20 per app), optionally back-subscribing existing recipients. Use create_email_categories to add several at once. */
11
12
  Create: EmailCategoriesService_Create;
13
+ /** Creates several email subscription categories for an application in one call, rejecting duplicate or existing names and enforcing the 20-per-app limit. Use create_email_category to add just one. */
12
14
  CreateMany: EmailCategoriesService_CreateMany;
15
+ /** Returns a single email subscription category by its category code. Use after list_email_categories to inspect one category's name, description and subscribe settings. */
13
16
  Get: EmailCategoriesService_Get;
17
+ /** Updates an email subscription category (name, description, subscribe_new/subscribe_old flags) by category code, overwriting the current values. Enabling subscribe_old back-subscribes existing recipients. */
14
18
  Update: EmailCategoriesService_Update;
19
+ /** Soft-deletes an email subscription category by category code so it no longer applies to the application. Deleting an already-deleted or unknown category is a no-op success. */
15
20
  Delete: EmailCategoriesService_Delete;
21
+ /** Lists all email subscription categories for an application plus whether the feature is enabled and available. Use to browse categories or find a category code. */
16
22
  List: EmailCategoriesService_List;
23
+ /** Enables or disables the email categories feature for an application by setting an application property. Pass value=true to turn it on, value=false to turn it off; setting the current value again is a no-op. */
17
24
  Enable: EmailCategoriesService_Enable;
25
+ /** Returns per-category subscribed-user counts for an application plus the progress of the back-subscribe (subscribe_old) background job. Use to see how many recipients are subscribed to each email category. */
18
26
  Info: EmailCategoriesService_Info;
19
27
  }
20
28
  export type Category = {
29
+ /** Email category code */
21
30
  code: string;
31
+ /** Application code XXXXX-XXXXX */
22
32
  application: string;
33
+ /** Category display name (unique within the application) */
23
34
  name: string;
24
35
  description: string;
36
+ /** Auto-subscribe newly registered email recipients to this category */
25
37
  subscribeNew: boolean;
38
+ /** Back-subscribe existing email recipients to this category */
26
39
  subscribeOld: boolean;
27
40
  subscribeOldUpdated: Date;
28
41
  };
29
42
  export type CreateRequest = {
43
+ /** Application code XXXXX-XXXXX */
30
44
  application?: string;
45
+ /** Category display name (unique within the application) */
31
46
  name?: string;
32
47
  description?: string;
48
+ /** Auto-subscribe newly registered email recipients to this category */
33
49
  subscribeNew?: boolean;
50
+ /** Back-subscribe existing email recipients to this category */
34
51
  subscribeOld?: boolean;
35
52
  };
36
53
  export type CreateResponse = {
37
54
  category: Category;
38
55
  };
39
56
  export type CreateManyRequest = {
57
+ /** Application code XXXXX-XXXXX */
40
58
  application?: string;
59
+ /** Categories to create; names must be unique and not already exist */
41
60
  categories?: Category[];
42
61
  };
43
62
  export type CreateManyResponse = {
44
63
  categories: Category[];
45
64
  };
46
65
  export type GetRequest = {
66
+ /** Email category code */
47
67
  code?: string;
48
68
  };
49
69
  export type GetResponse = {
50
70
  category: Category;
51
71
  };
52
72
  export type UpdateRequest = {
73
+ /** Email category code */
53
74
  code?: string;
75
+ /** Category display name (unique within the application) */
54
76
  name?: string;
55
77
  description?: string;
78
+ /** Auto-subscribe newly registered email recipients to this category */
56
79
  subscribeNew?: boolean;
80
+ /** Back-subscribe existing email recipients to this category */
57
81
  subscribeOld?: boolean;
58
82
  };
59
83
  export type UpdateResponse = {};
60
84
  export type DeleteRequest = {
85
+ /** Email category code */
61
86
  code?: string;
62
87
  };
63
88
  export type DeleteResponse = {};
64
89
  /** only 20 categories is allowed per application */
65
90
  export type ListRequest = {
91
+ /** Application code XXXXX-XXXXX */
66
92
  application?: string;
67
93
  };
68
94
  export type ListResponse = {
@@ -71,11 +97,14 @@ export type ListResponse = {
71
97
  isAvailable: boolean;
72
98
  };
73
99
  export type EnableRequest = {
100
+ /** Application code XXXXX-XXXXX */
74
101
  application?: string;
102
+ /** true to enable the email categories feature, false to disable */
75
103
  value?: boolean;
76
104
  };
77
105
  export type EnableResponse = {};
78
106
  export type InfoRequest = {
107
+ /** Application code XXXXX-XXXXX */
79
108
  application?: string;
80
109
  };
81
110
  export type InfoResponse = {