@pushwoosh/rpc-v2-http-api-data 0.2.114 → 0.2.116
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 +50 -0
- package/inbound_webhooks.d.ts +19 -2
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -13017,6 +13017,23 @@ export const data = {
|
|
|
13017
13017
|
},
|
|
13018
13018
|
"jsonPath": {
|
|
13019
13019
|
"type": "string"
|
|
13020
|
+
},
|
|
13021
|
+
"attributeType": {
|
|
13022
|
+
"type": "pushwoosh.rpc_v2.tags.Tag.Type"
|
|
13023
|
+
}
|
|
13024
|
+
}
|
|
13025
|
+
},
|
|
13026
|
+
"pushwoosh.rpc_v2.inbound_webhooks.TagMappingItem": {
|
|
13027
|
+
"type": "I",
|
|
13028
|
+
"fields": {
|
|
13029
|
+
"tagName": {
|
|
13030
|
+
"type": "string"
|
|
13031
|
+
},
|
|
13032
|
+
"jsonPath": {
|
|
13033
|
+
"type": "string"
|
|
13034
|
+
},
|
|
13035
|
+
"tagType": {
|
|
13036
|
+
"type": "pushwoosh.rpc_v2.tags.Tag.Type"
|
|
13020
13037
|
}
|
|
13021
13038
|
}
|
|
13022
13039
|
},
|
|
@@ -13089,6 +13106,13 @@ export const data = {
|
|
|
13089
13106
|
},
|
|
13090
13107
|
"webhookLogStatus": {
|
|
13091
13108
|
"type": "pushwoosh.rpc_v2.inbound_webhooks.WebhookLogStatus"
|
|
13109
|
+
},
|
|
13110
|
+
"userAutoCreate": {
|
|
13111
|
+
"type": "boolean"
|
|
13112
|
+
},
|
|
13113
|
+
"tagsMapping": {
|
|
13114
|
+
"type": "pushwoosh.rpc_v2.inbound_webhooks.TagMappingItem",
|
|
13115
|
+
"array": true
|
|
13092
13116
|
}
|
|
13093
13117
|
}
|
|
13094
13118
|
},
|
|
@@ -13187,6 +13211,13 @@ export const data = {
|
|
|
13187
13211
|
},
|
|
13188
13212
|
"example": {
|
|
13189
13213
|
"type": "string"
|
|
13214
|
+
},
|
|
13215
|
+
"userAutoCreate": {
|
|
13216
|
+
"type": "boolean"
|
|
13217
|
+
},
|
|
13218
|
+
"tagsMapping": {
|
|
13219
|
+
"type": "pushwoosh.rpc_v2.inbound_webhooks.TagMappingItem",
|
|
13220
|
+
"array": true
|
|
13190
13221
|
}
|
|
13191
13222
|
}
|
|
13192
13223
|
},
|
|
@@ -13225,6 +13256,13 @@ export const data = {
|
|
|
13225
13256
|
},
|
|
13226
13257
|
"example": {
|
|
13227
13258
|
"type": "string"
|
|
13259
|
+
},
|
|
13260
|
+
"userAutoCreate": {
|
|
13261
|
+
"type": "boolean"
|
|
13262
|
+
},
|
|
13263
|
+
"tagsMapping": {
|
|
13264
|
+
"type": "pushwoosh.rpc_v2.inbound_webhooks.TagMappingItem",
|
|
13265
|
+
"array": true
|
|
13228
13266
|
}
|
|
13229
13267
|
}
|
|
13230
13268
|
},
|
|
@@ -13316,6 +13354,18 @@ export const data = {
|
|
|
13316
13354
|
},
|
|
13317
13355
|
"rawRequest": {
|
|
13318
13356
|
"type": "string"
|
|
13357
|
+
},
|
|
13358
|
+
"statusIdentity": {
|
|
13359
|
+
"type": "string"
|
|
13360
|
+
},
|
|
13361
|
+
"statusEvent": {
|
|
13362
|
+
"type": "string"
|
|
13363
|
+
},
|
|
13364
|
+
"statusTags": {
|
|
13365
|
+
"type": "string"
|
|
13366
|
+
},
|
|
13367
|
+
"userCreated": {
|
|
13368
|
+
"type": "boolean"
|
|
13319
13369
|
}
|
|
13320
13370
|
}
|
|
13321
13371
|
},
|
package/inbound_webhooks.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RpcMethod } from './commonTypes';
|
|
2
|
+
import { Tag_Type as pushwoosh_rpc_v2_tags_Tag_Type } from './tags';
|
|
2
3
|
export type InboundWebhooksService_Get = RpcMethod<GetInboundWebhookRequest, InboundWebhook>;
|
|
3
4
|
export type InboundWebhooksService_List = RpcMethod<ListInboundWebhooksRequest, ListInboundWebhooksResponse>;
|
|
4
5
|
export type InboundWebhooksService_Create = RpcMethod<CreateInboundWebhookRequest, CreateInboundWebhookResponse>;
|
|
@@ -13,9 +14,9 @@ export interface InboundWebhooksService {
|
|
|
13
14
|
Get: InboundWebhooksService_Get;
|
|
14
15
|
/** Lists an application's inbound webhooks with paging, name search and status filter, enriched with 30-day trigger counts and last processing status. Use to browse configured inbound webhooks or find a webhook UUID. */
|
|
15
16
|
List: InboundWebhooksService_List;
|
|
16
|
-
/** Creates an inbound webhook for an application (XXXXX-XXXXX) that maps an incoming HTTP payload
|
|
17
|
+
/** Creates an inbound webhook for an application (XXXXX-XXXXX) that maps an incoming HTTP payload onto a Pushwoosh event, profile tags and profile fields via JSON paths, generating a new UUID and Bearer secret. The identifier mapping is always required; the event is optional as long as tags are mapped. Use to set up a new inbound integration endpoint; each call creates a distinct webhook. */
|
|
17
18
|
Create: InboundWebhooksService_Create;
|
|
18
|
-
/** Overwrites an inbound webhook's name, event, identifier and
|
|
19
|
+
/** Overwrites an inbound webhook's name, event, identifier and both mapping groups by UUID; existing mappings are fully deleted and recreated. Use to reconfigure an existing webhook while keeping its UUID and secret. */
|
|
19
20
|
Update: InboundWebhooksService_Update;
|
|
20
21
|
/** Deletes an inbound webhook by UUID, cascading its attribute mappings. Irreversible; the webhook URL stops accepting incoming calls. */
|
|
21
22
|
Delete: InboundWebhooksService_Delete;
|
|
@@ -31,6 +32,12 @@ export interface InboundWebhooksService {
|
|
|
31
32
|
export type EventAttributeItem = {
|
|
32
33
|
attributeName: string;
|
|
33
34
|
jsonPath: string;
|
|
35
|
+
attributeType: pushwoosh_rpc_v2_tags_Tag_Type;
|
|
36
|
+
};
|
|
37
|
+
export type TagMappingItem = {
|
|
38
|
+
tagName: string;
|
|
39
|
+
jsonPath: string;
|
|
40
|
+
tagType: pushwoosh_rpc_v2_tags_Tag_Type;
|
|
34
41
|
};
|
|
35
42
|
export type Status = 'UNKNOWN_STATUS' | 'ENABLED' | 'DISABLED';
|
|
36
43
|
export type IdentifierType = 'UNKNOWN_TYPE' | 'HWID' | 'USER_ID' | 'EMAIL' | 'PHONE' | 'TOKEN';
|
|
@@ -62,6 +69,8 @@ export type InboundWebhook = {
|
|
|
62
69
|
triggeredCount: number;
|
|
63
70
|
/** Status of the last webhook processing attempt */
|
|
64
71
|
webhookLogStatus: WebhookLogStatus;
|
|
72
|
+
userAutoCreate: boolean;
|
|
73
|
+
tagsMapping: TagMappingItem[];
|
|
65
74
|
};
|
|
66
75
|
export type GetInboundWebhookRequest = {
|
|
67
76
|
application?: string;
|
|
@@ -94,6 +103,8 @@ export type CreateInboundWebhookRequest = {
|
|
|
94
103
|
identifierJsonPath?: string;
|
|
95
104
|
attributesMapping?: EventAttributeItem[];
|
|
96
105
|
example?: string;
|
|
106
|
+
userAutoCreate?: boolean;
|
|
107
|
+
tagsMapping?: TagMappingItem[];
|
|
97
108
|
};
|
|
98
109
|
export type CreateInboundWebhookResponse = {
|
|
99
110
|
uuid: string;
|
|
@@ -107,6 +118,8 @@ export type UpdateInboundWebhookRequest = {
|
|
|
107
118
|
identifierJsonPath?: string;
|
|
108
119
|
attributesMapping?: EventAttributeItem[];
|
|
109
120
|
example?: string;
|
|
121
|
+
userAutoCreate?: boolean;
|
|
122
|
+
tagsMapping?: TagMappingItem[];
|
|
110
123
|
};
|
|
111
124
|
export type UpdateInboundWebhookResponse = {};
|
|
112
125
|
export type DeleteInboundWebhookRequest = {
|
|
@@ -142,6 +155,10 @@ export type InboundWebhookLogItem = {
|
|
|
142
155
|
message: string;
|
|
143
156
|
/** Raw request data */
|
|
144
157
|
rawRequest: string;
|
|
158
|
+
statusIdentity: string;
|
|
159
|
+
statusEvent: string;
|
|
160
|
+
statusTags: string;
|
|
161
|
+
userCreated: boolean;
|
|
145
162
|
};
|
|
146
163
|
export type GetActivityLogRequest = {
|
|
147
164
|
uuid?: string;
|