@abtnode/types
Advanced tools
Comparing version 1.16.40-beta-20250303-132654-d0e1975b to 1.16.40-beta-20250305-001025-5ee639c9
@@ -1146,1 +1146,51 @@ // package: abt_node | ||
}; | ||
export type TRequestGetWebhookEndpoints = { | ||
teamDid: string; | ||
paging?: type_pb.TPaging; | ||
}; | ||
export type TResponseGetWebhookEndpoints = { | ||
list: type_pb.TWebhookEndpointWithUserInfo[]; | ||
paging?: type_pb.TPaging; | ||
}; | ||
export type TRequestCreateWebhookEndpoint = { | ||
teamDid: string; | ||
input?: type_pb.TWebhookEndpointState; | ||
}; | ||
export type TResponseCreateWebhookEndpoint = { | ||
data?: type_pb.TWebhookEndpointState; | ||
}; | ||
export type TRequestGetWebhookEndpoint = { | ||
teamDid: string; | ||
id: string; | ||
}; | ||
export type TResponseGetWebhookEndpoint = { | ||
data?: type_pb.TWebhookEndpointWithUserInfo; | ||
}; | ||
export type TRequestUpdateWebhookEndpoint = { | ||
teamDid: string; | ||
id: string; | ||
data?: type_pb.TWebhookEndpointState; | ||
}; | ||
export type TResponseUpdateWebhookEndpoint = { | ||
data?: type_pb.TWebhookEndpointState; | ||
}; | ||
export type TRequestDeleteWebhookEndpoint = { | ||
teamDid: string; | ||
id: string; | ||
}; | ||
export type TResponseDeleteWebhookEndpoint = { | ||
data?: type_pb.TWebhookEndpointState; | ||
}; | ||
export type TRequestAttemptId = { | ||
eventId: string; | ||
webhookId: string; | ||
}; | ||
export type TRequestGetWebhookAttempts = { | ||
teamDid: string; | ||
input?: TRequestAttemptId; | ||
paging?: type_pb.TPaging; | ||
}; | ||
export type TResponseGetWebhookAttempts = { | ||
list: type_pb.TWebhookAttemptWithEndpointEventState[]; | ||
paging?: type_pb.TPaging; | ||
}; |
@@ -1250,1 +1250,67 @@ // package: abt_node | ||
}; | ||
export type TEnableEvent = { | ||
type: string; | ||
source: string; | ||
}; | ||
export type TWebhookEndpointState = { | ||
id: string; | ||
apiVersion: string; | ||
url: string; | ||
description: string; | ||
enabledEvents: TEnableEvent[]; | ||
metadata?: Record<string, any>; | ||
status: string; | ||
createdAt: number; | ||
updatedAt: number; | ||
}; | ||
export type TWebhookEndpointWithUserInfo = { | ||
id: string; | ||
apiVersion: string; | ||
url: string; | ||
description: string; | ||
enabledEvents: TEnableEvent[]; | ||
metadata?: Record<string, any>; | ||
status: string; | ||
createdAt: number; | ||
updatedAt: number; | ||
createUser?: TUserInfo; | ||
updateUser?: TUserInfo; | ||
}; | ||
export type TWebhookAttemptState = { | ||
id: string; | ||
eventId: string; | ||
webhookId: string; | ||
status: string; | ||
responseStatus: number; | ||
responseBody?: Record<string, any>; | ||
retryCount: number; | ||
createdAt: number; | ||
updatedAt: number; | ||
}; | ||
export type TWebhookEventState = { | ||
id: string; | ||
type: string; | ||
apiVersion: string; | ||
data?: Record<string, any>; | ||
objectType: string; | ||
objectId: string; | ||
request?: Record<string, any>; | ||
pendingWebhooks: number; | ||
metadata?: Record<string, any>; | ||
createdAt: number; | ||
updatedAt: number; | ||
source: string; | ||
}; | ||
export type TWebhookAttemptWithEndpointEventState = { | ||
id: string; | ||
eventId: string; | ||
webhookId: string; | ||
status: string; | ||
responseStatus: number; | ||
responseBody?: Record<string, any>; | ||
retryCount: number; | ||
createdAt: number; | ||
updatedAt: number; | ||
endpoint?: TWebhookEndpointState; | ||
event?: TWebhookEventState; | ||
}; |
{ | ||
"name": "@abtnode/types", | ||
"version": "1.16.40-beta-20250303-132654-d0e1975b", | ||
"version": "1.16.40-beta-20250305-001025-5ee639c9", | ||
"description": "Typescript definitions generated from protobuf", | ||
@@ -39,3 +39,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "2a8e4d0ad0ab4bfbc891896710d7d54790d6cbe2" | ||
"gitHead": "6e95cc2e200d803e1350a863893fc679634b8f80" | ||
} |
64426
2626