Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions www/apps/api-reference/specs/store/openapi.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1474,19 +1474,22 @@ paths:
payload: |-
```ts
{
entity_id, // The identifier of the user or customer. For example, an email address.
actor_type, // The type of actor. For example, "customer", "user", or custom.
provider, // The auth provider that requested verification.
entity_id, // The identifier of the entity being verified. For example, an email address.
entity_type, // The kind of entity being verified. For example, "email".
code_provider, // The verification provider that generated the code. For example, "token".
auth_identity_id, // The ID of the auth identity being verified.
provider_identity_id, // The ID of the provider identity being verified.
code, // The generated verification code.
expires_at, // The code expiry date.
metadata, // Optional custom metadata passed from the request.
expires_at, // (Date) The code expiry date.
metadata, // (object) Optional custom metadata passed from the request.
}
```
description: |-
Emitted when a verification code is generated. You can listen to
this event and decide how to deliver the code to the user or customer.
The payload changed in v2.17.0:
`actor_type` and `provider_identity_id` were removed,
`provider` was renamed to `code_provider`, and `entity_type` was added.
Subscribers written before v2.17.0 must be updated to use the payload below.
deprecated: false
since: 2.15.5
x-since: 2.16.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,28 @@ post:
payload: |-
```ts
{
entity_id, // The identifier of the user or customer. For example, an email address.
actor_type, // The type of actor. For example, "customer", "user", or custom.
provider, // The auth provider that requested verification.
entity_id, // The identifier of the entity being verified. For example, an email address.
entity_type, // The kind of entity being verified. For example, "email".
code_provider, // The verification provider that generated the code. For example, "token".
auth_identity_id, // The ID of the auth identity being verified.
provider_identity_id, // The ID of the provider identity being verified.
code, // The generated verification code.
expires_at, // The code expiry date.
metadata, // Optional custom metadata passed from the request.
expires_at, // (Date) The code expiry date.
metadata, // (object) Optional custom metadata passed from the request.
}
```
description: |-
description: >-
Emitted when a verification code is generated. You can listen to

this event and decide how to deliver the code to the user or customer.

The payload changed in v2.17.0:

`actor_type` and `provider_identity_id` were removed,

`provider` was renamed to `code_provider`, and `entity_type` was added.

Subscribers written before v2.17.0 must be updated to use the payload
below.
deprecated: false
since: 2.15.5
x-since: 2.16.0

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"slug":"/references/events/Auth/variables/events.Auth.AuthWorkflowEvents","title":"AuthWorkflowEvents","frontmatter":{},"toc":[],"blocks":[{"kind":"typeList","types":[{"name":"AuthWorkflowEvents","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"PASSWORD_RESET","type":"`\"auth.password_reset\"`","description":"Emitted when a reset password token is generated. You can listen to this event\nto send a reset password email to the user or customer, for example.","optional":false,"defaultValue":"\"auth.password_reset\"","expandable":false,"children":[]},{"name":"VERIFICATION_REQUESTED","type":"`\"auth.verification_requested\"`","description":"Emitted when a verification code is generated. You can listen to\nthis event and decide how to deliver the code to the user or customer.","optional":false,"defaultValue":"\"auth.verification_requested\"","expandable":false,"children":[],"since":"2.15.5"}]}]}]}
{"slug":"/references/events/Auth/variables/events.Auth.AuthWorkflowEvents","title":"AuthWorkflowEvents","frontmatter":{},"toc":[],"blocks":[{"kind":"typeList","types":[{"name":"AuthWorkflowEvents","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"PASSWORD_RESET","type":"`\"auth.password_reset\"`","description":"Emitted when a reset password token is generated. You can listen to this event\nto send a reset password email to the user or customer, for example.","optional":false,"defaultValue":"\"auth.password_reset\"","expandable":false,"children":[]},{"name":"VERIFICATION_REQUESTED","type":"`\"auth.verification_requested\"`","description":"Emitted when a verification code is generated. You can listen to\nthis event and decide how to deliver the code to the user or customer.\nThe payload changed in v2.17.0:\n`actor_type` and `provider_identity_id` were removed,\n`provider` was renamed to `code_provider`, and `entity_type` was added.\nSubscribers written before v2.17.0 must be updated to use the payload below.","optional":false,"defaultValue":"\"auth.verification_requested\"","expandable":false,"children":[],"since":"2.15.5"}]}]}]}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"slug":"/references/auth/events","title":"Auth Module Events Reference","frontmatter":{"slug":"/references/auth/events","sidebar_label":"Events Reference","generate_toc":true},"toc":[],"blocks":[{"kind":"markdown","html":"This reference shows all the events emitted by the Medusa application related to the Auth Module. If you use the module outside the Medusa application, these events aren't emitted."},{"kind":"eventsListing","categories":[{"title":"Auth","events":[{"name":"auth.mfa_enabled","id":"authmfa_enabled","description":"Emitted when an MFA factor is enabled for an auth identity.","payload":"```ts\n{\n auth_identity_id, // The ID of the auth identity for which the MFA factor was enabled.\n mfa_id, // The ID of the MFA factor that was enabled.\n provider, // The provider of the MFA factor that was enabled.\n}\n```","since":"2.15.5"},{"name":"auth.mfa_disabled","id":"authmfa_disabled","description":"Emitted when an MFA factor is disabled for an auth identity.","payload":"```ts\n{\n auth_identity_id, // The ID of the auth identity for which the MFA factor was disabled.\n mfa_id, // The ID of the MFA factor that was disabled.\n provider, // The provider of the MFA factor that was disabled.\n}\n```","since":"2.15.5"},{"name":"auth.mfa_recovery_codes_generated","id":"authmfa_recovery_codes_generated","description":"Emitted when recovery codes are generated for an auth identity.","payload":"```ts\n{\n auth_identity_id, // The ID of the auth identity for which the recovery codes were generated.\n count, // (number) The number of recovery codes that were generated.\n}\n```","since":"2.15.5"},{"name":"auth.password_reset","id":"authpassword_reset","description":"Emitted when a reset password token is generated. You can listen to this event\nto send a reset password email to the user or customer, for example.","payload":"```ts\n{\n entity_id, // The identifier of the user or customer. For example, an email address.\n actor_type, // The type of actor. For example, \"customer\", \"user\", or custom.\n token, // The generated token.\n metadata, // Optional custom metadata passed from the request.\n}\n```","workflows":[{"name":"generateResetPasswordTokenWorkflow","href":"/references/medusa-workflows/generateResetPasswordTokenWorkflow"}]},{"name":"auth.verification_requested","id":"authverification_requested","description":"Emitted when a verification code is generated. You can listen to\nthis event and decide how to deliver the code to the user or customer.","payload":"```ts\n{\n entity_id, // The identifier of the user or customer. For example, an email address.\n actor_type, // The type of actor. For example, \"customer\", \"user\", or custom.\n provider, // The auth provider that requested verification.\n auth_identity_id, // The ID of the auth identity being verified.\n provider_identity_id, // The ID of the provider identity being verified.\n code, // The generated verification code.\n expires_at, // The code expiry date.\n metadata, // Optional custom metadata passed from the request.\n}\n```","workflows":[{"name":"requestVerificationWorkflow","href":"/references/medusa-workflows/requestVerificationWorkflow"}],"since":"2.15.5"}]}]}]}
{"slug":"/references/auth/events","title":"Auth Module Events Reference","frontmatter":{"slug":"/references/auth/events","sidebar_label":"Events Reference","generate_toc":true},"toc":[],"blocks":[{"kind":"markdown","html":"This reference shows all the events emitted by the Medusa application related to the Auth Module. If you use the module outside the Medusa application, these events aren't emitted."},{"kind":"eventsListing","categories":[{"title":"Auth","events":[{"name":"auth.mfa_enabled","id":"authmfa_enabled","description":"Emitted when an MFA factor is enabled for an auth identity.","payload":"```ts\n{\n auth_identity_id, // The ID of the auth identity for which the MFA factor was enabled.\n mfa_id, // The ID of the MFA factor that was enabled.\n provider, // The provider of the MFA factor that was enabled.\n}\n```","since":"2.15.5"},{"name":"auth.mfa_disabled","id":"authmfa_disabled","description":"Emitted when an MFA factor is disabled for an auth identity.","payload":"```ts\n{\n auth_identity_id, // The ID of the auth identity for which the MFA factor was disabled.\n mfa_id, // The ID of the MFA factor that was disabled.\n provider, // The provider of the MFA factor that was disabled.\n}\n```","since":"2.15.5"},{"name":"auth.mfa_recovery_codes_generated","id":"authmfa_recovery_codes_generated","description":"Emitted when recovery codes are generated for an auth identity.","payload":"```ts\n{\n auth_identity_id, // The ID of the auth identity for which the recovery codes were generated.\n count, // (number) The number of recovery codes that were generated.\n}\n```","since":"2.15.5"},{"name":"auth.password_reset","id":"authpassword_reset","description":"Emitted when a reset password token is generated. You can listen to this event\nto send a reset password email to the user or customer, for example.","payload":"```ts\n{\n entity_id, // The identifier of the user or customer. For example, an email address.\n actor_type, // The type of actor. For example, \"customer\", \"user\", or custom.\n token, // The generated token.\n metadata, // Optional custom metadata passed from the request.\n}\n```","workflows":[{"name":"generateResetPasswordTokenWorkflow","href":"/references/medusa-workflows/generateResetPasswordTokenWorkflow"}]},{"name":"auth.verification_requested","id":"authverification_requested","description":"Emitted when a verification code is generated. You can listen to\nthis event and decide how to deliver the code to the user or customer.\nThe payload changed in v2.17.0:\n`actor_type` and `provider_identity_id` were removed,\n`provider` was renamed to `code_provider`, and `entity_type` was added.\nSubscribers written before v2.17.0 must be updated to use the payload below.","payload":"```ts\n{\n entity_id, // The identifier of the entity being verified. For example, an email address.\n entity_type, // The kind of entity being verified. For example, \"email\".\n code_provider, // The verification provider that generated the code. For example, \"token\".\n auth_identity_id, // The ID of the auth identity being verified.\n code, // The generated verification code.\n expires_at, // (Date) The code expiry date.\n metadata, // (object) Optional custom metadata passed from the request.\n}\n```","workflows":[{"name":"requestVerificationWorkflow","href":"/references/medusa-workflows/requestVerificationWorkflow"}],"since":"2.15.5"}]}]}]}
2 changes: 1 addition & 1 deletion www/apps/resources/references/modules/events/page.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"slug":"/references/utils/Auth/variables/utils.Auth.AuthWorkflowEvents","title":"AuthWorkflowEvents","frontmatter":{},"toc":[],"blocks":[{"kind":"typeList","types":[{"name":"AuthWorkflowEvents","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"PASSWORD_RESET","type":"`\"auth.password_reset\"`","description":"Emitted when a reset password token is generated. You can listen to this event\nto send a reset password email to the user or customer, for example.","optional":false,"defaultValue":"\"auth.password_reset\"","expandable":false,"children":[]},{"name":"VERIFICATION_REQUESTED","type":"`\"auth.verification_requested\"`","description":"Emitted when a verification code is generated. You can listen to\nthis event and decide how to deliver the code to the user or customer.","optional":false,"defaultValue":"\"auth.verification_requested\"","expandable":false,"children":[],"since":"2.15.5"}]}]}]}
{"slug":"/references/utils/Auth/variables/utils.Auth.AuthWorkflowEvents","title":"AuthWorkflowEvents","frontmatter":{},"toc":[],"blocks":[{"kind":"typeList","types":[{"name":"AuthWorkflowEvents","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"PASSWORD_RESET","type":"`\"auth.password_reset\"`","description":"Emitted when a reset password token is generated. You can listen to this event\nto send a reset password email to the user or customer, for example.","optional":false,"defaultValue":"\"auth.password_reset\"","expandable":false,"children":[]},{"name":"VERIFICATION_REQUESTED","type":"`\"auth.verification_requested\"`","description":"Emitted when a verification code is generated. You can listen to\nthis event and decide how to deliver the code to the user or customer.\nThe payload changed in v2.17.0:\n`actor_type` and `provider_identity_id` were removed,\n`provider` was renamed to `code_provider`, and `entity_type` was added.\nSubscribers written before v2.17.0 must be updated to use the payload below.","optional":false,"defaultValue":"\"auth.verification_requested\"","expandable":false,"children":[],"since":"2.15.5"}]}]}]}
4 changes: 2 additions & 2 deletions www/utils/generated/events-output.json
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@
"name": "auth.verification_requested",
"parentName": "AuthWorkflowEvents",
"propertyName": "VERIFICATION_REQUESTED",
"payload": "```ts\n{\n entity_id, // The identifier of the user or customer. For example, an email address.\n actor_type, // The type of actor. For example, \"customer\", \"user\", or custom.\n provider, // The auth provider that requested verification.\n auth_identity_id, // The ID of the auth identity being verified.\n provider_identity_id, // The ID of the provider identity being verified.\n code, // The generated verification code.\n expires_at, // The code expiry date.\n metadata, // Optional custom metadata passed from the request.\n}\n```",
"description": "Emitted when a verification code is generated. You can listen to\nthis event and decide how to deliver the code to the user or customer.",
"payload": "```ts\n{\n entity_id, // The identifier of the entity being verified. For example, an email address.\n entity_type, // The kind of entity being verified. For example, \"email\".\n code_provider, // The verification provider that generated the code. For example, \"token\".\n auth_identity_id, // The ID of the auth identity being verified.\n code, // The generated verification code.\n expires_at, // (Date) The code expiry date.\n metadata, // (object) Optional custom metadata passed from the request.\n}\n```",
"description": "Emitted when a verification code is generated. You can listen to\nthis event and decide how to deliver the code to the user or customer.\nThe payload changed in v2.17.0:\n`actor_type` and `provider_identity_id` were removed,\n`provider` was renamed to `code_provider`, and `entity_type` was added.\nSubscribers written before v2.17.0 must be updated to use the payload below.",
"workflows": [
"requestVerificationWorkflow"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,22 @@
* payload: |-
* ```ts
* {
* entity_id, // The identifier of the user or customer. For example, an email address.
* actor_type, // The type of actor. For example, "customer", "user", or custom.
* provider, // The auth provider that requested verification.
* entity_id, // The identifier of the entity being verified. For example, an email address.
* entity_type, // The kind of entity being verified. For example, "email".
* code_provider, // The verification provider that generated the code. For example, "token".
* auth_identity_id, // The ID of the auth identity being verified.
* provider_identity_id, // The ID of the provider identity being verified.
* code, // The generated verification code.
* expires_at, // The code expiry date.
* metadata, // Optional custom metadata passed from the request.
* expires_at, // (Date) The code expiry date.
* metadata, // (object) Optional custom metadata passed from the request.
* }
* ```
* description: |-
* Emitted when a verification code is generated. You can listen to
* this event and decide how to deliver the code to the user or customer.
* The payload changed in v2.17.0:
* `actor_type` and `provider_identity_id` were removed,
* `provider` was renamed to `code_provider`, and `entity_type` was added.
* Subscribers written before v2.17.0 must be updated to use the payload below.
* deprecated: false
* since: 2.15.5
* x-since: 2.16.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,22 @@
* payload: |-
* ```ts
* {
* entity_id, // The identifier of the user or customer. For example, an email address.
* actor_type, // The type of actor. For example, "customer", "user", or custom.
* provider, // The auth provider that requested verification.
* entity_id, // The identifier of the entity being verified. For example, an email address.
* entity_type, // The kind of entity being verified. For example, "email".
* code_provider, // The verification provider that generated the code. For example, "token".
* auth_identity_id, // The ID of the auth identity being verified.
* provider_identity_id, // The ID of the provider identity being verified.
* code, // The generated verification code.
* expires_at, // The code expiry date.
* metadata, // Optional custom metadata passed from the request.
* expires_at, // (Date) The code expiry date.
* metadata, // (object) Optional custom metadata passed from the request.
* }
* ```
* description: |-
* Emitted when a verification code is generated. You can listen to
* this event and decide how to deliver the code to the user or customer.
* The payload changed in v2.17.0:
* `actor_type` and `provider_identity_id` were removed,
* `provider` was renamed to `code_provider`, and `entity_type` was added.
* Subscribers written before v2.17.0 must be updated to use the payload below.
* deprecated: false
* since: 2.15.5
* x-since: 2.16.0
Expand Down
Loading