@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.
- 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/send_rate.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { RpcMethod } from './commonTypes';
|
|
|
2
2
|
export type SendRateService_Get = RpcMethod<GetSendRateRequest, GetSendRateResponse>;
|
|
3
3
|
export type SendRateService_Update = RpcMethod<UpdateSendRateRequest, UpdateSendRateResponse>;
|
|
4
4
|
export interface SendRateService {
|
|
5
|
+
/** Returns the per-channel send-rate throttling limits (push, email, SMS, in-app) configured for an application, each as a count-per-seconds pair. Use to inspect how fast an application code XXXXX-XXXXX is allowed to dispatch messages before calling update_send_rate. */
|
|
5
6
|
Get: SendRateService_Get;
|
|
7
|
+
/** Sets the per-channel send-rate throttling limits (push, email, SMS, in-app) for an application, creating the record if none exists and overwriting only the channels supplied. Use to change how many messages per second an application code XXXXX-XXXXX may dispatch. */
|
|
6
8
|
Update: SendRateService_Update;
|
|
7
9
|
}
|
|
8
10
|
export type Info = {
|
|
@@ -16,6 +18,7 @@ export type SendRate = {
|
|
|
16
18
|
inApp: Info;
|
|
17
19
|
};
|
|
18
20
|
export type GetSendRateRequest = {
|
|
21
|
+
/** Application code (XXXXX-XXXXX) whose send-rate limits to read. */
|
|
19
22
|
application?: string;
|
|
20
23
|
};
|
|
21
24
|
export type GetSendRateResponse = {
|
|
@@ -32,10 +35,15 @@ export type CreateSendRateResponse = {
|
|
|
32
35
|
sendRate: SendRate;
|
|
33
36
|
};
|
|
34
37
|
export type UpdateSendRateRequest = {
|
|
38
|
+
/** Application code (XXXXX-XXXXX) whose send-rate limits to set. */
|
|
35
39
|
application?: string;
|
|
40
|
+
/** Push send-rate limit as count messages per seconds; omit to leave the push limit unchanged. */
|
|
36
41
|
push?: Info;
|
|
42
|
+
/** Email send-rate limit as count messages per seconds; omit to leave the email limit unchanged. */
|
|
37
43
|
email?: Info;
|
|
44
|
+
/** SMS send-rate limit as count messages per seconds; omit to leave the SMS limit unchanged. */
|
|
38
45
|
sms?: Info;
|
|
46
|
+
/** In-app send-rate limit as count messages per seconds; omit to leave the in-app limit unchanged. */
|
|
39
47
|
inApp?: Info;
|
|
40
48
|
};
|
|
41
49
|
export type UpdateSendRateResponse = {};
|
package/sms_presets.d.ts
CHANGED
|
@@ -5,23 +5,29 @@ export type smsPresetsService_Create = RpcMethod<CreateSmsPresetRequest, CreateS
|
|
|
5
5
|
export type smsPresetsService_Update = RpcMethod<UpdateSmsPresetRequest, UpdateSmsPresetResponse>;
|
|
6
6
|
export type smsPresetsService_Delete = RpcMethod<DeleteSmsPresetRequest, DeleteSmsPresetResponse>;
|
|
7
7
|
export interface smsPresetsService {
|
|
8
|
+
/** Lists SMS presets (reusable SMS message templates) for an application, with paging, ordering and optional name/category filters. Use to browse presets or find an SMS preset code before fetching, updating or deleting one. */
|
|
8
9
|
List: smsPresetsService_List;
|
|
10
|
+
/** Returns a single SMS preset by its preset code, including name, categories and per-locale content. Use after list_sms_presets to inspect one template. */
|
|
9
11
|
Get: smsPresetsService_Get;
|
|
12
|
+
/** Creates a new SMS preset (reusable SMS template) in an application from a name, categories and per-locale content, returning the generated preset code. Additive — each call creates a distinct preset. */
|
|
10
13
|
Create: smsPresetsService_Create;
|
|
14
|
+
/** Updates an existing SMS preset identified by its preset code, overwriting name, categories and per-locale content. Use to edit a template found via list_sms_presets. */
|
|
11
15
|
Update: smsPresetsService_Update;
|
|
16
|
+
/** Permanently deletes an SMS preset by its preset code. Fails if the preset is used by a running or paused journey; deletion cannot be undone. */
|
|
12
17
|
Delete: smsPresetsService_Delete;
|
|
13
18
|
}
|
|
14
19
|
export type ListSmsPresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
15
20
|
export type ListSmsPresetsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
16
21
|
export type ListSmsPresetsRequest = {
|
|
22
|
+
/** Application code (XXXXX-XXXXX) whose SMS presets to list. */
|
|
17
23
|
application?: string;
|
|
18
24
|
orderBy?: ListSmsPresetsRequest_OrderBy;
|
|
19
25
|
orderDirection?: ListSmsPresetsRequest_OrderDirection;
|
|
20
26
|
page?: number;
|
|
21
27
|
perPage?: number;
|
|
22
|
-
/**
|
|
28
|
+
/** Free-text filter matched (case-insensitive substring) against preset name and code. */
|
|
23
29
|
searchByName?: string;
|
|
24
|
-
/**
|
|
30
|
+
/** Keep only presets tagged with one of these category names. */
|
|
25
31
|
searchByCategory?: string[];
|
|
26
32
|
};
|
|
27
33
|
export type SmsPreset = {
|
|
@@ -40,12 +46,14 @@ export type ListSmsPresetsResponse = {
|
|
|
40
46
|
total: number;
|
|
41
47
|
};
|
|
42
48
|
export type GetSmsPresetRequest = {
|
|
49
|
+
/** SMS preset code identifying the preset to fetch. */
|
|
43
50
|
code?: string;
|
|
44
51
|
};
|
|
45
52
|
export type GetSmsPresetResponse = {
|
|
46
53
|
preset: SmsPreset;
|
|
47
54
|
};
|
|
48
55
|
export type CreateSmsPresetRequest = {
|
|
56
|
+
/** Application code (XXXXX-XXXXX) the new preset belongs to. */
|
|
49
57
|
application?: string;
|
|
50
58
|
name?: string;
|
|
51
59
|
categories?: string[];
|
|
@@ -56,6 +64,7 @@ export type CreateSmsPresetResponse = {
|
|
|
56
64
|
preset: SmsPreset;
|
|
57
65
|
};
|
|
58
66
|
export type UpdateSmsPresetRequest = {
|
|
67
|
+
/** SMS preset code identifying the preset to update. */
|
|
59
68
|
code?: string;
|
|
60
69
|
name?: string;
|
|
61
70
|
categories?: string[];
|
|
@@ -66,6 +75,7 @@ export type UpdateSmsPresetResponse = {
|
|
|
66
75
|
preset: SmsPreset;
|
|
67
76
|
};
|
|
68
77
|
export type DeleteSmsPresetRequest = {
|
|
78
|
+
/** SMS preset code identifying the preset to delete. */
|
|
69
79
|
code?: string;
|
|
70
80
|
};
|
|
71
81
|
export type DeleteSmsPresetResponse = {};
|
|
@@ -7,11 +7,17 @@ export type StatisticsDashboardsService_Update = RpcMethod<UpdateDashboardReques
|
|
|
7
7
|
export type StatisticsDashboardsService_Delete = RpcMethod<DeleteDashboardRequest, DeleteDashboardResponse>;
|
|
8
8
|
export type StatisticsDashboardsService_WidgetsList = RpcMethod<WidgetsListRequest, WidgetsListResponse>;
|
|
9
9
|
export interface StatisticsDashboardsService {
|
|
10
|
+
/** Returns a single statistics dashboard by its dashboard code, with name and created/updated timestamps. Use to inspect one dashboard found via list_dashboards. */
|
|
10
11
|
Load: StatisticsDashboardsService_Load;
|
|
12
|
+
/** Lists statistics dashboards of an application (application code XXXXX-XXXXX), sorted by name, with an optional free-text name filter. Use to browse dashboards or find a dashboard code before loading it or its widgets. */
|
|
11
13
|
List: StatisticsDashboardsService_List;
|
|
14
|
+
/** Creates a new empty statistics dashboard with the given name in an application (application code XXXXX-XXXXX) and returns its generated code. Use to start a new dashboard before adding widgets. */
|
|
12
15
|
Create: StatisticsDashboardsService_Create;
|
|
16
|
+
/** Renames an existing statistics dashboard identified by its dashboard code and bumps its updated timestamp. Use to change a dashboard's display name; overwrites the current name. */
|
|
13
17
|
Update: StatisticsDashboardsService_Update;
|
|
18
|
+
/** Permanently deletes a statistics dashboard by its dashboard code. Irreversible; a second call for the same code errors because the dashboard no longer exists. */
|
|
14
19
|
Delete: StatisticsDashboardsService_Delete;
|
|
20
|
+
/** Lists the widgets belonging to a statistics dashboard (by dashboard code), with their type, size, position and params. Legacy endpoint kept for older frontend clients; prefer the StatisticsDashboardsWidgets service for widget access. */
|
|
15
21
|
WidgetsList: StatisticsDashboardsService_WidgetsList;
|
|
16
22
|
}
|
|
17
23
|
export type Dashboard = {
|
|
@@ -21,32 +27,41 @@ export type Dashboard = {
|
|
|
21
27
|
updated: Date;
|
|
22
28
|
};
|
|
23
29
|
export type LoadDashboardRequest = {
|
|
30
|
+
/** Dashboard code to load. */
|
|
24
31
|
code?: string;
|
|
25
32
|
};
|
|
26
33
|
export type ListDashboardRequest = {
|
|
34
|
+
/** Application code (XXXXX-XXXXX) whose dashboards to list. */
|
|
27
35
|
application?: string;
|
|
36
|
+
/** Optional free-text substring; case-insensitively matches the dashboard name. */
|
|
28
37
|
searchByName?: string;
|
|
29
38
|
};
|
|
30
39
|
export type ListDashboardResponse = {
|
|
31
40
|
dashboards: Dashboard[];
|
|
32
41
|
};
|
|
33
42
|
export type CreateDashboardRequest = {
|
|
43
|
+
/** Display name for the new dashboard (max 128 characters). */
|
|
34
44
|
name?: string;
|
|
45
|
+
/** Application code (XXXXX-XXXXX) the dashboard belongs to. */
|
|
35
46
|
application?: string;
|
|
36
47
|
};
|
|
37
48
|
export type CreateDashboardResponse = {
|
|
38
49
|
dashboard: Dashboard;
|
|
39
50
|
};
|
|
40
51
|
export type UpdateDashboardRequest = {
|
|
52
|
+
/** Dashboard code to update. */
|
|
41
53
|
code?: string;
|
|
54
|
+
/** New display name (max 128 characters). */
|
|
42
55
|
name?: string;
|
|
43
56
|
};
|
|
44
57
|
export type UpdateDashboardResponse = {};
|
|
45
58
|
export type DeleteDashboardRequest = {
|
|
59
|
+
/** Dashboard code to delete. */
|
|
46
60
|
code?: string;
|
|
47
61
|
};
|
|
48
62
|
export type DeleteDashboardResponse = {};
|
|
49
63
|
export type WidgetsListRequest = {
|
|
64
|
+
/** Dashboard code whose widgets to list. */
|
|
50
65
|
code?: string;
|
|
51
66
|
};
|
|
52
67
|
export type WidgetsListResponse = {
|
|
@@ -23,23 +23,25 @@ export type StatisticsDashboardsWidgetsService_GetCategoryTree = RpcMethod<GetCa
|
|
|
23
23
|
* - If a breakdown is applied to a chart, that chart MUST display ONLY ONE metric.
|
|
24
24
|
*/
|
|
25
25
|
export interface StatisticsDashboardsWidgetsService {
|
|
26
|
-
/**
|
|
26
|
+
/** Retrieves a single statistics dashboard widget (chart) by its widget code, including its metrics, filters and visualization settings. Use after list_dashboard_widgets to inspect one chart's full configuration. */
|
|
27
27
|
Load: StatisticsDashboardsWidgetsService_Load;
|
|
28
|
-
/**
|
|
28
|
+
/** Lists all widgets (charts) belonging to a statistics dashboard, ordered by index_number. Use to enumerate a dashboard's charts before loading, updating or deleting one. */
|
|
29
29
|
List: StatisticsDashboardsWidgetsService_List;
|
|
30
|
-
/**
|
|
30
|
+
/** Adds a new widget (chart) to a statistics dashboard for an application, with its metrics, filters, size and visualization type. Each call creates a distinct widget with a new generated code. */
|
|
31
31
|
Create: StatisticsDashboardsWidgetsService_Create;
|
|
32
|
-
/**
|
|
32
|
+
/** Updates an existing dashboard widget identified by its widget code, overwriting the supplied name, type, size, index and chart params. Only non-empty fields are applied; re-sending the same values yields the same widget state. */
|
|
33
33
|
Update: StatisticsDashboardsWidgetsService_Update;
|
|
34
|
-
/**
|
|
34
|
+
/** Permanently removes a widget (chart) from its dashboard by widget code. Irreversible; a second call for the same code fails because the widget no longer exists. */
|
|
35
35
|
Delete: StatisticsDashboardsWidgetsService_Delete;
|
|
36
|
-
/**
|
|
36
|
+
/** Fetches time-series data points over the requested time range for a chart's metrics, for rendering line and bar charts. Use for LINE/BARS widgets; use get_dashboard_widget_totals for pie/number aggregates and get_dashboard_widget_funnel for funnels. */
|
|
37
37
|
GetLinearChartMetrics: StatisticsDashboardsWidgetsService_GetLinearChartMetrics;
|
|
38
|
-
/**
|
|
38
|
+
/** Fetches aggregated total values (one number per metric/breakdown) for the requested time range, for pie charts and single-value NUMBER widgets. Use for PIE/NUMBER widgets instead of the linear (time-series) variant. */
|
|
39
39
|
GetTotalsChartMetrics: StatisticsDashboardsWidgetsService_GetTotalsChartMetrics;
|
|
40
|
-
/**
|
|
40
|
+
/** Fetches funnel data (per-step user counts and conversion percentages) where the chart's metrics list defines the sequential funnel steps. Use for FUNNEL widgets to see drop-off between steps. */
|
|
41
41
|
GetFunnel: StatisticsDashboardsWidgetsService_GetFunnel;
|
|
42
42
|
/**
|
|
43
|
+
* Returns the hierarchical tree of standard metrics plus the application's custom events and account tags that can be selected when configuring a widget. Call first to discover valid metric IDs, event names, value types and available filters before creating or updating a widget.
|
|
44
|
+
*
|
|
43
45
|
* GetCategoryTree returns the hierarchical tree of all available metrics, events, and tags that can be selected in widgets.
|
|
44
46
|
* This includes:
|
|
45
47
|
* - Standard metrics from the "Metrics tree" (Push Sends, Email Opens, Subscribers, DAU, MAU, etc.)
|
package/subscription_prompt.d.ts
CHANGED
|
@@ -4,23 +4,31 @@ export type SubscriptionPromptService_SetUseCase = RpcMethod<SetUseCaseRequest,
|
|
|
4
4
|
export type SubscriptionPromptService_GetWidget = RpcMethod<GetWidgetRequest, GetWidgetResponse>;
|
|
5
5
|
export type SubscriptionPromptService_SetWidget = RpcMethod<SetWidgetRequest, SetWidgetResponse>;
|
|
6
6
|
export interface SubscriptionPromptService {
|
|
7
|
+
/** Returns the subscription-prompt use case configured for an application (one of not-used, default, topic-based, or not-set when unconfigured). Use to check how an application asks visitors for push permission. */
|
|
7
8
|
GetUseCase: SubscriptionPromptService_GetUseCase;
|
|
9
|
+
/** Sets the subscription-prompt use case for an application (must be not-used, default or topic-based), overwriting any previous value. Use to switch how the application requests push subscription; get_subscription_prompt_use_case reads the current value. */
|
|
8
10
|
SetUseCase: SubscriptionPromptService_SetUseCase;
|
|
11
|
+
/** Returns the subscription-prompt widget configured for an application, including its code, type and params, or empty when none is set. Use to inspect the current prompt widget before updating it. */
|
|
9
12
|
GetWidget: SubscriptionPromptService_GetWidget;
|
|
13
|
+
/** Creates or overwrites the subscription-prompt widget for an application with the given type and params. Use to configure the prompt widget; when the use case is default it also syncs the widget into the application property. */
|
|
10
14
|
SetWidget: SubscriptionPromptService_SetWidget;
|
|
11
15
|
}
|
|
12
16
|
export type GetUseCaseRequest = {
|
|
17
|
+
/** Application code (XXXXX-XXXXX) whose subscription-prompt use case is read. */
|
|
13
18
|
applicationCode?: string;
|
|
14
19
|
};
|
|
15
20
|
export type GetUseCaseResponse = {
|
|
16
21
|
useCase: string;
|
|
17
22
|
};
|
|
18
23
|
export type SetUseCaseRequest = {
|
|
24
|
+
/** Application code (XXXXX-XXXXX) whose subscription-prompt use case is set. */
|
|
19
25
|
applicationCode?: string;
|
|
26
|
+
/** Use case to apply: not-used, default or topic-based. */
|
|
20
27
|
useCase?: string;
|
|
21
28
|
};
|
|
22
29
|
export type SetUseCaseResponse = {};
|
|
23
30
|
export type GetWidgetRequest = {
|
|
31
|
+
/** Application code (XXXXX-XXXXX) whose subscription-prompt widget is read. */
|
|
24
32
|
applicationCode?: string;
|
|
25
33
|
};
|
|
26
34
|
export type GetWidgetResponse = {
|
|
@@ -29,8 +37,11 @@ export type GetWidgetResponse = {
|
|
|
29
37
|
params: object;
|
|
30
38
|
};
|
|
31
39
|
export type SetWidgetRequest = {
|
|
40
|
+
/** Application code (XXXXX-XXXXX) whose subscription-prompt widget is created or overwritten. */
|
|
32
41
|
applicationCode?: string;
|
|
42
|
+
/** Widget type identifier to store for the prompt. */
|
|
33
43
|
type?: string;
|
|
44
|
+
/** Arbitrary widget configuration stored as JSON params. */
|
|
34
45
|
params?: object;
|
|
35
46
|
};
|
|
36
47
|
export type SetWidgetResponse = {};
|
package/tags.d.ts
CHANGED
|
@@ -6,14 +6,21 @@ export type TagsService_List = RpcMethod<ListTagsRequest, ListTagsResponse>;
|
|
|
6
6
|
export type TagsService_GetTagValues = RpcMethod<GetTagValuesRequest, GetTagValuesResponse>;
|
|
7
7
|
export type TagsService_GetTagUsage = RpcMethod<GetTagUsageRequest, GetTagUsageResponse>;
|
|
8
8
|
export interface TagsService {
|
|
9
|
+
/** Returns a single account tag (user/device attribute) by name, including its value type and whether it is system-defined or user-specific. Use after list_tags to inspect one tag before editing segments or profiles. */
|
|
9
10
|
Get: TagsService_Get;
|
|
11
|
+
/** Creates a new account tag with the given name and value type. Fails if a tag of that name already exists; timezone-typed tags cannot be created here. */
|
|
10
12
|
Create: TagsService_Create;
|
|
13
|
+
/** Permanently deletes an account tag by name. Refuses to delete system or reserved tags, or tags still referenced by any segment, in-app or journey; check get_tag_usage first. */
|
|
11
14
|
Delete: TagsService_Delete;
|
|
15
|
+
/** Lists the account's tags, newest or name-ordered, with paging, name substring search and an optional type filter. Use to browse tags or find a tag name before fetching values or usage. */
|
|
12
16
|
List: TagsService_List;
|
|
17
|
+
/** Returns the distinct stored values of a tag in an application with per-value subscriber counts, filtered by substring and paged. Use to see which values a string/list tag actually holds; integer and price tags return no values. */
|
|
13
18
|
GetTagValues: TagsService_GetTagValues;
|
|
19
|
+
/** Returns the segments, in-apps and journeys that reference a tag by name. Use to find what would break before deleting or editing a tag. */
|
|
14
20
|
GetTagUsage: TagsService_GetTagUsage;
|
|
15
21
|
}
|
|
16
22
|
export type GetTagRequest = {
|
|
23
|
+
/** Tag name to fetch. */
|
|
17
24
|
name?: string;
|
|
18
25
|
};
|
|
19
26
|
export type Tag_Type = 'UNKNOWN' | 'INTEGER' | 'STRING' | 'LIST' | 'DATE' | 'BOOLEAN' | 'PRICE' | 'VERSION' | 'TIMEZONE';
|
|
@@ -25,14 +32,18 @@ export type Tag = {
|
|
|
25
32
|
hasRightAceModify: boolean;
|
|
26
33
|
};
|
|
27
34
|
export type CreateTagRequest = {
|
|
35
|
+
/** Tag name to create (letters, digits, spaces and dashes; max 64 chars). */
|
|
28
36
|
name?: string;
|
|
37
|
+
/** Value type of the tag; TIMEZONE is not allowed here. */
|
|
29
38
|
type?: Tag_Type;
|
|
39
|
+
/** If true the tag is stored per user id rather than per device. */
|
|
30
40
|
userSpecific?: boolean;
|
|
31
41
|
};
|
|
32
42
|
export type CreateTagResponse = {
|
|
33
43
|
tag: Tag;
|
|
34
44
|
};
|
|
35
45
|
export type DeleteTagRequest = {
|
|
46
|
+
/** Tag name to delete. */
|
|
36
47
|
name?: string;
|
|
37
48
|
};
|
|
38
49
|
export type DeleteTagResponse = {};
|
|
@@ -58,9 +69,11 @@ export type GetTagValuesRequest_OrderBy = 'VALUE' | 'COUNT';
|
|
|
58
69
|
export type GetTagValuesRequest_OrderDirection = 'ASC' | 'DESC';
|
|
59
70
|
export type GetTagValuesRequest_LikeOperator = 'STARTS_WITH' | 'ENDS_WITH' | 'CONTAINS';
|
|
60
71
|
export type GetTagValuesRequest = {
|
|
72
|
+
/** Application code (format XXXXX-XXXXX) whose stored tag values to count. */
|
|
61
73
|
application?: string;
|
|
74
|
+
/** Tag name whose values to return. */
|
|
62
75
|
name?: string;
|
|
63
|
-
/**
|
|
76
|
+
/** Substring to filter values by, applied per like_op. */
|
|
64
77
|
like?: string;
|
|
65
78
|
likeOp?: GetTagValuesRequest_LikeOperator;
|
|
66
79
|
orderBy?: GetTagValuesRequest_OrderBy;
|
|
@@ -82,6 +95,7 @@ export type GetTagValuesResponse = {
|
|
|
82
95
|
perPage: number;
|
|
83
96
|
};
|
|
84
97
|
export type GetTagUsageRequest = {
|
|
98
|
+
/** Tag name whose references (segments, in-apps, journeys) to return. */
|
|
85
99
|
name?: string;
|
|
86
100
|
};
|
|
87
101
|
export type GetTagUsageResponse_Journey = {
|
package/test_devices.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ export type TestDevicesService_Verify = RpcMethod<VerifyRequest, VerifyResponse>
|
|
|
4
4
|
export type TestDevicesService_List = RpcMethod<ListRequest, ListResponse>;
|
|
5
5
|
export type TestDevicesService_Delete = RpcMethod<DeleteRequest, DeleteResponse>;
|
|
6
6
|
export interface TestDevicesService {
|
|
7
|
-
/**
|
|
7
|
+
/** Registers a test device for an application by push token or HWID; for email, SMS, WhatsApp and LINE platforms it instead sends a verification code to the device and returns needs_verify=true, requiring verify_test_device to finish. Use to add a device that receives test sends. */
|
|
8
8
|
Create: TestDevicesService_Create;
|
|
9
|
-
/**
|
|
9
|
+
/** Confirms a pending email, SMS, WhatsApp or LINE test device using the verification code sent by create_test_device, then creates the test device record. Use only after create_test_device returned needs_verify=true. */
|
|
10
10
|
Verify: TestDevicesService_Verify;
|
|
11
|
-
/**
|
|
11
|
+
/** Lists all test devices registered for an application (application code XXXXX-XXXXX) with name, push token, HWID and platform. Use to see which devices receive test sends before adding or removing one. */
|
|
12
12
|
List: TestDevicesService_List;
|
|
13
|
-
/**
|
|
13
|
+
/** Removes a test device from an application by HWID or push token and clears its PW_TestDevice tag on the device. Use to stop a device from receiving test sends; cannot be undone. */
|
|
14
14
|
Delete: TestDevicesService_Delete;
|
|
15
15
|
}
|
|
16
16
|
export type TestDevice = {
|
package/users.d.ts
CHANGED
|
@@ -3,11 +3,15 @@ export type UsersService_UpdateUser = RpcMethod<UpdateUserRequest, UpdateUserRes
|
|
|
3
3
|
export type UsersService_GetMailingSettings = RpcMethod<GetMailingSettingsRequest, GetMailingSettingsResponse>;
|
|
4
4
|
export type UsersService_UpdateMailingSettings = RpcMethod<UpdateMailingSettingsRequest, UpdateMailingSettingsResponse>;
|
|
5
5
|
export interface UsersService {
|
|
6
|
+
/** Updates the current dashboard user's own profile settings (currently the timezone), validating the value against IANA timezone names. Use to change the signed-in account user's timezone; affects only the caller, not devices or end users. */
|
|
6
7
|
UpdateUser: UsersService_UpdateUser;
|
|
8
|
+
/** Returns the current dashboard user's email notification (mailing) preferences: newsletters, global daily stats, and per-category system notification toggles. Use to read which Pushwoosh emails the signed-in user has opted into. */
|
|
7
9
|
GetMailingSettings: UsersService_GetMailingSettings;
|
|
10
|
+
/** Overwrites all of the current dashboard user's email notification (mailing) preferences with the supplied flags, and mirrors the marketing-newsletter opt-in as a device tag. Use to change which Pushwoosh emails the signed-in user receives; every flag is set to the request value, so omitted flags become false. */
|
|
8
11
|
UpdateMailingSettings: UsersService_UpdateMailingSettings;
|
|
9
12
|
}
|
|
10
13
|
export type UpdateUserRequest = {
|
|
14
|
+
/** IANA timezone name (e.g. Europe/London) to set for the current user; leave empty to keep the existing timezone. */
|
|
11
15
|
timezone?: string;
|
|
12
16
|
};
|
|
13
17
|
export type UpdateUserResponse = {};
|
|
@@ -21,11 +25,17 @@ export type GetMailingSettingsResponse = {
|
|
|
21
25
|
allowNotificationDisablePlatform: boolean;
|
|
22
26
|
};
|
|
23
27
|
export type UpdateMailingSettingsRequest = {
|
|
28
|
+
/** Opt in to marketing newsletter emails. */
|
|
24
29
|
allowNewsletters?: boolean;
|
|
30
|
+
/** Opt in to the daily statistics summary email across all applications. */
|
|
25
31
|
allowDailyStatsGlobal?: boolean;
|
|
32
|
+
/** Opt in to new-subscribers notification emails. */
|
|
26
33
|
allowNotificationSubscribers?: boolean;
|
|
34
|
+
/** Opt in to iOS certificate/license expiration notification emails. */
|
|
27
35
|
allowNotificationIosLicense?: boolean;
|
|
36
|
+
/** Opt in to user-inactivity notification emails. */
|
|
28
37
|
allowNotificationUserInactivity?: boolean;
|
|
38
|
+
/** Opt in to platform-disabled notification emails. */
|
|
29
39
|
allowNotificationDisablePlatform?: boolean;
|
|
30
40
|
};
|
|
31
41
|
export type UpdateMailingSettingsResponse = {
|
package/viber_presets.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { RpcMethod } from './commonTypes';
|
|
2
2
|
export type ViberPresetsService_List = RpcMethod<ListViberPresetsRequest, ListViberPresetsResponse>;
|
|
3
3
|
export interface ViberPresetsService {
|
|
4
|
+
/** Lists approved Viber transactional message templates for an application, fetched live from the external MStat Omni Messaging provider. Use to pick a Viber template code before composing a Viber send; only templates in the approved status are returned. */
|
|
4
5
|
List: ViberPresetsService_List;
|
|
5
6
|
}
|
|
6
7
|
export type ListViberPresetsRequest = {
|
|
8
|
+
/** Application code (format XXXXX-XXXXX) whose Viber transactional templates are listed. */
|
|
7
9
|
application?: string;
|
|
8
10
|
};
|
|
9
11
|
export type ListViberPresetsResponse = {
|
package/vouchers.d.ts
CHANGED
|
@@ -7,31 +7,49 @@ export type VouchersService_GetPoolStats = RpcMethod<GetPoolStatsRequest, GetPoo
|
|
|
7
7
|
export type VouchersService_DeleteVouchers = RpcMethod<DeleteVouchersRequest, DeleteVouchersResponse>;
|
|
8
8
|
export type VouchersService_DeletePool = RpcMethod<DeletePoolRequest, DeletePoolResponse>;
|
|
9
9
|
export interface VouchersService {
|
|
10
|
+
/** Lists voucher pools for an application (code XXXXX-XXXXX) with paging and an optional name search, returning each pool's total and free voucher counts. Use to browse pools or find a pool name before fetching stats, exporting, or adding vouchers. */
|
|
10
11
|
GetPools: VouchersService_GetPools;
|
|
12
|
+
/** Creates a new voucher pool in an application (code XXXXX-XXXXX) with an optional expiry date and optional initial voucher codes. Use to set up a pool; use create_vouchers to add codes to an existing pool. */
|
|
11
13
|
CreatePool: VouchersService_CreatePool;
|
|
14
|
+
/** Adds voucher codes to an existing pool in an application (code XXXXX-XXXXX), up to 10000 codes per request. Use to top up a pool created earlier; create_voucher_pool creates the pool itself. */
|
|
12
15
|
AddVouchers: VouchersService_AddVouchers;
|
|
16
|
+
/** Generates a ZIP containing a CSV of every voucher in a pool (code, status, user id, used-at timestamp) and returns its download URL. Use to download the full contents of a pool for an application (code XXXXX-XXXXX). */
|
|
13
17
|
ExportVouchers: VouchersService_ExportVouchers;
|
|
18
|
+
/** Returns total and free (unused) voucher counts for a single pool in an application (code XXXXX-XXXXX). Use for a quick availability check on one pool without listing all pools. */
|
|
14
19
|
GetPoolStats: VouchersService_GetPoolStats;
|
|
20
|
+
/** Deletes specific voucher codes from a pool in an application (code XXXXX-XXXXX), up to 10000 codes per request. Removes only the listed codes; use delete_voucher_pool to remove the whole pool. */
|
|
15
21
|
DeleteVouchers: VouchersService_DeleteVouchers;
|
|
22
|
+
/** Deletes an entire voucher pool and all of its vouchers from an application (code XXXXX-XXXXX). Irreversible; use delete_vouchers to remove only selected codes. */
|
|
16
23
|
DeletePool: VouchersService_DeletePool;
|
|
17
24
|
}
|
|
18
25
|
export type CreatePoolRequest = {
|
|
26
|
+
/** Application code (XXXXX-XXXXX) the pool belongs to. */
|
|
19
27
|
application?: string;
|
|
28
|
+
/** Name for the new voucher pool. */
|
|
20
29
|
name?: string;
|
|
30
|
+
/** Optional expiry date after which the pool's vouchers are no longer valid; must be in the future. */
|
|
21
31
|
expiry?: Date;
|
|
32
|
+
/** Optional initial voucher codes to seed the pool with. */
|
|
22
33
|
vouchers?: string[];
|
|
23
34
|
};
|
|
24
35
|
export type CreatePoolResponse = {};
|
|
25
36
|
export type AddVouchersRequest = {
|
|
37
|
+
/** Application code (XXXXX-XXXXX) the pool belongs to. */
|
|
26
38
|
application?: string;
|
|
39
|
+
/** Name of the voucher pool to add codes to. */
|
|
27
40
|
pool?: string;
|
|
41
|
+
/** Voucher codes to add to the pool. */
|
|
28
42
|
vouchers?: string[];
|
|
29
43
|
};
|
|
30
44
|
export type AddVouchersResponse = {};
|
|
31
45
|
export type GetPoolsRequest = {
|
|
46
|
+
/** Application code (XXXXX-XXXXX) whose pools to list. */
|
|
32
47
|
application?: string;
|
|
48
|
+
/** Number of pools per page. */
|
|
33
49
|
perPage?: number;
|
|
50
|
+
/** Zero-based page number. */
|
|
34
51
|
page?: number;
|
|
52
|
+
/** Optional free-text filter matching pool names. */
|
|
35
53
|
searchByName?: string;
|
|
36
54
|
};
|
|
37
55
|
export type GetPoolsResponse = {
|
|
@@ -46,7 +64,9 @@ export type Pool = {
|
|
|
46
64
|
freeVouchers: number;
|
|
47
65
|
};
|
|
48
66
|
export type ExportVouchersRequest = {
|
|
67
|
+
/** Application code (XXXXX-XXXXX) the pool belongs to. */
|
|
49
68
|
application?: string;
|
|
69
|
+
/** Name of the voucher pool to export. */
|
|
50
70
|
pool?: string;
|
|
51
71
|
};
|
|
52
72
|
export type ExportVouchersResponse = {
|
|
@@ -54,7 +74,9 @@ export type ExportVouchersResponse = {
|
|
|
54
74
|
filename: string;
|
|
55
75
|
};
|
|
56
76
|
export type GetPoolStatsRequest = {
|
|
77
|
+
/** Application code (XXXXX-XXXXX) the pool belongs to. */
|
|
57
78
|
application?: string;
|
|
79
|
+
/** Name of the voucher pool to get stats for. */
|
|
58
80
|
pool?: string;
|
|
59
81
|
};
|
|
60
82
|
export type GetPoolStatsResponse = {
|
|
@@ -62,13 +84,18 @@ export type GetPoolStatsResponse = {
|
|
|
62
84
|
freeVouchers: number;
|
|
63
85
|
};
|
|
64
86
|
export type DeleteVouchersRequest = {
|
|
87
|
+
/** Application code (XXXXX-XXXXX) the pool belongs to. */
|
|
65
88
|
application?: string;
|
|
89
|
+
/** Name of the voucher pool to delete codes from. */
|
|
66
90
|
pool?: string;
|
|
91
|
+
/** Voucher codes to delete from the pool. */
|
|
67
92
|
vouchers?: string[];
|
|
68
93
|
};
|
|
69
94
|
export type DeleteVouchersResponse = {};
|
|
70
95
|
export type DeletePoolRequest = {
|
|
96
|
+
/** Application code (XXXXX-XXXXX) the pool belongs to. */
|
|
71
97
|
application?: string;
|
|
98
|
+
/** Name of the voucher pool to delete. */
|
|
72
99
|
pool?: string;
|
|
73
100
|
};
|
|
74
101
|
export type DeletePoolResponse = {};
|
package/whatsapp.d.ts
CHANGED
|
@@ -4,33 +4,37 @@ export type WhatsAppService_RegisterWABATwilio = RpcMethod<RegisterWABATwilioReq
|
|
|
4
4
|
export type WhatsAppService_AuthResponseCode = RpcMethod<AuthResponseCodeRequest, AuthResponseCodeResponse>;
|
|
5
5
|
export type WhatsAppService_FetchCatalog = RpcMethod<FetchCatalogRequest, FetchCatalogResponse>;
|
|
6
6
|
export interface WhatsAppService {
|
|
7
|
+
/** Connects a WhatsApp Business Account to an application code via Meta Cloud API, storing the WABA and phone-number IDs, subscribing the number to Pushwoosh webhooks and registering it with Meta. Use for direct Meta onboarding; use connect_whatsapp_account_twilio for Twilio-routed senders. */
|
|
7
8
|
RegisterWABA: WhatsAppService_RegisterWABA;
|
|
9
|
+
/** Connects a WhatsApp Business Account through Twilio for an application code, provisioning a Twilio subaccount, messaging service and sender. Use when the WhatsApp number is routed via Twilio rather than Meta Cloud API directly. */
|
|
8
10
|
RegisterWABATwilio: WhatsAppService_RegisterWABATwilio;
|
|
9
|
-
/**
|
|
10
|
-
* When the user completes the login dialog flow we will redirect the user to your redirect URL and include a code.
|
|
11
|
-
* You must then exchange this code for an access token by performing a server-to-server call to Meta servers.
|
|
12
|
-
*/
|
|
11
|
+
/** Completes WhatsApp embedded signup by exchanging the Meta OAuth authorization code for an access token and storing it on the application code. Call after the Meta login dialog redirects back with a code, before connect_whatsapp_account. */
|
|
13
12
|
AuthResponseCode: WhatsAppService_AuthResponseCode;
|
|
14
|
-
/**
|
|
13
|
+
/** Returns the WhatsApp Business catalog and its products for an application code by querying Meta. Use to list products available for WhatsApp product messages; a WABA has at most one catalog. */
|
|
15
14
|
FetchCatalog: WhatsAppService_FetchCatalog;
|
|
16
15
|
}
|
|
17
16
|
export type RegisterWABARequest = {
|
|
18
17
|
/** application code */
|
|
19
18
|
application?: string;
|
|
19
|
+
/** WhatsApp Business Account (WABA) ID from Meta */
|
|
20
20
|
wabaId?: string;
|
|
21
|
+
/** Meta phone number ID of the WhatsApp sender */
|
|
21
22
|
phonenumberId?: string;
|
|
22
23
|
};
|
|
23
24
|
export type RegisterWABAResponse = {};
|
|
24
25
|
export type AuthResponseCodeRequest = {
|
|
25
26
|
/** application code */
|
|
26
27
|
application?: string;
|
|
28
|
+
/** OAuth authorization code returned by the Meta login dialog */
|
|
27
29
|
code?: string;
|
|
28
30
|
};
|
|
29
31
|
export type AuthResponseCodeResponse = {};
|
|
30
32
|
export type RegisterWABATwilioRequest = {
|
|
31
33
|
/** application code */
|
|
32
34
|
application?: string;
|
|
35
|
+
/** WhatsApp Business Account (WABA) ID from Meta */
|
|
33
36
|
wabaId?: string;
|
|
37
|
+
/** Meta phone number ID of the WhatsApp sender */
|
|
34
38
|
phonenumberId?: string;
|
|
35
39
|
};
|
|
36
40
|
export type RegisterWABATwilioResponse = {};
|
package/whatsapp_presets.d.ts
CHANGED
|
@@ -2,12 +2,15 @@ import { RpcMethod } from './commonTypes';
|
|
|
2
2
|
export type WhatsAppPresetsService_List = RpcMethod<ListWhatsAppPresetsRequest, ListWhatsAppPresetsResponse>;
|
|
3
3
|
export type WhatsAppPresetsService_Get = RpcMethod<GetWhatsAppPresetRequest, GetWhatsAppPresetResponse>;
|
|
4
4
|
export interface WhatsAppPresetsService {
|
|
5
|
+
/** Lists APPROVED WhatsApp message templates (presets) for an application by querying the Meta WhatsApp Business API, optionally filtered by name or body content. Use to browse a project's WhatsApp presets or find a preset code before fetching one with get_whatsapp_preset. */
|
|
5
6
|
List: WhatsAppPresetsService_List;
|
|
7
|
+
/** Returns a single WhatsApp preset by its code (template name, format templateName:language) from the Meta WhatsApp Business API, including body text, header, buttons and variables. Use after list_whatsapp_presets to inspect one preset. */
|
|
6
8
|
Get: WhatsAppPresetsService_Get;
|
|
7
9
|
}
|
|
8
10
|
export type ListWhatsAppPresetsRequest = {
|
|
11
|
+
/** Application code (format XXXXX-XXXXX) whose WhatsApp presets to list; must have the WhatsApp platform configured. */
|
|
9
12
|
application?: string;
|
|
10
|
-
/**
|
|
13
|
+
/** Free-text filter matched against preset name or body content (Meta name_or_content). */
|
|
11
14
|
searchByName?: string;
|
|
12
15
|
};
|
|
13
16
|
export type WhatsAppPreset = {
|
|
@@ -44,7 +47,9 @@ export type ListWhatsAppPresetsResponse = {
|
|
|
44
47
|
total: number;
|
|
45
48
|
};
|
|
46
49
|
export type GetWhatsAppPresetRequest = {
|
|
50
|
+
/** Preset code (WhatsApp template name, format templateName:language) to fetch. */
|
|
47
51
|
code?: string;
|
|
52
|
+
/** Application code (format XXXXX-XXXXX) the preset belongs to; must have the WhatsApp platform configured. */
|
|
48
53
|
application?: string;
|
|
49
54
|
};
|
|
50
55
|
export type GetWhatsAppPresetResponse = {
|