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

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

# イベントオブジェクト

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

```json Event Object theme={null}
{
  "secrets": {},
  "client": {
    "client_id": "string",
    "metadata": {},
    "name": "string"
  },
  "request": {
    "body": {},
    "geoip": {},
    "ip": "string",
    "method": "string"
  },
  "resource_server": {
    "identifier": "string"
  },
  "tenant": {
    "id": "string"
  },
  "transaction": {
    "requested_scopes": [],
    "requested_token_type": "string",
    "subject_token": "string",
    "subject_token_type": "string"
  }
}
```

<div id="eventclient">
  ## `event.client`
</div>

<ResponseField name="event.client" type="object">
  このトランザクションを開始したクライアントに関する情報。

  <Expandable title="event.client のプロパティ" defaultOpen>
    <ResponseField name="client_id" type="string">
      ユーザーがログインするアプリケーションのクライアントID。
    </ResponseField>

    <ResponseField name="metadata" type="dictionary">
      その他のアプリケーションプロパティを保持するオブジェクト。
    </ResponseField>

    <ResponseField name="name" type="string">
      アプリケーション名 (Auth0 Dashboardで定義) 。
    </ResponseField>
  </Expandable>
</ResponseField>

<div id="eventorganization">
  ## `event.organization`
</div>

<ResponseField name="event.organization" type="dictionary" post={["optional"]}>
  現在のトランザクションに関連付けられている組織の詳細。

  <Expandable title="event.organizationのプロパティ" defaultOpen>
    <ResponseField name="id" type="string">
      組織ID。
    </ResponseField>

    <ResponseField name="display_name" type="string">
      組織の表示名。
    </ResponseField>

    <ResponseField name="metadata" type="dictionary">
      組織に関連付けられたメタデータ。
    </ResponseField>

    <ResponseField name="name" type="string">
      組織名。
    </ResponseField>
  </Expandable>
</ResponseField>

<div id="eventrequest">
  ## `event.request`
</div>

<ResponseField name="event.request" type="object">
  トランザクションを開始したリクエストの詳細。

  <Expandable title="リクエストのプロパティ" defaultOpen>
    <ResponseField name="body" type="dictionary">
      POST リクエストの本文。リフレッシュトークンフロー、Client Credential Exchange フロー、および PreUserRegistration Action でのみ利用できます。
    </ResponseField>

    <ResponseField name="geoip" type="dictionary">
      <Expandable title="geoip のプロパティ" defaultOpen>
        <ResponseField name="cityName" type="string" post={["optional"]} />

        <ResponseField name="continentCode" type="string" post={["optional"]} />

        <ResponseField name="countryCode" type="string" post={["optional"]} />

        <ResponseField name="countryCode3" type="string" post={["optional"]} />

        <ResponseField name="countryName" type="string" post={["optional"]} />

        <ResponseField name="latitude" type="number" post={["optional"]} />

        <ResponseField name="longitude" type="number" post={["optional"]} />

        <ResponseField name="subdivisionCode" type="string" post={["optional"]} />

        <ResponseField name="subdivisionName" type="string" post={["optional"]} />

        <ResponseField name="timeZone" type="string" post={["optional"]} />
      </Expandable>
    </ResponseField>

    <ResponseField name="hostname" type="string" post={["optional"]}>
      認証フローで使用されるホスト名。
    </ResponseField>

    <ResponseField name="ip" type="string">
      リクエストの送信元 IP アドレス。
    </ResponseField>

    <ResponseField name="language" type="string" post={["optional"]}>
      ブラウザーが要求した言語。
    </ResponseField>

    <ResponseField name="method" type="string">
      リクエストで使用される HTTP メソッド。
    </ResponseField>

    <ResponseField name="user_agent" type="string" post={["optional"]}>
      トランザクションの開始時に受信した `User-Agent` ヘッダーの値。
    </ResponseField>
  </Expandable>
</ResponseField>

<div id="eventresource_server">
  ## `event.resource_server`
</div>

<ResponseField name="event.resource_server" type="object">
  アクセスが要求されているリソースサーバーの詳細。

  <Expandable title="event.resource_server のプロパティ" defaultOpen>
    <ResponseField name="identifier" type="string">
      リソースサーバーの識別子。例: `https://your-api.example.com`。
    </ResponseField>
  </Expandable>
</ResponseField>

<div id="eventsecrets">
  ## `event.secrets`
</div>

<ResponseField name="event.secrets" type="secrets">
  このActionに安全に関連付けられているSecretの値です。
</ResponseField>

<div id="eventtenant">
  ## `event.tenant`
</div>

<ResponseField name="event.tenant" type="object">
  現在のトランザクションに関連付けられたテナントの詳細。

  <Expandable title="event.tenant のプロパティ" defaultOpen>
    <ResponseField name="id" type="string">
      テナントの名前。
    </ResponseField>
  </Expandable>
</ResponseField>

<div id="eventtransaction">
  ## `event.transaction`
</div>

<ResponseField name="event.transaction" type="object">
  現在のカスタムトークン交換トランザクションに関する詳細です。

  <Expandable title="event.transaction のプロパティ" defaultOpen>
    <ResponseField name="actor_token" type="string" post={["optional"]}>
      トークン交換リクエストで指定されるアクタートークン。
    </ResponseField>

    <ResponseField name="actor_token_type" type="string" post={["optional"]}>
      トークン交換リクエストで指定するアクタートークンのタイプ。
    </ResponseField>

    <ResponseField name="actor_token_user" type="dictionary" post={["optional"]}>
      アクタートークンが表すユーザー。このプロパティは、actor\_token\_type が urn:ietf:params:oauth:token-type:id\_token であり、トークン交換リクエストで指定されたアクタートークンが Auth0 によって生成された有効な ID トークンである場合にのみ存在します。

      <Expandable title="actor_token_user のプロパティ" defaultOpen>
        <ResponseField name="app_metadata" type="dictionary">
          サポートプラン、セキュリティロール、アクセス制御グループなど、ユーザーのアクセス権に影響する情報を保存するカスタムフィールド。
        </ResponseField>

        <ResponseField name="created_at" type="string">
          ユーザープロファイルが最初に作成された日時を示すタイムスタンプ。
        </ResponseField>

        <ResponseField name="email" type="string" post={["optional"]}>
          (一意の) ユーザーのメールアドレス。
        </ResponseField>

        <ResponseField name="email_verified" type="boolean">
          ユーザーがメールアドレスを確認済みかどうかを示します。
        </ResponseField>

        <ResponseField name="family_name" type="string" post={["optional"]}>
          ユーザーの姓。
        </ResponseField>

        <ResponseField name="given_name" type="string" post={["optional"]}>
          ユーザーの名。
        </ResponseField>

        <ResponseField name="last_password_reset" type="string" post={["optional"]}>
          ユーザーのパスワードが最後にリセットまたは変更された日時を示すタイムスタンプ。ユーザー作成時には、このフィールドは存在しません。このプロパティはデータベース接続でのみ使用できます。
        </ResponseField>

        <ResponseField name="name" type="string" post={["optional"]}>
          ユーザーのフルネーム。
        </ResponseField>

        <ResponseField name="nickname" type="string" post={["optional"]}>
          ユーザーのニックネーム。
        </ResponseField>

        <ResponseField name="phone_number" type="string" post={["optional"]}>
          ユーザーの電話番号。
        </ResponseField>

        <ResponseField name="phone_verified" type="boolean" post={["optional"]}>
          ユーザーが電話番号を確認済みかどうかを示します。
        </ResponseField>

        <ResponseField name="picture" type="string" post={["optional"]}>
          [ユーザーのプロフィール画像](https://auth0.com/docs/users/change-user-picture)を指す URL。
        </ResponseField>

        <ResponseField name="updated_at" type="string">
          ユーザーのプロファイルが最後に更新または変更された日時を示すタイムスタンプ。
        </ResponseField>

        <ResponseField name="user_id" type="string">
          (一意の) ユーザーの一意の識別子。
        </ResponseField>

        <ResponseField name="user_metadata" type="dictionary">
          勤務先住所、自宅住所、ユーザー設定など、ユーザーがアクセスできる内容に影響しない情報を保存するカスタムフィールド。
        </ResponseField>

        <ResponseField name="username" type="string" post={["optional"]}>
          (一意の) ユーザー名。
        </ResponseField>

        <ResponseField name="enrolledFactors" type="array of objects" post={["optional"]}>
          ユーザーが登録した認証要素の配列。
        </ResponseField>

        <ResponseField name="multifactor" type="array of string" post={["optional"]}>
          ユーザーが登録している多要素認証 (MFA) プロバイダーのリスト。この配列は、ユーザーが MFA に登録したとき、および管理者がユーザーの MFA 登録をリセットしたときに更新されます。
        </ResponseField>

        <ResponseField name="identities" type="array of objects">
          ユーザーが最初に認証したアイデンティティプロバイダーから取得した情報が含まれます。ユーザーはプロファイルを複数のアイデンティティプロバイダーにリンクすることもでき、そのアイデンティティもこの配列に表示されます。個々のアイデンティティプロバイダーオブジェクトの内容は、プロバイダーによって異なります。
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="要求されたスコープ" type="array of string">
      トークン交換リクエストで要求されたスコープ (存在する場合) 。
    </ResponseField>

    <ResponseField name="requested_token_type" type="string">
      Auth0 が生成するトークンの種類。例: urn:ietf:params:oauth:token-type:access\_token。
    </ResponseField>

    <ResponseField name="subject_token" type="string">
      トークン交換リクエストで指定されるサブジェクトトークン。
    </ResponseField>

    <ResponseField name="subject_token_type" type="string">
      トークン交換リクエストで指定するsubject\_token\_type。
    </ResponseField>
  </Expandable>
</ResponseField>
