@pushwoosh/rpc-v2-http-api-data 0.2.65 → 0.2.67
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/data.js +4 -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 +21 -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/account_groups.d.ts
CHANGED
|
@@ -8,13 +8,21 @@ export type AccountGroupsService_ListGroupMembers = RpcMethod<ListGroupMembersRe
|
|
|
8
8
|
export type AccountGroupsService_UpdateGroupMembers = RpcMethod<UpdateGroupMembersRequest, UpdateGroupMembersResponse>;
|
|
9
9
|
export type AccountGroupsService_UpdateUserMembership = RpcMethod<UpdateUserMembershipRequest, UpdateUserMembershipResponse>;
|
|
10
10
|
export interface AccountGroupsService {
|
|
11
|
+
/** Returns a single account permission group by name with its map of enabled account/application rights. Use after list_account_groups to inspect one group's permissions. */
|
|
11
12
|
Get: AccountGroupsService_Get;
|
|
13
|
+
/** Lists the account's permission groups with paging and optional name search, each with its rights and member count. Use to browse groups before fetching or editing one. */
|
|
12
14
|
List: AccountGroupsService_List;
|
|
15
|
+
/** Creates a new account permission group with the given name and set of enabled rights. Fails if a group with that name already exists; use update_account_group to change an existing group's rights. */
|
|
13
16
|
Create: AccountGroupsService_Create;
|
|
17
|
+
/** Overwrites the enabled rights of an existing account group by name, granting the listed rights and revoking all others. Use to change a group's permissions; the group name itself is not changed. */
|
|
14
18
|
Update: AccountGroupsService_Update;
|
|
19
|
+
/** Deletes an account group by name and reassigns all its members to reassign_group. Irreversible; the group's rights and its own membership records are removed. */
|
|
15
20
|
Delete: AccountGroupsService_Delete;
|
|
21
|
+
/** Lists all users of the account with a flag showing whether each is a member of the named account group. Use to see who belongs to a group before editing membership. */
|
|
16
22
|
ListGroupMembers: AccountGroupsService_ListGroupMembers;
|
|
23
|
+
/** Adds or removes users in a named account group according to a username/email to enabled map, granting membership where true and revoking it where false. Use to edit one group's member list. */
|
|
17
24
|
UpdateGroupMembers: AccountGroupsService_UpdateGroupMembers;
|
|
25
|
+
/** Sets the full list of account groups a single user belongs to, granting the listed groups and revoking all others. Use to manage one user's group memberships across the account; returns the resulting membership list. */
|
|
18
26
|
UpdateUserMembership: AccountGroupsService_UpdateUserMembership;
|
|
19
27
|
}
|
|
20
28
|
export type ListRequest_OrderBy = 'NAME';
|
|
@@ -24,7 +32,7 @@ export type ListRequest = {
|
|
|
24
32
|
perPage?: number;
|
|
25
33
|
orderBy?: ListRequest_OrderBy;
|
|
26
34
|
orderDirection?: ListRequest_OrderDirection;
|
|
27
|
-
/**
|
|
35
|
+
/** Case-insensitive substring match on account group name (SQL ILIKE '%value%'). */
|
|
28
36
|
searchByName?: string;
|
|
29
37
|
};
|
|
30
38
|
export type ListResponse_AccountGroup = {
|
|
@@ -40,24 +48,28 @@ export type ListResponse = {
|
|
|
40
48
|
total: number;
|
|
41
49
|
};
|
|
42
50
|
export type CreateRequest = {
|
|
51
|
+
/** Name for the new account group; must be unique within the account. */
|
|
43
52
|
name?: string;
|
|
44
53
|
/** right name => enabled */
|
|
45
54
|
rights?: Record<string, boolean>;
|
|
46
55
|
};
|
|
47
56
|
export type CreateResponse = {};
|
|
48
57
|
export type UpdateRequest = {
|
|
58
|
+
/** Name of the existing account group to update. */
|
|
49
59
|
name?: string;
|
|
50
60
|
/** right name => enabled */
|
|
51
61
|
rights?: Record<string, boolean>;
|
|
52
62
|
};
|
|
53
63
|
export type UpdateResponse = {};
|
|
54
64
|
export type DeleteRequest = {
|
|
65
|
+
/** Name of the account group to delete. */
|
|
55
66
|
name?: string;
|
|
56
67
|
/** contains group name, all users will be reassigned to this group */
|
|
57
68
|
reassignGroup?: string;
|
|
58
69
|
};
|
|
59
70
|
export type DeleteResponse = {};
|
|
60
71
|
export type ListGroupMembersRequest = {
|
|
72
|
+
/** Account group name whose members to list. */
|
|
61
73
|
name?: string;
|
|
62
74
|
};
|
|
63
75
|
export type ListGroupMembersResponse_AccountGroupMember = {
|
|
@@ -69,6 +81,7 @@ export type ListGroupMembersResponse = {
|
|
|
69
81
|
accountGroupMembers: ListGroupMembersResponse_AccountGroupMember[];
|
|
70
82
|
};
|
|
71
83
|
export type UpdateGroupMembersRequest = {
|
|
84
|
+
/** Account group name whose members to update. */
|
|
72
85
|
name?: string;
|
|
73
86
|
/** username/email => enabled */
|
|
74
87
|
members?: Record<string, boolean>;
|
|
@@ -85,6 +98,7 @@ export type UpdateUserMembershipResponse = {
|
|
|
85
98
|
groupMembership: string[];
|
|
86
99
|
};
|
|
87
100
|
export type GetRequest = {
|
|
101
|
+
/** Account group name to fetch. */
|
|
88
102
|
name?: string;
|
|
89
103
|
};
|
|
90
104
|
export type GetResponse_AccountGroup = {
|
package/account_invites.d.ts
CHANGED
|
@@ -4,9 +4,13 @@ export type AccountInvitesService_Resend = RpcMethod<ResendRequest, ResendRespon
|
|
|
4
4
|
export type AccountInvitesService_Delete = RpcMethod<DeleteRequest, DeleteResponse>;
|
|
5
5
|
export type AccountInvitesService_Create = RpcMethod<CreateRequest, CreateResponse>;
|
|
6
6
|
export interface AccountInvitesService {
|
|
7
|
+
/** Lists pending team invitations for the current account, newest first, with paging and optional email substring search. Use to see who has been invited to join the account before resending or deleting an invite. */
|
|
7
8
|
List: AccountInvitesService_List;
|
|
9
|
+
/** Re-sends the invitation email for an existing invite identified by its invite code, refreshing its last-sent date. Rate-limited to once per hour per invite; use when the invitee never received or lost the original signup email. */
|
|
8
10
|
Resend: AccountInvitesService_Resend;
|
|
11
|
+
/** Revokes a pending team invitation for the current account, identified by the invitee email, so its signup link stops working. Use to cancel an outstanding invite; differs from resend_account_invite which re-emails it. */
|
|
9
12
|
Delete: AccountInvitesService_Delete;
|
|
13
|
+
/** Invites a user by email to join the current account under a named account group, creating the invite and emailing them a signup link. Use to add a team member; fails if the email is already a user or already has a pending invite. */
|
|
10
14
|
Create: AccountInvitesService_Create;
|
|
11
15
|
}
|
|
12
16
|
export type ListRequest_OrderBy = 'INVITE_DATE' | 'EMAIL' | 'STATUS';
|
|
@@ -16,7 +20,7 @@ export type ListRequest = {
|
|
|
16
20
|
perPage?: number;
|
|
17
21
|
orderBy?: ListRequest_OrderBy;
|
|
18
22
|
orderDirection?: ListRequest_OrderDirection;
|
|
19
|
-
/**
|
|
23
|
+
/** Case-insensitive substring match on invitee email (ILIKE %value%); omit to list all invites. */
|
|
20
24
|
searchByEmail?: string;
|
|
21
25
|
};
|
|
22
26
|
export type ListResponse_Invite = {
|
|
@@ -32,16 +36,19 @@ export type ListResponse = {
|
|
|
32
36
|
total: number;
|
|
33
37
|
};
|
|
34
38
|
export type ResendRequest = {
|
|
39
|
+
/** Invite code (token) identifying which invitation to re-send. */
|
|
35
40
|
code?: string;
|
|
36
41
|
};
|
|
37
42
|
export type ResendResponse = {};
|
|
38
43
|
export type CreateRequest = {
|
|
39
|
-
/**
|
|
44
|
+
/** Name of the account group (permission role) to assign the invited user to. */
|
|
40
45
|
group?: string;
|
|
46
|
+
/** Email address of the person to invite. */
|
|
41
47
|
email?: string;
|
|
42
48
|
};
|
|
43
49
|
export type CreateResponse = {};
|
|
44
50
|
export type DeleteRequest = {
|
|
51
|
+
/** Invitee email address identifying which pending invite to revoke. */
|
|
45
52
|
email?: string;
|
|
46
53
|
};
|
|
47
54
|
export type DeleteResponse = {};
|
package/account_overview.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RpcMethod } from './commonTypes';
|
|
2
2
|
export type AccountOverviewService_GetAccountEntitiesOverview = RpcMethod<GetAccountEntitiesOverviewRequest, GetAccountEntitiesOverviewResponse>;
|
|
3
3
|
export interface AccountOverviewService {
|
|
4
|
+
/** Returns a read-only dashboard snapshot of the current account: its applications (configured platforms, subscriber counts) with per-application counts and recent messages, campaigns, presets, rich media, email templates, in-app messages, events, geozones and customer journeys, plus account-wide user, group, tag and segment summaries. Use for a single overview instead of calling each entity's list endpoint. */
|
|
4
5
|
GetAccountEntitiesOverview: AccountOverviewService_GetAccountEntitiesOverview;
|
|
5
6
|
}
|
|
6
7
|
export type GetAccountEntitiesOverviewRequest = {};
|
package/account_users.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { RpcMethod } from './commonTypes';
|
|
|
2
2
|
export type AccountUsersService_List = RpcMethod<ListRequest, ListResponse>;
|
|
3
3
|
export type AccountUsersService_Delete = RpcMethod<DeleteRequest, DeleteResponse>;
|
|
4
4
|
export interface AccountUsersService {
|
|
5
|
+
/** Lists the team members (dashboard users) of the current account together with a per-group membership map, paged and optionally filtered by email substring or group name. Use to review who has access to the account and which permission groups they belong to. */
|
|
5
6
|
List: AccountUsersService_List;
|
|
7
|
+
/** Removes a team member from the current account by email: revokes their permission-group membership, logs them out, and deletes the user entirely if they belong to no other account. Cannot delete the account owner; a second delete of the same email errors as not-assigned. */
|
|
6
8
|
Delete: AccountUsersService_Delete;
|
|
7
9
|
}
|
|
8
10
|
export type ListRequest_OrderBy = 'EMAIL';
|
|
@@ -12,9 +14,9 @@ export type ListRequest = {
|
|
|
12
14
|
perPage?: number;
|
|
13
15
|
orderBy?: ListRequest_OrderBy;
|
|
14
16
|
orderDirection?: ListRequest_OrderDirection;
|
|
15
|
-
/**
|
|
17
|
+
/** Case-insensitive substring match on user email (SQL ILIKE '%value%'). */
|
|
16
18
|
searchByEmail?: string;
|
|
17
|
-
/** users who
|
|
19
|
+
/** Keep only users who are members of the permission group with this exact name (e.g. "Admins", "Owner"). */
|
|
18
20
|
searchByGroup?: string;
|
|
19
21
|
};
|
|
20
22
|
export type ListResponse_AccountUser = {
|
|
@@ -29,6 +31,7 @@ export type ListResponse = {
|
|
|
29
31
|
total: number;
|
|
30
32
|
};
|
|
31
33
|
export type DeleteRequest = {
|
|
34
|
+
/** Email of the account team member to remove. */
|
|
32
35
|
email?: string;
|
|
33
36
|
};
|
|
34
37
|
export type DeleteResponse = {};
|
package/accounts.d.ts
CHANGED
|
@@ -16,21 +16,37 @@ export type AccountsService_UpdateBillingInfo = RpcMethod<UpdateBillingInfoReque
|
|
|
16
16
|
export type AccountsService_ListChild = RpcMethod<ListChildRequest, ListChildResponse>;
|
|
17
17
|
export type AccountsService_GetAuthHistory = RpcMethod<GetAuthHistoryRequest, GetAuthHistoryResponse>;
|
|
18
18
|
export interface AccountsService {
|
|
19
|
+
/** Returns the current account's email send counters and quotas (daily, monthly, billing-month sends plus paid/free quota and limit). Use for billing/usage views; pass a date range only to also get the count for that window. */
|
|
19
20
|
GetEmailStatisticCount: AccountsService_GetEmailStatisticCount;
|
|
21
|
+
/** Returns monthly active device counts for the account (rolling-month, calendar-month and previous-month). Use for device-based MAU/billing views; pass a date range to also get the count for that window. */
|
|
20
22
|
GetActiveDevicesCount: AccountsService_GetActiveDevicesCount;
|
|
23
|
+
/** Returns the account's push subscriber counts split into push-enabled and push-disabled, optionally restricted to given platform IDs. Use to see how many devices can receive push. */
|
|
21
24
|
GetSubscribersCount: AccountsService_GetSubscribersCount;
|
|
25
|
+
/** Returns monthly active user counts for the account (rolling-month, calendar-month and previous-month). Use for user-based MAU/billing views; pass a date range to also get the count for that window. */
|
|
22
26
|
GetActiveUsersCount: AccountsService_GetActiveUsersCount;
|
|
27
|
+
/** Turns the account's API debug mode on or off; enabling grants a one-hour window, disabling clears it. Requires the account to allow debug mode and the user to manage API access. Use get_account_debug_mode to read the current state. */
|
|
23
28
|
SetDebugMode: AccountsService_SetDebugMode;
|
|
29
|
+
/** Returns whether the account's API debug mode is currently enabled and its expiry time. Use before set_account_debug_mode to check state. */
|
|
24
30
|
GetDebugMode: AccountsService_GetDebugMode;
|
|
31
|
+
/** Returns the account's onboarding state: whether onboarding is active, whether to show the survey, and whether the account has a subscription and at least one application. Use to render the onboarding flow. */
|
|
25
32
|
GetOnboardingInfo: AccountsService_GetOnboardingInfo;
|
|
33
|
+
/** Marks an onboarding step complete or records the chosen plan/survey answers for the account, recalculating whether onboarding stays active. Use to advance the onboarding flow one step at a time. */
|
|
26
34
|
UpdateOnboardingInfo: AccountsService_UpdateOnboardingInfo;
|
|
35
|
+
/** Returns the total number of email subscribers across the account. Use for account-wide email audience size; differs from get_account_email_statistics which reports send counts and quotas. */
|
|
27
36
|
GetTotalEmailSubscribersCount: AccountsService_GetTotalEmailSubscribersCount;
|
|
37
|
+
/** Returns the account's unified monthly active users (combined across channels) and the email-only MAU. Use for cross-channel billing/usage; without a valid date range it defaults to the calendar month. */
|
|
28
38
|
GetUnifiedMAUCount: AccountsService_GetUnifiedMAUCount;
|
|
39
|
+
/** Returns the current account's profile (its name). Use to read the account name shown in the console. */
|
|
29
40
|
GetAccount: AccountsService_GetAccount;
|
|
41
|
+
/** Updates the current account's name. Use to rename the account; the name must be non-empty. */
|
|
30
42
|
UpdateAccount: AccountsService_UpdateAccount;
|
|
43
|
+
/** Returns the account's billing address (contact name, company, tax numbers, country, emails). Use to read the invoicing details shown on the billing page. */
|
|
31
44
|
GetBillingInfo: AccountsService_GetBillingInfo;
|
|
45
|
+
/** Creates or overwrites the account's billing address; only the fields present in the request are changed (validates emails and name lengths). Use to save invoicing details. */
|
|
32
46
|
UpdateBillingInfo: AccountsService_UpdateBillingInfo;
|
|
47
|
+
/** Lists the sub-accounts (child accounts) under the current account, paged and sortable, with optional name substring search. Use to browse a managed/parent account's children. */
|
|
33
48
|
ListChild: AccountsService_ListChild;
|
|
49
|
+
/** Returns the account's login attempt history (email, success/failure, IP, timestamp), paged and sortable, with optional email substring search. Use to audit sign-in activity for the account's users. */
|
|
34
50
|
GetAuthHistory: AccountsService_GetAuthHistory;
|
|
35
51
|
}
|
|
36
52
|
export type GetEmailStatisticCountRequest = {
|
|
@@ -62,6 +78,7 @@ export type GetActiveDevicesCountResponse = {
|
|
|
62
78
|
requestDateActiveDevices: number;
|
|
63
79
|
};
|
|
64
80
|
export type GetSubscribersCountRequest = {
|
|
81
|
+
/** optional platform IDs to restrict the count to; empty = all platforms */
|
|
65
82
|
platforms?: number[];
|
|
66
83
|
};
|
|
67
84
|
export type GetSubscribersCountResponse = {
|
|
@@ -81,6 +98,7 @@ export type GetActiveUsersCountResponse = {
|
|
|
81
98
|
requestDateActiveUsers: number;
|
|
82
99
|
};
|
|
83
100
|
export type SetDebugModeRequest = {
|
|
101
|
+
/** true turns debug mode on for one hour; false turns it off */
|
|
84
102
|
enabled?: boolean;
|
|
85
103
|
};
|
|
86
104
|
export type SetDebugModeResponse = {
|
|
@@ -103,7 +121,9 @@ export type UpdateOnboardingInfoRequest_answer_list = {
|
|
|
103
121
|
answers: string[];
|
|
104
122
|
};
|
|
105
123
|
export type UpdateOnboardingInfoRequest = {
|
|
124
|
+
/** chosen plan name: free, developer, marketing or custom */
|
|
106
125
|
plan?: string;
|
|
126
|
+
/** onboarding step to complete: IsActive, WelcomeScreen, PaywallPlan, GetStarted or ShowSurvey */
|
|
107
127
|
step?: string;
|
|
108
128
|
/** map[string][]string. survey questions->answers map */
|
|
109
129
|
survey?: Record<string, UpdateOnboardingInfoRequest_answer_list>;
|
|
@@ -244,15 +264,25 @@ export type EmailTemplatesService_Test = RpcMethod<TestEmailTemplateRequest, Tes
|
|
|
244
264
|
export type EmailTemplatesService_Migrate = RpcMethod<MigrateRequest, MigrateResponse>;
|
|
245
265
|
export type EmailTemplatesService_Clone = RpcMethod<CloneEmailPresetsRequest, CloneEmailPresetsResponse>;
|
|
246
266
|
export interface EmailTemplatesService {
|
|
267
|
+
/** Creates a new email template (editor content plus a connected email preset) in an application. Use to author a reusable email; returns the generated template code. */
|
|
247
268
|
Create: EmailTemplatesService_Create;
|
|
269
|
+
/** Returns a single email template by its template code, including sender info, per-locale subjects and the full editor content. Use after list_email_templates to inspect one template's content. */
|
|
248
270
|
Get: EmailTemplatesService_Get;
|
|
271
|
+
/** Lists an application's email templates (metadata only, no content) with paging, ordering and filtering by name, label or category. Use to browse templates or find a template code before fetching or editing one. */
|
|
249
272
|
List: EmailTemplatesService_List;
|
|
273
|
+
/** Lists the account's legacy email templates that are not yet connected to a preset in the given application. Use to find legacy templates that can be adopted into an application via connect_legacy_email_template. */
|
|
250
274
|
ListLegacyTemplates: EmailTemplatesService_ListLegacyTemplates;
|
|
275
|
+
/** Updates an existing email template by code, overwriting its name, label, categories, sender info, subjects and editor content. Use to edit a template; supplied fields replace the stored ones. */
|
|
251
276
|
Update: EmailTemplatesService_Update;
|
|
277
|
+
/** Deletes an email template and its connected preset by code, removing the stored content files. Fails if the template is used in a journey; unlike update_email_template this cannot be undone. */
|
|
252
278
|
Delete: EmailTemplatesService_Delete;
|
|
279
|
+
/** Returns the distinct label strings used across an application's email templates. Use to populate a label filter for list_email_templates. */
|
|
253
280
|
GetEmailTemplateLabels: EmailTemplatesService_GetEmailTemplateLabels;
|
|
281
|
+
/** Sends a real test email of a template to one email address, rendering it with optional dynamic-content placeholders. If the app has no configured email platform the address must be a registered test device. Use to preview delivery before broadcasting. */
|
|
254
282
|
Test: EmailTemplatesService_Test;
|
|
283
|
+
/** Connects a legacy email template to an application by creating an email preset for it, so it becomes editable and sendable there. Returns the existing preset code if one already links the template. Use after list_legacy_email_templates to adopt a legacy template. */
|
|
255
284
|
Migrate: EmailTemplatesService_Migrate;
|
|
285
|
+
/** Clones an email template (its content and preset) into a destination application, optionally under a new name. Use to duplicate a template within or across applications; returns the new preset code. */
|
|
256
286
|
Clone: EmailTemplatesService_Clone;
|
|
257
287
|
}
|
|
258
288
|
export type CloneEmailPresetsRequest = {
|
|
@@ -7,6 +7,7 @@ export type GetAuthInfoService_GetAuthInfo = RpcMethod<GetAuthInfoRequest, GetAu
|
|
|
7
7
|
* Пока что просто переношу как есть.
|
|
8
8
|
*/
|
|
9
9
|
export interface GetAuthInfoService {
|
|
10
|
+
/** Returns the current authenticated session context: the signed-in user's profile and notification preferences plus the active account's plan, permissions (ACE flags), restrictions and per-entity counts. Use to resolve who is logged in and what the account can do before other calls. */
|
|
10
11
|
GetAuthInfo: GetAuthInfoService_GetAuthInfo;
|
|
11
12
|
}
|
|
12
13
|
export type GetAuthInfoRequest = {};
|
package/api_tokens.d.ts
CHANGED
|
@@ -9,31 +9,53 @@ export type ApiTokensService_GrantDeviceDataModificationRightOnApplication = Rpc
|
|
|
9
9
|
export type ApiTokensService_GrantMessageRightAll = RpcMethod<GrantMessageRightAllRequest, GrantMessageRightAllResponse>;
|
|
10
10
|
export type ApiTokensService_GrantDeviceDataModificationRightAll = RpcMethod<GrantDeviceDataModificationRightAllRequest, GrantDeviceDataModificationRightAllResponse>;
|
|
11
11
|
export interface ApiTokensService {
|
|
12
|
+
/** Creates a new API access token (account-scoped or device-scoped) for the account, returning the generated token value once. Use to issue programmatic API credentials; the raw token value is only present in this response. */
|
|
12
13
|
Create: ApiTokensService_Create;
|
|
14
|
+
/** Returns one API token by its token code, including type and the resolved application/group restrictions. Use after list_api_tokens to inspect a single token's scope. */
|
|
13
15
|
Get: ApiTokensService_Get;
|
|
16
|
+
/** Lists the account's API tokens with paging, ordering and optional name search. Use to browse issued tokens or find a token code before get/update/delete. */
|
|
14
17
|
List: ApiTokensService_List;
|
|
18
|
+
/** Updates an API token's name and/or restriction scope by token code, overwriting the stored restrictions. Use to rename a token or change which applications, groups and modify rights it carries. */
|
|
15
19
|
Update: ApiTokensService_Update;
|
|
20
|
+
/** Permanently deletes an API token by token code, revoking its programmatic access. Cannot be undone; a second delete of the same code returns not-found. */
|
|
16
21
|
Delete: ApiTokensService_Delete;
|
|
22
|
+
/** Grants one modify right (account, application, tag or message) or a specific application/group message right across all account-type API tokens of the account. Use to broaden existing account tokens' scope without editing each token individually. */
|
|
17
23
|
GrantRightOnApplication: ApiTokensService_GrantRightOnApplication;
|
|
24
|
+
/** Grants device-data modification rights for one application code across all device-type API tokens of the account. Use to let existing device tokens modify data for a newly added application. */
|
|
18
25
|
GrantDeviceDataModificationRightOnApplication: ApiTokensService_GrantDeviceDataModificationRightOnApplication;
|
|
26
|
+
/** Toggles message rights over all applications and groups on one account-type API token: select_all grants modify-message on every app/group, false revokes them all. Use to quickly select or clear all message scopes for a single token. */
|
|
19
27
|
GrantMessageRightAll: ApiTokensService_GrantMessageRightAll;
|
|
28
|
+
/** Toggles device-data modification rights over all applications on one device-type API token: select_all grants every app, false revokes them all. Use to quickly select or clear all device-data scopes for a single token. */
|
|
20
29
|
GrantDeviceDataModificationRightAll: ApiTokensService_GrantDeviceDataModificationRightAll;
|
|
21
30
|
}
|
|
22
31
|
export type Restrictions = {
|
|
32
|
+
/** Application codes (XXXXX-XXXXX) the token may send messages to */
|
|
23
33
|
messageApplications: string[];
|
|
34
|
+
/** Application group codes the token may send messages to */
|
|
24
35
|
messageGroups: string[];
|
|
36
|
+
/** Application codes (XXXXX-XXXXX) the token may modify device data for */
|
|
25
37
|
deviceDataApplications: string[];
|
|
38
|
+
/** Allow modifying account resources */
|
|
26
39
|
modifyAccount: boolean;
|
|
40
|
+
/** Allow modifying application resources */
|
|
27
41
|
modifyApplication: boolean;
|
|
42
|
+
/** Allow sending/modifying messages */
|
|
28
43
|
modifyMessage: boolean;
|
|
44
|
+
/** Allow modifying tags */
|
|
29
45
|
modifyTag: boolean;
|
|
46
|
+
/** Grant all applications instead of an explicit message_applications list */
|
|
30
47
|
applicationsSelectAll: boolean;
|
|
48
|
+
/** Grant all application groups instead of an explicit message_groups list */
|
|
31
49
|
groupsSelectAll: boolean;
|
|
50
|
+
/** Grant all applications instead of an explicit device_data_applications list */
|
|
32
51
|
deviceDataSelectAll: boolean;
|
|
33
52
|
};
|
|
34
53
|
export type CreateApiTokenRequest = {
|
|
54
|
+
/** Token display name (max 64 characters) */
|
|
35
55
|
name?: string;
|
|
56
|
+
/** Token type: "account" for full API access or "device" for device-data only; defaults to account */
|
|
36
57
|
type?: string;
|
|
58
|
+
/** Scope limits (applications, groups and modify rights) applied to the token */
|
|
37
59
|
restrictions?: Restrictions;
|
|
38
60
|
};
|
|
39
61
|
export type CreateApiTokenResponse = {
|
|
@@ -44,6 +66,7 @@ export type CreateApiTokenResponse = {
|
|
|
44
66
|
restrictions: Restrictions;
|
|
45
67
|
};
|
|
46
68
|
export type GetApiTokenRequest = {
|
|
69
|
+
/** API token code */
|
|
47
70
|
code?: string;
|
|
48
71
|
};
|
|
49
72
|
export type GetApiTokenResponse = {
|
|
@@ -76,8 +99,11 @@ export type ListApiTokensResponse = {
|
|
|
76
99
|
total: number;
|
|
77
100
|
};
|
|
78
101
|
export type UpdateApiTokenRequest = {
|
|
102
|
+
/** API token code */
|
|
79
103
|
code?: string;
|
|
104
|
+
/** New token display name (max 64 characters) */
|
|
80
105
|
name?: string;
|
|
106
|
+
/** New scope limits; overwrites the token's current restrictions */
|
|
81
107
|
restrictions?: Restrictions;
|
|
82
108
|
};
|
|
83
109
|
export type UpdateApiTokenResponse = {
|
|
@@ -88,6 +114,7 @@ export type UpdateApiTokenResponse = {
|
|
|
88
114
|
restrictions: Restrictions;
|
|
89
115
|
};
|
|
90
116
|
export type DeleteApiTokenRequest = {
|
|
117
|
+
/** API token code */
|
|
91
118
|
code?: string;
|
|
92
119
|
};
|
|
93
120
|
export type DeleteApiTokenResponse = {};
|
|
@@ -96,9 +123,11 @@ export type GrantRightOnApplicationRequest_ModifyApplication = {};
|
|
|
96
123
|
export type GrantRightOnApplicationRequest_ModifyTag = {};
|
|
97
124
|
export type GrantRightOnApplicationRequest_ModifyMessage = {};
|
|
98
125
|
export type GrantRightOnApplicationRequest_MessageApplications = {
|
|
126
|
+
/** Application code (XXXXX-XXXXX) to grant message rights on */
|
|
99
127
|
applicationCode: string;
|
|
100
128
|
};
|
|
101
129
|
export type GrantRightOnApplicationRequest_MessageGroups = {
|
|
130
|
+
/** Application group code to grant message rights on */
|
|
102
131
|
applicationGroupCode: string;
|
|
103
132
|
};
|
|
104
133
|
export type GrantRightOnApplicationRequest_kind_modifyAccount = {
|
|
@@ -131,6 +160,7 @@ export type GrantRightOnApplicationRequest = {
|
|
|
131
160
|
};
|
|
132
161
|
export type GrantRightOnApplicationResponse = {};
|
|
133
162
|
export type GrantDeviceDataModificationRightOnApplicationRequest_DeviceDataApplications = {
|
|
163
|
+
/** Application code (XXXXX-XXXXX) to grant device-data modification on */
|
|
134
164
|
applicationCode: string;
|
|
135
165
|
};
|
|
136
166
|
export type GrantDeviceDataModificationRightOnApplicationRequest_kind_deviceDataApplications = {
|
|
@@ -143,12 +173,16 @@ export type GrantDeviceDataModificationRightOnApplicationRequest = {
|
|
|
143
173
|
};
|
|
144
174
|
export type GrantDeviceDataModificationRightOnApplicationResponse = {};
|
|
145
175
|
export type GrantMessageRightAllRequest = {
|
|
176
|
+
/** API token code */
|
|
146
177
|
code?: string;
|
|
178
|
+
/** true grants message rights on all apps/groups, false revokes them all */
|
|
147
179
|
selectAll?: boolean;
|
|
148
180
|
};
|
|
149
181
|
export type GrantMessageRightAllResponse = {};
|
|
150
182
|
export type GrantDeviceDataModificationRightAllRequest = {
|
|
183
|
+
/** API token code */
|
|
151
184
|
code?: string;
|
|
185
|
+
/** true grants device-data rights on all apps, false revokes them all */
|
|
152
186
|
selectAll?: boolean;
|
|
153
187
|
};
|
|
154
188
|
export type GrantDeviceDataModificationRightAllResponse = {};
|
package/applications.d.ts
CHANGED
|
@@ -20,24 +20,43 @@ export type ApplicationsService_GetControlGroupAnalytics = RpcMethod<GetControlG
|
|
|
20
20
|
export type ApplicationsService_GetDOIConfig = RpcMethod<GetDOIConfigRequest, GetDOIConfigResponse>;
|
|
21
21
|
export type ApplicationsService_SetDOIConfig = RpcMethod<SetDOIConfigRequest, SetDOIConfigResponse>;
|
|
22
22
|
export interface ApplicationsService {
|
|
23
|
+
/** Returns one Pushwoosh application by its code (format XXXXX-XXXXX) with platforms, subscriber counts, languages and permissions. Use to inspect a single app; use list_applications to browse many. */
|
|
23
24
|
Get: ApplicationsService_Get;
|
|
25
|
+
/** Creates a new Pushwoosh application from a title and optional icon, seeding default properties, dashboards, events and frequency capping. Use to add an app to the current account; returns the new application code. */
|
|
24
26
|
Create: ApplicationsService_Create;
|
|
27
|
+
/** Updates a Pushwoosh application (title, icon, website URL, daily-stat opt-in or Bitly shortener token) by code. Use to change app settings; a supplied bitly_configuration is validated against Bitly before saving. */
|
|
25
28
|
Update: ApplicationsService_Update;
|
|
29
|
+
/** Lists the current account's applications (code, title, subscriber counts) with paging, ordering and free-text search. Use to browse apps or find an application code before calling get_application. */
|
|
26
30
|
List: ApplicationsService_List;
|
|
31
|
+
/** Permanently deletes a Pushwoosh application by code, finishing its customer journeys and queuing a background purge of its data. Irreversible; system applications cannot be deleted. */
|
|
27
32
|
Delete: ApplicationsService_Delete;
|
|
33
|
+
/** Stores the Bitly access token used to shorten links for an application, validating the token against Bitly before saving. Use to enable Bitly URL shortening for the app. */
|
|
28
34
|
SetShortenerConfiguration: ApplicationsService_SetShortenerConfiguration;
|
|
35
|
+
/** Shortens a single URL for an application via the Pushwoosh link shortener, returning the original URL when the short link would not be shorter. Use to pre-shorten a link for message content. */
|
|
29
36
|
ShortenURL: ApplicationsService_ShortenURL;
|
|
37
|
+
/** Overwrites the email URL query parameters (UTM-style map) stored for an application. Use to set tracking params appended to email links; sending an empty map clears them. */
|
|
30
38
|
UpdateURLParams: ApplicationsService_UpdateURLParams;
|
|
39
|
+
/** Opens a Zendesk support ticket requesting manual verification to enable the email platform for an application. Use when an account must be approved by support before sending email; posts to Zendesk, not to the end user. */
|
|
31
40
|
SendEmailVerification: ApplicationsService_SendEmailVerification;
|
|
41
|
+
/** Returns each account group's See/Modify/Send rights on an application (format XXXXX-XXXXX). Use to review which account groups can access an app before editing with set_application_account_group_permissions. */
|
|
32
42
|
GetAccountGroupPermissions: ApplicationsService_GetAccountGroupPermissions;
|
|
43
|
+
/** Overwrites the See/Modify/Send rights that account groups have on an application, rebuilding each group's ACE rights. Use to grant or revoke group access to an app; returns the resulting permissions. */
|
|
33
44
|
SaveAccountGroupPermissions: ApplicationsService_SaveAccountGroupPermissions;
|
|
45
|
+
/** Returns the global control-group settings for an application: hold-out percentage, enabled flag, total vs control user counts and calculation status. Use to display control-group config; get_control_group_calculation_status polls just the changing counts. */
|
|
34
46
|
GetControlGroupSettings: ApplicationsService_GetControlGroupSettings;
|
|
47
|
+
/** Sets the global control-group hold-out percentage (1-99) for an application and records who changed it, creating the PW_ControlGroup tag if missing. Use to enable or resize the control group. */
|
|
35
48
|
UpdateControlGroupPercentage: ApplicationsService_UpdateControlGroupPercentage;
|
|
49
|
+
/** Disables the global control group for an application, removing its percentage setting and queuing a background job to strip the PW_ControlGroup tag from all devices. Use to turn the hold-out group off. */
|
|
36
50
|
DisableControlGroup: ApplicationsService_DisableControlGroup;
|
|
51
|
+
/** Kicks off a fresh recalculation of control-group and total user counts for an application, leaving the previously cached numbers in place until it finishes. Use to refresh stale size numbers on demand. */
|
|
37
52
|
ForceUpdateControlGroupCalculation: ApplicationsService_ForceUpdateControlGroupCalculation;
|
|
53
|
+
/** Returns just the control-group counts and calculation status that change while a background size calc runs, for an application. Poll this on a timer instead of re-fetching get_control_group_settings. */
|
|
38
54
|
GetControlGroupCalculationStatus: ApplicationsService_GetControlGroupCalculationStatus;
|
|
55
|
+
/** Returns precomputed control-vs-treatment analytics (conversions, uplift, statistical significance) per event for an application over a 3/7/30-day window. Use to measure the incremental impact of messaging. */
|
|
39
56
|
GetControlGroupAnalytics: ApplicationsService_GetControlGroupAnalytics;
|
|
57
|
+
/** Returns the double opt-in (DOI) configuration for an application: whether DOI is enabled and the confirmation email preset code. Use to check DOI status before toggling with set_doi_config. */
|
|
40
58
|
GetDOIConfig: ApplicationsService_GetDOIConfig;
|
|
59
|
+
/** Enables or disables double opt-in (DOI) for an application; enabling for the first time clones the confirmation email preset into the account. Use to require email confirmation before subscribing. */
|
|
41
60
|
SetDOIConfig: ApplicationsService_SetDOIConfig;
|
|
42
61
|
}
|
|
43
62
|
export type ControlGroupTaskStatus = 'CONTROL_GROUP_TASK_STATUS_UNSPECIFIED' | 'CONTROL_GROUP_TASK_STATUS_NOT_STARTED' | 'CONTROL_GROUP_TASK_STATUS_IN_PROGRESS' | 'CONTROL_GROUP_TASK_STATUS_COMPLETED';
|
|
@@ -73,27 +92,37 @@ export type ApplicationSummary = {
|
|
|
73
92
|
platforms: Record<number, pushwoosh_rpc_v2_applications_info_ApplicationPlatformsInfo_PlatformInfo>;
|
|
74
93
|
};
|
|
75
94
|
export type GetApplicationRequest = {
|
|
95
|
+
/** Application code (format XXXXX-XXXXX) to fetch. */
|
|
76
96
|
code?: string;
|
|
77
97
|
};
|
|
78
98
|
export type GetApplicationResponse = {
|
|
79
99
|
application: Application;
|
|
80
100
|
};
|
|
81
101
|
export type CreateApplicationRequest = {
|
|
102
|
+
/** Display name for the new application. */
|
|
82
103
|
title?: string;
|
|
104
|
+
/** Optional icon image bytes (PNG/JPEG). */
|
|
83
105
|
icon?: string;
|
|
84
106
|
};
|
|
85
107
|
export type CreateApplicationResponse = {
|
|
86
108
|
application: Application;
|
|
87
109
|
};
|
|
88
110
|
export type UpdateApplicationRequest_BitlyConfiguration = {
|
|
111
|
+
/** Bitly API access token. */
|
|
89
112
|
accessToken: string;
|
|
90
113
|
};
|
|
91
114
|
export type UpdateApplicationRequest = {
|
|
115
|
+
/** Application code (format XXXXX-XXXXX) to update. */
|
|
92
116
|
code?: string;
|
|
117
|
+
/** New display name; leave empty to keep the current title. */
|
|
93
118
|
title?: string;
|
|
119
|
+
/** New icon image bytes (PNG/JPEG); omit to keep the current icon. */
|
|
94
120
|
icon?: string;
|
|
121
|
+
/** Application website URL; must start with http:// or https://. */
|
|
95
122
|
websiteUrl?: string;
|
|
123
|
+
/** Whether this user receives the daily statistics email for the app. */
|
|
96
124
|
allowDailyStat?: boolean;
|
|
125
|
+
/** Bitly link-shortener credentials; token is validated against Bitly before saving. */
|
|
97
126
|
bitlyConfiguration?: UpdateApplicationRequest_BitlyConfiguration;
|
|
98
127
|
};
|
|
99
128
|
export type UpdateApplicationResponse = {
|
|
@@ -106,6 +135,7 @@ export type ListApplicationsRequest = {
|
|
|
106
135
|
orderDirection?: ListApplicationsRequest_OrderDirection;
|
|
107
136
|
page?: number;
|
|
108
137
|
perPage?: number;
|
|
138
|
+
/** Free-text search over application title. */
|
|
109
139
|
search?: string;
|
|
110
140
|
};
|
|
111
141
|
export type ListApplicationsResponse = {
|
|
@@ -115,30 +145,41 @@ export type ListApplicationsResponse = {
|
|
|
115
145
|
total: number;
|
|
116
146
|
};
|
|
117
147
|
export type DeleteApplicationRequest = {
|
|
148
|
+
/** Application code (format XXXXX-XXXXX) to permanently delete. */
|
|
118
149
|
code?: string;
|
|
119
150
|
};
|
|
120
151
|
export type DeleteApplicationResponse = {};
|
|
121
152
|
export type SetShortenerConfigurationRequest = {
|
|
153
|
+
/** Application code (format XXXXX-XXXXX) to configure. */
|
|
122
154
|
code?: string;
|
|
155
|
+
/** Bitly API access token to validate and store. */
|
|
123
156
|
bitlyAccessToken?: string;
|
|
124
157
|
};
|
|
125
158
|
export type SetShortenerConfigurationResponse = {};
|
|
126
159
|
export type ShortenURLRequest = {
|
|
160
|
+
/** Application code (format XXXXX-XXXXX) the link belongs to. */
|
|
127
161
|
code?: string;
|
|
162
|
+
/** Absolute URL (http:// or https://) to shorten. */
|
|
128
163
|
url?: string;
|
|
129
164
|
};
|
|
130
165
|
export type ShortenURLResponse = {
|
|
131
166
|
shortUrl: string;
|
|
132
167
|
};
|
|
133
168
|
export type UpdateURLParamsRequest = {
|
|
169
|
+
/** Application code (format XXXXX-XXXXX) to configure. */
|
|
134
170
|
code?: string;
|
|
171
|
+
/** Email URL query parameters (key/value) to store; an empty map clears them. */
|
|
135
172
|
params?: Record<string, string>;
|
|
136
173
|
};
|
|
137
174
|
export type UpdateURLParamsResponse = {};
|
|
138
175
|
export type SendEmailVerificationRequest = {
|
|
176
|
+
/** Application code (format XXXXX-XXXXX) requesting email enablement. */
|
|
139
177
|
code?: string;
|
|
178
|
+
/** Website URL the emails will be sent on behalf of. */
|
|
140
179
|
website?: string;
|
|
180
|
+
/** Contact email address for the verification request. */
|
|
141
181
|
email?: string;
|
|
182
|
+
/** Free-text description of the intended email use case. */
|
|
142
183
|
description?: string;
|
|
143
184
|
};
|
|
144
185
|
export type SendEmailVerificationResponse = {};
|
|
@@ -159,12 +200,14 @@ export type GetAccountGroupPermissionsResponse = {
|
|
|
159
200
|
export type SaveAccountGroupPermissionsRequest = {
|
|
160
201
|
/** application code */
|
|
161
202
|
code?: string;
|
|
203
|
+
/** Full set of per-group See/Modify/Send rights to apply (replaces existing). */
|
|
162
204
|
permissions?: AccountGroupPermissions[];
|
|
163
205
|
};
|
|
164
206
|
export type SaveAccountGroupPermissionsResponse = {
|
|
165
207
|
permissions: AccountGroupPermissions[];
|
|
166
208
|
};
|
|
167
209
|
export type GetControlGroupSettingsRequest = {
|
|
210
|
+
/** Application code (format XXXXX-XXXXX) whose control-group settings to fetch. */
|
|
168
211
|
code?: string;
|
|
169
212
|
};
|
|
170
213
|
export type GetControlGroupSettingsResponse = {
|
|
@@ -183,19 +226,24 @@ export type GetControlGroupSettingsResponse = {
|
|
|
183
226
|
hasData: boolean;
|
|
184
227
|
};
|
|
185
228
|
export type UpdateControlGroupPercentageRequest = {
|
|
229
|
+
/** Application code (format XXXXX-XXXXX) to configure. */
|
|
186
230
|
code?: string;
|
|
231
|
+
/** Control-group hold-out size as a percentage, 1-99. */
|
|
187
232
|
percentage?: number;
|
|
188
233
|
};
|
|
189
234
|
export type UpdateControlGroupPercentageResponse = {};
|
|
190
235
|
export type DisableControlGroupRequest = {
|
|
236
|
+
/** Application code (format XXXXX-XXXXX) whose control group to disable. */
|
|
191
237
|
code?: string;
|
|
192
238
|
};
|
|
193
239
|
export type DisableControlGroupResponse = {};
|
|
194
240
|
export type ForceUpdateControlGroupCalculationRequest = {
|
|
241
|
+
/** Application code (format XXXXX-XXXXX) to recalculate control-group size for. */
|
|
195
242
|
code?: string;
|
|
196
243
|
};
|
|
197
244
|
export type ForceUpdateControlGroupCalculationResponse = {};
|
|
198
245
|
export type GetControlGroupCalculationStatusRequest = {
|
|
246
|
+
/** Application code (format XXXXX-XXXXX) to poll calculation status for. */
|
|
199
247
|
code?: string;
|
|
200
248
|
};
|
|
201
249
|
/**
|
|
@@ -223,7 +271,9 @@ export type GetControlGroupAnalyticsRequest_WindowDays = 'WINDOW_DAYS_UNSPECIFIE
|
|
|
223
271
|
* analytics for a window preset (3/7/30 days).
|
|
224
272
|
*/
|
|
225
273
|
export type GetControlGroupAnalyticsRequest = {
|
|
274
|
+
/** Application code (format XXXXX-XXXXX) to report on. */
|
|
226
275
|
code?: string;
|
|
276
|
+
/** Analytics lookback window preset (3, 7 or 30 days). */
|
|
227
277
|
windowDays?: GetControlGroupAnalyticsRequest_WindowDays;
|
|
228
278
|
};
|
|
229
279
|
export type ControlGroupAnalyticsGroup = {
|
|
@@ -253,13 +303,16 @@ export type DoubleOptInConfig = {
|
|
|
253
303
|
emailPreset: string;
|
|
254
304
|
};
|
|
255
305
|
export type GetDOIConfigRequest = {
|
|
306
|
+
/** Application code (format XXXXX-XXXXX) whose double opt-in config to fetch. */
|
|
256
307
|
code?: string;
|
|
257
308
|
};
|
|
258
309
|
export type GetDOIConfigResponse = {
|
|
259
310
|
doiConfig: DoubleOptInConfig;
|
|
260
311
|
};
|
|
261
312
|
export type SetDOIConfigRequest = {
|
|
313
|
+
/** Application code (format XXXXX-XXXXX) to configure. */
|
|
262
314
|
code?: string;
|
|
315
|
+
/** Whether double opt-in is enabled for the application. */
|
|
263
316
|
enabled?: boolean;
|
|
264
317
|
};
|
|
265
318
|
export type SetDOIConfigResponse = {};
|
package/applications_alerts.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RpcMethod } from './commonTypes';
|
|
2
2
|
export type ApplicationsAlertsService_List = RpcMethod<ListRequest, ListResponse>;
|
|
3
3
|
export interface ApplicationsAlertsService {
|
|
4
|
+
/** Lists active dashboard alerts (errors, warnings and recommendations) for an account, optionally scoped to one application, covering subscriber and email quotas, suspension, failed payments, expiring Apple certificates, disabled platforms and email/SDK setup gaps. Pass an application code to include app-specific platform and certificate alerts; omit it for account-wide alerts only. */
|
|
4
5
|
List: ApplicationsAlertsService_List;
|
|
5
6
|
}
|
|
6
7
|
export type AlertType = 'INFO' | 'WARNING' | 'ERROR';
|
|
@@ -18,6 +19,7 @@ export type Alert = {
|
|
|
18
19
|
error: AlertError;
|
|
19
20
|
};
|
|
20
21
|
export type ListRequest = {
|
|
22
|
+
/** Application code (XXXXX-XXXXX) to scope alerts to; leave empty for account-wide alerts only. */
|
|
21
23
|
application?: string;
|
|
22
24
|
};
|
|
23
25
|
export type ListResponse = {
|
|
@@ -2,7 +2,9 @@ import { RpcMethod } from './commonTypes';
|
|
|
2
2
|
export type ApplicationsConfigurationsService_Configure = RpcMethod<ConfigurationRequest, ConfigurationResponse>;
|
|
3
3
|
export type ApplicationsConfigurationsService_EnablePlatform = RpcMethod<EnablePlatformRequest, EnablePlatformResponse>;
|
|
4
4
|
export interface ApplicationsConfigurationsService {
|
|
5
|
+
/** Saves the provider credentials for one delivery platform or channel of an application (code XXXXX-XXXXX) — APNs/FCM push keys, an SMS provider, email sender, Telegram/Viber token, Google Wallet, etc. — then enables that platform. Pick the matching kind in the oneof; some providers (Telegram, Huawei) also call the external provider API to register a webhook or validate the token. */
|
|
5
6
|
Configure: ApplicationsConfigurationsService_Configure;
|
|
7
|
+
/** Enables or disables a single delivery platform (by numeric platform id) for an application (code XXXXX-XXXXX) without touching its stored credentials. Use to toggle a channel on or off; update_platform_configuration already enables a platform after saving its credentials. */
|
|
6
8
|
EnablePlatform: ApplicationsConfigurationsService_EnablePlatform;
|
|
7
9
|
}
|
|
8
10
|
export type AndroidConfiguration = {
|
|
@@ -327,13 +329,17 @@ export type ConfigurationRequest_kind_viberConfiguration = {
|
|
|
327
329
|
};
|
|
328
330
|
export type ConfigurationRequest_kind = ConfigurationRequest_kind_androidConfiguration | ConfigurationRequest_kind_chromeConfiguration | ConfigurationRequest_kind_emailConfiguration | ConfigurationRequest_kind_huaweiConfiguration | ConfigurationRequest_kind_safariConfiguration | ConfigurationRequest_kind_windowsConfiguration | ConfigurationRequest_kind_amazonConfiguration | ConfigurationRequest_kind_osxConfiguration | ConfigurationRequest_kind_osxTokenConfiguration | ConfigurationRequest_kind_iosConfiguration | ConfigurationRequest_kind_iosTokenConfiguration | ConfigurationRequest_kind_iosVoipConfiguration | ConfigurationRequest_kind_iosPasskitConfiguration | ConfigurationRequest_kind_firefoxConfiguration | ConfigurationRequest_kind_baiduConfiguration | ConfigurationRequest_kind_lineConfiguration | ConfigurationRequest_kind_webConfiguration | ConfigurationRequest_kind_kakaoConfiguration | ConfigurationRequest_kind_telegramConfiguration | ConfigurationRequest_kind_googleWalletConfiguration | ConfigurationRequest_kind_smsConfiguration | ConfigurationRequest_kind_viberConfiguration;
|
|
329
331
|
export type ConfigurationRequest = {
|
|
332
|
+
/** Application code (format XXXXX-XXXXX) whose platform/channel to configure. */
|
|
330
333
|
code?: string;
|
|
331
334
|
kind: ConfigurationRequest_kind;
|
|
332
335
|
};
|
|
333
336
|
export type ConfigurationResponse = {};
|
|
334
337
|
export type EnablePlatformRequest = {
|
|
338
|
+
/** Application code (format XXXXX-XXXXX) whose platform to toggle. */
|
|
335
339
|
code?: string;
|
|
340
|
+
/** Numeric platform id to enable or disable (e.g. iOS, Android, Web, Email, SMS). */
|
|
336
341
|
platform?: number;
|
|
342
|
+
/** true to enable the platform, false to disable it. */
|
|
337
343
|
enable?: boolean;
|
|
338
344
|
};
|
|
339
345
|
export type EnablePlatformResponse = {};
|