Skip to content

Commit

Permalink
Merge pull request #39 from seamapi/fern-bot/03-05-2024-0131AM
Browse files Browse the repository at this point in the history
🌿 Fern Regeneration -- March 5, 2024
  • Loading branch information
dawnho committed Mar 5, 2024
2 parents fffcbcc + 0065e00 commit 4760dd2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/request_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (r *RequestOptions) cloneHeader() http.Header {
headers := r.HTTPHeader.Clone()
headers.Set("X-Fern-Language", "Go")
headers.Set("X-Fern-SDK-Name", "github.com/seamapi/go")
headers.Set("X-Fern-SDK-Version", "v0.2.15")
headers.Set("X-Fern-SDK-Version", "v0.2.16")
return headers
}

Expand Down
7 changes: 7 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3300,6 +3300,7 @@ type Event struct {
DeviceId *string `json:"device_id,omitempty" url:"device_id,omitempty"`
AcsCredentialId *string `json:"acs_credential_id,omitempty" url:"acs_credential_id,omitempty"`
AcsUserId *string `json:"acs_user_id,omitempty" url:"acs_user_id,omitempty"`
ClientSessionId *string `json:"client_session_id,omitempty" url:"client_session_id,omitempty"`
EnrollmentAutomationId *string `json:"enrollment_automation_id,omitempty" url:"enrollment_automation_id,omitempty"`
EventType string `json:"event_type" url:"event_type"`
WorkspaceId string `json:"workspace_id" url:"workspace_id"`
Expand Down Expand Up @@ -3404,6 +3405,8 @@ const (
EventTypeEnrollmentAutomationDeleted EventType = "enrollment_automation.deleted"
EventTypeAcsUserDeleted EventType = "acs_user.deleted"
EventTypeAcsCredentialDeleted EventType = "acs_credential.deleted"
EventTypePhoneDeactivated EventType = "phone.deactivated"
EventTypeClientSessionDeleted EventType = "client_session.deleted"
)

func NewEventTypeFromString(s string) (EventType, error) {
Expand Down Expand Up @@ -3502,6 +3505,10 @@ func NewEventTypeFromString(s string) (EventType, error) {
return EventTypeAcsUserDeleted, nil
case "acs_credential.deleted":
return EventTypeAcsCredentialDeleted, nil
case "phone.deactivated":
return EventTypePhoneDeactivated, nil
case "client_session.deleted":
return EventTypeClientSessionDeleted, nil
}
var t EventType
return "", fmt.Errorf("%s is not a valid %T", s, t)
Expand Down

0 comments on commit 4760dd2

Please sign in to comment.