Skip to content

Commit

Permalink
feat: add transient payloads to all flows (#3738)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Feb 21, 2024
1 parent b291c95 commit b8b747b
Show file tree
Hide file tree
Showing 107 changed files with 2,117 additions and 200 deletions.
9 changes: 5 additions & 4 deletions courier/template/email/login_code_valid.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ type (
model *LoginCodeValidModel
}
LoginCodeValidModel struct {
To string `json:"to"`
LoginCode string `json:"login_code"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
To string `json:"to"`
LoginCode string `json:"login_code"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
5 changes: 3 additions & 2 deletions courier/template/email/recovery_code_invalid.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ type (
model *RecoveryCodeInvalidModel
}
RecoveryCodeInvalidModel struct {
To string `json:"to"`
RequestURL string `json:"request_url"`
To string `json:"to"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
9 changes: 5 additions & 4 deletions courier/template/email/recovery_code_valid.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ type (
model *RecoveryCodeValidModel
}
RecoveryCodeValidModel struct {
To string `json:"to"`
RecoveryCode string `json:"recovery_code"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
To string `json:"to"`
RecoveryCode string `json:"recovery_code"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
5 changes: 3 additions & 2 deletions courier/template/email/recovery_invalid.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ type (
m *RecoveryInvalidModel
}
RecoveryInvalidModel struct {
To string `json:"to"`
RequestURL string `json:"request_url"`
To string `json:"to"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
9 changes: 5 additions & 4 deletions courier/template/email/recovery_valid.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ type (
m *RecoveryValidModel
}
RecoveryValidModel struct {
To string `json:"to"`
RecoveryURL string `json:"recovery_url"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
To string `json:"to"`
RecoveryURL string `json:"recovery_url"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
1 change: 1 addition & 0 deletions courier/template/email/registration_code_valid.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type (
Traits map[string]interface{} `json:"traits"`
RegistrationCode string `json:"registration_code"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
5 changes: 3 additions & 2 deletions courier/template/email/verification_code_invalid.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ type (
m *VerificationCodeInvalidModel
}
VerificationCodeInvalidModel struct {
To string `json:"to"`
RequestURL string `json:"request_url"`
To string `json:"to"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
1 change: 1 addition & 0 deletions courier/template/email/verification_code_valid.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type (
VerificationCode string `json:"verification_code"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
5 changes: 3 additions & 2 deletions courier/template/email/verification_invalid.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ type (
m *VerificationInvalidModel
}
VerificationInvalidModel struct {
To string `json:"to"`
RequestURL string `json:"request_url"`
To string `json:"to"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
9 changes: 5 additions & 4 deletions courier/template/email/verification_valid.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ type (
m *VerificationValidModel
}
VerificationValidModel struct {
To string `json:"to"`
VerificationURL string `json:"verification_url"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
To string `json:"to"`
VerificationURL string `json:"verification_url"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
9 changes: 5 additions & 4 deletions courier/template/sms/login_code_valid.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ type (
model *LoginCodeValidModel
}
LoginCodeValidModel struct {
To string `json:"to"`
LoginCode string `json:"login_code"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
To string `json:"to"`
LoginCode string `json:"login_code"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
1 change: 1 addition & 0 deletions courier/template/sms/verification_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type (
VerificationCode string `json:"verification_code"`
Identity map[string]interface{} `json:"identity"`
RequestURL string `json:"request_url"`
TransientPayload map[string]interface{} `json:"transient_payload"`
}
)

Expand Down
37 changes: 37 additions & 0 deletions internal/client-go/model_login_flow.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions internal/client-go/model_recovery_flow.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions internal/client-go/model_settings_flow.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions internal/client-go/model_update_login_flow_with_code_method.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b8b747b

Please sign in to comment.