Skip to content

listEvents deserializer drops context field from API response #1415

@scottsymm

Description

@scottsymm

It looks like listEvents deserializer drops context field from API response, so when fetching events from workos using the api, we don't get fields like client_id.

is that something that could be added ?

when we fetch directly we can see the context object in the response:

	"data": [
		{
			"object": "event",
			"id": "event_01K9WKYZTXWQTN25PDX3V6G9GP",
			"event": "authentication.oauth_succeeded",
			"data": {
				"type": "oauth",
				"email": "[email protected]",
				"status": "succeeded",
				"user_id": "user_id",
				"ip_address": "ip",
				"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"
			},
			"created_at": "2025-11-12T18:06:35.869Z",
			"context": {
				"client_id": "CLIENT_ID"
			}
		},

many thanks

'@workos-inc/node': 7.74.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions