@pushwoosh/rpc-v2-http-api-data 0.1.559 → 0.1.561
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/applications_configurations.d.ts +10 -1
- package/data.js +88 -93
- package/integrations.d.ts +20 -5
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +6 -26
|
@@ -86,6 +86,11 @@ export type LineConfiguration = {
|
|
|
86
86
|
lineChannelId: string;
|
|
87
87
|
lineChannelSecret: string;
|
|
88
88
|
};
|
|
89
|
+
export type WebConfiguration = {
|
|
90
|
+
webVapidPublicKey: string;
|
|
91
|
+
webVapidPrivateKey: string;
|
|
92
|
+
autogenerate: boolean;
|
|
93
|
+
};
|
|
89
94
|
export type ConfigurationRequest_kind_androidConfiguration = {
|
|
90
95
|
type: 'androidConfiguration';
|
|
91
96
|
data: AndroidConfiguration;
|
|
@@ -146,7 +151,11 @@ export type ConfigurationRequest_kind_lineConfiguration = {
|
|
|
146
151
|
type: 'lineConfiguration';
|
|
147
152
|
data: LineConfiguration;
|
|
148
153
|
};
|
|
149
|
-
export type
|
|
154
|
+
export type ConfigurationRequest_kind_webConfiguration = {
|
|
155
|
+
type: 'webConfiguration';
|
|
156
|
+
data: WebConfiguration;
|
|
157
|
+
};
|
|
158
|
+
export type ConfigurationRequest_kind = ConfigurationRequest_kind_androidConfiguration | ConfigurationRequest_kind_chromeConfiguration | ConfigurationRequest_kind_emailConfiguration | ConfigurationRequest_kind_xiaomiConfiguration | 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_firefoxConfiguration | ConfigurationRequest_kind_baiduConfiguration | ConfigurationRequest_kind_lineConfiguration | ConfigurationRequest_kind_webConfiguration;
|
|
150
159
|
export type ConfigurationRequest = {
|
|
151
160
|
code?: string;
|
|
152
161
|
kind: ConfigurationRequest_kind;
|
package/data.js
CHANGED
|
@@ -2392,6 +2392,20 @@ export const data = {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
},
|
|
2395
|
+
"pushwoosh.rpc_v2.applications_configurations.WebConfiguration": {
|
|
2396
|
+
"type": "I",
|
|
2397
|
+
"fields": {
|
|
2398
|
+
"webVapidPublicKey": {
|
|
2399
|
+
"type": "string"
|
|
2400
|
+
},
|
|
2401
|
+
"webVapidPrivateKey": {
|
|
2402
|
+
"type": "string"
|
|
2403
|
+
},
|
|
2404
|
+
"autogenerate": {
|
|
2405
|
+
"type": "boolean"
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
},
|
|
2395
2409
|
"pushwoosh.rpc_v2.applications_configurations.ConfigurationRequest": {
|
|
2396
2410
|
"type": "I",
|
|
2397
2411
|
"fields": {
|
|
@@ -2442,6 +2456,9 @@ export const data = {
|
|
|
2442
2456
|
},
|
|
2443
2457
|
"lineConfiguration": {
|
|
2444
2458
|
"type": "pushwoosh.rpc_v2.applications_configurations.LineConfiguration"
|
|
2459
|
+
},
|
|
2460
|
+
"webConfiguration": {
|
|
2461
|
+
"type": "pushwoosh.rpc_v2.applications_configurations.WebConfiguration"
|
|
2445
2462
|
}
|
|
2446
2463
|
},
|
|
2447
2464
|
"oneofs": {
|
|
@@ -2461,7 +2478,8 @@ export const data = {
|
|
|
2461
2478
|
"iosTokenConfiguration",
|
|
2462
2479
|
"firefoxConfiguration",
|
|
2463
2480
|
"baiduConfiguration",
|
|
2464
|
-
"lineConfiguration"
|
|
2481
|
+
"lineConfiguration",
|
|
2482
|
+
"webConfiguration"
|
|
2465
2483
|
]
|
|
2466
2484
|
}
|
|
2467
2485
|
}
|
|
@@ -3031,7 +3049,6 @@ export const data = {
|
|
|
3031
3049
|
"INVALID_CHROME_DURATION",
|
|
3032
3050
|
"INVALID_SAFARI_TIME_TO_LIVE",
|
|
3033
3051
|
"INVALID_AMAZON_TIME_TO_LIVE",
|
|
3034
|
-
"INVALID_XIAOMI_TIME_TO_LIVE",
|
|
3035
3052
|
"INVALID_IE_BADGE",
|
|
3036
3053
|
"PRESET_NOT_FOUND",
|
|
3037
3054
|
"FREQUENCY_CAPPING_NOT_ALLOWED",
|
|
@@ -3158,8 +3175,7 @@ export const data = {
|
|
|
3158
3175
|
"EMAIL",
|
|
3159
3176
|
"BAIDU_ANDROID",
|
|
3160
3177
|
"HUAWEI_ANDROID",
|
|
3161
|
-
"SMS"
|
|
3162
|
-
"XIAOMI"
|
|
3178
|
+
"SMS"
|
|
3163
3179
|
]
|
|
3164
3180
|
},
|
|
3165
3181
|
"pushwoosh.channels.messagingApi.v2.NotifySegment": {
|
|
@@ -3494,9 +3510,6 @@ export const data = {
|
|
|
3494
3510
|
"liveActivity": {
|
|
3495
3511
|
"type": "pushwoosh.channels.messagingApi.v2.LiveActivity"
|
|
3496
3512
|
},
|
|
3497
|
-
"openAction": {
|
|
3498
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3499
|
-
},
|
|
3500
3513
|
"inbox": {
|
|
3501
3514
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
3502
3515
|
}
|
|
@@ -3556,9 +3569,6 @@ export const data = {
|
|
|
3556
3569
|
"groupId": {
|
|
3557
3570
|
"type": "string"
|
|
3558
3571
|
},
|
|
3559
|
-
"openAction": {
|
|
3560
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3561
|
-
},
|
|
3562
3572
|
"inbox": {
|
|
3563
3573
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
3564
3574
|
}
|
|
@@ -3600,9 +3610,6 @@ export const data = {
|
|
|
3600
3610
|
"buttonUrl2": {
|
|
3601
3611
|
"type": "string"
|
|
3602
3612
|
},
|
|
3603
|
-
"openAction": {
|
|
3604
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3605
|
-
},
|
|
3606
3613
|
"inbox": {
|
|
3607
3614
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
3608
3615
|
}
|
|
@@ -3623,9 +3630,6 @@ export const data = {
|
|
|
3623
3630
|
"rootParams": {
|
|
3624
3631
|
"type": "object"
|
|
3625
3632
|
},
|
|
3626
|
-
"openAction": {
|
|
3627
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3628
|
-
},
|
|
3629
3633
|
"inbox": {
|
|
3630
3634
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
3631
3635
|
}
|
|
@@ -3650,9 +3654,6 @@ export const data = {
|
|
|
3650
3654
|
"type": "string",
|
|
3651
3655
|
"array": true
|
|
3652
3656
|
},
|
|
3653
|
-
"openAction": {
|
|
3654
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3655
|
-
},
|
|
3656
3657
|
"inbox": {
|
|
3657
3658
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
3658
3659
|
}
|
|
@@ -3685,11 +3686,11 @@ export const data = {
|
|
|
3685
3686
|
"rootParams": {
|
|
3686
3687
|
"type": "object"
|
|
3687
3688
|
},
|
|
3688
|
-
"openAction": {
|
|
3689
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3690
|
-
},
|
|
3691
3689
|
"inbox": {
|
|
3692
3690
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
3691
|
+
},
|
|
3692
|
+
"subtitle": {
|
|
3693
|
+
"type": "string"
|
|
3693
3694
|
}
|
|
3694
3695
|
}
|
|
3695
3696
|
},
|
|
@@ -3726,9 +3727,6 @@ export const data = {
|
|
|
3726
3727
|
"priority": {
|
|
3727
3728
|
"type": "pushwoosh.channels.messagingApi.v2.NotificationPriority"
|
|
3728
3729
|
},
|
|
3729
|
-
"openAction": {
|
|
3730
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3731
|
-
},
|
|
3732
3730
|
"inbox": {
|
|
3733
3731
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
3734
3732
|
}
|
|
@@ -3788,9 +3786,6 @@ export const data = {
|
|
|
3788
3786
|
"groupId": {
|
|
3789
3787
|
"type": "string"
|
|
3790
3788
|
},
|
|
3791
|
-
"openAction": {
|
|
3792
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3793
|
-
},
|
|
3794
3789
|
"inbox": {
|
|
3795
3790
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
3796
3791
|
}
|
|
@@ -3850,44 +3845,6 @@ export const data = {
|
|
|
3850
3845
|
"groupId": {
|
|
3851
3846
|
"type": "string"
|
|
3852
3847
|
},
|
|
3853
|
-
"openAction": {
|
|
3854
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3855
|
-
},
|
|
3856
|
-
"inbox": {
|
|
3857
|
-
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
3858
|
-
}
|
|
3859
|
-
}
|
|
3860
|
-
},
|
|
3861
|
-
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesXiaomi": {
|
|
3862
|
-
"type": "I",
|
|
3863
|
-
"fields": {
|
|
3864
|
-
"title": {
|
|
3865
|
-
"type": "string"
|
|
3866
|
-
},
|
|
3867
|
-
"body": {
|
|
3868
|
-
"type": "string"
|
|
3869
|
-
},
|
|
3870
|
-
"timeToLive": {
|
|
3871
|
-
"type": "Duration"
|
|
3872
|
-
},
|
|
3873
|
-
"icon": {
|
|
3874
|
-
"type": "string"
|
|
3875
|
-
},
|
|
3876
|
-
"vibration": {
|
|
3877
|
-
"type": "boolean"
|
|
3878
|
-
},
|
|
3879
|
-
"sound": {
|
|
3880
|
-
"type": "string"
|
|
3881
|
-
},
|
|
3882
|
-
"rootParams": {
|
|
3883
|
-
"type": "object"
|
|
3884
|
-
},
|
|
3885
|
-
"groupId": {
|
|
3886
|
-
"type": "string"
|
|
3887
|
-
},
|
|
3888
|
-
"openAction": {
|
|
3889
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3890
|
-
},
|
|
3891
3848
|
"inbox": {
|
|
3892
3849
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
3893
3850
|
}
|
|
@@ -3902,8 +3859,8 @@ export const data = {
|
|
|
3902
3859
|
"iconBadge": {
|
|
3903
3860
|
"type": "string"
|
|
3904
3861
|
},
|
|
3905
|
-
"
|
|
3906
|
-
"type": "
|
|
3862
|
+
"body": {
|
|
3863
|
+
"type": "string"
|
|
3907
3864
|
},
|
|
3908
3865
|
"inbox": {
|
|
3909
3866
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
@@ -3963,9 +3920,6 @@ export const data = {
|
|
|
3963
3920
|
},
|
|
3964
3921
|
"timeToLive": {
|
|
3965
3922
|
"type": "Duration"
|
|
3966
|
-
},
|
|
3967
|
-
"openAction": {
|
|
3968
|
-
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
3969
3923
|
}
|
|
3970
3924
|
},
|
|
3971
3925
|
"oneofs": {
|
|
@@ -4015,9 +3969,6 @@ export const data = {
|
|
|
4015
3969
|
"huaweiAndroid": {
|
|
4016
3970
|
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesHuaweiAndroid"
|
|
4017
3971
|
},
|
|
4018
|
-
"xiaomi": {
|
|
4019
|
-
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesXiaomi"
|
|
4020
|
-
},
|
|
4021
3972
|
"ie": {
|
|
4022
3973
|
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesIE"
|
|
4023
3974
|
},
|
|
@@ -4056,6 +4007,13 @@ export const data = {
|
|
|
4056
4007
|
},
|
|
4057
4008
|
"customData": {
|
|
4058
4009
|
"type": "object"
|
|
4010
|
+
},
|
|
4011
|
+
"openAction": {
|
|
4012
|
+
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
4013
|
+
},
|
|
4014
|
+
"openActions": {
|
|
4015
|
+
"type": "pushwoosh.channels.messagingApi.v2.OpenAction",
|
|
4016
|
+
"mapKeyType": "number"
|
|
4059
4017
|
}
|
|
4060
4018
|
},
|
|
4061
4019
|
"oneofs": {
|
|
@@ -7980,15 +7938,6 @@ export const data = {
|
|
|
7980
7938
|
}
|
|
7981
7939
|
}
|
|
7982
7940
|
},
|
|
7983
|
-
"pushwoosh.rpc_v2.integrations.WebhookIntegrationFilterType": {
|
|
7984
|
-
"type": "E",
|
|
7985
|
-
"values": [
|
|
7986
|
-
"NIL",
|
|
7987
|
-
"MESSAGE",
|
|
7988
|
-
"PLATFORM",
|
|
7989
|
-
"CAMPAIGN"
|
|
7990
|
-
]
|
|
7991
|
-
},
|
|
7992
7941
|
"pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType": {
|
|
7993
7942
|
"type": "E",
|
|
7994
7943
|
"values": [
|
|
@@ -7997,6 +7946,58 @@ export const data = {
|
|
|
7997
7946
|
"HTTP"
|
|
7998
7947
|
]
|
|
7999
7948
|
},
|
|
7949
|
+
"pushwoosh.rpc_v2.integrations.Filters.MessagesFilter": {
|
|
7950
|
+
"type": "I",
|
|
7951
|
+
"fields": {
|
|
7952
|
+
"codes": {
|
|
7953
|
+
"type": "string",
|
|
7954
|
+
"array": true
|
|
7955
|
+
}
|
|
7956
|
+
}
|
|
7957
|
+
},
|
|
7958
|
+
"pushwoosh.rpc_v2.integrations.Filters.PlatformsFilter": {
|
|
7959
|
+
"type": "I",
|
|
7960
|
+
"fields": {
|
|
7961
|
+
"platforms": {
|
|
7962
|
+
"type": "number",
|
|
7963
|
+
"array": true
|
|
7964
|
+
}
|
|
7965
|
+
}
|
|
7966
|
+
},
|
|
7967
|
+
"pushwoosh.rpc_v2.integrations.Filters.CampaignsFilter": {
|
|
7968
|
+
"type": "I",
|
|
7969
|
+
"fields": {
|
|
7970
|
+
"codes": {
|
|
7971
|
+
"type": "string",
|
|
7972
|
+
"array": true
|
|
7973
|
+
}
|
|
7974
|
+
}
|
|
7975
|
+
},
|
|
7976
|
+
"pushwoosh.rpc_v2.integrations.Filters.LiveActivityFilter": {
|
|
7977
|
+
"type": "I",
|
|
7978
|
+
"fields": {
|
|
7979
|
+
"enabled": {
|
|
7980
|
+
"type": "boolean"
|
|
7981
|
+
}
|
|
7982
|
+
}
|
|
7983
|
+
},
|
|
7984
|
+
"pushwoosh.rpc_v2.integrations.Filters": {
|
|
7985
|
+
"type": "I",
|
|
7986
|
+
"fields": {
|
|
7987
|
+
"messages": {
|
|
7988
|
+
"type": "pushwoosh.rpc_v2.integrations.Filters.MessagesFilter"
|
|
7989
|
+
},
|
|
7990
|
+
"platforms": {
|
|
7991
|
+
"type": "pushwoosh.rpc_v2.integrations.Filters.PlatformsFilter"
|
|
7992
|
+
},
|
|
7993
|
+
"campaigns": {
|
|
7994
|
+
"type": "pushwoosh.rpc_v2.integrations.Filters.CampaignsFilter"
|
|
7995
|
+
},
|
|
7996
|
+
"liveActivity": {
|
|
7997
|
+
"type": "pushwoosh.rpc_v2.integrations.Filters.LiveActivityFilter"
|
|
7998
|
+
}
|
|
7999
|
+
}
|
|
8000
|
+
},
|
|
8000
8001
|
"pushwoosh.rpc_v2.integrations.GetWebhookConfigurationRequest": {
|
|
8001
8002
|
"type": "I",
|
|
8002
8003
|
"fields": {
|
|
@@ -8018,11 +8019,8 @@ export const data = {
|
|
|
8018
8019
|
"type": "string",
|
|
8019
8020
|
"array": true
|
|
8020
8021
|
},
|
|
8021
|
-
"
|
|
8022
|
-
"type": "pushwoosh.rpc_v2.integrations.
|
|
8023
|
-
},
|
|
8024
|
-
"filterId": {
|
|
8025
|
-
"type": "string"
|
|
8022
|
+
"filters": {
|
|
8023
|
+
"type": "pushwoosh.rpc_v2.integrations.Filters"
|
|
8026
8024
|
},
|
|
8027
8025
|
"transport": {
|
|
8028
8026
|
"type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
|
|
@@ -8049,11 +8047,8 @@ export const data = {
|
|
|
8049
8047
|
"type": "string",
|
|
8050
8048
|
"array": true
|
|
8051
8049
|
},
|
|
8052
|
-
"
|
|
8053
|
-
"type": "pushwoosh.rpc_v2.integrations.
|
|
8054
|
-
},
|
|
8055
|
-
"filterId": {
|
|
8056
|
-
"type": "string"
|
|
8050
|
+
"filters": {
|
|
8051
|
+
"type": "pushwoosh.rpc_v2.integrations.Filters"
|
|
8057
8052
|
},
|
|
8058
8053
|
"transport": {
|
|
8059
8054
|
"type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
|
package/integrations.d.ts
CHANGED
|
@@ -42,8 +42,25 @@ export type ListIntegrationsConfigurationResponse_Configuration = {
|
|
|
42
42
|
export type ListIntegrationsConfigurationResponse = {
|
|
43
43
|
configurations: ListIntegrationsConfigurationResponse_Configuration[];
|
|
44
44
|
};
|
|
45
|
-
export type WebhookIntegrationFilterType = 'NIL' | 'MESSAGE' | 'PLATFORM' | 'CAMPAIGN';
|
|
46
45
|
export type WebhookIntegrationTransportType = 'NONE' | 'GRPC' | 'HTTP';
|
|
46
|
+
export type Filters_MessagesFilter = {
|
|
47
|
+
codes: string[];
|
|
48
|
+
};
|
|
49
|
+
export type Filters_PlatformsFilter = {
|
|
50
|
+
platforms: number[];
|
|
51
|
+
};
|
|
52
|
+
export type Filters_CampaignsFilter = {
|
|
53
|
+
codes: string[];
|
|
54
|
+
};
|
|
55
|
+
export type Filters_LiveActivityFilter = {
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
};
|
|
58
|
+
export type Filters = {
|
|
59
|
+
messages: Filters_MessagesFilter;
|
|
60
|
+
platforms: Filters_PlatformsFilter;
|
|
61
|
+
campaigns: Filters_CampaignsFilter;
|
|
62
|
+
liveActivity: Filters_LiveActivityFilter;
|
|
63
|
+
};
|
|
47
64
|
export type GetWebhookConfigurationRequest = {
|
|
48
65
|
application?: string;
|
|
49
66
|
};
|
|
@@ -51,8 +68,7 @@ export type GetWebhookConfigurationResponse = {
|
|
|
51
68
|
url: string;
|
|
52
69
|
auth: string;
|
|
53
70
|
events: string[];
|
|
54
|
-
|
|
55
|
-
filterId: string;
|
|
71
|
+
filters: Filters;
|
|
56
72
|
transport: WebhookIntegrationTransportType;
|
|
57
73
|
availableEvents: string[];
|
|
58
74
|
};
|
|
@@ -61,8 +77,7 @@ export type CreateWebhookConfigurationRequest = {
|
|
|
61
77
|
url?: string;
|
|
62
78
|
auth?: string;
|
|
63
79
|
events?: string[];
|
|
64
|
-
|
|
65
|
-
filterId?: string;
|
|
80
|
+
filters?: Filters;
|
|
66
81
|
transport?: WebhookIntegrationTransportType;
|
|
67
82
|
};
|
|
68
83
|
export type CreateWebhookConfigurationResponse = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Duration } from './commonTypes';
|
|
2
2
|
import { FilterExpression as pushwoosh_objects_filters_v1_FilterExpression } from './pushwoosh_objects_filters_v1';
|
|
3
|
-
export type ErrorReason = 'ERROR_REASON_UNSPECIFIED' | 'EMPTY_REQUEST' | 'EMPTY_SCHEDULE' | 'EMPTY_SEND_DATE' | 'EMPTY_PAYLOAD' | 'SEND_DATE_TOO_FAR_IN_FUTURE' | 'EMPTY_TARGET' | 'SEGMENT_NOT_FOUND' | 'SEGLANG_ERROR' | 'EMPTY_APPLICATION' | 'APPLICATION_NOT_FOUND' | 'INVALID_PAST_TIMEZONES_BEHAVIOUR' | 'EMPTY_HWIDS_LIST' | 'TOO_MANY_HWIDS' | 'EMPTY_USERS_LIST' | 'TOO_MANY_USERS' | 'EMPTY_PUSH_TOKENS_LIST' | 'TOO_MANY_PUSH_TOKENS' | 'TEST_DEVICES_FALSE' | 'TEST_DEVICES_FOLLOW_USER_TIMEZONE' | 'APPLICATION_IS_REQUIRED_FOR_TRANSACTIONAL' | 'NO_RECIPIENTS_FOUND' | 'PAST_TIMEZONES_BEHAVIOUR_NOT_IMPLEMENTED' | 'NO_ACTIVE_TEST_DEVICES' | 'SILENT_UNSUPPORTED_PLATFORM' | 'INVALID_IOS_BADGE' | 'INVALID_ANDROID_BADGE' | 'INVALID_HUAWEI_ANDROID_BADGE' | 'INVALID_BAIDU_ANDROID_BADGE' | 'INVALID_LIVE_ACTIVITY' | 'INVALID_IOS_TIME_TO_LIVE' | 'INVALID_ANDROID_TIME_TO_LIVE' | 'INVALID_HUAWEI_ANDROID_TIME_TO_LIVE' | 'INVALID_BAIDU_ANDROID_TIME_TO_LIVE' | 'INVALID_IOS_INTERRUPTION_LEVEL' | 'INVALID_MAC_OS_BADGE' | 'INVALID_SAFARI_BADGE' | 'INVALID_MAC_OS_TIME_TO_LIVE' | 'INVALID_ANDROID_LED' | 'INVALID_HUAWEI_ANDROID_LED' | 'INVALID_BAIDU_ANDROID_LED' | 'INVALID_ANDROID_ICON_BACKGROUND_COLOR' | 'INVALID_HUAWEI_ANDROID_ICON_BACKGROUND_COLOR' | 'INVALID_BAIDU_ANDROID_ICON_BACKGROUND_COLOR' | 'INVALID_ANDROID_PRIORITY' | 'INVALID_HUAWEI_ANDROID_PRIORITY' | 'INVALID_BAIDU_ANDROID_PRIORITY' | 'INVALID_CHROME_TIME_TO_LIVE' | 'INVALID_CHROME_DURATION' | 'INVALID_SAFARI_TIME_TO_LIVE' | 'INVALID_AMAZON_TIME_TO_LIVE' | '
|
|
3
|
+
export type ErrorReason = 'ERROR_REASON_UNSPECIFIED' | 'EMPTY_REQUEST' | 'EMPTY_SCHEDULE' | 'EMPTY_SEND_DATE' | 'EMPTY_PAYLOAD' | 'SEND_DATE_TOO_FAR_IN_FUTURE' | 'EMPTY_TARGET' | 'SEGMENT_NOT_FOUND' | 'SEGLANG_ERROR' | 'EMPTY_APPLICATION' | 'APPLICATION_NOT_FOUND' | 'INVALID_PAST_TIMEZONES_BEHAVIOUR' | 'EMPTY_HWIDS_LIST' | 'TOO_MANY_HWIDS' | 'EMPTY_USERS_LIST' | 'TOO_MANY_USERS' | 'EMPTY_PUSH_TOKENS_LIST' | 'TOO_MANY_PUSH_TOKENS' | 'TEST_DEVICES_FALSE' | 'TEST_DEVICES_FOLLOW_USER_TIMEZONE' | 'APPLICATION_IS_REQUIRED_FOR_TRANSACTIONAL' | 'NO_RECIPIENTS_FOUND' | 'PAST_TIMEZONES_BEHAVIOUR_NOT_IMPLEMENTED' | 'NO_ACTIVE_TEST_DEVICES' | 'SILENT_UNSUPPORTED_PLATFORM' | 'INVALID_IOS_BADGE' | 'INVALID_ANDROID_BADGE' | 'INVALID_HUAWEI_ANDROID_BADGE' | 'INVALID_BAIDU_ANDROID_BADGE' | 'INVALID_LIVE_ACTIVITY' | 'INVALID_IOS_TIME_TO_LIVE' | 'INVALID_ANDROID_TIME_TO_LIVE' | 'INVALID_HUAWEI_ANDROID_TIME_TO_LIVE' | 'INVALID_BAIDU_ANDROID_TIME_TO_LIVE' | 'INVALID_IOS_INTERRUPTION_LEVEL' | 'INVALID_MAC_OS_BADGE' | 'INVALID_SAFARI_BADGE' | 'INVALID_MAC_OS_TIME_TO_LIVE' | 'INVALID_ANDROID_LED' | 'INVALID_HUAWEI_ANDROID_LED' | 'INVALID_BAIDU_ANDROID_LED' | 'INVALID_ANDROID_ICON_BACKGROUND_COLOR' | 'INVALID_HUAWEI_ANDROID_ICON_BACKGROUND_COLOR' | 'INVALID_BAIDU_ANDROID_ICON_BACKGROUND_COLOR' | 'INVALID_ANDROID_PRIORITY' | 'INVALID_HUAWEI_ANDROID_PRIORITY' | 'INVALID_BAIDU_ANDROID_PRIORITY' | 'INVALID_CHROME_TIME_TO_LIVE' | 'INVALID_CHROME_DURATION' | 'INVALID_SAFARI_TIME_TO_LIVE' | 'INVALID_AMAZON_TIME_TO_LIVE' | 'INVALID_IE_BADGE' | 'PRESET_NOT_FOUND' | 'FREQUENCY_CAPPING_NOT_ALLOWED' | 'INVALID_FREQUENCY_CAPPING_DAYS' | 'INVALID_FREQUENCY_CAPPING_COUNT' | 'CAMPAIGN_NOT_FOUND' | 'INVALID_PLATFORMS' | 'DEEP_LINK_NOT_FOUND' | 'RICH_MEDIA_NOT_FOUND' | 'EMPTY_URL' | 'INVALID_WINDOWS_TIME_TO_LIVE' | 'INVALID_WINDOWS_CONTENT_BASE64' | 'INVALID_WINDOWS_CONTENT_XML' | 'INVALID_WINDOWS_TEMPLATE_NAME' | 'INVALID_WINDOWS_CONTENT_BODY_EMPTY';
|
|
4
4
|
export interface MessagingService {
|
|
5
5
|
Notify(request: NotifyRequest): Promise<NotifyResponse>;
|
|
6
6
|
NotifyBulk(request: NotifyBulkRequest): Promise<NotifyBulkResponse>;
|
|
@@ -35,7 +35,7 @@ export type NotifyResult = {
|
|
|
35
35
|
messageCode: string;
|
|
36
36
|
unknownIdentifiers: string[];
|
|
37
37
|
};
|
|
38
|
-
export type Platform = 'UNKNOWN' | 'IOS' | 'ANDROID' | 'OSX' | 'WINDOWS' | 'AMAZON' | 'SAFARI' | 'CHROME' | 'FIREFOX' | 'IE' | 'EMAIL' | 'BAIDU_ANDROID' | 'HUAWEI_ANDROID' | 'SMS'
|
|
38
|
+
export type Platform = 'UNKNOWN' | 'IOS' | 'ANDROID' | 'OSX' | 'WINDOWS' | 'AMAZON' | 'SAFARI' | 'CHROME' | 'FIREFOX' | 'IE' | 'EMAIL' | 'BAIDU_ANDROID' | 'HUAWEI_ANDROID' | 'SMS';
|
|
39
39
|
export type NotifySegment_target_code = {
|
|
40
40
|
type: 'code';
|
|
41
41
|
data: string;
|
|
@@ -179,7 +179,6 @@ export type Content_PlatformPropertiesIos = {
|
|
|
179
179
|
interruptionLevel: string;
|
|
180
180
|
rootParams: object;
|
|
181
181
|
liveActivity: LiveActivity;
|
|
182
|
-
openAction: OpenAction;
|
|
183
182
|
inbox: Inbox;
|
|
184
183
|
};
|
|
185
184
|
export type Content_PlatformPropertiesAndroid = {
|
|
@@ -200,7 +199,6 @@ export type Content_PlatformPropertiesAndroid = {
|
|
|
200
199
|
customIcon: string;
|
|
201
200
|
priority: NotificationPriority;
|
|
202
201
|
groupId: string;
|
|
203
|
-
openAction: OpenAction;
|
|
204
202
|
inbox: Inbox;
|
|
205
203
|
};
|
|
206
204
|
export type Content_PlatformPropertiesChrome = {
|
|
@@ -215,7 +213,6 @@ export type Content_PlatformPropertiesChrome = {
|
|
|
215
213
|
buttonUrl1: string;
|
|
216
214
|
buttonText2: string;
|
|
217
215
|
buttonUrl2: string;
|
|
218
|
-
openAction: OpenAction;
|
|
219
216
|
inbox: Inbox;
|
|
220
217
|
};
|
|
221
218
|
export type Content_PlatformPropertiesFirefox = {
|
|
@@ -223,7 +220,6 @@ export type Content_PlatformPropertiesFirefox = {
|
|
|
223
220
|
body: string;
|
|
224
221
|
icon: string;
|
|
225
222
|
rootParams: object;
|
|
226
|
-
openAction: OpenAction;
|
|
227
223
|
inbox: Inbox;
|
|
228
224
|
};
|
|
229
225
|
export type Content_PlatformPropertiesSafari = {
|
|
@@ -232,7 +228,6 @@ export type Content_PlatformPropertiesSafari = {
|
|
|
232
228
|
timeToLive: Duration;
|
|
233
229
|
action: string;
|
|
234
230
|
urlArguments: string[];
|
|
235
|
-
openAction: OpenAction;
|
|
236
231
|
inbox: Inbox;
|
|
237
232
|
};
|
|
238
233
|
export type Content_PlatformPropertiesMacOS = {
|
|
@@ -244,8 +239,8 @@ export type Content_PlatformPropertiesMacOS = {
|
|
|
244
239
|
soundEnabled: boolean;
|
|
245
240
|
badges: string;
|
|
246
241
|
rootParams: object;
|
|
247
|
-
openAction: OpenAction;
|
|
248
242
|
inbox: Inbox;
|
|
243
|
+
subtitle: string;
|
|
249
244
|
};
|
|
250
245
|
export type Content_PlatformPropertiesAmazon = {
|
|
251
246
|
title: string;
|
|
@@ -258,7 +253,6 @@ export type Content_PlatformPropertiesAmazon = {
|
|
|
258
253
|
icon: string;
|
|
259
254
|
customIcon: string;
|
|
260
255
|
priority: NotificationPriority;
|
|
261
|
-
openAction: OpenAction;
|
|
262
256
|
inbox: Inbox;
|
|
263
257
|
};
|
|
264
258
|
export type Content_PlatformPropertiesBaiduAndroid = {
|
|
@@ -279,7 +273,6 @@ export type Content_PlatformPropertiesBaiduAndroid = {
|
|
|
279
273
|
customIcon: string;
|
|
280
274
|
priority: NotificationPriority;
|
|
281
275
|
groupId: string;
|
|
282
|
-
openAction: OpenAction;
|
|
283
276
|
inbox: Inbox;
|
|
284
277
|
};
|
|
285
278
|
export type Content_PlatformPropertiesHuaweiAndroid = {
|
|
@@ -300,25 +293,12 @@ export type Content_PlatformPropertiesHuaweiAndroid = {
|
|
|
300
293
|
customIcon: string;
|
|
301
294
|
priority: NotificationPriority;
|
|
302
295
|
groupId: string;
|
|
303
|
-
openAction: OpenAction;
|
|
304
|
-
inbox: Inbox;
|
|
305
|
-
};
|
|
306
|
-
export type Content_PlatformPropertiesXiaomi = {
|
|
307
|
-
title: string;
|
|
308
|
-
body: string;
|
|
309
|
-
timeToLive: Duration;
|
|
310
|
-
icon: string;
|
|
311
|
-
vibration: boolean;
|
|
312
|
-
sound: string;
|
|
313
|
-
rootParams: object;
|
|
314
|
-
groupId: string;
|
|
315
|
-
openAction: OpenAction;
|
|
316
296
|
inbox: Inbox;
|
|
317
297
|
};
|
|
318
298
|
export type Content_PlatformPropertiesIE = {
|
|
319
299
|
title: string;
|
|
320
300
|
iconBadge: string;
|
|
321
|
-
|
|
301
|
+
body: string;
|
|
322
302
|
inbox: Inbox;
|
|
323
303
|
};
|
|
324
304
|
export type Content_PlatformPropertiesWindows_Raw = {
|
|
@@ -345,7 +325,6 @@ export type Content_PlatformPropertiesWindows = {
|
|
|
345
325
|
tag: string;
|
|
346
326
|
cache: boolean;
|
|
347
327
|
timeToLive: Duration;
|
|
348
|
-
openAction: OpenAction;
|
|
349
328
|
content: Content_PlatformPropertiesWindows_content;
|
|
350
329
|
};
|
|
351
330
|
export type Content_PlatformPropertiesEmail = {};
|
|
@@ -360,7 +339,6 @@ export type Content = {
|
|
|
360
339
|
firefox: Content_PlatformPropertiesFirefox;
|
|
361
340
|
baiduAndroid: Content_PlatformPropertiesBaiduAndroid;
|
|
362
341
|
huaweiAndroid: Content_PlatformPropertiesHuaweiAndroid;
|
|
363
|
-
xiaomi: Content_PlatformPropertiesXiaomi;
|
|
364
342
|
ie: Content_PlatformPropertiesIE;
|
|
365
343
|
windows: Content_PlatformPropertiesWindows;
|
|
366
344
|
};
|
|
@@ -381,5 +359,7 @@ export type Payload = {
|
|
|
381
359
|
metaData: object;
|
|
382
360
|
dynamicContentPlaceholders: Record<string, string>;
|
|
383
361
|
customData: object;
|
|
362
|
+
openAction: OpenAction;
|
|
363
|
+
openActions: Record<number, OpenAction>;
|
|
384
364
|
kind: Payload_kind;
|
|
385
365
|
};
|