workos-go icon indicating copy to clipboard operation
workos-go copied to clipboard

Structs for webhook payloads

Open aidansteele opened this issue 5 years ago • 0 comments

It would be quite useful if there were structs that corresponded to webhook events, e.g. like dsync.user.updated.

For the above example, there is the directorysync.User type but it's not quite right. Compare its definition https://github.com/workos-inc/workos-go/blob/83f29941b8a27e7693d229c4ce9190bf581a47f2/pkg/directorysync/client.go#L57-L75

To the payload definition:

image

(The directory_id field is missing)

aidansteele avatar Feb 03 '21 23:02 aidansteele