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

# ComplianceClient

> X API TypeScript SDK の ComplianceClient クラスのリファレンス。 X API v2 の compliance エンドポイントのメソッド、パラメーター、戻り値の型。

compliance 操作向けのクライアント

このクライアントは X API の compliance エンドポイントと対話するためのメソッドを提供します。認証、リクエストの整形、compliance に関連するすべての操作のレスポンス解析を扱います。

## コンストラクター

### コンストラクター

• **new ComplianceClient**(`client`): [`ComplianceClient`](/xdks/typescript/reference/classes/ComplianceClient)

新しい compliance クライアントインスタンスを作成します

#### パラメーター

| 名前       | 型                                                     | 説明                      |
| :------- | :---------------------------------------------------- | :---------------------- |
| `client` | [`Client`](/xdks/typescript/reference/classes/Client) | メインの X API クライアントインスタンス |

#### 戻り値

[`ComplianceClient`](/xdks/typescript/reference/classes/ComplianceClient)

#### 定義場所

[compliance/client.ts:93](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/compliance/client.ts#L93)

## メソッド

### getJobsById

▸ **getJobsById**(`id`, `options`): `Promise`\<`Response`>

Get Compliance Job by ID
Retrieves details of a specific Compliance Job by its ID.

#### パラメーター

| 名前        | 型                                                                  | 説明                                        |
| :-------- | :----------------------------------------------------------------- | :---------------------------------------- |
| `id`      | `string`                                                           | The ID of the Compliance Job to retrieve. |
| `options` | `GetJobsByIdOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                         |

#### 戻り値

`Promise`\<`Response`>

API レスポンスに解決される Promise。requestOptions.raw が true の場合は生の Response を返します

#### 定義場所

[compliance/client.ts:138](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/compliance/client.ts#L138)

▸ **getJobsById**(`id`, `options?`): `Promise`\<[`Get2ComplianceJobsIdResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2ComplianceJobsIdResponse)>

#### パラメーター

| 名前         | 型                    |
| :--------- | :------------------- |
| `id`       | `string`             |
| `options?` | `GetJobsByIdOptions` |

#### 戻り値

`Promise`\<[`Get2ComplianceJobsIdResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2ComplianceJobsIdResponse)>

#### 定義場所

[compliance/client.ts:151](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/compliance/client.ts#L151)

***

### getJobs

▸ **getJobs**(`type`, `options`): `Promise`\<`Response`>

Get Compliance Jobs
次の一覧を取得します: Compliance Jobs filtered by job type and optional status.

#### パラメーター

| 名前        | 型                                                              | 説明                              |
| :-------- | :------------------------------------------------------------- | :------------------------------ |
| `type`    | `string`                                                       | Type of Compliance Job to list. |
| `options` | `GetJobsOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                               |

#### 戻り値

`Promise`\<`Response`>

API レスポンスに解決される Promise。requestOptions.raw が true の場合は生の Response を返します

#### 定義場所

[compliance/client.ts:273](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/compliance/client.ts#L273)

▸ **getJobs**(`type`, `options?`): `Promise`\<[`Get2ComplianceJobsResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2ComplianceJobsResponse)>

#### パラメーター

| 名前         | 型                |
| :--------- | :--------------- |
| `type`     | `string`         |
| `options?` | `GetJobsOptions` |

#### 戻り値

`Promise`\<[`Get2ComplianceJobsResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2ComplianceJobsResponse)>

#### 定義場所

[compliance/client.ts:286](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/compliance/client.ts#L286)

***

### createJobs

▸ **createJobs**(`body`, `options`): `Promise`\<`Response`>

Create Compliance Job
Creates a new Compliance Job for the specified job type.

#### パラメーター

| 名前                           | 型                                                                                                        | 説明                                              |
| :--------------------------- | :------------------------------------------------------------------------------------------------------- | :---------------------------------------------- |
| `body`                       | [`CreateComplianceJobRequest`](/xdks/typescript/reference/interfaces/Schemas.CreateComplianceJobRequest) | A request to create a new batch compliance job. |
| `options`                    | `Object`                                                                                                 | -                                               |
| `options.requestOptions`     | `Object`                                                                                                 | -                                               |
| `options.requestOptions.raw` | `true`                                                                                                   | -                                               |

#### 戻り値

`Promise`\<`Response`>

API レスポンスに解決される Promise。requestOptions.raw が true の場合は生の Response を返します

#### 定義場所

[compliance/client.ts:430](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/compliance/client.ts#L430)

▸ **createJobs**(`body`): `Promise`\<[`CreateComplianceJobResponse`](/xdks/typescript/reference/interfaces/Schemas.CreateComplianceJobResponse)>

#### パラメーター

| 名前     | 型                                                                                                        |
| :----- | :------------------------------------------------------------------------------------------------------- |
| `body` | [`CreateComplianceJobRequest`](/xdks/typescript/reference/interfaces/Schemas.CreateComplianceJobRequest) |

#### 戻り値

`Promise`\<[`CreateComplianceJobResponse`](/xdks/typescript/reference/interfaces/Schemas.CreateComplianceJobResponse)>

#### 定義場所

[compliance/client.ts:441](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/compliance/client.ts#L441)
