@pushwoosh/rpc-v2-http-api-data 0.1.920 → 0.1.922
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 +81 -0
- package/inbound_webhooks.d.ts +49 -0
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -10865,6 +10865,12 @@ export const data = {
|
|
|
10865
10865
|
"response": "pushwoosh.rpc_v2.inbound_webhooks.DisableInboundWebhookResponse",
|
|
10866
10866
|
"method": "post",
|
|
10867
10867
|
"path": "/api/inbound_webhooks/{uuid}/disable"
|
|
10868
|
+
},
|
|
10869
|
+
"GetActivityLog": {
|
|
10870
|
+
"request": "pushwoosh.rpc_v2.inbound_webhooks.GetActivityLogRequest",
|
|
10871
|
+
"response": "pushwoosh.rpc_v2.inbound_webhooks.GetActivityLogResponse",
|
|
10872
|
+
"method": "get",
|
|
10873
|
+
"path": "/api/inbound_webhooks/{uuid}/activity_log"
|
|
10868
10874
|
}
|
|
10869
10875
|
}
|
|
10870
10876
|
},
|
|
@@ -10898,6 +10904,17 @@ export const data = {
|
|
|
10898
10904
|
"TOKEN"
|
|
10899
10905
|
]
|
|
10900
10906
|
},
|
|
10907
|
+
"pushwoosh.rpc_v2.inbound_webhooks.WebhookLogStatus": {
|
|
10908
|
+
"type": "E",
|
|
10909
|
+
"values": [
|
|
10910
|
+
"WEBHOOK_LOG_STATUS_UNKNOWN",
|
|
10911
|
+
"WEBHOOK_LOG_STATUS_SUCCESS",
|
|
10912
|
+
"WEBHOOK_LOG_STATUS_INTERNAL_ERROR",
|
|
10913
|
+
"WEBHOOK_LOG_STATUS_VALIDATE_ERROR",
|
|
10914
|
+
"WEBHOOK_LOG_STATUS_WEBHOOK_INACTIVE",
|
|
10915
|
+
"WEBHOOK_LOG_STATUS_AUTHORIZATION_ERROR"
|
|
10916
|
+
]
|
|
10917
|
+
},
|
|
10901
10918
|
"pushwoosh.rpc_v2.inbound_webhooks.InboundWebhook": {
|
|
10902
10919
|
"type": "I",
|
|
10903
10920
|
"fields": {
|
|
@@ -10934,6 +10951,9 @@ export const data = {
|
|
|
10934
10951
|
},
|
|
10935
10952
|
"triggeredCount": {
|
|
10936
10953
|
"type": "number"
|
|
10954
|
+
},
|
|
10955
|
+
"webhookLogStatus": {
|
|
10956
|
+
"type": "pushwoosh.rpc_v2.inbound_webhooks.WebhookLogStatus"
|
|
10937
10957
|
}
|
|
10938
10958
|
}
|
|
10939
10959
|
},
|
|
@@ -11147,6 +11167,67 @@ export const data = {
|
|
|
11147
11167
|
"type": "I",
|
|
11148
11168
|
"fields": {}
|
|
11149
11169
|
},
|
|
11170
|
+
"pushwoosh.rpc_v2.inbound_webhooks.InboundWebhookLogItem": {
|
|
11171
|
+
"type": "I",
|
|
11172
|
+
"fields": {
|
|
11173
|
+
"timestamp": {
|
|
11174
|
+
"type": "Date"
|
|
11175
|
+
},
|
|
11176
|
+
"status": {
|
|
11177
|
+
"type": "pushwoosh.rpc_v2.inbound_webhooks.WebhookLogStatus"
|
|
11178
|
+
},
|
|
11179
|
+
"message": {
|
|
11180
|
+
"type": "string"
|
|
11181
|
+
},
|
|
11182
|
+
"rawRequest": {
|
|
11183
|
+
"type": "string"
|
|
11184
|
+
}
|
|
11185
|
+
}
|
|
11186
|
+
},
|
|
11187
|
+
"pushwoosh.rpc_v2.inbound_webhooks.GetActivityLogRequest": {
|
|
11188
|
+
"type": "I",
|
|
11189
|
+
"fields": {
|
|
11190
|
+
"uuid": {
|
|
11191
|
+
"type": "string"
|
|
11192
|
+
},
|
|
11193
|
+
"application": {
|
|
11194
|
+
"type": "string"
|
|
11195
|
+
},
|
|
11196
|
+
"page": {
|
|
11197
|
+
"type": "number"
|
|
11198
|
+
},
|
|
11199
|
+
"perPage": {
|
|
11200
|
+
"type": "number"
|
|
11201
|
+
}
|
|
11202
|
+
}
|
|
11203
|
+
},
|
|
11204
|
+
"pushwoosh.rpc_v2.inbound_webhooks.GetActivityLogResponse": {
|
|
11205
|
+
"type": "I",
|
|
11206
|
+
"fields": {
|
|
11207
|
+
"logItems": {
|
|
11208
|
+
"type": "pushwoosh.rpc_v2.inbound_webhooks.InboundWebhookLogItem",
|
|
11209
|
+
"array": true
|
|
11210
|
+
},
|
|
11211
|
+
"page": {
|
|
11212
|
+
"type": "number"
|
|
11213
|
+
},
|
|
11214
|
+
"perPage": {
|
|
11215
|
+
"type": "number"
|
|
11216
|
+
},
|
|
11217
|
+
"totalPages": {
|
|
11218
|
+
"type": "number"
|
|
11219
|
+
},
|
|
11220
|
+
"total": {
|
|
11221
|
+
"type": "number"
|
|
11222
|
+
},
|
|
11223
|
+
"totalSuccess": {
|
|
11224
|
+
"type": "number"
|
|
11225
|
+
},
|
|
11226
|
+
"totalFailed": {
|
|
11227
|
+
"type": "number"
|
|
11228
|
+
}
|
|
11229
|
+
}
|
|
11230
|
+
},
|
|
11150
11231
|
"pushwoosh.rpc_v2.integrations.IntegrationsService": {
|
|
11151
11232
|
"type": "S",
|
|
11152
11233
|
"key": "integrations",
|
package/inbound_webhooks.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type InboundWebhooksService_Delete = RpcMethod<DeleteInboundWebhookReques
|
|
|
7
7
|
export type InboundWebhooksService_GetAPIInfo = RpcMethod<GetAPIInfoRequest, GetAPIInfoResponse>;
|
|
8
8
|
export type InboundWebhooksService_Enable = RpcMethod<EnableInboundWebhookRequest, EnableInboundWebhookResponse>;
|
|
9
9
|
export type InboundWebhooksService_Disable = RpcMethod<DisableInboundWebhookRequest, DisableInboundWebhookResponse>;
|
|
10
|
+
export type InboundWebhooksService_GetActivityLog = RpcMethod<GetActivityLogRequest, GetActivityLogResponse>;
|
|
10
11
|
export interface InboundWebhooksService {
|
|
11
12
|
Get: InboundWebhooksService_Get;
|
|
12
13
|
List: InboundWebhooksService_List;
|
|
@@ -16,6 +17,7 @@ export interface InboundWebhooksService {
|
|
|
16
17
|
GetAPIInfo: InboundWebhooksService_GetAPIInfo;
|
|
17
18
|
Enable: InboundWebhooksService_Enable;
|
|
18
19
|
Disable: InboundWebhooksService_Disable;
|
|
20
|
+
GetActivityLog: InboundWebhooksService_GetActivityLog;
|
|
19
21
|
}
|
|
20
22
|
export type EventAttributeItem = {
|
|
21
23
|
attributeName: string;
|
|
@@ -23,6 +25,19 @@ export type EventAttributeItem = {
|
|
|
23
25
|
};
|
|
24
26
|
export type Status = 'UNKNOWN_STATUS' | 'ENABLED' | 'DISABLED';
|
|
25
27
|
export type IdentifierType = 'UNKNOWN_TYPE' | 'HWID' | 'USER_ID' | 'EMAIL' | 'PHONE' | 'TOKEN';
|
|
28
|
+
export type WebhookLogStatus =
|
|
29
|
+
/** Unknown or unspecified status */
|
|
30
|
+
'WEBHOOK_LOG_STATUS_UNKNOWN'
|
|
31
|
+
/** Webhook processed successfully */
|
|
32
|
+
| 'WEBHOOK_LOG_STATUS_SUCCESS'
|
|
33
|
+
/** Internal server error during processing */
|
|
34
|
+
| 'WEBHOOK_LOG_STATUS_INTERNAL_ERROR'
|
|
35
|
+
/** Validation error in webhook data */
|
|
36
|
+
| 'WEBHOOK_LOG_STATUS_VALIDATE_ERROR'
|
|
37
|
+
/** Webhook is inactive or disabled */
|
|
38
|
+
| 'WEBHOOK_LOG_STATUS_WEBHOOK_INACTIVE'
|
|
39
|
+
/** Authorization error */
|
|
40
|
+
| 'WEBHOOK_LOG_STATUS_AUTHORIZATION_ERROR';
|
|
26
41
|
export type InboundWebhook = {
|
|
27
42
|
uuid: string;
|
|
28
43
|
name: string;
|
|
@@ -36,6 +51,8 @@ export type InboundWebhook = {
|
|
|
36
51
|
example: string;
|
|
37
52
|
/** Number of webhook triggers in the last 30 days */
|
|
38
53
|
triggeredCount: number;
|
|
54
|
+
/** Status of the last webhook processing attempt */
|
|
55
|
+
webhookLogStatus: WebhookLogStatus;
|
|
39
56
|
};
|
|
40
57
|
export type GetInboundWebhookRequest = {
|
|
41
58
|
application?: string;
|
|
@@ -107,3 +124,35 @@ export type DisableInboundWebhookRequest = {
|
|
|
107
124
|
application?: string;
|
|
108
125
|
};
|
|
109
126
|
export type DisableInboundWebhookResponse = {};
|
|
127
|
+
export type InboundWebhookLogItem = {
|
|
128
|
+
/** Timestamp when the webhook was processed */
|
|
129
|
+
timestamp: Date;
|
|
130
|
+
/** Processing status */
|
|
131
|
+
status: WebhookLogStatus;
|
|
132
|
+
/** Error description */
|
|
133
|
+
message: string;
|
|
134
|
+
/** Raw request data */
|
|
135
|
+
rawRequest: string;
|
|
136
|
+
};
|
|
137
|
+
export type GetActivityLogRequest = {
|
|
138
|
+
uuid?: string;
|
|
139
|
+
application?: string;
|
|
140
|
+
page?: number;
|
|
141
|
+
perPage?: number;
|
|
142
|
+
};
|
|
143
|
+
export type GetActivityLogResponse = {
|
|
144
|
+
/** List of webhook log entries for current page */
|
|
145
|
+
logItems: InboundWebhookLogItem[];
|
|
146
|
+
/** Current page number */
|
|
147
|
+
page: number;
|
|
148
|
+
/** Items per page */
|
|
149
|
+
perPage: number;
|
|
150
|
+
/** Total number of pages */
|
|
151
|
+
totalPages: number;
|
|
152
|
+
/** Total number of log entries */
|
|
153
|
+
total: number;
|
|
154
|
+
/** Total number of successful webhook calls */
|
|
155
|
+
totalSuccess: number;
|
|
156
|
+
/** Total number of failed webhook calls */
|
|
157
|
+
totalFailed: number;
|
|
158
|
+
};
|