@pushwoosh/rpc-v2-http-api-data 0.2.215 → 0.2.216

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/data.js CHANGED
@@ -12027,6 +12027,30 @@ export const data = {
12027
12027
  "response": "pushwoosh.export_messages.v2.GetLastTasksResponse",
12028
12028
  "method": "post",
12029
12029
  "path": "/api/export_messages/lastTasks"
12030
+ },
12031
+ "StatisticsExport": {
12032
+ "request": "pushwoosh.export_messages.v2.ExportRequest",
12033
+ "response": "pushwoosh.export_messages.v2.ExportResponse",
12034
+ "method": "post",
12035
+ "path": "/api/export_messages/statistics_export"
12036
+ },
12037
+ "StatisticsExportStatus": {
12038
+ "request": "pushwoosh.export_messages.v2.StatusRequest",
12039
+ "response": "pushwoosh.export_messages.v2.StatusResponse",
12040
+ "method": "get",
12041
+ "path": "/api/export_messages/statistics_export/{uid}/status"
12042
+ },
12043
+ "StatisticsExportResult": {
12044
+ "request": "pushwoosh.export_messages.v2.ResultRequest",
12045
+ "response": "pushwoosh.export_messages.v2.ResultResponse",
12046
+ "method": "get",
12047
+ "path": "/api/export_messages/statistics_export/{uid}/result"
12048
+ },
12049
+ "StatisticsExportLastTasks": {
12050
+ "request": "pushwoosh.export_messages.v2.GetLastTasksRequest",
12051
+ "response": "pushwoosh.export_messages.v2.GetLastTasksResponse",
12052
+ "method": "post",
12053
+ "path": "/api/export_messages/statistics_export/lastTasks"
12030
12054
  }
12031
12055
  }
12032
12056
  },
@@ -12059,7 +12083,12 @@ export const data = {
12059
12083
  "TASK_TYPE_EXPORT_JOURNEY_GOAL_USERS",
12060
12084
  "TASK_TYPE_EXPORT_CONTROL_GROUP",
12061
12085
  "TASK_TYPE_EXPORT_SUBSCRIPTION_FORM_SUBSCRIBED_USERS",
12062
- "TASK_TYPE_EXPORT_UNIFIED_MESSAGES"
12086
+ "TASK_TYPE_EXPORT_UNIFIED_MESSAGES",
12087
+ "TASK_TYPE_EXPORT_MESSAGE_AUDIENCE",
12088
+ "TASK_TYPE_EXPORT_MESSAGE_STAGE_RECIPIENTS",
12089
+ "TASK_TYPE_EXPORT_MESSAGE_CLICKED_RECIPIENTS",
12090
+ "TASK_TYPE_EXPORT_MESSAGE_UNSUBSCRIBED",
12091
+ "TASK_TYPE_EXPORT_MESSAGE_ERROR_RECIPIENTS"
12063
12092
  ]
12064
12093
  },
12065
12094
  "pushwoosh.export_messages.v2.ExportRequest": {
@@ -12139,6 +12168,21 @@ export const data = {
12139
12168
  },
12140
12169
  "exportUnifiedMessages": {
12141
12170
  "type": "pushwoosh.export_messages.v2.ExportUnifiedMessagesArgs"
12171
+ },
12172
+ "exportMessageAudience": {
12173
+ "type": "pushwoosh.export_messages.v2.ExportMessageAudienceArgs"
12174
+ },
12175
+ "exportMessageStageRecipients": {
12176
+ "type": "pushwoosh.export_messages.v2.ExportMessageStageRecipientsArgs"
12177
+ },
12178
+ "exportMessageClickedRecipients": {
12179
+ "type": "pushwoosh.export_messages.v2.ExportMessageClickedRecipientsArgs"
12180
+ },
12181
+ "exportMessageUnsubscribed": {
12182
+ "type": "pushwoosh.export_messages.v2.ExportMessageUnsubscribedArgs"
12183
+ },
12184
+ "exportMessageErrorRecipients": {
12185
+ "type": "pushwoosh.export_messages.v2.ExportMessageErrorRecipientsArgs"
12142
12186
  }
12143
12187
  },
12144
12188
  "oneofs": {
@@ -12167,7 +12211,12 @@ export const data = {
12167
12211
  "exportJourneyGoalUsers",
12168
12212
  "exportControlGroup",
12169
12213
  "exportSubscriptionFormSubscribedUsers",
12170
- "exportUnifiedMessages"
12214
+ "exportUnifiedMessages",
12215
+ "exportMessageAudience",
12216
+ "exportMessageStageRecipients",
12217
+ "exportMessageClickedRecipients",
12218
+ "exportMessageUnsubscribed",
12219
+ "exportMessageErrorRecipients"
12171
12220
  ]
12172
12221
  }
12173
12222
  }
@@ -12308,6 +12357,21 @@ export const data = {
12308
12357
  },
12309
12358
  "exportUnifiedMessagesResult": {
12310
12359
  "type": "pushwoosh.export_messages.v2.ExportUnifiedMessagesResult"
12360
+ },
12361
+ "exportMessageAudienceResult": {
12362
+ "type": "pushwoosh.export_messages.v2.ExportMessageAudienceResult"
12363
+ },
12364
+ "exportMessageStageRecipientsResult": {
12365
+ "type": "pushwoosh.export_messages.v2.ExportMessageStageRecipientsResult"
12366
+ },
12367
+ "exportMessageClickedRecipientsResult": {
12368
+ "type": "pushwoosh.export_messages.v2.ExportMessageClickedRecipientsResult"
12369
+ },
12370
+ "exportMessageUnsubscribedResult": {
12371
+ "type": "pushwoosh.export_messages.v2.ExportMessageUnsubscribedResult"
12372
+ },
12373
+ "exportMessageErrorRecipientsResult": {
12374
+ "type": "pushwoosh.export_messages.v2.ExportMessageErrorRecipientsResult"
12311
12375
  }
12312
12376
  },
12313
12377
  "oneofs": {
@@ -12337,7 +12401,12 @@ export const data = {
12337
12401
  "exportJourneyGoalUsersResult",
12338
12402
  "exportControlGroupResult",
12339
12403
  "exportSubscriptionFormSubscribedUsersResult",
12340
- "exportUnifiedMessagesResult"
12404
+ "exportUnifiedMessagesResult",
12405
+ "exportMessageAudienceResult",
12406
+ "exportMessageStageRecipientsResult",
12407
+ "exportMessageClickedRecipientsResult",
12408
+ "exportMessageUnsubscribedResult",
12409
+ "exportMessageErrorRecipientsResult"
12341
12410
  ]
12342
12411
  }
12343
12412
  }
@@ -12462,6 +12531,21 @@ export const data = {
12462
12531
  "exportUnifiedMessages": {
12463
12532
  "type": "pushwoosh.export_messages.v2.ExportUnifiedMessagesArgs"
12464
12533
  },
12534
+ "exportMessageAudience": {
12535
+ "type": "pushwoosh.export_messages.v2.ExportMessageAudienceArgs"
12536
+ },
12537
+ "exportMessageStageRecipients": {
12538
+ "type": "pushwoosh.export_messages.v2.ExportMessageStageRecipientsArgs"
12539
+ },
12540
+ "exportMessageClickedRecipients": {
12541
+ "type": "pushwoosh.export_messages.v2.ExportMessageClickedRecipientsArgs"
12542
+ },
12543
+ "exportMessageUnsubscribed": {
12544
+ "type": "pushwoosh.export_messages.v2.ExportMessageUnsubscribedArgs"
12545
+ },
12546
+ "exportMessageErrorRecipients": {
12547
+ "type": "pushwoosh.export_messages.v2.ExportMessageErrorRecipientsArgs"
12548
+ },
12465
12549
  "failedTask": {
12466
12550
  "type": "pushwoosh.export_messages.v2.TaskFailed"
12467
12551
  },
@@ -12527,6 +12611,21 @@ export const data = {
12527
12611
  },
12528
12612
  "exportUnifiedMessagesResult": {
12529
12613
  "type": "pushwoosh.export_messages.v2.ExportUnifiedMessagesResult"
12614
+ },
12615
+ "exportMessageAudienceResult": {
12616
+ "type": "pushwoosh.export_messages.v2.ExportMessageAudienceResult"
12617
+ },
12618
+ "exportMessageStageRecipientsResult": {
12619
+ "type": "pushwoosh.export_messages.v2.ExportMessageStageRecipientsResult"
12620
+ },
12621
+ "exportMessageClickedRecipientsResult": {
12622
+ "type": "pushwoosh.export_messages.v2.ExportMessageClickedRecipientsResult"
12623
+ },
12624
+ "exportMessageUnsubscribedResult": {
12625
+ "type": "pushwoosh.export_messages.v2.ExportMessageUnsubscribedResult"
12626
+ },
12627
+ "exportMessageErrorRecipientsResult": {
12628
+ "type": "pushwoosh.export_messages.v2.ExportMessageErrorRecipientsResult"
12530
12629
  }
12531
12630
  },
12532
12631
  "oneofs": {
@@ -12552,7 +12651,12 @@ export const data = {
12552
12651
  "exportJourneyPointUsers",
12553
12652
  "exportControlGroup",
12554
12653
  "exportSubscriptionFormSubscribedUsers",
12555
- "exportUnifiedMessages"
12654
+ "exportUnifiedMessages",
12655
+ "exportMessageAudience",
12656
+ "exportMessageStageRecipients",
12657
+ "exportMessageClickedRecipients",
12658
+ "exportMessageUnsubscribed",
12659
+ "exportMessageErrorRecipients"
12556
12660
  ]
12557
12661
  },
12558
12662
  "result": {
@@ -12578,7 +12682,12 @@ export const data = {
12578
12682
  "exportJourneyPointUsersResult",
12579
12683
  "exportControlGroupResult",
12580
12684
  "exportSubscriptionFormSubscribedUsersResult",
12581
- "exportUnifiedMessagesResult"
12685
+ "exportUnifiedMessagesResult",
12686
+ "exportMessageAudienceResult",
12687
+ "exportMessageStageRecipientsResult",
12688
+ "exportMessageClickedRecipientsResult",
12689
+ "exportMessageUnsubscribedResult",
12690
+ "exportMessageErrorRecipientsResult"
12582
12691
  ]
12583
12692
  }
12584
12693
  }
@@ -13392,6 +13501,203 @@ export const data = {
13392
13501
  }
13393
13502
  }
13394
13503
  },
13504
+ "pushwoosh.export_messages.v2.ExportMessageAudienceArgs": {
13505
+ "type": "I",
13506
+ "fields": {
13507
+ "messageId": {
13508
+ "type": "number"
13509
+ },
13510
+ "campaign": {
13511
+ "type": "string"
13512
+ },
13513
+ "application": {
13514
+ "type": "string"
13515
+ },
13516
+ "dateFrom": {
13517
+ "type": "Date"
13518
+ },
13519
+ "dateTo": {
13520
+ "type": "Date"
13521
+ },
13522
+ "platforms": {
13523
+ "type": "number",
13524
+ "array": true
13525
+ },
13526
+ "messageCode": {
13527
+ "type": "string"
13528
+ }
13529
+ }
13530
+ },
13531
+ "pushwoosh.export_messages.v2.ExportMessageAudienceResult": {
13532
+ "type": "I",
13533
+ "fields": {
13534
+ "file": {
13535
+ "type": "string"
13536
+ },
13537
+ "fileUrl": {
13538
+ "type": "string"
13539
+ }
13540
+ }
13541
+ },
13542
+ "pushwoosh.export_messages.v2.ExportMessageStageRecipientsArgs.Stage": {
13543
+ "type": "E",
13544
+ "values": [
13545
+ "STAGE_UNSPECIFIED",
13546
+ "SENT",
13547
+ "DELIVERED",
13548
+ "OPENED"
13549
+ ]
13550
+ },
13551
+ "pushwoosh.export_messages.v2.ExportMessageStageRecipientsArgs": {
13552
+ "type": "I",
13553
+ "fields": {
13554
+ "messageId": {
13555
+ "type": "number"
13556
+ },
13557
+ "campaign": {
13558
+ "type": "string"
13559
+ },
13560
+ "application": {
13561
+ "type": "string"
13562
+ },
13563
+ "stage": {
13564
+ "type": "pushwoosh.export_messages.v2.ExportMessageStageRecipientsArgs.Stage"
13565
+ },
13566
+ "dateFrom": {
13567
+ "type": "Date"
13568
+ },
13569
+ "dateTo": {
13570
+ "type": "Date"
13571
+ },
13572
+ "platforms": {
13573
+ "type": "number",
13574
+ "array": true
13575
+ },
13576
+ "messageCode": {
13577
+ "type": "string"
13578
+ }
13579
+ }
13580
+ },
13581
+ "pushwoosh.export_messages.v2.ExportMessageStageRecipientsResult": {
13582
+ "type": "I",
13583
+ "fields": {
13584
+ "file": {
13585
+ "type": "string"
13586
+ },
13587
+ "fileUrl": {
13588
+ "type": "string"
13589
+ }
13590
+ }
13591
+ },
13592
+ "pushwoosh.export_messages.v2.ExportMessageClickedRecipientsArgs": {
13593
+ "type": "I",
13594
+ "fields": {
13595
+ "messageId": {
13596
+ "type": "number"
13597
+ },
13598
+ "campaign": {
13599
+ "type": "string"
13600
+ },
13601
+ "application": {
13602
+ "type": "string"
13603
+ },
13604
+ "dateFrom": {
13605
+ "type": "Date"
13606
+ },
13607
+ "dateTo": {
13608
+ "type": "Date"
13609
+ }
13610
+ }
13611
+ },
13612
+ "pushwoosh.export_messages.v2.ExportMessageClickedRecipientsResult": {
13613
+ "type": "I",
13614
+ "fields": {
13615
+ "file": {
13616
+ "type": "string"
13617
+ },
13618
+ "fileUrl": {
13619
+ "type": "string"
13620
+ }
13621
+ }
13622
+ },
13623
+ "pushwoosh.export_messages.v2.ExportMessageUnsubscribedArgs": {
13624
+ "type": "I",
13625
+ "fields": {
13626
+ "messageId": {
13627
+ "type": "number"
13628
+ },
13629
+ "campaign": {
13630
+ "type": "string"
13631
+ },
13632
+ "application": {
13633
+ "type": "string"
13634
+ },
13635
+ "dateFrom": {
13636
+ "type": "Date"
13637
+ },
13638
+ "dateTo": {
13639
+ "type": "Date"
13640
+ },
13641
+ "messageCode": {
13642
+ "type": "string"
13643
+ }
13644
+ }
13645
+ },
13646
+ "pushwoosh.export_messages.v2.ExportMessageUnsubscribedResult": {
13647
+ "type": "I",
13648
+ "fields": {
13649
+ "file": {
13650
+ "type": "string"
13651
+ },
13652
+ "fileUrl": {
13653
+ "type": "string"
13654
+ }
13655
+ }
13656
+ },
13657
+ "pushwoosh.export_messages.v2.ExportMessageErrorRecipientsArgs": {
13658
+ "type": "I",
13659
+ "fields": {
13660
+ "messageId": {
13661
+ "type": "number"
13662
+ },
13663
+ "campaign": {
13664
+ "type": "string"
13665
+ },
13666
+ "application": {
13667
+ "type": "string"
13668
+ },
13669
+ "statusCode": {
13670
+ "type": "number"
13671
+ },
13672
+ "processingErrorType": {
13673
+ "type": "string"
13674
+ },
13675
+ "dateFrom": {
13676
+ "type": "Date"
13677
+ },
13678
+ "dateTo": {
13679
+ "type": "Date"
13680
+ },
13681
+ "platforms": {
13682
+ "type": "number",
13683
+ "array": true
13684
+ },
13685
+ "messageCode": {
13686
+ "type": "string"
13687
+ }
13688
+ }
13689
+ },
13690
+ "pushwoosh.export_messages.v2.ExportMessageErrorRecipientsResult": {
13691
+ "type": "I",
13692
+ "fields": {
13693
+ "file": {
13694
+ "type": "string"
13695
+ },
13696
+ "fileUrl": {
13697
+ "type": "string"
13698
+ }
13699
+ }
13700
+ },
13395
13701
  "pushwoosh.export_messages.v2.CreateSegmentFromMessageArgs.Type": {
13396
13702
  "type": "E",
13397
13703
  "values": [
@@ -11,6 +11,10 @@ export type ExportStatisticsService_Export = RpcMethod<pushwoosh_export_messages
11
11
  export type ExportStatisticsService_Status = RpcMethod<pushwoosh_export_messages_v2_StatusRequest, pushwoosh_export_messages_v2_StatusResponse>;
12
12
  export type ExportStatisticsService_Result = RpcMethod<pushwoosh_export_messages_v2_ResultRequest, pushwoosh_export_messages_v2_ResultResponse>;
13
13
  export type ExportStatisticsService_GetLastTasks = RpcMethod<pushwoosh_export_messages_v2_GetLastTasksRequest, pushwoosh_export_messages_v2_GetLastTasksResponse>;
14
+ export type ExportStatisticsService_StatisticsExport = RpcMethod<pushwoosh_export_messages_v2_ExportRequest, pushwoosh_export_messages_v2_ExportResponse>;
15
+ export type ExportStatisticsService_StatisticsExportStatus = RpcMethod<pushwoosh_export_messages_v2_StatusRequest, pushwoosh_export_messages_v2_StatusResponse>;
16
+ export type ExportStatisticsService_StatisticsExportResult = RpcMethod<pushwoosh_export_messages_v2_ResultRequest, pushwoosh_export_messages_v2_ResultResponse>;
17
+ export type ExportStatisticsService_StatisticsExportLastTasks = RpcMethod<pushwoosh_export_messages_v2_GetLastTasksRequest, pushwoosh_export_messages_v2_GetLastTasksResponse>;
14
18
  export interface ExportStatisticsService {
15
19
  /** Starts an asynchronous export or computation task (CSV of message history, recipients, bounced emails, journey users, retention, or create-segment-from-message) and returns its numeric task uid. The task type and its args select what is produced; poll get_export_task_status, then fetch get_export_task_result. */
16
20
  Export: ExportStatisticsService_Export;
@@ -20,4 +24,15 @@ export interface ExportStatisticsService {
20
24
  Result: ExportStatisticsService_Result;
21
25
  /** Lists recent export tasks for an application, optionally scoped by task type, message code/id, campaign, journey or event. Use to find a prior export's uid or check what was already run before starting a new one. */
22
26
  GetLastTasks: ExportStatisticsService_GetLastTasks;
27
+ /**
28
+ * Starts an export task for the statistics screen. Same tasks as create_export_task, refused
29
+ * with PERMISSION_DENIED without the row-level log right and with NOT_FOUND on a foreign subject.
30
+ */
31
+ StatisticsExport: ExportStatisticsService_StatisticsExport;
32
+ /** Status of a task started through create_statistics_export_task. Same right as that call. */
33
+ StatisticsExportStatus: ExportStatisticsService_StatisticsExportStatus;
34
+ /** Result of a finished statistics export task: the file link. Same right as its Export. */
35
+ StatisticsExportResult: ExportStatisticsService_StatisticsExportResult;
36
+ /** Recent statistics export tasks of the application. Same right as their Export. */
37
+ StatisticsExportLastTasks: ExportStatisticsService_StatisticsExportLastTasks;
23
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.215",
3
+ "version": "0.2.216",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -6,7 +6,7 @@ export type TaskType = 'TASK_TYPE_UNSPECIFIED' | 'TASK_TYPE_FAILED' | 'TASK_TYPE
6
6
  /** deprecated */
7
7
  | 'TASK_TYPE_EXPORT_APPLY_SEGMENT_TO_MESSAGE' | 'TASK_TYPE_CALCULATE_RETENTION'
8
8
  /** deprecated */
9
- | 'TASK_TYPE_APPLY_SEGMENT_TO_METRIC' | 'TASK_TYPE_EXPORT_RICH_MEDIA_RECIPIENTS' | 'TASK_TYPE_EXPORT_BOUNCED_EMAILS' | 'TASK_TYPE_EXPORT_JOURNEYS_HISTORY' | 'TASK_TYPE_EXPORT_JOURNEY_POINT_USERS' | 'TASK_TYPE_EXPORT_MESSAGE_RECIPIENTS' | 'TASK_TYPE_EXPORT_MESSAGE_CLICKS_DEVICES' | 'TASK_TYPE_EXPORT_MESSAGE_EVENT_TRIGGERED_DEVICES' | 'TASK_TYPE_EXPORT_MESSAGE_ERROR_DEVICES' | 'TASK_TYPE_CREATE_SEGMENT_FROM_MESSAGE' | 'TASK_TYPE_UPDATE_SEGMENT_INSIGHTS_LIST' | 'TASK_TYPE_EXPORT_JOURNEY_USERS_LIST' | 'TASK_TYPE_EXPORT_JOURNEY_POINTS_STATISTICS' | 'TASK_TYPE_EXPORT_JOURNEY_GOAL_USERS' | 'TASK_TYPE_EXPORT_CONTROL_GROUP' | 'TASK_TYPE_EXPORT_SUBSCRIPTION_FORM_SUBSCRIBED_USERS' | 'TASK_TYPE_EXPORT_UNIFIED_MESSAGES';
9
+ | 'TASK_TYPE_APPLY_SEGMENT_TO_METRIC' | 'TASK_TYPE_EXPORT_RICH_MEDIA_RECIPIENTS' | 'TASK_TYPE_EXPORT_BOUNCED_EMAILS' | 'TASK_TYPE_EXPORT_JOURNEYS_HISTORY' | 'TASK_TYPE_EXPORT_JOURNEY_POINT_USERS' | 'TASK_TYPE_EXPORT_MESSAGE_RECIPIENTS' | 'TASK_TYPE_EXPORT_MESSAGE_CLICKS_DEVICES' | 'TASK_TYPE_EXPORT_MESSAGE_EVENT_TRIGGERED_DEVICES' | 'TASK_TYPE_EXPORT_MESSAGE_ERROR_DEVICES' | 'TASK_TYPE_CREATE_SEGMENT_FROM_MESSAGE' | 'TASK_TYPE_UPDATE_SEGMENT_INSIGHTS_LIST' | 'TASK_TYPE_EXPORT_JOURNEY_USERS_LIST' | 'TASK_TYPE_EXPORT_JOURNEY_POINTS_STATISTICS' | 'TASK_TYPE_EXPORT_JOURNEY_GOAL_USERS' | 'TASK_TYPE_EXPORT_CONTROL_GROUP' | 'TASK_TYPE_EXPORT_SUBSCRIPTION_FORM_SUBSCRIBED_USERS' | 'TASK_TYPE_EXPORT_UNIFIED_MESSAGES' | 'TASK_TYPE_EXPORT_MESSAGE_AUDIENCE' | 'TASK_TYPE_EXPORT_MESSAGE_STAGE_RECIPIENTS' | 'TASK_TYPE_EXPORT_MESSAGE_CLICKED_RECIPIENTS' | 'TASK_TYPE_EXPORT_MESSAGE_UNSUBSCRIBED' | 'TASK_TYPE_EXPORT_MESSAGE_ERROR_RECIPIENTS';
10
10
  export type ExportRequest_args_trackingLogCsv = {
11
11
  type: 'trackingLogCsv';
12
12
  data: TrackingLogCSVArgs;
@@ -103,7 +103,27 @@ export type ExportRequest_args_exportUnifiedMessages = {
103
103
  type: 'exportUnifiedMessages';
104
104
  data: ExportUnifiedMessagesArgs;
105
105
  };
106
- export type ExportRequest_args = ExportRequest_args_trackingLogCsv | ExportRequest_args_exportMessagesV2 | ExportRequest_args_exportUnregisteredDevices | ExportRequest_args_exportRichMediaFormValues | ExportRequest_args_applySegmentToMessage | ExportRequest_args_exportApplySegmentToMessage | ExportRequest_args_calculateRetention | ExportRequest_args_applySegmentToMetric | ExportRequest_args_exportRichMediaRecipients | ExportRequest_args_exportBouncedEmails | ExportRequest_args_exportJourneysHistory | ExportRequest_args_exportJourneyPointUsers | ExportRequest_args_exportMessageRecipients | ExportRequest_args_exportMessageClicksDevices | ExportRequest_args_exportMessageEventTriggeredDevices | ExportRequest_args_exportMessageErrorDevices | ExportRequest_args_createSegmentFromMessage | ExportRequest_args_updateSegmentInsightsList | ExportRequest_args_exportJourneyUsersList | ExportRequest_args_exportJourneyPointsStatistics | ExportRequest_args_exportJourneyGoalUsers | ExportRequest_args_exportControlGroup | ExportRequest_args_exportSubscriptionFormSubscribedUsers | ExportRequest_args_exportUnifiedMessages;
106
+ export type ExportRequest_args_exportMessageAudience = {
107
+ type: 'exportMessageAudience';
108
+ data: ExportMessageAudienceArgs;
109
+ };
110
+ export type ExportRequest_args_exportMessageStageRecipients = {
111
+ type: 'exportMessageStageRecipients';
112
+ data: ExportMessageStageRecipientsArgs;
113
+ };
114
+ export type ExportRequest_args_exportMessageClickedRecipients = {
115
+ type: 'exportMessageClickedRecipients';
116
+ data: ExportMessageClickedRecipientsArgs;
117
+ };
118
+ export type ExportRequest_args_exportMessageUnsubscribed = {
119
+ type: 'exportMessageUnsubscribed';
120
+ data: ExportMessageUnsubscribedArgs;
121
+ };
122
+ export type ExportRequest_args_exportMessageErrorRecipients = {
123
+ type: 'exportMessageErrorRecipients';
124
+ data: ExportMessageErrorRecipientsArgs;
125
+ };
126
+ export type ExportRequest_args = ExportRequest_args_trackingLogCsv | ExportRequest_args_exportMessagesV2 | ExportRequest_args_exportUnregisteredDevices | ExportRequest_args_exportRichMediaFormValues | ExportRequest_args_applySegmentToMessage | ExportRequest_args_exportApplySegmentToMessage | ExportRequest_args_calculateRetention | ExportRequest_args_applySegmentToMetric | ExportRequest_args_exportRichMediaRecipients | ExportRequest_args_exportBouncedEmails | ExportRequest_args_exportJourneysHistory | ExportRequest_args_exportJourneyPointUsers | ExportRequest_args_exportMessageRecipients | ExportRequest_args_exportMessageClicksDevices | ExportRequest_args_exportMessageEventTriggeredDevices | ExportRequest_args_exportMessageErrorDevices | ExportRequest_args_createSegmentFromMessage | ExportRequest_args_updateSegmentInsightsList | ExportRequest_args_exportJourneyUsersList | ExportRequest_args_exportJourneyPointsStatistics | ExportRequest_args_exportJourneyGoalUsers | ExportRequest_args_exportControlGroup | ExportRequest_args_exportSubscriptionFormSubscribedUsers | ExportRequest_args_exportUnifiedMessages | ExportRequest_args_exportMessageAudience | ExportRequest_args_exportMessageStageRecipients | ExportRequest_args_exportMessageClickedRecipients | ExportRequest_args_exportMessageUnsubscribed | ExportRequest_args_exportMessageErrorRecipients;
107
127
  export type ExportRequest = {
108
128
  type?: TaskType;
109
129
  args: ExportRequest_args;
@@ -226,7 +246,27 @@ export type ResultResponse_result_exportUnifiedMessagesResult = {
226
246
  type: 'exportUnifiedMessagesResult';
227
247
  data: ExportUnifiedMessagesResult;
228
248
  };
229
- export type ResultResponse_result = ResultResponse_result_failedTask | ResultResponse_result_trackingLogResult | ResultResponse_result_exportMessagesV2Result | ResultResponse_result_exportUnregisteredDevicesResult | ResultResponse_result_exportRichMediaFormValuesResult | ResultResponse_result_applySegmentToMessageResult | ResultResponse_result_exportApplySegmentToMessageResult | ResultResponse_result_calculateRetentionResult | ResultResponse_result_applySegmentToMetricResult | ResultResponse_result_exportRichMediaRecipientsResult | ResultResponse_result_exportBouncedEmailsResult | ResultResponse_result_exportJourneysHistoryResult | ResultResponse_result_exportJourneyPointUsersResult | ResultResponse_result_exportMessageRecipientsResult | ResultResponse_result_exportMessageClicksDevicesResult | ResultResponse_result_exportMessageEventTriggeredDevicesResult | ResultResponse_result_exportMessageErrorDevicesResult | ResultResponse_result_createSegmentFromMessageResult | ResultResponse_result_updateSegmentInsightsListResult | ResultResponse_result_exportJourneyUsersListResult | ResultResponse_result_exportJourneyPointsStatisticsResult | ResultResponse_result_exportJourneyGoalUsersResult | ResultResponse_result_exportControlGroupResult | ResultResponse_result_exportSubscriptionFormSubscribedUsersResult | ResultResponse_result_exportUnifiedMessagesResult;
249
+ export type ResultResponse_result_exportMessageAudienceResult = {
250
+ type: 'exportMessageAudienceResult';
251
+ data: ExportMessageAudienceResult;
252
+ };
253
+ export type ResultResponse_result_exportMessageStageRecipientsResult = {
254
+ type: 'exportMessageStageRecipientsResult';
255
+ data: ExportMessageStageRecipientsResult;
256
+ };
257
+ export type ResultResponse_result_exportMessageClickedRecipientsResult = {
258
+ type: 'exportMessageClickedRecipientsResult';
259
+ data: ExportMessageClickedRecipientsResult;
260
+ };
261
+ export type ResultResponse_result_exportMessageUnsubscribedResult = {
262
+ type: 'exportMessageUnsubscribedResult';
263
+ data: ExportMessageUnsubscribedResult;
264
+ };
265
+ export type ResultResponse_result_exportMessageErrorRecipientsResult = {
266
+ type: 'exportMessageErrorRecipientsResult';
267
+ data: ExportMessageErrorRecipientsResult;
268
+ };
269
+ export type ResultResponse_result = ResultResponse_result_failedTask | ResultResponse_result_trackingLogResult | ResultResponse_result_exportMessagesV2Result | ResultResponse_result_exportUnregisteredDevicesResult | ResultResponse_result_exportRichMediaFormValuesResult | ResultResponse_result_applySegmentToMessageResult | ResultResponse_result_exportApplySegmentToMessageResult | ResultResponse_result_calculateRetentionResult | ResultResponse_result_applySegmentToMetricResult | ResultResponse_result_exportRichMediaRecipientsResult | ResultResponse_result_exportBouncedEmailsResult | ResultResponse_result_exportJourneysHistoryResult | ResultResponse_result_exportJourneyPointUsersResult | ResultResponse_result_exportMessageRecipientsResult | ResultResponse_result_exportMessageClicksDevicesResult | ResultResponse_result_exportMessageEventTriggeredDevicesResult | ResultResponse_result_exportMessageErrorDevicesResult | ResultResponse_result_createSegmentFromMessageResult | ResultResponse_result_updateSegmentInsightsListResult | ResultResponse_result_exportJourneyUsersListResult | ResultResponse_result_exportJourneyPointsStatisticsResult | ResultResponse_result_exportJourneyGoalUsersResult | ResultResponse_result_exportControlGroupResult | ResultResponse_result_exportSubscriptionFormSubscribedUsersResult | ResultResponse_result_exportUnifiedMessagesResult | ResultResponse_result_exportMessageAudienceResult | ResultResponse_result_exportMessageStageRecipientsResult | ResultResponse_result_exportMessageClickedRecipientsResult | ResultResponse_result_exportMessageUnsubscribedResult | ResultResponse_result_exportMessageErrorRecipientsResult;
230
270
  export type ResultResponse = {
231
271
  type: TaskType;
232
272
  result: ResultResponse_result;
@@ -333,7 +373,27 @@ export type TaskInfo_args_exportUnifiedMessages = {
333
373
  type: 'exportUnifiedMessages';
334
374
  data: ExportUnifiedMessagesArgs;
335
375
  };
336
- export type TaskInfo_args = TaskInfo_args_trackingLogCsv | TaskInfo_args_exportMessagesV2 | TaskInfo_args_exportUnregisteredDevices | TaskInfo_args_exportRichMediaFormValues | TaskInfo_args_applySegmentToMessage | TaskInfo_args_exportRichMediaRecipients | TaskInfo_args_exportJourneysHistory | TaskInfo_args_exportMessageRecipients | TaskInfo_args_exportMessageClicksDevices | TaskInfo_args_exportMessageEventTriggeredDevices | TaskInfo_args_exportMessageErrorsDevices | TaskInfo_args_createSegmentFromMessage | TaskInfo_args_updateSegmentInsightsList | TaskInfo_args_exportBouncedEmails | TaskInfo_args_exportJourneyUsersList | TaskInfo_args_exportJourneyPointsStatistics | TaskInfo_args_exportJourneyGoalUsers | TaskInfo_args_exportJourneyPointUsers | TaskInfo_args_exportControlGroup | TaskInfo_args_exportSubscriptionFormSubscribedUsers | TaskInfo_args_exportUnifiedMessages;
376
+ export type TaskInfo_args_exportMessageAudience = {
377
+ type: 'exportMessageAudience';
378
+ data: ExportMessageAudienceArgs;
379
+ };
380
+ export type TaskInfo_args_exportMessageStageRecipients = {
381
+ type: 'exportMessageStageRecipients';
382
+ data: ExportMessageStageRecipientsArgs;
383
+ };
384
+ export type TaskInfo_args_exportMessageClickedRecipients = {
385
+ type: 'exportMessageClickedRecipients';
386
+ data: ExportMessageClickedRecipientsArgs;
387
+ };
388
+ export type TaskInfo_args_exportMessageUnsubscribed = {
389
+ type: 'exportMessageUnsubscribed';
390
+ data: ExportMessageUnsubscribedArgs;
391
+ };
392
+ export type TaskInfo_args_exportMessageErrorRecipients = {
393
+ type: 'exportMessageErrorRecipients';
394
+ data: ExportMessageErrorRecipientsArgs;
395
+ };
396
+ export type TaskInfo_args = TaskInfo_args_trackingLogCsv | TaskInfo_args_exportMessagesV2 | TaskInfo_args_exportUnregisteredDevices | TaskInfo_args_exportRichMediaFormValues | TaskInfo_args_applySegmentToMessage | TaskInfo_args_exportRichMediaRecipients | TaskInfo_args_exportJourneysHistory | TaskInfo_args_exportMessageRecipients | TaskInfo_args_exportMessageClicksDevices | TaskInfo_args_exportMessageEventTriggeredDevices | TaskInfo_args_exportMessageErrorsDevices | TaskInfo_args_createSegmentFromMessage | TaskInfo_args_updateSegmentInsightsList | TaskInfo_args_exportBouncedEmails | TaskInfo_args_exportJourneyUsersList | TaskInfo_args_exportJourneyPointsStatistics | TaskInfo_args_exportJourneyGoalUsers | TaskInfo_args_exportJourneyPointUsers | TaskInfo_args_exportControlGroup | TaskInfo_args_exportSubscriptionFormSubscribedUsers | TaskInfo_args_exportUnifiedMessages | TaskInfo_args_exportMessageAudience | TaskInfo_args_exportMessageStageRecipients | TaskInfo_args_exportMessageClickedRecipients | TaskInfo_args_exportMessageUnsubscribed | TaskInfo_args_exportMessageErrorRecipients;
337
397
  export type TaskInfo_result_failedTask = {
338
398
  type: 'failedTask';
339
399
  data: TaskFailed;
@@ -422,7 +482,27 @@ export type TaskInfo_result_exportUnifiedMessagesResult = {
422
482
  type: 'exportUnifiedMessagesResult';
423
483
  data: ExportUnifiedMessagesResult;
424
484
  };
425
- export type TaskInfo_result = TaskInfo_result_failedTask | TaskInfo_result_trackingLogResult | TaskInfo_result_exportMessagesV2Result | TaskInfo_result_exportUnregisteredDevicesResult | TaskInfo_result_exportRichMediaFormValuesResult | TaskInfo_result_applySegmentToMessageResult | TaskInfo_result_exportRichMediaRecipientsResult | TaskInfo_result_exportJourneysHistoryResult | TaskInfo_result_exportMessageRecipientsResult | TaskInfo_result_exportMessageClicksDevicesResult | TaskInfo_result_exportMessageEventTriggeredDevicesResult | TaskInfo_result_exportMessageErrorsDevicesResult | TaskInfo_result_createSegmentFromMessageResult | TaskInfo_result_updateSegmentInsightsListResult | TaskInfo_result_exportBouncedEmailsResult | TaskInfo_result_exportJourneyUsersListResult | TaskInfo_result_exportJourneyPointsStatisticsResult | TaskInfo_result_exportJourneyGoalUsersResult | TaskInfo_result_exportJourneyPointUsersResult | TaskInfo_result_exportControlGroupResult | TaskInfo_result_exportSubscriptionFormSubscribedUsersResult | TaskInfo_result_exportUnifiedMessagesResult;
485
+ export type TaskInfo_result_exportMessageAudienceResult = {
486
+ type: 'exportMessageAudienceResult';
487
+ data: ExportMessageAudienceResult;
488
+ };
489
+ export type TaskInfo_result_exportMessageStageRecipientsResult = {
490
+ type: 'exportMessageStageRecipientsResult';
491
+ data: ExportMessageStageRecipientsResult;
492
+ };
493
+ export type TaskInfo_result_exportMessageClickedRecipientsResult = {
494
+ type: 'exportMessageClickedRecipientsResult';
495
+ data: ExportMessageClickedRecipientsResult;
496
+ };
497
+ export type TaskInfo_result_exportMessageUnsubscribedResult = {
498
+ type: 'exportMessageUnsubscribedResult';
499
+ data: ExportMessageUnsubscribedResult;
500
+ };
501
+ export type TaskInfo_result_exportMessageErrorRecipientsResult = {
502
+ type: 'exportMessageErrorRecipientsResult';
503
+ data: ExportMessageErrorRecipientsResult;
504
+ };
505
+ export type TaskInfo_result = TaskInfo_result_failedTask | TaskInfo_result_trackingLogResult | TaskInfo_result_exportMessagesV2Result | TaskInfo_result_exportUnregisteredDevicesResult | TaskInfo_result_exportRichMediaFormValuesResult | TaskInfo_result_applySegmentToMessageResult | TaskInfo_result_exportRichMediaRecipientsResult | TaskInfo_result_exportJourneysHistoryResult | TaskInfo_result_exportMessageRecipientsResult | TaskInfo_result_exportMessageClicksDevicesResult | TaskInfo_result_exportMessageEventTriggeredDevicesResult | TaskInfo_result_exportMessageErrorsDevicesResult | TaskInfo_result_createSegmentFromMessageResult | TaskInfo_result_updateSegmentInsightsListResult | TaskInfo_result_exportBouncedEmailsResult | TaskInfo_result_exportJourneyUsersListResult | TaskInfo_result_exportJourneyPointsStatisticsResult | TaskInfo_result_exportJourneyGoalUsersResult | TaskInfo_result_exportJourneyPointUsersResult | TaskInfo_result_exportControlGroupResult | TaskInfo_result_exportSubscriptionFormSubscribedUsersResult | TaskInfo_result_exportUnifiedMessagesResult | TaskInfo_result_exportMessageAudienceResult | TaskInfo_result_exportMessageStageRecipientsResult | TaskInfo_result_exportMessageClickedRecipientsResult | TaskInfo_result_exportMessageUnsubscribedResult | TaskInfo_result_exportMessageErrorRecipientsResult;
426
506
  export type TaskInfo = {
427
507
  id: number;
428
508
  timestamp: string;
@@ -703,6 +783,124 @@ export type ExportMessageErrorsDevicesResult = {
703
783
  /** Ready-to-use download URL for `file`; empty when the service has no base URL configured. */
704
784
  fileUrl: string;
705
785
  };
786
+ /**
787
+ * Counts every send event like the AUDIENCE card: sends plus publishes that never reached
788
+ * a send. One row per event, not per device.
789
+ */
790
+ export type ExportMessageAudienceArgs = {
791
+ messageId: number;
792
+ campaign: string;
793
+ application: string;
794
+ dateFrom: Date;
795
+ dateTo: Date;
796
+ /**
797
+ * Platforms of the channel this card was measured over — a channel is a set of them, and
798
+ * mobile push on an iOS + Android message is two. Empty means every platform.
799
+ */
800
+ platforms: number[];
801
+ /** Transactional sends all share message_id 0, so only the code names one message. */
802
+ messageCode: string;
803
+ };
804
+ export type ExportMessageAudienceResult = {
805
+ file: string;
806
+ /** Ready-to-use download URL for `file`; empty when the service has no base URL configured. */
807
+ fileUrl: string;
808
+ };
809
+ export type ExportMessageStageRecipientsArgs_Stage =
810
+ /**
811
+ * Zero is not a stage: a request that forgot the field must be refused, not exported as
812
+ * SENT. Every other enum of this protocol keeps *_UNSPECIFIED on zero too.
813
+ */
814
+ 'STAGE_UNSPECIFIED'
815
+ /** Accepted by the gateway — the SENT card. */
816
+ | 'SENT'
817
+ /**
818
+ * Delivery confirmed by the provider — the DELIVERED card. Bounces are not subtracted:
819
+ * the funnel counts confirmed deliveries. A channel that confirms none exports nothing.
820
+ */
821
+ | 'DELIVERED'
822
+ /**
823
+ * Opened — the OPENED card. Every open counts, with or without an accepted send of
824
+ * its own: a client application can be configured so that only opens are reported.
825
+ */
826
+ | 'OPENED';
827
+ /**
828
+ * Recipients of one funnel stage, built by the same formula as that stage's card. One type
829
+ * with a Stage field, not three: the sets differ only by membership predicate.
830
+ */
831
+ export type ExportMessageStageRecipientsArgs = {
832
+ messageId: number;
833
+ campaign: string;
834
+ application: string;
835
+ stage: ExportMessageStageRecipientsArgs_Stage;
836
+ dateFrom: Date;
837
+ dateTo: Date;
838
+ /** Platforms of the card's channel; empty means every platform. See ExportMessageAudienceArgs. */
839
+ platforms: number[];
840
+ messageCode: string;
841
+ };
842
+ export type ExportMessageStageRecipientsResult = {
843
+ file: string;
844
+ fileUrl: string;
845
+ };
846
+ /**
847
+ * Addresses that clicked something other than unsubscribe — the CLICKED card's set. No
848
+ * platform or message_code: channels.email_links_click carries neither.
849
+ */
850
+ export type ExportMessageClickedRecipientsArgs = {
851
+ messageId: number;
852
+ campaign: string;
853
+ application: string;
854
+ dateFrom: Date;
855
+ dateTo: Date;
856
+ };
857
+ export type ExportMessageClickedRecipientsResult = {
858
+ file: string;
859
+ fileUrl: string;
860
+ };
861
+ /**
862
+ * Addresses that unsubscribed or complained because of this letter — the INTERACTIONS stage.
863
+ * Email only: STEP_UNSUB has no push equivalent, and the card is email-only.
864
+ */
865
+ export type ExportMessageUnsubscribedArgs = {
866
+ messageId: number;
867
+ campaign: string;
868
+ application: string;
869
+ dateFrom: Date;
870
+ dateTo: Date;
871
+ messageCode: string;
872
+ };
873
+ export type ExportMessageUnsubscribedResult = {
874
+ file: string;
875
+ fileUrl: string;
876
+ };
877
+ /**
878
+ * Recipients behind one error row of the statistics screen — same subject as the older
879
+ * error export, plus the platform and transactional message_code filtering it lacks.
880
+ */
881
+ export type ExportMessageErrorRecipientsArgs = {
882
+ messageId: number;
883
+ campaign: string;
884
+ application: string;
885
+ statusCode: number;
886
+ /**
887
+ * Which step the code belongs to: the same 'send' / 'publish' values the delivery report
888
+ * speaks in, because one code means different things on different steps.
889
+ */
890
+ processingErrorType: string;
891
+ dateFrom: Date;
892
+ dateTo: Date;
893
+ /**
894
+ * Platforms to narrow the rows by; empty means every platform. Unlike the older export,
895
+ * this one narrows the rows and not just the filename.
896
+ */
897
+ platforms: number[];
898
+ messageCode: string;
899
+ };
900
+ export type ExportMessageErrorRecipientsResult = {
901
+ file: string;
902
+ fileUrl: string;
903
+ };
706
904
  export type CreateSegmentFromMessageArgs_Type = 'send_devices' | 'delivered_devices' | 'opened_devices' | 'link_clicked_devices' | 'event_triggered_devices' | 'send_with_error_devices' | 'send_with_email_error_devices' | 'not_opened_devices';
707
905
  export type CreateSegmentFromMessageArgs_EmailErrorType = 'complaints' | 'soft_bounces' | 'hard_bounces';
708
906
  export type CreateSegmentFromMessageArgs = {