@abtnode/types 1.16.40-beta-20250303-132654-d0e1975b → 1.16.40-beta-20250305-010959-40fb1920

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/lib/rpc_pb.d.ts CHANGED
@@ -1143,3 +1143,53 @@ export type TResponseConfigVault = {
1143
1143
  code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
1144
1144
  sessionId: string;
1145
1145
  };
1146
+ export type TRequestGetWebhookEndpoints = {
1147
+ teamDid: string;
1148
+ paging?: type_pb.TPaging;
1149
+ };
1150
+ export type TResponseGetWebhookEndpoints = {
1151
+ list: type_pb.TWebhookEndpointWithUserInfo[];
1152
+ paging?: type_pb.TPaging;
1153
+ };
1154
+ export type TRequestCreateWebhookEndpoint = {
1155
+ teamDid: string;
1156
+ input?: type_pb.TWebhookEndpointState;
1157
+ };
1158
+ export type TResponseCreateWebhookEndpoint = {
1159
+ data?: type_pb.TWebhookEndpointState;
1160
+ };
1161
+ export type TRequestGetWebhookEndpoint = {
1162
+ teamDid: string;
1163
+ id: string;
1164
+ };
1165
+ export type TResponseGetWebhookEndpoint = {
1166
+ data?: type_pb.TWebhookEndpointWithUserInfo;
1167
+ };
1168
+ export type TRequestUpdateWebhookEndpoint = {
1169
+ teamDid: string;
1170
+ id: string;
1171
+ data?: type_pb.TWebhookEndpointState;
1172
+ };
1173
+ export type TResponseUpdateWebhookEndpoint = {
1174
+ data?: type_pb.TWebhookEndpointState;
1175
+ };
1176
+ export type TRequestDeleteWebhookEndpoint = {
1177
+ teamDid: string;
1178
+ id: string;
1179
+ };
1180
+ export type TResponseDeleteWebhookEndpoint = {
1181
+ data?: type_pb.TWebhookEndpointState;
1182
+ };
1183
+ export type TRequestAttemptId = {
1184
+ eventId: string;
1185
+ webhookId: string;
1186
+ };
1187
+ export type TRequestGetWebhookAttempts = {
1188
+ teamDid: string;
1189
+ input?: TRequestAttemptId;
1190
+ paging?: type_pb.TPaging;
1191
+ };
1192
+ export type TResponseGetWebhookAttempts = {
1193
+ list: type_pb.TWebhookAttemptWithEndpointEventState[];
1194
+ paging?: type_pb.TPaging;
1195
+ };
package/lib/type_pb.d.ts CHANGED
@@ -1247,3 +1247,69 @@ export type TBlockletDocker = {
1247
1247
  dockerEnvs: TDockerEnvKeyValuePair[];
1248
1248
  dockerCommand: string;
1249
1249
  };
1250
+ export type TEnableEvent = {
1251
+ type: string;
1252
+ source: string;
1253
+ };
1254
+ export type TWebhookEndpointState = {
1255
+ id: string;
1256
+ apiVersion: string;
1257
+ url: string;
1258
+ description: string;
1259
+ enabledEvents: TEnableEvent[];
1260
+ metadata?: Record<string, any>;
1261
+ status: string;
1262
+ createdAt: number;
1263
+ updatedAt: number;
1264
+ };
1265
+ export type TWebhookEndpointWithUserInfo = {
1266
+ id: string;
1267
+ apiVersion: string;
1268
+ url: string;
1269
+ description: string;
1270
+ enabledEvents: TEnableEvent[];
1271
+ metadata?: Record<string, any>;
1272
+ status: string;
1273
+ createdAt: number;
1274
+ updatedAt: number;
1275
+ createUser?: TUserInfo;
1276
+ updateUser?: TUserInfo;
1277
+ };
1278
+ export type TWebhookAttemptState = {
1279
+ id: string;
1280
+ eventId: string;
1281
+ webhookId: string;
1282
+ status: string;
1283
+ responseStatus: number;
1284
+ responseBody?: Record<string, any>;
1285
+ retryCount: number;
1286
+ createdAt: number;
1287
+ updatedAt: number;
1288
+ };
1289
+ export type TWebhookEventState = {
1290
+ id: string;
1291
+ type: string;
1292
+ apiVersion: string;
1293
+ data?: Record<string, any>;
1294
+ objectType: string;
1295
+ objectId: string;
1296
+ request?: Record<string, any>;
1297
+ pendingWebhooks: number;
1298
+ metadata?: Record<string, any>;
1299
+ createdAt: number;
1300
+ updatedAt: number;
1301
+ source: string;
1302
+ };
1303
+ export type TWebhookAttemptWithEndpointEventState = {
1304
+ id: string;
1305
+ eventId: string;
1306
+ webhookId: string;
1307
+ status: string;
1308
+ responseStatus: number;
1309
+ responseBody?: Record<string, any>;
1310
+ retryCount: number;
1311
+ createdAt: number;
1312
+ updatedAt: number;
1313
+ endpoint?: TWebhookEndpointState;
1314
+ event?: TWebhookEventState;
1315
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/types",
3
- "version": "1.16.40-beta-20250303-132654-d0e1975b",
3
+ "version": "1.16.40-beta-20250305-010959-40fb1920",
4
4
  "description": "Typescript definitions generated from protobuf",
5
5
  "keywords": [
6
6
  "abtnode",
@@ -36,5 +36,5 @@
36
36
  "bugs": {
37
37
  "url": "https://github.com/ArcBlock/abt-node/issues"
38
38
  },
39
- "gitHead": "2a8e4d0ad0ab4bfbc891896710d7d54790d6cbe2"
39
+ "gitHead": "7d1d3b8f7b80e9b2ff06a2ebc19763f4b110815c"
40
40
  }