@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
|
@@ -8,13 +8,21 @@ export type EmailsConfigurationsService_UpsertCustomTrackingDomain = RpcMethod<U
|
|
|
8
8
|
export type EmailsConfigurationsService_DeleteCustomTrackingDomain = RpcMethod<DeleteCustomTrackingDomainRequest, DeleteCustomTrackingDomainResponse>;
|
|
9
9
|
export type EmailsConfigurationsService_VerifyCustomTrackingDomain = RpcMethod<VerifyCustomTrackingDomainRequest, VerifyCustomTrackingDomainResponse>;
|
|
10
10
|
export interface EmailsConfigurationsService {
|
|
11
|
+
/** Lists the sender email domains configured for an application's account (format XXXXX-XXXXX) with their DKIM/SPF/DMARC statuses and the DNS CNAME records to add. Use to show email sender-domain setup; covers both Amazon SES and SMTP-service domains. */
|
|
11
12
|
GetDomains: EmailsConfigurationsService_GetDomains;
|
|
13
|
+
/** Refreshes DKIM/SPF/DMARC verification statuses for the account's sender email domains by re-querying Amazon SES and the SMTP service, then persisting the new statuses. Use to poll whether just-added DNS records have propagated; safe to call repeatedly. */
|
|
12
14
|
UpdateDomainStatuses: EmailsConfigurationsService_UpdateDomainStatuses;
|
|
15
|
+
/** Registers a new sender email domain for the account and requests Amazon SES DKIM verification (poll list_email_domains for the CNAME records to publish). Fails if the domain already exists or the account's verifying-domains limit is reached. */
|
|
13
16
|
AddDomain: EmailsConfigurationsService_AddDomain;
|
|
17
|
+
/** Removes a sender email domain from the account and deletes its SMTP credentials, clearing the application's From/reply properties if it was the default. Fails if the domain is still used as another application's sender domain. */
|
|
14
18
|
DeleteDomain: EmailsConfigurationsService_DeleteDomain;
|
|
19
|
+
/** Returns the custom email link-tracking domain configured for an application (format XXXXX-XXXXX), or empty if none is set. Use to display the current tracking CNAME before editing it. */
|
|
15
20
|
GetCustomTrackingDomain: EmailsConfigurationsService_GetCustomTrackingDomain;
|
|
21
|
+
/** Sets (creates or overwrites) the custom email link-tracking domain for an application. Use to point email click-tracking links at a customer-branded CNAME; run validate_custom_tracking_domain first to confirm the DNS record. */
|
|
16
22
|
UpsertCustomTrackingDomain: EmailsConfigurationsService_UpsertCustomTrackingDomain;
|
|
23
|
+
/** Removes the custom email link-tracking domain from an application, reverting click-tracking links to the default Pushwoosh domain. No-op if none is set. */
|
|
17
24
|
DeleteCustomTrackingDomain: EmailsConfigurationsService_DeleteCustomTrackingDomain;
|
|
25
|
+
/** Checks via a live DNS CNAME lookup whether the given custom tracking domain points at api.pushwoosh.com, returning verified true/false without saving anything. Use before update_custom_tracking_domain to confirm the customer published the CNAME. */
|
|
18
26
|
VerifyCustomTrackingDomain: EmailsConfigurationsService_VerifyCustomTrackingDomain;
|
|
19
27
|
}
|
|
20
28
|
export type Domain_CName = {
|
|
@@ -31,43 +39,54 @@ export type Domain = {
|
|
|
31
39
|
cnames: Domain_CName[];
|
|
32
40
|
};
|
|
33
41
|
export type AddDomainRequest = {
|
|
42
|
+
/** Sender email domain to register (e.g. mail.example.com). */
|
|
34
43
|
name?: string;
|
|
44
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
35
45
|
application?: string;
|
|
36
46
|
};
|
|
37
47
|
export type AddDomainResponse = {};
|
|
38
48
|
export type GetDomainsRequest = {
|
|
49
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
39
50
|
application?: string;
|
|
40
51
|
};
|
|
41
52
|
export type GetDomainsResponse = {
|
|
42
53
|
emailDomains: Domain[];
|
|
43
54
|
};
|
|
44
55
|
export type UpdateDomainStatusesRequest = {
|
|
56
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
45
57
|
application?: string;
|
|
46
58
|
};
|
|
47
59
|
export type UpdateDomainStatusesResponse = {};
|
|
48
60
|
export type DeleteDomainRequest = {
|
|
61
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
49
62
|
application?: string;
|
|
63
|
+
/** Sender email domain to remove. */
|
|
50
64
|
domain?: string;
|
|
51
65
|
};
|
|
52
66
|
export type DeleteDomainResponse = {};
|
|
53
67
|
export type GetCustomTrackingDomainRequest = {
|
|
54
|
-
/**
|
|
68
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
55
69
|
application?: string;
|
|
56
70
|
};
|
|
57
71
|
export type GetCustomTrackingDomainResponse = {
|
|
58
72
|
customTrackingDomain: string;
|
|
59
73
|
};
|
|
60
74
|
export type UpsertCustomTrackingDomainRequest = {
|
|
75
|
+
/** Custom tracking domain (a CNAME that must point at api.pushwoosh.com). */
|
|
61
76
|
customTrackingDomain?: string;
|
|
77
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
62
78
|
application?: string;
|
|
63
79
|
};
|
|
64
80
|
export type UpsertCustomTrackingDomainResponse = {};
|
|
65
81
|
export type DeleteCustomTrackingDomainRequest = {
|
|
82
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
66
83
|
application?: string;
|
|
67
84
|
};
|
|
68
85
|
export type DeleteCustomTrackingDomainResponse = {};
|
|
69
86
|
export type VerifyCustomTrackingDomainRequest = {
|
|
87
|
+
/** Custom tracking domain (a CNAME that must point at api.pushwoosh.com). */
|
|
70
88
|
customTrackingDomain?: string;
|
|
89
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
71
90
|
application?: string;
|
|
72
91
|
};
|
|
73
92
|
export type VerifyCustomTrackingDomainResponse = {
|
package/events.d.ts
CHANGED
|
@@ -9,18 +9,29 @@ export type EventsService_GetTriggeredCount = RpcMethod<GetTriggeredCountRequest
|
|
|
9
9
|
export type EventsService_GetDetailedStatistics = RpcMethod<GetDetailedStatisticsRequest, GetDetailedStatisticsResponse>;
|
|
10
10
|
export type EventsService_GetTotalStatistics = RpcMethod<GetTotalStatisticsRequest, GetTotalStatisticsResponse>;
|
|
11
11
|
export interface EventsService {
|
|
12
|
+
/** Returns one custom event by name for an application, including its attributes, store-days and revenue mapping. Use after list_events to inspect a single event's definition. */
|
|
12
13
|
Get: EventsService_Get;
|
|
14
|
+
/** Lists an application's custom events (ordered by name or creation) with paging and an optional revenue-only filter. Use to browse events or find an event name before get_event or the statistics calls. */
|
|
13
15
|
List: EventsService_List;
|
|
16
|
+
/** Creates a new custom event in an application with its attributes and optional revenue mapping. Fails if an event with the same name already exists; use update_event to change an existing one. */
|
|
14
17
|
Create: EventsService_Create;
|
|
18
|
+
/** Overwrites a custom event's description, attribute set and revenue mapping (the name is immutable). Fully replaces the attribute list, so resend every attribute you want to keep. */
|
|
15
19
|
Update: EventsService_Update;
|
|
20
|
+
/** Deletes a custom event and its attributes from an application. Fails if the event is still referenced by a filter/segment or in-app trigger; not undoable. */
|
|
16
21
|
Delete: EventsService_Delete;
|
|
22
|
+
/** Returns distinct recorded values of one attribute of a custom event, with paging and a value search. Use to populate attribute-value pickers when building event-based filters. */
|
|
17
23
|
GetAttributeValues: EventsService_GetAttributeValues;
|
|
24
|
+
/** Returns all-time total and unique triggered counts for the named custom events in an application. Use for a quick per-event volume check; for a time series use get_event_detailed_statistics. */
|
|
18
25
|
GetTriggeredCount: EventsService_GetTriggeredCount;
|
|
26
|
+
/** Returns a triggered-count time series for one custom event over a date range bucketed by interval, with optional attribute conditions. Use to chart how often an event fired over time. */
|
|
19
27
|
GetDetailedStatistics: EventsService_GetDetailedStatistics;
|
|
28
|
+
/** Returns total and unique triggered counts for custom events over a date range, optionally scoped to a message code or campaign. Use to attribute event volume to a specific send or campaign. */
|
|
20
29
|
GetTotalStatistics: EventsService_GetTotalStatistics;
|
|
21
30
|
}
|
|
22
31
|
export type GetEventRequest = {
|
|
32
|
+
/** Application code (format XXXXX-XXXXX) the event belongs to. */
|
|
23
33
|
application?: string;
|
|
34
|
+
/** Name of the custom event to fetch. */
|
|
24
35
|
name?: string;
|
|
25
36
|
};
|
|
26
37
|
export type EventAttribute_Type = 'UNKNOWN' | 'INTEGER' | 'STRING' | 'LIST' | 'DATE' | 'BOOLEAN' | 'PRICE';
|
|
@@ -51,8 +62,9 @@ export type Event = {
|
|
|
51
62
|
export type ListEventsRequest_OrderBy = 'NAME' | 'CREATED';
|
|
52
63
|
export type ListEventsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
53
64
|
export type ListEventsRequest = {
|
|
65
|
+
/** Application code (format XXXXX-XXXXX) whose events to list. */
|
|
54
66
|
application?: string;
|
|
55
|
-
/**
|
|
67
|
+
/** Case-insensitive substring match on event name (matches %name%). */
|
|
56
68
|
searchByName?: string;
|
|
57
69
|
orderBy?: ListEventsRequest_OrderBy;
|
|
58
70
|
orderDirection?: ListEventsRequest_OrderDirection;
|
|
@@ -69,9 +81,12 @@ export type ListEventsResponse = {
|
|
|
69
81
|
total: number;
|
|
70
82
|
};
|
|
71
83
|
export type CreateEventRequest = {
|
|
84
|
+
/** Name of the custom event to create; must be unique within the application. */
|
|
72
85
|
name?: string;
|
|
86
|
+
/** Application code (format XXXXX-XXXXX) to create the event in. */
|
|
73
87
|
application?: string;
|
|
74
88
|
description?: string;
|
|
89
|
+
/** Attributes recorded with each event trigger. */
|
|
75
90
|
attributes?: EventAttribute[];
|
|
76
91
|
revenueMapping?: RevenueMapping;
|
|
77
92
|
};
|
|
@@ -79,27 +94,37 @@ export type CreateEventResponse = {
|
|
|
79
94
|
name: string;
|
|
80
95
|
};
|
|
81
96
|
export type UpdateEventRequest = {
|
|
97
|
+
/** Name of the custom event to update (immutable, used to locate the event). */
|
|
82
98
|
name?: string;
|
|
99
|
+
/** Application code (format XXXXX-XXXXX) the event belongs to. */
|
|
83
100
|
application?: string;
|
|
84
101
|
/** new description */
|
|
85
102
|
description?: string;
|
|
86
|
-
/** new event attributes */
|
|
103
|
+
/** new event attributes (fully replaces the current set) */
|
|
87
104
|
attributes?: EventAttribute[];
|
|
88
105
|
/** revenue slot mapping (nil = leave unchanged, empty = clear) */
|
|
89
106
|
revenueMapping?: RevenueMapping;
|
|
90
107
|
};
|
|
91
108
|
export type UpdateEventResponse = {};
|
|
92
109
|
export type DeleteEventRequest = {
|
|
110
|
+
/** Name of the custom event to delete. */
|
|
93
111
|
name?: string;
|
|
112
|
+
/** Application code (format XXXXX-XXXXX) the event belongs to. */
|
|
94
113
|
application?: string;
|
|
95
114
|
};
|
|
96
115
|
export type DeleteEventResponse = {};
|
|
97
116
|
export type GetAttributeValuesRequest = {
|
|
117
|
+
/** Application code (format XXXXX-XXXXX) the event belongs to. */
|
|
98
118
|
application?: string;
|
|
119
|
+
/** Name of the custom event whose attribute values to return. */
|
|
99
120
|
event?: string;
|
|
121
|
+
/** Name of the event attribute whose recorded values to return. */
|
|
100
122
|
attribute?: string;
|
|
123
|
+
/** Number of values to skip (offset paging). */
|
|
101
124
|
skip?: number;
|
|
125
|
+
/** Maximum number of values to return (defaults to 100). */
|
|
102
126
|
limit?: number;
|
|
127
|
+
/** Free-text filter over the attribute values (not an id). */
|
|
103
128
|
search?: string;
|
|
104
129
|
};
|
|
105
130
|
export type GetAttributeValuesResponse = {
|
|
@@ -107,7 +132,9 @@ export type GetAttributeValuesResponse = {
|
|
|
107
132
|
values: string[];
|
|
108
133
|
};
|
|
109
134
|
export type GetTriggeredCountRequest = {
|
|
135
|
+
/** Application code (format XXXXX-XXXXX) the events belong to. */
|
|
110
136
|
application?: string;
|
|
137
|
+
/** Names of the custom events to count. */
|
|
111
138
|
events?: string[];
|
|
112
139
|
};
|
|
113
140
|
export type GetTriggeredCountResponse_Count = {
|
|
@@ -156,11 +183,15 @@ export type AttributeCondition = {
|
|
|
156
183
|
values: Value[];
|
|
157
184
|
};
|
|
158
185
|
export type GetDetailedStatisticsRequest = {
|
|
186
|
+
/** Application code (format XXXXX-XXXXX) the event belongs to. */
|
|
159
187
|
application?: string;
|
|
188
|
+
/** Name of the custom event to build the time series for. */
|
|
160
189
|
name?: string;
|
|
161
190
|
dateFrom?: Date;
|
|
162
191
|
dateTo?: Date;
|
|
192
|
+
/** Bucket size for the time series (hour, day, week or month). */
|
|
163
193
|
interval?: TimeInterval;
|
|
194
|
+
/** Filter triggers to those whose attributes match these conditions. */
|
|
164
195
|
attributeConditions?: AttributeCondition[];
|
|
165
196
|
};
|
|
166
197
|
export type GetDetailedStatisticsResponse_TriggeredCount = {
|
|
@@ -171,11 +202,15 @@ export type GetDetailedStatisticsResponse = {
|
|
|
171
202
|
metrics: GetDetailedStatisticsResponse_TriggeredCount[];
|
|
172
203
|
};
|
|
173
204
|
export type GetTotalStatisticsRequest = {
|
|
205
|
+
/** Application code (format XXXXX-XXXXX) the events belong to. */
|
|
174
206
|
application?: string;
|
|
207
|
+
/** Names of the custom events to count. */
|
|
175
208
|
events?: string[];
|
|
176
209
|
dateFrom?: Date;
|
|
177
210
|
dateTo?: Date;
|
|
211
|
+
/** Message code to attribute event triggers to a single send (transactional sends have no numeric id, so this returns empty). */
|
|
178
212
|
messageCode?: string;
|
|
213
|
+
/** Campaign code to attribute event triggers to a whole campaign. */
|
|
179
214
|
campaign?: string;
|
|
180
215
|
};
|
|
181
216
|
export type GetTotalStatisticsResponse_EventTriggeredCount = {
|
package/export_messages.d.ts
CHANGED
|
@@ -12,8 +12,12 @@ export type ExportStatisticsService_Status = RpcMethod<pushwoosh_export_messages
|
|
|
12
12
|
export type ExportStatisticsService_Result = RpcMethod<pushwoosh_export_messages_v2_ResultRequest, pushwoosh_export_messages_v2_ResultResponse>;
|
|
13
13
|
export type ExportStatisticsService_GetLastTasks = RpcMethod<pushwoosh_export_messages_v2_GetLastTasksRequest, pushwoosh_export_messages_v2_GetLastTasksResponse>;
|
|
14
14
|
export interface ExportStatisticsService {
|
|
15
|
+
/** Starts an asynchronous export or computation task (CSV of message history, recipients, bounced emails, journey users, retention, or create-segment-from-message) and returns its numeric task uid. The task type and its args select what is produced; poll get_export_task_status, then fetch get_export_task_result. */
|
|
15
16
|
Export: ExportStatisticsService_Export;
|
|
17
|
+
/** Returns the status (pending, success or failed) and progress of an export task by its numeric uid. Poll after create_export_task until success, then call get_export_task_result. */
|
|
16
18
|
Status: ExportStatisticsService_Status;
|
|
19
|
+
/** Returns the finished output of an export task by its numeric uid — a downloadable file link, created segment code, or computed metrics depending on task type. Call only after get_export_task_status reports success. */
|
|
17
20
|
Result: ExportStatisticsService_Result;
|
|
21
|
+
/** Lists recent export tasks for an application, optionally scoped by task type, message code/id, campaign, journey or event. Use to find a prior export's uid or check what was already run before starting a new one. */
|
|
18
22
|
GetLastTasks: ExportStatisticsService_GetLastTasks;
|
|
19
23
|
}
|
package/filters.d.ts
CHANGED
|
@@ -16,30 +16,47 @@ export type FiltersService_GetMatchedSegments = RpcMethod<GetMatchedSegmentsRequ
|
|
|
16
16
|
export type FiltersService_GetFilterUsage = RpcMethod<GetFilterUsageRequest, GetFilterUsageResponse>;
|
|
17
17
|
export type FiltersService_SearchAddress = RpcMethod<SearchAddressRequest, SearchAddressResponse>;
|
|
18
18
|
export interface FiltersService {
|
|
19
|
+
/** Lists an account's saved segments (filters) for an application, newest first, with paging, name/code search and a high-speed-only toggle. Use to browse segments or find a filter code before get_filter or compile_filter. */
|
|
19
20
|
List: FiltersService_List;
|
|
21
|
+
/** Returns one segment (filter) by its filter code, including its filter expression, seglang, device-load policy and compiling stats. Use after list_filters to inspect a single segment. */
|
|
20
22
|
Get: FiltersService_Get;
|
|
23
|
+
/** Creates a new segment (filter) from a filter expression under an application, optionally as a high-speed prepared filter with an expiration date. The name must be unique for the account; use clone_filter to copy an existing one. */
|
|
21
24
|
Create: FiltersService_Create;
|
|
25
|
+
/** Duplicates an existing segment (filter), identified by source filter code, under a new unique name. High-speed filters cannot be cloned; use create_filter to build a segment from scratch. */
|
|
22
26
|
Clone: FiltersService_Clone;
|
|
27
|
+
/** Overwrites a segment's (filter) name, filter expression and device-load policy by filter code. Use to edit an existing segment; the new name must stay unique within the account. */
|
|
23
28
|
Update: FiltersService_Update;
|
|
29
|
+
/** Deletes a segment (filter) by filter code after verifying it is not used by any campaign, journey, preset, in-app or popup. Blocks instead of deleting if the filter is still in use; delete_filter_v2 auto-detaches journey/in-app usage first. */
|
|
24
30
|
Delete: FiltersService_Delete;
|
|
31
|
+
/** Deletes a segment (filter) by filter code, first detaching it from journey split points and moving in-app messages that use it to draft. Use instead of delete_filter to force-remove a filter referenced by journeys or in-apps; still blocked by other filters or web popups using it. */
|
|
25
32
|
DeleteV2: FiltersService_DeleteV2;
|
|
33
|
+
/** Returns cities (name, coordinates, subscriber count) matching a search string, from the account's City tag values enriched with geo data. Used by the Geo segment-filter builder to pick cities to target. */
|
|
26
34
|
GetCountryCities: FiltersService_GetCountryCities;
|
|
35
|
+
/** Resolves a list of city hashes (country code, city name) to their coordinates and names. Use to hydrate cities already selected in a geo filter, e.g. after get_filter_country_cities. */
|
|
27
36
|
GetCitiesByHashes: FiltersService_GetCitiesByHashes;
|
|
37
|
+
/** Recomputes a segment's (filter) reachable device count for an application, optionally producing a CSV export of matching devices. Use to refresh a filter's audience size; pass export_csv to also generate a download. */
|
|
28
38
|
CompileFilter: FiltersService_CompileFilter;
|
|
39
|
+
/** Renders a filter expression into its seglang (segment-language) string representation. Pure conversion used by the segment editor; the inverse of get_filter_expression_from_seglang. */
|
|
29
40
|
GetSeglang: FiltersService_GetSeglang;
|
|
41
|
+
/** Parses a seglang (segment-language) query string into a structured filter expression. Pure conversion used by the segment editor; the inverse of get_filter_seglang. */
|
|
30
42
|
SeglangToFilterExpression: FiltersService_SeglangToFilterExpression;
|
|
43
|
+
/** Lists the account's segments (filters) that a given device (by HWID) currently matches, for an application, with paging and name search. Use to see which segments a specific device falls into. */
|
|
31
44
|
GetMatchedSegments: FiltersService_GetMatchedSegments;
|
|
45
|
+
/** Lists where a segment (filter) is used across journeys, one-time messages, in-app messages, presets and web popups. Use before delete_filter to see what references a filter; set only_active_campaigns to skip finished ones. */
|
|
32
46
|
GetFilterUsage: FiltersService_GetFilterUsage;
|
|
47
|
+
/** Geocodes a free-form address or place query into map candidates (name, lat/lon, bounding box) via an external geocoding provider. Used by the Geo segment-filter builder to drop a point or radius on the map. */
|
|
33
48
|
SearchAddress: FiltersService_SearchAddress;
|
|
34
49
|
}
|
|
35
50
|
export type ListFiltersRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
36
51
|
export type ListFiltersRequest_OrderDirection = 'ASC' | 'DESC';
|
|
37
52
|
export type ListFiltersRequest = {
|
|
53
|
+
/** application code (XXXXX-XXXXX); scopes the listing */
|
|
38
54
|
application?: string;
|
|
39
55
|
/** like %name% */
|
|
40
56
|
searchByName?: string;
|
|
41
57
|
/** return only high speed filters */
|
|
42
58
|
highSpeedOnly?: boolean;
|
|
59
|
+
/** filter (segment) codes to fetch; empty returns all */
|
|
43
60
|
codes?: string[];
|
|
44
61
|
orderBy?: ListFiltersRequest_OrderBy;
|
|
45
62
|
orderDirection?: ListFiltersRequest_OrderDirection;
|
|
@@ -106,7 +123,9 @@ export type ListFiltersResponse = {
|
|
|
106
123
|
totalFilters: number;
|
|
107
124
|
};
|
|
108
125
|
export type GetFilterRequest = {
|
|
126
|
+
/** application code (XXXXX-XXXXX) */
|
|
109
127
|
application?: string;
|
|
128
|
+
/** filter (segment) code to fetch */
|
|
110
129
|
filter?: string;
|
|
111
130
|
};
|
|
112
131
|
export type CreateFilterRequest = {
|
|
@@ -134,7 +153,9 @@ export type CreateFilterResponse = {
|
|
|
134
153
|
export type CloneFilterRequest = {
|
|
135
154
|
/** required when account has ApplicationSpecificFilters restriction, otherwise optional */
|
|
136
155
|
application?: string;
|
|
156
|
+
/** name for the new filter (segment); must be unique within the account */
|
|
137
157
|
newName?: string;
|
|
158
|
+
/** source filter (segment) code to clone */
|
|
138
159
|
filter?: string;
|
|
139
160
|
};
|
|
140
161
|
export type CloneFilterResponse = {
|
|
@@ -143,6 +164,7 @@ export type CloneFilterResponse = {
|
|
|
143
164
|
export type UpdateFilterRequest = {
|
|
144
165
|
/** required when account has ApplicationSpecificFilters restriction, otherwise optional */
|
|
145
166
|
application?: string;
|
|
167
|
+
/** filter (segment) code to update */
|
|
146
168
|
filter?: string;
|
|
147
169
|
name?: string;
|
|
148
170
|
filterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
@@ -152,6 +174,7 @@ export type UpdateFilterResponse = {};
|
|
|
152
174
|
export type DeleteFilterRequest = {
|
|
153
175
|
/** required when account has ApplicationSpecificFilters restriction, otherwise optional */
|
|
154
176
|
application?: string;
|
|
177
|
+
/** filter (segment) code to delete */
|
|
155
178
|
filter?: string;
|
|
156
179
|
};
|
|
157
180
|
export type DeleteFilterResponse = {};
|
|
@@ -183,14 +206,18 @@ export type GetCitiesByHashesResponse = {
|
|
|
183
206
|
cities: GetCountryCitiesResponse_City[];
|
|
184
207
|
};
|
|
185
208
|
export type CompileFilterRequest = {
|
|
209
|
+
/** application code (XXXXX-XXXXX) the filter is compiled against */
|
|
186
210
|
application?: string;
|
|
211
|
+
/** filter (segment) code to (re)compile */
|
|
187
212
|
filter?: string;
|
|
213
|
+
/** also generate a downloadable CSV export of matching devices */
|
|
188
214
|
exportCsv?: boolean;
|
|
189
215
|
};
|
|
190
216
|
export type CompileFilterResponse = {};
|
|
191
217
|
export type GetSeglangRequest = {
|
|
192
218
|
/** required when account has ApplicationSpecificFilters restriction, otherwise optional */
|
|
193
219
|
application?: string;
|
|
220
|
+
/** filter expression to render as seglang */
|
|
194
221
|
filterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
195
222
|
};
|
|
196
223
|
export type GetSeglangResponse = {
|
|
@@ -199,13 +226,16 @@ export type GetSeglangResponse = {
|
|
|
199
226
|
export type SeglangToFilterExpressionRequest = {
|
|
200
227
|
/** required when account has ApplicationSpecificFilters restriction, otherwise optional */
|
|
201
228
|
application?: string;
|
|
229
|
+
/** seglang (segment-language) query string to parse */
|
|
202
230
|
seglang?: string;
|
|
203
231
|
};
|
|
204
232
|
export type SeglangToFilterExpressionResponse = {
|
|
205
233
|
filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
|
|
206
234
|
};
|
|
207
235
|
export type GetMatchedSegmentsRequest = {
|
|
236
|
+
/** application code (XXXXX-XXXXX) */
|
|
208
237
|
application?: string;
|
|
238
|
+
/** device HWID to match against the account's segments */
|
|
209
239
|
hwid?: string;
|
|
210
240
|
page?: number;
|
|
211
241
|
perPage?: number;
|
|
@@ -222,7 +252,9 @@ export type GetMatchedSegmentsResponse = {
|
|
|
222
252
|
export type GetFilterUsageRequest = {
|
|
223
253
|
/** required when account has ApplicationSpecificFilters restriction, otherwise optional */
|
|
224
254
|
application?: string;
|
|
255
|
+
/** filter (segment) code to inspect usage for */
|
|
225
256
|
filter?: string;
|
|
257
|
+
/** limit results to active/running usages, skipping finished ones */
|
|
226
258
|
onlyActiveCampaigns?: boolean;
|
|
227
259
|
};
|
|
228
260
|
/**
|
package/frequency_capping.d.ts
CHANGED
|
@@ -3,12 +3,17 @@ export type FrequencyCappingService_Get = RpcMethod<GetFrequencyCappingRequest,
|
|
|
3
3
|
export type FrequencyCappingService_Update = RpcMethod<UpdateFrequencyCappingRequest, UpdateFrequencyCappingResponse>;
|
|
4
4
|
export type FrequencyCappingService_Create = RpcMethod<CreateFrequencyCappingRequest, CreateFrequencyCappingResponse>;
|
|
5
5
|
export interface FrequencyCappingService {
|
|
6
|
+
/** Returns the frequency-capping limits configured for an application code XXXXX-XXXXX, per channel (push, email, SMS, in-app, WhatsApp). Use to read current caps before updating them; errors if no capping has been created for the application. */
|
|
6
7
|
Get: FrequencyCappingService_Get;
|
|
8
|
+
/** Overwrites the per-channel frequency-capping limits of an existing application capping. Use to change caps already created; only the channels present in the request are updated, and it errors if no capping exists yet (use create_frequency_capping first). */
|
|
7
9
|
Update: FrequencyCappingService_Update;
|
|
10
|
+
/** Creates the initial per-channel frequency-capping configuration for an application code XXXXX-XXXXX. Use once to set up capping; use update_frequency_capping to change limits afterwards. */
|
|
8
11
|
Create: FrequencyCappingService_Create;
|
|
9
12
|
}
|
|
10
13
|
export type Capping = {
|
|
14
|
+
/** Maximum number of messages allowed within the window (1-1000). */
|
|
11
15
|
count: number;
|
|
16
|
+
/** Length of the rolling window in days (1-30). */
|
|
12
17
|
days: number;
|
|
13
18
|
};
|
|
14
19
|
export type FrequencyCapping = {
|
|
@@ -19,28 +24,41 @@ export type FrequencyCapping = {
|
|
|
19
24
|
whatsApp: Capping;
|
|
20
25
|
};
|
|
21
26
|
export type GetFrequencyCappingRequest = {
|
|
27
|
+
/** Application code XXXXX-XXXXX whose capping is read. */
|
|
22
28
|
application?: string;
|
|
23
29
|
};
|
|
24
30
|
export type GetFrequencyCappingResponse = {
|
|
25
31
|
frequencyCapping: FrequencyCapping;
|
|
26
32
|
};
|
|
27
33
|
export type CreateFrequencyCappingRequest = {
|
|
34
|
+
/** Application code XXXXX-XXXXX to configure capping for. */
|
|
28
35
|
application?: string;
|
|
36
|
+
/** Push channel cap; omit to leave the channel uncapped. */
|
|
29
37
|
push?: Capping;
|
|
38
|
+
/** Email channel cap; omit to leave the channel uncapped. */
|
|
30
39
|
email?: Capping;
|
|
40
|
+
/** SMS channel cap; omit to leave the channel uncapped. */
|
|
31
41
|
sms?: Capping;
|
|
42
|
+
/** In-app channel cap; omit to leave the channel uncapped. */
|
|
32
43
|
inApp?: Capping;
|
|
44
|
+
/** WhatsApp channel cap; omit to leave the channel uncapped. */
|
|
33
45
|
whatsApp?: Capping;
|
|
34
46
|
};
|
|
35
47
|
export type CreateFrequencyCappingResponse = {
|
|
36
48
|
frequencyCapping: FrequencyCapping;
|
|
37
49
|
};
|
|
38
50
|
export type UpdateFrequencyCappingRequest = {
|
|
51
|
+
/** Application code XXXXX-XXXXX whose capping is updated. */
|
|
39
52
|
application?: string;
|
|
53
|
+
/** Push channel cap; omit to leave that channel unchanged. */
|
|
40
54
|
push?: Capping;
|
|
55
|
+
/** Email channel cap; omit to leave that channel unchanged. */
|
|
41
56
|
email?: Capping;
|
|
57
|
+
/** SMS channel cap; omit to leave that channel unchanged. */
|
|
42
58
|
sms?: Capping;
|
|
59
|
+
/** In-app channel cap; omit to leave that channel unchanged. */
|
|
43
60
|
inApp?: Capping;
|
|
61
|
+
/** WhatsApp channel cap; omit to leave that channel unchanged. */
|
|
44
62
|
whatsApp?: Capping;
|
|
45
63
|
};
|
|
46
64
|
export type UpdateFrequencyCappingResponse = {};
|
package/geozones.d.ts
CHANGED
|
@@ -5,10 +5,15 @@ export type GeozonesService_Update = RpcMethod<UpdateGeozonesRequest, UpdateGeoz
|
|
|
5
5
|
export type GeozonesService_List = RpcMethod<ListGeozonesRequest, ListGeozonesResponse>;
|
|
6
6
|
export type GeozonesService_Delete = RpcMethod<DeleteGeozonesRequest, DeleteGeozonesResponse>;
|
|
7
7
|
export interface GeozonesService {
|
|
8
|
+
/** Creates a geozone (a location trigger with center lat/lng, radius and re-entry cooldown) for an application, sending a push preset or inline content when a device enters it. Requires either preset or content; edit it later with update_geozone. */
|
|
8
9
|
Create: GeozonesService_Create;
|
|
10
|
+
/** Returns a single geozone by its geozone code, including coordinates, range, cooldown, timetable, linked cluster/preset/campaign and active status. Use after list_geozones to inspect one geozone. */
|
|
9
11
|
Get: GeozonesService_Get;
|
|
12
|
+
/** Updates an existing geozone by its geozone code; only the fields you send are changed (PUT-style overwrite). Use to move coordinates, swap preset/content, change cooldown or range, toggle status, or reassign the cluster. */
|
|
10
13
|
Update: GeozonesService_Update;
|
|
14
|
+
/** Lists geozones for one application (or across all account applications when application is empty), ordered by name or creation date, with paging and a name/code substring search. Use to browse geozones or find a geozone code. */
|
|
11
15
|
List: GeozonesService_List;
|
|
16
|
+
/** Permanently deletes a geozone by its geozone code, removing the location trigger. Not undoable; use update_geozone to disable a geozone instead of deleting it. */
|
|
12
17
|
Delete: GeozonesService_Delete;
|
|
13
18
|
}
|
|
14
19
|
/**
|
package/geozones_clusters.d.ts
CHANGED
|
@@ -5,9 +5,13 @@ export type GeozonesClustersService_Update = RpcMethod<UpdateGeozonesClusterRequ
|
|
|
5
5
|
export type GeozonesClustersService_List = RpcMethod<ListGeozonesClustersRequest, ListGeozonesClustersResponse>;
|
|
6
6
|
export type GeozonesClustersService_Delete = RpcMethod<DeleteGeozonesClusterRequest, DeleteGeozonesClusterResponse>;
|
|
7
7
|
export interface GeozonesClustersService {
|
|
8
|
+
/** Creates a geozone cluster in an application: a named group of geozones sharing one entry cooldown. Use before assigning geozones to a cluster; returns the new cluster code. */
|
|
8
9
|
Create: GeozonesClustersService_Create;
|
|
10
|
+
/** Updates a geozone cluster identified by its cluster code, overwriting the name, cooldown and/or active status supplied. Only the fields you set are changed; unset fields are left untouched. */
|
|
9
11
|
Update: GeozonesClustersService_Update;
|
|
12
|
+
/** Lists geozone clusters for an application (or all accessible applications), newest first, with paging and optional name/code search. Use to browse clusters or find a cluster code before update or delete. */
|
|
10
13
|
List: GeozonesClustersService_List;
|
|
14
|
+
/** Deletes a geozone cluster by its cluster code. Fails if any geozone still belongs to the cluster; reassign or delete those geozones first. */
|
|
11
15
|
Delete: GeozonesClustersService_Delete;
|
|
12
16
|
}
|
|
13
17
|
export type GeozonesCluster = {
|
|
@@ -19,17 +23,24 @@ export type GeozonesCluster = {
|
|
|
19
23
|
status: pushwoosh_rpc_v2_geozones_Status;
|
|
20
24
|
};
|
|
21
25
|
export type CreateGeozonesClusterRequest = {
|
|
26
|
+
/** Application code (format XXXXX-XXXXX) the cluster belongs to. */
|
|
22
27
|
application?: string;
|
|
28
|
+
/** Human-readable cluster name. */
|
|
23
29
|
name?: string;
|
|
30
|
+
/** Minimum time between entry triggers for geozones in this cluster. */
|
|
24
31
|
cooldown?: Duration;
|
|
25
32
|
};
|
|
26
33
|
export type CreateGeozonesClusterResponse = {
|
|
27
34
|
cluster: GeozonesCluster;
|
|
28
35
|
};
|
|
29
36
|
export type UpdateGeozonesClusterRequest = {
|
|
37
|
+
/** Cluster code of the cluster to update. */
|
|
30
38
|
code?: string;
|
|
39
|
+
/** New cluster name; omit to leave unchanged. */
|
|
31
40
|
name?: string;
|
|
41
|
+
/** New entry cooldown; omit to leave unchanged. */
|
|
32
42
|
cooldown?: Duration;
|
|
43
|
+
/** New active/inactive status; STATUS_UNSPECIFIED leaves it unchanged. */
|
|
33
44
|
status?: pushwoosh_rpc_v2_geozones_Status;
|
|
34
45
|
};
|
|
35
46
|
export type UpdateGeozonesClusterResponse = {
|
|
@@ -38,12 +49,13 @@ export type UpdateGeozonesClusterResponse = {
|
|
|
38
49
|
export type ListGeozonesClustersRequest_OrderBy = 'NAME' | 'CREATED';
|
|
39
50
|
export type ListGeozonesClustersRequest_OrderDirection = 'ASC' | 'DESC';
|
|
40
51
|
export type ListGeozonesClustersRequest = {
|
|
52
|
+
/** Application code (format XXXXX-XXXXX) to list clusters for; empty lists across all accessible applications. */
|
|
41
53
|
application?: string;
|
|
42
54
|
orderBy?: ListGeozonesClustersRequest_OrderBy;
|
|
43
55
|
orderDirection?: ListGeozonesClustersRequest_OrderDirection;
|
|
44
56
|
page?: number;
|
|
45
57
|
perPage?: number;
|
|
46
|
-
/**
|
|
58
|
+
/** Case-insensitive substring matched against cluster name or code. */
|
|
47
59
|
searchByName?: string;
|
|
48
60
|
};
|
|
49
61
|
export type ListGeozonesClustersResponse = {
|
|
@@ -53,6 +65,7 @@ export type ListGeozonesClustersResponse = {
|
|
|
53
65
|
total: number;
|
|
54
66
|
};
|
|
55
67
|
export type DeleteGeozonesClusterRequest = {
|
|
68
|
+
/** Cluster code of the cluster to delete. */
|
|
56
69
|
code?: string;
|
|
57
70
|
};
|
|
58
71
|
export type DeleteGeozonesClusterResponse = {};
|
package/inapp_messages.d.ts
CHANGED
|
@@ -8,25 +8,33 @@ export type InAppMessagesService_Update = RpcMethod<UpdateInappRequest, UpdateIn
|
|
|
8
8
|
export type InAppMessagesService_Stop = RpcMethod<StopInappRequest, StopInappResponse>;
|
|
9
9
|
export type InAppMessagesService_Publish = RpcMethod<PublishInappRequest, PublishInappResponse>;
|
|
10
10
|
export interface InAppMessagesService {
|
|
11
|
+
/** Lists in-app messages for an application (format XXXXX-XXXXX), newest first, with paging, name/code search and an optional status filter. Use to browse in-app messages or find an in-app message code before fetching, editing or publishing one. */
|
|
11
12
|
List: InAppMessagesService_List;
|
|
13
|
+
/** Returns a single in-app message by its code, including status, schedule, rich media, segment and tag/event/trigger filter expressions. Use after list_inapp_messages to inspect one in-app message. */
|
|
12
14
|
Get: InAppMessagesService_Get;
|
|
15
|
+
/** Permanently deletes an in-app message by code within an application (format XXXXX-XXXXX), removing its record entirely. Use disable_inapp_message instead to stop an active one while keeping it. */
|
|
13
16
|
Delete: InAppMessagesService_Delete;
|
|
17
|
+
/** Creates a new in-app message (a draft, or active when action is PUBLISH) with rich media, segment, schedule and trigger filter expression, returning its generated code. Use to add a new in-app message; use update_inapp_message to edit an existing one. */
|
|
14
18
|
Create: InAppMessagesService_Create;
|
|
19
|
+
/** Updates an existing in-app message by code, overwriting name, rich media, segment, schedule and filter expressions and, per action, saving it as a draft or publishing it. Use to edit an in-app message; use create_inapp_message to add a new one. */
|
|
15
20
|
Update: InAppMessagesService_Update;
|
|
21
|
+
/** Deactivates an active in-app message by code, setting its status to stopped so it no longer shows to devices. Reversible with enable_inapp_message; use delete_inapp_message to remove it entirely. */
|
|
16
22
|
Stop: InAppMessagesService_Stop;
|
|
23
|
+
/** Activates a draft in-app message by code after validating it has a name, a trigger filter expression and rich media. Use to publish a prepared draft; the reverse is disable_inapp_message. */
|
|
17
24
|
Publish: InAppMessagesService_Publish;
|
|
18
25
|
}
|
|
19
26
|
export type ListInappMessagesRequest_OrderBy = 'CREATED' | 'NAME' | 'UPDATED';
|
|
20
27
|
export type ListInappMessagesRequest_OrderDirection = 'DESC' | 'ASC';
|
|
21
28
|
export type ListInappMessagesRequest = {
|
|
29
|
+
/** Application code (format XXXXX-XXXXX) whose in-app messages to list. */
|
|
22
30
|
application?: string;
|
|
23
|
-
/**
|
|
31
|
+
/** Free-text search over in-app message name and code. */
|
|
24
32
|
search?: string;
|
|
25
33
|
page?: number;
|
|
26
34
|
perPage?: number;
|
|
27
35
|
orderBy?: ListInappMessagesRequest_OrderBy;
|
|
28
36
|
orderDirection?: ListInappMessagesRequest_OrderDirection;
|
|
29
|
-
/**
|
|
37
|
+
/** Restrict to these statuses; empty means all. */
|
|
30
38
|
statuses?: Inapp_Status[];
|
|
31
39
|
};
|
|
32
40
|
export type Inapp_Status = 'UNDEFINED' | 'ACTIVE' | 'SCHEDULED' | 'COMPLETED' | 'DRAFT' | 'STOPPED';
|
|
@@ -65,27 +73,34 @@ export type ListInappMessagesResponse = {
|
|
|
65
73
|
totalInappMessages: number;
|
|
66
74
|
};
|
|
67
75
|
export type GetInappMessageRequest = {
|
|
76
|
+
/** In-app message code of the message to fetch. */
|
|
68
77
|
code?: string;
|
|
69
78
|
};
|
|
70
79
|
export type GetInappMessageResponse = {
|
|
71
80
|
inapp: Inapp;
|
|
72
81
|
};
|
|
73
82
|
export type DeleteInappMessageRequest = {
|
|
83
|
+
/** In-app message code of the message to delete. */
|
|
74
84
|
code?: string;
|
|
85
|
+
/** Application code (format XXXXX-XXXXX) the in-app message belongs to. */
|
|
75
86
|
application?: string;
|
|
76
87
|
};
|
|
77
88
|
export type DeleteInappMessageResponse = {};
|
|
78
89
|
export type CreateInappRequest_Action = 'SAVE_DRAFT' | 'PUBLISH';
|
|
79
90
|
/** Create - create new inapp (draft or active based on action) */
|
|
80
91
|
export type CreateInappRequest = {
|
|
92
|
+
/** Application code (format XXXXX-XXXXX) to create the in-app message in. */
|
|
81
93
|
application?: string;
|
|
94
|
+
/** SAVE_DRAFT keeps it as a draft; PUBLISH creates it active and requires rich_media_code and trigger_filter_expression. */
|
|
82
95
|
action?: CreateInappRequest_Action;
|
|
83
96
|
name?: string;
|
|
84
97
|
description?: string;
|
|
85
98
|
required?: boolean;
|
|
86
|
-
/** required for PUBLISH */
|
|
99
|
+
/** Rich media code holding the in-app content; required for PUBLISH. */
|
|
87
100
|
richMediaCode?: string;
|
|
101
|
+
/** Segment filter name to target (alternative to filter_code). */
|
|
88
102
|
filterName?: string;
|
|
103
|
+
/** Segment filter code to target (alternative to filter_name). */
|
|
89
104
|
filterCode?: string;
|
|
90
105
|
/** JSON (only capping is read/written server-side) */
|
|
91
106
|
segment?: string;
|
|
@@ -96,7 +111,7 @@ export type CreateInappRequest = {
|
|
|
96
111
|
messageType?: Inapp_MessageType;
|
|
97
112
|
tagFilterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
98
113
|
eventFilterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
99
|
-
/** required for PUBLISH */
|
|
114
|
+
/** Trigger condition that fires the in-app message; required for PUBLISH. */
|
|
100
115
|
triggerFilterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
101
116
|
};
|
|
102
117
|
export type CreateInappResponse = {
|
|
@@ -105,29 +120,36 @@ export type CreateInappResponse = {
|
|
|
105
120
|
export type UpdateInappRequest_Action = 'UNKNOWN' | 'SAVE_DRAFT' | 'PUBLISH';
|
|
106
121
|
/** Update - update existing inapp (both draft and active) */
|
|
107
122
|
export type UpdateInappRequest = {
|
|
123
|
+
/** In-app message code of the message to update. */
|
|
108
124
|
code?: string;
|
|
109
125
|
name?: string;
|
|
110
126
|
description?: string;
|
|
111
127
|
required?: boolean;
|
|
128
|
+
/** Rich media code holding the in-app content. */
|
|
112
129
|
richMediaCode?: string;
|
|
130
|
+
/** Segment filter name to target (alternative to filter_code). */
|
|
113
131
|
filterName?: string;
|
|
132
|
+
/** Segment filter code to target (alternative to filter_name). */
|
|
114
133
|
filterCode?: string;
|
|
115
134
|
/** JSON */
|
|
116
135
|
segment?: string;
|
|
117
136
|
startDate?: Date;
|
|
118
137
|
endDate?: Date;
|
|
119
138
|
priority?: number;
|
|
139
|
+
/** SAVE_DRAFT stops (unpublishes) the message; PUBLISH activates it after validation. */
|
|
120
140
|
action?: UpdateInappRequest_Action;
|
|
121
141
|
timezone?: string;
|
|
122
142
|
globalCappingEnabled?: boolean;
|
|
123
143
|
messageType?: Inapp_MessageType;
|
|
124
144
|
tagFilterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
125
145
|
eventFilterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
146
|
+
/** Trigger condition that fires the in-app message. */
|
|
126
147
|
triggerFilterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
127
148
|
};
|
|
128
149
|
export type UpdateInappResponse = {};
|
|
129
150
|
/** Stop - convert active inapp to draft */
|
|
130
151
|
export type StopInappRequest = {
|
|
152
|
+
/** In-app message code of the active message to stop. */
|
|
131
153
|
code?: string;
|
|
132
154
|
};
|
|
133
155
|
export type StopInappResponse = {
|
|
@@ -135,6 +157,7 @@ export type StopInappResponse = {
|
|
|
135
157
|
};
|
|
136
158
|
/** Publish - convert draft inapp to active with validation */
|
|
137
159
|
export type PublishInappRequest = {
|
|
160
|
+
/** In-app message code of the draft message to publish. */
|
|
138
161
|
code?: string;
|
|
139
162
|
};
|
|
140
163
|
export type PublishInappResponse = {
|
package/inbound_webhooks.d.ts
CHANGED
|
@@ -9,14 +9,23 @@ export type InboundWebhooksService_Enable = RpcMethod<EnableInboundWebhookReques
|
|
|
9
9
|
export type InboundWebhooksService_Disable = RpcMethod<DisableInboundWebhookRequest, DisableInboundWebhookResponse>;
|
|
10
10
|
export type InboundWebhooksService_GetActivityLog = RpcMethod<GetActivityLogRequest, GetActivityLogResponse>;
|
|
11
11
|
export interface InboundWebhooksService {
|
|
12
|
+
/** Returns one inbound webhook by its UUID within an application, including the mapped event, identifier config, attribute mappings and status. Use after list_inbound_webhooks to inspect a single webhook's configuration. */
|
|
12
13
|
Get: InboundWebhooksService_Get;
|
|
14
|
+
/** Lists an application's inbound webhooks with paging, name search and status filter, enriched with 30-day trigger counts and last processing status. Use to browse configured inbound webhooks or find a webhook UUID. */
|
|
13
15
|
List: InboundWebhooksService_List;
|
|
16
|
+
/** Creates an inbound webhook for an application (XXXXX-XXXXX) that maps an incoming HTTP payload to a Pushwoosh event via JSON-path attribute mappings, generating a new UUID and Bearer secret. Use to set up a new inbound integration endpoint; each call creates a distinct webhook. */
|
|
14
17
|
Create: InboundWebhooksService_Create;
|
|
18
|
+
/** Overwrites an inbound webhook's name, event, identifier and attribute mappings by UUID; existing mappings are fully deleted and recreated. Use to reconfigure an existing webhook while keeping its UUID and secret. */
|
|
15
19
|
Update: InboundWebhooksService_Update;
|
|
20
|
+
/** Deletes an inbound webhook by UUID, cascading its attribute mappings. Irreversible; the webhook URL stops accepting incoming calls. */
|
|
16
21
|
Delete: InboundWebhooksService_Delete;
|
|
22
|
+
/** Returns the callable inbound webhook URL, Bearer secret and a ready-to-use curl example for a webhook UUID. Use to obtain the endpoint credentials for configuring the external system that will POST to it. */
|
|
17
23
|
GetAPIInfo: InboundWebhooksService_GetAPIInfo;
|
|
24
|
+
/** Enables an inbound webhook by UUID so it resumes accepting and processing incoming calls. Use to reactivate a previously disabled webhook. */
|
|
18
25
|
Enable: InboundWebhooksService_Enable;
|
|
26
|
+
/** Disables an inbound webhook by UUID so incoming calls are rejected as inactive, without deleting it. Use to temporarily pause an inbound integration; reverse with enable_inbound_webhook. */
|
|
19
27
|
Disable: InboundWebhooksService_Disable;
|
|
28
|
+
/** Returns the recent (last 24h) processing log for an inbound webhook UUID — per-call timestamp, status, error message and raw request — with paging and success/failure totals. Use to debug why incoming calls fail. */
|
|
20
29
|
GetActivityLog: InboundWebhooksService_GetActivityLog;
|
|
21
30
|
}
|
|
22
31
|
export type EventAttributeItem = {
|