@sayren/store-sdk 0.40.0 → 0.42.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.mts +178 -80
- package/dist/index.mjs +214 -507
- package/dist/server.d.mts +2 -2
- package/dist/server.mjs +2 -2
- package/dist/webhook-headers-D0E3wPpS.mjs +437 -0
- package/package.json +1 -1
- package/src/client.ts +16 -6
- package/src/http.ts +8 -1
- package/src/index.ts +2 -0
- package/src/member-delegation.ts +21 -17
- package/src/schemas/ai.ts +101 -42
- package/src/schemas/apps.ts +18 -15
- package/src/schemas/audit.ts +6 -3
- package/src/schemas/category.ts +36 -31
- package/src/schemas/claim.ts +14 -11
- package/src/schemas/collection.ts +75 -64
- package/src/schemas/commerce-flow.ts +106 -85
- package/src/schemas/coupon.ts +87 -79
- package/src/schemas/customer-delegation.ts +30 -27
- package/src/schemas/customer.ts +9 -6
- package/src/schemas/inventory.ts +28 -23
- package/src/schemas/login.ts +17 -10
- package/src/schemas/misc.ts +6 -3
- package/src/schemas/order.ts +69 -58
- package/src/schemas/payment.ts +108 -89
- package/src/schemas/points.ts +32 -27
- package/src/schemas/product-info.ts +12 -9
- package/src/schemas/product.ts +17 -14
- package/src/schemas/saved-option-set.ts +5 -5
- package/src/schemas/starter.ts +15 -12
- package/src/schemas/stay.ts +15 -12
- package/src/schemas/store.ts +122 -111
- package/src/schemas/storefront-hosting.ts +271 -219
- package/src/schemas/strict.ts +84 -0
- package/src/schemas/upload.ts +15 -12
- package/src/session.ts +8 -5
- package/dist/webhook-headers-ap_exsb9.mjs +0 -22
package/dist/index.d.mts
CHANGED
|
@@ -424,6 +424,10 @@ export declare class ApprovalPendingError extends Error {
|
|
|
424
424
|
type TokenSource = string | null | undefined | (() => string | null | undefined);
|
|
425
425
|
type Query = Record<string, string | number | boolean | undefined>;
|
|
426
426
|
export declare function buildQuery(query?: Query): string;
|
|
427
|
+
/** 운영 관리 API 주소(버전 경로 포함) — 클라이언트·세션의 `baseUrl` 기본값. 개발·로컬에서만 지정한다 */
|
|
428
|
+
export declare const SAYREN_API_BASE_URL = "https://api.sayren.io/v1";
|
|
429
|
+
/** 운영 api 오리진 — 경로를 스스로 붙이는 함수(`delegateMember`)의 `baseUrl` 기본값 */
|
|
430
|
+
export declare const SAYREN_API_ORIGIN = "https://api.sayren.io";
|
|
427
431
|
//#endregion
|
|
428
432
|
//#region src/schemas/ai.d.ts
|
|
429
433
|
/**
|
|
@@ -495,8 +499,8 @@ export type AiRun = z.infer<typeof aiRunSchema>;
|
|
|
495
499
|
* AI가 지금 하는 일의 종류 — 도구 이름·operationId·파일 경로로 서버가 정한다(상점 만들기 진행 화면이 아이콘·문구를 고른다). 정하지 못한 도구는 없다
|
|
496
500
|
*/
|
|
497
501
|
export declare const aiActivitySchema: z.ZodEnum<{
|
|
498
|
-
check: "check";
|
|
499
502
|
code: "code";
|
|
503
|
+
check: "check";
|
|
500
504
|
version: "version";
|
|
501
505
|
status: "status";
|
|
502
506
|
shipping: "shipping";
|
|
@@ -513,9 +517,14 @@ export declare const aiActivitySchema: z.ZodEnum<{
|
|
|
513
517
|
verify: "verify";
|
|
514
518
|
}>;
|
|
515
519
|
export type AiActivity = z.infer<typeof aiActivitySchema>;
|
|
520
|
+
/** 바뀐 줄 미리보기 한 줄의 최대 길이 — 서버가 이 길이로 자르고 화면은 이보다 긴 줄을 앞부분으로 비교한다 */
|
|
521
|
+
export declare const AI_TOOL_CHANGE_LINE_MAX = 300;
|
|
522
|
+
/** 바뀐 줄 범위(`lines`) 개수 상한 */
|
|
523
|
+
export declare const AI_TOOL_CHANGE_RANGES_MAX = 200;
|
|
516
524
|
/**
|
|
517
525
|
* 도구가 바꾼 파일 하나(2026-10-13, AI 상점 도우미 작업 공간의 수정 중인 코드) — 서버가 도구 입력으로 계산한다.
|
|
518
|
-
* `edit`는 바꾼 부분의 줄 비교, `write`는 새로 쓴 내용(이전 내용을 모르므로 모두 추가로 센다). `preview`는 바뀐 줄 앞부분 12
|
|
526
|
+
* `edit`는 바꾼 부분의 줄 비교, `write`는 새로 쓴 내용(이전 내용을 모르므로 모두 추가로 센다). `preview`는 바뀐 줄 앞부분 12줄까지다.
|
|
527
|
+
* `lines`는 바꾼 뒤 파일에서 추가된 줄의 범위(1부터, 양끝 포함)다 — `edit`가 성공한 뒤에만 실행기가 채운다(옛 기록·`write`에는 없다)
|
|
519
528
|
*/
|
|
520
529
|
export declare const aiToolChangeSchema: z.ZodObject<{
|
|
521
530
|
path: z.ZodString;
|
|
@@ -532,6 +541,7 @@ export declare const aiToolChangeSchema: z.ZodObject<{
|
|
|
532
541
|
}>;
|
|
533
542
|
text: z.ZodString;
|
|
534
543
|
}, z.core.$strip>>;
|
|
544
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
535
545
|
}, z.core.$strip>;
|
|
536
546
|
export type AiToolChange = z.infer<typeof aiToolChangeSchema>;
|
|
537
547
|
/**
|
|
@@ -549,15 +559,27 @@ export declare const aiAgentPhaseSchema: z.ZodEnum<{
|
|
|
549
559
|
}>;
|
|
550
560
|
export type AiAgentPhase = z.infer<typeof aiAgentPhaseSchema>;
|
|
551
561
|
/**
|
|
552
|
-
* AI 상점 도우미의 작업 메모 폴더(2026-10-14) — 회차마다 읽는 숨은 규칙(`rules.md`)과 디자인 계획(`design.md`).
|
|
553
|
-
*
|
|
562
|
+
* AI 상점 도우미의 작업 메모 폴더(2026-10-14) — 회차마다 읽는 숨은 규칙(`rules.md`)과 디자인 계획(`design.md`). 편집 Sandbox가 점(.)으로 시작하는
|
|
563
|
+
* 경로를 받지 않아 작업 트리의 `src` 아래에 둔다(앱이 import하지 않는 문서라 빌드에 들어가지 않는다). 숨은 규칙은 셀러 화면(타임라인·코드 탭·변경 기록)에
|
|
564
|
+
* 보이지 않는다. 디자인 계획은 2026-10-24부터 셀러 문서(작업 공간 문서 탭의 「디자인 가이드라인」)라 숨기지 않는다(`AI_DESIGN_GUIDE_PATH`)
|
|
554
565
|
*/
|
|
555
566
|
export declare const AI_AGENT_NOTES_DIR = "src/site/agent";
|
|
567
|
+
/** 디자인 가이드라인(디자인 계획) — 작업 메모 폴더에 있지만 셀러가 읽는 문서다 */
|
|
568
|
+
export declare const AI_DESIGN_GUIDE_PATH = "src/site/agent/design.md";
|
|
569
|
+
/** 사이트맵 — 에이전트가 쓰는 화면 구성 문서(`{version:1,pages:[…]}`) */
|
|
570
|
+
export declare const AI_SITEMAP_PATH = "src/site/sitemap.json";
|
|
571
|
+
/** 작업 공간 문서 탭의 문서 파일인가(사이트맵·디자인 가이드라인) — 앱 코드가 아니라서 코드 탭·미리보기 점검·코드 변경 판정에서 뺀다 */
|
|
572
|
+
export declare function isAiWorkspaceDocPath(path: string): boolean;
|
|
573
|
+
/** 「이어서 진행」 버튼(실패한 실행 잇기)이 보내는 선택 값 — 선택지 답처럼 같은 할 일 목록을 잇는다 */
|
|
574
|
+
export declare const AI_RUN_RESUME_CHOICE = "run:resume";
|
|
556
575
|
/**
|
|
557
576
|
* 에이전트의 할 일 목록(2026-10-14, Claude Code의 TaskCreate·TaskUpdate·TaskList와 같다) — 에이전트가 패널 도구로 할 일을 만들고 상태를 바꾼다.
|
|
558
|
-
* 이벤트·조각은 그 시점의 목록 전체이고 작업 공간
|
|
577
|
+
* 이벤트·조각은 그 시점의 목록 전체이고 작업 공간 로드맵 탭이 마지막 목록을 칸반으로 그린다. 진행중은 한 번에 하나다.
|
|
578
|
+
* 목록은 셀러 요청 하나(사이클)의 일이다 — 새 요청이면 빈 목록에서 시작하고 선택지 답이면 잇는다(2026-10-24). 개수 상한은 없다
|
|
579
|
+
* (옛 30개 상한은 대화 전체에 할 일이 쌓여 넘쳤다 — 크기는 사이클 범위가, 폭주는 턴 예산이 막는다).
|
|
580
|
+
* `blocked`는 같은 문제를 거듭 고쳐도 남아 멈춘 일이고 `note`가 그 사유다(이어 가기 리마인더가 남은 일로 세지 않는다)
|
|
559
581
|
*/
|
|
560
|
-
export declare const AI_TODO_STATUSES: readonly ["pending", "in_progress", "completed"];
|
|
582
|
+
export declare const AI_TODO_STATUSES: readonly ["pending", "in_progress", "completed", "blocked"];
|
|
561
583
|
export declare const aiTodoSchema: z.ZodObject<{
|
|
562
584
|
id: z.ZodOptional<z.ZodString>;
|
|
563
585
|
content: z.ZodString;
|
|
@@ -565,6 +587,7 @@ export declare const aiTodoSchema: z.ZodObject<{
|
|
|
565
587
|
pending: "pending";
|
|
566
588
|
in_progress: "in_progress";
|
|
567
589
|
completed: "completed";
|
|
590
|
+
blocked: "blocked";
|
|
568
591
|
}>;
|
|
569
592
|
phase: z.ZodOptional<z.ZodEnum<{
|
|
570
593
|
STORE: "STORE";
|
|
@@ -574,9 +597,12 @@ export declare const aiTodoSchema: z.ZodObject<{
|
|
|
574
597
|
BUILD: "BUILD";
|
|
575
598
|
DONE: "DONE";
|
|
576
599
|
}>>;
|
|
600
|
+
note: z.ZodOptional<z.ZodString>;
|
|
577
601
|
}, z.core.$strip>;
|
|
578
602
|
export type AiTodo = z.infer<typeof aiTodoSchema>;
|
|
603
|
+
/** @deprecated 할 일 개수 상한은 없앴다(2026-10-24). 공개 export라 값만 남긴다 */
|
|
579
604
|
export declare const AI_TODOS_MAX = 30;
|
|
605
|
+
/** 셀러에게 보이지 않는 작업 메모인가 — 작업 메모 폴더에서 디자인 가이드라인을 뺀 나머지다 */
|
|
580
606
|
export declare function isAiAgentNotesPath(path: string): boolean;
|
|
581
607
|
/**
|
|
582
608
|
* 디자인 아트보드 폴더(2026-10-14 사용자 결정, Claude Code Design 캔버스의 파일 계약을 옮겼다) — DESIGN 단계에 에이전트가 쓰는 자기완결 HTML 아트보드와
|
|
@@ -715,20 +741,21 @@ export declare const AI_DESIGN_CONFIRM_APPROVE = "design:approve";
|
|
|
715
741
|
export declare const aiMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
716
742
|
type: z.ZodLiteral<"text">;
|
|
717
743
|
text: z.ZodString;
|
|
744
|
+
choice: z.ZodOptional<z.ZodString>;
|
|
718
745
|
}, z.core.$strip>, z.ZodObject<{
|
|
719
746
|
type: z.ZodLiteral<"tool">;
|
|
720
747
|
toolCallId: z.ZodString;
|
|
721
748
|
name: z.ZodString;
|
|
722
749
|
label: z.ZodString;
|
|
723
750
|
status: z.ZodEnum<{
|
|
724
|
-
error: "error";
|
|
725
751
|
unknown: "unknown";
|
|
752
|
+
error: "error";
|
|
726
753
|
ok: "ok";
|
|
727
754
|
}>;
|
|
728
755
|
summary: z.ZodNullable<z.ZodString>;
|
|
729
756
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
730
|
-
check: "check";
|
|
731
757
|
code: "code";
|
|
758
|
+
check: "check";
|
|
732
759
|
version: "version";
|
|
733
760
|
status: "status";
|
|
734
761
|
shipping: "shipping";
|
|
@@ -760,6 +787,7 @@ export declare const aiMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
760
787
|
}>;
|
|
761
788
|
text: z.ZodString;
|
|
762
789
|
}, z.core.$strip>>;
|
|
790
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
763
791
|
}, z.core.$strip>>>;
|
|
764
792
|
}, z.core.$strip>, z.ZodObject<{
|
|
765
793
|
type: z.ZodLiteral<"choices">;
|
|
@@ -846,6 +874,7 @@ export declare const aiMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
846
874
|
pending: "pending";
|
|
847
875
|
in_progress: "in_progress";
|
|
848
876
|
completed: "completed";
|
|
877
|
+
blocked: "blocked";
|
|
849
878
|
}>;
|
|
850
879
|
phase: z.ZodOptional<z.ZodEnum<{
|
|
851
880
|
STORE: "STORE";
|
|
@@ -855,6 +884,7 @@ export declare const aiMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
855
884
|
BUILD: "BUILD";
|
|
856
885
|
DONE: "DONE";
|
|
857
886
|
}>>;
|
|
887
|
+
note: z.ZodOptional<z.ZodString>;
|
|
858
888
|
}, z.core.$strip>>;
|
|
859
889
|
}, z.core.$strip>], "type">;
|
|
860
890
|
export type AiMessagePart = z.infer<typeof aiMessagePartSchema>;
|
|
@@ -867,20 +897,21 @@ export declare const aiMessageSchema: z.ZodObject<{
|
|
|
867
897
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
868
898
|
type: z.ZodLiteral<"text">;
|
|
869
899
|
text: z.ZodString;
|
|
900
|
+
choice: z.ZodOptional<z.ZodString>;
|
|
870
901
|
}, z.core.$strip>, z.ZodObject<{
|
|
871
902
|
type: z.ZodLiteral<"tool">;
|
|
872
903
|
toolCallId: z.ZodString;
|
|
873
904
|
name: z.ZodString;
|
|
874
905
|
label: z.ZodString;
|
|
875
906
|
status: z.ZodEnum<{
|
|
876
|
-
error: "error";
|
|
877
907
|
unknown: "unknown";
|
|
908
|
+
error: "error";
|
|
878
909
|
ok: "ok";
|
|
879
910
|
}>;
|
|
880
911
|
summary: z.ZodNullable<z.ZodString>;
|
|
881
912
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
882
|
-
check: "check";
|
|
883
913
|
code: "code";
|
|
914
|
+
check: "check";
|
|
884
915
|
version: "version";
|
|
885
916
|
status: "status";
|
|
886
917
|
shipping: "shipping";
|
|
@@ -912,6 +943,7 @@ export declare const aiMessageSchema: z.ZodObject<{
|
|
|
912
943
|
}>;
|
|
913
944
|
text: z.ZodString;
|
|
914
945
|
}, z.core.$strip>>;
|
|
946
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
915
947
|
}, z.core.$strip>>>;
|
|
916
948
|
}, z.core.$strip>, z.ZodObject<{
|
|
917
949
|
type: z.ZodLiteral<"choices">;
|
|
@@ -998,6 +1030,7 @@ export declare const aiMessageSchema: z.ZodObject<{
|
|
|
998
1030
|
pending: "pending";
|
|
999
1031
|
in_progress: "in_progress";
|
|
1000
1032
|
completed: "completed";
|
|
1033
|
+
blocked: "blocked";
|
|
1001
1034
|
}>;
|
|
1002
1035
|
phase: z.ZodOptional<z.ZodEnum<{
|
|
1003
1036
|
STORE: "STORE";
|
|
@@ -1007,6 +1040,7 @@ export declare const aiMessageSchema: z.ZodObject<{
|
|
|
1007
1040
|
BUILD: "BUILD";
|
|
1008
1041
|
DONE: "DONE";
|
|
1009
1042
|
}>>;
|
|
1043
|
+
note: z.ZodOptional<z.ZodString>;
|
|
1010
1044
|
}, z.core.$strip>>;
|
|
1011
1045
|
}, z.core.$strip>], "type">>;
|
|
1012
1046
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -1034,20 +1068,21 @@ export declare const aiConversationSchema: z.ZodObject<{
|
|
|
1034
1068
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1035
1069
|
type: z.ZodLiteral<"text">;
|
|
1036
1070
|
text: z.ZodString;
|
|
1071
|
+
choice: z.ZodOptional<z.ZodString>;
|
|
1037
1072
|
}, z.core.$strip>, z.ZodObject<{
|
|
1038
1073
|
type: z.ZodLiteral<"tool">;
|
|
1039
1074
|
toolCallId: z.ZodString;
|
|
1040
1075
|
name: z.ZodString;
|
|
1041
1076
|
label: z.ZodString;
|
|
1042
1077
|
status: z.ZodEnum<{
|
|
1043
|
-
error: "error";
|
|
1044
1078
|
unknown: "unknown";
|
|
1079
|
+
error: "error";
|
|
1045
1080
|
ok: "ok";
|
|
1046
1081
|
}>;
|
|
1047
1082
|
summary: z.ZodNullable<z.ZodString>;
|
|
1048
1083
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1049
|
-
check: "check";
|
|
1050
1084
|
code: "code";
|
|
1085
|
+
check: "check";
|
|
1051
1086
|
version: "version";
|
|
1052
1087
|
status: "status";
|
|
1053
1088
|
shipping: "shipping";
|
|
@@ -1079,6 +1114,7 @@ export declare const aiConversationSchema: z.ZodObject<{
|
|
|
1079
1114
|
}>;
|
|
1080
1115
|
text: z.ZodString;
|
|
1081
1116
|
}, z.core.$strip>>;
|
|
1117
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
1082
1118
|
}, z.core.$strip>>>;
|
|
1083
1119
|
}, z.core.$strip>, z.ZodObject<{
|
|
1084
1120
|
type: z.ZodLiteral<"choices">;
|
|
@@ -1165,6 +1201,7 @@ export declare const aiConversationSchema: z.ZodObject<{
|
|
|
1165
1201
|
pending: "pending";
|
|
1166
1202
|
in_progress: "in_progress";
|
|
1167
1203
|
completed: "completed";
|
|
1204
|
+
blocked: "blocked";
|
|
1168
1205
|
}>;
|
|
1169
1206
|
phase: z.ZodOptional<z.ZodEnum<{
|
|
1170
1207
|
STORE: "STORE";
|
|
@@ -1174,6 +1211,7 @@ export declare const aiConversationSchema: z.ZodObject<{
|
|
|
1174
1211
|
BUILD: "BUILD";
|
|
1175
1212
|
DONE: "DONE";
|
|
1176
1213
|
}>>;
|
|
1214
|
+
note: z.ZodOptional<z.ZodString>;
|
|
1177
1215
|
}, z.core.$strip>>;
|
|
1178
1216
|
}, z.core.$strip>], "type">>;
|
|
1179
1217
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -1495,6 +1533,7 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1495
1533
|
pending: "pending";
|
|
1496
1534
|
in_progress: "in_progress";
|
|
1497
1535
|
completed: "completed";
|
|
1536
|
+
blocked: "blocked";
|
|
1498
1537
|
}>;
|
|
1499
1538
|
phase: z.ZodOptional<z.ZodEnum<{
|
|
1500
1539
|
STORE: "STORE";
|
|
@@ -1504,6 +1543,7 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1504
1543
|
BUILD: "BUILD";
|
|
1505
1544
|
DONE: "DONE";
|
|
1506
1545
|
}>>;
|
|
1546
|
+
note: z.ZodOptional<z.ZodString>;
|
|
1507
1547
|
}, z.core.$strip>>;
|
|
1508
1548
|
}, z.core.$strip>, z.ZodObject<{
|
|
1509
1549
|
type: z.ZodLiteral<"tool_start">;
|
|
@@ -1537,8 +1577,8 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1537
1577
|
id: z.ZodOptional<z.ZodString>;
|
|
1538
1578
|
}, z.core.$strip>>;
|
|
1539
1579
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1540
|
-
check: "check";
|
|
1541
1580
|
code: "code";
|
|
1581
|
+
check: "check";
|
|
1542
1582
|
version: "version";
|
|
1543
1583
|
status: "status";
|
|
1544
1584
|
shipping: "shipping";
|
|
@@ -1570,17 +1610,35 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1570
1610
|
}>;
|
|
1571
1611
|
text: z.ZodString;
|
|
1572
1612
|
}, z.core.$strip>>;
|
|
1613
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
1573
1614
|
}, z.core.$strip>>>;
|
|
1574
1615
|
}, z.core.$strip>, z.ZodObject<{
|
|
1575
1616
|
type: z.ZodLiteral<"tool_result">;
|
|
1576
1617
|
messageId: z.ZodString;
|
|
1577
1618
|
toolCallId: z.ZodString;
|
|
1578
1619
|
status: z.ZodEnum<{
|
|
1579
|
-
error: "error";
|
|
1580
1620
|
unknown: "unknown";
|
|
1621
|
+
error: "error";
|
|
1581
1622
|
ok: "ok";
|
|
1582
1623
|
}>;
|
|
1583
1624
|
summary: z.ZodNullable<z.ZodString>;
|
|
1625
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1626
|
+
path: z.ZodString;
|
|
1627
|
+
mode: z.ZodEnum<{
|
|
1628
|
+
edit: "edit";
|
|
1629
|
+
write: "write";
|
|
1630
|
+
}>;
|
|
1631
|
+
added: z.ZodNumber;
|
|
1632
|
+
removed: z.ZodNumber;
|
|
1633
|
+
preview: z.ZodArray<z.ZodObject<{
|
|
1634
|
+
kind: z.ZodEnum<{
|
|
1635
|
+
added: "added";
|
|
1636
|
+
removed: "removed";
|
|
1637
|
+
}>;
|
|
1638
|
+
text: z.ZodString;
|
|
1639
|
+
}, z.core.$strip>>;
|
|
1640
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
1641
|
+
}, z.core.$strip>>>;
|
|
1584
1642
|
}, z.core.$strip>, z.ZodObject<{
|
|
1585
1643
|
type: z.ZodLiteral<"choices">;
|
|
1586
1644
|
messageId: z.ZodString;
|
|
@@ -1634,20 +1692,21 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1634
1692
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1635
1693
|
type: z.ZodLiteral<"text">;
|
|
1636
1694
|
text: z.ZodString;
|
|
1695
|
+
choice: z.ZodOptional<z.ZodString>;
|
|
1637
1696
|
}, z.core.$strip>, z.ZodObject<{
|
|
1638
1697
|
type: z.ZodLiteral<"tool">;
|
|
1639
1698
|
toolCallId: z.ZodString;
|
|
1640
1699
|
name: z.ZodString;
|
|
1641
1700
|
label: z.ZodString;
|
|
1642
1701
|
status: z.ZodEnum<{
|
|
1643
|
-
error: "error";
|
|
1644
1702
|
unknown: "unknown";
|
|
1703
|
+
error: "error";
|
|
1645
1704
|
ok: "ok";
|
|
1646
1705
|
}>;
|
|
1647
1706
|
summary: z.ZodNullable<z.ZodString>;
|
|
1648
1707
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1649
|
-
check: "check";
|
|
1650
1708
|
code: "code";
|
|
1709
|
+
check: "check";
|
|
1651
1710
|
version: "version";
|
|
1652
1711
|
status: "status";
|
|
1653
1712
|
shipping: "shipping";
|
|
@@ -1679,6 +1738,7 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1679
1738
|
}>;
|
|
1680
1739
|
text: z.ZodString;
|
|
1681
1740
|
}, z.core.$strip>>;
|
|
1741
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
1682
1742
|
}, z.core.$strip>>>;
|
|
1683
1743
|
}, z.core.$strip>, z.ZodObject<{
|
|
1684
1744
|
type: z.ZodLiteral<"choices">;
|
|
@@ -1765,6 +1825,7 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1765
1825
|
pending: "pending";
|
|
1766
1826
|
in_progress: "in_progress";
|
|
1767
1827
|
completed: "completed";
|
|
1828
|
+
blocked: "blocked";
|
|
1768
1829
|
}>;
|
|
1769
1830
|
phase: z.ZodOptional<z.ZodEnum<{
|
|
1770
1831
|
STORE: "STORE";
|
|
@@ -1774,6 +1835,7 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1774
1835
|
BUILD: "BUILD";
|
|
1775
1836
|
DONE: "DONE";
|
|
1776
1837
|
}>>;
|
|
1838
|
+
note: z.ZodOptional<z.ZodString>;
|
|
1777
1839
|
}, z.core.$strip>>;
|
|
1778
1840
|
}, z.core.$strip>], "type">>;
|
|
1779
1841
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -1827,6 +1889,7 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
1827
1889
|
pending: "pending";
|
|
1828
1890
|
in_progress: "in_progress";
|
|
1829
1891
|
completed: "completed";
|
|
1892
|
+
blocked: "blocked";
|
|
1830
1893
|
}>;
|
|
1831
1894
|
phase: z.ZodOptional<z.ZodEnum<{
|
|
1832
1895
|
STORE: "STORE";
|
|
@@ -1836,6 +1899,7 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
1836
1899
|
BUILD: "BUILD";
|
|
1837
1900
|
DONE: "DONE";
|
|
1838
1901
|
}>>;
|
|
1902
|
+
note: z.ZodOptional<z.ZodString>;
|
|
1839
1903
|
}, z.core.$strip>>;
|
|
1840
1904
|
}, z.core.$strip>, z.ZodObject<{
|
|
1841
1905
|
type: z.ZodLiteral<"tool_start">;
|
|
@@ -1869,8 +1933,8 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
1869
1933
|
id: z.ZodOptional<z.ZodString>;
|
|
1870
1934
|
}, z.core.$strip>>;
|
|
1871
1935
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1872
|
-
check: "check";
|
|
1873
1936
|
code: "code";
|
|
1937
|
+
check: "check";
|
|
1874
1938
|
version: "version";
|
|
1875
1939
|
status: "status";
|
|
1876
1940
|
shipping: "shipping";
|
|
@@ -1902,17 +1966,35 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
1902
1966
|
}>;
|
|
1903
1967
|
text: z.ZodString;
|
|
1904
1968
|
}, z.core.$strip>>;
|
|
1969
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
1905
1970
|
}, z.core.$strip>>>;
|
|
1906
1971
|
}, z.core.$strip>, z.ZodObject<{
|
|
1907
1972
|
type: z.ZodLiteral<"tool_result">;
|
|
1908
1973
|
messageId: z.ZodString;
|
|
1909
1974
|
toolCallId: z.ZodString;
|
|
1910
1975
|
status: z.ZodEnum<{
|
|
1911
|
-
error: "error";
|
|
1912
1976
|
unknown: "unknown";
|
|
1977
|
+
error: "error";
|
|
1913
1978
|
ok: "ok";
|
|
1914
1979
|
}>;
|
|
1915
1980
|
summary: z.ZodNullable<z.ZodString>;
|
|
1981
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1982
|
+
path: z.ZodString;
|
|
1983
|
+
mode: z.ZodEnum<{
|
|
1984
|
+
edit: "edit";
|
|
1985
|
+
write: "write";
|
|
1986
|
+
}>;
|
|
1987
|
+
added: z.ZodNumber;
|
|
1988
|
+
removed: z.ZodNumber;
|
|
1989
|
+
preview: z.ZodArray<z.ZodObject<{
|
|
1990
|
+
kind: z.ZodEnum<{
|
|
1991
|
+
added: "added";
|
|
1992
|
+
removed: "removed";
|
|
1993
|
+
}>;
|
|
1994
|
+
text: z.ZodString;
|
|
1995
|
+
}, z.core.$strip>>;
|
|
1996
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
1997
|
+
}, z.core.$strip>>>;
|
|
1916
1998
|
}, z.core.$strip>, z.ZodObject<{
|
|
1917
1999
|
type: z.ZodLiteral<"choices">;
|
|
1918
2000
|
messageId: z.ZodString;
|
|
@@ -1966,20 +2048,21 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
1966
2048
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1967
2049
|
type: z.ZodLiteral<"text">;
|
|
1968
2050
|
text: z.ZodString;
|
|
2051
|
+
choice: z.ZodOptional<z.ZodString>;
|
|
1969
2052
|
}, z.core.$strip>, z.ZodObject<{
|
|
1970
2053
|
type: z.ZodLiteral<"tool">;
|
|
1971
2054
|
toolCallId: z.ZodString;
|
|
1972
2055
|
name: z.ZodString;
|
|
1973
2056
|
label: z.ZodString;
|
|
1974
2057
|
status: z.ZodEnum<{
|
|
1975
|
-
error: "error";
|
|
1976
2058
|
unknown: "unknown";
|
|
2059
|
+
error: "error";
|
|
1977
2060
|
ok: "ok";
|
|
1978
2061
|
}>;
|
|
1979
2062
|
summary: z.ZodNullable<z.ZodString>;
|
|
1980
2063
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1981
|
-
check: "check";
|
|
1982
2064
|
code: "code";
|
|
2065
|
+
check: "check";
|
|
1983
2066
|
version: "version";
|
|
1984
2067
|
status: "status";
|
|
1985
2068
|
shipping: "shipping";
|
|
@@ -2011,6 +2094,7 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
2011
2094
|
}>;
|
|
2012
2095
|
text: z.ZodString;
|
|
2013
2096
|
}, z.core.$strip>>;
|
|
2097
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
2014
2098
|
}, z.core.$strip>>>;
|
|
2015
2099
|
}, z.core.$strip>, z.ZodObject<{
|
|
2016
2100
|
type: z.ZodLiteral<"choices">;
|
|
@@ -2097,6 +2181,7 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
2097
2181
|
pending: "pending";
|
|
2098
2182
|
in_progress: "in_progress";
|
|
2099
2183
|
completed: "completed";
|
|
2184
|
+
blocked: "blocked";
|
|
2100
2185
|
}>;
|
|
2101
2186
|
phase: z.ZodOptional<z.ZodEnum<{
|
|
2102
2187
|
STORE: "STORE";
|
|
@@ -2106,6 +2191,7 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
2106
2191
|
BUILD: "BUILD";
|
|
2107
2192
|
DONE: "DONE";
|
|
2108
2193
|
}>>;
|
|
2194
|
+
note: z.ZodOptional<z.ZodString>;
|
|
2109
2195
|
}, z.core.$strip>>;
|
|
2110
2196
|
}, z.core.$strip>], "type">>;
|
|
2111
2197
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -2174,6 +2260,15 @@ export declare const storeDraftPreviewSchema: z.ZodObject<{
|
|
|
2174
2260
|
used: z.ZodBoolean;
|
|
2175
2261
|
}, z.core.$strip>;
|
|
2176
2262
|
export type StoreDraftPreview = z.infer<typeof storeDraftPreviewSchema>;
|
|
2263
|
+
/**
|
|
2264
|
+
* 셀러 메시지가 선택지에서 고른 답인가(조각에 `choice`가 있다) — 할 일 목록은 셀러 요청 하나(사이클)의 일이고, 고른 답(선택지·만들기 확인·계획 승인·발행 확인·
|
|
2265
|
+
* 「이어서 진행」)은 같은 사이클을 잇고 새로 쓴 글은 새 사이클이다(2026-10-24). api(`currentCycleRows`)와 상점 플랫폼(로드맵)이 이 판정 하나를 쓴다.
|
|
2266
|
+
* 직전 답에 선택지가 있었는지로 가르면 선택지를 무시하고 새 요청을 쓴 경우도 옛 사이클에 묶였다
|
|
2267
|
+
*/
|
|
2268
|
+
export declare function isAiChoiceAnswer(parts: readonly {
|
|
2269
|
+
type: string;
|
|
2270
|
+
choice?: string;
|
|
2271
|
+
}[]): boolean;
|
|
2177
2272
|
//#endregion
|
|
2178
2273
|
//#region src/schemas/analytics.d.ts
|
|
2179
2274
|
export declare const analyticsRangeQuerySchema: z.ZodObject<{
|
|
@@ -4254,8 +4349,8 @@ export declare const appManifestSchema: z.ZodObject<{
|
|
|
4254
4349
|
icon: z.ZodOptional<z.ZodString>;
|
|
4255
4350
|
readme: z.ZodOptional<z.ZodString>;
|
|
4256
4351
|
runtime: z.ZodDefault<z.ZodEnum<{
|
|
4257
|
-
code: "code";
|
|
4258
4352
|
external: "external";
|
|
4353
|
+
code: "code";
|
|
4259
4354
|
}>>;
|
|
4260
4355
|
external: z.ZodOptional<z.ZodObject<{
|
|
4261
4356
|
url: z.ZodURL;
|
|
@@ -11862,7 +11957,7 @@ export declare const addonValueRequestSchema: z.ZodObject<{
|
|
|
11862
11957
|
additionalPrice: z.ZodNumber;
|
|
11863
11958
|
}, z.core.$strict>>>;
|
|
11864
11959
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
11865
|
-
}, z.core.$
|
|
11960
|
+
}, z.core.$strict>;
|
|
11866
11961
|
export type AddonValueRequest = z.infer<typeof addonValueRequestSchema>;
|
|
11867
11962
|
export declare const addonGroupRequestSchema: z.ZodObject<{
|
|
11868
11963
|
groupId: z.ZodOptional<z.ZodString>;
|
|
@@ -11894,8 +11989,8 @@ export declare const addonGroupRequestSchema: z.ZodObject<{
|
|
|
11894
11989
|
additionalPrice: z.ZodNumber;
|
|
11895
11990
|
}, z.core.$strict>>>;
|
|
11896
11991
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
11897
|
-
}, z.core.$
|
|
11898
|
-
}, z.core.$
|
|
11992
|
+
}, z.core.$strict>>;
|
|
11993
|
+
}, z.core.$strict>;
|
|
11899
11994
|
export type AddonGroupRequest = z.infer<typeof addonGroupRequestSchema>;
|
|
11900
11995
|
export declare const customInputRequestSchema: z.ZodObject<{
|
|
11901
11996
|
inputId: z.ZodOptional<z.ZodString>;
|
|
@@ -11914,7 +12009,7 @@ export declare const customInputRequestSchema: z.ZodObject<{
|
|
|
11914
12009
|
image: "image";
|
|
11915
12010
|
}>>;
|
|
11916
12011
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11917
|
-
}, z.core.$
|
|
12012
|
+
}, z.core.$strict>;
|
|
11918
12013
|
export type CustomInputRequest = z.infer<typeof customInputRequestSchema>;
|
|
11919
12014
|
/**
|
|
11920
12015
|
* 주문상품·장바구니·주문서 줄의 옵션 선택 스냅샷 한 칸 — 주문 시점 이름이다(상품을 고쳐도 바뀌지 않는다).
|
|
@@ -12166,7 +12261,7 @@ export declare function productImageRejection(url: string): ProductImageRejectio
|
|
|
12166
12261
|
export declare const optionValueRequestSchema: z.ZodObject<{
|
|
12167
12262
|
valueId: z.ZodOptional<z.ZodString>;
|
|
12168
12263
|
name: z.ZodString;
|
|
12169
|
-
}, z.core.$
|
|
12264
|
+
}, z.core.$strict>;
|
|
12170
12265
|
export type OptionValueRequest = z.infer<typeof optionValueRequestSchema>;
|
|
12171
12266
|
export declare const optionGroupRequestSchema: z.ZodObject<{
|
|
12172
12267
|
groupId: z.ZodOptional<z.ZodString>;
|
|
@@ -12174,8 +12269,8 @@ export declare const optionGroupRequestSchema: z.ZodObject<{
|
|
|
12174
12269
|
values: z.ZodArray<z.ZodObject<{
|
|
12175
12270
|
valueId: z.ZodOptional<z.ZodString>;
|
|
12176
12271
|
name: z.ZodString;
|
|
12177
|
-
}, z.core.$
|
|
12178
|
-
}, z.core.$
|
|
12272
|
+
}, z.core.$strict>>;
|
|
12273
|
+
}, z.core.$strict>;
|
|
12179
12274
|
export type OptionGroupRequest = z.infer<typeof optionGroupRequestSchema>;
|
|
12180
12275
|
export declare const productVariantRequestSchema: z.ZodObject<{
|
|
12181
12276
|
variantId: z.ZodOptional<z.ZodString>;
|
|
@@ -12210,7 +12305,7 @@ export declare const productVariantRequestSchema: z.ZodObject<{
|
|
|
12210
12305
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
12211
12306
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12212
12307
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12213
|
-
}, z.core.$
|
|
12308
|
+
}, z.core.$strict>;
|
|
12214
12309
|
export type ProductVariantRequest = z.infer<typeof productVariantRequestSchema>;
|
|
12215
12310
|
/** 축 × 값 → variant 전체 교체 요청 (PUT /products/{productId}/options) */
|
|
12216
12311
|
export declare const optionModelRequestSchema: z.ZodObject<{
|
|
@@ -12220,8 +12315,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
12220
12315
|
values: z.ZodArray<z.ZodObject<{
|
|
12221
12316
|
valueId: z.ZodOptional<z.ZodString>;
|
|
12222
12317
|
name: z.ZodString;
|
|
12223
|
-
}, z.core.$
|
|
12224
|
-
}, z.core.$
|
|
12318
|
+
}, z.core.$strict>>;
|
|
12319
|
+
}, z.core.$strict>>>;
|
|
12225
12320
|
variants: z.ZodArray<z.ZodObject<{
|
|
12226
12321
|
variantId: z.ZodOptional<z.ZodString>;
|
|
12227
12322
|
valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -12255,7 +12350,7 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
12255
12350
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
12256
12351
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12257
12352
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12258
|
-
}, z.core.$
|
|
12353
|
+
}, z.core.$strict>>;
|
|
12259
12354
|
addonGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12260
12355
|
groupId: z.ZodOptional<z.ZodString>;
|
|
12261
12356
|
name: z.ZodString;
|
|
@@ -12286,8 +12381,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
12286
12381
|
additionalPrice: z.ZodNumber;
|
|
12287
12382
|
}, z.core.$strict>>>;
|
|
12288
12383
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12289
|
-
}, z.core.$
|
|
12290
|
-
}, z.core.$
|
|
12384
|
+
}, z.core.$strict>>;
|
|
12385
|
+
}, z.core.$strict>>>;
|
|
12291
12386
|
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12292
12387
|
inputId: z.ZodOptional<z.ZodString>;
|
|
12293
12388
|
label: z.ZodString;
|
|
@@ -12305,14 +12400,14 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
12305
12400
|
image: "image";
|
|
12306
12401
|
}>>;
|
|
12307
12402
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12308
|
-
}, z.core.$
|
|
12403
|
+
}, z.core.$strict>>>;
|
|
12309
12404
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
12310
12405
|
REGISTERED: "REGISTERED";
|
|
12311
12406
|
NAME: "NAME";
|
|
12312
12407
|
PRICE_ASC: "PRICE_ASC";
|
|
12313
12408
|
PRICE_DESC: "PRICE_DESC";
|
|
12314
12409
|
}>>;
|
|
12315
|
-
}, z.core.$
|
|
12410
|
+
}, z.core.$strict>;
|
|
12316
12411
|
export type OptionModelRequest = z.infer<typeof optionModelRequestSchema>;
|
|
12317
12412
|
/** GET /products/{productId}/options 응답 */
|
|
12318
12413
|
export declare const optionModelSchema: z.ZodObject<{
|
|
@@ -12466,8 +12561,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12466
12561
|
values: z.ZodArray<z.ZodObject<{
|
|
12467
12562
|
valueId: z.ZodOptional<z.ZodString>;
|
|
12468
12563
|
name: z.ZodString;
|
|
12469
|
-
}, z.core.$
|
|
12470
|
-
}, z.core.$
|
|
12564
|
+
}, z.core.$strict>>;
|
|
12565
|
+
}, z.core.$strict>>>;
|
|
12471
12566
|
variants: z.ZodArray<z.ZodObject<{
|
|
12472
12567
|
variantId: z.ZodOptional<z.ZodString>;
|
|
12473
12568
|
valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -12501,7 +12596,7 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12501
12596
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
12502
12597
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12503
12598
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12504
|
-
}, z.core.$
|
|
12599
|
+
}, z.core.$strict>>;
|
|
12505
12600
|
addonGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12506
12601
|
groupId: z.ZodOptional<z.ZodString>;
|
|
12507
12602
|
name: z.ZodString;
|
|
@@ -12532,8 +12627,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12532
12627
|
additionalPrice: z.ZodNumber;
|
|
12533
12628
|
}, z.core.$strict>>>;
|
|
12534
12629
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12535
|
-
}, z.core.$
|
|
12536
|
-
}, z.core.$
|
|
12630
|
+
}, z.core.$strict>>;
|
|
12631
|
+
}, z.core.$strict>>>;
|
|
12537
12632
|
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12538
12633
|
inputId: z.ZodOptional<z.ZodString>;
|
|
12539
12634
|
label: z.ZodString;
|
|
@@ -12551,7 +12646,7 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12551
12646
|
image: "image";
|
|
12552
12647
|
}>>;
|
|
12553
12648
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12554
|
-
}, z.core.$
|
|
12649
|
+
}, z.core.$strict>>>;
|
|
12555
12650
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
12556
12651
|
REGISTERED: "REGISTERED";
|
|
12557
12652
|
NAME: "NAME";
|
|
@@ -12592,7 +12687,7 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12592
12687
|
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12593
12688
|
attributeId: z.ZodString;
|
|
12594
12689
|
value: z.ZodString;
|
|
12595
|
-
}, z.core.$
|
|
12690
|
+
}, z.core.$strict>>>;
|
|
12596
12691
|
refundPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12597
12692
|
preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
|
|
12598
12693
|
returnDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -12625,7 +12720,7 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12625
12720
|
schemaId: z.ZodString;
|
|
12626
12721
|
version: z.ZodOptional<z.ZodNumber>;
|
|
12627
12722
|
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12628
|
-
}, z.core.$
|
|
12723
|
+
}, z.core.$strict>>>;
|
|
12629
12724
|
certifications: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12630
12725
|
subjects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12631
12726
|
subject: z.ZodString;
|
|
@@ -12635,13 +12730,13 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12635
12730
|
EXEMPT: "EXEMPT";
|
|
12636
12731
|
}>;
|
|
12637
12732
|
exemption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12638
|
-
}, z.core.$
|
|
12733
|
+
}, z.core.$strict>>>;
|
|
12639
12734
|
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12640
12735
|
kind: z.ZodString;
|
|
12641
12736
|
agency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12642
12737
|
number: z.ZodString;
|
|
12643
|
-
}, z.core.$
|
|
12644
|
-
}, z.core.$
|
|
12738
|
+
}, z.core.$strict>>>;
|
|
12739
|
+
}, z.core.$strict>>>;
|
|
12645
12740
|
infoSectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12646
12741
|
}, z.core.$strict>;
|
|
12647
12742
|
export type ProductCreateRequest = z.infer<typeof productCreateRequestSchema>;
|
|
@@ -12710,8 +12805,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12710
12805
|
values: z.ZodArray<z.ZodObject<{
|
|
12711
12806
|
valueId: z.ZodOptional<z.ZodString>;
|
|
12712
12807
|
name: z.ZodString;
|
|
12713
|
-
}, z.core.$
|
|
12714
|
-
}, z.core.$
|
|
12808
|
+
}, z.core.$strict>>;
|
|
12809
|
+
}, z.core.$strict>>>;
|
|
12715
12810
|
variants: z.ZodArray<z.ZodObject<{
|
|
12716
12811
|
variantId: z.ZodOptional<z.ZodString>;
|
|
12717
12812
|
valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -12745,7 +12840,7 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12745
12840
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
12746
12841
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12747
12842
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12748
|
-
}, z.core.$
|
|
12843
|
+
}, z.core.$strict>>;
|
|
12749
12844
|
addonGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12750
12845
|
groupId: z.ZodOptional<z.ZodString>;
|
|
12751
12846
|
name: z.ZodString;
|
|
@@ -12776,8 +12871,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12776
12871
|
additionalPrice: z.ZodNumber;
|
|
12777
12872
|
}, z.core.$strict>>>;
|
|
12778
12873
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12779
|
-
}, z.core.$
|
|
12780
|
-
}, z.core.$
|
|
12874
|
+
}, z.core.$strict>>;
|
|
12875
|
+
}, z.core.$strict>>>;
|
|
12781
12876
|
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12782
12877
|
inputId: z.ZodOptional<z.ZodString>;
|
|
12783
12878
|
label: z.ZodString;
|
|
@@ -12795,7 +12890,7 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12795
12890
|
image: "image";
|
|
12796
12891
|
}>>;
|
|
12797
12892
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12798
|
-
}, z.core.$
|
|
12893
|
+
}, z.core.$strict>>>;
|
|
12799
12894
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
12800
12895
|
REGISTERED: "REGISTERED";
|
|
12801
12896
|
NAME: "NAME";
|
|
@@ -12836,7 +12931,7 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12836
12931
|
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12837
12932
|
attributeId: z.ZodString;
|
|
12838
12933
|
value: z.ZodString;
|
|
12839
|
-
}, z.core.$
|
|
12934
|
+
}, z.core.$strict>>>;
|
|
12840
12935
|
refundPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12841
12936
|
preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
|
|
12842
12937
|
returnDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -12869,7 +12964,7 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12869
12964
|
schemaId: z.ZodString;
|
|
12870
12965
|
version: z.ZodOptional<z.ZodNumber>;
|
|
12871
12966
|
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12872
|
-
}, z.core.$
|
|
12967
|
+
}, z.core.$strict>>>;
|
|
12873
12968
|
certifications: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12874
12969
|
subjects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12875
12970
|
subject: z.ZodString;
|
|
@@ -12879,13 +12974,13 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12879
12974
|
EXEMPT: "EXEMPT";
|
|
12880
12975
|
}>;
|
|
12881
12976
|
exemption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12882
|
-
}, z.core.$
|
|
12977
|
+
}, z.core.$strict>>>;
|
|
12883
12978
|
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12884
12979
|
kind: z.ZodString;
|
|
12885
12980
|
agency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12886
12981
|
number: z.ZodString;
|
|
12887
|
-
}, z.core.$
|
|
12888
|
-
}, z.core.$
|
|
12982
|
+
}, z.core.$strict>>>;
|
|
12983
|
+
}, z.core.$strict>>>;
|
|
12889
12984
|
infoSectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12890
12985
|
}, z.core.$strict>;
|
|
12891
12986
|
export type ProductReplaceRequest = z.infer<typeof productReplaceRequestSchema>;
|
|
@@ -13134,7 +13229,7 @@ export declare const productNoticeRequestSchema: z.ZodObject<{
|
|
|
13134
13229
|
schemaId: z.ZodString;
|
|
13135
13230
|
version: z.ZodOptional<z.ZodNumber>;
|
|
13136
13231
|
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13137
|
-
}, z.core.$
|
|
13232
|
+
}, z.core.$strict>;
|
|
13138
13233
|
export type ProductNoticeRequest = z.infer<typeof productNoticeRequestSchema>;
|
|
13139
13234
|
/** 인증 대상 상태 — 서버가 분기한다(대상이면 인증서 필수, 면제면 사유 필수) */
|
|
13140
13235
|
export declare const CERTIFICATION_STATUSES: readonly ["REQUIRED", "NOT_REQUIRED", "EXEMPT"];
|
|
@@ -13162,13 +13257,13 @@ export declare const productCertificationsRequestSchema: z.ZodObject<{
|
|
|
13162
13257
|
EXEMPT: "EXEMPT";
|
|
13163
13258
|
}>;
|
|
13164
13259
|
exemption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13165
|
-
}, z.core.$
|
|
13260
|
+
}, z.core.$strict>>>;
|
|
13166
13261
|
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
13167
13262
|
kind: z.ZodString;
|
|
13168
13263
|
agency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13169
13264
|
number: z.ZodString;
|
|
13170
|
-
}, z.core.$
|
|
13171
|
-
}, z.core.$
|
|
13265
|
+
}, z.core.$strict>>>;
|
|
13266
|
+
}, z.core.$strict>;
|
|
13172
13267
|
export type ProductCertificationsRequest = z.infer<typeof productCertificationsRequestSchema>;
|
|
13173
13268
|
export type ProductCertificationsRequestInput = z.input<typeof productCertificationsRequestSchema>;
|
|
13174
13269
|
/** 상품 하나에 연결할 수 있는 안내 섹션 수 */
|
|
@@ -13379,7 +13474,7 @@ export type SavedOptionSet = z.infer<typeof savedOptionSetSchema>;
|
|
|
13379
13474
|
export declare const savedOptionValueRequestSchema: z.ZodObject<{
|
|
13380
13475
|
name: z.ZodString;
|
|
13381
13476
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
13382
|
-
}, z.core.$
|
|
13477
|
+
}, z.core.$strict>;
|
|
13383
13478
|
export declare const savedOptionGroupRequestSchema: z.ZodObject<{
|
|
13384
13479
|
name: z.ZodString;
|
|
13385
13480
|
kind: z.ZodEnum<{
|
|
@@ -13390,8 +13485,8 @@ export declare const savedOptionGroupRequestSchema: z.ZodObject<{
|
|
|
13390
13485
|
values: z.ZodArray<z.ZodObject<{
|
|
13391
13486
|
name: z.ZodString;
|
|
13392
13487
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
13393
|
-
}, z.core.$
|
|
13394
|
-
}, z.core.$
|
|
13488
|
+
}, z.core.$strict>>;
|
|
13489
|
+
}, z.core.$strict>;
|
|
13395
13490
|
export type SavedOptionGroupRequest = z.infer<typeof savedOptionGroupRequestSchema>;
|
|
13396
13491
|
export declare const savedCustomInputRequestSchema: z.ZodObject<{
|
|
13397
13492
|
label: z.ZodString;
|
|
@@ -13408,7 +13503,7 @@ export declare const savedCustomInputRequestSchema: z.ZodObject<{
|
|
|
13408
13503
|
image: "image";
|
|
13409
13504
|
}>>;
|
|
13410
13505
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
13411
|
-
}, z.core.$
|
|
13506
|
+
}, z.core.$strict>;
|
|
13412
13507
|
/**
|
|
13413
13508
|
* 저장 옵션 만들기·수정 본문. 조합 옵션명은 최대 `MAX_OPTION_GROUPS`개, 추가 선택은 최대 `MAX_ADDON_GROUPS`개이고
|
|
13414
13509
|
* 옵션명과 직접 입력 항목이 모두 비면 400이다. 수정(PUT)은 통째로 바꾼다.
|
|
@@ -13431,8 +13526,8 @@ export declare const savedOptionSetRequestSchema: z.ZodObject<{
|
|
|
13431
13526
|
values: z.ZodArray<z.ZodObject<{
|
|
13432
13527
|
name: z.ZodString;
|
|
13433
13528
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
13434
|
-
}, z.core.$
|
|
13435
|
-
}, z.core.$
|
|
13529
|
+
}, z.core.$strict>>;
|
|
13530
|
+
}, z.core.$strict>>>;
|
|
13436
13531
|
customInputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
13437
13532
|
label: z.ZodString;
|
|
13438
13533
|
placeholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -13448,8 +13543,8 @@ export declare const savedOptionSetRequestSchema: z.ZodObject<{
|
|
|
13448
13543
|
image: "image";
|
|
13449
13544
|
}>>;
|
|
13450
13545
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
13451
|
-
}, z.core.$
|
|
13452
|
-
}, z.core.$
|
|
13546
|
+
}, z.core.$strict>>>;
|
|
13547
|
+
}, z.core.$strict>;
|
|
13453
13548
|
export type SavedOptionSetRequest = z.infer<typeof savedOptionSetRequestSchema>;
|
|
13454
13549
|
export type SavedOptionSetRequestInput = z.input<typeof savedOptionSetRequestSchema>;
|
|
13455
13550
|
/**
|
|
@@ -13464,7 +13559,7 @@ export declare const savedOptionSetFromProductRequestSchema: z.ZodObject<{
|
|
|
13464
13559
|
includeOptions: z.ZodDefault<z.ZodBoolean>;
|
|
13465
13560
|
includeCustomInputs: z.ZodDefault<z.ZodBoolean>;
|
|
13466
13561
|
replaceOptionSetId: z.ZodOptional<z.ZodString>;
|
|
13467
|
-
}, z.core.$
|
|
13562
|
+
}, z.core.$strict>;
|
|
13468
13563
|
export type SavedOptionSetFromProductRequest = z.infer<typeof savedOptionSetFromProductRequestSchema>;
|
|
13469
13564
|
export type SavedOptionSetFromProductRequestInput = z.input<typeof savedOptionSetFromProductRequestSchema>;
|
|
13470
13565
|
export declare const savedOptionSetFromProductResultSchema: z.ZodObject<{
|
|
@@ -15582,8 +15677,8 @@ export type SetStorefrontDeployApprovalRequest = z.infer<typeof setStorefrontDep
|
|
|
15582
15677
|
* - `ai-attachment`: 상점 플랫폼 AI 채팅에 붙이는 자료(이슈 #124). 모델이 읽는 정지 이미지와 PDF만 받는다.
|
|
15583
15678
|
*/
|
|
15584
15679
|
export declare const uploadPurposeSchema: z.ZodEnum<{
|
|
15585
|
-
"product-image": "product-image";
|
|
15586
15680
|
description: "description";
|
|
15681
|
+
"product-image": "product-image";
|
|
15587
15682
|
"flow-attachment": "flow-attachment";
|
|
15588
15683
|
"ai-attachment": "ai-attachment";
|
|
15589
15684
|
}>;
|
|
@@ -15623,8 +15718,8 @@ export declare function uploadRejection(purpose: UploadPurpose, filename: string
|
|
|
15623
15718
|
export declare const uploadRequestSchema: z.ZodObject<{
|
|
15624
15719
|
filename: z.ZodString;
|
|
15625
15720
|
purpose: z.ZodDefault<z.ZodEnum<{
|
|
15626
|
-
"product-image": "product-image";
|
|
15627
15721
|
description: "description";
|
|
15722
|
+
"product-image": "product-image";
|
|
15628
15723
|
"flow-attachment": "flow-attachment";
|
|
15629
15724
|
"ai-attachment": "ai-attachment";
|
|
15630
15725
|
}>>;
|
|
@@ -15703,8 +15798,8 @@ interface StoreAuthServer {
|
|
|
15703
15798
|
resource?: string;
|
|
15704
15799
|
}
|
|
15705
15800
|
interface StoreSessionOptions {
|
|
15706
|
-
/** api 주소(
|
|
15707
|
-
baseUrl
|
|
15801
|
+
/** api 주소(버전 경로 포함) — `userinfo()`의 `GET /me`에 쓴다. 생략하면 운영 주소(`https://api.sayren.io/v1`) */
|
|
15802
|
+
baseUrl?: string;
|
|
15708
15803
|
/** 인가 서버(accounts) 주소들 */
|
|
15709
15804
|
authServer: StoreAuthServer;
|
|
15710
15805
|
/** OAuth public client id (예: avarlabs) */
|
|
@@ -15770,8 +15865,8 @@ export declare function createStoreSession(options: StoreSessionOptions): StoreS
|
|
|
15770
15865
|
//#endregion
|
|
15771
15866
|
//#region src/client.d.ts
|
|
15772
15867
|
interface StoreClientOptions {
|
|
15773
|
-
/**
|
|
15774
|
-
baseUrl
|
|
15868
|
+
/** 관리 API 주소(버전 경로 포함). 생략하면 운영 주소(`SAYREN_API_BASE_URL`, `https://api.sayren.io/v1`) — 개발·로컬에서만 지정한다 */
|
|
15869
|
+
baseUrl?: string;
|
|
15775
15870
|
/**
|
|
15776
15871
|
* 계정 토큰(accounts가 발급한 JWT — 상점 플랫폼 로그인, 개인 액세스 토큰, 연결된 앱의 토큰).
|
|
15777
15872
|
* 계정 API(`/me/*`)와 상점 API 모두에 Bearer로 싣는다. `session`을 주면 생략해도 세션 토큰을 쓴다.
|
|
@@ -23064,14 +23159,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
23064
23159
|
parts: ({
|
|
23065
23160
|
type: "text";
|
|
23066
23161
|
text: string;
|
|
23162
|
+
choice?: string | undefined;
|
|
23067
23163
|
} | {
|
|
23068
23164
|
type: "tool";
|
|
23069
23165
|
toolCallId: string;
|
|
23070
23166
|
name: string;
|
|
23071
23167
|
label: string;
|
|
23072
|
-
status: "
|
|
23168
|
+
status: "unknown" | "error" | "ok";
|
|
23073
23169
|
summary: string | null;
|
|
23074
|
-
activity?: "
|
|
23170
|
+
activity?: "code" | "check" | "version" | "status" | "shipping" | "category" | "brief" | "files" | "preview" | "template" | "site" | "info" | "upload" | "design" | "product" | "verify" | undefined;
|
|
23075
23171
|
target?: string | undefined;
|
|
23076
23172
|
changes?: {
|
|
23077
23173
|
path: string;
|
|
@@ -23082,6 +23178,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
23082
23178
|
kind: "added" | "removed";
|
|
23083
23179
|
text: string;
|
|
23084
23180
|
}[];
|
|
23181
|
+
lines?: [number, number][] | undefined;
|
|
23085
23182
|
}[] | undefined;
|
|
23086
23183
|
} | {
|
|
23087
23184
|
type: "choices";
|
|
@@ -23149,9 +23246,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
23149
23246
|
type: "todos";
|
|
23150
23247
|
todos: {
|
|
23151
23248
|
content: string;
|
|
23152
|
-
status: "pending" | "in_progress" | "completed";
|
|
23249
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
23153
23250
|
id?: string | undefined;
|
|
23154
23251
|
phase?: "STORE" | "STRUCTURE" | "DESIGN" | "ENVIRONMENT" | "BUILD" | "DONE" | undefined;
|
|
23252
|
+
note?: string | undefined;
|
|
23155
23253
|
}[];
|
|
23156
23254
|
})[];
|
|
23157
23255
|
runId: string | null;
|