@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.
Files changed (63) hide show
  1. package/account_groups.d.ts +15 -1
  2. package/account_invites.d.ts +9 -2
  3. package/account_overview.d.ts +1 -0
  4. package/account_users.d.ts +5 -2
  5. package/accounts.d.ts +30 -0
  6. package/accounts_get_auth_info.d.ts +1 -0
  7. package/api_tokens.d.ts +34 -0
  8. package/applications.d.ts +53 -0
  9. package/applications_alerts.d.ts +2 -0
  10. package/applications_configurations.d.ts +6 -0
  11. package/applications_email_froms.d.ts +10 -0
  12. package/applications_groups.d.ts +13 -2
  13. package/applications_info.d.ts +2 -0
  14. package/applications_sounds.d.ts +3 -0
  15. package/applications_statistics.d.ts +10 -9
  16. package/campaigns.d.ts +16 -0
  17. package/categories.d.ts +3 -1
  18. package/cloud_pages.d.ts +24 -2
  19. package/customer_journey.d.ts +6 -0
  20. package/data.js +4 -0
  21. package/deeplinks.d.ts +17 -2
  22. package/deliverability_checker.d.ts +7 -0
  23. package/devices.d.ts +1 -1
  24. package/email_categories.d.ts +29 -0
  25. package/emails_configurations.d.ts +21 -1
  26. package/events.d.ts +37 -2
  27. package/export_messages.d.ts +4 -0
  28. package/filters.d.ts +32 -0
  29. package/frequency_capping.d.ts +18 -0
  30. package/geozones.d.ts +5 -0
  31. package/geozones_clusters.d.ts +14 -1
  32. package/inapp_messages.d.ts +27 -4
  33. package/inbound_webhooks.d.ts +9 -0
  34. package/integrations.d.ts +64 -10
  35. package/internal_alerts.d.ts +14 -0
  36. package/ios_categories.d.ts +15 -1
  37. package/kakao_presets.d.ts +18 -0
  38. package/line_presets.d.ts +19 -4
  39. package/media_files.d.ts +13 -13
  40. package/messages.d.ts +35 -0
  41. package/package.json +1 -1
  42. package/presets.d.ts +24 -7
  43. package/pushwoosh_rpc_external_segments_v3.d.ts +7 -16
  44. package/pushwoosh_rpc_frequency_capping_disabled_users_v3.d.ts +5 -0
  45. package/pushwoosh_rpc_popup_forms_contents_v3.d.ts +8 -8
  46. package/pushwoosh_rpc_popup_forms_v3.d.ts +7 -7
  47. package/pushwoosh_rpc_segments_v3.d.ts +9 -5
  48. package/referral_partners.d.ts +13 -0
  49. package/restrictions.d.ts +1 -0
  50. package/rich_medias.d.ts +66 -15
  51. package/segment_statistics.d.ts +8 -0
  52. package/send_rate.d.ts +8 -0
  53. package/sms_presets.d.ts +12 -2
  54. package/statistics_dashboards.d.ts +15 -0
  55. package/statistics_dashboards_widgets.d.ts +10 -8
  56. package/subscription_prompt.d.ts +11 -0
  57. package/tags.d.ts +15 -1
  58. package/test_devices.d.ts +4 -4
  59. package/users.d.ts +10 -0
  60. package/viber_presets.d.ts +2 -0
  61. package/vouchers.d.ts +27 -0
  62. package/whatsapp.d.ts +9 -5
  63. package/whatsapp_presets.d.ts +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.65",
3
+ "version": "0.2.67",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/presets.d.ts CHANGED
@@ -10,31 +10,35 @@ export type presetsService_Clone = RpcMethod<ClonePresetRequest, ClonePresetResp
10
10
  export type presetsService_Delete = RpcMethod<DeletePresetRequest, DeletePresetResponse>;
11
11
  export type presetsService_ValidateLiquid = RpcMethod<ValidateLiquidRequest, ValidateLiquidResponse>;
12
12
  export interface presetsService {
13
+ /** Lists push notification presets (reusable message templates) for an application, with paging, name/code search and category filter. Use to browse presets or find a preset code before fetching, cloning or editing one. */
13
14
  List: presetsService_List;
15
+ /** Returns a single push preset by its preset code, including platforms, localized content, deeplink, rich media and delivery settings. Use after list_push_presets to inspect one preset in full. */
14
16
  Get: presetsService_Get;
17
+ /** Creates a new push preset (reusable notification template) in an application from the supplied content and settings. Returns the created preset with its generated code; each call creates a distinct preset. */
15
18
  Create: presetsService_Create;
19
+ /** Overwrites an existing push preset (by preset code) with the supplied fields, replacing name, platforms, content and delivery settings. Use for full edits; use update_push_preset_partial to change only selected fields. */
16
20
  Update: presetsService_Update;
21
+ /** Updates only the supplied fields of an existing push preset (by preset code), leaving unset fields unchanged. Use for partial edits; use update_push_preset to overwrite the whole preset. */
17
22
  UpdatePartial: presetsService_UpdatePartial;
23
+ /** Duplicates an existing push preset (by preset code) into a new preset with the given name in the same application. Each call creates a new copy; the source preset is left unchanged. */
18
24
  Clone: presetsService_Clone;
25
+ /** Permanently deletes a push preset by its preset code. Fails if the preset is still used by a running or paused journey; remove it from the journey first. */
19
26
  Delete: presetsService_Delete;
20
- /**
21
- * ValidateLiquid checks the Liquid syntax of one or more template strings
22
- * using the same engine the publisher uses at send time. It does not touch
23
- * any preset or account data.
24
- */
27
+ /** Checks the Liquid syntax of one or more template strings using the same engine the publisher uses at send time, returning per-field errors. Pure validation: it does not touch any preset or account data. */
25
28
  ValidateLiquid: presetsService_ValidateLiquid;
26
29
  }
27
30
  export type ListPresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
28
31
  export type ListPresetsRequest_OrderDirection = 'ASC' | 'DESC';
29
32
  export type ListPresetsRequest = {
33
+ /** Application code (format XXXXX-XXXXX) whose presets to list. */
30
34
  application?: string;
31
35
  orderBy?: ListPresetsRequest_OrderBy;
32
36
  orderDirection?: ListPresetsRequest_OrderDirection;
33
37
  page?: number;
34
38
  perPage?: number;
35
- /** like %name% */
39
+ /** Case-insensitive substring match on preset name or code (SQL ILIKE %value%). */
36
40
  searchByName?: string;
37
- /** in ['category'] */
41
+ /** Restrict to presets tagged with any of these category names. */
38
42
  searchByCategory?: string[];
39
43
  showHidden?: boolean;
40
44
  /** Deprecated: used only by the legacy send push form. */
@@ -120,14 +124,18 @@ export type ListPresetsResponse = {
120
124
  total: number;
121
125
  };
122
126
  export type GetPresetRequest = {
127
+ /** Preset code of the push preset to fetch. */
123
128
  code?: string;
124
129
  };
125
130
  export type GetPresetResponse = {
126
131
  preset: Preset;
127
132
  };
128
133
  export type CreatePresetRequest = {
134
+ /** Application code (format XXXXX-XXXXX) the preset belongs to. */
129
135
  application?: string;
136
+ /** Human-readable preset name. */
130
137
  name?: string;
138
+ /** Channel/send type of the preset (e.g. push, sms, email). */
131
139
  sendType?: string;
132
140
  platforms?: Record<number, boolean>;
133
141
  /** Localized properties map<string, Content> */
@@ -194,8 +202,11 @@ export type CreatePresetResponse = {
194
202
  preset: Preset;
195
203
  };
196
204
  export type UpdatePresetRequest = {
205
+ /** Preset code of the push preset to overwrite. */
197
206
  code?: string;
207
+ /** Human-readable preset name. */
198
208
  name?: string;
209
+ /** Channel/send type of the preset (e.g. push, sms, email). */
199
210
  sendType?: string;
200
211
  platforms?: Record<number, boolean>;
201
212
  /** Localized properties map<string, Content> */
@@ -255,8 +266,11 @@ export type UpdatePresetRequest = {
255
266
  isV2?: boolean;
256
267
  };
257
268
  export type UpdatePresetPartialRequest = {
269
+ /** Preset code of the push preset to patch. */
258
270
  code?: string;
271
+ /** Human-readable preset name. */
259
272
  name?: string;
273
+ /** Channel/send type of the preset (e.g. push, sms, email). */
260
274
  sendType?: string;
261
275
  platforms?: Record<number, boolean>;
262
276
  /** Localized properties map<string, Content> */
@@ -315,13 +329,16 @@ export type UpdatePresetResponse = {
315
329
  preset: Preset;
316
330
  };
317
331
  export type ClonePresetRequest = {
332
+ /** Preset code of the source push preset to duplicate. */
318
333
  code?: string;
334
+ /** Name for the new cloned preset (required). */
319
335
  name?: string;
320
336
  };
321
337
  export type ClonePresetResponse = {
322
338
  preset: Preset;
323
339
  };
324
340
  export type DeletePresetRequest = {
341
+ /** Preset code of the push preset to delete. */
325
342
  code?: string;
326
343
  };
327
344
  export type DeletePresetResponse = {};
@@ -182,28 +182,19 @@ export type ExternalSegmentsService_TestConnection = RpcMethodV3<TestConnectionR
182
182
  * assembles the proper connection string from the structured parameters.
183
183
  */
184
184
  export interface ExternalSegmentsService {
185
- /** List external segments of the given application. */
185
+ /** Lists all external segments of an application (code XXXXX-XXXXX), each materialized from a user-supplied SQL/BigQuery query against an external database. Use to browse configured external segments before fetching one by code. */
186
186
  List: ExternalSegmentsService_List;
187
- /** Get a single external segment by code. */
187
+ /** Returns one external segment by its code, including connection parameters (passwords/secrets omitted), the query, validity and last-refresh status. Use after list_external_segments to inspect a single segment. */
188
188
  Get: ExternalSegmentsService_Get;
189
- /** Create a new external segment. */
189
+ /** Creates an external segment from structured DB connection parameters (PostgreSQL, MySQL or BigQuery) and a SQL query returning a user_id column, connecting to the external database to validate the query before saving. Use to define a new externally-sourced audience; the segment code is generated on creation. */
190
190
  Create: ExternalSegmentsService_Create;
191
- /** Update an existing external segment. Only provided fields are changed. */
191
+ /** Updates an external segment's name, connection parameters or query by code; only provided fields change and the database type is immutable. Re-validates the connection against the external database before saving. */
192
192
  Update: ExternalSegmentsService_Update;
193
- /** Delete an external segment. */
193
+ /** Deletes an external segment and its companion filter by code, allowed only when the filter is not referenced by in-apps, presets, journeys, other filters or popup forms. Irreversible; the segment stops being targetable. */
194
194
  Delete: ExternalSegmentsService_Delete;
195
- /**
196
- * CheckConnection connects to the segment's database and validates its stored
197
- * query (SQL: executes it and reads the first row; BigQuery: dry-run), then
198
- * stores the outcome in the segment's `valid` flag. Returns the result.
199
- */
195
+ /** Connects to a stored external segment's database and runs its saved query, then records the outcome in the segment's valid flag. Use to re-check an existing segment; unlike test_external_segment_connection it persists the result. */
200
196
  CheckConnection: ExternalSegmentsService_CheckConnection;
201
- /**
202
- * TestConnection validates connection parameters supplied inline (not yet
203
- * persisted), so the create/edit form can test before saving. When
204
- * check_query is false it only connects and pings; when true it also
205
- * validates the query. It never persists anything (unlike CheckConnection).
206
- */
197
+ /** Tests external database connection parameters supplied inline (optionally backfilling secrets from a saved segment by code) without persisting anything. Use from the create/edit form before saving; set check_query to also validate the query, otherwise only connectivity is checked. */
207
198
  TestConnection: ExternalSegmentsService_TestConnection;
208
199
  }
209
200
  export type ExternalSegmentsService_Errors = {
@@ -2,17 +2,22 @@ import { RpcMethod } from './commonTypes';
2
2
  export type FrequencyCappingDisabledUsersService_Get = RpcMethod<GetRequest, GetResponse>;
3
3
  export type FrequencyCappingDisabledUsersService_Set = RpcMethod<SetRequest, SetResponse>;
4
4
  export interface FrequencyCappingDisabledUsersService {
5
+ /** Returns the user ids exempt from frequency capping in an application (application code XXXXX-XXXXX). Use to inspect which users bypass the app's send limits before editing that list with set_frequency_capping_disabled_users. */
5
6
  Get: FrequencyCappingDisabledUsersService_Get;
7
+ /** Overwrites the full list of user ids exempt from frequency capping for an application (application code XXXXX-XXXXX); the supplied list fully replaces any previous one. Use to grant or revoke send-limit exemptions in one call; pass an empty list to clear all exemptions. */
6
8
  Set: FrequencyCappingDisabledUsersService_Set;
7
9
  }
8
10
  export type GetRequest = {
11
+ /** Application code (XXXXX-XXXXX) whose frequency-capping exemption list is read. */
9
12
  application?: string;
10
13
  };
11
14
  export type GetResponse = {
12
15
  users: string[];
13
16
  };
14
17
  export type SetRequest = {
18
+ /** Application code (XXXXX-XXXXX) whose frequency-capping exemption list is overwritten. */
15
19
  application?: string;
20
+ /** Full set of user ids exempt from frequency capping; replaces the existing list. Empty clears all exemptions. */
16
21
  users?: string[];
17
22
  };
18
23
  export type SetResponse = {
@@ -91,15 +91,15 @@ export type PopupFormsContentsService_Delete = RpcMethodV3<DeleteRequest, Delete
91
91
  failedPreconditions?: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
92
92
  }>;
93
93
  export interface PopupFormsContentsService {
94
- /** List Popup Forms Contents for given application and filters. */
94
+ /** Lists popup form contents (web subscription-popup designs) for an application code XXXXX-XXXXX, ordered by updated or name, with paging and free-text search over name and code. Use to browse designs or find a content code before get/update/delete. */
95
95
  List: PopupFormsContentsService_List;
96
- /** Get Popup Form Content by code. */
96
+ /** Returns one popup form content by its content code, including the frontend-generated json and optional html. Use after list_popup_form_contents to inspect a single design. */
97
97
  Get: PopupFormsContentsService_Get;
98
- /** Create new Popup Form Content. Popup Form Content code will be generated by server and returned in response. */
98
+ /** Creates a popup form content under an application code XXXXX-XXXXX from a name and frontend json; the server generates and returns the new content code. Name must be unique within the application, so a repeat call with the same name fails. */
99
99
  Create: PopupFormsContentsService_Create;
100
- /** Update Popup Form Content. */
100
+ /** Overwrites a popup form content's name, json and html by content code. Use to save edits to an existing design; delete_popup_form_content removes it instead. */
101
101
  Update: PopupFormsContentsService_Update;
102
- /** Delete Popup Form Content. */
102
+ /** Deletes a popup form content by content code. Fails if any popup form still references it; a repeat call after deletion returns not-found. */
103
103
  Delete: PopupFormsContentsService_Delete;
104
104
  }
105
105
  export type PopupFormsContentsService_Errors = {
@@ -184,7 +184,7 @@ export type ListResponse = {
184
184
  total: number;
185
185
  };
186
186
  export type GetRequest = {
187
- /** Similar to the PopupFormContent. */
187
+ /** Popup Form Content code identifying the design to fetch. */
188
188
  code?: string;
189
189
  };
190
190
  export type GetResponse = {
@@ -206,7 +206,7 @@ export type CreateResponse = {
206
206
  code: string;
207
207
  };
208
208
  export type UpdateRequest = {
209
- /** Similar to the PopupFormContent. */
209
+ /** Popup Form Content code identifying the design to overwrite. */
210
210
  code?: string;
211
211
  /** Similar to the PopupFormContent. */
212
212
  name?: string;
@@ -217,7 +217,7 @@ export type UpdateRequest = {
217
217
  };
218
218
  export type UpdateResponse = {};
219
219
  export type DeleteRequest = {
220
- /** Similar to the PopupFormContent. */
220
+ /** Popup Form Content code identifying the design to delete. */
221
221
  code?: string;
222
222
  };
223
223
  export type DeleteResponse = {};
@@ -112,19 +112,19 @@ export type PopupFormsService_Delete = RpcMethod<DeleteRequest, DeleteResponse>;
112
112
  export type PopupFormsService_Deactivate = RpcMethod<DeactivateRequest, DeactivateResponse>;
113
113
  export type PopupFormsService_Activate = RpcMethod<ActivateRequest, ActivateResponse>;
114
114
  export interface PopupFormsService {
115
- /** List Popup Forms for given application and filters. */
115
+ /** Lists web popup forms for an application code, newest-published first, with paging, name/code search and an optional status filter; each item carries visitor and impression counts. Use to browse popup forms or find a popup form code before fetching details. */
116
116
  List: PopupFormsService_List;
117
- /** Get Popup Form by code. */
117
+ /** Returns a single web popup form by its popup form code, including status, display rules, audience targeting and the associated content or subscription form. Use after list_popup_forms to inspect one form's full configuration. */
118
118
  Get: PopupFormsService_Get;
119
- /** Create new Popup Form. Popup Form code will be generated by server and returned in response. */
119
+ /** Creates a new web popup form under an application code from either a popup form content code or a subscription form code (exactly one), returning the server-generated popup form code. The name must be unique within the application. */
120
120
  Create: PopupFormsService_Create;
121
- /** Update Popup Form. */
121
+ /** Updates an existing web popup form by code, patching name, display rules, audience and page rules per explicit update_* flags. Use to change an existing form's configuration; the source type (content vs subscription form) is immutable. */
122
122
  Update: PopupFormsService_Update;
123
- /** Delete Popup Form. */
123
+ /** Permanently deletes a web popup form by its popup form code. Irreversible; use disable_popup_form instead to only pause a form while keeping it. */
124
124
  Delete: PopupFormsService_Delete;
125
- /** Deactivate Popup Form (set status to paused). */
125
+ /** Deactivates a web popup form by code, setting its status to paused so it stops showing to visitors. Reversible via enable_popup_form; errors if the form is already paused. */
126
126
  Deactivate: PopupFormsService_Deactivate;
127
- /** Activate Popup Form (set status to active). */
127
+ /** Activates a web popup form by code, setting its status to active and stamping its published time so it starts showing to visitors. Reversible via disable_popup_form; errors if the form is already active. */
128
128
  Activate: PopupFormsService_Activate;
129
129
  }
130
130
  /**
@@ -138,15 +138,15 @@ export type SegmentsService_Delete = RpcMethodV3<DeleteRequest, DeleteResponse,
138
138
  failedPreconditions?: SegmentsService_Delete_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
139
139
  }>;
140
140
  export interface SegmentsService {
141
- /** List segments for given application. */
141
+ /** Lists the segments (saved audience filters) belonging to an application. Use to browse an app's segments or find a segment code before fetching, updating or deleting one. */
142
142
  List: SegmentsService_List;
143
- /** Get segment by code. */
143
+ /** Returns a single segment by its segment code, including name and conditions in both seglang and filter-expression form. Use after list_segments to inspect one segment's definition. */
144
144
  Get: SegmentsService_Get;
145
- /** Create new segment. Segment code will be generated by server and returned in response. */
145
+ /** Creates a segment from seglang or a filter expression for an application; the server generates and returns the segment code. Use to save a new audience filter; optionally high-speed for faster sending. */
146
146
  Create: SegmentsService_Create;
147
- /** Update segment. */
147
+ /** Updates an existing segment's name and/or conditions by segment code, replacing them with the supplied values. Use to rename or redefine a saved segment; for high-speed segments re-preparation takes time. */
148
148
  Update: SegmentsService_Update;
149
- /** Delete segment. */
149
+ /** Deletes a segment by segment code and detaches it from in-app messages (moved to draft) and journey split/entry points. Irreversible; use only to permanently remove a segment. */
150
150
  Delete: SegmentsService_Delete;
151
151
  }
152
152
  export type SegmentsService_Errors = {
@@ -174,10 +174,12 @@ export type SegmentsService_Errors = {
174
174
  */
175
175
  export type DeviceLoadPolicy = 'FILTER' | 'ALL';
176
176
  export type ListRequest = {
177
+ /** Application code (format XXXXX-XXXXX) whose segments to list. */
177
178
  application?: string;
178
179
  };
179
180
  export type ListResponse = {};
180
181
  export type GetRequest = {
182
+ /** Segment code of the segment to fetch. */
181
183
  segment?: string;
182
184
  };
183
185
  /** Get segment response. Segment conditions are returned in both seglang and filter expression formats. */
@@ -283,7 +285,9 @@ export type UpdateRequest = {
283
285
  };
284
286
  export type UpdateResponse = {};
285
287
  export type DeleteRequest = {
288
+ /** Application code (format XXXXX-XXXXX) that owns the segment. */
286
289
  application?: string;
290
+ /** Segment code of the segment to delete. */
287
291
  segment?: string;
288
292
  };
289
293
  export type DeleteResponse = {};
@@ -8,13 +8,21 @@ export type ReferralPartnerService_CreateWithdrawal = RpcMethod<CreateWithdrawal
8
8
  export type ReferralPartnerService_GetWithdrawalAdditionalInfo = RpcMethod<GetWithdrawalAdditionalInfoRequest, GetWithdrawalAdditionalInfoResponse>;
9
9
  export type ReferralPartnerService_GetCurrencies = RpcMethod<GetCurrenciesRequest, GetCurrenciesResponse>;
10
10
  export interface ReferralPartnerService {
11
+ /** Returns the referral-partner profile of the current account: referral hash, saved withdrawal info and status (active/blocked). Returns an empty profile when the account has not joined the program yet — call create_referral_partner first. */
11
12
  Get: ReferralPartnerService_Get;
13
+ /** Enrolls the current account into the referral-partner program and generates its referral hash. Use once to opt an account in; get_referral_partner then returns the created profile. */
12
14
  Create: ReferralPartnerService_Create;
15
+ /** Lists the current account's referral-payout withdrawals, each with date, amount, payout info and status (created/in-process/success/error). Use to show the partner's withdrawal history. */
13
16
  GetWithdrawalsHistory: ReferralPartnerService_GetWithdrawalsHistory;
17
+ /** Returns the current account's referral earnings totals: expected, available and total revenues plus the count of referred members. Use for the referral-program dashboard summary. */
14
18
  GetTotalStatistics: ReferralPartnerService_GetTotalStatistics;
19
+ /** Overwrites the current account's saved withdrawal (payout) details. Use before create_referral_withdrawal so payouts have destination info; replaces the previous value. */
15
20
  UpdateWithdrawalInfo: ReferralPartnerService_UpdateWithdrawalInfo;
21
+ /** Requests a payout of the given amount from the account's available referral balance. Use to withdraw earned referral revenue; each call creates a new withdrawal, so do not retry blindly. */
16
22
  CreateWithdrawal: ReferralPartnerService_CreateWithdrawal;
23
+ /** Computes a withdrawal quote for an amount and target currency: total fee, source and target amounts and optionally a payout form. Use to preview fees and conversion before create_referral_withdrawal. */
17
24
  GetWithdrawalAdditionalInfo: ReferralPartnerService_GetWithdrawalAdditionalInfo;
25
+ /** Lists the currencies available for referral withdrawals, with code, display name and whether decimals are supported. Use to populate the withdrawal currency selector. */
18
26
  GetCurrencies: ReferralPartnerService_GetCurrencies;
19
27
  }
20
28
  export type GetRequest = {};
@@ -46,16 +54,21 @@ export type GetTotalStatisticsResponse = {
46
54
  membersCount: number;
47
55
  };
48
56
  export type UpdateWithdrawalInfoRequest = {
57
+ /** Payout destination details (e.g. bank or PayPal info) saved on the partner profile. */
49
58
  withdrawalInfo?: string;
50
59
  };
51
60
  export type UpdateWithdrawalInfoResponse = {};
52
61
  export type CreateWithdrawalRequest = {
62
+ /** Amount to withdraw from the available referral balance. */
53
63
  amount?: number;
54
64
  };
55
65
  export type CreateWithdrawalResponse = {};
56
66
  export type GetWithdrawalAdditionalInfoRequest = {
67
+ /** Withdrawal amount to quote fees and conversion for. */
57
68
  amount?: number;
69
+ /** Target payout currency code (see list_referral_currencies). */
58
70
  currency?: string;
71
+ /** When true, also returns a prefilled payout form in the response. */
59
72
  withForm?: boolean;
60
73
  };
61
74
  export type GetWithdrawalAdditionalInfoResponse = {
package/restrictions.d.ts CHANGED
@@ -2,6 +2,7 @@ import { RpcMethod } from './commonTypes';
2
2
  import { RestrictionValue as pushwoosh_objects_restrictionValues_v1_RestrictionValue } from './pushwoosh_objects_restrictionValues_v1';
3
3
  export type RestrictionsService_GetRestrictionValues = RpcMethod<GetRestrictionValuesRequest, GetRestrictionValuesResponse>;
4
4
  export interface RestrictionsService {
5
+ /** Returns the current authenticated account's plan restriction values (feature limits and quotas such as allowed applications, subscribers or messages). Use to check what caps apply to the account before offering or gating a feature. */
5
6
  GetRestrictionValues: RestrictionsService_GetRestrictionValues;
6
7
  }
7
8
  export type GetRestrictionValuesRequest = {};
package/rich_medias.d.ts CHANGED
@@ -14,28 +14,33 @@ export type RichMediaService_GetSendChannels = RpcMethod<GetSendChannelsRequest,
14
14
  export type RichMediaService_GetDevices = RpcMethod<GetDevicesRequest, GetDevicesResponse>;
15
15
  export type RichMediaService_GetEvents = RpcMethod<GetEventsRequest, GetEventsResponse>;
16
16
  export interface RichMediaService {
17
+ /** Creates a new rich media for the account, either block-based (built from an empty template) or from an uploaded base64 zip; the server persists it and returns the generated rich media code. Use for HTML/zip rich media; use create_native_rich_media for SDK-rendered native content. */
17
18
  Create: RichMediaService_Create;
18
- /**
19
- * Create new native Rich Media. The server validates the payload and builds the zip archive
20
- * (native-config.json + pushwoosh.json) from the request fields.
21
- * Rich Media code will be generated by server and returned in response.
22
- */
19
+ /** Creates a new native (SDK-rendered) rich media from a native-config.json content object plus localizations, returning the generated rich media code. Use for native display types (modal, carousel, stories, etc.); use create_rich_media for HTML/zip content. */
23
20
  CreateNative: RichMediaService_CreateNative;
24
- /**
25
- * Update existing native Rich Media, replacing its content.
26
- * Fails if the Rich Media is not of the NATIVE created type.
27
- */
21
+ /** Replaces the content, name and localizations of an existing native rich media identified by code. Fails if the rich media is not of the NATIVE created type; use save_rich_media_block_template for HTML/block-based content. */
28
22
  UpdateNative: RichMediaService_UpdateNative;
23
+ /** Duplicates an existing rich media (by code) under a new name, copying its content, and returns the new rich media code. Use to start a new rich media from an existing one without editing the original. */
29
24
  Clone: RichMediaService_Clone;
25
+ /** Permanently deletes a rich media by code, removing its DB record and content files. Rejected if any in-app message still references it; detach those in-apps first. */
30
26
  Delete: RichMediaService_Delete;
27
+ /** Returns a single rich media by code, including its rendered content (index.html or native-config.json), params, created type and metadata. Use to inspect one rich media; use list_rich_medias to browse. */
31
28
  Get: RichMediaService_Get;
29
+ /** Returns the block-editor payload of a rich media by code: html, editor_json, params, input_groups and default language extracted from its zip. Use to load a rich media into the block/AI builder for editing. */
32
30
  GetBlockTemplate: RichMediaService_GetBlockTemplate;
31
+ /** Saves block/AI-builder rich media content (html, editor_json, localization) for an existing rich media code, overwriting its stored zip. Rejects native rich media (use update_native_rich_media instead). */
33
32
  SaveBlockTemplate: RichMediaService_SaveBlockTemplate;
33
+ /** Lists an account's rich medias with paging, free-text search over name and code, category filter, and last-month aggregate metrics per item. Use to browse rich medias or find a code before fetching details or statistics. */
34
34
  List: RichMediaService_List;
35
+ /** Returns time-series show/interaction/skip metrics for one rich media (by code) over a date range, broken down by platform and aggregation interval, plus frequency-capping suppression counts. Use for the rich media statistics chart. */
35
36
  GetDetailedStatistics: RichMediaService_GetDetailedStatistics;
37
+ /** Returns per-element (element_id/path) action counts for a rich media by code over a date range, split by action type (click, form submit, open, close) and platform. Use to see which elements users interacted with. */
36
38
  GetDetailedActionStatistics: RichMediaService_GetDetailedActionStatistics;
39
+ /** Lists the send channels (in-app, journey, push messages) that used a rich media by code over a date range, with per-channel triggered counts, paged. Use to see where a rich media was delivered. */
37
40
  GetSendChannels: RichMediaService_GetSendChannels;
41
+ /** Lists the devices (hwid, platform, open time) that were shown a rich media by code over a date range, paged. Use to inspect the exact devices that saw a rich media. */
38
42
  GetDevices: RichMediaService_GetDevices;
43
+ /** Returns per-event triggered and unique-triggered counts fired from within a rich media by code over a date range, by platform. Use to measure custom events emitted by a rich media's content. */
39
44
  GetEvents: RichMediaService_GetEvents;
40
45
  }
41
46
  export type ActionType = 'ACTION_TYPE_UNSPECIFIED' | 'ELEMENT_CLICK' | 'FORM_SUBMIT' | 'OPEN' | 'CLOSE';
@@ -84,7 +89,9 @@ export type RichMedia = {
84
89
  closeButtonType: boolean;
85
90
  };
86
91
  export type GetRequest = {
92
+ /** Application code (format XXXXX-XXXXX). */
87
93
  application?: string;
94
+ /** Rich media code to fetch. */
88
95
  code?: string;
89
96
  };
90
97
  export type GetResponse = {
@@ -94,13 +101,16 @@ export type ListRequest_ListView = 'LIST' | 'TILES';
94
101
  export type ListRequest_OrderBy = 'CREATED_DATE';
95
102
  export type ListRequest_OrderType = 'ASC' | 'DESC';
96
103
  export type ListRequest = {
104
+ /** Free-text search over rich media name and code. */
97
105
  search?: string;
106
+ /** Application code (format XXXXX-XXXXX); scopes metrics. */
98
107
  application?: string;
99
108
  viewType?: ListRequest_ListView;
100
109
  withMetrics?: boolean;
101
110
  withContent?: boolean;
102
- /** in ['category'] */
111
+ /** Restrict to rich medias in these categories. */
103
112
  searchByCategory?: string[];
113
+ /** Restrict to these rich media codes. */
104
114
  codes?: string[];
105
115
  orderBy?: ListRequest_OrderBy;
106
116
  orderType?: ListRequest_OrderType;
@@ -122,10 +132,15 @@ export type GetDetailedStatisticsRequest = {
122
132
  application?: string;
123
133
  dateFrom?: Date;
124
134
  dateTo?: Date;
135
+ /** Restrict stats to these send channels (in-app, journey, push). */
125
136
  sendChannels?: RichMediaSendChannel[];
137
+ /** Restrict stats to these platform ids. */
126
138
  platforms?: number[];
139
+ /** Scope stats to a single message send by its message code. */
127
140
  messageCode?: string;
141
+ /** Scope stats to a whole campaign by its campaign code. */
128
142
  campaignCode?: string;
143
+ /** Scope stats to a single in-app by its in-app code. */
129
144
  inAppCode?: string;
130
145
  aggregationInterval?: AggregationInterval;
131
146
  };
@@ -146,10 +161,15 @@ export type GetDetailedActionStatisticsRequest = {
146
161
  application?: string;
147
162
  dateFrom?: Date;
148
163
  dateTo?: Date;
164
+ /** Restrict stats to these send channels (in-app, journey, push). */
149
165
  sendChannels?: RichMediaSendChannel[];
166
+ /** Restrict stats to these platform ids. */
150
167
  platforms?: number[];
168
+ /** Scope stats to a single message send by its message code. */
151
169
  messageCode?: string;
170
+ /** Scope stats to a whole campaign by its campaign code. */
152
171
  campaignCode?: string;
172
+ /** Scope stats to a single in-app by its in-app code. */
153
173
  inAppCode?: string;
154
174
  aggregationInterval?: AggregationInterval;
155
175
  };
@@ -175,10 +195,15 @@ export type GetSendChannelsRequest = {
175
195
  application?: string;
176
196
  dateFrom?: Date;
177
197
  dateTo?: Date;
198
+ /** Restrict stats to these send channels (in-app, journey, push). */
178
199
  sendChannels?: RichMediaSendChannel[];
200
+ /** Restrict stats to these platform ids. */
179
201
  platforms?: number[];
202
+ /** Scope stats to a single message send by its message code. */
180
203
  messageCode?: string;
204
+ /** Scope stats to a whole campaign by its campaign code. */
181
205
  campaignCode?: string;
206
+ /** Scope stats to a single in-app by its in-app code. */
182
207
  inAppCode?: string;
183
208
  page?: number;
184
209
  perPage?: number;
@@ -202,10 +227,15 @@ export type GetDevicesRequest = {
202
227
  application?: string;
203
228
  dateFrom?: Date;
204
229
  dateTo?: Date;
230
+ /** Restrict stats to these send channels (in-app, journey, push). */
205
231
  sendChannels?: RichMediaSendChannel[];
232
+ /** Restrict stats to these platform ids. */
206
233
  platforms?: number[];
234
+ /** Scope stats to a single message send by its message code. */
207
235
  messageCode?: string;
236
+ /** Scope stats to a whole campaign by its campaign code. */
208
237
  campaignCode?: string;
238
+ /** Scope stats to a single in-app by its in-app code. */
209
239
  inAppCode?: string;
210
240
  page?: number;
211
241
  perPage?: number;
@@ -225,10 +255,15 @@ export type GetEventsRequest = {
225
255
  application?: string;
226
256
  dateFrom?: Date;
227
257
  dateTo?: Date;
258
+ /** Restrict stats to these send channels (in-app, journey, push). */
228
259
  sendChannels?: RichMediaSendChannel[];
260
+ /** Restrict stats to these platform ids. */
229
261
  platforms?: number[];
262
+ /** Scope stats to a single message send by its message code. */
230
263
  messageCode?: string;
264
+ /** Scope stats to a whole campaign by its campaign code. */
231
265
  campaignCode?: string;
266
+ /** Scope stats to a single in-app by its in-app code. */
232
267
  inAppCode?: string;
233
268
  };
234
269
  export type GetEventsResponse_EventStatistics = {
@@ -242,9 +277,13 @@ export type GetEventsResponse = {
242
277
  };
243
278
  export type CreateRequest_RichMediaType = 'BLOCK_BASED' | 'ZIP';
244
279
  export type CreateRequest = {
280
+ /** Name of the rich media. */
245
281
  name?: string;
282
+ /** BLOCK_BASED starts an empty block-editor template; ZIP imports from zip_content. */
246
283
  type?: CreateRequest_RichMediaType;
284
+ /** Whether the rich media shows a close button. */
247
285
  closeButtonType?: boolean;
286
+ /** Base64-encoded zip archive (must contain index.html, or native-config.json + pushwoosh.json). Used only when type is ZIP. */
248
287
  zipContent?: string;
249
288
  };
250
289
  export type CreateResponse = {
@@ -252,7 +291,7 @@ export type CreateResponse = {
252
291
  isBlockBased: boolean;
253
292
  };
254
293
  export type CreateNativeRequest = {
255
- /** Name of Rich Media. */
294
+ /** Name of rich media. */
256
295
  name?: string;
257
296
  /** Content of native-config.json: json object with displayType and the matching display block. */
258
297
  content?: string;
@@ -266,13 +305,13 @@ export type CreateNativeRequest = {
266
305
  defaultLanguage?: string;
267
306
  };
268
307
  export type CreateNativeResponse = {
269
- /** Code of the created Rich Media. */
308
+ /** Code of the created rich media. */
270
309
  code: string;
271
310
  };
272
311
  export type UpdateNativeRequest = {
273
- /** Code of the Rich Media to update. Must be of NATIVE created type. */
312
+ /** Code of the rich media to update. Must be of NATIVE created type. */
274
313
  code?: string;
275
- /** Name of Rich Media. */
314
+ /** Name of rich media. */
276
315
  name?: string;
277
316
  /** Content of native-config.json: json object with displayType and the matching display block. */
278
317
  content?: string;
@@ -286,11 +325,13 @@ export type UpdateNativeRequest = {
286
325
  defaultLanguage?: string;
287
326
  };
288
327
  export type UpdateNativeResponse = {
289
- /** Code of the updated Rich Media. */
328
+ /** Code of the updated rich media. */
290
329
  code: string;
291
330
  };
292
331
  export type CloneRequest = {
332
+ /** Rich media code to duplicate. */
293
333
  code?: string;
334
+ /** Name for the new cloned rich media. */
294
335
  name?: string;
295
336
  };
296
337
  export type CloneResponse = {
@@ -298,10 +339,12 @@ export type CloneResponse = {
298
339
  isBlockBased: boolean;
299
340
  };
300
341
  export type DeleteRequest = {
342
+ /** Rich media code to delete. */
301
343
  code?: string;
302
344
  };
303
345
  export type DeleteResponse = {};
304
346
  export type GetBlockTemplateRequest = {
347
+ /** Rich media code whose block-editor payload to return. */
305
348
  code?: string;
306
349
  };
307
350
  export type GetBlockTemplateResponse = {
@@ -317,15 +360,23 @@ export type GetBlockTemplateResponse = {
317
360
  createdType: RichMedia_CreatedType;
318
361
  };
319
362
  export type SaveBlockTemplateRequest = {
363
+ /** Rich media code to overwrite. */
320
364
  code?: string;
365
+ /** Name of the rich media. */
321
366
  name?: string;
367
+ /** Rendered HTML written to index.html; required. */
322
368
  html?: string;
369
+ /** Builder design JSON stored in editor.json: an Unlayer design for BUILDER, an AI-builder document for SMARTCARDS. */
323
370
  editorJson?: string;
371
+ /** JSON object of per-language texts; required. */
324
372
  localization?: string;
373
+ /** Default language code, e.g. "en"; falls back to the first localization key if not present. */
325
374
  defaultLanguage?: string;
326
375
  styleSettings?: string;
376
+ /** Whether the rich media shows a close button. */
327
377
  closeButtonType?: boolean;
328
378
  inputGroups?: string;
379
+ /** Editor type: TEMPLATE, BUILDER (Unlayer) or SMARTCARDS (AI builder). NATIVE is rejected here. */
329
380
  createdType?: RichMedia_CreatedType;
330
381
  };
331
382
  export type SaveBlockTemplateResponse = {
@@ -3,16 +3,22 @@ export type SegmentStatisticsService_Prepare = RpcMethod<PrepareRequest, Prepare
3
3
  export type SegmentStatisticsService_Status = RpcMethod<StatusRequest, StatusResponse>;
4
4
  export type SegmentStatisticsService_GetSegmentSizeChanges = RpcMethod<GetSegmentSizeChangesRequest, GetSegmentSizeChangesResponse>;
5
5
  export interface SegmentStatisticsService {
6
+ /** Kicks off (or refreshes) background size calculation for the given segments of an application, so their sizes and history can later be read. Call this before get_segment_statistics_status / get_segment_size_changes to make sure the numbers are up to date. */
6
7
  Prepare: SegmentStatisticsService_Prepare;
8
+ /** Returns the calculation status (prepared, not_prepared, in_process or failed) and last-updated time for each prepared segment of an application. Use to poll whether a prepare_segment_statistics run has finished before reading sizes. */
7
9
  Status: SegmentStatisticsService_Status;
10
+ /** Returns a time series of how one segment's size changed (per-interval increase, decrease and net, plus running totals) over a time range. Use to chart audience growth for a single segment; the segment must have been prepared first. */
8
11
  GetSegmentSizeChanges: SegmentStatisticsService_GetSegmentSizeChanges;
9
12
  }
10
13
  export type PrepareRequest = {
14
+ /** Segment (filter) codes to prepare statistics for. */
11
15
  segments?: string[];
16
+ /** Application code (format XXXXX-XXXXX) that owns the segments. */
12
17
  application?: string;
13
18
  };
14
19
  export type PrepareResponse = {};
15
20
  export type StatusRequest = {
21
+ /** Application code (format XXXXX-XXXXX) whose prepared segments' statuses to return. */
16
22
  application?: string;
17
23
  };
18
24
  export type StatusResponse_Status = 'unknown' | 'prepared' | 'not_prepared' | 'in_process' | 'failed';
@@ -25,7 +31,9 @@ export type StatusResponse = {
25
31
  segments: StatusResponse_SegmentStatus[];
26
32
  };
27
33
  export type GetSegmentSizeChangesRequest = {
34
+ /** Application code (format XXXXX-XXXXX) that owns the segment. */
28
35
  application?: string;
36
+ /** Segment (filter) code whose size-change history to return. */
29
37
  filter?: string;
30
38
  timestampFrom?: Date;
31
39
  timestampTo?: Date;