> ## 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 관련 작업에 대한 인증, 요청 형식화 및 응답
파싱을 처리합니다.

## 생성자

### constructor

• **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
ID로 특정 Compliance Job의 세부 정보를 검색합니다.

#### 매개변수

| 이름        | 타입                                                                 | 설명                         |
| :-------- | :----------------------------------------------------------------- | :------------------------- |
| `id`      | `string`                                                           | 검색할 Compliance Job의 ID입니다. |
| `options` | `GetJobsByIdOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                          |

#### 반환값

`Promise`\<`Response`>

API 응답 또는 requestOptions.raw가 true인 경우 원본 Response로 해결되는 Promise

#### 정의 위치

[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
job 유형과 선택적 상태로 필터링된 Compliance Jobs 목록을 검색합니다.

#### 매개변수

| 이름        | 타입                                                             | 설명                         |
| :-------- | :------------------------------------------------------------- | :------------------------- |
| `type`    | `string`                                                       | 나열할 Compliance Job의 유형입니다. |
| `options` | `GetJobsOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                          |

#### 반환값

`Promise`\<`Response`>

API 응답 또는 requestOptions.raw가 true인 경우 원본 Response로 해결되는 Promise

#### 정의 위치

[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
지정된 job 유형에 대한 새 Compliance Job을 생성합니다.

#### 매개변수

| 이름                           | 타입                                                                                                       | 설명                                 |
| :--------------------------- | :------------------------------------------------------------------------------------------------------- | :--------------------------------- |
| `body`                       | [`CreateComplianceJobRequest`](/xdks/typescript/reference/interfaces/Schemas.CreateComplianceJobRequest) | 새로운 배치 compliance job을 생성하는 요청입니다. |
| `options`                    | `Object`                                                                                                 | -                                  |
| `options.requestOptions`     | `Object`                                                                                                 | -                                  |
| `options.requestOptions.raw` | `true`                                                                                                   | -                                  |

#### 반환값

`Promise`\<`Response`>

API 응답 또는 requestOptions.raw가 true인 경우 원본 Response로 해결되는 Promise

#### 정의 위치

[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)
