@pushwoosh/rpc-v2-http-api-data 0.1.905 → 0.1.907
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 +88 -0
- package/inbound_webhooks.d.ts +14 -0
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +40 -0
package/data.js
CHANGED
|
@@ -4845,6 +4845,9 @@ export const data = {
|
|
|
4845
4845
|
"liveActivity": {
|
|
4846
4846
|
"type": "pushwoosh.channels.messagingApi.v2.LiveActivity"
|
|
4847
4847
|
},
|
|
4848
|
+
"collapseId": {
|
|
4849
|
+
"type": "string"
|
|
4850
|
+
},
|
|
4848
4851
|
"inbox": {
|
|
4849
4852
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
4850
4853
|
}
|
|
@@ -4904,6 +4907,9 @@ export const data = {
|
|
|
4904
4907
|
"groupId": {
|
|
4905
4908
|
"type": "string"
|
|
4906
4909
|
},
|
|
4910
|
+
"collapseKey": {
|
|
4911
|
+
"type": "string"
|
|
4912
|
+
},
|
|
4907
4913
|
"inbox": {
|
|
4908
4914
|
"type": "pushwoosh.channels.messagingApi.v2.Inbox"
|
|
4909
4915
|
}
|
|
@@ -5295,6 +5301,40 @@ export const data = {
|
|
|
5295
5301
|
}
|
|
5296
5302
|
}
|
|
5297
5303
|
},
|
|
5304
|
+
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesLine": {
|
|
5305
|
+
"type": "I",
|
|
5306
|
+
"fields": {
|
|
5307
|
+
"content": {
|
|
5308
|
+
"type": "string"
|
|
5309
|
+
},
|
|
5310
|
+
"template": {
|
|
5311
|
+
"type": "string"
|
|
5312
|
+
}
|
|
5313
|
+
}
|
|
5314
|
+
},
|
|
5315
|
+
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesWhatsApp": {
|
|
5316
|
+
"type": "I",
|
|
5317
|
+
"fields": {
|
|
5318
|
+
"content": {
|
|
5319
|
+
"type": "string"
|
|
5320
|
+
},
|
|
5321
|
+
"contentId": {
|
|
5322
|
+
"type": "string"
|
|
5323
|
+
},
|
|
5324
|
+
"language": {
|
|
5325
|
+
"type": "string"
|
|
5326
|
+
},
|
|
5327
|
+
"contentVariables": {
|
|
5328
|
+
"type": "string"
|
|
5329
|
+
},
|
|
5330
|
+
"buttonUrlVariables": {
|
|
5331
|
+
"type": "string"
|
|
5332
|
+
},
|
|
5333
|
+
"headerVariables": {
|
|
5334
|
+
"type": "string"
|
|
5335
|
+
}
|
|
5336
|
+
}
|
|
5337
|
+
},
|
|
5298
5338
|
"pushwoosh.channels.messagingApi.v2.Content": {
|
|
5299
5339
|
"type": "I",
|
|
5300
5340
|
"fields": {
|
|
@@ -5336,6 +5376,12 @@ export const data = {
|
|
|
5336
5376
|
},
|
|
5337
5377
|
"kakao": {
|
|
5338
5378
|
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesKakao"
|
|
5379
|
+
},
|
|
5380
|
+
"line": {
|
|
5381
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesLine"
|
|
5382
|
+
},
|
|
5383
|
+
"whatsapp": {
|
|
5384
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesWhatsApp"
|
|
5339
5385
|
}
|
|
5340
5386
|
}
|
|
5341
5387
|
},
|
|
@@ -10801,6 +10847,18 @@ export const data = {
|
|
|
10801
10847
|
"response": "pushwoosh.rpc_v2.inbound_webhooks.GetAPIInfoResponse",
|
|
10802
10848
|
"method": "get",
|
|
10803
10849
|
"path": "/api/inbound_webhooks/{uuid}/api_info"
|
|
10850
|
+
},
|
|
10851
|
+
"Enable": {
|
|
10852
|
+
"request": "pushwoosh.rpc_v2.inbound_webhooks.EnableInboundWebhookRequest",
|
|
10853
|
+
"response": "pushwoosh.rpc_v2.inbound_webhooks.EnableInboundWebhookResponse",
|
|
10854
|
+
"method": "post",
|
|
10855
|
+
"path": "/api/inbound_webhooks/{uuid}/enable"
|
|
10856
|
+
},
|
|
10857
|
+
"Disable": {
|
|
10858
|
+
"request": "pushwoosh.rpc_v2.inbound_webhooks.DisableInboundWebhookRequest",
|
|
10859
|
+
"response": "pushwoosh.rpc_v2.inbound_webhooks.DisableInboundWebhookResponse",
|
|
10860
|
+
"method": "post",
|
|
10861
|
+
"path": "/api/inbound_webhooks/{uuid}/disable"
|
|
10804
10862
|
}
|
|
10805
10863
|
}
|
|
10806
10864
|
},
|
|
@@ -11050,6 +11108,36 @@ export const data = {
|
|
|
11050
11108
|
}
|
|
11051
11109
|
}
|
|
11052
11110
|
},
|
|
11111
|
+
"pushwoosh.rpc_v2.inbound_webhooks.EnableInboundWebhookRequest": {
|
|
11112
|
+
"type": "I",
|
|
11113
|
+
"fields": {
|
|
11114
|
+
"uuid": {
|
|
11115
|
+
"type": "string"
|
|
11116
|
+
},
|
|
11117
|
+
"application": {
|
|
11118
|
+
"type": "string"
|
|
11119
|
+
}
|
|
11120
|
+
}
|
|
11121
|
+
},
|
|
11122
|
+
"pushwoosh.rpc_v2.inbound_webhooks.EnableInboundWebhookResponse": {
|
|
11123
|
+
"type": "I",
|
|
11124
|
+
"fields": {}
|
|
11125
|
+
},
|
|
11126
|
+
"pushwoosh.rpc_v2.inbound_webhooks.DisableInboundWebhookRequest": {
|
|
11127
|
+
"type": "I",
|
|
11128
|
+
"fields": {
|
|
11129
|
+
"uuid": {
|
|
11130
|
+
"type": "string"
|
|
11131
|
+
},
|
|
11132
|
+
"application": {
|
|
11133
|
+
"type": "string"
|
|
11134
|
+
}
|
|
11135
|
+
}
|
|
11136
|
+
},
|
|
11137
|
+
"pushwoosh.rpc_v2.inbound_webhooks.DisableInboundWebhookResponse": {
|
|
11138
|
+
"type": "I",
|
|
11139
|
+
"fields": {}
|
|
11140
|
+
},
|
|
11053
11141
|
"pushwoosh.rpc_v2.integrations.IntegrationsService": {
|
|
11054
11142
|
"type": "S",
|
|
11055
11143
|
"key": "integrations",
|
package/inbound_webhooks.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export type InboundWebhooksService_Create = RpcMethod<CreateInboundWebhookReques
|
|
|
5
5
|
export type InboundWebhooksService_Update = RpcMethod<UpdateInboundWebhookRequest, UpdateInboundWebhookResponse>;
|
|
6
6
|
export type InboundWebhooksService_Delete = RpcMethod<DeleteInboundWebhookRequest, DeleteInboundWebhookResponse>;
|
|
7
7
|
export type InboundWebhooksService_GetAPIInfo = RpcMethod<GetAPIInfoRequest, GetAPIInfoResponse>;
|
|
8
|
+
export type InboundWebhooksService_Enable = RpcMethod<EnableInboundWebhookRequest, EnableInboundWebhookResponse>;
|
|
9
|
+
export type InboundWebhooksService_Disable = RpcMethod<DisableInboundWebhookRequest, DisableInboundWebhookResponse>;
|
|
8
10
|
export interface InboundWebhooksService {
|
|
9
11
|
Get: InboundWebhooksService_Get;
|
|
10
12
|
List: InboundWebhooksService_List;
|
|
@@ -12,6 +14,8 @@ export interface InboundWebhooksService {
|
|
|
12
14
|
Update: InboundWebhooksService_Update;
|
|
13
15
|
Delete: InboundWebhooksService_Delete;
|
|
14
16
|
GetAPIInfo: InboundWebhooksService_GetAPIInfo;
|
|
17
|
+
Enable: InboundWebhooksService_Enable;
|
|
18
|
+
Disable: InboundWebhooksService_Disable;
|
|
15
19
|
}
|
|
16
20
|
export type EventAttributeItem = {
|
|
17
21
|
attributeName: string;
|
|
@@ -91,3 +95,13 @@ export type GetAPIInfoResponse = {
|
|
|
91
95
|
secret: string;
|
|
92
96
|
example: string;
|
|
93
97
|
};
|
|
98
|
+
export type EnableInboundWebhookRequest = {
|
|
99
|
+
uuid?: string;
|
|
100
|
+
application?: string;
|
|
101
|
+
};
|
|
102
|
+
export type EnableInboundWebhookResponse = {};
|
|
103
|
+
export type DisableInboundWebhookRequest = {
|
|
104
|
+
uuid?: string;
|
|
105
|
+
application?: string;
|
|
106
|
+
};
|
|
107
|
+
export type DisableInboundWebhookResponse = {};
|
package/package.json
CHANGED
|
@@ -253,6 +253,7 @@ export type Content_PlatformPropertiesIos = {
|
|
|
253
253
|
interruptionLevel: string;
|
|
254
254
|
rootParams: object;
|
|
255
255
|
liveActivity: LiveActivity;
|
|
256
|
+
collapseId: string;
|
|
256
257
|
inbox: Inbox;
|
|
257
258
|
};
|
|
258
259
|
export type Content_PlatformPropertiesAndroid = {
|
|
@@ -273,6 +274,7 @@ export type Content_PlatformPropertiesAndroid = {
|
|
|
273
274
|
customIcon: string;
|
|
274
275
|
priority: NotificationPriority;
|
|
275
276
|
groupId: string;
|
|
277
|
+
collapseKey: string;
|
|
276
278
|
inbox: Inbox;
|
|
277
279
|
};
|
|
278
280
|
export type Content_PlatformPropertiesChrome = {
|
|
@@ -411,6 +413,42 @@ export type Content_PlatformPropertiesKakao = {
|
|
|
411
413
|
template: string;
|
|
412
414
|
contentVariables: string;
|
|
413
415
|
};
|
|
416
|
+
export type Content_PlatformPropertiesLine = {
|
|
417
|
+
content: string;
|
|
418
|
+
template: string;
|
|
419
|
+
};
|
|
420
|
+
export type Content_PlatformPropertiesWhatsApp = {
|
|
421
|
+
/**
|
|
422
|
+
* Free-form text body. Meta only accepts it inside the 24-hour customer
|
|
423
|
+
* service window (opened when the end user sent an inbound message).
|
|
424
|
+
* Exactly one of `content` or `content_id` must be set.
|
|
425
|
+
*/
|
|
426
|
+
content: string;
|
|
427
|
+
/**
|
|
428
|
+
* Name of a pre-approved Meta template (e.g. "hello_world"). Required for
|
|
429
|
+
* outbound initiation or any message outside the 24h window; dynamic data
|
|
430
|
+
* goes through {content,header,button_url}_variables.
|
|
431
|
+
* Exactly one of `content` or `content_id` must be set.
|
|
432
|
+
*/
|
|
433
|
+
contentId: string;
|
|
434
|
+
/**
|
|
435
|
+
* Template locale that must exactly match the one approved in Meta
|
|
436
|
+
* (e.g. "en_US", "en_GB"). Only meaningful with `content_id`.
|
|
437
|
+
*/
|
|
438
|
+
language: string;
|
|
439
|
+
/** JSON string, map of template body placeholders (e.g. {"1":"John"}). */
|
|
440
|
+
contentVariables: string;
|
|
441
|
+
/**
|
|
442
|
+
* JSON string, map of button-URL placeholders keyed by button index
|
|
443
|
+
* (e.g. {"0":"https://..."}).
|
|
444
|
+
*/
|
|
445
|
+
buttonUrlVariables: string;
|
|
446
|
+
/**
|
|
447
|
+
* JSON string, map of header placeholders keyed by type
|
|
448
|
+
* (e.g. {"image":"https://..."}).
|
|
449
|
+
*/
|
|
450
|
+
headerVariables: string;
|
|
451
|
+
};
|
|
414
452
|
export type Content = {
|
|
415
453
|
ios: Content_PlatformPropertiesIos;
|
|
416
454
|
android: Content_PlatformPropertiesAndroid;
|
|
@@ -425,6 +463,8 @@ export type Content = {
|
|
|
425
463
|
windows: Content_PlatformPropertiesWindows;
|
|
426
464
|
telegram: Content_PlatformPropertiesTelegram;
|
|
427
465
|
kakao: Content_PlatformPropertiesKakao;
|
|
466
|
+
line: Content_PlatformPropertiesLine;
|
|
467
|
+
whatsapp: Content_PlatformPropertiesWhatsApp;
|
|
428
468
|
};
|
|
429
469
|
export type LocalizedContent = {
|
|
430
470
|
localizedContent: Record<string, Content>;
|