@sayren/store-sdk 0.39.0 → 0.40.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.mjs CHANGED
@@ -1857,7 +1857,6 @@ const sellerAddressRequestSchema = z.object({
1857
1857
  * - 409 `STOREFRONT_NO_ROLLBACK_TARGET` — 되돌릴 이전 발행 버전이 없다
1858
1858
  * - 409 `STOREFRONT_NOT_READY` — 공개 전환: 판매 중인 상품(샘플 제외)이 없다(이슈 #70). 상품을 등록한 뒤 공개한다
1859
1859
  * - 409 `TEMPLATE_CHANGE_NOT_SUPPORTED` — 템플릿 변경(`POST /v1/storefront/site/template`, 폐기)은 항상 이 오류다
1860
- * - 400 `STOREFRONT_SLUG_CONFIRM_MISMATCH` — 호스팅 끄기 확인 입력이 현재 슬러그와 다르다
1861
1860
  * - 503 `STOREFRONT_PREVIEW_NOT_CONFIGURED` — 미리보기 서명 키가 설정되지 않았다
1862
1861
  *
1863
1862
  * 편집(M2b, `/v1/storefront/site/editing`·`files/**`·`checks/**`·`verify`·`builds/**`, 버전 만들기):
@@ -2186,8 +2185,8 @@ const setStorefrontVisibilityRequestSchema = z.object({
2186
2185
  visibility: storefrontVisibilitySchema,
2187
2186
  expectedVisibility: storefrontVisibilitySchema.optional().describe("화면에서 본 공개 상태. 주면 지금 값이 같을 때만 바꾼다")
2188
2187
  });
2189
- /** 호스팅 끄기 — 사이트를 닫고(`CLOSED`) 슬러그를 보류한다. 확인 입력은 현재 슬러그다 */
2190
- const disableStorefrontHostingRequestSchema = z.object({ confirmSlug: z.string().min(1).describe("확인 입력 — 현재 슬러그") });
2188
+ /** 호스팅 끄기 — 사이트를 닫고(`CLOSED`) 슬러그를 보류한다. 확인 입력은 받지 않는다(2026-10-22) */
2189
+ const disableStorefrontHostingRequestSchema = z.object({ confirmSlug: z.string().max(200).optional().describe("쓰지 않는다 — 보내도 무시한다(옛 확인 입력)") });
2191
2190
  const storefrontSlugAvailabilityQuerySchema = z.object({ slug: z.string().describe("확인할 슬러그") });
2192
2191
  /**
2193
2192
  * 버전 미리보기 링크 — 상점 플랫폼에서 로그인한 OWNER·ADMIN만 받는다(PAT·에이전트 불가). 버전마다 미리보기 전용 주소가 있고
@@ -11260,7 +11259,7 @@ list: (params) => storeHttp.request("GET", "/audit-logs", auditLogPageSchema, {
11260
11259
  /** `DELETE /v1/storefront/site/domains/{domainId}` — 내 도메인 연결을 해제한다(곧바로 끊긴다) */
11261
11260
  removeDomain: (domainId) => storeHttp.requestVoid("DELETE", path`/storefront/site/domains/${domainId}`),
11262
11261
  /** `POST /v1/storefront/site/disable` — 호스팅을 끈다(사이트 `CLOSED`, 슬러그 90일 보류). 다시 만들 수 있다 */
11263
- disable: (body) => storeHttp.request("POST", "/storefront/site/disable", storefrontSiteSchema, { body: disableStorefrontHostingRequestSchema.parse(body) }),
11262
+ disable: (body = {}) => storeHttp.request("POST", "/storefront/site/disable", storefrontSiteSchema, { body: disableStorefrontHostingRequestSchema.parse(body) }),
11264
11263
  /** `GET /v1/storefront/site/editing` — 편집 환경 상태(열린 환경·동시 상한·미리보기 인증서) */
11265
11264
  getEditing: () => storeHttp.request("GET", "/storefront/site/editing", storefrontEditingSchema),
11266
11265
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayren/store-sdk",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "exports": {
package/src/client.ts CHANGED
@@ -2271,7 +2271,7 @@ export function createStoreClient(options: StoreClientOptions) {
2271
2271
  removeDomain: (domainId: string) =>
2272
2272
  storeHttp.requestVoid("DELETE", path`/storefront/site/domains/${domainId}`),
2273
2273
  /** `POST /v1/storefront/site/disable` — 호스팅을 끈다(사이트 `CLOSED`, 슬러그 90일 보류). 다시 만들 수 있다 */
2274
- disable: (body: DisableStorefrontHostingRequest) =>
2274
+ disable: (body: DisableStorefrontHostingRequest = {}) =>
2275
2275
  storeHttp.request("POST", "/storefront/site/disable", storefrontSiteSchema, {
2276
2276
  body: disableStorefrontHostingRequestSchema.parse(body),
2277
2277
  }),
@@ -25,7 +25,6 @@ import { RESERVED_STORE_CODES } from "./store";
25
25
  * - 409 `STOREFRONT_NO_ROLLBACK_TARGET` — 되돌릴 이전 발행 버전이 없다
26
26
  * - 409 `STOREFRONT_NOT_READY` — 공개 전환: 판매 중인 상품(샘플 제외)이 없다(이슈 #70). 상품을 등록한 뒤 공개한다
27
27
  * - 409 `TEMPLATE_CHANGE_NOT_SUPPORTED` — 템플릿 변경(`POST /v1/storefront/site/template`, 폐기)은 항상 이 오류다
28
- * - 400 `STOREFRONT_SLUG_CONFIRM_MISMATCH` — 호스팅 끄기 확인 입력이 현재 슬러그와 다르다
29
28
  * - 503 `STOREFRONT_PREVIEW_NOT_CONFIGURED` — 미리보기 서명 키가 설정되지 않았다
30
29
  *
31
30
  * 편집(M2b, `/v1/storefront/site/editing`·`files/**`·`checks/**`·`verify`·`builds/**`, 버전 만들기):
@@ -551,9 +550,13 @@ export const setStorefrontVisibilityRequestSchema = z.object({
551
550
  });
552
551
  export type SetStorefrontVisibilityRequest = z.infer<typeof setStorefrontVisibilityRequestSchema>;
553
552
 
554
- /** 호스팅 끄기 — 사이트를 닫고(`CLOSED`) 슬러그를 보류한다. 확인 입력은 현재 슬러그다 */
553
+ /** 호스팅 끄기 — 사이트를 닫고(`CLOSED`) 슬러그를 보류한다. 확인 입력은 받지 않는다(2026-10-22) */
555
554
  export const disableStorefrontHostingRequestSchema = z.object({
556
- confirmSlug: z.string().min(1).describe("확인 입력 — 현재 슬러그"),
555
+ confirmSlug: z
556
+ .string()
557
+ .max(200)
558
+ .optional()
559
+ .describe("쓰지 않는다 — 보내도 무시한다(옛 확인 입력)"),
557
560
  });
558
561
  export type DisableStorefrontHostingRequest = z.infer<typeof disableStorefrontHostingRequestSchema>;
559
562