@sayren/store-sdk 0.36.0 → 0.37.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 CHANGED
@@ -165,8 +165,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
165
165
  }, z.core.$strip>;
166
166
  export type AuditLogPage = z.infer<typeof auditLogPageSchema>;
167
167
  export declare const agentPolicyDecisionSchema: z.ZodEnum<{
168
- DENIED: "DENIED";
169
168
  APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
169
+ DENIED: "DENIED";
170
170
  ALLOW: "ALLOW";
171
171
  }>;
172
172
  export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
@@ -191,8 +191,8 @@ export type WritePreview = z.infer<typeof writePreviewSchema>;
191
191
  export declare const writeDryRunResultSchema: z.ZodObject<{
192
192
  dryRun: z.ZodLiteral<true>;
193
193
  decision: z.ZodEnum<{
194
- DENIED: "DENIED";
195
194
  APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
195
+ DENIED: "DENIED";
196
196
  ALLOW: "ALLOW";
197
197
  }>;
198
198
  reason: z.ZodNullable<z.ZodString>;
@@ -495,10 +495,10 @@ export type AiRun = z.infer<typeof aiRunSchema>;
495
495
  * AI가 지금 하는 일의 종류 — 도구 이름·operationId·파일 경로로 서버가 정한다(상점 만들기 진행 화면이 아이콘·문구를 고른다). 정하지 못한 도구는 없다
496
496
  */
497
497
  export declare const aiActivitySchema: z.ZodEnum<{
498
- check: "check";
499
498
  code: "code";
500
- version: "version";
501
499
  status: "status";
500
+ check: "check";
501
+ version: "version";
502
502
  shipping: "shipping";
503
503
  category: "category";
504
504
  brief: "brief";
@@ -721,16 +721,16 @@ export declare const aiMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
721
721
  name: z.ZodString;
722
722
  label: z.ZodString;
723
723
  status: z.ZodEnum<{
724
- error: "error";
725
724
  unknown: "unknown";
725
+ error: "error";
726
726
  ok: "ok";
727
727
  }>;
728
728
  summary: z.ZodNullable<z.ZodString>;
729
729
  activity: z.ZodOptional<z.ZodEnum<{
730
- check: "check";
731
730
  code: "code";
732
- version: "version";
733
731
  status: "status";
732
+ check: "check";
733
+ version: "version";
734
734
  shipping: "shipping";
735
735
  category: "category";
736
736
  brief: "brief";
@@ -873,16 +873,16 @@ export declare const aiMessageSchema: z.ZodObject<{
873
873
  name: z.ZodString;
874
874
  label: z.ZodString;
875
875
  status: z.ZodEnum<{
876
- error: "error";
877
876
  unknown: "unknown";
877
+ error: "error";
878
878
  ok: "ok";
879
879
  }>;
880
880
  summary: z.ZodNullable<z.ZodString>;
881
881
  activity: z.ZodOptional<z.ZodEnum<{
882
- check: "check";
883
882
  code: "code";
884
- version: "version";
885
883
  status: "status";
884
+ check: "check";
885
+ version: "version";
886
886
  shipping: "shipping";
887
887
  category: "category";
888
888
  brief: "brief";
@@ -1040,16 +1040,16 @@ export declare const aiConversationSchema: z.ZodObject<{
1040
1040
  name: z.ZodString;
1041
1041
  label: z.ZodString;
1042
1042
  status: z.ZodEnum<{
1043
- error: "error";
1044
1043
  unknown: "unknown";
1044
+ error: "error";
1045
1045
  ok: "ok";
1046
1046
  }>;
1047
1047
  summary: z.ZodNullable<z.ZodString>;
1048
1048
  activity: z.ZodOptional<z.ZodEnum<{
1049
- check: "check";
1050
1049
  code: "code";
1051
- version: "version";
1052
1050
  status: "status";
1051
+ check: "check";
1052
+ version: "version";
1053
1053
  shipping: "shipping";
1054
1054
  category: "category";
1055
1055
  brief: "brief";
@@ -1311,6 +1311,7 @@ export declare const aiFocusAreaSchema: z.ZodEnum<{
1311
1311
  addresses: "addresses";
1312
1312
  orders: "orders";
1313
1313
  webhooks: "webhooks";
1314
+ members: "members";
1314
1315
  categories: "categories";
1315
1316
  collections: "collections";
1316
1317
  option_sets: "option_sets";
@@ -1323,7 +1324,6 @@ export declare const aiFocusAreaSchema: z.ZodEnum<{
1323
1324
  store_settings: "store_settings";
1324
1325
  payments: "payments";
1325
1326
  login: "login";
1326
- members: "members";
1327
1327
  order_flows: "order_flows";
1328
1328
  storefront: "storefront";
1329
1329
  }>;
@@ -1335,6 +1335,7 @@ export declare const aiFocusSchema: z.ZodObject<{
1335
1335
  addresses: "addresses";
1336
1336
  orders: "orders";
1337
1337
  webhooks: "webhooks";
1338
+ members: "members";
1338
1339
  categories: "categories";
1339
1340
  collections: "collections";
1340
1341
  option_sets: "option_sets";
@@ -1347,7 +1348,6 @@ export declare const aiFocusSchema: z.ZodObject<{
1347
1348
  store_settings: "store_settings";
1348
1349
  payments: "payments";
1349
1350
  login: "login";
1350
- members: "members";
1351
1351
  order_flows: "order_flows";
1352
1352
  storefront: "storefront";
1353
1353
  }>;
@@ -1518,6 +1518,7 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1518
1518
  addresses: "addresses";
1519
1519
  orders: "orders";
1520
1520
  webhooks: "webhooks";
1521
+ members: "members";
1521
1522
  categories: "categories";
1522
1523
  collections: "collections";
1523
1524
  option_sets: "option_sets";
@@ -1530,17 +1531,16 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1530
1531
  store_settings: "store_settings";
1531
1532
  payments: "payments";
1532
1533
  login: "login";
1533
- members: "members";
1534
1534
  order_flows: "order_flows";
1535
1535
  storefront: "storefront";
1536
1536
  }>;
1537
1537
  id: z.ZodOptional<z.ZodString>;
1538
1538
  }, z.core.$strip>>;
1539
1539
  activity: z.ZodOptional<z.ZodEnum<{
1540
- check: "check";
1541
1540
  code: "code";
1542
- version: "version";
1543
1541
  status: "status";
1542
+ check: "check";
1543
+ version: "version";
1544
1544
  shipping: "shipping";
1545
1545
  category: "category";
1546
1546
  brief: "brief";
@@ -1576,8 +1576,8 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1576
1576
  messageId: z.ZodString;
1577
1577
  toolCallId: z.ZodString;
1578
1578
  status: z.ZodEnum<{
1579
- error: "error";
1580
1579
  unknown: "unknown";
1580
+ error: "error";
1581
1581
  ok: "ok";
1582
1582
  }>;
1583
1583
  summary: z.ZodNullable<z.ZodString>;
@@ -1640,16 +1640,16 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1640
1640
  name: z.ZodString;
1641
1641
  label: z.ZodString;
1642
1642
  status: z.ZodEnum<{
1643
- error: "error";
1644
1643
  unknown: "unknown";
1644
+ error: "error";
1645
1645
  ok: "ok";
1646
1646
  }>;
1647
1647
  summary: z.ZodNullable<z.ZodString>;
1648
1648
  activity: z.ZodOptional<z.ZodEnum<{
1649
- check: "check";
1650
1649
  code: "code";
1651
- version: "version";
1652
1650
  status: "status";
1651
+ check: "check";
1652
+ version: "version";
1653
1653
  shipping: "shipping";
1654
1654
  category: "category";
1655
1655
  brief: "brief";
@@ -1850,6 +1850,7 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
1850
1850
  addresses: "addresses";
1851
1851
  orders: "orders";
1852
1852
  webhooks: "webhooks";
1853
+ members: "members";
1853
1854
  categories: "categories";
1854
1855
  collections: "collections";
1855
1856
  option_sets: "option_sets";
@@ -1862,17 +1863,16 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
1862
1863
  store_settings: "store_settings";
1863
1864
  payments: "payments";
1864
1865
  login: "login";
1865
- members: "members";
1866
1866
  order_flows: "order_flows";
1867
1867
  storefront: "storefront";
1868
1868
  }>;
1869
1869
  id: z.ZodOptional<z.ZodString>;
1870
1870
  }, z.core.$strip>>;
1871
1871
  activity: z.ZodOptional<z.ZodEnum<{
1872
- check: "check";
1873
1872
  code: "code";
1874
- version: "version";
1875
1873
  status: "status";
1874
+ check: "check";
1875
+ version: "version";
1876
1876
  shipping: "shipping";
1877
1877
  category: "category";
1878
1878
  brief: "brief";
@@ -1908,8 +1908,8 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
1908
1908
  messageId: z.ZodString;
1909
1909
  toolCallId: z.ZodString;
1910
1910
  status: z.ZodEnum<{
1911
- error: "error";
1912
1911
  unknown: "unknown";
1912
+ error: "error";
1913
1913
  ok: "ok";
1914
1914
  }>;
1915
1915
  summary: z.ZodNullable<z.ZodString>;
@@ -1972,16 +1972,16 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
1972
1972
  name: z.ZodString;
1973
1973
  label: z.ZodString;
1974
1974
  status: z.ZodEnum<{
1975
- error: "error";
1976
1975
  unknown: "unknown";
1976
+ error: "error";
1977
1977
  ok: "ok";
1978
1978
  }>;
1979
1979
  summary: z.ZodNullable<z.ZodString>;
1980
1980
  activity: z.ZodOptional<z.ZodEnum<{
1981
- check: "check";
1982
1981
  code: "code";
1983
- version: "version";
1984
1982
  status: "status";
1983
+ check: "check";
1984
+ version: "version";
1985
1985
  shipping: "shipping";
1986
1986
  category: "category";
1987
1987
  brief: "brief";
@@ -11662,13 +11662,13 @@ export declare const discountSchema: z.ZodObject<{
11662
11662
  }, z.core.$strip>;
11663
11663
  export type Discount = z.infer<typeof discountSchema>;
11664
11664
  export declare const productSchema: z.ZodObject<{
11665
- salePrice: z.ZodNumber;
11666
11665
  status: z.ZodEnum<{
11667
11666
  SALE: "SALE";
11668
11667
  SUSPENDED: "SUSPENDED";
11669
11668
  OUT_OF_STOCK: "OUT_OF_STOCK";
11670
11669
  CLOSED: "CLOSED";
11671
11670
  }>;
11671
+ salePrice: z.ZodNumber;
11672
11672
  name: z.ZodString;
11673
11673
  stockQuantity: z.ZodNumber;
11674
11674
  categoryId: z.ZodNullable<z.ZodString>;
@@ -12722,9 +12722,9 @@ export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
12722
12722
  export declare const productSortSchema: z.ZodEnum<{
12723
12723
  "createdAt.desc": "createdAt.desc";
12724
12724
  "createdAt.asc": "createdAt.asc";
12725
+ "updatedAt.desc": "updatedAt.desc";
12725
12726
  "salePrice.asc": "salePrice.asc";
12726
12727
  "salePrice.desc": "salePrice.desc";
12727
- "updatedAt.desc": "updatedAt.desc";
12728
12728
  }>;
12729
12729
  export type ProductSort = z.infer<typeof productSortSchema>;
12730
12730
  export interface ProductListParams extends PageParams {
@@ -12753,9 +12753,9 @@ export declare const productListQuerySchema: z.ZodObject<{
12753
12753
  sort: z.ZodOptional<z.ZodEnum<{
12754
12754
  "createdAt.desc": "createdAt.desc";
12755
12755
  "createdAt.asc": "createdAt.asc";
12756
+ "updatedAt.desc": "updatedAt.desc";
12756
12757
  "salePrice.asc": "salePrice.asc";
12757
12758
  "salePrice.desc": "salePrice.desc";
12758
- "updatedAt.desc": "updatedAt.desc";
12759
12759
  }>>;
12760
12760
  }, z.core.$strip>;
12761
12761
  export declare const discountRequestSchema: z.ZodObject<{
@@ -13780,7 +13780,8 @@ export type SellerAddressRequest = z.infer<typeof sellerAddressRequestSchema>;
13780
13780
  * - 502 `STOREFRONT_SANDBOX_UNAVAILABLE` — 편집 Sandbox 호출이 실패했다. 잠시 뒤 다시 한다
13781
13781
  *
13782
13782
  * 소스 내려받기·올리기(#60, `/v1/storefront/site/source/**`, `sayren` CLI):
13783
- * - 409 `SOURCE_CHANGED` — 작업 트리가 내려받은 뒤(`expectedBaseRef`) 바뀌었다(상점 플랫폼·AI 편집). `error.details.currentRef`
13783
+ * - 409 `SOURCE_CHANGED` — 작업 트리가 내려받은 뒤(`expectedBaseRef`) 바뀌었고 같은 파일을 서로 다르게 고쳤다(상점 플랫폼·AI 편집). 겹치지 않으면 서버가
13784
+ * 3-way 병합한다(응답 `merged`). `error.details.currentRef`·`conflicts`(충돌 파일)
13784
13785
  * - 409 `EDIT_SESSION_OPEN` — 편집 환경이 열려 있다. `endEditSession: true`로 끄고 진행할 수 있다
13785
13786
  * - 409 `SOURCE_BLOBS_MISSING` — 올리지 않은 파일 내용이 있다(`error.details.hashes`). `POST source/blobs`로 올리고 다시 한다
13786
13787
  * - 409 `DEPENDENCY_REJECTED` — 쓸 수 없는 npm 의존성이다(`error.details.rejected: [{ name, version, reason, detail }]`)
@@ -13906,6 +13907,8 @@ export declare const storefrontVersionSchema: z.ZodObject<{
13906
13907
  buildId: z.ZodNullable<z.ZodString>;
13907
13908
  createdByType: z.ZodString;
13908
13909
  createdVia: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13910
+ gitRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13911
+ commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13909
13912
  createdAt: z.ZodString;
13910
13913
  previewable: z.ZodOptional<z.ZodBoolean>;
13911
13914
  }, z.core.$strip>;
@@ -13979,6 +13982,7 @@ export declare const storefrontSiteSnapshotSchema: z.ZodObject<{
13979
13982
  export type StorefrontSiteSnapshot = z.infer<typeof storefrontSiteSnapshotSchema>;
13980
13983
  export declare const storefrontSiteSchema: z.ZodObject<{
13981
13984
  siteId: z.ZodString;
13985
+ deployWithoutApproval: z.ZodOptional<z.ZodBoolean>;
13982
13986
  slug: z.ZodString;
13983
13987
  hostname: z.ZodString;
13984
13988
  url: z.ZodString;
@@ -14029,6 +14033,8 @@ export declare const storefrontSiteSchema: z.ZodObject<{
14029
14033
  buildId: z.ZodNullable<z.ZodString>;
14030
14034
  createdByType: z.ZodString;
14031
14035
  createdVia: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14036
+ gitRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14037
+ commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14032
14038
  createdAt: z.ZodString;
14033
14039
  previewable: z.ZodOptional<z.ZodBoolean>;
14034
14040
  }, z.core.$strip>>;
@@ -14065,6 +14071,7 @@ export declare const storefrontHostingSchema: z.ZodObject<{
14065
14071
  editingEnabled: z.ZodBoolean;
14066
14072
  site: z.ZodNullable<z.ZodObject<{
14067
14073
  siteId: z.ZodString;
14074
+ deployWithoutApproval: z.ZodOptional<z.ZodBoolean>;
14068
14075
  slug: z.ZodString;
14069
14076
  hostname: z.ZodString;
14070
14077
  url: z.ZodString;
@@ -14115,6 +14122,8 @@ export declare const storefrontHostingSchema: z.ZodObject<{
14115
14122
  buildId: z.ZodNullable<z.ZodString>;
14116
14123
  createdByType: z.ZodString;
14117
14124
  createdVia: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14125
+ gitRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14126
+ commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14118
14127
  createdAt: z.ZodString;
14119
14128
  previewable: z.ZodOptional<z.ZodBoolean>;
14120
14129
  }, z.core.$strip>>;
@@ -14962,6 +14971,8 @@ export declare const storefrontVersionCreatedSchema: z.ZodObject<{
14962
14971
  buildId: z.ZodNullable<z.ZodString>;
14963
14972
  createdByType: z.ZodString;
14964
14973
  createdVia: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14974
+ gitRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14975
+ commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14965
14976
  createdAt: z.ZodString;
14966
14977
  previewable: z.ZodOptional<z.ZodBoolean>;
14967
14978
  }, z.core.$strip>;
@@ -15146,6 +15157,8 @@ export declare const storefrontSourceReplacedSchema: z.ZodObject<{
15146
15157
  files: z.ZodNumber;
15147
15158
  bytes: z.ZodNumber;
15148
15159
  changed: z.ZodBoolean;
15160
+ merged: z.ZodOptional<z.ZodBoolean>;
15161
+ uploadedRef: z.ZodOptional<z.ZodString>;
15149
15162
  endedEditSession: z.ZodBoolean;
15150
15163
  dependencyWarnings: z.ZodArray<z.ZodObject<{
15151
15164
  name: z.ZodString;
@@ -15161,6 +15174,62 @@ export declare const storefrontSourceReplacedSchema: z.ZodObject<{
15161
15174
  }, z.core.$strip>>;
15162
15175
  }, z.core.$strip>;
15163
15176
  export type StorefrontSourceReplaced = z.infer<typeof storefrontSourceReplacedSchema>;
15177
+ /**
15178
+ * `GET /v1/storefront/site/git` — 사이트의 Git 원천. 발행한 소스는 GitHub 저장소 main에 있다(사내 저장소 또는 셀러가 연결한 저장소).
15179
+ * 연결 전이면 필드가 null이다
15180
+ */
15181
+ export declare const storefrontGitStatusSchema: z.ZodObject<{
15182
+ provider: z.ZodNullable<z.ZodEnum<{
15183
+ GITHUB: "GITHUB";
15184
+ }>>;
15185
+ owner: z.ZodNullable<z.ZodEnum<{
15186
+ SELLER: "SELLER";
15187
+ SAYREN: "SAYREN";
15188
+ }>>;
15189
+ repository: z.ZodNullable<z.ZodString>;
15190
+ productionBranch: z.ZodNullable<z.ZodString>;
15191
+ rootDirectory: z.ZodNullable<z.ZodString>;
15192
+ connectedAt: z.ZodNullable<z.ZodString>;
15193
+ headCommitSha: z.ZodNullable<z.ZodString>;
15194
+ mainChanged: z.ZodBoolean;
15195
+ autoPromotePaused: z.ZodBoolean;
15196
+ publishPending: z.ZodBoolean;
15197
+ publishErrorCode: z.ZodNullable<z.ZodString>;
15198
+ archivedWorkRef: z.ZodNullable<z.ZodString>;
15199
+ }, z.core.$strip>;
15200
+ export type StorefrontGitStatus = z.infer<typeof storefrontGitStatusSchema>;
15201
+ export declare const storefrontGitRepositorySchema: z.ZodObject<{
15202
+ repoId: z.ZodNumber;
15203
+ fullName: z.ZodString;
15204
+ defaultBranch: z.ZodString;
15205
+ }, z.core.$strip>;
15206
+ export type StorefrontGitRepository = z.infer<typeof storefrontGitRepositorySchema>;
15207
+ /** `POST /v1/storefront/site/git/installations` — GitHub App 설치 화면에서 돌아온 값(`installation_id`·`code`) */
15208
+ export declare const linkStorefrontGitInstallationRequestSchema: z.ZodObject<{
15209
+ installationId: z.ZodNumber;
15210
+ code: z.ZodString;
15211
+ state: z.ZodString;
15212
+ }, z.core.$strip>;
15213
+ /** `POST /v1/storefront/site/git/installations/state` — GitHub 설치 화면에 싣는 1회용 state(이 상점·사용자, 10분) */
15214
+ export declare const storefrontGitConnectStateSchema: z.ZodObject<{
15215
+ state: z.ZodString;
15216
+ expiresAt: z.ZodString;
15217
+ }, z.core.$strip>;
15218
+ export type StorefrontGitConnectState = z.infer<typeof storefrontGitConnectStateSchema>;
15219
+ export type LinkStorefrontGitInstallationRequest = z.infer<typeof linkStorefrontGitInstallationRequestSchema>;
15220
+ /** `POST /v1/storefront/site/git/connect` */
15221
+ export declare const connectStorefrontGitRequestSchema: z.ZodObject<{
15222
+ installationId: z.ZodNumber;
15223
+ repoId: z.ZodNumber;
15224
+ productionBranch: z.ZodOptional<z.ZodString>;
15225
+ rootDirectory: z.ZodOptional<z.ZodString>;
15226
+ }, z.core.$strip>;
15227
+ export type ConnectStorefrontGitRequest = z.infer<typeof connectStorefrontGitRequestSchema>;
15228
+ /** `PUT /v1/storefront/site/deploy-approval` — 승인 없이 배포(#138) */
15229
+ export declare const setStorefrontDeployApprovalRequestSchema: z.ZodObject<{
15230
+ deployWithoutApproval: z.ZodBoolean;
15231
+ }, z.core.$strip>;
15232
+ export type SetStorefrontDeployApprovalRequest = z.infer<typeof setStorefrontDeployApprovalRequestSchema>;
15164
15233
  //#endregion
15165
15234
  //#region src/schemas/upload.d.ts
15166
15235
  /**
@@ -15461,8 +15530,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
15461
15530
  }[];
15462
15531
  }>;
15463
15532
  get: (productId: string) => Promise<{
15464
- salePrice: number;
15465
15533
  status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
15534
+ salePrice: number;
15466
15535
  name: string;
15467
15536
  stockQuantity: number;
15468
15537
  categoryId: string | null;
@@ -15610,8 +15679,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
15610
15679
  createdAt?: string | undefined;
15611
15680
  }>;
15612
15681
  create: (body: ProductCreateRequestInput, idempotencyKey?: string) => Promise<{
15613
- salePrice: number;
15614
15682
  status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
15683
+ salePrice: number;
15615
15684
  name: string;
15616
15685
  stockQuantity: number;
15617
15686
  categoryId: string | null;
@@ -15759,8 +15828,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
15759
15828
  createdAt?: string | undefined;
15760
15829
  }>;
15761
15830
  update: (productId: string, body: ProductReplaceRequestInput) => Promise<{
15762
- salePrice: number;
15763
15831
  status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
15832
+ salePrice: number;
15764
15833
  name: string;
15765
15834
  stockQuantity: number;
15766
15835
  categoryId: string | null;
@@ -22481,9 +22550,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
22481
22550
  toolCallId: string;
22482
22551
  name: string;
22483
22552
  label: string;
22484
- status: "error" | "unknown" | "ok";
22553
+ status: "unknown" | "error" | "ok";
22485
22554
  summary: string | null;
22486
- activity?: "check" | "code" | "version" | "status" | "shipping" | "category" | "brief" | "files" | "preview" | "template" | "site" | "info" | "upload" | "design" | "product" | "verify" | undefined;
22555
+ activity?: "code" | "status" | "check" | "version" | "shipping" | "category" | "brief" | "files" | "preview" | "template" | "site" | "info" | "upload" | "design" | "product" | "verify" | undefined;
22487
22556
  target?: string | undefined;
22488
22557
  changes?: {
22489
22558
  path: string;
@@ -22707,6 +22776,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
22707
22776
  createdByType: string;
22708
22777
  createdAt: string;
22709
22778
  createdVia?: string | null | undefined;
22779
+ gitRef?: string | null | undefined;
22780
+ commitSha?: string | null | undefined;
22710
22781
  previewable?: boolean | undefined;
22711
22782
  } | null;
22712
22783
  provisioning: {
@@ -22720,6 +22791,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
22720
22791
  slugChangesRemaining: number;
22721
22792
  createdAt: string;
22722
22793
  updatedAt: string;
22794
+ deployWithoutApproval?: boolean | undefined;
22723
22795
  suspension?: {
22724
22796
  reason: string | null;
22725
22797
  suspendedAt: string | null;
@@ -22771,6 +22843,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
22771
22843
  createdByType: string;
22772
22844
  createdAt: string;
22773
22845
  createdVia?: string | null | undefined;
22846
+ gitRef?: string | null | undefined;
22847
+ commitSha?: string | null | undefined;
22774
22848
  previewable?: boolean | undefined;
22775
22849
  } | null;
22776
22850
  provisioning: {
@@ -22784,6 +22858,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
22784
22858
  slugChangesRemaining: number;
22785
22859
  createdAt: string;
22786
22860
  updatedAt: string;
22861
+ deployWithoutApproval?: boolean | undefined;
22787
22862
  suspension?: {
22788
22863
  reason: string | null;
22789
22864
  suspendedAt: string | null;
@@ -22873,6 +22948,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
22873
22948
  createdByType: string;
22874
22949
  createdAt: string;
22875
22950
  createdVia?: string | null | undefined;
22951
+ gitRef?: string | null | undefined;
22952
+ commitSha?: string | null | undefined;
22876
22953
  previewable?: boolean | undefined;
22877
22954
  } | null;
22878
22955
  provisioning: {
@@ -22886,6 +22963,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
22886
22963
  slugChangesRemaining: number;
22887
22964
  createdAt: string;
22888
22965
  updatedAt: string;
22966
+ deployWithoutApproval?: boolean | undefined;
22889
22967
  suspension?: {
22890
22968
  reason: string | null;
22891
22969
  suspendedAt: string | null;
@@ -22911,6 +22989,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
22911
22989
  createdByType: string;
22912
22990
  createdAt: string;
22913
22991
  createdVia?: string | null | undefined;
22992
+ gitRef?: string | null | undefined;
22993
+ commitSha?: string | null | undefined;
22914
22994
  previewable?: boolean | undefined;
22915
22995
  }[]>;
22916
22996
  /** `POST /v1/storefront/site/versions/{versionId}/publish` — 그 버전을 발행한다(이미 발행돼 있으면 그대로 200) */
@@ -22944,6 +23024,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
22944
23024
  createdByType: string;
22945
23025
  createdAt: string;
22946
23026
  createdVia?: string | null | undefined;
23027
+ gitRef?: string | null | undefined;
23028
+ commitSha?: string | null | undefined;
22947
23029
  previewable?: boolean | undefined;
22948
23030
  } | null;
22949
23031
  provisioning: {
@@ -22957,6 +23039,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
22957
23039
  slugChangesRemaining: number;
22958
23040
  createdAt: string;
22959
23041
  updatedAt: string;
23042
+ deployWithoutApproval?: boolean | undefined;
22960
23043
  suspension?: {
22961
23044
  reason: string | null;
22962
23045
  suspendedAt: string | null;
@@ -22998,6 +23081,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
22998
23081
  createdByType: string;
22999
23082
  createdAt: string;
23000
23083
  createdVia?: string | null | undefined;
23084
+ gitRef?: string | null | undefined;
23085
+ commitSha?: string | null | undefined;
23001
23086
  previewable?: boolean | undefined;
23002
23087
  } | null;
23003
23088
  provisioning: {
@@ -23011,6 +23096,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
23011
23096
  slugChangesRemaining: number;
23012
23097
  createdAt: string;
23013
23098
  updatedAt: string;
23099
+ deployWithoutApproval?: boolean | undefined;
23014
23100
  suspension?: {
23015
23101
  reason: string | null;
23016
23102
  suspendedAt: string | null;
@@ -23052,6 +23138,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
23052
23138
  createdByType: string;
23053
23139
  createdAt: string;
23054
23140
  createdVia?: string | null | undefined;
23141
+ gitRef?: string | null | undefined;
23142
+ commitSha?: string | null | undefined;
23055
23143
  previewable?: boolean | undefined;
23056
23144
  } | null;
23057
23145
  provisioning: {
@@ -23065,6 +23153,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
23065
23153
  slugChangesRemaining: number;
23066
23154
  createdAt: string;
23067
23155
  updatedAt: string;
23156
+ deployWithoutApproval?: boolean | undefined;
23068
23157
  suspension?: {
23069
23158
  reason: string | null;
23070
23159
  suspendedAt: string | null;
@@ -23106,6 +23195,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
23106
23195
  createdByType: string;
23107
23196
  createdAt: string;
23108
23197
  createdVia?: string | null | undefined;
23198
+ gitRef?: string | null | undefined;
23199
+ commitSha?: string | null | undefined;
23109
23200
  previewable?: boolean | undefined;
23110
23201
  } | null;
23111
23202
  provisioning: {
@@ -23119,6 +23210,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
23119
23210
  slugChangesRemaining: number;
23120
23211
  createdAt: string;
23121
23212
  updatedAt: string;
23213
+ deployWithoutApproval?: boolean | undefined;
23122
23214
  suspension?: {
23123
23215
  reason: string | null;
23124
23216
  suspendedAt: string | null;
@@ -23308,6 +23400,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
23308
23400
  createdByType: string;
23309
23401
  createdAt: string;
23310
23402
  createdVia?: string | null | undefined;
23403
+ gitRef?: string | null | undefined;
23404
+ commitSha?: string | null | undefined;
23311
23405
  previewable?: boolean | undefined;
23312
23406
  } | null;
23313
23407
  provisioning: {
@@ -23321,6 +23415,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
23321
23415
  slugChangesRemaining: number;
23322
23416
  createdAt: string;
23323
23417
  updatedAt: string;
23418
+ deployWithoutApproval?: boolean | undefined;
23324
23419
  suspension?: {
23325
23420
  reason: string | null;
23326
23421
  suspendedAt: string | null;
@@ -23553,6 +23648,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
23553
23648
  createdByType: string;
23554
23649
  createdAt: string;
23555
23650
  createdVia?: string | null | undefined;
23651
+ gitRef?: string | null | undefined;
23652
+ commitSha?: string | null | undefined;
23556
23653
  previewable?: boolean | undefined;
23557
23654
  };
23558
23655
  build: {
@@ -23851,6 +23948,127 @@ export declare function createStoreClient(options: StoreClientOptions): {
23851
23948
  title: string;
23852
23949
  } | null | undefined;
23853
23950
  }[];
23951
+ merged?: boolean | undefined;
23952
+ uploadedRef?: string | undefined;
23953
+ }>;
23954
+ /** `PUT /v1/storefront/site/deploy-approval` — 승인 없이 배포(상점 플랫폼 OWNER·ADMIN 전용) */
23955
+ setDeployApproval: (body: SetStorefrontDeployApprovalRequest) => Promise<{
23956
+ siteId: string;
23957
+ slug: string;
23958
+ hostname: string;
23959
+ url: string;
23960
+ domains: {
23961
+ hostname: string;
23962
+ kind: "PLATFORM" | "CUSTOM";
23963
+ status: "ACTIVE" | "HELD";
23964
+ isPrimary: boolean;
23965
+ holdUntil: string | null;
23966
+ }[];
23967
+ templateId: string;
23968
+ sourceMode: "CUSTOM" | "MANAGED";
23969
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
23970
+ visibility: "COMING_SOON" | "PUBLIC";
23971
+ publishedVersion: {
23972
+ versionId: string;
23973
+ number: number;
23974
+ templateId: string;
23975
+ templateVersion: string;
23976
+ status: "FAILED" | "BUILDING" | "READY";
23977
+ published: boolean;
23978
+ publishedAt: string | null;
23979
+ message: string | null;
23980
+ source: "TEMPLATE" | "EDIT";
23981
+ buildId: string | null;
23982
+ createdByType: string;
23983
+ createdAt: string;
23984
+ createdVia?: string | null | undefined;
23985
+ gitRef?: string | null | undefined;
23986
+ commitSha?: string | null | undefined;
23987
+ previewable?: boolean | undefined;
23988
+ } | null;
23989
+ provisioning: {
23990
+ status: "PENDING" | "FAILED" | "SYNCED";
23991
+ lastErrorCode: string | null;
23992
+ syncedAt: string | null;
23993
+ };
23994
+ editPreview: {
23995
+ hostname: string | null;
23996
+ };
23997
+ slugChangesRemaining: number;
23998
+ createdAt: string;
23999
+ updatedAt: string;
24000
+ deployWithoutApproval?: boolean | undefined;
24001
+ suspension?: {
24002
+ reason: string | null;
24003
+ suspendedAt: string | null;
24004
+ } | null | undefined;
24005
+ snapshot?: {
24006
+ url: string;
24007
+ versionId: string | null;
24008
+ capturedAt: string | null;
24009
+ } | null | undefined;
24010
+ }>;
24011
+ /** `GET /v1/storefront/site/git` — Git 원천(발행 소스를 둔 저장소)과 상태(#138) */
24012
+ getGit: () => Promise<{
24013
+ provider: "GITHUB" | null;
24014
+ owner: "SELLER" | "SAYREN" | null;
24015
+ repository: string | null;
24016
+ productionBranch: string | null;
24017
+ rootDirectory: string | null;
24018
+ connectedAt: string | null;
24019
+ headCommitSha: string | null;
24020
+ mainChanged: boolean;
24021
+ autoPromotePaused: boolean;
24022
+ publishPending: boolean;
24023
+ publishErrorCode: string | null;
24024
+ archivedWorkRef: string | null;
24025
+ }>;
24026
+ /** `POST /v1/storefront/site/git/installations/state` — GitHub 설치 화면에 싣는 1회용 state(상점 플랫폼 전용) */
24027
+ createGitConnectState: () => Promise<{
24028
+ state: string;
24029
+ expiresAt: string;
24030
+ }>;
24031
+ /** `POST /v1/storefront/site/git/installations` — GitHub App 설치 확인(상점 플랫폼 전용) → 그 설치의 저장소 */
24032
+ linkGitInstallation: (body: LinkStorefrontGitInstallationRequest) => Promise<{
24033
+ repoId: number;
24034
+ fullName: string;
24035
+ defaultBranch: string;
24036
+ }[]>;
24037
+ /** `GET /v1/storefront/site/git/installations/{installationId}/repositories` — 확인한 설치의 저장소(상점 플랫폼 전용) */
24038
+ listGitRepositories: (installationId: number) => Promise<{
24039
+ repoId: number;
24040
+ fullName: string;
24041
+ defaultBranch: string;
24042
+ }[]>;
24043
+ /** `POST /v1/storefront/site/git/connect` — 셀러 GitHub 저장소 연결(상점 플랫폼 전용) */
24044
+ connectGit: (body: ConnectStorefrontGitRequest) => Promise<{
24045
+ provider: "GITHUB" | null;
24046
+ owner: "SELLER" | "SAYREN" | null;
24047
+ repository: string | null;
24048
+ productionBranch: string | null;
24049
+ rootDirectory: string | null;
24050
+ connectedAt: string | null;
24051
+ headCommitSha: string | null;
24052
+ mainChanged: boolean;
24053
+ autoPromotePaused: boolean;
24054
+ publishPending: boolean;
24055
+ publishErrorCode: string | null;
24056
+ archivedWorkRef: string | null;
24057
+ }>;
24058
+ /** `POST /v1/storefront/site/git/disconnect` — 연결 해제(sayren 저장소로 되돌림, 상점 플랫폼 전용) */
24059
+ disconnectGit: () => Promise<{
24060
+ provider: "GITHUB" | null;
24061
+ owner: "SELLER" | "SAYREN" | null;
24062
+ repository: string | null;
24063
+ productionBranch: string | null;
24064
+ rootDirectory: string | null;
24065
+ connectedAt: string | null;
24066
+ headCommitSha: string | null;
24067
+ mainChanged: boolean;
24068
+ autoPromotePaused: boolean;
24069
+ publishPending: boolean;
24070
+ publishErrorCode: string | null;
24071
+ archivedWorkRef: string | null;
23854
24072
  }>;
23855
24073
  };
23856
24074
  subscription: {
@@ -23885,12 +24103,16 @@ export declare function createStoreClient(options: StoreClientOptions): {
23885
24103
  storefrontPreviewHoursMonthly: number | null;
23886
24104
  storefrontBuildMinutesMonthly: number | null;
23887
24105
  adminApiRequestsMonthly: number | null;
24106
+ publicApps?: number | null | undefined;
24107
+ privateApps?: number | null | undefined;
24108
+ aiCreditsMonthly?: number | null | undefined;
23888
24109
  };
23889
24110
  features: {
23890
24111
  adminApi: boolean;
23891
24112
  analytics: boolean;
23892
24113
  storeClone: boolean;
23893
24114
  removeBadge: boolean;
24115
+ members?: boolean | undefined;
23894
24116
  };
23895
24117
  usage: {
23896
24118
  liveOrders: number;
@@ -23904,6 +24126,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
23904
24126
  seats: number;
23905
24127
  customDomains: number;
23906
24128
  webhooks: number;
24129
+ publicApps?: number | undefined;
24130
+ privateApps?: number | undefined;
23907
24131
  };
23908
24132
  aiActions: {
23909
24133
  limit: number | null;
@@ -23916,6 +24140,16 @@ export declare function createStoreClient(options: StoreClientOptions): {
23916
24140
  resetsAt: string;
23917
24141
  };
23918
24142
  salesFeePercent: 0;
24143
+ aiCredits?: {
24144
+ monthly: number | null;
24145
+ granted: number;
24146
+ used: number;
24147
+ remaining: number | null;
24148
+ resetsAt: string;
24149
+ monthlyUsed?: number | undefined;
24150
+ purchased?: number | undefined;
24151
+ complimentary?: number | undefined;
24152
+ } | undefined;
23919
24153
  }>;
23920
24154
  };
23921
24155
  plans: {
@@ -23940,12 +24174,16 @@ export declare function createStoreClient(options: StoreClientOptions): {
23940
24174
  };
23941
24175
  };
23942
24176
  entitlements: {
24177
+ "features.members": boolean;
23943
24178
  "features.admin_api": boolean;
23944
24179
  "features.analytics": boolean;
23945
24180
  "limits.ai_reads_monthly": number | null;
23946
24181
  "limits.ai_actions_monthly": number | null;
23947
24182
  "limits.custom_domains": number | null;
23948
24183
  "limits.webhooks": number | null;
24184
+ "limits.public_apps": number | null;
24185
+ "limits.private_apps": number | null;
24186
+ "limits.ai_credits_monthly": number | null;
23949
24187
  "limits.storefront_preview_hours_monthly": number | null;
23950
24188
  "limits.storefront_build_minutes_monthly": number | null;
23951
24189
  "limits.storefront_requests_monthly": number | null;
@@ -24664,6 +24902,159 @@ export declare function normalizeLocale(value: string | null | undefined): strin
24664
24902
  export declare const DEFAULT_STORE_LOCALE = "ko";
24665
24903
  export declare const localeCodeSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
24666
24904
  //#endregion
24905
+ //#region src/schemas/plans.d.ts
24906
+ /**
24907
+ * 요금제 기능 키 값 — 요금제 비교표·상점 플랫폼 요금제 화면이 쓴다. 키는 서버 판정의 기능 키와 같다(추가만 한다). 상위 요금제는 하위 요금제
24908
+ * 기능을 모두 포함한다
24909
+ */
24910
+ export declare const planEntitlementsSchema: z.ZodObject<{
24911
+ "features.members": z.ZodBoolean;
24912
+ "features.admin_api": z.ZodBoolean;
24913
+ "features.analytics": z.ZodBoolean;
24914
+ "limits.ai_reads_monthly": z.ZodNullable<z.ZodNumber>;
24915
+ "limits.ai_actions_monthly": z.ZodNullable<z.ZodNumber>;
24916
+ "limits.custom_domains": z.ZodNullable<z.ZodNumber>;
24917
+ "limits.webhooks": z.ZodNullable<z.ZodNumber>;
24918
+ "limits.public_apps": z.ZodNullable<z.ZodNumber>;
24919
+ "limits.private_apps": z.ZodNullable<z.ZodNumber>;
24920
+ "limits.ai_credits_monthly": z.ZodNullable<z.ZodNumber>;
24921
+ "limits.storefront_preview_hours_monthly": z.ZodNullable<z.ZodNumber>;
24922
+ "limits.storefront_build_minutes_monthly": z.ZodNullable<z.ZodNumber>;
24923
+ "limits.storefront_requests_monthly": z.ZodNullable<z.ZodNumber>;
24924
+ "limits.admin_api_requests_monthly": z.ZodNullable<z.ZodNumber>;
24925
+ "rate_limit.admin_api": z.ZodNullable<z.ZodNumber>;
24926
+ "storefront.cpu_ms": z.ZodNumber;
24927
+ "storefront.subrequests": z.ZodNumber;
24928
+ "storefront.rate_limit_per_minute": z.ZodNumber;
24929
+ "seats.included": z.ZodNullable<z.ZodNumber>;
24930
+ "retention.analytics_days": z.ZodNumber;
24931
+ "retention.api_logs_days": z.ZodNullable<z.ZodNumber>;
24932
+ "retention.audit_days": z.ZodNullable<z.ZodNumber>;
24933
+ "support.tier": z.ZodUnion<readonly [z.ZodEnum<{
24934
+ EMAIL: "EMAIL";
24935
+ COMMUNITY: "COMMUNITY";
24936
+ EMAIL_PRIORITY: "EMAIL_PRIORITY";
24937
+ DEDICATED: "DEDICATED";
24938
+ SLA: "SLA";
24939
+ }>, z.ZodString]>;
24940
+ }, z.core.$strip>;
24941
+ export type PlanEntitlementValues = z.infer<typeof planEntitlementsSchema>;
24942
+ /** 공개 요금제 한 줄 — `GET /v1/public/plans` */
24943
+ export declare const publicPlanSchema: z.ZodObject<{
24944
+ code: z.ZodUnion<readonly [z.ZodEnum<{
24945
+ FREE: "FREE";
24946
+ BASIC: "BASIC";
24947
+ BETA: "BETA";
24948
+ PRO: "PRO";
24949
+ BUSINESS: "BUSINESS";
24950
+ ENTERPRISE: "ENTERPRISE";
24951
+ PREMIUM: "PREMIUM";
24952
+ }>, z.ZodString]>;
24953
+ name: z.ZodString;
24954
+ version: z.ZodNumber;
24955
+ sort: z.ZodNumber;
24956
+ purchasable: z.ZodBoolean;
24957
+ prices: z.ZodObject<{
24958
+ currency: z.ZodLiteral<"KRW">;
24959
+ monthly: z.ZodNullable<z.ZodNumber>;
24960
+ startingAt: z.ZodBoolean;
24961
+ vatIncluded: z.ZodObject<{
24962
+ monthly: z.ZodNullable<z.ZodNumber>;
24963
+ }, z.core.$strip>;
24964
+ }, z.core.$strip>;
24965
+ entitlements: z.ZodObject<{
24966
+ "features.members": z.ZodBoolean;
24967
+ "features.admin_api": z.ZodBoolean;
24968
+ "features.analytics": z.ZodBoolean;
24969
+ "limits.ai_reads_monthly": z.ZodNullable<z.ZodNumber>;
24970
+ "limits.ai_actions_monthly": z.ZodNullable<z.ZodNumber>;
24971
+ "limits.custom_domains": z.ZodNullable<z.ZodNumber>;
24972
+ "limits.webhooks": z.ZodNullable<z.ZodNumber>;
24973
+ "limits.public_apps": z.ZodNullable<z.ZodNumber>;
24974
+ "limits.private_apps": z.ZodNullable<z.ZodNumber>;
24975
+ "limits.ai_credits_monthly": z.ZodNullable<z.ZodNumber>;
24976
+ "limits.storefront_preview_hours_monthly": z.ZodNullable<z.ZodNumber>;
24977
+ "limits.storefront_build_minutes_monthly": z.ZodNullable<z.ZodNumber>;
24978
+ "limits.storefront_requests_monthly": z.ZodNullable<z.ZodNumber>;
24979
+ "limits.admin_api_requests_monthly": z.ZodNullable<z.ZodNumber>;
24980
+ "rate_limit.admin_api": z.ZodNullable<z.ZodNumber>;
24981
+ "storefront.cpu_ms": z.ZodNumber;
24982
+ "storefront.subrequests": z.ZodNumber;
24983
+ "storefront.rate_limit_per_minute": z.ZodNumber;
24984
+ "seats.included": z.ZodNullable<z.ZodNumber>;
24985
+ "retention.analytics_days": z.ZodNumber;
24986
+ "retention.api_logs_days": z.ZodNullable<z.ZodNumber>;
24987
+ "retention.audit_days": z.ZodNullable<z.ZodNumber>;
24988
+ "support.tier": z.ZodUnion<readonly [z.ZodEnum<{
24989
+ EMAIL: "EMAIL";
24990
+ COMMUNITY: "COMMUNITY";
24991
+ EMAIL_PRIORITY: "EMAIL_PRIORITY";
24992
+ DEDICATED: "DEDICATED";
24993
+ SLA: "SLA";
24994
+ }>, z.ZodString]>;
24995
+ }, z.core.$strip>;
24996
+ }, z.core.$strip>;
24997
+ export type PublicPlan = z.infer<typeof publicPlanSchema>;
24998
+ /** 요금제 비교표 — `GET /v1/public/plans`(인증 없음, 캐시 가능). 값은 서버가 관리하고 언제든 바뀔 수 있다 */
24999
+ export declare const publicPlansSchema: z.ZodObject<{
25000
+ vatPercent: z.ZodNumber;
25001
+ plans: z.ZodArray<z.ZodObject<{
25002
+ code: z.ZodUnion<readonly [z.ZodEnum<{
25003
+ FREE: "FREE";
25004
+ BASIC: "BASIC";
25005
+ BETA: "BETA";
25006
+ PRO: "PRO";
25007
+ BUSINESS: "BUSINESS";
25008
+ ENTERPRISE: "ENTERPRISE";
25009
+ PREMIUM: "PREMIUM";
25010
+ }>, z.ZodString]>;
25011
+ name: z.ZodString;
25012
+ version: z.ZodNumber;
25013
+ sort: z.ZodNumber;
25014
+ purchasable: z.ZodBoolean;
25015
+ prices: z.ZodObject<{
25016
+ currency: z.ZodLiteral<"KRW">;
25017
+ monthly: z.ZodNullable<z.ZodNumber>;
25018
+ startingAt: z.ZodBoolean;
25019
+ vatIncluded: z.ZodObject<{
25020
+ monthly: z.ZodNullable<z.ZodNumber>;
25021
+ }, z.core.$strip>;
25022
+ }, z.core.$strip>;
25023
+ entitlements: z.ZodObject<{
25024
+ "features.members": z.ZodBoolean;
25025
+ "features.admin_api": z.ZodBoolean;
25026
+ "features.analytics": z.ZodBoolean;
25027
+ "limits.ai_reads_monthly": z.ZodNullable<z.ZodNumber>;
25028
+ "limits.ai_actions_monthly": z.ZodNullable<z.ZodNumber>;
25029
+ "limits.custom_domains": z.ZodNullable<z.ZodNumber>;
25030
+ "limits.webhooks": z.ZodNullable<z.ZodNumber>;
25031
+ "limits.public_apps": z.ZodNullable<z.ZodNumber>;
25032
+ "limits.private_apps": z.ZodNullable<z.ZodNumber>;
25033
+ "limits.ai_credits_monthly": z.ZodNullable<z.ZodNumber>;
25034
+ "limits.storefront_preview_hours_monthly": z.ZodNullable<z.ZodNumber>;
25035
+ "limits.storefront_build_minutes_monthly": z.ZodNullable<z.ZodNumber>;
25036
+ "limits.storefront_requests_monthly": z.ZodNullable<z.ZodNumber>;
25037
+ "limits.admin_api_requests_monthly": z.ZodNullable<z.ZodNumber>;
25038
+ "rate_limit.admin_api": z.ZodNullable<z.ZodNumber>;
25039
+ "storefront.cpu_ms": z.ZodNumber;
25040
+ "storefront.subrequests": z.ZodNumber;
25041
+ "storefront.rate_limit_per_minute": z.ZodNumber;
25042
+ "seats.included": z.ZodNullable<z.ZodNumber>;
25043
+ "retention.analytics_days": z.ZodNumber;
25044
+ "retention.api_logs_days": z.ZodNullable<z.ZodNumber>;
25045
+ "retention.audit_days": z.ZodNullable<z.ZodNumber>;
25046
+ "support.tier": z.ZodUnion<readonly [z.ZodEnum<{
25047
+ EMAIL: "EMAIL";
25048
+ COMMUNITY: "COMMUNITY";
25049
+ EMAIL_PRIORITY: "EMAIL_PRIORITY";
25050
+ DEDICATED: "DEDICATED";
25051
+ SLA: "SLA";
25052
+ }>, z.ZodString]>;
25053
+ }, z.core.$strip>;
25054
+ }, z.core.$strip>>;
25055
+ }, z.core.$strip>;
25056
+ export type PublicPlans = z.infer<typeof publicPlansSchema>;
25057
+ //#endregion
24667
25058
  //#region src/schemas/promotion.d.ts
24668
25059
  /** 쿠폰 종류 */
24669
25060
  export declare const couponKindSchema: z.ZodEnum<{
@@ -25802,6 +26193,9 @@ export declare const subscriptionLimitsSchema: z.ZodObject<{
25802
26193
  storefrontPreviewHoursMonthly: z.ZodNullable<z.ZodNumber>;
25803
26194
  storefrontBuildMinutesMonthly: z.ZodNullable<z.ZodNumber>;
25804
26195
  adminApiRequestsMonthly: z.ZodNullable<z.ZodNumber>;
26196
+ publicApps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26197
+ privateApps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26198
+ aiCreditsMonthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25805
26199
  }, z.core.$strip>;
25806
26200
  export type SubscriptionLimits = z.infer<typeof subscriptionLimitsSchema>;
25807
26201
  export declare const subscriptionUsageSchema: z.ZodObject<{
@@ -25816,6 +26210,8 @@ export declare const subscriptionUsageSchema: z.ZodObject<{
25816
26210
  seats: z.ZodNumber;
25817
26211
  customDomains: z.ZodNumber;
25818
26212
  webhooks: z.ZodNumber;
26213
+ publicApps: z.ZodOptional<z.ZodNumber>;
26214
+ privateApps: z.ZodOptional<z.ZodNumber>;
25819
26215
  }, z.core.$strip>;
25820
26216
  export type SubscriptionUsage = z.infer<typeof subscriptionUsageSchema>;
25821
26217
  export declare const storeSubscriptionSchema: z.ZodObject<{
@@ -25860,10 +26256,14 @@ export declare const storeSubscriptionSchema: z.ZodObject<{
25860
26256
  storefrontPreviewHoursMonthly: z.ZodNullable<z.ZodNumber>;
25861
26257
  storefrontBuildMinutesMonthly: z.ZodNullable<z.ZodNumber>;
25862
26258
  adminApiRequestsMonthly: z.ZodNullable<z.ZodNumber>;
26259
+ publicApps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26260
+ privateApps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26261
+ aiCreditsMonthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25863
26262
  }, z.core.$strip>;
25864
26263
  features: z.ZodObject<{
25865
26264
  adminApi: z.ZodBoolean;
25866
26265
  analytics: z.ZodBoolean;
26266
+ members: z.ZodOptional<z.ZodBoolean>;
25867
26267
  storeClone: z.ZodBoolean;
25868
26268
  removeBadge: z.ZodBoolean;
25869
26269
  }, z.core.$strip>;
@@ -25879,6 +26279,8 @@ export declare const storeSubscriptionSchema: z.ZodObject<{
25879
26279
  seats: z.ZodNumber;
25880
26280
  customDomains: z.ZodNumber;
25881
26281
  webhooks: z.ZodNumber;
26282
+ publicApps: z.ZodOptional<z.ZodNumber>;
26283
+ privateApps: z.ZodOptional<z.ZodNumber>;
25882
26284
  }, z.core.$strip>;
25883
26285
  aiActions: z.ZodObject<{
25884
26286
  limit: z.ZodNullable<z.ZodNumber>;
@@ -25890,6 +26292,16 @@ export declare const storeSubscriptionSchema: z.ZodObject<{
25890
26292
  used: z.ZodNumber;
25891
26293
  resetsAt: z.ZodString;
25892
26294
  }, z.core.$strip>;
26295
+ aiCredits: z.ZodOptional<z.ZodObject<{
26296
+ monthly: z.ZodNullable<z.ZodNumber>;
26297
+ granted: z.ZodNumber;
26298
+ used: z.ZodNumber;
26299
+ monthlyUsed: z.ZodOptional<z.ZodNumber>;
26300
+ purchased: z.ZodOptional<z.ZodNumber>;
26301
+ complimentary: z.ZodOptional<z.ZodNumber>;
26302
+ remaining: z.ZodNullable<z.ZodNumber>;
26303
+ resetsAt: z.ZodString;
26304
+ }, z.core.$strip>>;
25893
26305
  salesFeePercent: z.ZodLiteral<0>;
25894
26306
  }, z.core.$strip>;
25895
26307
  export type StoreSubscription = z.infer<typeof storeSubscriptionSchema>;
@@ -25916,145 +26328,6 @@ export declare const planErrorDetailsSchema: z.ZodObject<{
25916
26328
  reason: z.ZodOptional<z.ZodString>;
25917
26329
  }, z.core.$loose>;
25918
26330
  export type PlanErrorDetails = z.infer<typeof planErrorDetailsSchema>;
25919
- /**
25920
- * 요금제 기능 키 값 — 요금제 비교표·상점 플랫폼 요금제 화면이 쓴다. 키는 서버 판정의 기능 키와 같다(추가만 한다). 상위 요금제는 하위 요금제
25921
- * 기능을 모두 포함한다
25922
- */
25923
- export declare const planEntitlementsSchema: z.ZodObject<{
25924
- "features.admin_api": z.ZodBoolean;
25925
- "features.analytics": z.ZodBoolean;
25926
- "limits.ai_reads_monthly": z.ZodNullable<z.ZodNumber>;
25927
- "limits.ai_actions_monthly": z.ZodNullable<z.ZodNumber>;
25928
- "limits.custom_domains": z.ZodNullable<z.ZodNumber>;
25929
- "limits.webhooks": z.ZodNullable<z.ZodNumber>;
25930
- "limits.storefront_preview_hours_monthly": z.ZodNullable<z.ZodNumber>;
25931
- "limits.storefront_build_minutes_monthly": z.ZodNullable<z.ZodNumber>;
25932
- "limits.storefront_requests_monthly": z.ZodNullable<z.ZodNumber>;
25933
- "limits.admin_api_requests_monthly": z.ZodNullable<z.ZodNumber>;
25934
- "rate_limit.admin_api": z.ZodNullable<z.ZodNumber>;
25935
- "storefront.cpu_ms": z.ZodNumber;
25936
- "storefront.subrequests": z.ZodNumber;
25937
- "storefront.rate_limit_per_minute": z.ZodNumber;
25938
- "seats.included": z.ZodNullable<z.ZodNumber>;
25939
- "retention.analytics_days": z.ZodNumber;
25940
- "retention.api_logs_days": z.ZodNullable<z.ZodNumber>;
25941
- "retention.audit_days": z.ZodNullable<z.ZodNumber>;
25942
- "support.tier": z.ZodUnion<readonly [z.ZodEnum<{
25943
- EMAIL: "EMAIL";
25944
- COMMUNITY: "COMMUNITY";
25945
- EMAIL_PRIORITY: "EMAIL_PRIORITY";
25946
- DEDICATED: "DEDICATED";
25947
- SLA: "SLA";
25948
- }>, z.ZodString]>;
25949
- }, z.core.$strip>;
25950
- export type PlanEntitlementValues = z.infer<typeof planEntitlementsSchema>;
25951
- /** 공개 요금제 한 줄 — `GET /v1/public/plans` */
25952
- export declare const publicPlanSchema: z.ZodObject<{
25953
- code: z.ZodUnion<readonly [z.ZodEnum<{
25954
- FREE: "FREE";
25955
- BASIC: "BASIC";
25956
- BETA: "BETA";
25957
- PRO: "PRO";
25958
- BUSINESS: "BUSINESS";
25959
- ENTERPRISE: "ENTERPRISE";
25960
- PREMIUM: "PREMIUM";
25961
- }>, z.ZodString]>;
25962
- name: z.ZodString;
25963
- version: z.ZodNumber;
25964
- sort: z.ZodNumber;
25965
- purchasable: z.ZodBoolean;
25966
- prices: z.ZodObject<{
25967
- currency: z.ZodLiteral<"KRW">;
25968
- monthly: z.ZodNullable<z.ZodNumber>;
25969
- startingAt: z.ZodBoolean;
25970
- vatIncluded: z.ZodObject<{
25971
- monthly: z.ZodNullable<z.ZodNumber>;
25972
- }, z.core.$strip>;
25973
- }, z.core.$strip>;
25974
- entitlements: z.ZodObject<{
25975
- "features.admin_api": z.ZodBoolean;
25976
- "features.analytics": z.ZodBoolean;
25977
- "limits.ai_reads_monthly": z.ZodNullable<z.ZodNumber>;
25978
- "limits.ai_actions_monthly": z.ZodNullable<z.ZodNumber>;
25979
- "limits.custom_domains": z.ZodNullable<z.ZodNumber>;
25980
- "limits.webhooks": z.ZodNullable<z.ZodNumber>;
25981
- "limits.storefront_preview_hours_monthly": z.ZodNullable<z.ZodNumber>;
25982
- "limits.storefront_build_minutes_monthly": z.ZodNullable<z.ZodNumber>;
25983
- "limits.storefront_requests_monthly": z.ZodNullable<z.ZodNumber>;
25984
- "limits.admin_api_requests_monthly": z.ZodNullable<z.ZodNumber>;
25985
- "rate_limit.admin_api": z.ZodNullable<z.ZodNumber>;
25986
- "storefront.cpu_ms": z.ZodNumber;
25987
- "storefront.subrequests": z.ZodNumber;
25988
- "storefront.rate_limit_per_minute": z.ZodNumber;
25989
- "seats.included": z.ZodNullable<z.ZodNumber>;
25990
- "retention.analytics_days": z.ZodNumber;
25991
- "retention.api_logs_days": z.ZodNullable<z.ZodNumber>;
25992
- "retention.audit_days": z.ZodNullable<z.ZodNumber>;
25993
- "support.tier": z.ZodUnion<readonly [z.ZodEnum<{
25994
- EMAIL: "EMAIL";
25995
- COMMUNITY: "COMMUNITY";
25996
- EMAIL_PRIORITY: "EMAIL_PRIORITY";
25997
- DEDICATED: "DEDICATED";
25998
- SLA: "SLA";
25999
- }>, z.ZodString]>;
26000
- }, z.core.$strip>;
26001
- }, z.core.$strip>;
26002
- export type PublicPlan = z.infer<typeof publicPlanSchema>;
26003
- /** 요금제 비교표 — `GET /v1/public/plans`(인증 없음, 캐시 가능). 값은 서버가 관리하고 언제든 바뀔 수 있다 */
26004
- export declare const publicPlansSchema: z.ZodObject<{
26005
- vatPercent: z.ZodNumber;
26006
- plans: z.ZodArray<z.ZodObject<{
26007
- code: z.ZodUnion<readonly [z.ZodEnum<{
26008
- FREE: "FREE";
26009
- BASIC: "BASIC";
26010
- BETA: "BETA";
26011
- PRO: "PRO";
26012
- BUSINESS: "BUSINESS";
26013
- ENTERPRISE: "ENTERPRISE";
26014
- PREMIUM: "PREMIUM";
26015
- }>, z.ZodString]>;
26016
- name: z.ZodString;
26017
- version: z.ZodNumber;
26018
- sort: z.ZodNumber;
26019
- purchasable: z.ZodBoolean;
26020
- prices: z.ZodObject<{
26021
- currency: z.ZodLiteral<"KRW">;
26022
- monthly: z.ZodNullable<z.ZodNumber>;
26023
- startingAt: z.ZodBoolean;
26024
- vatIncluded: z.ZodObject<{
26025
- monthly: z.ZodNullable<z.ZodNumber>;
26026
- }, z.core.$strip>;
26027
- }, z.core.$strip>;
26028
- entitlements: z.ZodObject<{
26029
- "features.admin_api": z.ZodBoolean;
26030
- "features.analytics": z.ZodBoolean;
26031
- "limits.ai_reads_monthly": z.ZodNullable<z.ZodNumber>;
26032
- "limits.ai_actions_monthly": z.ZodNullable<z.ZodNumber>;
26033
- "limits.custom_domains": z.ZodNullable<z.ZodNumber>;
26034
- "limits.webhooks": z.ZodNullable<z.ZodNumber>;
26035
- "limits.storefront_preview_hours_monthly": z.ZodNullable<z.ZodNumber>;
26036
- "limits.storefront_build_minutes_monthly": z.ZodNullable<z.ZodNumber>;
26037
- "limits.storefront_requests_monthly": z.ZodNullable<z.ZodNumber>;
26038
- "limits.admin_api_requests_monthly": z.ZodNullable<z.ZodNumber>;
26039
- "rate_limit.admin_api": z.ZodNullable<z.ZodNumber>;
26040
- "storefront.cpu_ms": z.ZodNumber;
26041
- "storefront.subrequests": z.ZodNumber;
26042
- "storefront.rate_limit_per_minute": z.ZodNumber;
26043
- "seats.included": z.ZodNullable<z.ZodNumber>;
26044
- "retention.analytics_days": z.ZodNumber;
26045
- "retention.api_logs_days": z.ZodNullable<z.ZodNumber>;
26046
- "retention.audit_days": z.ZodNullable<z.ZodNumber>;
26047
- "support.tier": z.ZodUnion<readonly [z.ZodEnum<{
26048
- EMAIL: "EMAIL";
26049
- COMMUNITY: "COMMUNITY";
26050
- EMAIL_PRIORITY: "EMAIL_PRIORITY";
26051
- DEDICATED: "DEDICATED";
26052
- SLA: "SLA";
26053
- }>, z.ZodString]>;
26054
- }, z.core.$strip>;
26055
- }, z.core.$strip>>;
26056
- }, z.core.$strip>;
26057
- export type PublicPlans = z.infer<typeof publicPlansSchema>;
26058
26331
  //#endregion
26059
26332
  //#region src/schemas/telemetry.d.ts
26060
26333
  /**