@sayren/store-sdk 0.42.0 → 0.44.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.
Files changed (55) hide show
  1. package/dist/index.d.mts +698 -463
  2. package/dist/index.mjs +79 -6
  3. package/dist/server.mjs +1 -1
  4. package/dist/{webhook-headers-D0E3wPpS.mjs → webhook-headers-CTez3xDY.mjs} +1 -1
  5. package/package.json +1 -1
  6. package/src/client.ts +25 -1
  7. package/src/http.ts +1 -1
  8. package/src/index.ts +1 -0
  9. package/src/oauth.ts +1 -1
  10. package/src/schemas/ai.ts +1 -1
  11. package/src/schemas/analytics.ts +1 -1
  12. package/src/schemas/api-log.ts +1 -1
  13. package/src/schemas/app-manifest.ts +1 -1
  14. package/src/schemas/apps.ts +1 -1
  15. package/src/schemas/audit.ts +1 -1
  16. package/src/schemas/auth.ts +1 -1
  17. package/src/schemas/category.ts +1 -1
  18. package/src/schemas/checkout.ts +124 -0
  19. package/src/schemas/claim.ts +1 -1
  20. package/src/schemas/collection.ts +1 -1
  21. package/src/schemas/commerce-flow.ts +1 -1
  22. package/src/schemas/commerce-number.ts +1 -1
  23. package/src/schemas/common.ts +1 -1
  24. package/src/schemas/coupon.ts +1 -1
  25. package/src/schemas/currency-prices.ts +1 -1
  26. package/src/schemas/currency.ts +1 -1
  27. package/src/schemas/customer-delegation.ts +1 -1
  28. package/src/schemas/customer.ts +1 -1
  29. package/src/schemas/fulfillment.ts +1 -1
  30. package/src/schemas/inventory.ts +1 -1
  31. package/src/schemas/locale.ts +1 -1
  32. package/src/schemas/login.ts +1 -1
  33. package/src/schemas/market.ts +1 -1
  34. package/src/schemas/misc.ts +1 -1
  35. package/src/schemas/order.ts +1 -1
  36. package/src/schemas/payment.ts +1 -1
  37. package/src/schemas/plans.ts +1 -1
  38. package/src/schemas/points.ts +1 -1
  39. package/src/schemas/product-info.ts +1 -1
  40. package/src/schemas/product-localization.ts +1 -1
  41. package/src/schemas/product.ts +1 -1
  42. package/src/schemas/promotion.ts +1 -1
  43. package/src/schemas/refund-policy.ts +1 -1
  44. package/src/schemas/saved-option-set.ts +1 -1
  45. package/src/schemas/scope.ts +1 -1
  46. package/src/schemas/shipping-policy.ts +1 -1
  47. package/src/schemas/starter.ts +1 -1
  48. package/src/schemas/stay.ts +1 -1
  49. package/src/schemas/store.ts +9 -4
  50. package/src/schemas/storefront-hosting.ts +1 -1
  51. package/src/schemas/strict.ts +1 -1
  52. package/src/schemas/subscription.ts +1 -1
  53. package/src/schemas/telemetry.ts +1 -1
  54. package/src/schemas/upload.ts +1 -1
  55. package/src/schemas/webhook-event.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { type PageParams, pageQueryShape } from "./common";
3
3
  import { strictRequest } from "./strict";
4
4
 
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { commerceNumberField } from "./commerce-number";
3
3
  import { changeTypeSchema, orderItemStatusSchema, type PageParams, pageSchema } from "./common";
4
4
  import { orderItemFulfillmentSnapshotResponseSchema } from "./fulfillment";
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { type PageParams, pageSchema } from "./common";
3
3
  import { strictRequest } from "./strict";
4
4
 
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { responsePlanCodeSchema } from "./subscription";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { strictRequest } from "./strict";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { strictRequest } from "./strict";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { MAX_PRODUCT_IMAGES, productImageUrlSchema } from "./product";
3
3
  import { MAX_NOTICE_VALUE_LENGTH } from "./product-info";
4
4
 
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { type PageParams, pageQueryShape } from "./common";
3
3
  import { BASE_CURRENCY, CURRENCIES } from "./currency";
4
4
  import {
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { CURRENCIES, KRW_MONEY_RULES, type MoneyRules } from "./currency";
3
3
  import { proratedRefundBase } from "./refund-policy";
4
4
 
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { BASE_CURRENCY, currencyCodeSchema } from "./currency";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { type PageParams, pageQueryShape } from "./common";
3
3
  import {
4
4
  customInputRequestSchema,
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import type { StoreRole } from "./auth";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { BASE_CURRENCY, currencyCodeSchema } from "./currency";
3
3
  import { type DeliveryType, type FulfillmentType, requiresShipping } from "./fulfillment";
4
4
 
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { strictRequest } from "./strict";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { strictRequest } from "./strict";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { storeRoleSchema } from "./auth";
3
3
  import { localeCodeSchema } from "./locale";
4
4
  import { refundPolicyPatchSchema, refundPolicySchema } from "./refund-policy";
@@ -267,7 +267,7 @@ export const updateStoreRequestSchema = strictRequest(
267
267
  .boolean()
268
268
  .optional()
269
269
  .describe(
270
- "테스트 결제(샌드박스) 주문의 리뷰 허용. 기본 false — 돈을 내지 않은 주문으로 구매 인증 리뷰가 쌓이지 않게 막는다",
270
+ "@deprecated 효과 없음. 테스트 결제 주문도 실주문과 같이 리뷰를 쓸 수 있다. 호환을 위해 받기만 한다",
271
271
  ),
272
272
  autoDeliverDays: z
273
273
  .number()
@@ -326,7 +326,10 @@ export const storeSchema = z.object({
326
326
  storeId: z.string(),
327
327
  name: z.string(),
328
328
  storeCode: z.string(),
329
- storefrontUrl: z.url(),
329
+ storefrontUrl: z
330
+ .url()
331
+ .nullable()
332
+ .describe("스토어프론트 호스팅 사이트의 대표 주소. 사이트가 없으면 null"),
330
333
  status: z.enum(["ACTIVE", "SUSPENDED", "CLOSED"]),
331
334
  logoUrl: z.url().nullable(),
332
335
  businessNumber: z.string().nullable().describe("사업자등록번호(숫자 10자리). 없으면 null"),
@@ -345,7 +348,9 @@ export const storeSchema = z.object({
345
348
  .boolean()
346
349
  .optional()
347
350
  .default(false)
348
- .describe("테스트 결제(샌드박스) 주문의 리뷰 허용. 서버는 항상 싣는다"),
351
+ .describe(
352
+ "@deprecated 효과 없음. 테스트 결제 주문도 실주문과 같이 리뷰를 쓸 수 있다. 호환을 위해 저장한 값을 싣는다",
353
+ ),
349
354
  autoDeliverDays: z.number().int().describe(autoDeliverDaysDescription),
350
355
  autoConfirmDays: z.number().int().describe(autoConfirmDaysDescription),
351
356
  refundPolicy: refundPolicySchema.describe(
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { RESERVED_STORE_CODES } from "./store";
3
3
  import { strictRequest } from "./strict";
4
4
 
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
 
3
3
  /**
4
4
  * 관리 API 요청 본문을 모르는 키까지 거르는 스키마로 바꾼다(이슈 #193, 2026-10-24). `z.object`는 모르는 키를 조용히 버려서
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
 
3
3
  /**
4
4
  * 요금제·구독 — `GET /v1/store/subscription`(스코프 `store:r`). 구독 단위는 상점이다.
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
 
3
3
  /**
4
4
  * MCP 도구 호출 계측 (`POST /v1/telemetry/mcp`, 이슈 #34).
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { strictRequest } from "./strict";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { claimStatusSchema, claimTypeSchema } from "./claim";
3
3
  import { orderItemStatusSchema } from "./common";
4
4
  import { orderItemFulfillmentSnapshotResponseSchema } from "./fulfillment";