> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# イベントオブジェクト

> トリガーの実行に関するコンテキスト情報を提供する、custom-email-provider Action トリガーのイベントオブジェクトについて説明します。

custom-email-provider Actions トリガーの `event` オブジェクトは、トリガーの実行に関するコンテキスト情報を提供します。

```json Event Object theme={null}
{
  "client": {
    "client_id": "string",
    "metadata": {},
    "name": "string"
  },
  "notification": {
    "from": "string",
    "html": "string",
    "locale": "string",
    "message_type": "string",
    "subject": "string",
    "text": "string",
    "to": "string"
  },
  "request": {},
  "tenant": {
    "id": "string"
  },
  "user": {},
  "secrets": {}
}
```

## `event.client`

**event.client** `object`

このログイントランザクションを開始したクライアントに関する情報。

**event.client のプロパティ**

**client\_id** `string`

ユーザーがログインするアプリケーションのクライアントID。

**metadata** `dictionary`

その他のアプリケーションプロパティを格納するオブジェクト。

**name** `string`

アプリケーションの名前 (Auth0 Dashboard で定義) 。

## `event.connection`

**event.connection** `object`

ユーザーの認証に使用された接続の詳細。

**event.connection のプロパティ**

**id** `string`

接続の一意の識別子。

**metadata** `dictionary`

接続に関連付けられたメタデータ。

**name** `string`

ユーザーの認証に使用された接続の名前 (`twitter` や `some-g-suite-domain` など) 。

**strategy** `string`

接続の種類。ソーシャル接続の場合、`event.connection.strategy === event.connection.name` となります。エンタープライズ接続の場合、strategy には `waad` (Windows Azure AD) 、`ad` (Active Directory/LDAP) 、`auth0` (データベース接続) などがあります。

## `event.custom_domain`

**event.custom\_domain** `object`

現在のトランザクションに関連付けられたカスタムドメインの詳細です。

**event.custom\_domain のプロパティ**

**domain** `string`

カスタムドメイン名。

**domain\_metadata** `dictionary`

キーと値のペアで構成されるカスタムドメインのメタデータ。

## `event.notification`

**event.notification** `object`

**event.notification のプロパティ**

**from** `string`

メールの送信者のメールアドレス。

**html** `string`

レンダリングされた HTML テンプレート。

**locale** `string`

メッセージのレンダリングに使用したロケール。BCP-47 仕様で定義されている `en_US` など。

**message\_type** `string`

`verify_email` や `welcome_email` など、送信されるメッセージの種類。

許可される値: `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `verification_code`, `mfa_oob_code`, `enrollment_email`, `blocked_account`, `stolen_credentials`, `try_provider_configuration_email`, `organization_invitation`

**subject** `string`

メールに付加する件名。

**text** `string`

レンダリングされたテキストテンプレート。

**to** `string`

受信者のメールアドレス。

## `event.organization`

**event.organization** `dictionary`

現在のトランザクションに関連付けられた組織の詳細。

**event.organizationのプロパティ**

**id** `string`

組織ID。

**display\_name** `string`

組織の表示名。

**metadata** `dictionary`

組織に関連付けられたメタデータ。

**name** `string`

組織の名前。

## `event.request`

**event.request** `object`

**event.request のプロパティ**

**geoip** `dictionary`

**geoip プロパティ**

**cityName** `string`

**continentCode** `string`

**countryCode** `string`

**countryCode3** `string`

**countryName** `string`

**latitude** `number`

**longitude** `number`

**subdivisionCode** `string`

**subdivisionName** `string`

**timeZone** `string`

**hostname** `string`

認証フローで使用されるホスト名。

**ip** `string`

リクエストの送信元 IP アドレス。

**query** `dictionary`

認可リクエストに送信されるクエリ文字列パラメーター。

**user\_agent** `string`

トランザクション開始時に受信した `User-Agent` ヘッダーの値。

## `event.secrets`

**event.secrets** `secrets`

このActionに安全に関連付けられたシークレット値。

## `event.tenant`

**event.tenant** `object`

**event.tenantのプロパティ**

**id** `string`

tenantの名前。

**friendly\_name** `string`

tenantの表示名。通常はIDを人が理解しやすい形式にしたものです。

**home\_url** `string`

定義されている場合、設定に記載されたtenantのホームURL。

**logo\_url** `string`

定義されている場合、設定に記載されたtenantのロゴURL。

**support\_email** `string`

定義されている場合、設定に記載されたtenantのサポート窓口のメールアドレス。

**support\_url** `string`

定義されている場合、設定に記載されたtenantのサポート窓口のURL。

## `event.transaction`

**event.transaction** `object`

トレーシング用の現在のトランザクションの詳細。

**event.transaction プロパティ**

**correlation\_id** `string`

分散トレーシングのために、複数のサービスにまたがるこのリクエストを関連付ける一意の識別子。

## `event.user`

**event.user** `dictionary`

現在のトランザクションを開始したユーザーを表すオブジェクトです。

**event.userのプロパティ**

**app\_metadata** `dictionary`

サポートプラン、セキュリティロール、アクセス制御グループなど、ユーザーがアクセスできる内容に影響する情報を保存するCustom fieldsです。

**email** `string`

(一意の) ユーザーのメールアドレス。

**email\_verified** `boolean`

ユーザーがメールアドレスを確認済みかどうかを示します。

**family\_name** `string`

ユーザーの姓。

**given\_name** `string`

ユーザーの名。

**name** `string`

ユーザーの氏名。

**nickname** `string`

ユーザーのニックネーム。

**picture** `string`

[ユーザーのプロフィール画像](https://auth0.com/docs/users/change-user-picture)を指すURL。

**user\_id** `string`

(一意の) ユーザーの一意の識別子。

**user\_metadata** `dictionary`

勤務先住所、自宅住所、ユーザー設定など、アクセスできる内容に影響しない情報を保存するCustom fieldsです。

**username** `string`

(一意の) ユーザー名。
