deliveryapi 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -227,8 +227,8 @@ interface CreateEndpointParams {
227
227
  * 등록 시 서버에서 테스트 POST 요청을 전송하여 URL을 검증합니다.
228
228
  */
229
229
  url: string;
230
- /** 엔드포인트 이름 (선택, 관리용) */
231
- name?: string;
230
+ /** 엔드포인트 이름 (관리용) */
231
+ name: string;
232
232
  /**
233
233
  * 서명 시크릿 직접 지정 (선택)
234
234
  *
@@ -610,28 +610,6 @@ interface AuthCredentials {
610
610
  secretKey: string;
611
611
  }
612
612
 
613
- /**
614
- * 택배 조회 리소스
615
- *
616
- * 송장번호로 배송 정보를 즉시 조회합니다.
617
- * 단건/다건을 모두 지원하며, 여러 택배사를 한 번의 요청으로 조회할 수 있습니다.
618
- *
619
- * @example
620
- * const client = new DeliveryAPIClient({ apiKey: '...', secretKey: '...' })
621
- *
622
- * // 단건 조회
623
- * const result = await client.tracking.trace({
624
- * items: [{ courierCode: 'cj', trackingNumber: '1234567890' }],
625
- * })
626
- *
627
- * // 다건 조회 (여러 택배사 혼합 가능)
628
- * const result = await client.tracking.trace({
629
- * items: [
630
- * { courierCode: 'cj', trackingNumber: '1111111111', clientId: 'order_001' },
631
- * { courierCode: 'lotte', trackingNumber: '2222222222', clientId: 'order_002' },
632
- * ],
633
- * })
634
- */
635
613
  declare class TrackingResource {
636
614
  private readonly auth;
637
615
  constructor(auth: AuthCredentials);
@@ -640,8 +618,6 @@ declare class TrackingResource {
640
618
  *
641
619
  * 택배사 코드(`trackingApiCode`)는 `trace()`의 `courierCode` 파라미터에 사용합니다.
642
620
  *
643
- * @returns 지원 택배사 목록 및 총 수
644
- *
645
621
  * @example
646
622
  * const { couriers } = await client.tracking.getCouriers()
647
623
  * // couriers: [{ trackingApiCode: 'cj', displayName: 'CJ대한통운' }, ...]
@@ -650,24 +626,23 @@ declare class TrackingResource {
650
626
  /**
651
627
  * 송장번호로 배송 정보를 조회합니다.
652
628
  *
653
- * - 요청당 여러 건을 배열로 전달할 수 있습니다.
629
+ * - 여러 건을 배열로 전달할 수 있습니다.
654
630
  * - 결과는 요청 순서와 동일한 인덱스로 반환됩니다.
655
631
  * - 일부 아이템이 실패해도 전체 요청이 실패하지 않습니다. `results[].success`로 건별 확인하세요.
656
632
  *
657
633
  * **과금 안내**: `NOT_FOUND` 에러는 과금됩니다. `results[].error.billable`로 확인하세요.
658
634
  *
659
- * @param params 조회 파라미터
660
- * @returns 아이템별 조회 결과 집계 요약
635
+ * @param items 조회할 택배 목록
636
+ * @param includeProgresses 배송 진행 내역 포함 여부 (기본값: true)
661
637
  *
662
638
  * @throws {ApiError} API 인증 실패, 요청 한도 초과 등 전체 요청 실패 시
663
639
  *
664
640
  * @example
665
- * const { results, summary } = await client.tracking.trace({
641
+ * const { results } = await client.tracking.trace({
666
642
  * items: [
667
- * { courierCode: 'cj', trackingNumber: '1234567890', clientId: 'order_001' },
643
+ * { courierCode: 'cj', trackingNumber: '1234567890', clientId: 'order_001' },
668
644
  * { courierCode: 'lotte', trackingNumber: '9876543210', clientId: 'order_002' },
669
645
  * ],
670
- * includeProgresses: true,
671
646
  * })
672
647
  *
673
648
  * for (const result of results) {
@@ -677,18 +652,17 @@ declare class TrackingResource {
677
652
  * console.warn(result.error?.code) // 'NOT_FOUND'
678
653
  * }
679
654
  * }
680
- *
681
- * console.log(`성공: ${summary.successful} / 전체: ${summary.total}`)
682
655
  */
683
- trace(params: TraceParams): Promise<TraceResponse>;
656
+ trace(params: {
657
+ items: {
658
+ courierCode: string;
659
+ trackingNumber: string;
660
+ clientId?: string;
661
+ }[];
662
+ includeProgresses?: boolean;
663
+ }): Promise<TraceResponse>;
684
664
  }
685
665
 
686
- /**
687
- * 웹훅 엔드포인트 관리
688
- *
689
- * 웹훅을 수신할 URL을 등록/관리합니다.
690
- * 엔드포인트는 한 번 설정하면 여러 구독에서 재사용할 수 있습니다.
691
- */
692
666
  declare class EndpointsResource {
693
667
  private readonly auth;
694
668
  constructor(auth: AuthCredentials);
@@ -699,17 +673,21 @@ declare class EndpointsResource {
699
673
  * 응답의 `webhookSecret`은 **이 응답에서만 평문으로 반환**됩니다.
700
674
  * 분실 시 `rotateSecret()`으로 재발급해야 합니다.
701
675
  *
676
+ * @param url 웹훅을 수신할 URL (`https://` 필수)
677
+ * @param name 엔드포인트 이름 (관리용)
678
+ * @param webhookSecret 서명 시크릿 직접 지정 (미제공 시 서버 자동 생성, 최소 5자)
679
+ *
702
680
  * @throws {ApiError} `WEBHOOK_ENDPOINT_LIMIT` — 엔드포인트 등록 한도 초과
703
681
  *
704
682
  * @example
705
- * const endpoint = await client.webhooks.endpoints.create({
706
- * url: 'https://my-server.com/webhook',
707
- * name: '운영 서버',
708
- * })
683
+ * const endpoint = await client.webhooks.endpoints.create(
684
+ * 'https://my-server.com/webhook',
685
+ * '운영 서버',
686
+ * )
709
687
  * console.log(endpoint.endpointId) // 'ep_xxxx'
710
688
  * console.log(endpoint.webhookSecret) // 반드시 저장하세요!
711
689
  */
712
- create(params: CreateEndpointParams): Promise<CreateEndpointResponse>;
690
+ create(url: string, name: string, webhookSecret?: string): Promise<CreateEndpointResponse>;
713
691
  /**
714
692
  * 등록된 웹훅 엔드포인트 목록을 조회합니다.
715
693
  *
@@ -723,12 +701,15 @@ declare class EndpointsResource {
723
701
  *
724
702
  * URL은 변경할 수 없습니다. URL을 변경해야 한다면 삭제 후 재등록하세요.
725
703
  *
704
+ * @param endpointId 수정할 엔드포인트 ID
705
+ * @param name 새 이름
706
+ *
726
707
  * @throws {ApiError} `NOT_FOUND` — 존재하지 않는 엔드포인트
727
708
  *
728
709
  * @example
729
- * await client.webhooks.endpoints.update('ep_xxxx', { name: '스테이징 서버' })
710
+ * await client.webhooks.endpoints.update('ep_xxxx', '스테이징 서버')
730
711
  */
731
- update(endpointId: string, params: UpdateEndpointParams): Promise<void>;
712
+ update(endpointId: string, name: string): Promise<void>;
732
713
  /**
733
714
  * 웹훅 엔드포인트를 삭제합니다.
734
715
  *
@@ -746,20 +727,18 @@ declare class EndpointsResource {
746
727
  * 기존 시크릿은 즉시 무효화됩니다.
747
728
  * 새 시크릿은 **이 응답에서만 평문으로 반환**됩니다.
748
729
  *
730
+ * @param endpointId 대상 엔드포인트 ID
731
+ * @param webhookSecret 새 시크릿 직접 지정 (미제공 시 서버 자동 생성)
732
+ *
749
733
  * @throws {ApiError} `NOT_FOUND` — 존재하지 않는 엔드포인트
750
734
  *
751
735
  * @example
752
736
  * const { webhookSecret } = await client.webhooks.endpoints.rotateSecret('ep_xxxx')
753
737
  * console.log(webhookSecret) // 새 시크릿 — 반드시 저장하세요!
754
738
  */
755
- rotateSecret(endpointId: string, params?: RotateSecretParams): Promise<RotateSecretResponse>;
739
+ rotateSecret(endpointId: string, webhookSecret?: string): Promise<RotateSecretResponse>;
756
740
  }
757
741
 
758
- /**
759
- * 웹훅 구독 관리
760
- *
761
- * 택배를 추적하고 배송 상태 변경 시 웹훅 알림을 받습니다.
762
- */
763
742
  declare class SubscriptionsResource {
764
743
  private readonly auth;
765
744
  constructor(auth: AuthCredentials);
@@ -772,25 +751,35 @@ declare class SubscriptionsResource {
772
751
  * **일회성** (`recurring: false`): 등록 즉시 1회 크롤 후 종료합니다.
773
752
  * `endpointId` 없이 사용하면 결과를 `get(requestId)`으로 직접 조회할 수 있습니다.
774
753
  *
754
+ * @param items 추적할 택배 목록
755
+ * @param recurring true: 반복 구독, false: 1회성
756
+ * @param endpointId 웹훅 수신 엔드포인트 ID (선택)
757
+ *
775
758
  * @example
776
759
  * // 구독형 — 상태 변경 시 웹훅 수신
777
- * const sub = await client.webhooks.subscriptions.register({
778
- * endpointId: 'ep_xxxx',
779
- * items: [
780
- * { courierCode: 'cj', trackingNumber: '1234567890', clientId: 'order_001' },
781
- * ],
782
- * recurring: true,
783
- * })
760
+ * const sub = await client.webhooks.subscriptions.register(
761
+ * [{ courierCode: 'cj', trackingNumber: '1234567890', clientId: 'order_001' }],
762
+ * true,
763
+ * 'ep_xxxx',
764
+ * )
784
765
  *
785
766
  * @example
786
- * // 일회성 즉시 조회 — 웹훅 없이 결과를 직접 폴링
787
- * const req = await client.webhooks.subscriptions.register({
788
- * items: [{ courierCode: 'lotte', trackingNumber: '9876543210' }],
789
- * recurring: false,
790
- * })
767
+ * // 일회성 — 웹훅 없이 결과를 직접 조회
768
+ * const req = await client.webhooks.subscriptions.register(
769
+ * [{ courierCode: 'lotte', trackingNumber: '9876543210' }],
770
+ * false,
771
+ * )
791
772
  * const detail = await client.webhooks.subscriptions.get(req.requestId)
792
773
  */
793
- register(params: RegisterParams): Promise<RegisterResponse>;
774
+ register(params: {
775
+ items: {
776
+ courierCode: string;
777
+ trackingNumber: string;
778
+ clientId?: string;
779
+ }[];
780
+ recurring: boolean;
781
+ endpointId?: string;
782
+ }): Promise<RegisterResponse>;
794
783
  /**
795
784
  * 구독 목록을 조회합니다.
796
785
  *
@@ -811,8 +800,6 @@ declare class SubscriptionsResource {
811
800
  /**
812
801
  * 구독 상세 정보를 조회합니다.
813
802
  *
814
- * 각 택배별 현재 상태 및 최신 배송 데이터를 포함합니다.
815
- *
816
803
  * @throws {ApiError} `NOT_FOUND` — 존재하지 않는 구독
817
804
  *
818
805
  * @example
@@ -825,8 +812,6 @@ declare class SubscriptionsResource {
825
812
  /**
826
813
  * 구독을 취소합니다.
827
814
  *
828
- * 취소된 구독은 더 이상 폴링되지 않으며 웹훅도 발송되지 않습니다.
829
- *
830
815
  * @throws {ApiError} `NOT_FOUND` — 존재하지 않는 구독
831
816
  *
832
817
  * @example
@@ -838,18 +823,23 @@ declare class SubscriptionsResource {
838
823
  *
839
824
  * 해당 계정에 등록된 구독 중 일치하는 아이템의 최신 상태를 반환합니다.
840
825
  *
826
+ * @param items 조회할 택배 목록
827
+ *
841
828
  * @example
842
- * const { results } = await client.webhooks.subscriptions.batchResults({
843
- * items: [
844
- * { courierCode: 'cj', trackingNumber: '1111111111' },
845
- * { courierCode: 'lotte', trackingNumber: '2222222222' },
846
- * ],
847
- * })
829
+ * const { results } = await client.webhooks.subscriptions.batchResults([
830
+ * { courierCode: 'cj', trackingNumber: '1111111111' },
831
+ * { courierCode: 'lotte', trackingNumber: '2222222222' },
832
+ * ])
848
833
  * for (const r of results) {
849
834
  * console.log(r.currentStatus, r.isDelivered)
850
835
  * }
851
836
  */
852
- batchResults(params: BatchResultsParams): Promise<BatchResultsResponse>;
837
+ batchResults(params: {
838
+ items: {
839
+ courierCode: string;
840
+ trackingNumber: string;
841
+ }[];
842
+ }): Promise<BatchResultsResponse>;
853
843
  }
854
844
 
855
845
  /**
package/dist/index.d.ts CHANGED
@@ -227,8 +227,8 @@ interface CreateEndpointParams {
227
227
  * 등록 시 서버에서 테스트 POST 요청을 전송하여 URL을 검증합니다.
228
228
  */
229
229
  url: string;
230
- /** 엔드포인트 이름 (선택, 관리용) */
231
- name?: string;
230
+ /** 엔드포인트 이름 (관리용) */
231
+ name: string;
232
232
  /**
233
233
  * 서명 시크릿 직접 지정 (선택)
234
234
  *
@@ -610,28 +610,6 @@ interface AuthCredentials {
610
610
  secretKey: string;
611
611
  }
612
612
 
613
- /**
614
- * 택배 조회 리소스
615
- *
616
- * 송장번호로 배송 정보를 즉시 조회합니다.
617
- * 단건/다건을 모두 지원하며, 여러 택배사를 한 번의 요청으로 조회할 수 있습니다.
618
- *
619
- * @example
620
- * const client = new DeliveryAPIClient({ apiKey: '...', secretKey: '...' })
621
- *
622
- * // 단건 조회
623
- * const result = await client.tracking.trace({
624
- * items: [{ courierCode: 'cj', trackingNumber: '1234567890' }],
625
- * })
626
- *
627
- * // 다건 조회 (여러 택배사 혼합 가능)
628
- * const result = await client.tracking.trace({
629
- * items: [
630
- * { courierCode: 'cj', trackingNumber: '1111111111', clientId: 'order_001' },
631
- * { courierCode: 'lotte', trackingNumber: '2222222222', clientId: 'order_002' },
632
- * ],
633
- * })
634
- */
635
613
  declare class TrackingResource {
636
614
  private readonly auth;
637
615
  constructor(auth: AuthCredentials);
@@ -640,8 +618,6 @@ declare class TrackingResource {
640
618
  *
641
619
  * 택배사 코드(`trackingApiCode`)는 `trace()`의 `courierCode` 파라미터에 사용합니다.
642
620
  *
643
- * @returns 지원 택배사 목록 및 총 수
644
- *
645
621
  * @example
646
622
  * const { couriers } = await client.tracking.getCouriers()
647
623
  * // couriers: [{ trackingApiCode: 'cj', displayName: 'CJ대한통운' }, ...]
@@ -650,24 +626,23 @@ declare class TrackingResource {
650
626
  /**
651
627
  * 송장번호로 배송 정보를 조회합니다.
652
628
  *
653
- * - 요청당 여러 건을 배열로 전달할 수 있습니다.
629
+ * - 여러 건을 배열로 전달할 수 있습니다.
654
630
  * - 결과는 요청 순서와 동일한 인덱스로 반환됩니다.
655
631
  * - 일부 아이템이 실패해도 전체 요청이 실패하지 않습니다. `results[].success`로 건별 확인하세요.
656
632
  *
657
633
  * **과금 안내**: `NOT_FOUND` 에러는 과금됩니다. `results[].error.billable`로 확인하세요.
658
634
  *
659
- * @param params 조회 파라미터
660
- * @returns 아이템별 조회 결과 집계 요약
635
+ * @param items 조회할 택배 목록
636
+ * @param includeProgresses 배송 진행 내역 포함 여부 (기본값: true)
661
637
  *
662
638
  * @throws {ApiError} API 인증 실패, 요청 한도 초과 등 전체 요청 실패 시
663
639
  *
664
640
  * @example
665
- * const { results, summary } = await client.tracking.trace({
641
+ * const { results } = await client.tracking.trace({
666
642
  * items: [
667
- * { courierCode: 'cj', trackingNumber: '1234567890', clientId: 'order_001' },
643
+ * { courierCode: 'cj', trackingNumber: '1234567890', clientId: 'order_001' },
668
644
  * { courierCode: 'lotte', trackingNumber: '9876543210', clientId: 'order_002' },
669
645
  * ],
670
- * includeProgresses: true,
671
646
  * })
672
647
  *
673
648
  * for (const result of results) {
@@ -677,18 +652,17 @@ declare class TrackingResource {
677
652
  * console.warn(result.error?.code) // 'NOT_FOUND'
678
653
  * }
679
654
  * }
680
- *
681
- * console.log(`성공: ${summary.successful} / 전체: ${summary.total}`)
682
655
  */
683
- trace(params: TraceParams): Promise<TraceResponse>;
656
+ trace(params: {
657
+ items: {
658
+ courierCode: string;
659
+ trackingNumber: string;
660
+ clientId?: string;
661
+ }[];
662
+ includeProgresses?: boolean;
663
+ }): Promise<TraceResponse>;
684
664
  }
685
665
 
686
- /**
687
- * 웹훅 엔드포인트 관리
688
- *
689
- * 웹훅을 수신할 URL을 등록/관리합니다.
690
- * 엔드포인트는 한 번 설정하면 여러 구독에서 재사용할 수 있습니다.
691
- */
692
666
  declare class EndpointsResource {
693
667
  private readonly auth;
694
668
  constructor(auth: AuthCredentials);
@@ -699,17 +673,21 @@ declare class EndpointsResource {
699
673
  * 응답의 `webhookSecret`은 **이 응답에서만 평문으로 반환**됩니다.
700
674
  * 분실 시 `rotateSecret()`으로 재발급해야 합니다.
701
675
  *
676
+ * @param url 웹훅을 수신할 URL (`https://` 필수)
677
+ * @param name 엔드포인트 이름 (관리용)
678
+ * @param webhookSecret 서명 시크릿 직접 지정 (미제공 시 서버 자동 생성, 최소 5자)
679
+ *
702
680
  * @throws {ApiError} `WEBHOOK_ENDPOINT_LIMIT` — 엔드포인트 등록 한도 초과
703
681
  *
704
682
  * @example
705
- * const endpoint = await client.webhooks.endpoints.create({
706
- * url: 'https://my-server.com/webhook',
707
- * name: '운영 서버',
708
- * })
683
+ * const endpoint = await client.webhooks.endpoints.create(
684
+ * 'https://my-server.com/webhook',
685
+ * '운영 서버',
686
+ * )
709
687
  * console.log(endpoint.endpointId) // 'ep_xxxx'
710
688
  * console.log(endpoint.webhookSecret) // 반드시 저장하세요!
711
689
  */
712
- create(params: CreateEndpointParams): Promise<CreateEndpointResponse>;
690
+ create(url: string, name: string, webhookSecret?: string): Promise<CreateEndpointResponse>;
713
691
  /**
714
692
  * 등록된 웹훅 엔드포인트 목록을 조회합니다.
715
693
  *
@@ -723,12 +701,15 @@ declare class EndpointsResource {
723
701
  *
724
702
  * URL은 변경할 수 없습니다. URL을 변경해야 한다면 삭제 후 재등록하세요.
725
703
  *
704
+ * @param endpointId 수정할 엔드포인트 ID
705
+ * @param name 새 이름
706
+ *
726
707
  * @throws {ApiError} `NOT_FOUND` — 존재하지 않는 엔드포인트
727
708
  *
728
709
  * @example
729
- * await client.webhooks.endpoints.update('ep_xxxx', { name: '스테이징 서버' })
710
+ * await client.webhooks.endpoints.update('ep_xxxx', '스테이징 서버')
730
711
  */
731
- update(endpointId: string, params: UpdateEndpointParams): Promise<void>;
712
+ update(endpointId: string, name: string): Promise<void>;
732
713
  /**
733
714
  * 웹훅 엔드포인트를 삭제합니다.
734
715
  *
@@ -746,20 +727,18 @@ declare class EndpointsResource {
746
727
  * 기존 시크릿은 즉시 무효화됩니다.
747
728
  * 새 시크릿은 **이 응답에서만 평문으로 반환**됩니다.
748
729
  *
730
+ * @param endpointId 대상 엔드포인트 ID
731
+ * @param webhookSecret 새 시크릿 직접 지정 (미제공 시 서버 자동 생성)
732
+ *
749
733
  * @throws {ApiError} `NOT_FOUND` — 존재하지 않는 엔드포인트
750
734
  *
751
735
  * @example
752
736
  * const { webhookSecret } = await client.webhooks.endpoints.rotateSecret('ep_xxxx')
753
737
  * console.log(webhookSecret) // 새 시크릿 — 반드시 저장하세요!
754
738
  */
755
- rotateSecret(endpointId: string, params?: RotateSecretParams): Promise<RotateSecretResponse>;
739
+ rotateSecret(endpointId: string, webhookSecret?: string): Promise<RotateSecretResponse>;
756
740
  }
757
741
 
758
- /**
759
- * 웹훅 구독 관리
760
- *
761
- * 택배를 추적하고 배송 상태 변경 시 웹훅 알림을 받습니다.
762
- */
763
742
  declare class SubscriptionsResource {
764
743
  private readonly auth;
765
744
  constructor(auth: AuthCredentials);
@@ -772,25 +751,35 @@ declare class SubscriptionsResource {
772
751
  * **일회성** (`recurring: false`): 등록 즉시 1회 크롤 후 종료합니다.
773
752
  * `endpointId` 없이 사용하면 결과를 `get(requestId)`으로 직접 조회할 수 있습니다.
774
753
  *
754
+ * @param items 추적할 택배 목록
755
+ * @param recurring true: 반복 구독, false: 1회성
756
+ * @param endpointId 웹훅 수신 엔드포인트 ID (선택)
757
+ *
775
758
  * @example
776
759
  * // 구독형 — 상태 변경 시 웹훅 수신
777
- * const sub = await client.webhooks.subscriptions.register({
778
- * endpointId: 'ep_xxxx',
779
- * items: [
780
- * { courierCode: 'cj', trackingNumber: '1234567890', clientId: 'order_001' },
781
- * ],
782
- * recurring: true,
783
- * })
760
+ * const sub = await client.webhooks.subscriptions.register(
761
+ * [{ courierCode: 'cj', trackingNumber: '1234567890', clientId: 'order_001' }],
762
+ * true,
763
+ * 'ep_xxxx',
764
+ * )
784
765
  *
785
766
  * @example
786
- * // 일회성 즉시 조회 — 웹훅 없이 결과를 직접 폴링
787
- * const req = await client.webhooks.subscriptions.register({
788
- * items: [{ courierCode: 'lotte', trackingNumber: '9876543210' }],
789
- * recurring: false,
790
- * })
767
+ * // 일회성 — 웹훅 없이 결과를 직접 조회
768
+ * const req = await client.webhooks.subscriptions.register(
769
+ * [{ courierCode: 'lotte', trackingNumber: '9876543210' }],
770
+ * false,
771
+ * )
791
772
  * const detail = await client.webhooks.subscriptions.get(req.requestId)
792
773
  */
793
- register(params: RegisterParams): Promise<RegisterResponse>;
774
+ register(params: {
775
+ items: {
776
+ courierCode: string;
777
+ trackingNumber: string;
778
+ clientId?: string;
779
+ }[];
780
+ recurring: boolean;
781
+ endpointId?: string;
782
+ }): Promise<RegisterResponse>;
794
783
  /**
795
784
  * 구독 목록을 조회합니다.
796
785
  *
@@ -811,8 +800,6 @@ declare class SubscriptionsResource {
811
800
  /**
812
801
  * 구독 상세 정보를 조회합니다.
813
802
  *
814
- * 각 택배별 현재 상태 및 최신 배송 데이터를 포함합니다.
815
- *
816
803
  * @throws {ApiError} `NOT_FOUND` — 존재하지 않는 구독
817
804
  *
818
805
  * @example
@@ -825,8 +812,6 @@ declare class SubscriptionsResource {
825
812
  /**
826
813
  * 구독을 취소합니다.
827
814
  *
828
- * 취소된 구독은 더 이상 폴링되지 않으며 웹훅도 발송되지 않습니다.
829
- *
830
815
  * @throws {ApiError} `NOT_FOUND` — 존재하지 않는 구독
831
816
  *
832
817
  * @example
@@ -838,18 +823,23 @@ declare class SubscriptionsResource {
838
823
  *
839
824
  * 해당 계정에 등록된 구독 중 일치하는 아이템의 최신 상태를 반환합니다.
840
825
  *
826
+ * @param items 조회할 택배 목록
827
+ *
841
828
  * @example
842
- * const { results } = await client.webhooks.subscriptions.batchResults({
843
- * items: [
844
- * { courierCode: 'cj', trackingNumber: '1111111111' },
845
- * { courierCode: 'lotte', trackingNumber: '2222222222' },
846
- * ],
847
- * })
829
+ * const { results } = await client.webhooks.subscriptions.batchResults([
830
+ * { courierCode: 'cj', trackingNumber: '1111111111' },
831
+ * { courierCode: 'lotte', trackingNumber: '2222222222' },
832
+ * ])
848
833
  * for (const r of results) {
849
834
  * console.log(r.currentStatus, r.isDelivered)
850
835
  * }
851
836
  */
852
- batchResults(params: BatchResultsParams): Promise<BatchResultsResponse>;
837
+ batchResults(params: {
838
+ items: {
839
+ courierCode: string;
840
+ trackingNumber: string;
841
+ }[];
842
+ }): Promise<BatchResultsResponse>;
853
843
  }
854
844
 
855
845
  /**